@zippendo/sdk 1.3.2 → 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.
Files changed (47) hide show
  1. package/dist/apis/ShipmentsApi.d.ts +20 -2
  2. package/dist/apis/ShipmentsApi.js +54 -2
  3. package/dist/esm/apis/ShipmentsApi.d.ts +20 -2
  4. package/dist/esm/apis/ShipmentsApi.js +54 -2
  5. package/dist/esm/models/BatchSendShipments200ResponseResultsInner.d.ts +7 -0
  6. package/dist/esm/models/BatchSendShipments200ResponseResultsInner.js +7 -0
  7. package/dist/esm/models/CreateAddressRequest.d.ts +11 -5
  8. package/dist/esm/models/CreateAddressRequest.js +5 -5
  9. package/dist/esm/models/ListAddresses200ResponseDataInner.d.ts +9 -3
  10. package/dist/esm/models/ListAddresses200ResponseDataInner.js +4 -0
  11. package/dist/esm/models/ListApiTokens401Response.d.ts +7 -0
  12. package/dist/esm/models/ListApiTokens401Response.js +7 -0
  13. package/dist/esm/models/ListShipments200ResponseDataInnerAddress.d.ts +9 -3
  14. package/dist/esm/models/ListShipments200ResponseDataInnerAddress.js +4 -0
  15. package/dist/esm/models/SendShipment422Response.d.ts +7 -0
  16. package/dist/esm/models/SendShipment422Response.js +7 -0
  17. package/dist/esm/models/UpdateAddressRequest.d.ts +13 -7
  18. package/dist/esm/models/UpdateAddressRequest.js +5 -3
  19. package/dist/models/BatchSendShipments200ResponseResultsInner.d.ts +7 -0
  20. package/dist/models/BatchSendShipments200ResponseResultsInner.js +7 -0
  21. package/dist/models/CreateAddressRequest.d.ts +11 -5
  22. package/dist/models/CreateAddressRequest.js +5 -5
  23. package/dist/models/ListAddresses200ResponseDataInner.d.ts +9 -3
  24. package/dist/models/ListAddresses200ResponseDataInner.js +4 -0
  25. package/dist/models/ListApiTokens401Response.d.ts +7 -0
  26. package/dist/models/ListApiTokens401Response.js +7 -0
  27. package/dist/models/ListShipments200ResponseDataInnerAddress.d.ts +9 -3
  28. package/dist/models/ListShipments200ResponseDataInnerAddress.js +4 -0
  29. package/dist/models/SendShipment422Response.d.ts +7 -0
  30. package/dist/models/SendShipment422Response.js +7 -0
  31. package/dist/models/UpdateAddressRequest.d.ts +13 -7
  32. package/dist/models/UpdateAddressRequest.js +5 -3
  33. package/docs/AddressesApi.md +2 -2
  34. package/docs/CreateAddressRequest.md +4 -2
  35. package/docs/ListAddresses200ResponseDataInner.md +3 -1
  36. package/docs/ListShipments200ResponseDataInnerAddress.md +3 -1
  37. package/docs/ShipmentsApi.md +80 -1
  38. package/docs/UpdateAddressRequest.md +3 -1
  39. package/package.json +1 -1
  40. package/src/apis/ShipmentsApi.ts +70 -2
  41. package/src/models/BatchSendShipments200ResponseResultsInner.ts +7 -0
  42. package/src/models/CreateAddressRequest.ts +16 -9
  43. package/src/models/ListAddresses200ResponseDataInner.ts +12 -3
  44. package/src/models/ListApiTokens401Response.ts +7 -0
  45. package/src/models/ListShipments200ResponseDataInnerAddress.ts +12 -3
  46. package/src/models/SendShipment422Response.ts +7 -0
  47. package/src/models/UpdateAddressRequest.ts +18 -10
@@ -120,6 +120,11 @@ export interface DeleteShipmentRequest {
120
120
  shipmentId: string;
121
121
  }
122
122
 
123
+ export interface FetchShipmentLabelRequest {
124
+ orgId: string;
125
+ shipmentId: string;
126
+ }
127
+
123
128
  export interface GetShipmentRequest {
124
129
  orgId: string;
125
130
  shipmentId: string;
@@ -360,7 +365,7 @@ export class ShipmentsApi extends runtime.BaseAPI {
360
365
  }
361
366
 
362
367
  /**
363
- * Create and auto-send a return shipment from a dispatched outbound shipment with swapped sender/receiver. Requires a configured return shipping rule.
368
+ * Create and auto-send a return shipment from a dispatched outbound shipment with swapped sender/receiver. Requires a configured return shipping rule. The return is returned with its booking outcome: `dispatched`, or `error` with the carrier\'s reasons in `errors`.
364
369
  * Create return shipment
365
370
  */
366
371
  async createReturnShipmentRaw(requestParameters: CreateReturnShipmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateShipment201Response>> {
@@ -371,7 +376,7 @@ export class ShipmentsApi extends runtime.BaseAPI {
371
376
  }
372
377
 
373
378
  /**
374
- * Create and auto-send a return shipment from a dispatched outbound shipment with swapped sender/receiver. Requires a configured return shipping rule.
379
+ * Create and auto-send a return shipment from a dispatched outbound shipment with swapped sender/receiver. Requires a configured return shipping rule. The return is returned with its booking outcome: `dispatched`, or `error` with the carrier\'s reasons in `errors`.
375
380
  * Create return shipment
376
381
  */
377
382
  async createReturnShipment(requestParameters: CreateReturnShipmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateShipment201Response> {
@@ -507,6 +512,69 @@ export class ShipmentsApi extends runtime.BaseAPI {
507
512
  return await response.value();
508
513
  }
509
514
 
515
+ /**
516
+ * Creates request options for fetchShipmentLabel without sending the request
517
+ */
518
+ async fetchShipmentLabelRequestOpts(requestParameters: FetchShipmentLabelRequest): Promise<runtime.RequestOpts> {
519
+ if (requestParameters['orgId'] == null) {
520
+ throw new runtime.RequiredError(
521
+ 'orgId',
522
+ 'Required parameter "orgId" was null or undefined when calling fetchShipmentLabel().'
523
+ );
524
+ }
525
+
526
+ if (requestParameters['shipmentId'] == null) {
527
+ throw new runtime.RequiredError(
528
+ 'shipmentId',
529
+ 'Required parameter "shipmentId" was null or undefined when calling fetchShipmentLabel().'
530
+ );
531
+ }
532
+
533
+ const queryParameters: any = {};
534
+
535
+ const headerParameters: runtime.HTTPHeaders = {};
536
+
537
+ if (this.configuration && this.configuration.accessToken) {
538
+ const token = this.configuration.accessToken;
539
+ const tokenString = await token("bearerAuth", []);
540
+
541
+ if (tokenString) {
542
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
543
+ }
544
+ }
545
+
546
+ let urlPath = `/orgs/{orgId}/shipments/{shipmentId}/fetch-label`;
547
+ urlPath = urlPath.replace('{orgId}', encodeURIComponent(String(requestParameters['orgId'])));
548
+ urlPath = urlPath.replace('{shipmentId}', encodeURIComponent(String(requestParameters['shipmentId'])));
549
+
550
+ return {
551
+ path: urlPath,
552
+ method: 'POST',
553
+ headers: headerParameters,
554
+ query: queryParameters,
555
+ };
556
+ }
557
+
558
+ /**
559
+ * Ask the carrier again for the label of a dispatched shipment whose label could not be downloaded when it was sent (it carries a LABEL_DOWNLOAD_FAILED error). Stores the label, clears the error and returns the shipment.
560
+ * Fetch missing label
561
+ */
562
+ async fetchShipmentLabelRaw(requestParameters: FetchShipmentLabelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateShipment201Response>> {
563
+ const requestOptions = await this.fetchShipmentLabelRequestOpts(requestParameters);
564
+ const response = await this.request(requestOptions, initOverrides);
565
+
566
+ return new runtime.JSONApiResponse(response, (jsonValue) => CreateShipment201ResponseFromJSON(jsonValue));
567
+ }
568
+
569
+ /**
570
+ * Ask the carrier again for the label of a dispatched shipment whose label could not be downloaded when it was sent (it carries a LABEL_DOWNLOAD_FAILED error). Stores the label, clears the error and returns the shipment.
571
+ * Fetch missing label
572
+ */
573
+ async fetchShipmentLabel(requestParameters: FetchShipmentLabelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateShipment201Response> {
574
+ const response = await this.fetchShipmentLabelRaw(requestParameters, initOverrides);
575
+ return await response.value();
576
+ }
577
+
510
578
  /**
511
579
  * Creates request options for getShipment without sending the request
512
580
  */
@@ -156,6 +156,10 @@ export const BatchSendShipments200ResponseResultsInnerCodeEnum = {
156
156
  CarrierConfigInvalid: 'CARRIER_CONFIG_INVALID',
157
157
  CarrierParameterInvalid: 'CARRIER_PARAMETER_INVALID',
158
158
  CarrierServerUnavailable: 'CARRIER_SERVER_UNAVAILABLE',
159
+ CarrierUnreachable: 'CARRIER_UNREACHABLE',
160
+ CarrierNotResponding: 'CARRIER_NOT_RESPONDING',
161
+ LabelDownloadFailed: 'LABEL_DOWNLOAD_FAILED',
162
+ CarrierDocumentIncomplete: 'CARRIER_DOCUMENT_INCOMPLETE',
159
163
  CarrierGlsWrongAddress: 'CARRIER_GLS_WRONG_ADDRESS',
160
164
  CarrierDaoInvalidPostalCode: 'CARRIER_DAO_INVALID_POSTAL_CODE',
161
165
  CarrierPostnordBookingFailed: 'CARRIER_POSTNORD_BOOKING_FAILED',
@@ -163,6 +167,9 @@ export const BatchSendShipments200ResponseResultsInnerCodeEnum = {
163
167
  CarrierDhlExpressBookingFailed: 'CARRIER_DHL_EXPRESS_BOOKING_FAILED',
164
168
  CarrierUpsBookingFailed: 'CARRIER_UPS_BOOKING_FAILED',
165
169
  CarrierMatkahuoltoBookingFailed: 'CARRIER_MATKAHUOLTO_BOOKING_FAILED',
170
+ CarrierDpdPlBookingFailed: 'CARRIER_DPD_PL_BOOKING_FAILED',
171
+ CarrierPostnlBookingFailed: 'CARRIER_POSTNL_BOOKING_FAILED',
172
+ CarrierRoyalMailBookingFailed: 'CARRIER_ROYAL_MAIL_BOOKING_FAILED',
166
173
  CarrierTrackingWebhookRegistrationFailed: 'CARRIER_TRACKING_WEBHOOK_REGISTRATION_FAILED',
167
174
  CarrierCustomsUnsupportedProduct: 'CARRIER_CUSTOMS_UNSUPPORTED_PRODUCT',
168
175
  CarrierCustomsIncomplete: 'CARRIER_CUSTOMS_INCOMPLETE',
@@ -20,17 +20,23 @@ import { mapValues } from '../runtime';
20
20
  */
21
21
  export interface CreateAddressRequest {
22
22
  /**
23
- * Name of the address
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
- * Attention contact person
29
+ * Internal label for this address; never printed or sent to a carrier
30
30
  * @type {string}
31
31
  * @memberof CreateAddressRequest
32
32
  */
33
- attContact: string;
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
- 'attContact': json['attContact'],
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'] == null ? undefined : 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'] == null ? undefined : 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
- * Name of the address
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
- * Attention contact person
35
+ * Internal label for this address; never printed or sent to a carrier
36
36
  * @type {string}
37
37
  * @memberof ListAddresses200ResponseDataInner
38
38
  */
39
- attContact: string;
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'],
@@ -126,6 +126,10 @@ export const ListApiTokens401ResponseCodeEnum = {
126
126
  CarrierConfigInvalid: 'CARRIER_CONFIG_INVALID',
127
127
  CarrierParameterInvalid: 'CARRIER_PARAMETER_INVALID',
128
128
  CarrierServerUnavailable: 'CARRIER_SERVER_UNAVAILABLE',
129
+ CarrierUnreachable: 'CARRIER_UNREACHABLE',
130
+ CarrierNotResponding: 'CARRIER_NOT_RESPONDING',
131
+ LabelDownloadFailed: 'LABEL_DOWNLOAD_FAILED',
132
+ CarrierDocumentIncomplete: 'CARRIER_DOCUMENT_INCOMPLETE',
129
133
  CarrierGlsWrongAddress: 'CARRIER_GLS_WRONG_ADDRESS',
130
134
  CarrierDaoInvalidPostalCode: 'CARRIER_DAO_INVALID_POSTAL_CODE',
131
135
  CarrierPostnordBookingFailed: 'CARRIER_POSTNORD_BOOKING_FAILED',
@@ -133,6 +137,9 @@ export const ListApiTokens401ResponseCodeEnum = {
133
137
  CarrierDhlExpressBookingFailed: 'CARRIER_DHL_EXPRESS_BOOKING_FAILED',
134
138
  CarrierUpsBookingFailed: 'CARRIER_UPS_BOOKING_FAILED',
135
139
  CarrierMatkahuoltoBookingFailed: 'CARRIER_MATKAHUOLTO_BOOKING_FAILED',
140
+ CarrierDpdPlBookingFailed: 'CARRIER_DPD_PL_BOOKING_FAILED',
141
+ CarrierPostnlBookingFailed: 'CARRIER_POSTNL_BOOKING_FAILED',
142
+ CarrierRoyalMailBookingFailed: 'CARRIER_ROYAL_MAIL_BOOKING_FAILED',
136
143
  CarrierTrackingWebhookRegistrationFailed: 'CARRIER_TRACKING_WEBHOOK_REGISTRATION_FAILED',
137
144
  CarrierCustomsUnsupportedProduct: 'CARRIER_CUSTOMS_UNSUPPORTED_PRODUCT',
138
145
  CarrierCustomsIncomplete: 'CARRIER_CUSTOMS_INCOMPLETE',
@@ -26,17 +26,23 @@ export interface ListShipments200ResponseDataInnerAddress {
26
26
  */
27
27
  id: string;
28
28
  /**
29
- * Name of the address
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
- * Attention contact person
35
+ * Internal label for this address; never printed or sent to a carrier
36
36
  * @type {string}
37
37
  * @memberof ListShipments200ResponseDataInnerAddress
38
38
  */
39
- attContact: string;
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'],
@@ -140,6 +140,10 @@ export const SendShipment422ResponseCodeEnum = {
140
140
  CarrierConfigInvalid: 'CARRIER_CONFIG_INVALID',
141
141
  CarrierParameterInvalid: 'CARRIER_PARAMETER_INVALID',
142
142
  CarrierServerUnavailable: 'CARRIER_SERVER_UNAVAILABLE',
143
+ CarrierUnreachable: 'CARRIER_UNREACHABLE',
144
+ CarrierNotResponding: 'CARRIER_NOT_RESPONDING',
145
+ LabelDownloadFailed: 'LABEL_DOWNLOAD_FAILED',
146
+ CarrierDocumentIncomplete: 'CARRIER_DOCUMENT_INCOMPLETE',
143
147
  CarrierGlsWrongAddress: 'CARRIER_GLS_WRONG_ADDRESS',
144
148
  CarrierDaoInvalidPostalCode: 'CARRIER_DAO_INVALID_POSTAL_CODE',
145
149
  CarrierPostnordBookingFailed: 'CARRIER_POSTNORD_BOOKING_FAILED',
@@ -147,6 +151,9 @@ export const SendShipment422ResponseCodeEnum = {
147
151
  CarrierDhlExpressBookingFailed: 'CARRIER_DHL_EXPRESS_BOOKING_FAILED',
148
152
  CarrierUpsBookingFailed: 'CARRIER_UPS_BOOKING_FAILED',
149
153
  CarrierMatkahuoltoBookingFailed: 'CARRIER_MATKAHUOLTO_BOOKING_FAILED',
154
+ CarrierDpdPlBookingFailed: 'CARRIER_DPD_PL_BOOKING_FAILED',
155
+ CarrierPostnlBookingFailed: 'CARRIER_POSTNL_BOOKING_FAILED',
156
+ CarrierRoyalMailBookingFailed: 'CARRIER_ROYAL_MAIL_BOOKING_FAILED',
150
157
  CarrierTrackingWebhookRegistrationFailed: 'CARRIER_TRACKING_WEBHOOK_REGISTRATION_FAILED',
151
158
  CarrierCustomsUnsupportedProduct: 'CARRIER_CUSTOMS_UNSUPPORTED_PRODUCT',
152
159
  CarrierCustomsIncomplete: 'CARRIER_CUSTOMS_INCOMPLETE',
@@ -20,17 +20,23 @@ import { mapValues } from '../runtime';
20
20
  */
21
21
  export interface UpdateAddressRequest {
22
22
  /**
23
- * Name of the address
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
- * Attention contact person
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
- attContact?: string;
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
- 'attContact': json['attContact'] == null ? undefined : json['attContact'],
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'] == null ? undefined : 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'] == null ? undefined : 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'],