@zippendo/sdk 1.3.3 → 1.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/models/CreateAddressRequest.d.ts +11 -5
- package/dist/esm/models/CreateAddressRequest.js +5 -5
- package/dist/esm/models/ListAddresses200ResponseDataInner.d.ts +9 -3
- package/dist/esm/models/ListAddresses200ResponseDataInner.js +4 -0
- package/dist/esm/models/ListShipments200ResponseDataInnerAddress.d.ts +9 -3
- package/dist/esm/models/ListShipments200ResponseDataInnerAddress.js +4 -0
- package/dist/esm/models/UpdateAddressRequest.d.ts +13 -7
- package/dist/esm/models/UpdateAddressRequest.js +5 -3
- package/dist/models/CreateAddressRequest.d.ts +11 -5
- package/dist/models/CreateAddressRequest.js +5 -5
- package/dist/models/ListAddresses200ResponseDataInner.d.ts +9 -3
- package/dist/models/ListAddresses200ResponseDataInner.js +4 -0
- package/dist/models/ListShipments200ResponseDataInnerAddress.d.ts +9 -3
- package/dist/models/ListShipments200ResponseDataInnerAddress.js +4 -0
- package/dist/models/UpdateAddressRequest.d.ts +13 -7
- package/dist/models/UpdateAddressRequest.js +5 -3
- package/docs/AddressesApi.md +2 -2
- package/docs/CreateAddressRequest.md +4 -2
- package/docs/ListAddresses200ResponseDataInner.md +3 -1
- package/docs/ListShipments200ResponseDataInnerAddress.md +3 -1
- package/docs/UpdateAddressRequest.md +3 -1
- package/package.json +1 -1
- package/src/models/CreateAddressRequest.ts +16 -9
- package/src/models/ListAddresses200ResponseDataInner.ts +12 -3
- package/src/models/ListShipments200ResponseDataInnerAddress.ts +12 -3
- package/src/models/UpdateAddressRequest.ts +18 -10
|
@@ -16,17 +16,23 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface CreateAddressRequest {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Company or person the parcel is sent from, printed on labels
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof CreateAddressRequest
|
|
22
22
|
*/
|
|
23
23
|
name: string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Internal label for this address; never printed or sent to a carrier
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof CreateAddressRequest
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
description?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
* Contact person at this address, printed as the att. line
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CreateAddressRequest
|
|
34
|
+
*/
|
|
35
|
+
attContact?: string | null;
|
|
30
36
|
/**
|
|
31
37
|
* Address line 1
|
|
32
38
|
* @type {string}
|
|
@@ -38,7 +44,7 @@ export interface CreateAddressRequest {
|
|
|
38
44
|
* @type {string}
|
|
39
45
|
* @memberof CreateAddressRequest
|
|
40
46
|
*/
|
|
41
|
-
address2?: string;
|
|
47
|
+
address2?: string | null;
|
|
42
48
|
/**
|
|
43
49
|
* Postal/ZIP code
|
|
44
50
|
* @type {string}
|
|
@@ -68,7 +74,7 @@ export interface CreateAddressRequest {
|
|
|
68
74
|
* @type {string}
|
|
69
75
|
* @memberof CreateAddressRequest
|
|
70
76
|
*/
|
|
71
|
-
state?: string;
|
|
77
|
+
state?: string | null;
|
|
72
78
|
/**
|
|
73
79
|
* Email address
|
|
74
80
|
* @type {string}
|
|
@@ -25,8 +25,6 @@ export const CreateAddressRequestAddressTypesEnum = {
|
|
|
25
25
|
export function instanceOfCreateAddressRequest(value) {
|
|
26
26
|
if (!('name' in value) || value['name'] === undefined)
|
|
27
27
|
return false;
|
|
28
|
-
if (!('attContact' in value) || value['attContact'] === undefined)
|
|
29
|
-
return false;
|
|
30
28
|
if (!('address1' in value) || value['address1'] === undefined)
|
|
31
29
|
return false;
|
|
32
30
|
if (!('zipcode' in value) || value['zipcode'] === undefined)
|
|
@@ -50,14 +48,15 @@ export function CreateAddressRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
48
|
}
|
|
51
49
|
return {
|
|
52
50
|
'name': json['name'],
|
|
53
|
-
'
|
|
51
|
+
'description': json['description'] === undefined ? undefined : json['description'] === null ? null : json['description'],
|
|
52
|
+
'attContact': json['attContact'] === undefined ? undefined : json['attContact'] === null ? null : json['attContact'],
|
|
54
53
|
'address1': json['address1'],
|
|
55
|
-
'address2': json['address2']
|
|
54
|
+
'address2': json['address2'] === undefined ? undefined : json['address2'] === null ? null : json['address2'],
|
|
56
55
|
'zipcode': json['zipcode'],
|
|
57
56
|
'city': json['city'],
|
|
58
57
|
'phone': json['phone'],
|
|
59
58
|
'countryCode': json['countryCode'],
|
|
60
|
-
'state': json['state']
|
|
59
|
+
'state': json['state'] === undefined ? undefined : json['state'] === null ? null : json['state'],
|
|
61
60
|
'email': json['email'],
|
|
62
61
|
'customs': json['customs'] == null ? undefined : json['customs'],
|
|
63
62
|
'addressTypes': json['addressTypes'] == null ? undefined : json['addressTypes'],
|
|
@@ -73,6 +72,7 @@ export function CreateAddressRequestToJSONTyped(value, ignoreDiscriminator = fal
|
|
|
73
72
|
}
|
|
74
73
|
return {
|
|
75
74
|
'name': value['name'],
|
|
75
|
+
'description': value['description'],
|
|
76
76
|
'attContact': value['attContact'],
|
|
77
77
|
'address1': value['address1'],
|
|
78
78
|
'address2': value['address2'],
|
|
@@ -22,17 +22,23 @@ export interface ListAddresses200ResponseDataInner {
|
|
|
22
22
|
*/
|
|
23
23
|
id: string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Company or person the parcel is sent from, printed on labels
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof ListAddresses200ResponseDataInner
|
|
28
28
|
*/
|
|
29
29
|
name: string;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Internal label for this address; never printed or sent to a carrier
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof ListAddresses200ResponseDataInner
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
description: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* Contact person at this address, printed as the att. line
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ListAddresses200ResponseDataInner
|
|
40
|
+
*/
|
|
41
|
+
attContact: string | null;
|
|
36
42
|
/**
|
|
37
43
|
* Address line 1
|
|
38
44
|
* @type {string}
|
|
@@ -27,6 +27,8 @@ export function instanceOfListAddresses200ResponseDataInner(value) {
|
|
|
27
27
|
return false;
|
|
28
28
|
if (!('name' in value) || value['name'] === undefined)
|
|
29
29
|
return false;
|
|
30
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
31
|
+
return false;
|
|
30
32
|
if (!('attContact' in value) || value['attContact'] === undefined)
|
|
31
33
|
return false;
|
|
32
34
|
if (!('address1' in value) || value['address1'] === undefined)
|
|
@@ -67,6 +69,7 @@ export function ListAddresses200ResponseDataInnerFromJSONTyped(json, ignoreDiscr
|
|
|
67
69
|
return {
|
|
68
70
|
'id': json['id'],
|
|
69
71
|
'name': json['name'],
|
|
72
|
+
'description': json['description'],
|
|
70
73
|
'attContact': json['attContact'],
|
|
71
74
|
'address1': json['address1'],
|
|
72
75
|
'address2': json['address2'],
|
|
@@ -94,6 +97,7 @@ export function ListAddresses200ResponseDataInnerToJSONTyped(value, ignoreDiscri
|
|
|
94
97
|
return {
|
|
95
98
|
'id': value['id'],
|
|
96
99
|
'name': value['name'],
|
|
100
|
+
'description': value['description'],
|
|
97
101
|
'attContact': value['attContact'],
|
|
98
102
|
'address1': value['address1'],
|
|
99
103
|
'address2': value['address2'],
|
|
@@ -22,17 +22,23 @@ export interface ListShipments200ResponseDataInnerAddress {
|
|
|
22
22
|
*/
|
|
23
23
|
id: string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Company or person the parcel is sent from, printed on labels
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof ListShipments200ResponseDataInnerAddress
|
|
28
28
|
*/
|
|
29
29
|
name: string;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Internal label for this address; never printed or sent to a carrier
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof ListShipments200ResponseDataInnerAddress
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
description: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* Contact person at this address, printed as the att. line
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ListShipments200ResponseDataInnerAddress
|
|
40
|
+
*/
|
|
41
|
+
attContact: string | null;
|
|
36
42
|
/**
|
|
37
43
|
* Address line 1
|
|
38
44
|
* @type {string}
|
|
@@ -27,6 +27,8 @@ export function instanceOfListShipments200ResponseDataInnerAddress(value) {
|
|
|
27
27
|
return false;
|
|
28
28
|
if (!('name' in value) || value['name'] === undefined)
|
|
29
29
|
return false;
|
|
30
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
31
|
+
return false;
|
|
30
32
|
if (!('attContact' in value) || value['attContact'] === undefined)
|
|
31
33
|
return false;
|
|
32
34
|
if (!('address1' in value) || value['address1'] === undefined)
|
|
@@ -67,6 +69,7 @@ export function ListShipments200ResponseDataInnerAddressFromJSONTyped(json, igno
|
|
|
67
69
|
return {
|
|
68
70
|
'id': json['id'],
|
|
69
71
|
'name': json['name'],
|
|
72
|
+
'description': json['description'],
|
|
70
73
|
'attContact': json['attContact'],
|
|
71
74
|
'address1': json['address1'],
|
|
72
75
|
'address2': json['address2'],
|
|
@@ -94,6 +97,7 @@ export function ListShipments200ResponseDataInnerAddressToJSONTyped(value, ignor
|
|
|
94
97
|
return {
|
|
95
98
|
'id': value['id'],
|
|
96
99
|
'name': value['name'],
|
|
100
|
+
'description': value['description'],
|
|
97
101
|
'attContact': value['attContact'],
|
|
98
102
|
'address1': value['address1'],
|
|
99
103
|
'address2': value['address2'],
|
|
@@ -16,17 +16,23 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface UpdateAddressRequest {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Company or person the parcel is sent from, printed on labels
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof UpdateAddressRequest
|
|
22
22
|
*/
|
|
23
23
|
name?: string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Internal label for this address; send null or an empty string to clear it
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof UpdateAddressRequest
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
description?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
* Contact person at this address; send null or an empty string to clear it
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof UpdateAddressRequest
|
|
34
|
+
*/
|
|
35
|
+
attContact?: string | null;
|
|
30
36
|
/**
|
|
31
37
|
* Address line 1
|
|
32
38
|
* @type {string}
|
|
@@ -34,11 +40,11 @@ export interface UpdateAddressRequest {
|
|
|
34
40
|
*/
|
|
35
41
|
address1?: string;
|
|
36
42
|
/**
|
|
37
|
-
* Address line 2
|
|
43
|
+
* Address line 2; send null or an empty string to clear it
|
|
38
44
|
* @type {string}
|
|
39
45
|
* @memberof UpdateAddressRequest
|
|
40
46
|
*/
|
|
41
|
-
address2?: string;
|
|
47
|
+
address2?: string | null;
|
|
42
48
|
/**
|
|
43
49
|
* Postal/ZIP code
|
|
44
50
|
* @type {string}
|
|
@@ -64,11 +70,11 @@ export interface UpdateAddressRequest {
|
|
|
64
70
|
*/
|
|
65
71
|
countryCode?: string;
|
|
66
72
|
/**
|
|
67
|
-
* State/Province
|
|
73
|
+
* State/Province; send null or an empty string to clear it
|
|
68
74
|
* @type {string}
|
|
69
75
|
* @memberof UpdateAddressRequest
|
|
70
76
|
*/
|
|
71
|
-
state?: string;
|
|
77
|
+
state?: string | null;
|
|
72
78
|
/**
|
|
73
79
|
* Email address
|
|
74
80
|
* @type {string}
|
|
@@ -34,14 +34,15 @@ export function UpdateAddressRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
34
|
}
|
|
35
35
|
return {
|
|
36
36
|
'name': json['name'] == null ? undefined : json['name'],
|
|
37
|
-
'
|
|
37
|
+
'description': json['description'] === undefined ? undefined : json['description'] === null ? null : json['description'],
|
|
38
|
+
'attContact': json['attContact'] === undefined ? undefined : json['attContact'] === null ? null : json['attContact'],
|
|
38
39
|
'address1': json['address1'] == null ? undefined : json['address1'],
|
|
39
|
-
'address2': json['address2']
|
|
40
|
+
'address2': json['address2'] === undefined ? undefined : json['address2'] === null ? null : json['address2'],
|
|
40
41
|
'zipcode': json['zipcode'] == null ? undefined : json['zipcode'],
|
|
41
42
|
'city': json['city'] == null ? undefined : json['city'],
|
|
42
43
|
'phone': json['phone'] == null ? undefined : json['phone'],
|
|
43
44
|
'countryCode': json['countryCode'] == null ? undefined : json['countryCode'],
|
|
44
|
-
'state': json['state']
|
|
45
|
+
'state': json['state'] === undefined ? undefined : json['state'] === null ? null : json['state'],
|
|
45
46
|
'email': json['email'] == null ? undefined : json['email'],
|
|
46
47
|
'customs': json['customs'] == null ? undefined : json['customs'],
|
|
47
48
|
'addressTypes': json['addressTypes'] == null ? undefined : json['addressTypes'],
|
|
@@ -57,6 +58,7 @@ export function UpdateAddressRequestToJSONTyped(value, ignoreDiscriminator = fal
|
|
|
57
58
|
}
|
|
58
59
|
return {
|
|
59
60
|
'name': value['name'],
|
|
61
|
+
'description': value['description'],
|
|
60
62
|
'attContact': value['attContact'],
|
|
61
63
|
'address1': value['address1'],
|
|
62
64
|
'address2': value['address2'],
|
|
@@ -16,17 +16,23 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface CreateAddressRequest {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Company or person the parcel is sent from, printed on labels
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof CreateAddressRequest
|
|
22
22
|
*/
|
|
23
23
|
name: string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Internal label for this address; never printed or sent to a carrier
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof CreateAddressRequest
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
description?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
* Contact person at this address, printed as the att. line
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CreateAddressRequest
|
|
34
|
+
*/
|
|
35
|
+
attContact?: string | null;
|
|
30
36
|
/**
|
|
31
37
|
* Address line 1
|
|
32
38
|
* @type {string}
|
|
@@ -38,7 +44,7 @@ export interface CreateAddressRequest {
|
|
|
38
44
|
* @type {string}
|
|
39
45
|
* @memberof CreateAddressRequest
|
|
40
46
|
*/
|
|
41
|
-
address2?: string;
|
|
47
|
+
address2?: string | null;
|
|
42
48
|
/**
|
|
43
49
|
* Postal/ZIP code
|
|
44
50
|
* @type {string}
|
|
@@ -68,7 +74,7 @@ export interface CreateAddressRequest {
|
|
|
68
74
|
* @type {string}
|
|
69
75
|
* @memberof CreateAddressRequest
|
|
70
76
|
*/
|
|
71
|
-
state?: string;
|
|
77
|
+
state?: string | null;
|
|
72
78
|
/**
|
|
73
79
|
* Email address
|
|
74
80
|
* @type {string}
|
|
@@ -33,8 +33,6 @@ exports.CreateAddressRequestAddressTypesEnum = {
|
|
|
33
33
|
function instanceOfCreateAddressRequest(value) {
|
|
34
34
|
if (!('name' in value) || value['name'] === undefined)
|
|
35
35
|
return false;
|
|
36
|
-
if (!('attContact' in value) || value['attContact'] === undefined)
|
|
37
|
-
return false;
|
|
38
36
|
if (!('address1' in value) || value['address1'] === undefined)
|
|
39
37
|
return false;
|
|
40
38
|
if (!('zipcode' in value) || value['zipcode'] === undefined)
|
|
@@ -58,14 +56,15 @@ function CreateAddressRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
56
|
}
|
|
59
57
|
return {
|
|
60
58
|
'name': json['name'],
|
|
61
|
-
'
|
|
59
|
+
'description': json['description'] === undefined ? undefined : json['description'] === null ? null : json['description'],
|
|
60
|
+
'attContact': json['attContact'] === undefined ? undefined : json['attContact'] === null ? null : json['attContact'],
|
|
62
61
|
'address1': json['address1'],
|
|
63
|
-
'address2': json['address2']
|
|
62
|
+
'address2': json['address2'] === undefined ? undefined : json['address2'] === null ? null : json['address2'],
|
|
64
63
|
'zipcode': json['zipcode'],
|
|
65
64
|
'city': json['city'],
|
|
66
65
|
'phone': json['phone'],
|
|
67
66
|
'countryCode': json['countryCode'],
|
|
68
|
-
'state': json['state']
|
|
67
|
+
'state': json['state'] === undefined ? undefined : json['state'] === null ? null : json['state'],
|
|
69
68
|
'email': json['email'],
|
|
70
69
|
'customs': json['customs'] == null ? undefined : json['customs'],
|
|
71
70
|
'addressTypes': json['addressTypes'] == null ? undefined : json['addressTypes'],
|
|
@@ -81,6 +80,7 @@ function CreateAddressRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
81
80
|
}
|
|
82
81
|
return {
|
|
83
82
|
'name': value['name'],
|
|
83
|
+
'description': value['description'],
|
|
84
84
|
'attContact': value['attContact'],
|
|
85
85
|
'address1': value['address1'],
|
|
86
86
|
'address2': value['address2'],
|
|
@@ -22,17 +22,23 @@ export interface ListAddresses200ResponseDataInner {
|
|
|
22
22
|
*/
|
|
23
23
|
id: string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Company or person the parcel is sent from, printed on labels
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof ListAddresses200ResponseDataInner
|
|
28
28
|
*/
|
|
29
29
|
name: string;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Internal label for this address; never printed or sent to a carrier
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof ListAddresses200ResponseDataInner
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
description: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* Contact person at this address, printed as the att. line
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ListAddresses200ResponseDataInner
|
|
40
|
+
*/
|
|
41
|
+
attContact: string | null;
|
|
36
42
|
/**
|
|
37
43
|
* Address line 1
|
|
38
44
|
* @type {string}
|
|
@@ -35,6 +35,8 @@ function instanceOfListAddresses200ResponseDataInner(value) {
|
|
|
35
35
|
return false;
|
|
36
36
|
if (!('name' in value) || value['name'] === undefined)
|
|
37
37
|
return false;
|
|
38
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
39
|
+
return false;
|
|
38
40
|
if (!('attContact' in value) || value['attContact'] === undefined)
|
|
39
41
|
return false;
|
|
40
42
|
if (!('address1' in value) || value['address1'] === undefined)
|
|
@@ -75,6 +77,7 @@ function ListAddresses200ResponseDataInnerFromJSONTyped(json, ignoreDiscriminato
|
|
|
75
77
|
return {
|
|
76
78
|
'id': json['id'],
|
|
77
79
|
'name': json['name'],
|
|
80
|
+
'description': json['description'],
|
|
78
81
|
'attContact': json['attContact'],
|
|
79
82
|
'address1': json['address1'],
|
|
80
83
|
'address2': json['address2'],
|
|
@@ -102,6 +105,7 @@ function ListAddresses200ResponseDataInnerToJSONTyped(value, ignoreDiscriminator
|
|
|
102
105
|
return {
|
|
103
106
|
'id': value['id'],
|
|
104
107
|
'name': value['name'],
|
|
108
|
+
'description': value['description'],
|
|
105
109
|
'attContact': value['attContact'],
|
|
106
110
|
'address1': value['address1'],
|
|
107
111
|
'address2': value['address2'],
|
|
@@ -22,17 +22,23 @@ export interface ListShipments200ResponseDataInnerAddress {
|
|
|
22
22
|
*/
|
|
23
23
|
id: string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Company or person the parcel is sent from, printed on labels
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof ListShipments200ResponseDataInnerAddress
|
|
28
28
|
*/
|
|
29
29
|
name: string;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Internal label for this address; never printed or sent to a carrier
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof ListShipments200ResponseDataInnerAddress
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
description: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* Contact person at this address, printed as the att. line
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ListShipments200ResponseDataInnerAddress
|
|
40
|
+
*/
|
|
41
|
+
attContact: string | null;
|
|
36
42
|
/**
|
|
37
43
|
* Address line 1
|
|
38
44
|
* @type {string}
|
|
@@ -35,6 +35,8 @@ function instanceOfListShipments200ResponseDataInnerAddress(value) {
|
|
|
35
35
|
return false;
|
|
36
36
|
if (!('name' in value) || value['name'] === undefined)
|
|
37
37
|
return false;
|
|
38
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
39
|
+
return false;
|
|
38
40
|
if (!('attContact' in value) || value['attContact'] === undefined)
|
|
39
41
|
return false;
|
|
40
42
|
if (!('address1' in value) || value['address1'] === undefined)
|
|
@@ -75,6 +77,7 @@ function ListShipments200ResponseDataInnerAddressFromJSONTyped(json, ignoreDiscr
|
|
|
75
77
|
return {
|
|
76
78
|
'id': json['id'],
|
|
77
79
|
'name': json['name'],
|
|
80
|
+
'description': json['description'],
|
|
78
81
|
'attContact': json['attContact'],
|
|
79
82
|
'address1': json['address1'],
|
|
80
83
|
'address2': json['address2'],
|
|
@@ -102,6 +105,7 @@ function ListShipments200ResponseDataInnerAddressToJSONTyped(value, ignoreDiscri
|
|
|
102
105
|
return {
|
|
103
106
|
'id': value['id'],
|
|
104
107
|
'name': value['name'],
|
|
108
|
+
'description': value['description'],
|
|
105
109
|
'attContact': value['attContact'],
|
|
106
110
|
'address1': value['address1'],
|
|
107
111
|
'address2': value['address2'],
|
|
@@ -16,17 +16,23 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface UpdateAddressRequest {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Company or person the parcel is sent from, printed on labels
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof UpdateAddressRequest
|
|
22
22
|
*/
|
|
23
23
|
name?: string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Internal label for this address; send null or an empty string to clear it
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof UpdateAddressRequest
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
description?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
* Contact person at this address; send null or an empty string to clear it
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof UpdateAddressRequest
|
|
34
|
+
*/
|
|
35
|
+
attContact?: string | null;
|
|
30
36
|
/**
|
|
31
37
|
* Address line 1
|
|
32
38
|
* @type {string}
|
|
@@ -34,11 +40,11 @@ export interface UpdateAddressRequest {
|
|
|
34
40
|
*/
|
|
35
41
|
address1?: string;
|
|
36
42
|
/**
|
|
37
|
-
* Address line 2
|
|
43
|
+
* Address line 2; send null or an empty string to clear it
|
|
38
44
|
* @type {string}
|
|
39
45
|
* @memberof UpdateAddressRequest
|
|
40
46
|
*/
|
|
41
|
-
address2?: string;
|
|
47
|
+
address2?: string | null;
|
|
42
48
|
/**
|
|
43
49
|
* Postal/ZIP code
|
|
44
50
|
* @type {string}
|
|
@@ -64,11 +70,11 @@ export interface UpdateAddressRequest {
|
|
|
64
70
|
*/
|
|
65
71
|
countryCode?: string;
|
|
66
72
|
/**
|
|
67
|
-
* State/Province
|
|
73
|
+
* State/Province; send null or an empty string to clear it
|
|
68
74
|
* @type {string}
|
|
69
75
|
* @memberof UpdateAddressRequest
|
|
70
76
|
*/
|
|
71
|
-
state?: string;
|
|
77
|
+
state?: string | null;
|
|
72
78
|
/**
|
|
73
79
|
* Email address
|
|
74
80
|
* @type {string}
|
|
@@ -42,14 +42,15 @@ function UpdateAddressRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
42
|
}
|
|
43
43
|
return {
|
|
44
44
|
'name': json['name'] == null ? undefined : json['name'],
|
|
45
|
-
'
|
|
45
|
+
'description': json['description'] === undefined ? undefined : json['description'] === null ? null : json['description'],
|
|
46
|
+
'attContact': json['attContact'] === undefined ? undefined : json['attContact'] === null ? null : json['attContact'],
|
|
46
47
|
'address1': json['address1'] == null ? undefined : json['address1'],
|
|
47
|
-
'address2': json['address2']
|
|
48
|
+
'address2': json['address2'] === undefined ? undefined : json['address2'] === null ? null : json['address2'],
|
|
48
49
|
'zipcode': json['zipcode'] == null ? undefined : json['zipcode'],
|
|
49
50
|
'city': json['city'] == null ? undefined : json['city'],
|
|
50
51
|
'phone': json['phone'] == null ? undefined : json['phone'],
|
|
51
52
|
'countryCode': json['countryCode'] == null ? undefined : json['countryCode'],
|
|
52
|
-
'state': json['state']
|
|
53
|
+
'state': json['state'] === undefined ? undefined : json['state'] === null ? null : json['state'],
|
|
53
54
|
'email': json['email'] == null ? undefined : json['email'],
|
|
54
55
|
'customs': json['customs'] == null ? undefined : json['customs'],
|
|
55
56
|
'addressTypes': json['addressTypes'] == null ? undefined : json['addressTypes'],
|
|
@@ -65,6 +66,7 @@ function UpdateAddressRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
65
66
|
}
|
|
66
67
|
return {
|
|
67
68
|
'name': value['name'],
|
|
69
|
+
'description': value['description'],
|
|
68
70
|
'attContact': value['attContact'],
|
|
69
71
|
'address1': value['address1'],
|
|
70
72
|
'address2': value['address2'],
|
package/docs/AddressesApi.md
CHANGED
|
@@ -277,7 +277,7 @@ async function example() {
|
|
|
277
277
|
type: sender,
|
|
278
278
|
// string | Filter by ISO 3166-1 alpha-2 country code. (optional)
|
|
279
279
|
countryCode: DK,
|
|
280
|
-
// string | Search by
|
|
280
|
+
// string | Search by company name, description, contact or city. (optional)
|
|
281
281
|
search: Copenhagen,
|
|
282
282
|
// string | Filter by brand. Pass a brand ID, or \"none\" for records not assigned to any brand. (optional)
|
|
283
283
|
brandId: brnd_8f3kd92ld0,
|
|
@@ -307,7 +307,7 @@ example().catch(console.error);
|
|
|
307
307
|
| **limit** | `number` | Items per page (max 100) | [Optional] [Defaults to `20`] |
|
|
308
308
|
| **type** | `sender`, `pickup`, `return` | Filter by address type (sender, pickup, return) | [Optional] [Defaults to `undefined`] [Enum: sender, pickup, return] |
|
|
309
309
|
| **countryCode** | `string` | Filter by ISO 3166-1 alpha-2 country code. | [Optional] [Defaults to `undefined`] |
|
|
310
|
-
| **search** | `string` | Search by
|
|
310
|
+
| **search** | `string` | Search by company name, description, contact or city. | [Optional] [Defaults to `undefined`] |
|
|
311
311
|
| **brandId** | `string` | Filter by brand. Pass a brand ID, or \"none\" for records not assigned to any brand. | [Optional] [Defaults to `undefined`] |
|
|
312
312
|
| **brandScope** | `own`, `shared`, `both` | How the brand context narrows this list: \"own\" returns only rows assigned to the current brand (requires a brand session, a brand-bound token, or the X-Zippendo-Brand header), \"shared\" returns only unassigned organization-wide rows, \"both\" (default) returns both. The X-Zippendo-Brand-Scope header supplies a default when the parameter is omitted. For strictly brand-owned records (orders, shipments), a brand-scoped request combined with \"shared\" returns no rows, since those records are never visible organization-wide from within a brand context. | [Optional] [Defaults to `undefined`] [Enum: own, shared, both] |
|
|
313
313
|
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`name` | string
|
|
10
|
+
`description` | string
|
|
10
11
|
`attContact` | string
|
|
11
12
|
`address1` | string
|
|
12
13
|
`address2` | string
|
|
@@ -27,7 +28,8 @@ import type { CreateAddressRequest } from '@zippendo/sdk'
|
|
|
27
28
|
|
|
28
29
|
// TODO: Update the object below with actual values
|
|
29
30
|
const example = {
|
|
30
|
-
"name":
|
|
31
|
+
"name": Zippendo ApS,
|
|
32
|
+
"description": Main warehouse, Copenhagen,
|
|
31
33
|
"attContact": Mette Hansen,
|
|
32
34
|
"address1": Vesterbrogade 1,
|
|
33
35
|
"address2": 2. sal,
|
|
@@ -35,7 +37,7 @@ const example = {
|
|
|
35
37
|
"city": København,
|
|
36
38
|
"phone": +4533123456,
|
|
37
39
|
"countryCode": DK,
|
|
38
|
-
"state": ,
|
|
40
|
+
"state": Hovedstaden,
|
|
39
41
|
"email": lager@example.dk,
|
|
40
42
|
"customs": {"eori":"DK12345678"},
|
|
41
43
|
"addressTypes": ["sender"],
|
|
@@ -8,6 +8,7 @@ Name | Type
|
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`id` | string
|
|
10
10
|
`name` | string
|
|
11
|
+
`description` | string
|
|
11
12
|
`attContact` | string
|
|
12
13
|
`address1` | string
|
|
13
14
|
`address2` | string
|
|
@@ -32,7 +33,8 @@ import type { ListAddresses200ResponseDataInner } from '@zippendo/sdk'
|
|
|
32
33
|
// TODO: Update the object below with actual values
|
|
33
34
|
const example = {
|
|
34
35
|
"id": addr_01HZX9K2QF,
|
|
35
|
-
"name":
|
|
36
|
+
"name": Zippendo ApS,
|
|
37
|
+
"description": Main warehouse, Copenhagen,
|
|
36
38
|
"attContact": Mette Hansen,
|
|
37
39
|
"address1": Vesterbrogade 1,
|
|
38
40
|
"address2": 2. sal,
|
|
@@ -8,6 +8,7 @@ Name | Type
|
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`id` | string
|
|
10
10
|
`name` | string
|
|
11
|
+
`description` | string
|
|
11
12
|
`attContact` | string
|
|
12
13
|
`address1` | string
|
|
13
14
|
`address2` | string
|
|
@@ -32,7 +33,8 @@ import type { ListShipments200ResponseDataInnerAddress } from '@zippendo/sdk'
|
|
|
32
33
|
// TODO: Update the object below with actual values
|
|
33
34
|
const example = {
|
|
34
35
|
"id": addr_01HZX9K2QF,
|
|
35
|
-
"name":
|
|
36
|
+
"name": Zippendo ApS,
|
|
37
|
+
"description": Main warehouse, Copenhagen,
|
|
36
38
|
"attContact": Mette Hansen,
|
|
37
39
|
"address1": Vesterbrogade 1,
|
|
38
40
|
"address2": 2. sal,
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`name` | string
|
|
10
|
+
`description` | string
|
|
10
11
|
`attContact` | string
|
|
11
12
|
`address1` | string
|
|
12
13
|
`address2` | string
|
|
@@ -27,7 +28,8 @@ import type { UpdateAddressRequest } from '@zippendo/sdk'
|
|
|
27
28
|
|
|
28
29
|
// TODO: Update the object below with actual values
|
|
29
30
|
const example = {
|
|
30
|
-
"name":
|
|
31
|
+
"name": Zippendo ApS,
|
|
32
|
+
"description": Main warehouse, Copenhagen,
|
|
31
33
|
"attContact": Mette Hansen,
|
|
32
34
|
"address1": Vesterbrogade 1,
|
|
33
35
|
"address2": 2. sal,
|
package/package.json
CHANGED
|
@@ -20,17 +20,23 @@ import { mapValues } from '../runtime';
|
|
|
20
20
|
*/
|
|
21
21
|
export interface CreateAddressRequest {
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Company or person the parcel is sent from, printed on labels
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof CreateAddressRequest
|
|
26
26
|
*/
|
|
27
27
|
name: string;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Internal label for this address; never printed or sent to a carrier
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof CreateAddressRequest
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
description?: string | null;
|
|
34
|
+
/**
|
|
35
|
+
* Contact person at this address, printed as the att. line
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof CreateAddressRequest
|
|
38
|
+
*/
|
|
39
|
+
attContact?: string | null;
|
|
34
40
|
/**
|
|
35
41
|
* Address line 1
|
|
36
42
|
* @type {string}
|
|
@@ -42,7 +48,7 @@ export interface CreateAddressRequest {
|
|
|
42
48
|
* @type {string}
|
|
43
49
|
* @memberof CreateAddressRequest
|
|
44
50
|
*/
|
|
45
|
-
address2?: string;
|
|
51
|
+
address2?: string | null;
|
|
46
52
|
/**
|
|
47
53
|
* Postal/ZIP code
|
|
48
54
|
* @type {string}
|
|
@@ -72,7 +78,7 @@ export interface CreateAddressRequest {
|
|
|
72
78
|
* @type {string}
|
|
73
79
|
* @memberof CreateAddressRequest
|
|
74
80
|
*/
|
|
75
|
-
state?: string;
|
|
81
|
+
state?: string | null;
|
|
76
82
|
/**
|
|
77
83
|
* Email address
|
|
78
84
|
* @type {string}
|
|
@@ -116,7 +122,6 @@ export type CreateAddressRequestAddressTypesEnum = typeof CreateAddressRequestAd
|
|
|
116
122
|
*/
|
|
117
123
|
export function instanceOfCreateAddressRequest(value: object): value is CreateAddressRequest {
|
|
118
124
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
119
|
-
if (!('attContact' in value) || value['attContact'] === undefined) return false;
|
|
120
125
|
if (!('address1' in value) || value['address1'] === undefined) return false;
|
|
121
126
|
if (!('zipcode' in value) || value['zipcode'] === undefined) return false;
|
|
122
127
|
if (!('city' in value) || value['city'] === undefined) return false;
|
|
@@ -137,14 +142,15 @@ export function CreateAddressRequestFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
137
142
|
return {
|
|
138
143
|
|
|
139
144
|
'name': json['name'],
|
|
140
|
-
'
|
|
145
|
+
'description': json['description'] === undefined ? undefined : json['description'] === null ? null : json['description'],
|
|
146
|
+
'attContact': json['attContact'] === undefined ? undefined : json['attContact'] === null ? null : json['attContact'],
|
|
141
147
|
'address1': json['address1'],
|
|
142
|
-
'address2': json['address2']
|
|
148
|
+
'address2': json['address2'] === undefined ? undefined : json['address2'] === null ? null : json['address2'],
|
|
143
149
|
'zipcode': json['zipcode'],
|
|
144
150
|
'city': json['city'],
|
|
145
151
|
'phone': json['phone'],
|
|
146
152
|
'countryCode': json['countryCode'],
|
|
147
|
-
'state': json['state']
|
|
153
|
+
'state': json['state'] === undefined ? undefined : json['state'] === null ? null : json['state'],
|
|
148
154
|
'email': json['email'],
|
|
149
155
|
'customs': json['customs'] == null ? undefined : json['customs'],
|
|
150
156
|
'addressTypes': json['addressTypes'] == null ? undefined : json['addressTypes'],
|
|
@@ -164,6 +170,7 @@ export function CreateAddressRequestToJSONTyped(value?: CreateAddressRequest | n
|
|
|
164
170
|
return {
|
|
165
171
|
|
|
166
172
|
'name': value['name'],
|
|
173
|
+
'description': value['description'],
|
|
167
174
|
'attContact': value['attContact'],
|
|
168
175
|
'address1': value['address1'],
|
|
169
176
|
'address2': value['address2'],
|
|
@@ -26,17 +26,23 @@ export interface ListAddresses200ResponseDataInner {
|
|
|
26
26
|
*/
|
|
27
27
|
id: string;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Company or person the parcel is sent from, printed on labels
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof ListAddresses200ResponseDataInner
|
|
32
32
|
*/
|
|
33
33
|
name: string;
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Internal label for this address; never printed or sent to a carrier
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof ListAddresses200ResponseDataInner
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
description: string | null;
|
|
40
|
+
/**
|
|
41
|
+
* Contact person at this address, printed as the att. line
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof ListAddresses200ResponseDataInner
|
|
44
|
+
*/
|
|
45
|
+
attContact: string | null;
|
|
40
46
|
/**
|
|
41
47
|
* Address line 1
|
|
42
48
|
* @type {string}
|
|
@@ -141,6 +147,7 @@ export type ListAddresses200ResponseDataInnerAddressTypesEnum = typeof ListAddre
|
|
|
141
147
|
export function instanceOfListAddresses200ResponseDataInner(value: object): value is ListAddresses200ResponseDataInner {
|
|
142
148
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
143
149
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
150
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
144
151
|
if (!('attContact' in value) || value['attContact'] === undefined) return false;
|
|
145
152
|
if (!('address1' in value) || value['address1'] === undefined) return false;
|
|
146
153
|
if (!('address2' in value) || value['address2'] === undefined) return false;
|
|
@@ -170,6 +177,7 @@ export function ListAddresses200ResponseDataInnerFromJSONTyped(json: any, ignore
|
|
|
170
177
|
|
|
171
178
|
'id': json['id'],
|
|
172
179
|
'name': json['name'],
|
|
180
|
+
'description': json['description'],
|
|
173
181
|
'attContact': json['attContact'],
|
|
174
182
|
'address1': json['address1'],
|
|
175
183
|
'address2': json['address2'],
|
|
@@ -201,6 +209,7 @@ export function ListAddresses200ResponseDataInnerToJSONTyped(value?: ListAddress
|
|
|
201
209
|
|
|
202
210
|
'id': value['id'],
|
|
203
211
|
'name': value['name'],
|
|
212
|
+
'description': value['description'],
|
|
204
213
|
'attContact': value['attContact'],
|
|
205
214
|
'address1': value['address1'],
|
|
206
215
|
'address2': value['address2'],
|
|
@@ -26,17 +26,23 @@ export interface ListShipments200ResponseDataInnerAddress {
|
|
|
26
26
|
*/
|
|
27
27
|
id: string;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Company or person the parcel is sent from, printed on labels
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof ListShipments200ResponseDataInnerAddress
|
|
32
32
|
*/
|
|
33
33
|
name: string;
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Internal label for this address; never printed or sent to a carrier
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof ListShipments200ResponseDataInnerAddress
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
description: string | null;
|
|
40
|
+
/**
|
|
41
|
+
* Contact person at this address, printed as the att. line
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof ListShipments200ResponseDataInnerAddress
|
|
44
|
+
*/
|
|
45
|
+
attContact: string | null;
|
|
40
46
|
/**
|
|
41
47
|
* Address line 1
|
|
42
48
|
* @type {string}
|
|
@@ -141,6 +147,7 @@ export type ListShipments200ResponseDataInnerAddressAddressTypesEnum = typeof Li
|
|
|
141
147
|
export function instanceOfListShipments200ResponseDataInnerAddress(value: object): value is ListShipments200ResponseDataInnerAddress {
|
|
142
148
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
143
149
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
150
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
144
151
|
if (!('attContact' in value) || value['attContact'] === undefined) return false;
|
|
145
152
|
if (!('address1' in value) || value['address1'] === undefined) return false;
|
|
146
153
|
if (!('address2' in value) || value['address2'] === undefined) return false;
|
|
@@ -170,6 +177,7 @@ export function ListShipments200ResponseDataInnerAddressFromJSONTyped(json: any,
|
|
|
170
177
|
|
|
171
178
|
'id': json['id'],
|
|
172
179
|
'name': json['name'],
|
|
180
|
+
'description': json['description'],
|
|
173
181
|
'attContact': json['attContact'],
|
|
174
182
|
'address1': json['address1'],
|
|
175
183
|
'address2': json['address2'],
|
|
@@ -201,6 +209,7 @@ export function ListShipments200ResponseDataInnerAddressToJSONTyped(value?: List
|
|
|
201
209
|
|
|
202
210
|
'id': value['id'],
|
|
203
211
|
'name': value['name'],
|
|
212
|
+
'description': value['description'],
|
|
204
213
|
'attContact': value['attContact'],
|
|
205
214
|
'address1': value['address1'],
|
|
206
215
|
'address2': value['address2'],
|
|
@@ -20,17 +20,23 @@ import { mapValues } from '../runtime';
|
|
|
20
20
|
*/
|
|
21
21
|
export interface UpdateAddressRequest {
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Company or person the parcel is sent from, printed on labels
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof UpdateAddressRequest
|
|
26
26
|
*/
|
|
27
27
|
name?: string;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Internal label for this address; send null or an empty string to clear it
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof UpdateAddressRequest
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
description?: string | null;
|
|
34
|
+
/**
|
|
35
|
+
* Contact person at this address; send null or an empty string to clear it
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof UpdateAddressRequest
|
|
38
|
+
*/
|
|
39
|
+
attContact?: string | null;
|
|
34
40
|
/**
|
|
35
41
|
* Address line 1
|
|
36
42
|
* @type {string}
|
|
@@ -38,11 +44,11 @@ export interface UpdateAddressRequest {
|
|
|
38
44
|
*/
|
|
39
45
|
address1?: string;
|
|
40
46
|
/**
|
|
41
|
-
* Address line 2
|
|
47
|
+
* Address line 2; send null or an empty string to clear it
|
|
42
48
|
* @type {string}
|
|
43
49
|
* @memberof UpdateAddressRequest
|
|
44
50
|
*/
|
|
45
|
-
address2?: string;
|
|
51
|
+
address2?: string | null;
|
|
46
52
|
/**
|
|
47
53
|
* Postal/ZIP code
|
|
48
54
|
* @type {string}
|
|
@@ -68,11 +74,11 @@ export interface UpdateAddressRequest {
|
|
|
68
74
|
*/
|
|
69
75
|
countryCode?: string;
|
|
70
76
|
/**
|
|
71
|
-
* State/Province
|
|
77
|
+
* State/Province; send null or an empty string to clear it
|
|
72
78
|
* @type {string}
|
|
73
79
|
* @memberof UpdateAddressRequest
|
|
74
80
|
*/
|
|
75
|
-
state?: string;
|
|
81
|
+
state?: string | null;
|
|
76
82
|
/**
|
|
77
83
|
* Email address
|
|
78
84
|
* @type {string}
|
|
@@ -129,14 +135,15 @@ export function UpdateAddressRequestFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
129
135
|
return {
|
|
130
136
|
|
|
131
137
|
'name': json['name'] == null ? undefined : json['name'],
|
|
132
|
-
'
|
|
138
|
+
'description': json['description'] === undefined ? undefined : json['description'] === null ? null : json['description'],
|
|
139
|
+
'attContact': json['attContact'] === undefined ? undefined : json['attContact'] === null ? null : json['attContact'],
|
|
133
140
|
'address1': json['address1'] == null ? undefined : json['address1'],
|
|
134
|
-
'address2': json['address2']
|
|
141
|
+
'address2': json['address2'] === undefined ? undefined : json['address2'] === null ? null : json['address2'],
|
|
135
142
|
'zipcode': json['zipcode'] == null ? undefined : json['zipcode'],
|
|
136
143
|
'city': json['city'] == null ? undefined : json['city'],
|
|
137
144
|
'phone': json['phone'] == null ? undefined : json['phone'],
|
|
138
145
|
'countryCode': json['countryCode'] == null ? undefined : json['countryCode'],
|
|
139
|
-
'state': json['state']
|
|
146
|
+
'state': json['state'] === undefined ? undefined : json['state'] === null ? null : json['state'],
|
|
140
147
|
'email': json['email'] == null ? undefined : json['email'],
|
|
141
148
|
'customs': json['customs'] == null ? undefined : json['customs'],
|
|
142
149
|
'addressTypes': json['addressTypes'] == null ? undefined : json['addressTypes'],
|
|
@@ -156,6 +163,7 @@ export function UpdateAddressRequestToJSONTyped(value?: UpdateAddressRequest | n
|
|
|
156
163
|
return {
|
|
157
164
|
|
|
158
165
|
'name': value['name'],
|
|
166
|
+
'description': value['description'],
|
|
159
167
|
'attContact': value['attContact'],
|
|
160
168
|
'address1': value['address1'],
|
|
161
169
|
'address2': value['address2'],
|