-
Notifications
You must be signed in to change notification settings - Fork 73
/
Copy pathdeliveryAddress.ts
84 lines (78 loc) · 2.36 KB
/
deliveryAddress.ts
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
/*
* The version of the OpenAPI document: v2
*
*
* 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 DeliveryAddress {
/**
* The name of the city.
*/
'city'?: string;
/**
* The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If you don\'t know the country or are not collecting the country from the shopper, provide `country` as `ZZ`.
*/
'country': string;
/**
* The name of the street. Do not include the number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**.
*/
'line1'?: string;
/**
* The number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **6-50**.
*/
'line2'?: string;
/**
* Additional information about the delivery address.
*/
'line3'?: string;
/**
* The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries.
*/
'postalCode'?: string;
/**
* The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada.
*/
'stateOrProvince'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "city",
"baseName": "city",
"type": "string"
},
{
"name": "country",
"baseName": "country",
"type": "string"
},
{
"name": "line1",
"baseName": "line1",
"type": "string"
},
{
"name": "line2",
"baseName": "line2",
"type": "string"
},
{
"name": "line3",
"baseName": "line3",
"type": "string"
},
{
"name": "postalCode",
"baseName": "postalCode",
"type": "string"
},
{
"name": "stateOrProvince",
"baseName": "stateOrProvince",
"type": "string"
} ];
static getAttributeTypeMap() {
return DeliveryAddress.attributeTypeMap;
}
}