public override void ReadFragmentFrom(IMwsReader reader) { _sellerId = reader.Read <string>("SellerId"); _mwsAuthToken = reader.Read <string>("MWSAuthToken"); _shipmentRequestDetails = reader.Read <ShipmentRequestDetails>("ShipmentRequestDetails"); _shippingServiceId = reader.Read <string>("ShippingServiceId"); _shippingServiceOfferId = reader.Read <string>("ShippingServiceOfferId"); _hazmatType = reader.Read <string>("HazmatType"); _labelFormatOption = reader.Read <LabelFormatOptionRequest>("LabelFormatOption"); _shipmentLevelSellerInputsList = reader.ReadList <AdditionalSellerInputs>("ShipmentLevelSellerInputsList", "member"); }
/// <summary> /// Sets the LabelFormatOption property. /// </summary> /// <param name="labelFormatOption">LabelFormatOption property.</param> /// <returns>this instance.</returns> public CreateShipmentRequest WithLabelFormatOption(LabelFormatOptionRequest labelFormatOption) { this._labelFormatOption = labelFormatOption; return(this); }