-
Notifications
You must be signed in to change notification settings - Fork 87
Expand file tree
/
Copy pathadditionalDataLevel23.ts
More file actions
196 lines (188 loc) · 9.89 KB
/
additionalDataLevel23.ts
File metadata and controls
196 lines (188 loc) · 9.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
/*
* The version of the OpenAPI document: v71
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit this class manually.
*/
export class AdditionalDataLevel23 {
/**
* The reference number to identify the customer and their order. * Encoding: ASCII * Max length: 25 characters * Must not start with a space or be all spaces. * Must not be all zeros.
*/
"enhancedSchemeData_customerReference"?: string;
/**
* The three-letter [ISO 3166-1 alpha-3 country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. * Encoding: ASCII * Fixed length: 3 characters
*/
"enhancedSchemeData_destinationCountryCode"?: string;
/**
* The postal code of the destination address. * Encoding: ASCII * Max length: 10 characters * Must not start with a space. * For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5.
*/
"enhancedSchemeData_destinationPostalCode"?: string;
/**
* The state or province code of the destination address. * Encoding: ASCII * Max length: 3 characters * Must not start with a space.
*/
"enhancedSchemeData_destinationStateProvinceCode"?: string;
/**
* The duty tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters
*/
"enhancedSchemeData_dutyAmount"?: string;
/**
* The shipping amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters
*/
"enhancedSchemeData_freightAmount"?: string;
/**
* 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.
*/
"enhancedSchemeData_itemDetailLine_itemNr_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 be blank. * Must not start with a space or be all spaces. * Must not be all zeros.
*/
"enhancedSchemeData_itemDetailLine_itemNr_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 length: 12 characters
*/
"enhancedSchemeData_itemDetailLine_itemNr_discountAmount"?: string;
/**
* 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 * Must not start with a space or be all spaces. * Must not be all zeros.
*/
"enhancedSchemeData_itemDetailLine_itemNr_productCode"?: string;
/**
* The number of items. Must be an integer greater than zero. * Encoding: Numeric * Max length: 12 characters * Must not start with a space or be all spaces.
*/
"enhancedSchemeData_itemDetailLine_itemNr_quantity"?: string;
/**
* The total amount for the line item, in [minor units](https://docs.adyen.com/development-resources/currency-codes). 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. * For example, 2000 means USD 20.00. * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros.
*/
"enhancedSchemeData_itemDetailLine_itemNr_totalAmount"?: string;
/**
* The unit of measurement for an item. * Encoding: ASCII * Max length: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros.
*/
"enhancedSchemeData_itemDetailLine_itemNr_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 length: 12 characters * Must not be all zeros.
*/
"enhancedSchemeData_itemDetailLine_itemNr_unitPrice"?: string;
/**
* The order date. * Format: `ddMMyy` * Encoding: ASCII * Max length: 6 characters
*/
"enhancedSchemeData_orderDate"?: string;
/**
* The postal code of the address where the item is shipped from. * Encoding: ASCII * Max length: 10 characters * Must not start with a space or be all spaces. * Must not be all zeros.For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5.
*/
"enhancedSchemeData_shipFromPostalCode"?: string;
/**
* The amount of state or provincial [tax included in the total transaction amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * For L2 data: must not be all zeroes. * For L3 data: can be zero.
*/
"enhancedSchemeData_totalTaxAmount"?: string;
static readonly discriminator: string | undefined = undefined;
static readonly mapping: {[index: string]: string} | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
{
"name": "enhancedSchemeData_customerReference",
"baseName": "enhancedSchemeData.customerReference",
"type": "string",
"format": ""
},
{
"name": "enhancedSchemeData_destinationCountryCode",
"baseName": "enhancedSchemeData.destinationCountryCode",
"type": "string",
"format": ""
},
{
"name": "enhancedSchemeData_destinationPostalCode",
"baseName": "enhancedSchemeData.destinationPostalCode",
"type": "string",
"format": ""
},
{
"name": "enhancedSchemeData_destinationStateProvinceCode",
"baseName": "enhancedSchemeData.destinationStateProvinceCode",
"type": "string",
"format": ""
},
{
"name": "enhancedSchemeData_dutyAmount",
"baseName": "enhancedSchemeData.dutyAmount",
"type": "string",
"format": ""
},
{
"name": "enhancedSchemeData_freightAmount",
"baseName": "enhancedSchemeData.freightAmount",
"type": "string",
"format": ""
},
{
"name": "enhancedSchemeData_itemDetailLine_itemNr_commodityCode",
"baseName": "enhancedSchemeData.itemDetailLine[itemNr].commodityCode",
"type": "string",
"format": ""
},
{
"name": "enhancedSchemeData_itemDetailLine_itemNr_description",
"baseName": "enhancedSchemeData.itemDetailLine[itemNr].description",
"type": "string",
"format": ""
},
{
"name": "enhancedSchemeData_itemDetailLine_itemNr_discountAmount",
"baseName": "enhancedSchemeData.itemDetailLine[itemNr].discountAmount",
"type": "string",
"format": ""
},
{
"name": "enhancedSchemeData_itemDetailLine_itemNr_productCode",
"baseName": "enhancedSchemeData.itemDetailLine[itemNr].productCode",
"type": "string",
"format": ""
},
{
"name": "enhancedSchemeData_itemDetailLine_itemNr_quantity",
"baseName": "enhancedSchemeData.itemDetailLine[itemNr].quantity",
"type": "string",
"format": ""
},
{
"name": "enhancedSchemeData_itemDetailLine_itemNr_totalAmount",
"baseName": "enhancedSchemeData.itemDetailLine[itemNr].totalAmount",
"type": "string",
"format": ""
},
{
"name": "enhancedSchemeData_itemDetailLine_itemNr_unitOfMeasure",
"baseName": "enhancedSchemeData.itemDetailLine[itemNr].unitOfMeasure",
"type": "string",
"format": ""
},
{
"name": "enhancedSchemeData_itemDetailLine_itemNr_unitPrice",
"baseName": "enhancedSchemeData.itemDetailLine[itemNr].unitPrice",
"type": "string",
"format": ""
},
{
"name": "enhancedSchemeData_orderDate",
"baseName": "enhancedSchemeData.orderDate",
"type": "string",
"format": ""
},
{
"name": "enhancedSchemeData_shipFromPostalCode",
"baseName": "enhancedSchemeData.shipFromPostalCode",
"type": "string",
"format": ""
},
{
"name": "enhancedSchemeData_totalTaxAmount",
"baseName": "enhancedSchemeData.totalTaxAmount",
"type": "string",
"format": ""
} ];
static getAttributeTypeMap() {
return AdditionalDataLevel23.attributeTypeMap;
}
public constructor() {
}
}