FedEX – Open Ship API Response

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace WooCommerceWeb.Models
{
    
    public class CompletedPackageDetail
    {
        public int sequenceNumber { get; set; }
        public List<TrackingId> trackingIds { get; set; }
        public int groupNumber { get; set; }
    }

    public class CompletedShipmentDetail
    {
        public bool usDomestic { get; set; }
        public string carrierCode { get; set; }
        public MasterTrackingId masterTrackingId { get; set; }
        public List<CompletedPackageDetail> completedPackageDetails { get; set; }
    }

    public class MasterTrackingId
    {
        public string trackingIdType { get; set; }
        public string formId { get; set; }
        public string trackingNumber { get; set; }
    }

    public class Output
    {
        public List<TransactionShipment> transactionShipments { get; set; }
    }

    public class PieceResponse
    {
        public string masterTrackingNumber { get; set; }
        public int packageSequenceNumber { get; set; }
        public string trackingNumber { get; set; }
        public double additionalChargesDiscount { get; set; }
        public double netRateAmount { get; set; }
        public double netChargeAmount { get; set; }
        public double netDiscountAmount { get; set; }
        public List<object> packageDocuments { get; set; }
        public List<object> customerReferences { get; set; }
        public double baseRateAmount { get; set; }
        public double codcollectionAmount { get; set; }
    }

    public class OpenShipApiResponseModel
    {
        public string transactionId { get; set; }
        public string customerTransactionId { get; set; }
        public Output output { get; set; }
    }

    public class TrackingId
    {
        public string trackingIdType { get; set; }
        public string formId { get; set; }
        public string trackingNumber { get; set; }
    }

    public class TransactionShipment
    {
        public string masterTrackingNumber { get; set; }
        public string serviceType { get; set; }
        public string shipDatestamp { get; set; }
        public string serviceName { get; set; }
        public List<PieceResponse> pieceResponses { get; set; }
        public CompletedShipmentDetail completedShipmentDetail { get; set; }
        public string serviceCategory { get; set; }
    }


}

Share


Categories

Leave a Reply

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