{
 "properties": {
  "associatedAccountNumber": {
   "properties": {
    "value": {
     "type": "string"
    }
   },
   "required": [
    "value"
   ],
   "type": "object"
  },
  "commodityDescription": {
   "type": "string"
  },
  "countryRelationships": {
   "type": "string"
  },
  "freightPickupDetail": {
   "properties": {
    "lineItems": {
     "items": {
      "properties": {
       "description": {
        "type": "string"
       },
       "destination": {
        "properties": {
         "city": {
          "type": "string"
         },
         "countryCode": {
          "type": "string"
         },
         "postalCode": {
          "type": [
           "string",
           "integer"
          ],
          "pattern": "(?:\\d{5}(?:[-]?\\d{4})?)|(?:(?:[A-Za-z][0-9][A-Za-z][0-9][A-Za-z])[0-9]?)"
         },
         "residential": {
          "type": "boolean"
         },
         "stateOrProvinceCode": {
          "type": "string"
         },
         "streetLines": {
          "items": {
           "type": "string"
          },
          "type": "array"
         }
        },
        "required": [
         "countryCode",
         "postalCode"
        ],
        "type": "object"
       },
       "dimensions": {
        "properties": {
         "height": {
          "type": "number"
         },
         "length": {
          "type": "number"
         },
         "units": {
          "type": "string"
         },
         "width": {
          "type": "number"
         }
        },
        "required": [
         "height",
         "length",
         "units",
         "width"
        ],
        "type": "object"
       },
       "justOneMore": {
        "type": "boolean"
       },
       "packaging": {
        "type": "string"
       },
       "pieces": {
        "type": "integer"
       },
       "sequenceNumber": {
        "type": "integer"
       },
       "service": {
        "enum": [
         "FEDEX_FREIGHT_PRIORITY",
         "FEDEX_FREIGHT_ECONOMY",
         "FEDEX_FIRST_FREIGHT",
         "FEDEX_1_DAY_FREIGHT",
         "FEDEX_2_DAY_FREIGHT",
         "FEDEX_3_DAY_FREIGHT",
         "INTERNATIONAL_PRIORITY_FREIGHT",
         "INTERNATIONAL_ECONOMY_FREIGHT",
         "FEDEX_INTERNATIONAL_DEFERRED_FREIGHT",
         "INTERNATIONAL_DISTRIBUTION_FREIGHT"
        ]
       },
       "shipmentSpecialServicesRequested": {
        "properties": {
         "freightDirectDetail": {
          "properties": {
           "freightDirectDataDetails": {
            "items": {
             "properties": {
              "emailAddress": {
               "type": "string"
              },
              "phoneNumberDetails": {
               "items": {
                "properties": {
                 "phoneNumber": {
                  "type": [
                   "integer",
                   "string"
                  ]
                 },
                 "phoneNumberType": {
                  "type": "string"
                 }
                },
                "required": [
                 "phoneNumber",
                 "phoneNumberType"
                ],
                "type": "object"
               },
               "type": "array"
              },
              "transportationType": {
               "type": "string"
              },
              "type": {
               "type": "string"
              }
             },
             "type": "object"
            },
            "type": "array"
           }
          },
          "required": [
           "freightDirectDataDetails"
          ],
          "type": "object"
         },
         "freightGuaranteeDetail": {
          "properties": {
           "time": {
            "type": "string"
           }
          },
          "required": [
           "time"
          ],
          "type": "object"
         },
         "specialServiceTypes": {
          "items": {
           "enum": [
            "IDL",
            "IPU",
            "PPD",
            "LFTD",
            "LFTP",
            "LTDAD",
            "LTDAP",
            "OVR",
            "PSN",
            "PSC",
            "BROKER_SELECT_OPTION",
            "CALL_BEFORE_DELIVERY",
            "CUSTOM_DELIVERY_WINDOW",
            "DANGEROUS_GOODS",
            "DO_NOT_BREAK_DOWN_PALLETS",
            "DO_NOT_STACK_PALLETS",
            "EXTREME_LENGTH",
            "FOOD",
            "FREIGHT_DIRECT",
            "FREIGHT_GUARANTEE",
            "INSIDE_DELIVERY",
            "INSIDE_PICKUP",
            "LIFTGATE_DELIVERY",
            "LIFTGATE_PICKUP",
            "LIMITED_ACCESS_DELIVERY",
            "LIMITED_ACCESS_PICKUP",
            "OVER_LENGTH",
            "POISON",
            "PROTECTION_FROM_FREEZING",
            "TOP_LOAD"
           ]
          },
          "type": "array"
         }
        },
        "required": [],
        "type": "object"
       },
       "totalHandlingUnits": {
        "type": "integer"
       },
       "trackingNumber": {
        "properties": {
         "trackingCarrier": {
          "type": "string"
         },
         "trackingNumber": {
          "type": "string"
         },
         "trackingQualifier": {
          "type": "string"
         },
         "trackingUniqueId": {
          "type": "string"
         }
        },
        "type": "object"
       },
       "weight": {
        "properties": {
         "units": {
          "type": "string"
         },
         "value": {
          "type": [
           "number",
           "string"
          ]
         }
        },
        "required": [
         "units",
         "value"
        ],
        "type": "object"
       }
      },
      "required": [
       "destination",
       "packaging",
       "service",
       "totalHandlingUnits",
       "weight"
      ],
      "type": "object"
     },
     "type": "array"
    },
    "payment": {
     "type": "string"
    },
    "role": {
     "type": "string"
    },
    "submittedBy": {
     "properties": {
      "companyName": {
       "type": "string"
      },
      "emailAddress": {
       "type": "string"
      },
      "personName": {
       "type": "string"
      },
      "phoneExtension": {
       "type": [
        "integer",
        "string"
       ]
      },
      "phoneNumber": {
       "type": [
        "integer",
        "string"
       ]
      }
     },
     "type": "object"
    },
    "userMessage": {
     "type": "string"
    }
   },
   "required": [
    "lineItems",
    "payment",
    "role"
   ],
   "type": "object"
  },
  "originDetail": {
   "properties": {
    "buildingPart": {
     "type": "string"
    },
    "buildingPartDescription": {
     "type": "string"
    },
    "customerCloseTime": {
     "type": "string"
    },
    "earlyPickup": {
     "type": "boolean"
    },
    "geographicalPostalCode": {
     "type": "string"
    },
    "packageLocation": {
     "type": "string"
    },
    "pickupAddressType": {
     "type": "string"
    },
    "pickupDateType": {
     "type": "string"
    },
    "pickupLocation": {
     "properties": {
      "accountNumber": {
       "properties": {
        "value": {
         "type": "string"
        }
       },
       "required": [
        "value"
       ],
       "type": "object"
      },
      "address": {
       "properties": {
        "addressClassification": {
         "type": "string"
        },
        "city": {
         "type": "string"
        },
        "countryCode": {
         "type": "string"
        },
        "postalCode": {
         "type": [
          "string",
          "integer"
         ],
         "pattern": "(?:\\d{5}(?:[-]?\\d{4})?)|(?:(?:[A-Za-z][0-9][A-Za-z][0-9][A-Za-z])[0-9]?)"
        },
        "residential": {
         "type": "boolean"
        },
        "stateOrProvinceCode": {
         "type": "string"
        },
        "streetLines": {
         "items": {
          "type": "string"
         },
         "type": "array"
        },
        "urbanizationCode": {
         "type": "string"
        }
       },
       "required": [
        "city",
        "countryCode",
        "postalCode",
        "stateOrProvinceCode",
        "streetLines"
       ],
       "type": "object"
      },
      "contact": {
       "properties": {
        "companyName": {
         "type": "string"
        },
        "emailAddress": {
         "type": "string"
        },
        "personName": {
         "type": "string"
        },
        "phoneExtension": {
         "type": "string"
        },
        "phoneNumber": {
         "type": "string"
        }
       },
       "required": [
        "companyName",
        "personName",
        "phoneNumber"
       ],
       "type": "object"
      },
      "deliveryInstructions": {
       "type": "string"
      }
     },
     "required": [
      "address",
      "contact"
     ],
     "type": "object"
    },
    "readyDateTimestamp": {
     "type": "string"
    },
    "suppliesRequested": {
     "type": "string"
    }
   },
   "required": [
    "customerCloseTime",
    "pickupLocation",
    "readyDateTimestamp"
   ],
   "type": "object"
  },
  "oversizePackageCount": {
   "type": "integer"
  },
  "packageCount": {
   "type": "integer"
  },
  "pickupNotificationDetail": {
   "properties": {
    "emailDetails": {
     "items": {
      "properties": {
       "address": {
        "type": "string"
       },
       "locale": {
        "type": "string"
       }
      },
      "required": [
       "address",
       "locale"
      ],
      "type": "object"
     },
     "type": "array"
    },
    "format": {
     "type": "string"
    },
    "userMessage": {
     "type": "string"
    }
   },
   "type": "object"
  },
  "remarks": {
   "type": "string"
  },
  "totalWeight": {
   "items": {
    "properties": {
     "units": {
      "type": "string"
     },
     "value": {
      "type": [
       "number",
       "string"
      ]
     }
    },
    "required": [
     "units",
     "value"
    ],
    "type": "object"
   },
   "type": "array"
  },
  "trackingNumber": {
   "type": "string"
  }
 },
 "required": [
  "associatedAccountNumber",
  "freightPickupDetail",
  "originDetail"
 ],
 "type": "object"
}