@zippendo/sdk 1.3.3 → 1.3.5
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/BatchSendShipments200ResponseResultsInner.d.ts +3 -0
- package/dist/esm/models/BatchSendShipments200ResponseResultsInner.js +3 -0
- package/dist/esm/models/CreateAddressRequest.d.ts +11 -5
- package/dist/esm/models/CreateAddressRequest.js +5 -5
- package/dist/esm/models/GetBillingUsage200Response.d.ts +3 -3
- package/dist/esm/models/GetBillingUsage200Response.js +3 -3
- package/dist/esm/models/{GetBillingUsage200ResponseZippyMessages.d.ts → GetBillingUsage200ResponseZippyCredits.d.ts} +27 -15
- package/dist/esm/models/{GetBillingUsage200ResponseZippyMessages.js → GetBillingUsage200ResponseZippyCredits.js} +16 -8
- package/dist/esm/models/ListAddresses200ResponseDataInner.d.ts +9 -3
- package/dist/esm/models/ListAddresses200ResponseDataInner.js +4 -0
- package/dist/esm/models/ListApiTokens401Response.d.ts +3 -0
- package/dist/esm/models/ListApiTokens401Response.js +3 -0
- package/dist/esm/models/ListShipments200ResponseDataInnerAddress.d.ts +9 -3
- package/dist/esm/models/ListShipments200ResponseDataInnerAddress.js +4 -0
- package/dist/esm/models/SendShipment422Response.d.ts +3 -0
- package/dist/esm/models/SendShipment422Response.js +3 -0
- package/dist/esm/models/UpdateAddressRequest.d.ts +13 -7
- package/dist/esm/models/UpdateAddressRequest.js +5 -3
- package/dist/esm/models/index.d.ts +1 -1
- package/dist/esm/models/index.js +1 -1
- package/dist/models/BatchSendShipments200ResponseResultsInner.d.ts +3 -0
- package/dist/models/BatchSendShipments200ResponseResultsInner.js +3 -0
- package/dist/models/CreateAddressRequest.d.ts +11 -5
- package/dist/models/CreateAddressRequest.js +5 -5
- package/dist/models/GetBillingUsage200Response.d.ts +3 -3
- package/dist/models/GetBillingUsage200Response.js +3 -3
- package/dist/models/{GetBillingUsage200ResponseZippyMessages.d.ts → GetBillingUsage200ResponseZippyCredits.d.ts} +27 -15
- package/dist/models/{GetBillingUsage200ResponseZippyMessages.js → GetBillingUsage200ResponseZippyCredits.js} +21 -13
- package/dist/models/ListAddresses200ResponseDataInner.d.ts +9 -3
- package/dist/models/ListAddresses200ResponseDataInner.js +4 -0
- package/dist/models/ListApiTokens401Response.d.ts +3 -0
- package/dist/models/ListApiTokens401Response.js +3 -0
- package/dist/models/ListShipments200ResponseDataInnerAddress.d.ts +9 -3
- package/dist/models/ListShipments200ResponseDataInnerAddress.js +4 -0
- package/dist/models/SendShipment422Response.d.ts +3 -0
- package/dist/models/SendShipment422Response.js +3 -0
- package/dist/models/UpdateAddressRequest.d.ts +13 -7
- package/dist/models/UpdateAddressRequest.js +5 -3
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.js +1 -1
- package/docs/AddressesApi.md +2 -2
- package/docs/CreateAddressRequest.md +4 -2
- package/docs/GetBillingUsage200Response.md +2 -2
- package/docs/{GetBillingUsage200ResponseZippyMessages.md → GetBillingUsage200ResponseZippyCredits.md} +11 -7
- package/docs/ListAddresses200ResponseDataInner.md +3 -1
- package/docs/ListShipments200ResponseDataInnerAddress.md +3 -1
- package/docs/OrgsApi.md +1 -0
- package/docs/UpdateAddressRequest.md +3 -1
- package/package.json +1 -1
- package/src/models/BatchSendShipments200ResponseResultsInner.ts +3 -0
- package/src/models/CreateAddressRequest.ts +16 -9
- package/src/models/GetBillingUsage200Response.ts +11 -11
- package/src/models/{GetBillingUsage200ResponseZippyMessages.ts → GetBillingUsage200ResponseZippyCredits.ts} +35 -17
- package/src/models/ListAddresses200ResponseDataInner.ts +12 -3
- package/src/models/ListApiTokens401Response.ts +3 -0
- package/src/models/ListShipments200ResponseDataInnerAddress.ts +12 -3
- package/src/models/SendShipment422Response.ts +3 -0
- package/src/models/UpdateAddressRequest.ts +18 -10
- package/src/models/index.ts +1 -1
|
@@ -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'],
|
|
@@ -13,13 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type { GetBillingUsage200ResponseZippyMessages } from './GetBillingUsage200ResponseZippyMessages';
|
|
17
|
-
import {
|
|
18
|
-
GetBillingUsage200ResponseZippyMessagesFromJSON,
|
|
19
|
-
GetBillingUsage200ResponseZippyMessagesFromJSONTyped,
|
|
20
|
-
GetBillingUsage200ResponseZippyMessagesToJSON,
|
|
21
|
-
GetBillingUsage200ResponseZippyMessagesToJSONTyped,
|
|
22
|
-
} from './GetBillingUsage200ResponseZippyMessages';
|
|
23
16
|
import type { GetBillingUsage200ResponseAddOnsInner } from './GetBillingUsage200ResponseAddOnsInner';
|
|
24
17
|
import {
|
|
25
18
|
GetBillingUsage200ResponseAddOnsInnerFromJSON,
|
|
@@ -34,6 +27,13 @@ import {
|
|
|
34
27
|
GetBillingUsage200ResponseShipmentsToJSON,
|
|
35
28
|
GetBillingUsage200ResponseShipmentsToJSONTyped,
|
|
36
29
|
} from './GetBillingUsage200ResponseShipments';
|
|
30
|
+
import type { GetBillingUsage200ResponseZippyCredits } from './GetBillingUsage200ResponseZippyCredits';
|
|
31
|
+
import {
|
|
32
|
+
GetBillingUsage200ResponseZippyCreditsFromJSON,
|
|
33
|
+
GetBillingUsage200ResponseZippyCreditsFromJSONTyped,
|
|
34
|
+
GetBillingUsage200ResponseZippyCreditsToJSON,
|
|
35
|
+
GetBillingUsage200ResponseZippyCreditsToJSONTyped,
|
|
36
|
+
} from './GetBillingUsage200ResponseZippyCredits';
|
|
37
37
|
import type { GetBillingUsage200ResponseCurrentPeriod } from './GetBillingUsage200ResponseCurrentPeriod';
|
|
38
38
|
import {
|
|
39
39
|
GetBillingUsage200ResponseCurrentPeriodFromJSON,
|
|
@@ -81,10 +81,10 @@ export interface GetBillingUsage200Response {
|
|
|
81
81
|
addOns: Array<GetBillingUsage200ResponseAddOnsInner>;
|
|
82
82
|
/**
|
|
83
83
|
*
|
|
84
|
-
* @type {
|
|
84
|
+
* @type {GetBillingUsage200ResponseZippyCredits}
|
|
85
85
|
* @memberof GetBillingUsage200Response
|
|
86
86
|
*/
|
|
87
|
-
|
|
87
|
+
zippyCredits?: GetBillingUsage200ResponseZippyCredits;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
/**
|
|
@@ -112,7 +112,7 @@ export function GetBillingUsage200ResponseFromJSONTyped(json: any, ignoreDiscrim
|
|
|
112
112
|
'shipments': GetBillingUsage200ResponseShipmentsFromJSON(json['shipments']),
|
|
113
113
|
'limits': GetBillingUsage200ResponseLimitsFromJSON(json['limits']),
|
|
114
114
|
'addOns': ((json['addOns'] as Array<any>).map(GetBillingUsage200ResponseAddOnsInnerFromJSON)),
|
|
115
|
-
'
|
|
115
|
+
'zippyCredits': json['zippyCredits'] == null ? undefined : GetBillingUsage200ResponseZippyCreditsFromJSON(json['zippyCredits']),
|
|
116
116
|
};
|
|
117
117
|
}
|
|
118
118
|
|
|
@@ -131,7 +131,7 @@ export function GetBillingUsage200ResponseToJSONTyped(value?: GetBillingUsage200
|
|
|
131
131
|
'shipments': GetBillingUsage200ResponseShipmentsToJSON(value['shipments']),
|
|
132
132
|
'limits': GetBillingUsage200ResponseLimitsToJSON(value['limits']),
|
|
133
133
|
'addOns': ((value['addOns'] as Array<any>).map(GetBillingUsage200ResponseAddOnsInnerToJSON)),
|
|
134
|
-
'
|
|
134
|
+
'zippyCredits': GetBillingUsage200ResponseZippyCreditsToJSON(value['zippyCredits']),
|
|
135
135
|
};
|
|
136
136
|
}
|
|
137
137
|
|
|
@@ -14,62 +14,78 @@
|
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
16
|
/**
|
|
17
|
-
* Zippy AI
|
|
17
|
+
* Zippy AI credit usage this period (present when the Zippy add-on is enabled)
|
|
18
18
|
* @export
|
|
19
|
-
* @interface
|
|
19
|
+
* @interface GetBillingUsage200ResponseZippyCredits
|
|
20
20
|
*/
|
|
21
|
-
export interface
|
|
21
|
+
export interface GetBillingUsage200ResponseZippyCredits {
|
|
22
22
|
/**
|
|
23
|
-
* Zippy
|
|
23
|
+
* Zippy credits used this period, included bundle and metered alike
|
|
24
24
|
* @type {number}
|
|
25
|
-
* @memberof
|
|
25
|
+
* @memberof GetBillingUsage200ResponseZippyCredits
|
|
26
26
|
*/
|
|
27
27
|
used: number;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Credits included in the add-on bundle this period
|
|
30
30
|
* @type {number}
|
|
31
|
-
* @memberof
|
|
31
|
+
* @memberof GetBillingUsage200ResponseZippyCredits
|
|
32
|
+
*/
|
|
33
|
+
included: number;
|
|
34
|
+
/**
|
|
35
|
+
* Credits beyond the bundle, metered this period
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof GetBillingUsage200ResponseZippyCredits
|
|
38
|
+
*/
|
|
39
|
+
billed: number;
|
|
40
|
+
/**
|
|
41
|
+
* Metered credit charges so far, in øre (whole packs)
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof GetBillingUsage200ResponseZippyCredits
|
|
32
44
|
*/
|
|
33
45
|
charges: number;
|
|
34
46
|
/**
|
|
35
|
-
* Maximum Zippy
|
|
47
|
+
* Maximum Zippy credits per month (-1 for unlimited)
|
|
36
48
|
* @type {number}
|
|
37
|
-
* @memberof
|
|
49
|
+
* @memberof GetBillingUsage200ResponseZippyCredits
|
|
38
50
|
*/
|
|
39
51
|
limit: number;
|
|
40
52
|
}
|
|
41
53
|
|
|
42
54
|
/**
|
|
43
|
-
* Check if a given object implements the
|
|
55
|
+
* Check if a given object implements the GetBillingUsage200ResponseZippyCredits interface.
|
|
44
56
|
*/
|
|
45
|
-
export function
|
|
57
|
+
export function instanceOfGetBillingUsage200ResponseZippyCredits(value: object): value is GetBillingUsage200ResponseZippyCredits {
|
|
46
58
|
if (!('used' in value) || value['used'] === undefined) return false;
|
|
59
|
+
if (!('included' in value) || value['included'] === undefined) return false;
|
|
60
|
+
if (!('billed' in value) || value['billed'] === undefined) return false;
|
|
47
61
|
if (!('charges' in value) || value['charges'] === undefined) return false;
|
|
48
62
|
if (!('limit' in value) || value['limit'] === undefined) return false;
|
|
49
63
|
return true;
|
|
50
64
|
}
|
|
51
65
|
|
|
52
|
-
export function
|
|
53
|
-
return
|
|
66
|
+
export function GetBillingUsage200ResponseZippyCreditsFromJSON(json: any): GetBillingUsage200ResponseZippyCredits {
|
|
67
|
+
return GetBillingUsage200ResponseZippyCreditsFromJSONTyped(json, false);
|
|
54
68
|
}
|
|
55
69
|
|
|
56
|
-
export function
|
|
70
|
+
export function GetBillingUsage200ResponseZippyCreditsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetBillingUsage200ResponseZippyCredits {
|
|
57
71
|
if (json == null) {
|
|
58
72
|
return json;
|
|
59
73
|
}
|
|
60
74
|
return {
|
|
61
75
|
|
|
62
76
|
'used': json['used'],
|
|
77
|
+
'included': json['included'],
|
|
78
|
+
'billed': json['billed'],
|
|
63
79
|
'charges': json['charges'],
|
|
64
80
|
'limit': json['limit'],
|
|
65
81
|
};
|
|
66
82
|
}
|
|
67
83
|
|
|
68
|
-
export function
|
|
69
|
-
return
|
|
84
|
+
export function GetBillingUsage200ResponseZippyCreditsToJSON(json: any): GetBillingUsage200ResponseZippyCredits {
|
|
85
|
+
return GetBillingUsage200ResponseZippyCreditsToJSONTyped(json, false);
|
|
70
86
|
}
|
|
71
87
|
|
|
72
|
-
export function
|
|
88
|
+
export function GetBillingUsage200ResponseZippyCreditsToJSONTyped(value?: GetBillingUsage200ResponseZippyCredits | null, ignoreDiscriminator: boolean = false): any {
|
|
73
89
|
if (value == null) {
|
|
74
90
|
return value;
|
|
75
91
|
}
|
|
@@ -77,6 +93,8 @@ export function GetBillingUsage200ResponseZippyMessagesToJSONTyped(value?: GetBi
|
|
|
77
93
|
return {
|
|
78
94
|
|
|
79
95
|
'used': value['used'],
|
|
96
|
+
'included': value['included'],
|
|
97
|
+
'billed': value['billed'],
|
|
80
98
|
'charges': value['charges'],
|
|
81
99
|
'limit': value['limit'],
|
|
82
100
|
};
|
|
@@ -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'],
|
|
@@ -108,6 +108,9 @@ export const ListApiTokens401ResponseCodeEnum = {
|
|
|
108
108
|
BillingCheckoutRequired: 'BILLING_CHECKOUT_REQUIRED',
|
|
109
109
|
ZippyAddonRequired: 'ZIPPY_ADDON_REQUIRED',
|
|
110
110
|
ZippyMessageLimitReached: 'ZIPPY_MESSAGE_LIMIT_REACHED',
|
|
111
|
+
ZippyNotActivated: 'ZIPPY_NOT_ACTIVATED',
|
|
112
|
+
ZippyIncludedCreditsExhausted: 'ZIPPY_INCLUDED_CREDITS_EXHAUSTED',
|
|
113
|
+
ZippyDailyLimitReached: 'ZIPPY_DAILY_LIMIT_REACHED',
|
|
111
114
|
ShipmentNotFound: 'SHIPMENT_NOT_FOUND',
|
|
112
115
|
ShipmentDocumentNotFound: 'SHIPMENT_DOCUMENT_NOT_FOUND',
|
|
113
116
|
ShipmentAlreadySent: 'SHIPMENT_ALREADY_SENT',
|
|
@@ -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'],
|
|
@@ -122,6 +122,9 @@ export const SendShipment422ResponseCodeEnum = {
|
|
|
122
122
|
BillingCheckoutRequired: 'BILLING_CHECKOUT_REQUIRED',
|
|
123
123
|
ZippyAddonRequired: 'ZIPPY_ADDON_REQUIRED',
|
|
124
124
|
ZippyMessageLimitReached: 'ZIPPY_MESSAGE_LIMIT_REACHED',
|
|
125
|
+
ZippyNotActivated: 'ZIPPY_NOT_ACTIVATED',
|
|
126
|
+
ZippyIncludedCreditsExhausted: 'ZIPPY_INCLUDED_CREDITS_EXHAUSTED',
|
|
127
|
+
ZippyDailyLimitReached: 'ZIPPY_DAILY_LIMIT_REACHED',
|
|
125
128
|
ShipmentNotFound: 'SHIPMENT_NOT_FOUND',
|
|
126
129
|
ShipmentDocumentNotFound: 'SHIPMENT_DOCUMENT_NOT_FOUND',
|
|
127
130
|
ShipmentAlreadySent: 'SHIPMENT_ALREADY_SENT',
|
|
@@ -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'],
|
package/src/models/index.ts
CHANGED
|
@@ -73,7 +73,7 @@ export * from './GetBillingUsage200ResponseCurrentPeriod';
|
|
|
73
73
|
export * from './GetBillingUsage200ResponseLimits';
|
|
74
74
|
export * from './GetBillingUsage200ResponseLimitsTeamMembers';
|
|
75
75
|
export * from './GetBillingUsage200ResponseShipments';
|
|
76
|
-
export * from './
|
|
76
|
+
export * from './GetBillingUsage200ResponseZippyCredits';
|
|
77
77
|
export * from './GetOrder200Response';
|
|
78
78
|
export * from './GetOrder200ResponseOrderLinesInner';
|
|
79
79
|
export * from './GetOrder200ResponseShipmentsInner';
|