UNPKG

@paciolan/cybersource-sdk

Version:
37 lines (36 loc) 2.22 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. */ /** * Contains all of the shipping-related fields for the invoice. * @export * @interface Invoicingv2invoicesOrderInformationAmountDetailsFreight */ export interface Invoicingv2invoicesOrderInformationAmountDetailsFreight { /** * Total freight or shipping and handling charges for the order. When you include this field in your request, you must also include the **totalAmount** field. For processor-specific information, see the freight_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) * @type {string} * @memberof Invoicingv2invoicesOrderInformationAmountDetailsFreight */ amount?: string; /** * Flag that indicates whether an order is taxable. This value must be true if the sum of all _lineItems[].taxAmount_ values > 0. If you do not include any `lineItems[].taxAmount` values in your request, CyberSource does not include `invoiceDetails.taxable` in the data it sends to the processor. For processor-specific information, see the `tax_indicator` field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) Possible values: - **true** - **false** * @type {boolean} * @memberof Invoicingv2invoicesOrderInformationAmountDetailsFreight */ taxable?: boolean; /** * Shipping Tax rate applied to the freight amount. **Visa**: Valid range is 0.01 to 0.99 (1% to 99%, with only whole percentage values accepted; values with additional decimal places will be truncated). **Mastercard**: Valid range is 0.00001 to 0.99999 (0.001% to 99.999%). * @type {string} * @memberof Invoicingv2invoicesOrderInformationAmountDetailsFreight */ taxRate?: string; }