claytondus / Claytondus.AmazonMWS

.NET Standard fork of Amazon MWS client
https://developer.amazonservices.com/
Apache License 2.0
33 stars 12 forks source link

label options are missing from Create Shipment in MerchantFullFillment code #12

Open nafberger opened 4 years ago

nafberger commented 4 years ago

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);
    }
claytondus commented 4 years ago

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