@whiplashmerch/whiplash-api-client 3.2.37 → 3.2.39

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.
@@ -1,4 +1,4 @@
1
- import { ApiSharedEntitiesAudits, ApiSharedEntitiesMetaFields, ApiSharedEntitiesSidekiqBatch, ApiV21EntitiesCount, ApiV21EntitiesCustomer, ApiV21EntitiesPostResponse, ApiV21EntitiesResult, ApiV21EntitiesShop, ApiV2EntitiesCount, ApiV2EntitiesCustomer, ApiV2EntitiesResult, ApiV2EntitiesShop, GetApiV21CustomersCountParams, GetApiV21CustomersIdCallTraitParams, GetApiV21CustomersIdMetaFieldsParams, GetApiV21CustomersIdTraitsParams, GetApiV21CustomersParams, GetApiV2CustomersCountParams, GetApiV2CustomersIdCallTraitParams, GetApiV2CustomersIdMetaFieldsParams, GetApiV2CustomersIdTraitsParams, GetApiV2CustomersParams, PostApiV21CustomersRequest, PostApiV2CustomersRequest, PutApiV21CustomersIdCallActionRequest, PutApiV21CustomersIdCallAsyncActionRequest, PutApiV21CustomersIdMetaFieldsRequest, PutApiV21CustomersIdRequest, PutApiV2CustomersIdCallActionRequest, PutApiV2CustomersIdCallAsyncActionRequest, PutApiV2CustomersIdMetaFieldsRequest, PutApiV2CustomersIdRequest } from "./data-contracts";
1
+ import { ApiSharedEntitiesAudits, ApiSharedEntitiesMetaFields, ApiSharedEntitiesSidekiqBatch, ApiV21EntitiesCount, ApiV21EntitiesCustomer, ApiV21EntitiesPostResponse, ApiV21EntitiesResult, ApiV21EntitiesShop, ApiV2EntitiesCount, ApiV2EntitiesCustomer, ApiV2EntitiesResult, ApiV2EntitiesShop, GetApiV21CustomersCountParams, GetApiV21CustomersIdCallTraitParams, GetApiV21CustomersIdMetaFieldsParams, GetApiV21CustomersIdTraitsParams, GetApiV21CustomersParams, GetApiV2CustomersCountParams, GetApiV2CustomersIdCallTraitParams, GetApiV2CustomersIdMetaFieldsParams, GetApiV2CustomersIdTraitsParams, GetApiV2CustomersParams, PostApiV21CustomersIdShopsHandoffRequest, PostApiV21CustomersRequest, PostApiV2CustomersIdShopsHandoffRequest, PostApiV2CustomersRequest, PutApiV21CustomersIdCallActionRequest, PutApiV21CustomersIdCallAsyncActionRequest, PutApiV21CustomersIdMetaFieldsRequest, PutApiV21CustomersIdRequest, PutApiV2CustomersIdCallActionRequest, PutApiV2CustomersIdCallAsyncActionRequest, PutApiV2CustomersIdMetaFieldsRequest, PutApiV2CustomersIdRequest } from "./data-contracts";
2
2
  import { HttpClient, RequestParams } from "./http-client";
3
3
  /**
4
4
  * @description Get all customers
@@ -126,6 +126,15 @@ export declare const putApiV2CustomersIdMetaFields: (client: HttpClient, id: num
126
126
  * @request GET:/api/v2/customers/{id}/shops
127
127
  */
128
128
  export declare const getApiV2CustomersIdShops: (client: HttpClient, id: number, params?: RequestParams) => Promise<ApiV2EntitiesShop[]>;
129
+ /**
130
+ * @description Upsert a Shopify shop connection
131
+ *
132
+ * @tags customers
133
+ * @name PostApiV2CustomersIdShopsHandoff
134
+ * @summary Create or update a Shopify shop via OAuth handoff
135
+ * @request POST:/api/v2/customers/{id}/shops/handoff
136
+ */
137
+ export declare const postApiV2CustomersIdShopsHandoff: (client: HttpClient, id: number, data: PostApiV2CustomersIdShopsHandoffRequest, params?: RequestParams) => Promise<any>;
129
138
  /**
130
139
  * @description Get the specified customers traits
131
140
  *
@@ -261,6 +270,15 @@ export declare const putApiV21CustomersIdMetaFields: (client: HttpClient, id: nu
261
270
  * @request GET:/api/v2.1/customers/{id}/shops
262
271
  */
263
272
  export declare const getApiV21CustomersIdShops: (client: HttpClient, id: number, params?: RequestParams) => Promise<ApiV21EntitiesShop[]>;
273
+ /**
274
+ * @description Upsert a Shopify shop connection
275
+ *
276
+ * @tags customers
277
+ * @name PostApiV21CustomersIdShopsHandoff
278
+ * @summary Create or update a Shopify shop via OAuth handoff
279
+ * @request POST:/api/v2.1/customers/{id}/shops/handoff
280
+ */
281
+ export declare const postApiV21CustomersIdShopsHandoff: (client: HttpClient, id: number, data: PostApiV21CustomersIdShopsHandoffRequest, params?: RequestParams) => Promise<any>;
264
282
  /**
265
283
  * @description Get the specified customers traits
266
284
  *
@@ -8172,6 +8172,10 @@ export interface ApiV21EntitiesOrder {
8172
8172
  shipping_method_id?: number | null;
8173
8173
  /** Shipping method service name */
8174
8174
  shipping_method_name?: string;
8175
+ /** does the order shipping method require routing? */
8176
+ shipping_method_needs_routing?: boolean;
8177
+ /** the raw shipping method service (needs_routing, Ground, etc) */
8178
+ shipping_method_service?: string;
8175
8179
  /** the order shipping name */
8176
8180
  shipping_name?: string | null;
8177
8181
  /** the order shipping phone number */
@@ -17333,6 +17337,12 @@ export interface PostApiV21CurrenciesRequest {
17333
17337
  /** the currency symbol */
17334
17338
  symbol?: string;
17335
17339
  }
17340
+ export interface PostApiV21CustomersIdShopsHandoffRequest {
17341
+ /** Shopify access token */
17342
+ access_token: string;
17343
+ /** Shopify domain (e.g. my-store.myshopify.com) */
17344
+ shop_domain: string;
17345
+ }
17336
17346
  export interface PostApiV21CustomersRequest {
17337
17347
  /** Customer billing address line 1. */
17338
17348
  billing_address1?: string;
@@ -20835,6 +20845,12 @@ export interface PostApiV2CurrenciesRequest {
20835
20845
  /** the currency symbol */
20836
20846
  symbol?: string;
20837
20847
  }
20848
+ export interface PostApiV2CustomersIdShopsHandoffRequest {
20849
+ /** Shopify access token */
20850
+ access_token: string;
20851
+ /** Shopify domain (e.g. my-store.myshopify.com) */
20852
+ shop_domain: string;
20853
+ }
20838
20854
  export interface PostApiV2CustomersRequest {
20839
20855
  /** Customer billing address line 1. */
20840
20856
  billing_address1?: string;
@@ -4279,6 +4279,10 @@ export interface ApiV21EntitiesOrder {
4279
4279
  shipping_method_id?: number | null;
4280
4280
  /** Shipping method service name */
4281
4281
  shipping_method_name?: string;
4282
+ /** does the order shipping method require routing? */
4283
+ shipping_method_needs_routing?: boolean;
4284
+ /** the raw shipping method service (needs_routing, Ground, etc) */
4285
+ shipping_method_service?: string;
4282
4286
  /** the order shipping name */
4283
4287
  shipping_name?: string | null;
4284
4288
  /** the order shipping phone number */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whiplashmerch/whiplash-api-client",
3
- "version": "3.2.37",
3
+ "version": "3.2.39",
4
4
  "description": "",
5
5
  "devDependencies": {},
6
6
  "scripts": {