public Shipment(string shipmentId, Address shipFromAddress, Address shipToAddress, PackageDimensions packageDimensions, Weight weight, ShippingService shippingService, string status, DateTime?createdDate) : base() { this._shipmentId = shipmentId; this._shipFromAddress = shipFromAddress; this._shipToAddress = shipToAddress; this._packageDimensions = packageDimensions; this._weight = weight; this._shippingService = shippingService; this._status = status; this._createdDate = createdDate; }
public override void ReadFragmentFrom(IMwsReader reader) { _shipmentId = reader.Read <string>("ShipmentId"); _amazonOrderId = reader.Read <string>("AmazonOrderId"); _sellerOrderId = reader.Read <string>("SellerOrderId"); _itemList = reader.ReadList <Item>("ItemList", "Item"); _shipFromAddress = reader.Read <Address>("ShipFromAddress"); _shipToAddress = reader.Read <Address>("ShipToAddress"); _packageDimensions = reader.Read <PackageDimensions>("PackageDimensions"); _weight = reader.Read <Weight>("Weight"); _insurance = reader.Read <CurrencyAmount>("Insurance"); _shippingService = reader.Read <ShippingService>("ShippingService"); _label = reader.Read <Label>("Label"); _status = reader.Read <string>("Status"); _trackingId = reader.Read <string>("TrackingId"); _createdDate = reader.Read <DateTime?>("CreatedDate"); _lastUpdatedDate = reader.Read <DateTime?>("LastUpdatedDate"); }
/// <summary> /// Sets the ShippingService property. /// </summary> /// <param name="shippingService">ShippingService property.</param> /// <returns>this instance.</returns> public Shipment WithShippingService(ShippingService shippingService) { this._shippingService = shippingService; return(this); }