FedEX – Confirm open ship

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace WooCommerceWeb.Models
{
    

    // Root myDeserializedClass = JsonConvert.DeserializeObject<Root>(myJsonResponse);
    public class AccountNumbers
    {
        public string value { get; set; }
    }

    public class AdditionalLabel
    {
        public string type { get; set; }
        public int count { get; set; }
    }

    public class Addresss
    {
        public List<string> streetLines { get; set; }
        public string city { get; set; }
        public string stateOrProvinceCode { get; set; }
        public string postalCode { get; set; }
        public string countryCode { get; set; }
        public bool residential { get; set; }
    }

    public class Barcoded
    {
        public string symbology { get; set; }
        public Specification specification { get; set; }
    }

    public class BlanketPeriod
    {
        public string begins { get; set; }
        public string ends { get; set; }
    }

    public class CertificateOfOrigin
    {
        public List<CustomerImageUsage> customerImageUsages { get; set; }
        public DocumentFormat documentFormat { get; set; }
    }

    public class CommercialInvoiceDetail
    {
        public List<CustomerImageUsage> customerImageUsages { get; set; }
        public DocumentFormat documentFormat { get; set; }
    }

    public class Contacts
    {
        public string personName { get; set; }
        public string emailAddress { get; set; }
        public string phoneNumber { get; set; }
        public string phoneExtension { get; set; }
        public string companyName { get; set; }
        public string faxNumber { get; set; }
    }

    public class CustomerImageUsage
    {
        public string id { get; set; }
        public string type { get; set; }
        public string providedImageType { get; set; }
    }

    public class CustomerSpecifiedDetail
    {
        public List<string> maskedData { get; set; }
        public List<RegulatoryLabel> regulatoryLabels { get; set; }
        public List<AdditionalLabel> additionalLabels { get; set; }
        public DocTabContent docTabContent { get; set; }
    }

    public class Disposition
    {
        public EMailDetail eMailDetail { get; set; }
        public string dispositionType { get; set; }
    }

    public class DocTabContent
    {
        public string docTabContentType { get; set; }
        public Zone001 zone001 { get; set; }
        public Barcoded barcoded { get; set; }
    }

    public class DocTabZoneSpecification
    {
        public int zoneNumber { get; set; }
        public string header { get; set; }
        public string dataField { get; set; }
        public string literalValue { get; set; }
        public string justification { get; set; }
    }

    public class DocumentFormat
    {
        public bool provideInstructions { get; set; }
        public OptionsRequested optionsRequested { get; set; }
        public string stockType { get; set; }
        public List<Disposition> dispositions { get; set; }
        public string locale { get; set; }
        public string docType { get; set; }
    }

    public class EMailDetail
    {
        public List<EMailRecipient> eMailRecipients { get; set; }
        public string locale { get; set; }
        public string grouping { get; set; }
    }

    public class EMailRecipient
    {
        public string emailAddress { get; set; }
        public string recipientType { get; set; }
    }

    public class GeneralAgencyAgreementDetail
    {
        public DocumentFormat documentFormat { get; set; }
    }

    public class LabelSpecification
    {
        public string labelFormatType { get; set; }
        public string labelOrder { get; set; }
        public CustomerSpecifiedDetail customerSpecifiedDetail { get; set; }
        public PrintedLabelOrigin printedLabelOrigin { get; set; }
        public string labelStockType { get; set; }
        public string labelRotation { get; set; }
        public string imageType { get; set; }
        public string labelPrintingOrientation { get; set; }
        public bool returnedDispositionDetail { get; set; }
    }

    public class Op900Detail
    {
        public List<CustomerImageUsage> customerImageUsages { get; set; }
        public string signatureName { get; set; }
        public DocumentFormat documentFormat { get; set; }
    }

    public class OptionsRequested
    {
        public List<string> options { get; set; }
    }

    public class PrintedLabelOrigin
    {
        public Addresss address { get; set; }
        public Contacts contact { get; set; }
    }

    public class Producer
    {
        public Addresss address { get; set; }
        public Contacts contact { get; set; }
        public AccountNumber accountNumber { get; set; }
        public List<Tins> tins { get; set; }
    }

    public class RegulatoryLabel
    {
        public string generationOptions { get; set; }
        public string type { get; set; }
    }

    public class ReturnInstructionsDetail
    {
        public string customText { get; set; }
        public DocumentFormat documentFormat { get; set; }
    }

    public class ConfirmOpenApiRequestModel
    {
        public string labelResponseOptions { get; set; }
        public string edtRequestType { get; set; }
        public LabelSpecification labelSpecification { get; set; }
        public string index { get; set; }
        public ShippingDocumentSpecification shippingDocumentSpecification { get; set; }
        public AccountNumber accountNumber { get; set; }
    }

    public class ShippingDocumentSpecification
    {
        public GeneralAgencyAgreementDetail generalAgencyAgreementDetail { get; set; }
        public ReturnInstructionsDetail returnInstructionsDetail { get; set; }
        public Op900Detail op900Detail { get; set; }
        public UsmcaCertificationOfOriginDetail usmcaCertificationOfOriginDetail { get; set; }
        public UsmcaCommercialInvoiceCertificationOfOriginDetail usmcaCommercialInvoiceCertificationOfOriginDetail { get; set; }
        public List<string> shippingDocumentTypes { get; set; }
        public CertificateOfOrigin certificateOfOrigin { get; set; }
        public CommercialInvoiceDetail commercialInvoiceDetail { get; set; }
    }

    public class Specification
    {
        public int zoneNumber { get; set; }
        public string header { get; set; }
        public string dataField { get; set; }
        public string literalValue { get; set; }
        public string justification { get; set; }
    }

    public class Tins
    {
        public string number { get; set; }
        public string tinType { get; set; }
        public string usage { get; set; }
        public DateTime effectiveDate { get; set; }
        public DateTime expirationDate { get; set; }
    }

    public class UsmcaCertificationOfOriginDetail
    {
        public List<CustomerImageUsage> customerImageUsages { get; set; }
        public DocumentFormat documentFormat { get; set; }
        public string certifierSpecification { get; set; }
        public string importerSpecification { get; set; }
        public string producerSpecification { get; set; }
        public Producer producer { get; set; }
        public BlanketPeriod blanketPeriod { get; set; }
        public string certifierJobTitle { get; set; }
    }

    public class UsmcaCommercialInvoiceCertificationOfOriginDetail
    {
        public List<CustomerImageUsage> customerImageUsages { get; set; }
        public DocumentFormat documentFormat { get; set; }
        public string certifierSpecification { get; set; }
        public string importerSpecification { get; set; }
        public string producerSpecification { get; set; }
        public Producer producer { get; set; }
        public string certifierJobTitle { get; set; }
    }

    public class Zone001
    {
        public List<DocTabZoneSpecification> docTabZoneSpecifications { get; set; }
    }


}

Schema – Fedex

Share


Categories

Leave a Reply

Your email address will not be published. Required fields are marked *