@adyen/api-library
Version:
The Adyen API Library for NodeJS enables you to work with Adyen APIs.
52 lines (51 loc) • 3 kB
TypeScript
export declare class ItemDetailLine {
/**
* The code that identifies the item in a standardized commodity coding scheme. There are different commodity coding schemes: * [UNSPSC commodity codes](https://www.ungm.org/public/unspsc) * [HS commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity codes](https://www.census.gov/naics/) * [NAPCS commodity codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros.
*/
"commodityCode"?: string;
/**
* A description of the item, that provides details about the purchase. For Visa transactions with level 3 ESD, the description must not be the same or very similar to your merchant name, or, consist only of common words like \"product\", or \"service\". * Encoding: ASCII * Max length: 26 characters * Must not be a single character. * Must not be blank. * Must not be all special characters. * Must not start with a space or be all spaces. * Must not be all zeros.
*/
"description"?: string;
/**
* The discount amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000
*/
"discountAmount"?: number;
/**
* The product code. Must be a unique product code associated with the item or service. This can be your unique code for the item, or the manufacturer\'s product code. * Encoding: ASCII. * Max length: 12 characters
*/
"productCode"?: string;
/**
* The number of items. Must be an integer greater than zero. * Encoding: Numeric * Max value: 9999
*/
"quantity"?: number;
/**
* The total amount for the line item, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000 See [Amount requirements for level 2/3 ESD](https://docs.adyen.com//payment-methods/cards/enhanced-scheme-data/l2-l3#amount-requirements) to learn more about how to calculate the line item total.
*/
"totalAmount"?: number;
/**
* The unit of measurement for an item. * Encoding: ASCII * Max length: 3 characters
*/
"unitOfMeasure"?: string;
/**
* The unit price, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000
*/
"unitPrice"?: number;
static readonly discriminator: string | undefined;
static readonly mapping: {
[]: string;
} | undefined;
static readonly attributeTypeMap: Array<{
name: string;
baseName: string;
type: string;
format: string;
}>;
static getAttributeTypeMap(): {
name: string;
baseName: string;
type: string;
format: string;
}[];
constructor();
}