public ShipmentRequestDetails(string amazonOrderId, List <Item> itemList, Address shipFromAddress, PackageDimensions packageDimensions, Weight weight, ShippingServiceOptions shippingServiceOptions) : base() { this._amazonOrderId = amazonOrderId; this._itemList = itemList; this._shipFromAddress = shipFromAddress; this._packageDimensions = packageDimensions; this._weight = weight; this._shippingServiceOptions = shippingServiceOptions; }
public ShippingService(string shippingServiceName, string carrierName, string shippingServiceId, string shippingServiceOfferId, DateTime?shipDate, CurrencyAmount rate, ShippingServiceOptions shippingServiceOptions, List <string> availableLabelFormats) : base() { this._shippingServiceName = shippingServiceName; this._carrierName = carrierName; this._shippingServiceId = shippingServiceId; this._shippingServiceOfferId = shippingServiceOfferId; this._shipDate = shipDate; this._rate = rate; this._shippingServiceOptions = shippingServiceOptions; this._availableLabelFormats = availableLabelFormats; }
public override void ReadFragmentFrom(IMwsReader reader) { _shippingServiceName = reader.Read <string>("ShippingServiceName"); _carrierName = reader.Read <string>("CarrierName"); _shippingServiceId = reader.Read <string>("ShippingServiceId"); _shippingServiceOfferId = reader.Read <string>("ShippingServiceOfferId"); _shipDate = reader.Read <DateTime?>("ShipDate"); _earliestEstimatedDeliveryDate = reader.Read <DateTime?>("EarliestEstimatedDeliveryDate"); _latestEstimatedDeliveryDate = reader.Read <DateTime?>("LatestEstimatedDeliveryDate"); _rate = reader.Read <CurrencyAmount>("Rate"); _shippingServiceOptions = reader.Read <ShippingServiceOptions>("ShippingServiceOptions"); _availableLabelFormats = reader.ReadList <string>("AvailableLabelFormats", "LabelFormat"); }
public override void ReadFragmentFrom(IMwsReader reader) { _amazonOrderId = reader.Read <string>("AmazonOrderId"); _sellerOrderId = reader.Read <string>("SellerOrderId"); _itemList = reader.ReadList <Item>("ItemList", "Item"); _shipFromAddress = reader.Read <Address>("ShipFromAddress"); _packageDimensions = reader.Read <PackageDimensions>("PackageDimensions"); _weight = reader.Read <Weight>("Weight"); _mustArriveByDate = reader.Read <DateTime?>("MustArriveByDate"); _shipDate = reader.Read <DateTime?>("ShipDate"); _shippingServiceOptions = reader.Read <ShippingServiceOptions>("ShippingServiceOptions"); _labelCustomization = reader.Read <LabelCustomization>("LabelCustomization"); }
/// <summary> /// Sets the ShippingServiceOptions property. /// </summary> /// <param name="shippingServiceOptions">ShippingServiceOptions property.</param> /// <returns>this instance.</returns> public ShippingService WithShippingServiceOptions(ShippingServiceOptions shippingServiceOptions) { this._shippingServiceOptions = shippingServiceOptions; return(this); }
/// <summary> /// Sets the ShippingServiceOptions property. /// </summary> /// <param name="shippingServiceOptions">ShippingServiceOptions property.</param> /// <returns>this instance.</returns> public ShipmentRequestDetails WithShippingServiceOptions(ShippingServiceOptions shippingServiceOptions) { this._shippingServiceOptions = shippingServiceOptions; return(this); }