@whiplashmerch/whiplash-api-client 3.1.13 → 3.2.1

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.
@@ -21,6 +21,7 @@ import {
21
21
  ApiV21EntitiesPostResponse,
22
22
  ApiV21EntitiesResult,
23
23
  ApiV21EntitiesSerialNumber,
24
+ ApiV21EntitiesShippingDocument,
24
25
  ApiV21EntitiesWholesale,
25
26
  ApiV2EntitiesCount,
26
27
  ApiV2EntitiesCustomsInfo,
@@ -30,6 +31,7 @@ import {
30
31
  ApiV2EntitiesOrderItem,
31
32
  ApiV2EntitiesResult,
32
33
  ApiV2EntitiesSerialNumber,
34
+ ApiV2EntitiesShippingDocument,
33
35
  ApiV2EntitiesWholesale,
34
36
  GetApiV21OrdersCountParams,
35
37
  GetApiV21OrdersIdEventsCountParams,
@@ -39,6 +41,7 @@ import {
39
41
  GetApiV21OrdersIdOrderDocumentsParams,
40
42
  GetApiV21OrdersIdOrderItemsCountParams,
41
43
  GetApiV21OrdersIdOrderItemsParams,
44
+ GetApiV21OrdersIdShippingDocumentsParams,
42
45
  GetApiV21OrdersParams,
43
46
  GetApiV2OrdersCountParams,
44
47
  GetApiV2OrdersIdEventsCountParams,
@@ -48,6 +51,7 @@ import {
48
51
  GetApiV2OrdersIdOrderDocumentsParams,
49
52
  GetApiV2OrdersIdOrderItemsCountParams,
50
53
  GetApiV2OrdersIdOrderItemsParams,
54
+ GetApiV2OrdersIdShippingDocumentsParams,
51
55
  GetApiV2OrdersParams,
52
56
  PostApiV21OrdersBulkRequest,
53
57
  PostApiV21OrdersIdOrderDocumentsRequest,
@@ -469,6 +473,27 @@ export const getApiV2OrdersIdSerialNumbers = (client: HttpClient, id: number, pa
469
473
  ...params,
470
474
  });
471
475
  };
476
+ /**
477
+ * @description List all shipping documents for a order
478
+ *
479
+ * @tags orders
480
+ * @name GetApiV2OrdersIdShippingDocuments
481
+ * @summary List shipping documents for a order
482
+ * @request GET:/api/v2/orders/{id}/shipping_documents
483
+ */
484
+ export const getApiV2OrdersIdShippingDocuments = (
485
+ client: HttpClient,
486
+ { id, ...query }: GetApiV2OrdersIdShippingDocumentsParams,
487
+ params: RequestParams = {},
488
+ ) => {
489
+ return client.request<ApiV2EntitiesShippingDocument[], ApiSharedEntitiesApiError>({
490
+ path: `/api/v2/orders/${id}/shipping_documents`,
491
+ method: "GET",
492
+ query: query,
493
+ format: "json",
494
+ ...params,
495
+ });
496
+ };
472
497
  /**
473
498
  * @description get the Wholesale object for an order
474
499
  *
@@ -886,6 +911,27 @@ export const getApiV21OrdersIdSerialNumbers = (client: HttpClient, id: number, p
886
911
  ...params,
887
912
  });
888
913
  };
914
+ /**
915
+ * @description List all shipping documents for a order
916
+ *
917
+ * @tags orders
918
+ * @name GetApiV21OrdersIdShippingDocuments
919
+ * @summary List shipping documents for a order
920
+ * @request GET:/api/v2.1/orders/{id}/shipping_documents
921
+ */
922
+ export const getApiV21OrdersIdShippingDocuments = (
923
+ client: HttpClient,
924
+ { id, ...query }: GetApiV21OrdersIdShippingDocumentsParams,
925
+ params: RequestParams = {},
926
+ ) => {
927
+ return client.request<ApiV21EntitiesShippingDocument[], ApiSharedEntitiesApiError>({
928
+ path: `/api/v2.1/orders/${id}/shipping_documents`,
929
+ method: "GET",
930
+ query: query,
931
+ format: "json",
932
+ ...params,
933
+ });
934
+ };
889
935
  /**
890
936
  * @description get the Wholesale object for an order
891
937
  *
@@ -0,0 +1,62 @@
1
+ /* eslint-disable */
2
+ /* tslint:disable */
3
+ /*
4
+ * ---------------------------------------------------------------
5
+ * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
6
+ * ## ##
7
+ * ## AUTHOR: acacode ##
8
+ * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
9
+ * ---------------------------------------------------------------
10
+ */
11
+
12
+ import {
13
+ ApiSharedEntitiesApiError,
14
+ ApiV21EntitiesShippingDocument,
15
+ ApiV2EntitiesShippingDocument,
16
+ GetApiV21PackagesIdShippingDocumentsParams,
17
+ GetApiV2PackagesIdShippingDocumentsParams,
18
+ } from "./data-contracts";
19
+ import { HttpClient, RequestParams } from "./http-client";
20
+
21
+ /**
22
+ * @description List all shipping documents for a package
23
+ *
24
+ * @tags packages
25
+ * @name GetApiV2PackagesIdShippingDocuments
26
+ * @summary List shipping documents for a package
27
+ * @request GET:/api/v2/packages/{id}/shipping_documents
28
+ */
29
+ export const getApiV2PackagesIdShippingDocuments = (
30
+ client: HttpClient,
31
+ { id, ...query }: GetApiV2PackagesIdShippingDocumentsParams,
32
+ params: RequestParams = {},
33
+ ) => {
34
+ return client.request<ApiV2EntitiesShippingDocument[], ApiSharedEntitiesApiError>({
35
+ path: `/api/v2/packages/${id}/shipping_documents`,
36
+ method: "GET",
37
+ query: query,
38
+ format: "json",
39
+ ...params,
40
+ });
41
+ };
42
+ /**
43
+ * @description List all shipping documents for a package
44
+ *
45
+ * @tags packages
46
+ * @name GetApiV21PackagesIdShippingDocuments
47
+ * @summary List shipping documents for a package
48
+ * @request GET:/api/v2.1/packages/{id}/shipping_documents
49
+ */
50
+ export const getApiV21PackagesIdShippingDocuments = (
51
+ client: HttpClient,
52
+ { id, ...query }: GetApiV21PackagesIdShippingDocumentsParams,
53
+ params: RequestParams = {},
54
+ ) => {
55
+ return client.request<ApiV21EntitiesShippingDocument[], ApiSharedEntitiesApiError>({
56
+ path: `/api/v2.1/packages/${id}/shipping_documents`,
57
+ method: "GET",
58
+ query: query,
59
+ format: "json",
60
+ ...params,
61
+ });
62
+ };