{"id":32,"date":"2024-05-29T23:17:33","date_gmt":"2024-05-29T23:17:33","guid":{"rendered":"https:\/\/mystifying-liskov.77-68-127-141.plesk.page\/?p=32"},"modified":"2024-05-29T23:18:31","modified_gmt":"2024-05-29T23:18:31","slug":"fedex-confirm-open-ship-2","status":"publish","type":"post","link":"https:\/\/mystifying-liskov.77-68-127-141.plesk.page\/?p=32","title":{"rendered":"FedEX &#8211; Create open shipment"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Web;<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>namespace WooCommerceWeb.Models\n{\n  \n    public class AccountNumber\n    {\n        public string value { get; set; }\n    }\n\n    public class AdditionalMeasure\n    {\n        public double quantity { get; set; }\n        public string units { get; set; }\n    }\n\n    public class Address\n    {\n        public List&lt;string> streetLines { get; set; }\n        public string city { get; set; }\n        public string stateOrProvinceCode { get; set; }\n        public string postalCode { get; set; }\n        public string countryCode { get; set; }\n        public bool residential { get; set; }\n    }<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>public class AddTransportationChargesDetail\n{\n    public string rateType { get; set; }\n    public string rateLevelType { get; set; }\n    public string chargeLevelType { get; set; }\n    public string chargeType { get; set; }\n}\n\npublic class AlcoholDetail\n{\n    public string alcoholRecipientType { get; set; }\n    public string shipperAgreementType { get; set; }\n}\n\npublic class AttachedDocument\n{\n    public string documentType { get; set; }\n    public string documentReference { get; set; }\n    public string description { get; set; }\n    public string documentId { get; set; }\n}\n\npublic class BatteryDetail\n{\n    public string batteryPackingType { get; set; }\n    public string batteryRegulatoryType { get; set; }\n    public string batteryMaterialType { get; set; }\n}\n\npublic class BillingDetails\n{\n    public string billingCode { get; set; }\n    public string billingType { get; set; }\n    public string aliasId { get; set; }\n    public string accountNickname { get; set; }\n    public string accountNumber { get; set; }\n    public string accountNumberCountryCode { get; set; }\n}<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>    public class Broker\n    {\n        public Broker broker { get; set; }\n        public string type { get; set; }\n    }\n\n    public class Broker2\n    {\n        public Address address { get; set; }\n        public Contact contact { get; set; }\n        public AccountNumber accountNumber { get; set; }\n        public List&lt;Tin> tins { get; set; }\n        public string deliveryInstructions { get; set; }\n    }\n\n    public class CodCollectionAmount\n    {\n        public double amount { get; set; }\n        public string currency { get; set; }\n    }\n\n    public class CodRecipient\n    {\n        public Address address { get; set; }\n        public Contact contact { get; set; }\n        public AccountNumber accountNumber { get; set; }\n        public List&lt;Tin> tins { get; set; }\n    }\n\n    public class CommercialInvoice\n    {\n        public string originatorName { get; set; }\n        public List&lt;string> comments { get; set; }\n        public List&lt;CustomerReference> customerReferences { get; set; }\n        public TaxesOrMiscellaneousCharge taxesOrMiscellaneousCharge { get; set; }\n        public string taxesOrMiscellaneousChargeType { get; set; }\n        public FreightCharge freightCharge { get; set; }\n        public PackingCosts packingCosts { get; set; }\n        public HandlingCosts handlingCosts { get; set; }\n        public string declarationStatement { get; set; }\n        public string termsOfSale { get; set; }\n        public string specialInstructions { get; set; }\n        public string shipmentPurpose { get; set; }\n        public EmailNotificationDetail emailNotificationDetail { get; set; }\n    }\n\n    public class Commodity\n    {\n        public UnitPrice unitPrice { get; set; }\n        public List&lt;AdditionalMeasure> additionalMeasures { get; set; }\n        public int numberOfPieces { get; set; }\n        public int quantity { get; set; }\n        public string quantityUnits { get; set; }\n        public CustomsValue customsValue { get; set; }\n        public string countryOfManufacture { get; set; }\n        public string cIMarksAndNumbers { get; set; }\n        public string harmonizedCode { get; set; }\n        public string description { get; set; }\n        public string name { get; set; }\n        public Weight weight { get; set; }\n        public string exportLicenseNumber { get; set; }\n        public DateTime exportLicenseExpirationDate { get; set; }\n        public string partNumber { get; set; }\n        public string purpose { get; set; }\n        public UsmcaDetail usmcaDetail { get; set; }\n    }\n\n    public class Contact\n    {\n        public string personName { get; set; }\n        public string emailAddress { get; set; }\n        public string phoneExtension { get; set; }\n        public string phoneNumber { get; set; }\n        public string companyName { get; set; }\n        public int faxNumber { get; set; }\n    }\n\n    public class ContentRecord\n    {\n        public string itemNumber { get; set; }\n        public int receivedQuantity { get; set; }\n        public string description { get; set; }\n        public string partNumber { get; set; }\n    }\n\n    public class CustomerReference\n    {\n        public string customerReferenceType { get; set; }\n        public string value { get; set; }\n    }\n\n    public class CustomsClearanceDetail\n    {\n        public string regulatoryControls { get; set; }\n        public List&lt;Broker> brokers { get; set; }\n        public CommercialInvoice commercialInvoice { get; set; }\n        public string freightOnValue { get; set; }\n        public DutiesPayment dutiesPayment { get; set; }\n        public List&lt;Commodity> commodities { get; set; }\n        public bool isDocumentOnly { get; set; }\n        public RecipientCustomsId recipientCustomsId { get; set; }\n        public CustomsOption customsOption { get; set; }\n        public ImporterOfRecord importerOfRecord { get; set; }\n        public string generatedDocumentLocale { get; set; }\n        public ExportDetail exportDetail { get; set; }\n        public TotalCustomsValue totalCustomsValue { get; set; }\n        public bool partiesToTransactionAreRelated { get; set; }\n        public DeclarationStatementDetail declarationStatementDetail { get; set; }\n        public InsuranceCharge insuranceCharge { get; set; }\n    }\n\n    public class CustomsOption\n    {\n        public string description { get; set; }\n        public string type { get; set; }\n    }\n\n    public class CustomsValue\n    {\n        public double amount { get; set; }\n        public string currency { get; set; }\n    }\n\n    public class DangerousGoodsDetail\n    {\n        public string accessibility { get; set; }\n        public bool cargoAircraftOnly { get; set; }\n        public List&lt;string> options { get; set; }\n    }\n\n    public class DeclarationStatementDetail\n    {\n        public UsmcaLowValueStatementDetail usmcaLowValueStatementDetail { get; set; }\n    }\n\n    public class DeclaredValue\n    {\n        public double amount { get; set; }\n        public string currency { get; set; }\n    }\n\n    public class DeliveryOnInvoiceAcceptanceDetail\n    {\n        public Recipient recipient { get; set; }\n    }\n\n    public class DestinationControlDetail\n    {\n        public string endUser { get; set; }\n        public string statementTypes { get; set; }\n        public List&lt;string> destinationCountries { get; set; }\n    }\n\n    public class Dimensionss\n    {\n        public int length { get; set; }\n        public int width { get; set; }\n        public int height { get; set; }\n        public string units { get; set; }\n    }\n\n    public class DryIceWeight\n    {\n        public string units { get; set; }\n        public int value { get; set; }\n    }\n\n    public class DutiesPayment\n    {\n        public Payor payor { get; set; }\n        public BillingDetails billingDetails { get; set; }\n        public string paymentType { get; set; }\n    }\n\n    public class EmailNotificationDetail\n    {\n        public string aggregationType { get; set; }\n        public List&lt;EmailNotificationRecipient> emailNotificationRecipients { get; set; }\n        public string personalMessage { get; set; }\n        public string emailAddress { get; set; }\n        public string type { get; set; }\n        public string recipientType { get; set; }\n    }\n\n    public class EmailNotificationRecipient\n    {\n        public string name { get; set; }\n        public string emailNotificationRecipientType { get; set; }\n        public string emailAddress { get; set; }\n        public string notificationFormatType { get; set; }\n        public string notificationType { get; set; }\n        public string locale { get; set; }\n        public List&lt;string> notificationEventType { get; set; }\n    }\n\n    public class EtdDetail\n    {\n        public List&lt;string> attributes { get; set; }\n        public List&lt;AttachedDocument> attachedDocuments { get; set; }\n        public List&lt;string> requestedDocumentTypes { get; set; }\n    }\n\n    public class ExportDetail\n    {\n        public DestinationControlDetail destinationControlDetail { get; set; }\n        public string b13AFilingOption { get; set; }\n        public string exportComplianceStatement { get; set; }\n        public string permitNumber { get; set; }\n    }\n\n    public class ExpressFreightDetail\n    {\n        public string bookingConfirmationNumber { get; set; }\n        public int shippersLoadAndCount { get; set; }\n        public bool packingListEnclosed { get; set; }\n    }\n\n    public class FinancialInstitutionContactAndAddress\n    {\n        public Address address { get; set; }\n        public Contact contact { get; set; }\n    }\n\n    public class FixedValue\n    {\n        public double amount { get; set; }\n        public string currency { get; set; }\n    }\n\n    public class FreightCharge\n    {\n        public double amount { get; set; }\n        public string currency { get; set; }\n    }\n\n    public class HandlingCosts\n    {\n        public double amount { get; set; }\n        public string currency { get; set; }\n    }\n\n    public class HoldAtLocationDetail\n    {\n        public string locationId { get; set; }\n        public LocationContactAndAddress locationContactAndAddress { get; set; }\n        public string locationType { get; set; }\n    }\n\n    public class HomeDeliveryPremiumDetail\n    {\n        public PhoneNumber phoneNumber { get; set; }\n        public string deliveryDate { get; set; }\n        public string homedeliveryPremiumType { get; set; }\n    }\n\n    public class ImporterOfRecord\n    {\n        public Address address { get; set; }\n        public Contact contact { get; set; }\n        public AccountNumber accountNumber { get; set; }\n        public List&lt;Tin> tins { get; set; }\n    }\n\n    public class InsuranceCharge\n    {\n        public double amount { get; set; }\n        public string currency { get; set; }\n    }\n\n    public class InternationalControlledExportDetail\n    {\n        public string licenseOrPermitExpirationDate { get; set; }\n        public string licenseOrPermitNumber { get; set; }\n        public string entryNumber { get; set; }\n        public string foreignTradeZoneCode { get; set; }\n        public string type { get; set; }\n    }\n\n    public class InternationalTrafficInArmsRegulationsDetail\n    {\n        public string licenseOrExemptionNumber { get; set; }\n    }\n\n    public class LocationContactAndAddress\n    {\n        public Address address { get; set; }\n        public Contact contact { get; set; }\n    }\n\n    public class Origin\n    {\n        public Address address { get; set; }\n        public Contact contact { get; set; }\n    }\n\n    public class PackageCODDetail\n    {\n        public CodCollectionAmount codCollectionAmount { get; set; }\n    }\n\n    public class PackageSpecialServices\n    {\n        public List&lt;string> specialServiceTypes { get; set; }\n        public string signatureOptionType { get; set; }\n        public PriorityAlertDetail priorityAlertDetail { get; set; }\n        public SignatureOptionDetail signatureOptionDetail { get; set; }\n        public AlcoholDetail alcoholDetail { get; set; }\n        public DangerousGoodsDetail dangerousGoodsDetail { get; set; }\n        public PackageCODDetail packageCODDetail { get; set; }\n        public int pieceCountVerificationBoxCount { get; set; }\n        public List&lt;BatteryDetail> batteryDetails { get; set; }\n        public DryIceWeight dryIceWeight { get; set; }\n    }\n\n    public class PackingCosts\n    {\n        public double amount { get; set; }\n        public string currency { get; set; }\n    }\n\n    public class Payor\n    {\n        public ResponsibleParty responsibleParty { get; set; }\n    }\n\n    public class PhoneNumber\n    {\n        public string areaCode { get; set; }\n        public string localNumber { get; set; }\n        public string extension { get; set; }\n        public string personalIdentificationNumber { get; set; }\n    }\n\n    public class PriorityAlertDetail\n    {\n        public List&lt;string> enhancementTypes { get; set; }\n        public List&lt;string> content { get; set; }\n    }\n\n    public class Recipient\n    {\n        public Address address { get; set; }\n        public Contact contact { get; set; }\n        public List&lt;Tin> tins { get; set; }\n        public string deliveryInstructions { get; set; }\n    }\n\n    public class Recipient2\n    {\n        public Address address { get; set; }\n        public Contact contact { get; set; }\n        public List&lt;Tin> tins { get; set; }\n        public string deliveryInstructions { get; set; }\n    }\n\n    public class RecipientCustomsId\n    {\n        public string type { get; set; }\n        public string value { get; set; }\n    }\n\n    public class RequestedPackageLineItem\n    {\n        public string sequenceNumber { get; set; }\n        public string subPackagingType { get; set; }\n        public List&lt;CustomerReference> customerReferences { get; set; }\n        public DeclaredValue declaredValue { get; set; }\n        public Weight weight { get; set; }\n        public Dimensionss dimensions { get; set; }\n        public int groupPackageCount { get; set; }\n        public string itemDescriptionForClearance { get; set; }\n        public List&lt;ContentRecord> contentRecord { get; set; }\n        public string itemDescription { get; set; }\n        public VariableHandlingChargeDetail variableHandlingChargeDetail { get; set; }\n        public PackageSpecialServices packageSpecialServices { get; set; }\n    }\n\n    public class RequestedShipment\n    {\n        public string shipDatestamp { get; set; }\n        public string pickupType { get; set; }\n        public string serviceType { get; set; }\n        public string packagingType { get; set; }\n        public double totalWeight { get; set; }\n        public Shipper shipper { get; set; }\n        public List&lt;Recipient> recipients { get; set; }\n        public SoldTo soldTo { get; set; }\n        public Origin origin { get; set; }\n        public ShippingChargesPayment shippingChargesPayment { get; set; }\n        public ShipmentSpecialServices shipmentSpecialServices { get; set; }\n        public EmailNotificationDetail emailNotificationDetail { get; set; }\n        public ExpressFreightDetail expressFreightDetail { get; set; }\n        public VariableHandlingChargeDetail variableHandlingChargeDetail { get; set; }\n        public CustomsClearanceDetail customsClearanceDetail { get; set; }\n        public SmartPostInfoDetail smartPostInfoDetail { get; set; }\n        public bool blockInsightVisibility { get; set; }\n        public List&lt;string> rateRequestType { get; set; }\n        public string preferredCurrency { get; set; }\n        public List&lt;RequestedPackageLineItem> requestedPackageLineItems { get; set; }\n    }\n\n    public class ResponsibleParty\n    {\n        public Address address { get; set; }\n        public Contact contact { get; set; }\n        public AccountNumber accountNumber { get; set; }\n        public List&lt;Tin> tins { get; set; }\n    }\n\n    public class CreateOpenShipApiRequest\n    {\n        public RequestedShipment requestedShipment { get; set; }\n        public AccountNumber accountNumber { get; set; }\n        public string openShipmentAction { get; set; }\n        public string index { get; set; }\n    }\n\n    public class ShipmentCodAmount\n    {\n        public double amount { get; set; }\n        public string currency { get; set; }\n    }\n\n    public class ShipmentCODDetail\n    {\n        public AddTransportationChargesDetail addTransportationChargesDetail { get; set; }\n        public CodRecipient codRecipient { get; set; }\n        public string remitToName { get; set; }\n        public string codCollectionType { get; set; }\n        public FinancialInstitutionContactAndAddress financialInstitutionContactAndAddress { get; set; }\n        public CodCollectionAmount codCollectionAmount { get; set; }\n        public string returnReferenceIndicatorType { get; set; }\n        public ShipmentCodAmount shipmentCodAmount { get; set; }\n    }\n\n    public class ShipmentDryIceDetail\n    {\n        public TotalWeight totalWeight { get; set; }\n        public int packageCount { get; set; }\n    }\n\n    public class ShipmentSpecialServices\n    {\n        public List&lt;string> specialServiceTypes { get; set; }\n        public EtdDetail etdDetail { get; set; }\n        public DeliveryOnInvoiceAcceptanceDetail deliveryOnInvoiceAcceptanceDetail { get; set; }\n        public InternationalTrafficInArmsRegulationsDetail internationalTrafficInArmsRegulationsDetail { get; set; }\n        public HoldAtLocationDetail holdAtLocationDetail { get; set; }\n        public ShipmentCODDetail shipmentCODDetail { get; set; }\n        public ShipmentDryIceDetail shipmentDryIceDetail { get; set; }\n        public InternationalControlledExportDetail internationalControlledExportDetail { get; set; }\n        public HomeDeliveryPremiumDetail homeDeliveryPremiumDetail { get; set; }\n    }\n\n    public class Shipper\n    {\n        public Address address { get; set; }\n        public Contact contact { get; set; }\n        public List&lt;Tin> tins { get; set; }\n    }\n\n    public class ShippingChargesPayment\n    {\n        public string paymentType { get; set; }\n        public Payor payor { get; set; }\n    }\n\n    public class SignatureOptionDetail\n    {\n        public string signatureReleaseNumber { get; set; }\n    }\n\n    public class SmartPostInfoDetail\n    {\n        public string ancillaryEndorsement { get; set; }\n        public string hubId { get; set; }\n        public string indicia { get; set; }\n        public string specialServices { get; set; }\n    }\n\n    public class SoldTo\n    {\n        public Address address { get; set; }\n        public Contact contact { get; set; }\n        public List&lt;Tin> tins { get; set; }\n        public AccountNumber accountNumber { get; set; }\n    }\n\n    public class TaxesOrMiscellaneousCharge\n    {\n        public double amount { get; set; }\n        public string currency { get; set; }\n    }\n\n    public class Tin\n    {\n        public string number { get; set; }\n        public string tinType { get; set; }\n        public string usage { get; set; }\n        public DateTime effectiveDate { get; set; }\n        public DateTime expirationDate { get; set; }\n    }\n\n    public class TotalCustomsValue\n    {\n        public double amount { get; set; }\n        public string currency { get; set; }\n    }\n\n    public class TotalWeight\n    {\n        public string units { get; set; }\n        public int value { get; set; }\n    }\n\n    public class UnitPrice\n    {\n        public double amount { get; set; }\n        public string currency { get; set; }\n    }\n\n    public class UsmcaDetail\n    {\n        public string originCriterion { get; set; }\n    }\n\n    public class UsmcaLowValueStatementDetail\n    {\n        public bool countryOfOriginLowValueDocumentRequested { get; set; }\n        public string customsRole { get; set; }\n    }\n\n    public class VariableHandlingChargeDetail\n    {\n        public string rateType { get; set; }\n        public double percentValue { get; set; }\n        public string rateLevelType { get; set; }\n        public FixedValue fixedValue { get; set; }\n        public string rateElementBasis { get; set; }\n    }\n\n    public class Weight\n    {\n        public string units { get; set; }\n        public int value { get; set; }\n    }\n\n\n}<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-32","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/mystifying-liskov.77-68-127-141.plesk.page\/index.php?rest_route=\/wp\/v2\/posts\/32","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mystifying-liskov.77-68-127-141.plesk.page\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mystifying-liskov.77-68-127-141.plesk.page\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mystifying-liskov.77-68-127-141.plesk.page\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mystifying-liskov.77-68-127-141.plesk.page\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=32"}],"version-history":[{"count":2,"href":"https:\/\/mystifying-liskov.77-68-127-141.plesk.page\/index.php?rest_route=\/wp\/v2\/posts\/32\/revisions"}],"predecessor-version":[{"id":35,"href":"https:\/\/mystifying-liskov.77-68-127-141.plesk.page\/index.php?rest_route=\/wp\/v2\/posts\/32\/revisions\/35"}],"wp:attachment":[{"href":"https:\/\/mystifying-liskov.77-68-127-141.plesk.page\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=32"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mystifying-liskov.77-68-127-141.plesk.page\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=32"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mystifying-liskov.77-68-127-141.plesk.page\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=32"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}