Claytondus.AmazonMWS icon indicating copy to clipboard operation
Claytondus.AmazonMWS copied to clipboard

label options are missing from Create Shipment in MerchantFullFillment code

Open nafberger opened this issue 4 years ago • 1 comments

https://github.com/claytondus/Claytondus.AmazonMWS/blob/5a21e41403acf8c598b7bc65ae62be8b91f4787f/Claytondus.AmazonMWS.MerchantFulfillment.Test/MWSMerchantFulfillmentServiceSample.cs#L132

seems to me that label options are missing from your code

see here a direct download from amazon.

    public CreateShipmentResponse InvokeCreateShipment()
    {
        // Create a request.
        CreateShipmentRequest request = new CreateShipmentRequest();
        string sellerId = "example";
        request.SellerId = sellerId;
        string mwsAuthToken = "example";
        request.MWSAuthToken = mwsAuthToken;
        ShipmentRequestDetails shipmentRequestDetails = new ShipmentRequestDetails();
        request.ShipmentRequestDetails = shipmentRequestDetails;
        string shippingServiceId = "example";
        request.ShippingServiceId = shippingServiceId;
        string shippingServiceOfferId = "example";
        request.ShippingServiceOfferId = shippingServiceOfferId;
        string hazmatType = "example";
        request.HazmatType = hazmatType;
        LabelFormatOptionRequest labelFormatOption = new LabelFormatOptionRequest();
        request.LabelFormatOption = labelFormatOption;
        List<AdditionalSellerInputs> shipmentLevelSellerInputsList = new List<AdditionalSellerInputs>();
        request.ShipmentLevelSellerInputsList = shipmentLevelSellerInputsList;
        return this.client.CreateShipment(request);
    }

nafberger avatar Mar 30 '20 18:03 nafberger

Added the new label options, but I lack the ability to test live. Use Claytondus.AmazonMWS.MerchantFulfillment 0.4.0.

claytondus avatar Mar 31 '20 15:03 claytondus