/// <summary> /// Initializes a new instance of the <see cref="MerchantSingleOrderReturnLineResponse" /> class. /// </summary> /// <param name="merchantProductNo">The unique product reference used by the Merchant (sku)..</param> /// <param name="acceptedQuantity">The accepted quantity of returned products in this orderline..</param> /// <param name="rejectedQuantity">The rejected quantity of returned products in this orderline..</param> /// <param name="orderLine">orderLine.</param> /// <param name="shipmentStatus">shipmentStatus.</param> /// <param name="quantity">Number of items of the product in this return. (required).</param> public MerchantSingleOrderReturnLineResponse(string merchantProductNo = default(string), int?acceptedQuantity = default(int?), int?rejectedQuantity = default(int?), MerchantOrderLineResponse orderLine = default(MerchantOrderLineResponse), ShipmentLineStatus?shipmentStatus = default(ShipmentLineStatus?), int quantity = default(int)) { this.Quantity = quantity; this.MerchantProductNo = merchantProductNo; this.AcceptedQuantity = acceptedQuantity; this.RejectedQuantity = rejectedQuantity; this.OrderLine = orderLine; this.ShipmentStatus = shipmentStatus; }
/// <summary> /// Initializes a new instance of the <see cref="MerchantShipmentLineResponse" /> class. /// </summary> /// <param name="merchantProductNo">The unique product reference used by the Merchant. (required).</param> /// <param name="channelProductNo">The unique product reference used by the Channel..</param> /// <param name="orderLine">orderLine.</param> /// <param name="shipmentStatus">shipmentStatus.</param> /// <param name="extraData">Extra data on the shipment line. Each item must have an unqiue key.</param> /// <param name="quantity">Number of items of the product in the shipment. (required).</param> public MerchantShipmentLineResponse(string merchantProductNo = default(string), string channelProductNo = default(string), MerchantOrderLineResponse orderLine = default(MerchantOrderLineResponse), ShipmentLineStatus?shipmentStatus = default(ShipmentLineStatus?), Dictionary <string, string> extraData = default(Dictionary <string, string>), int quantity = default(int)) { // to ensure "merchantProductNo" is required (not null) if (merchantProductNo == null) { throw new ArgumentNullException("merchantProductNo is a required property for MerchantShipmentLineResponse and cannot be null"); } this.MerchantProductNo = merchantProductNo; this.Quantity = quantity; this.ChannelProductNo = channelProductNo; this.OrderLine = orderLine; this.ShipmentStatus = shipmentStatus; this.ExtraData = extraData; }
/// <summary> /// Initializes a new instance of the <see cref="MerchantReturnLineResponse" /> class. /// </summary> /// <param name="merchantProductNo">The unique product reference used by the Merchant (sku)..</param> /// <param name="orderLine">orderLine.</param> /// <param name="shipmentStatus">shipmentStatus.</param> /// <param name="quantity">Number of items of the product in this return. (required).</param> public MerchantReturnLineResponse(string merchantProductNo = default(string), MerchantOrderLineResponse orderLine = default(MerchantOrderLineResponse), ShipmentLineStatus?shipmentStatus = default(ShipmentLineStatus?), int quantity = default(int)) { this.Quantity = quantity; this.MerchantProductNo = merchantProductNo; this.OrderLine = orderLine; this.ShipmentStatus = shipmentStatus; }