UNPKG

@paciolan/cybersource-sdk

Version:
61 lines (60 loc) 3.66 kB
/** * CyberSource Merged Spec * All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html * * OpenAPI spec version: 0.0.1 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ /** * * @export * @interface TssV2TransactionsGet200ResponseOrderInformationLineItems */ export interface TssV2TransactionsGet200ResponseOrderInformationLineItems { /** * Type of product. This value is used to determine the category that the product is in: electronic, handling, physical, service, or shipping. The default value is **default**. For a payment, when you set this field to a value other than default or any of the values related to shipping and handling, below fields _quantity_, _productName_, and _productSKU_ are required. * @type {string} * @memberof TssV2TransactionsGet200ResponseOrderInformationLineItems */ productCode?: string; /** * For PAYMENT and CAPTURE API, this field is required when above _productCode_ is not **default** or one of the values related to shipping and handling. * @type {string} * @memberof TssV2TransactionsGet200ResponseOrderInformationLineItems */ productName?: string; /** * Identification code for the product. For Payment and Capture APIs, this field is required when above `productCode` is not **default** or one of the values related to shipping and/or handling. * @type {string} * @memberof TssV2TransactionsGet200ResponseOrderInformationLineItems */ productSku?: string; /** * 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. This field is frequently used for Level II and Level III transactions. For details, see `tax_amount` field description in [Level II and Level III Processing Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html/) * @type {string} * @memberof TssV2TransactionsGet200ResponseOrderInformationLineItems */ taxAmount?: string; /** * For a payment or capture, this field is required when _productCode_ is not **default** or one of the values related to shipping and handling. * @type {number} * @memberof TssV2TransactionsGet200ResponseOrderInformationLineItems */ quantity?: number; /** * Per-item price of the product. This value cannot be negative. You can include a decimal point (.), but you cannot include any other special characters. CyberSource truncates the amount to the correct number of decimal places. For processor-specific information, see the amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) * @type {string} * @memberof TssV2TransactionsGet200ResponseOrderInformationLineItems */ unitPrice?: string; /** * The description for this field is not available. * @type {string} * @memberof TssV2TransactionsGet200ResponseOrderInformationLineItems */ fulfillmentType?: string; }