/// <summary> /// Initializes a new instance of the <see cref="Vasv2taxOrderInformationLineItems" /> class. /// </summary> /// <param name="ProductSKU">Product identifier code. Also known as the Stock Keeping Unit (SKU) code for the product. For an authorization or capture transaction (`processingOptions.capture` is set to `true` or `false`), this field is required when `orderInformation.lineItems[].productCode` is not set to **default** or one of the other values that are related to shipping and/or handling. #### Tax Calculation Optional field for U.S. and Canadian taxes. Not applicable to international and value added taxes. For an authorization or capture transaction (`processingOptions.capture` is set to `true` or `false`), this field is required when `orderInformation.lineItems[].productCode` is not `default` or one of the values related to shipping and/or handling. .</param> /// <param name="ProductCode">Type of product. The value for this field is used to identify the product category (electronic, handling, physical, service, or shipping). The default value is `default`. If you are performing an authorization transaction (`processingOptions.capture` is set to `false`), and you set this field to a value other than `default` or one of the values related to shipping and/or handling, then `orderInformation.lineItems[].quantity`, `orderInformation.lineItems[].productName`, and `orderInformation.lineItems[].productSku` fields are required. Optional field. For details, see the `product_code` field description in the [Credit Card Services Using the SCMP API Guide](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/). #### Tax Calculation Optional field for U.S., Canadian, international tax, and value added taxes. To use the tax calculation service, use values listed in the Tax Product Code Guide. For information about this document, contact customer support. See \"Product Codes,\" page 14, for more information. .</param> /// <param name="Quantity">Number of units for this order. Must be a non-negative integer. The default is `1`. For an authorization or capture transaction (`processingOptions.capture` is set to `true` or `false`), this field is required when `orderInformation.lineItems[].productCode` is not `default` or one of the other values related to shipping and/or handling. #### Tax Calculation Optional field for U.S., Canadian, international tax, and value added taxes. .</param> /// <param name="ProductName">For an authorization or capture transaction (`processingOptions.capture` is `true` or `false`), this field is required when `orderInformation.lineItems[].productCode` is not `default` or one of the other values that are related to shipping and/or handling. #### Tax Calculation Optional field for U.S., Canadian, international tax, and value added taxes. .</param> /// <param name="UnitPrice">Per-item price of the product. This value for this field cannot be negative. You must include either this field or the request-level field `orderInformation.amountDetails.totalAmount` in your request. You can include a decimal point (.), but you cannot include any other special characters. The value is truncated to the correct number of decimal places. #### DCC with a Third-Party Provider Set this field to the converted amount that was returned by the DCC provider. You must include either the 1st line item in the order and this field, or the request-level field `orderInformation.amountDetails.totalAmount` in your request. #### FDMS South If you accept IDR or CLP currencies, see the entry for FDMS South in the [Merchant Descriptors Using the SCMP API Guide.] (https://apps.cybersource.com/library/documentation/dev_guides/Merchant_Descriptors_SCMP_API/html/) #### Tax Calculation Required field for U.S., Canadian, international and value added taxes. #### Zero Amount Authorizations If your processor supports zero amount authorizations, you can set this field to 0 for the authorization to check if the card is lost or stolen. #### Maximum Field Lengths For GPN and JCN Gateway: Decimal (10) All other processors: Decimal (15) .</param> /// <param name="TaxAmount">Total tax to apply to the product. This value cannot be negative. The tax amount and the offer amount must be in the same currency. The tax amount field is additive. The following example uses a two-exponent currency such as USD: 1. You include each line item in your request. ..- 1st line item has amount=10.00, quantity=1, and taxAmount=0.80 ..- 2nd line item has amount=20.00, quantity=1, and taxAmount=1.60 2. The total amount authorized will be 32.40, not 30.00 with 2.40 of tax included. Optional field. #### Airlines processing Tax portion of the order amount. This value cannot exceed 99999999999999 (fourteen 9s). Format: English characters only. Optional request field for a line item. #### Tax Calculation Optional field for U.S., Canadian, international tax, and value added taxes. Note if you send this field in your tax request, the value in the field will override the tax engine .</param> /// <param name="OrderAcceptance">OrderAcceptance.</param> /// <param name="OrderOrigin">OrderOrigin.</param> /// <param name="ShipFromCountry">Country from which the order is shipped. This field is used only when `orderInformation.shippingDetails.shipFromLocality` and `orderInformation.shippingDetails.shipFromAdministrativeArea` are present. Use the [ISO Standard Country Codes](http://apps.cybersource.com/library/documentation/sbc/quickref/countries_alpha_list.pdf). **NOTE** If this field appears in a `lineItems` object, then the value of this field in the `lineItems` object overrides the value of the corresponding field at the request-level or order-level object. #### Tax Calculation This field is used to determine tax rules and/ or rates applied to the transaction based on sourcing. Optional for U.S., Canadian, international tax, and value added taxes. .</param> /// <param name="ShipFromAdministrativeArea">State from which the order is shipped. This field is used only when `orderInformation.shippingDetails.shipFromLocality` and `orderInformation.shippingDetails.shipFromCountry` are present. Use the [State, Province, and Territory Codes for the United States and Canada](http://apps.cybersource.com/library/documentation/sbc/quickref/states_and_provinces.pdf). **NOTE** If this field appears in a `lineItems` object, then the value of this field in the `lineItems` object overrides the value of the corresponding field at the request-level or order-level object. #### Tax Calculation This field is used to determine tax rules and/or rates applied to the transaction based on sourcing. Optional for U.S. and Canadian taxes. Not applicable to international and value added taxes. .</param> /// <param name="ShipFromLocality">City where the product is shipped from. This field is used only when the `orderInformation.shipTo.administrativeArea` and `orderInformation.shipTo.country` fields are present. **NOTE** If this field appears in a `lineItems` object, then the value of this field in the `lineItems` object overrides the value of the corresponding field at the request-level or order-level object. #### Tax Calculation This field is used to determine tax rules and/or rates applied to the transaction based on sourcing. Optional for U.S. and Canadian taxes. Not applicable to international and value added taxes. .</param> /// <param name="ShipFromPostalCode">Postal code where the product is shipped from. #### Tax Calculation This field is used to determine tax rules and/or rates applied to the transaction based on sourcing. Optional for U.S. and Canadian taxes. Not applicable to international and value added taxes. .</param> /// <param name="BuyerVatRegistrationNumber">Buyer’s VAT registration number. **NOTE** If this field appears in a `lineItems` object, then the value of this field in the `lineItems` object overrides the value of the corresponding field at the request-level or order-level object. #### Tax Calculation Optional field for international and value added taxes only. Not applicable to U.S. and Canadian taxes. .</param> /// <param name="SellerVatRegistrationNumber">VAT seller registration number. For details, see \"International Taxes and Value-Added Tax (VAT)\" in [Tax Calculation Service Using the SCMP API](https://apps.cybersource.com/library/documentation/dev_guides/Tax_SCMP_API/html/). **NOTE** If this field appears in a `lineItems` object, then the value of this field in the `lineItems` object overrides the value of the corresponding field at the request-level or order-level object. #### Tax Calculation Optional field for international and value added taxes only. Not applicable to U.S. and Canadian taxes. .</param> public Vasv2taxOrderInformationLineItems(string ProductSKU = default(string), string ProductCode = default(string), int?Quantity = default(int?), string ProductName = default(string), string UnitPrice = default(string), string TaxAmount = default(string), Vasv2taxOrderInformationOrderAcceptance OrderAcceptance = default(Vasv2taxOrderInformationOrderAcceptance), Vasv2taxOrderInformationOrderOrigin OrderOrigin = default(Vasv2taxOrderInformationOrderOrigin), string ShipFromCountry = default(string), string ShipFromAdministrativeArea = default(string), string ShipFromLocality = default(string), string ShipFromPostalCode = default(string), string BuyerVatRegistrationNumber = default(string), string SellerVatRegistrationNumber = default(string)) { this.ProductSKU = ProductSKU; this.ProductCode = ProductCode; this.Quantity = Quantity; this.ProductName = ProductName; this.UnitPrice = UnitPrice; this.TaxAmount = TaxAmount; this.OrderAcceptance = OrderAcceptance; this.OrderOrigin = OrderOrigin; this.ShipFromCountry = ShipFromCountry; this.ShipFromAdministrativeArea = ShipFromAdministrativeArea; this.ShipFromLocality = ShipFromLocality; this.ShipFromPostalCode = ShipFromPostalCode; this.BuyerVatRegistrationNumber = BuyerVatRegistrationNumber; this.SellerVatRegistrationNumber = SellerVatRegistrationNumber; }
/// <summary> /// Initializes a new instance of the <see cref="Vasv2taxOrderInformation" /> class. /// </summary> /// <param name="AmountDetails">AmountDetails.</param> /// <param name="BillTo">BillTo.</param> /// <param name="ShippingDetails">ShippingDetails.</param> /// <param name="ShipTo">ShipTo.</param> /// <param name="LineItems">LineItems.</param> /// <param name="InvoiceDetails">InvoiceDetails.</param> /// <param name="OrderAcceptance">OrderAcceptance.</param> /// <param name="OrderOrigin">OrderOrigin.</param> public Vasv2taxOrderInformation(RiskV1DecisionsPost201ResponseOrderInformationAmountDetails AmountDetails = default(RiskV1DecisionsPost201ResponseOrderInformationAmountDetails), Vasv2taxOrderInformationBillTo BillTo = default(Vasv2taxOrderInformationBillTo), Vasv2taxOrderInformationShippingDetails ShippingDetails = default(Vasv2taxOrderInformationShippingDetails), Vasv2taxOrderInformationShipTo ShipTo = default(Vasv2taxOrderInformationShipTo), List <Vasv2taxOrderInformationLineItems> LineItems = default(List <Vasv2taxOrderInformationLineItems>), Vasv2taxOrderInformationInvoiceDetails InvoiceDetails = default(Vasv2taxOrderInformationInvoiceDetails), Vasv2taxOrderInformationOrderAcceptance OrderAcceptance = default(Vasv2taxOrderInformationOrderAcceptance), Vasv2taxOrderInformationOrderOrigin OrderOrigin = default(Vasv2taxOrderInformationOrderOrigin)) { this.AmountDetails = AmountDetails; this.BillTo = BillTo; this.ShippingDetails = ShippingDetails; this.ShipTo = ShipTo; this.LineItems = LineItems; this.InvoiceDetails = InvoiceDetails; this.OrderAcceptance = OrderAcceptance; this.OrderOrigin = OrderOrigin; }