@whiplashmerch/whiplash-api-client 3.2.40 → 3.2.42
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/client.esm.js +179 -1
- package/dist/client.esm.js.map +1 -1
- package/dist/generated/Orders.d.ts +37 -1
- package/dist/generated/PackageLabelReferences.d.ts +56 -0
- package/dist/generated/data-contracts.d.ts +180 -16
- package/dist/generated/index.d.ts +1 -0
- package/dist/mock-data/index.d.ts +1 -0
- package/dist/mock-data/v2_1/package-label-reference/created.d.ts +1 -0
- package/generated/Orders.ts +82 -0
- package/generated/PackageLabelReferences.ts +127 -0
- package/generated/data-contracts.ts +186 -16
- package/generated/index.ts +1 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiSharedEntitiesAudits, ApiSharedEntitiesMetaFields, ApiSharedEntitiesSidekiqBatch, ApiV21EntitiesCount, ApiV21EntitiesCustomsInfo, ApiV21EntitiesIncident, ApiV21EntitiesListValue, ApiV21EntitiesMessage, ApiV21EntitiesOrder, ApiV21EntitiesOrderDocument, ApiV21EntitiesOrderEvent, ApiV21EntitiesOrderItem, ApiV21EntitiesOrderItemInventoryInfo, ApiV21EntitiesOrderItemLotMap, ApiV21EntitiesOrderMetadata, ApiV21EntitiesOriginator, ApiV21EntitiesPackage, ApiV21EntitiesPackingRule, ApiV21EntitiesPostResponse, ApiV21EntitiesResult, ApiV21EntitiesRuleDismissal, ApiV21EntitiesSerialNumber, ApiV21EntitiesShippingDocument, ApiV21EntitiesShippingRate, ApiV21EntitiesWholesale, ApiV2EntitiesCount, ApiV2EntitiesCustomsInfo, ApiV2EntitiesIncident, ApiV2EntitiesListValue, ApiV2EntitiesMessage, ApiV2EntitiesOrder, ApiV2EntitiesOrderDocument, ApiV2EntitiesOrderEvent, ApiV2EntitiesOrderItem, ApiV2EntitiesOrderItemInventoryInfo, ApiV2EntitiesOrderItemLotMap, ApiV2EntitiesOrderMetadata, ApiV2EntitiesOriginator, ApiV2EntitiesPackage, ApiV2EntitiesPackingRule, ApiV2EntitiesResult, ApiV2EntitiesRuleDismissal, ApiV2EntitiesSerialNumber, ApiV2EntitiesShippingDocument, ApiV2EntitiesShippingRate, ApiV2EntitiesWholesale, GetApiV21OrdersAggregateParams, GetApiV21OrdersCountParams, GetApiV21OrdersIdCallTraitParams, GetApiV21OrdersIdEventsCountParams, GetApiV21OrdersIdEventsParams, GetApiV21OrdersIdIncidentsCountParams, GetApiV21OrdersIdIncidentsParams, GetApiV21OrdersIdMessagesCountParams, GetApiV21OrdersIdMessagesParams, GetApiV21OrdersIdMetaFieldsParams, GetApiV21OrdersIdOrderDocumentsCountParams, GetApiV21OrdersIdOrderDocumentsParams, GetApiV21OrdersIdOrderItemsCountParams, GetApiV21OrdersIdOrderItemsInventoryInfoParams, GetApiV21OrdersIdOrderItemsParams, GetApiV21OrdersIdPackagesCountParams, GetApiV21OrdersIdPackagesParams, GetApiV21OrdersIdPackingRulesCountParams, GetApiV21OrdersIdPackingRulesParams, GetApiV21OrdersIdShippingDocumentsParams, GetApiV21OrdersIdTraitsParams, GetApiV21OrdersParams, GetApiV2OrdersAggregateParams, GetApiV2OrdersCountParams, GetApiV2OrdersIdCallTraitParams, GetApiV2OrdersIdEventsCountParams, GetApiV2OrdersIdEventsParams, GetApiV2OrdersIdIncidentsCountParams, GetApiV2OrdersIdIncidentsParams, GetApiV2OrdersIdMessagesCountParams, GetApiV2OrdersIdMessagesParams, GetApiV2OrdersIdMetaFieldsParams, GetApiV2OrdersIdOrderDocumentsCountParams, GetApiV2OrdersIdOrderDocumentsParams, GetApiV2OrdersIdOrderItemsCountParams, GetApiV2OrdersIdOrderItemsInventoryInfoParams, GetApiV2OrdersIdOrderItemsParams, GetApiV2OrdersIdPackagesCountParams, GetApiV2OrdersIdPackagesParams, GetApiV2OrdersIdPackingRulesCountParams, GetApiV2OrdersIdPackingRulesParams, GetApiV2OrdersIdShippingDocumentsParams, GetApiV2OrdersIdTraitsParams, GetApiV2OrdersParams, PostApiV21OrdersBulkRequest, PostApiV21OrdersIdIncidentsRequest, PostApiV21OrdersIdMessagesRequest, PostApiV21OrdersIdOrderDocumentsRequest, PostApiV21OrdersIdOrderItemsRequest, PostApiV21OrdersIdPackagesRequest, PostApiV21OrdersIdRuleDismissalsRequest, PostApiV21OrdersRequest, PostApiV2OrdersBulkRequest, PostApiV2OrdersIdIncidentsRequest, PostApiV2OrdersIdMessagesRequest, PostApiV2OrdersIdOrderDocumentsRequest, PostApiV2OrdersIdOrderItemsRequest, PostApiV2OrdersIdPackagesRequest, PostApiV2OrdersIdRuleDismissalsRequest, PostApiV2OrdersRequest, PutApiV21OrdersIdCallActionRequest, PutApiV21OrdersIdCallAsyncActionRequest, PutApiV21OrdersIdCustomsInfoRequest, PutApiV21OrdersIdMetaFieldsRequest, PutApiV21OrdersIdRequest, PutApiV21OrdersIdWholesaleRequest, PutApiV2OrdersIdCallActionRequest, PutApiV2OrdersIdCallAsyncActionRequest, PutApiV2OrdersIdCustomsInfoRequest, PutApiV2OrdersIdMetaFieldsRequest, PutApiV2OrdersIdRequest, PutApiV2OrdersIdWholesaleRequest } from "./data-contracts";
|
|
1
|
+
import { ApiSharedEntitiesAudits, ApiSharedEntitiesMetaFields, ApiSharedEntitiesSidekiqBatch, ApiV21EntitiesCount, ApiV21EntitiesCustomsInfo, ApiV21EntitiesIncident, ApiV21EntitiesListValue, ApiV21EntitiesMessage, ApiV21EntitiesOrder, ApiV21EntitiesOrderDocument, ApiV21EntitiesOrderEvent, ApiV21EntitiesOrderItem, ApiV21EntitiesOrderItemInventoryInfo, ApiV21EntitiesOrderItemLotMap, ApiV21EntitiesOrderMetadata, ApiV21EntitiesOriginator, ApiV21EntitiesPackage, ApiV21EntitiesPackageLabelReference, ApiV21EntitiesPackingRule, ApiV21EntitiesPostResponse, ApiV21EntitiesResult, ApiV21EntitiesRuleDismissal, ApiV21EntitiesSerialNumber, ApiV21EntitiesShippingDocument, ApiV21EntitiesShippingRate, ApiV21EntitiesWholesale, ApiV2EntitiesCount, ApiV2EntitiesCustomsInfo, ApiV2EntitiesIncident, ApiV2EntitiesListValue, ApiV2EntitiesMessage, ApiV2EntitiesOrder, ApiV2EntitiesOrderDocument, ApiV2EntitiesOrderEvent, ApiV2EntitiesOrderItem, ApiV2EntitiesOrderItemInventoryInfo, ApiV2EntitiesOrderItemLotMap, ApiV2EntitiesOrderMetadata, ApiV2EntitiesOriginator, ApiV2EntitiesPackage, ApiV2EntitiesPackageLabelReference, ApiV2EntitiesPackingRule, ApiV2EntitiesResult, ApiV2EntitiesRuleDismissal, ApiV2EntitiesSerialNumber, ApiV2EntitiesShippingDocument, ApiV2EntitiesShippingRate, ApiV2EntitiesWholesale, GetApiV21OrdersAggregateParams, GetApiV21OrdersCountParams, GetApiV21OrdersIdCallTraitParams, GetApiV21OrdersIdEventsCountParams, GetApiV21OrdersIdEventsParams, GetApiV21OrdersIdIncidentsCountParams, GetApiV21OrdersIdIncidentsParams, GetApiV21OrdersIdMessagesCountParams, GetApiV21OrdersIdMessagesParams, GetApiV21OrdersIdMetaFieldsParams, GetApiV21OrdersIdOrderDocumentsCountParams, GetApiV21OrdersIdOrderDocumentsParams, GetApiV21OrdersIdOrderItemsCountParams, GetApiV21OrdersIdOrderItemsInventoryInfoParams, GetApiV21OrdersIdOrderItemsParams, GetApiV21OrdersIdPackagesCountParams, GetApiV21OrdersIdPackagesParams, GetApiV21OrdersIdPackingRulesCountParams, GetApiV21OrdersIdPackingRulesParams, GetApiV21OrdersIdShippingDocumentsParams, GetApiV21OrdersIdTraitsParams, GetApiV21OrdersParams, GetApiV2OrdersAggregateParams, GetApiV2OrdersCountParams, GetApiV2OrdersIdCallTraitParams, GetApiV2OrdersIdEventsCountParams, GetApiV2OrdersIdEventsParams, GetApiV2OrdersIdIncidentsCountParams, GetApiV2OrdersIdIncidentsParams, GetApiV2OrdersIdMessagesCountParams, GetApiV2OrdersIdMessagesParams, GetApiV2OrdersIdMetaFieldsParams, GetApiV2OrdersIdOrderDocumentsCountParams, GetApiV2OrdersIdOrderDocumentsParams, GetApiV2OrdersIdOrderItemsCountParams, GetApiV2OrdersIdOrderItemsInventoryInfoParams, GetApiV2OrdersIdOrderItemsParams, GetApiV2OrdersIdPackagesCountParams, GetApiV2OrdersIdPackagesParams, GetApiV2OrdersIdPackingRulesCountParams, GetApiV2OrdersIdPackingRulesParams, GetApiV2OrdersIdShippingDocumentsParams, GetApiV2OrdersIdTraitsParams, GetApiV2OrdersParams, PostApiV21OrdersBulkRequest, PostApiV21OrdersIdIncidentsRequest, PostApiV21OrdersIdMessagesRequest, PostApiV21OrdersIdOrderDocumentsRequest, PostApiV21OrdersIdOrderItemsRequest, PostApiV21OrdersIdPackageLabelReferenceRequest, PostApiV21OrdersIdPackagesRequest, PostApiV21OrdersIdRuleDismissalsRequest, PostApiV21OrdersRequest, PostApiV2OrdersBulkRequest, PostApiV2OrdersIdIncidentsRequest, PostApiV2OrdersIdMessagesRequest, PostApiV2OrdersIdOrderDocumentsRequest, PostApiV2OrdersIdOrderItemsRequest, PostApiV2OrdersIdPackageLabelReferenceRequest, PostApiV2OrdersIdPackagesRequest, PostApiV2OrdersIdRuleDismissalsRequest, PostApiV2OrdersRequest, PutApiV21OrdersIdCallActionRequest, PutApiV21OrdersIdCallAsyncActionRequest, PutApiV21OrdersIdCustomsInfoRequest, PutApiV21OrdersIdMetaFieldsRequest, PutApiV21OrdersIdRequest, PutApiV21OrdersIdWholesaleRequest, PutApiV2OrdersIdCallActionRequest, PutApiV2OrdersIdCallAsyncActionRequest, PutApiV2OrdersIdCustomsInfoRequest, PutApiV2OrdersIdMetaFieldsRequest, PutApiV2OrdersIdRequest, PutApiV2OrdersIdWholesaleRequest } from "./data-contracts";
|
|
2
2
|
import { HttpClient, RequestParams } from "./http-client";
|
|
3
3
|
/**
|
|
4
4
|
* @description Retrieves a list of orders
|
|
@@ -333,6 +333,24 @@ export declare const getApiV2OrdersIdOrderItemsInventoryInfo: (client: HttpClien
|
|
|
333
333
|
* @request GET:/api/v2/orders/{id}/originator
|
|
334
334
|
*/
|
|
335
335
|
export declare const getApiV2OrdersIdOriginator: (client: HttpClient, id: number, params?: RequestParams) => Promise<ApiV2EntitiesOriginator>;
|
|
336
|
+
/**
|
|
337
|
+
* @description Retrieve the package label reference for an order
|
|
338
|
+
*
|
|
339
|
+
* @tags orders
|
|
340
|
+
* @name GetApiV2OrdersIdPackageLabelReference
|
|
341
|
+
* @summary Retrieve package label reference
|
|
342
|
+
* @request GET:/api/v2/orders/{id}/package_label_reference
|
|
343
|
+
*/
|
|
344
|
+
export declare const getApiV2OrdersIdPackageLabelReference: (client: HttpClient, id: number, params?: RequestParams) => Promise<ApiV2EntitiesPackageLabelReference>;
|
|
345
|
+
/**
|
|
346
|
+
* @description Create a package label reference for an order
|
|
347
|
+
*
|
|
348
|
+
* @tags orders
|
|
349
|
+
* @name PostApiV2OrdersIdPackageLabelReference
|
|
350
|
+
* @summary Create a package label reference
|
|
351
|
+
* @request POST:/api/v2/orders/{id}/package_label_reference
|
|
352
|
+
*/
|
|
353
|
+
export declare const postApiV2OrdersIdPackageLabelReference: (client: HttpClient, id: number, data: PostApiV2OrdersIdPackageLabelReferenceRequest, params?: RequestParams) => Promise<ApiV2EntitiesPackageLabelReference>;
|
|
336
354
|
/**
|
|
337
355
|
* @description Get all packages for an order
|
|
338
356
|
*
|
|
@@ -810,6 +828,24 @@ export declare const getApiV21OrdersIdOrderItemsInventoryInfo: (client: HttpClie
|
|
|
810
828
|
* @request GET:/api/v2.1/orders/{id}/originator
|
|
811
829
|
*/
|
|
812
830
|
export declare const getApiV21OrdersIdOriginator: (client: HttpClient, id: number, params?: RequestParams) => Promise<ApiV21EntitiesOriginator>;
|
|
831
|
+
/**
|
|
832
|
+
* @description Retrieve the package label reference for an order
|
|
833
|
+
*
|
|
834
|
+
* @tags orders
|
|
835
|
+
* @name GetApiV21OrdersIdPackageLabelReference
|
|
836
|
+
* @summary Retrieve package label reference
|
|
837
|
+
* @request GET:/api/v2.1/orders/{id}/package_label_reference
|
|
838
|
+
*/
|
|
839
|
+
export declare const getApiV21OrdersIdPackageLabelReference: (client: HttpClient, id: number, params?: RequestParams) => Promise<ApiV21EntitiesPackageLabelReference>;
|
|
840
|
+
/**
|
|
841
|
+
* @description Create a package label reference for an order
|
|
842
|
+
*
|
|
843
|
+
* @tags orders
|
|
844
|
+
* @name PostApiV21OrdersIdPackageLabelReference
|
|
845
|
+
* @summary Create a package label reference
|
|
846
|
+
* @request POST:/api/v2.1/orders/{id}/package_label_reference
|
|
847
|
+
*/
|
|
848
|
+
export declare const postApiV21OrdersIdPackageLabelReference: (client: HttpClient, id: number, data: PostApiV21OrdersIdPackageLabelReferenceRequest, params?: RequestParams) => Promise<ApiV21EntitiesPostResponse>;
|
|
813
849
|
/**
|
|
814
850
|
* @description Get all packages for an order
|
|
815
851
|
*
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { ApiV21EntitiesPackageLabelReference, ApiV2EntitiesPackageLabelReference, PutApiV21PackageLabelReferencesIdRequest, PutApiV2PackageLabelReferencesIdRequest } from "./data-contracts";
|
|
2
|
+
import { HttpClient, RequestParams } from "./http-client";
|
|
3
|
+
/**
|
|
4
|
+
* @description Retrieve a package label reference
|
|
5
|
+
*
|
|
6
|
+
* @tags package_label_references
|
|
7
|
+
* @name GetApiV2PackageLabelReferencesId
|
|
8
|
+
* @summary Retrieve a package label reference
|
|
9
|
+
* @request GET:/api/v2/package_label_references/{id}
|
|
10
|
+
*/
|
|
11
|
+
export declare const getApiV2PackageLabelReferencesId: (client: HttpClient, id: number, params?: RequestParams) => Promise<ApiV2EntitiesPackageLabelReference>;
|
|
12
|
+
/**
|
|
13
|
+
* @description Update a package label reference
|
|
14
|
+
*
|
|
15
|
+
* @tags package_label_references
|
|
16
|
+
* @name PutApiV2PackageLabelReferencesId
|
|
17
|
+
* @summary Update a package label reference
|
|
18
|
+
* @request PUT:/api/v2/package_label_references/{id}
|
|
19
|
+
*/
|
|
20
|
+
export declare const putApiV2PackageLabelReferencesId: (client: HttpClient, id: number, data: PutApiV2PackageLabelReferencesIdRequest, params?: RequestParams) => Promise<ApiV2EntitiesPackageLabelReference>;
|
|
21
|
+
/**
|
|
22
|
+
* @description Destroy a package label reference
|
|
23
|
+
*
|
|
24
|
+
* @tags package_label_references
|
|
25
|
+
* @name DeleteApiV2PackageLabelReferencesId
|
|
26
|
+
* @summary Destroy a package label reference
|
|
27
|
+
* @request DELETE:/api/v2/package_label_references/{id}
|
|
28
|
+
*/
|
|
29
|
+
export declare const deleteApiV2PackageLabelReferencesId: (client: HttpClient, id: number, params?: RequestParams) => Promise<void>;
|
|
30
|
+
/**
|
|
31
|
+
* @description Retrieve a package label reference
|
|
32
|
+
*
|
|
33
|
+
* @tags package_label_references
|
|
34
|
+
* @name GetApiV21PackageLabelReferencesId
|
|
35
|
+
* @summary Retrieve a package label reference
|
|
36
|
+
* @request GET:/api/v2.1/package_label_references/{id}
|
|
37
|
+
*/
|
|
38
|
+
export declare const getApiV21PackageLabelReferencesId: (client: HttpClient, id: number, params?: RequestParams) => Promise<ApiV21EntitiesPackageLabelReference>;
|
|
39
|
+
/**
|
|
40
|
+
* @description Update a package label reference
|
|
41
|
+
*
|
|
42
|
+
* @tags package_label_references
|
|
43
|
+
* @name PutApiV21PackageLabelReferencesId
|
|
44
|
+
* @summary Update a package label reference
|
|
45
|
+
* @request PUT:/api/v2.1/package_label_references/{id}
|
|
46
|
+
*/
|
|
47
|
+
export declare const putApiV21PackageLabelReferencesId: (client: HttpClient, id: number, data: PutApiV21PackageLabelReferencesIdRequest, params?: RequestParams) => Promise<void>;
|
|
48
|
+
/**
|
|
49
|
+
* @description Destroy a package label reference
|
|
50
|
+
*
|
|
51
|
+
* @tags package_label_references
|
|
52
|
+
* @name DeleteApiV21PackageLabelReferencesId
|
|
53
|
+
* @summary Destroy a package label reference
|
|
54
|
+
* @request DELETE:/api/v2.1/package_label_references/{id}
|
|
55
|
+
*/
|
|
56
|
+
export declare const deleteApiV21PackageLabelReferencesId: (client: HttpClient, id: number, params?: RequestParams) => Promise<void>;
|
|
@@ -2841,6 +2841,7 @@ export interface ApiV2EntitiesOrder {
|
|
|
2841
2841
|
* Note: this field has a limit of 35 chars.
|
|
2842
2842
|
*/
|
|
2843
2843
|
package_label_reference?: string | null;
|
|
2844
|
+
package_label_reference_record?: ApiV2EntitiesPackageLabelReference;
|
|
2844
2845
|
packages?: ApiV2EntitiesPackage[];
|
|
2845
2846
|
/** url for this orders packing slip */
|
|
2846
2847
|
packingslip_pdf_url?: string | null;
|
|
@@ -3779,6 +3780,29 @@ export interface ApiV2EntitiesPackage {
|
|
|
3779
3780
|
updated_at?: string | null;
|
|
3780
3781
|
}
|
|
3781
3782
|
/** V2 */
|
|
3783
|
+
export interface ApiV2EntitiesPackageLabelReference {
|
|
3784
|
+
/** the package label reference identifier 2 (max 35 characters) */
|
|
3785
|
+
reference_identifier_2?: string | null;
|
|
3786
|
+
/** the package label reference identifier 3 (max 35 characters) */
|
|
3787
|
+
reference_identifier_3?: string | null;
|
|
3788
|
+
/** the package label reference identifier 4 (max 35 characters) */
|
|
3789
|
+
reference_identifier_4?: string | null;
|
|
3790
|
+
/** the package label reference identifier 5 (max 35 characters) */
|
|
3791
|
+
reference_identifier_5?: string | null;
|
|
3792
|
+
/**
|
|
3793
|
+
* the package label reference id
|
|
3794
|
+
* @format int32
|
|
3795
|
+
*/
|
|
3796
|
+
id?: number;
|
|
3797
|
+
/**
|
|
3798
|
+
* the package label reference order id
|
|
3799
|
+
* @format int32
|
|
3800
|
+
*/
|
|
3801
|
+
order_id?: number;
|
|
3802
|
+
/** the package label reference identifier (max 35 characters) */
|
|
3803
|
+
reference_identifier?: string | null;
|
|
3804
|
+
}
|
|
3805
|
+
/** V2 */
|
|
3782
3806
|
export interface ApiV2EntitiesPackingRule {
|
|
3783
3807
|
/** is the rule currently active? */
|
|
3784
3808
|
active?: boolean | null;
|
|
@@ -8079,6 +8103,7 @@ export interface ApiV21EntitiesOrder {
|
|
|
8079
8103
|
* Note: this field has a limit of 35 chars.
|
|
8080
8104
|
*/
|
|
8081
8105
|
package_label_reference?: string | null;
|
|
8106
|
+
package_label_reference_record?: ApiV21EntitiesPackageLabelReference;
|
|
8082
8107
|
/** url for this orders packing slip */
|
|
8083
8108
|
packingslip_pdf_url?: string | null;
|
|
8084
8109
|
/** the order payment type */
|
|
@@ -8991,6 +9016,29 @@ export interface ApiV21EntitiesPackage {
|
|
|
8991
9016
|
updated_at?: string | null;
|
|
8992
9017
|
}
|
|
8993
9018
|
/** V3 */
|
|
9019
|
+
export interface ApiV21EntitiesPackageLabelReference {
|
|
9020
|
+
/** the package label reference identifier 2 (max 35 characters) */
|
|
9021
|
+
reference_identifier_2?: string | null;
|
|
9022
|
+
/** the package label reference identifier 3 (max 35 characters) */
|
|
9023
|
+
reference_identifier_3?: string | null;
|
|
9024
|
+
/** the package label reference identifier 4 (max 35 characters) */
|
|
9025
|
+
reference_identifier_4?: string | null;
|
|
9026
|
+
/** the package label reference identifier 5 (max 35 characters) */
|
|
9027
|
+
reference_identifier_5?: string | null;
|
|
9028
|
+
/**
|
|
9029
|
+
* the package label reference id
|
|
9030
|
+
* @format int32
|
|
9031
|
+
*/
|
|
9032
|
+
id?: number;
|
|
9033
|
+
/**
|
|
9034
|
+
* the package label reference order id
|
|
9035
|
+
* @format int32
|
|
9036
|
+
*/
|
|
9037
|
+
order_id?: number;
|
|
9038
|
+
/** the package label reference identifier (max 35 characters) */
|
|
9039
|
+
reference_identifier?: string | null;
|
|
9040
|
+
}
|
|
9041
|
+
/** V3 */
|
|
8994
9042
|
export interface ApiV21EntitiesPackingRule {
|
|
8995
9043
|
/** is the rule currently active? */
|
|
8996
9044
|
active?: boolean | null;
|
|
@@ -11360,6 +11408,20 @@ export interface GetApiV21DocumentsParams {
|
|
|
11360
11408
|
sort?: string;
|
|
11361
11409
|
/** A comma separated list of tags to search on (ex: "account transaction,AccountExporters::Invoice"). */
|
|
11362
11410
|
tagged_with?: string;
|
|
11411
|
+
/**
|
|
11412
|
+
* Page of results to fetch
|
|
11413
|
+
* @format int32
|
|
11414
|
+
*/
|
|
11415
|
+
page?: number;
|
|
11416
|
+
/**
|
|
11417
|
+
* Number of results to return per page
|
|
11418
|
+
* @format int32
|
|
11419
|
+
*/
|
|
11420
|
+
per_page?: number;
|
|
11421
|
+
/** Include total count of results */
|
|
11422
|
+
page_total?: boolean;
|
|
11423
|
+
/** Include prev/next links in response headers */
|
|
11424
|
+
page_links?: boolean;
|
|
11363
11425
|
}
|
|
11364
11426
|
export interface GetApiV21FilterSetsCountParams {
|
|
11365
11427
|
/** JSON search string like {"attribute_eq": "Term"} */
|
|
@@ -14260,6 +14322,20 @@ export interface GetApiV2DocumentsParams {
|
|
|
14260
14322
|
sort?: string;
|
|
14261
14323
|
/** A comma separated list of tags to search on (ex: "account transaction,AccountExporters::Invoice"). */
|
|
14262
14324
|
tagged_with?: string;
|
|
14325
|
+
/**
|
|
14326
|
+
* Page of results to fetch
|
|
14327
|
+
* @format int32
|
|
14328
|
+
*/
|
|
14329
|
+
page?: number;
|
|
14330
|
+
/**
|
|
14331
|
+
* Number of results to return per page
|
|
14332
|
+
* @format int32
|
|
14333
|
+
*/
|
|
14334
|
+
per_page?: number;
|
|
14335
|
+
/** Include total count of results */
|
|
14336
|
+
page_total?: boolean;
|
|
14337
|
+
/** Include prev/next links in response headers */
|
|
14338
|
+
page_links?: boolean;
|
|
14263
14339
|
}
|
|
14264
14340
|
export interface GetApiV2FilterSetsCountParams {
|
|
14265
14341
|
/** JSON search string like {"attribute_eq": "Term"} */
|
|
@@ -18390,6 +18466,8 @@ export interface PostApiV21OrdersBulkRequest {
|
|
|
18390
18466
|
/** Permission limited orders are not editable, but still may be processed/shipped */
|
|
18391
18467
|
permissions_limited?: boolean;
|
|
18392
18468
|
order_items?: string;
|
|
18469
|
+
/** Full package label reference record. */
|
|
18470
|
+
package_label_reference_record?: string;
|
|
18393
18471
|
/** desired incoterm for the order */
|
|
18394
18472
|
incoterm?: PostApiV21OrdersBulkRequestIncoterm;
|
|
18395
18473
|
/**
|
|
@@ -18690,6 +18768,18 @@ export interface PostApiV21OrdersIdOrderItemsRequest {
|
|
|
18690
18768
|
ih_category?: string;
|
|
18691
18769
|
};
|
|
18692
18770
|
}
|
|
18771
|
+
export interface PostApiV21OrdersIdPackageLabelReferenceRequest {
|
|
18772
|
+
/** Reference identifier 2 (max 35 characters) */
|
|
18773
|
+
reference_identifier_2?: string;
|
|
18774
|
+
/** Reference identifier 3 (max 35 characters) */
|
|
18775
|
+
reference_identifier_3?: string;
|
|
18776
|
+
/** Reference identifier 4 (max 35 characters) */
|
|
18777
|
+
reference_identifier_4?: string;
|
|
18778
|
+
/** Reference identifier 5 (max 35 characters) */
|
|
18779
|
+
reference_identifier_5?: string;
|
|
18780
|
+
/** Reference identifier (max 35 characters) */
|
|
18781
|
+
reference_identifier?: string;
|
|
18782
|
+
}
|
|
18693
18783
|
export interface PostApiV21OrdersIdPackagesRequest {
|
|
18694
18784
|
/** the package dimensional weight (in ounces) */
|
|
18695
18785
|
actual_dimensional_weight?: string;
|
|
@@ -19021,11 +19111,20 @@ export interface PostApiV21OrdersRequest {
|
|
|
19021
19111
|
/** miscellaneous info for the originator */
|
|
19022
19112
|
misc?: string;
|
|
19023
19113
|
};
|
|
19024
|
-
/**
|
|
19025
|
-
* User-defined reference for shipping labels on packages.
|
|
19026
|
-
* Note: this field has a limit of 35 chars.
|
|
19027
|
-
*/
|
|
19114
|
+
/** User-defined reference for shipping labels (max 35 chars). Prefer package_label_reference_attributes. */
|
|
19028
19115
|
package_label_reference?: string;
|
|
19116
|
+
package_label_reference_attributes?: {
|
|
19117
|
+
/** the package label reference identifier (max 35 characters) */
|
|
19118
|
+
reference_identifier?: string;
|
|
19119
|
+
/** the package label reference identifier 2 (max 35 characters) */
|
|
19120
|
+
reference_identifier_2?: string;
|
|
19121
|
+
/** the package label reference identifier 3 (max 35 characters) */
|
|
19122
|
+
reference_identifier_3?: string;
|
|
19123
|
+
/** the package label reference identifier 4 (max 35 characters) */
|
|
19124
|
+
reference_identifier_4?: string;
|
|
19125
|
+
/** the package label reference identifier 5 (max 35 characters) */
|
|
19126
|
+
reference_identifier_5?: string;
|
|
19127
|
+
};
|
|
19029
19128
|
/** the order payment type */
|
|
19030
19129
|
payment_type?: PostApiV21OrdersRequestPaymentType;
|
|
19031
19130
|
/** Permission limited orders are not editable, but still may be processed/shipped */
|
|
@@ -21898,6 +21997,8 @@ export interface PostApiV2OrdersBulkRequest {
|
|
|
21898
21997
|
/** Permission limited orders are not editable, but still may be processed/shipped */
|
|
21899
21998
|
permissions_limited?: boolean;
|
|
21900
21999
|
order_items?: string;
|
|
22000
|
+
/** Full package label reference record. */
|
|
22001
|
+
package_label_reference_record?: string;
|
|
21901
22002
|
/** desired incoterm for the order */
|
|
21902
22003
|
incoterm?: PostApiV2OrdersBulkRequestIncoterm;
|
|
21903
22004
|
/**
|
|
@@ -22198,6 +22299,18 @@ export interface PostApiV2OrdersIdOrderItemsRequest {
|
|
|
22198
22299
|
ih_category?: string;
|
|
22199
22300
|
};
|
|
22200
22301
|
}
|
|
22302
|
+
export interface PostApiV2OrdersIdPackageLabelReferenceRequest {
|
|
22303
|
+
/** Reference identifier 2 (max 35 characters) */
|
|
22304
|
+
reference_identifier_2?: string;
|
|
22305
|
+
/** Reference identifier 3 (max 35 characters) */
|
|
22306
|
+
reference_identifier_3?: string;
|
|
22307
|
+
/** Reference identifier 4 (max 35 characters) */
|
|
22308
|
+
reference_identifier_4?: string;
|
|
22309
|
+
/** Reference identifier 5 (max 35 characters) */
|
|
22310
|
+
reference_identifier_5?: string;
|
|
22311
|
+
/** Reference identifier (max 35 characters) */
|
|
22312
|
+
reference_identifier?: string;
|
|
22313
|
+
}
|
|
22201
22314
|
export interface PostApiV2OrdersIdPackagesRequest {
|
|
22202
22315
|
/** the package dimensional weight (in ounces) */
|
|
22203
22316
|
actual_dimensional_weight?: string;
|
|
@@ -22529,11 +22642,20 @@ export interface PostApiV2OrdersRequest {
|
|
|
22529
22642
|
/** miscellaneous info for the originator */
|
|
22530
22643
|
misc?: string;
|
|
22531
22644
|
};
|
|
22532
|
-
/**
|
|
22533
|
-
* User-defined reference for shipping labels on packages.
|
|
22534
|
-
* Note: this field has a limit of 35 chars.
|
|
22535
|
-
*/
|
|
22645
|
+
/** User-defined reference for shipping labels (max 35 chars). Prefer package_label_reference_attributes. */
|
|
22536
22646
|
package_label_reference?: string;
|
|
22647
|
+
package_label_reference_attributes?: {
|
|
22648
|
+
/** the package label reference identifier (max 35 characters) */
|
|
22649
|
+
reference_identifier?: string;
|
|
22650
|
+
/** the package label reference identifier 2 (max 35 characters) */
|
|
22651
|
+
reference_identifier_2?: string;
|
|
22652
|
+
/** the package label reference identifier 3 (max 35 characters) */
|
|
22653
|
+
reference_identifier_3?: string;
|
|
22654
|
+
/** the package label reference identifier 4 (max 35 characters) */
|
|
22655
|
+
reference_identifier_4?: string;
|
|
22656
|
+
/** the package label reference identifier 5 (max 35 characters) */
|
|
22657
|
+
reference_identifier_5?: string;
|
|
22658
|
+
};
|
|
22537
22659
|
/** the order payment type */
|
|
22538
22660
|
payment_type?: PostApiV2OrdersRequestPaymentType;
|
|
22539
22661
|
/** Permission limited orders are not editable, but still may be processed/shipped */
|
|
@@ -25371,11 +25493,20 @@ export interface PutApiV21OrdersIdRequest {
|
|
|
25371
25493
|
order_orig?: string;
|
|
25372
25494
|
/** the order type */
|
|
25373
25495
|
order_type?: PutApiV21OrdersIdRequestOrderType;
|
|
25374
|
-
/**
|
|
25375
|
-
* User-defined reference for shipping labels on packages.
|
|
25376
|
-
* Note: this field has a limit of 35 chars.
|
|
25377
|
-
*/
|
|
25496
|
+
/** User-defined reference for shipping labels (max 35 chars). Prefer package_label_reference_attributes. */
|
|
25378
25497
|
package_label_reference?: string;
|
|
25498
|
+
package_label_reference_attributes?: {
|
|
25499
|
+
/** the package label reference identifier (max 35 characters) */
|
|
25500
|
+
reference_identifier?: string;
|
|
25501
|
+
/** the package label reference identifier 2 (max 35 characters) */
|
|
25502
|
+
reference_identifier_2?: string;
|
|
25503
|
+
/** the package label reference identifier 3 (max 35 characters) */
|
|
25504
|
+
reference_identifier_3?: string;
|
|
25505
|
+
/** the package label reference identifier 4 (max 35 characters) */
|
|
25506
|
+
reference_identifier_4?: string;
|
|
25507
|
+
/** the package label reference identifier 5 (max 35 characters) */
|
|
25508
|
+
reference_identifier_5?: string;
|
|
25509
|
+
};
|
|
25379
25510
|
/** url for this orders packing slip */
|
|
25380
25511
|
packingslip_pdf_url?: string;
|
|
25381
25512
|
/** the order payment type */
|
|
@@ -25669,6 +25800,18 @@ export interface PutApiV21OriginatorsIdRequest {
|
|
|
25669
25800
|
*/
|
|
25670
25801
|
last_notified_at?: string;
|
|
25671
25802
|
}
|
|
25803
|
+
export interface PutApiV21PackageLabelReferencesIdRequest {
|
|
25804
|
+
/** Reference identifier 2 (max 35 characters) */
|
|
25805
|
+
reference_identifier_2?: string;
|
|
25806
|
+
/** Reference identifier 3 (max 35 characters) */
|
|
25807
|
+
reference_identifier_3?: string;
|
|
25808
|
+
/** Reference identifier 4 (max 35 characters) */
|
|
25809
|
+
reference_identifier_4?: string;
|
|
25810
|
+
/** Reference identifier 5 (max 35 characters) */
|
|
25811
|
+
reference_identifier_5?: string;
|
|
25812
|
+
/** Reference identifier (max 35 characters) */
|
|
25813
|
+
reference_identifier?: string;
|
|
25814
|
+
}
|
|
25672
25815
|
export interface PutApiV21PackagesIdCallActionRequest {
|
|
25673
25816
|
action?: string;
|
|
25674
25817
|
/** Method params */
|
|
@@ -28228,11 +28371,20 @@ export interface PutApiV2OrdersIdRequest {
|
|
|
28228
28371
|
order_orig?: string;
|
|
28229
28372
|
/** the order type */
|
|
28230
28373
|
order_type?: PutApiV2OrdersIdRequestOrderType;
|
|
28231
|
-
/**
|
|
28232
|
-
* User-defined reference for shipping labels on packages.
|
|
28233
|
-
* Note: this field has a limit of 35 chars.
|
|
28234
|
-
*/
|
|
28374
|
+
/** User-defined reference for shipping labels (max 35 chars). Prefer package_label_reference_attributes. */
|
|
28235
28375
|
package_label_reference?: string;
|
|
28376
|
+
package_label_reference_attributes?: {
|
|
28377
|
+
/** the package label reference identifier (max 35 characters) */
|
|
28378
|
+
reference_identifier?: string;
|
|
28379
|
+
/** the package label reference identifier 2 (max 35 characters) */
|
|
28380
|
+
reference_identifier_2?: string;
|
|
28381
|
+
/** the package label reference identifier 3 (max 35 characters) */
|
|
28382
|
+
reference_identifier_3?: string;
|
|
28383
|
+
/** the package label reference identifier 4 (max 35 characters) */
|
|
28384
|
+
reference_identifier_4?: string;
|
|
28385
|
+
/** the package label reference identifier 5 (max 35 characters) */
|
|
28386
|
+
reference_identifier_5?: string;
|
|
28387
|
+
};
|
|
28236
28388
|
/** url for this orders packing slip */
|
|
28237
28389
|
packingslip_pdf_url?: string;
|
|
28238
28390
|
/** the order payment type */
|
|
@@ -28526,6 +28678,18 @@ export interface PutApiV2OriginatorsIdRequest {
|
|
|
28526
28678
|
*/
|
|
28527
28679
|
last_notified_at?: string;
|
|
28528
28680
|
}
|
|
28681
|
+
export interface PutApiV2PackageLabelReferencesIdRequest {
|
|
28682
|
+
/** Reference identifier 2 (max 35 characters) */
|
|
28683
|
+
reference_identifier_2?: string;
|
|
28684
|
+
/** Reference identifier 3 (max 35 characters) */
|
|
28685
|
+
reference_identifier_3?: string;
|
|
28686
|
+
/** Reference identifier 4 (max 35 characters) */
|
|
28687
|
+
reference_identifier_4?: string;
|
|
28688
|
+
/** Reference identifier 5 (max 35 characters) */
|
|
28689
|
+
reference_identifier_5?: string;
|
|
28690
|
+
/** Reference identifier (max 35 characters) */
|
|
28691
|
+
reference_identifier?: string;
|
|
28692
|
+
}
|
|
28529
28693
|
export interface PutApiV2PackagesIdCallActionRequest {
|
|
28530
28694
|
action?: string;
|
|
28531
28695
|
/** Method params */
|
|
@@ -45,6 +45,7 @@ export * from './OrderItems';
|
|
|
45
45
|
export * from './OrderTotes';
|
|
46
46
|
export * from './Orders';
|
|
47
47
|
export * from './Originators';
|
|
48
|
+
export * from './PackageLabelReferences';
|
|
48
49
|
export * from './Packages';
|
|
49
50
|
export * from './PalletLocations';
|
|
50
51
|
export * from './Pallets';
|
|
@@ -85,6 +85,7 @@ export * from './v2_1/item/single';
|
|
|
85
85
|
export * from './v2_1/order/processing';
|
|
86
86
|
export * from './v2_1/shipnotice/processing';
|
|
87
87
|
export * from './v2_1/originator/created';
|
|
88
|
+
export * from './v2_1/package-label-reference/created';
|
|
88
89
|
export * from './v2_1/package/created';
|
|
89
90
|
export * from './v2_1/pallet-location/created';
|
|
90
91
|
export * from './v2_1/pallet/created';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ApiV21PackageLabelReferenceCreatedExample = "{\"id\":123}";
|
package/generated/Orders.ts
CHANGED
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
ApiV21EntitiesOrderDocument,
|
|
19
19
|
ApiV21EntitiesOrderEvent,
|
|
20
20
|
ApiV21EntitiesOrderItem,
|
|
21
|
+
ApiV21EntitiesPackageLabelReference,
|
|
21
22
|
ApiV21EntitiesPackingRule,
|
|
22
23
|
ApiV21EntitiesPostResponse,
|
|
23
24
|
ApiV21EntitiesResult,
|
|
@@ -30,6 +31,7 @@ import {
|
|
|
30
31
|
ApiV2EntitiesOrderDocument,
|
|
31
32
|
ApiV2EntitiesOrderEvent,
|
|
32
33
|
ApiV2EntitiesOrderItem,
|
|
34
|
+
ApiV2EntitiesPackageLabelReference,
|
|
33
35
|
ApiV2EntitiesPackingRule,
|
|
34
36
|
ApiV2EntitiesResult,
|
|
35
37
|
ApiV2EntitiesSerialNumber,
|
|
@@ -62,10 +64,12 @@ import {
|
|
|
62
64
|
PostApiV21OrdersBulkRequest,
|
|
63
65
|
PostApiV21OrdersIdOrderDocumentsRequest,
|
|
64
66
|
PostApiV21OrdersIdOrderItemsRequest,
|
|
67
|
+
PostApiV21OrdersIdPackageLabelReferenceRequest,
|
|
65
68
|
PostApiV21OrdersRequest,
|
|
66
69
|
PostApiV2OrdersBulkRequest,
|
|
67
70
|
PostApiV2OrdersIdOrderDocumentsRequest,
|
|
68
71
|
PostApiV2OrdersIdOrderItemsRequest,
|
|
72
|
+
PostApiV2OrdersIdPackageLabelReferenceRequest,
|
|
69
73
|
PostApiV2OrdersRequest,
|
|
70
74
|
PutApiV21OrdersIdCallActionRequest,
|
|
71
75
|
PutApiV21OrdersIdMetaFieldsRequest,
|
|
@@ -463,6 +467,45 @@ export const getApiV2OrdersIdOrderItemsCount = (
|
|
|
463
467
|
...params,
|
|
464
468
|
});
|
|
465
469
|
};
|
|
470
|
+
/**
|
|
471
|
+
* @description Retrieve the package label reference for an order
|
|
472
|
+
*
|
|
473
|
+
* @tags orders
|
|
474
|
+
* @name GetApiV2OrdersIdPackageLabelReference
|
|
475
|
+
* @summary Retrieve package label reference
|
|
476
|
+
* @request GET:/api/v2/orders/{id}/package_label_reference
|
|
477
|
+
*/
|
|
478
|
+
export const getApiV2OrdersIdPackageLabelReference = (client: HttpClient, id: number, params: RequestParams = {}) => {
|
|
479
|
+
return client.request<ApiV2EntitiesPackageLabelReference, ApiSharedEntitiesApiError>({
|
|
480
|
+
path: `/api/v2/orders/${id}/package_label_reference`,
|
|
481
|
+
method: "GET",
|
|
482
|
+
format: "json",
|
|
483
|
+
...params,
|
|
484
|
+
});
|
|
485
|
+
};
|
|
486
|
+
/**
|
|
487
|
+
* @description Create a package label reference for an order
|
|
488
|
+
*
|
|
489
|
+
* @tags orders
|
|
490
|
+
* @name PostApiV2OrdersIdPackageLabelReference
|
|
491
|
+
* @summary Create a package label reference
|
|
492
|
+
* @request POST:/api/v2/orders/{id}/package_label_reference
|
|
493
|
+
*/
|
|
494
|
+
export const postApiV2OrdersIdPackageLabelReference = (
|
|
495
|
+
client: HttpClient,
|
|
496
|
+
id: number,
|
|
497
|
+
data: PostApiV2OrdersIdPackageLabelReferenceRequest,
|
|
498
|
+
params: RequestParams = {},
|
|
499
|
+
) => {
|
|
500
|
+
return client.request<ApiV2EntitiesPackageLabelReference, ApiSharedEntitiesApiError>({
|
|
501
|
+
path: `/api/v2/orders/${id}/package_label_reference`,
|
|
502
|
+
method: "POST",
|
|
503
|
+
body: data,
|
|
504
|
+
type: ContentType.Json,
|
|
505
|
+
format: "json",
|
|
506
|
+
...params,
|
|
507
|
+
});
|
|
508
|
+
};
|
|
466
509
|
/**
|
|
467
510
|
* @description Get packing rules with suggested items
|
|
468
511
|
*
|
|
@@ -943,6 +986,45 @@ export const getApiV21OrdersIdOrderItemsCount = (
|
|
|
943
986
|
...params,
|
|
944
987
|
});
|
|
945
988
|
};
|
|
989
|
+
/**
|
|
990
|
+
* @description Retrieve the package label reference for an order
|
|
991
|
+
*
|
|
992
|
+
* @tags orders
|
|
993
|
+
* @name GetApiV21OrdersIdPackageLabelReference
|
|
994
|
+
* @summary Retrieve package label reference
|
|
995
|
+
* @request GET:/api/v2.1/orders/{id}/package_label_reference
|
|
996
|
+
*/
|
|
997
|
+
export const getApiV21OrdersIdPackageLabelReference = (client: HttpClient, id: number, params: RequestParams = {}) => {
|
|
998
|
+
return client.request<ApiV21EntitiesPackageLabelReference, ApiSharedEntitiesApiError>({
|
|
999
|
+
path: `/api/v2.1/orders/${id}/package_label_reference`,
|
|
1000
|
+
method: "GET",
|
|
1001
|
+
format: "json",
|
|
1002
|
+
...params,
|
|
1003
|
+
});
|
|
1004
|
+
};
|
|
1005
|
+
/**
|
|
1006
|
+
* @description Create a package label reference for an order
|
|
1007
|
+
*
|
|
1008
|
+
* @tags orders
|
|
1009
|
+
* @name PostApiV21OrdersIdPackageLabelReference
|
|
1010
|
+
* @summary Create a package label reference
|
|
1011
|
+
* @request POST:/api/v2.1/orders/{id}/package_label_reference
|
|
1012
|
+
*/
|
|
1013
|
+
export const postApiV21OrdersIdPackageLabelReference = (
|
|
1014
|
+
client: HttpClient,
|
|
1015
|
+
id: number,
|
|
1016
|
+
data: PostApiV21OrdersIdPackageLabelReferenceRequest,
|
|
1017
|
+
params: RequestParams = {},
|
|
1018
|
+
) => {
|
|
1019
|
+
return client.request<ApiV21EntitiesPostResponse, ApiSharedEntitiesApiError>({
|
|
1020
|
+
path: `/api/v2.1/orders/${id}/package_label_reference`,
|
|
1021
|
+
method: "POST",
|
|
1022
|
+
body: data,
|
|
1023
|
+
type: ContentType.Json,
|
|
1024
|
+
format: "json",
|
|
1025
|
+
...params,
|
|
1026
|
+
});
|
|
1027
|
+
};
|
|
946
1028
|
/**
|
|
947
1029
|
* @description Get packing rules with suggested items
|
|
948
1030
|
*
|