ce-storefront 0.15.3 → 0.15.6
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/README.md +15 -2
- package/docs/sdks/auth/README.md +10 -0
- package/docs/sdks/carts/README.md +12 -0
- package/docs/sdks/catalog/README.md +11 -0
- package/docs/sdks/common/README.md +1 -0
- package/docs/sdks/customers/README.md +7 -0
- package/docs/sdks/orders/README.md +7 -0
- package/docs/sdks/pos/README.md +397 -0
- package/docs/sdks/shipping/README.md +1 -0
- package/esm/funcs/posCreatePosCart.d.ts +17 -0
- package/esm/funcs/posCreatePosCart.d.ts.map +1 -0
- package/esm/funcs/posCreatePosCart.js +80 -0
- package/esm/funcs/posCreatePosCart.js.map +1 -0
- package/esm/funcs/posLoginToPosDevice.d.ts +17 -0
- package/esm/funcs/posLoginToPosDevice.d.ts.map +1 -0
- package/esm/funcs/posLoginToPosDevice.js +84 -0
- package/esm/funcs/posLoginToPosDevice.js.map +1 -0
- package/esm/funcs/posPairPosDevice.d.ts +17 -0
- package/esm/funcs/posPairPosDevice.d.ts.map +1 -0
- package/esm/funcs/posPairPosDevice.js +84 -0
- package/esm/funcs/posPairPosDevice.js.map +1 -0
- package/esm/funcs/posRefreshPosAccessToken.d.ts +17 -0
- package/esm/funcs/posRefreshPosAccessToken.d.ts.map +1 -0
- package/esm/funcs/posRefreshPosAccessToken.js +81 -0
- package/esm/funcs/posRefreshPosAccessToken.js.map +1 -0
- package/esm/funcs/posUpdatePosCart.d.ts +17 -0
- package/esm/funcs/posUpdatePosCart.d.ts.map +1 -0
- package/esm/funcs/posUpdatePosCart.js +84 -0
- package/esm/funcs/posUpdatePosCart.js.map +1 -0
- package/esm/lib/base64.d.ts +2 -2
- package/esm/lib/base64.d.ts.map +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/encodings.d.ts.map +1 -1
- package/esm/models/components/index.d.ts +1 -0
- package/esm/models/components/index.d.ts.map +1 -1
- package/esm/models/components/index.js +1 -0
- package/esm/models/components/index.js.map +1 -1
- package/esm/models/components/posuser.d.ts +124 -0
- package/esm/models/components/posuser.d.ts.map +1 -0
- package/esm/models/components/posuser.js +139 -0
- package/esm/models/components/posuser.js.map +1 -0
- package/esm/models/operations/createposcart.d.ts +90 -0
- package/esm/models/operations/createposcart.d.ts.map +1 -0
- package/esm/models/operations/createposcart.js +86 -0
- package/esm/models/operations/createposcart.js.map +1 -0
- package/esm/models/operations/index.d.ts +5 -0
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +5 -0
- package/esm/models/operations/index.js.map +1 -1
- package/esm/models/operations/logintoposdevice.d.ts +118 -0
- package/esm/models/operations/logintoposdevice.d.ts.map +1 -0
- package/esm/models/operations/logintoposdevice.js +146 -0
- package/esm/models/operations/logintoposdevice.js.map +1 -0
- package/esm/models/operations/pairposdevice.d.ts +115 -0
- package/esm/models/operations/pairposdevice.d.ts.map +1 -0
- package/esm/models/operations/pairposdevice.js +141 -0
- package/esm/models/operations/pairposdevice.js.map +1 -0
- package/esm/models/operations/refreshposaccesstoken.d.ts +88 -0
- package/esm/models/operations/refreshposaccesstoken.d.ts.map +1 -0
- package/esm/models/operations/refreshposaccesstoken.js +106 -0
- package/esm/models/operations/refreshposaccesstoken.js.map +1 -0
- package/esm/models/operations/updateposcart.d.ts +120 -0
- package/esm/models/operations/updateposcart.d.ts.map +1 -0
- package/esm/models/operations/updateposcart.js +122 -0
- package/esm/models/operations/updateposcart.js.map +1 -0
- package/esm/sdk/pos.d.ts +40 -0
- package/esm/sdk/pos.d.ts.map +1 -0
- package/esm/sdk/pos.js +58 -0
- package/esm/sdk/pos.js.map +1 -0
- package/esm/sdk/sdk.d.ts +3 -0
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +4 -0
- package/esm/sdk/sdk.js.map +1 -1
- package/examples/README.md +5 -0
- package/examples/catalogListProducts.example.ts +2 -0
- package/examples/package-lock.json +6 -7
- package/jsr.json +1 -1
- package/package.json +5 -6
- package/src/funcs/posCreatePosCart.ts +165 -0
- package/src/funcs/posLoginToPosDevice.ts +174 -0
- package/src/funcs/posPairPosDevice.ts +174 -0
- package/src/funcs/posRefreshPosAccessToken.ts +164 -0
- package/src/funcs/posUpdatePosCart.ts +167 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/index.ts +1 -0
- package/src/models/components/posuser.ts +263 -0
- package/src/models/operations/createposcart.ts +197 -0
- package/src/models/operations/index.ts +5 -0
- package/src/models/operations/logintoposdevice.ts +297 -0
- package/src/models/operations/pairposdevice.ts +286 -0
- package/src/models/operations/refreshposaccesstoken.ts +223 -0
- package/src/models/operations/updateposcart.ts +271 -0
- package/src/sdk/pos.ts +103 -0
- package/src/sdk/sdk.ts +6 -0
package/README.md
CHANGED
|
@@ -170,6 +170,14 @@ run();
|
|
|
170
170
|
* [cancelOrder](docs/sdks/orders/README.md#cancelorder) - Cancel order
|
|
171
171
|
* [retryOrderPayment](docs/sdks/orders/README.md#retryorderpayment) - Retry payment
|
|
172
172
|
|
|
173
|
+
### [pos](docs/sdks/pos/README.md)
|
|
174
|
+
|
|
175
|
+
* [pairPosDevice](docs/sdks/pos/README.md#pairposdevice) - Pair POS device
|
|
176
|
+
* [loginToPosDevice](docs/sdks/pos/README.md#logintoposdevice) - Login to POS device
|
|
177
|
+
* [refreshPosAccessToken](docs/sdks/pos/README.md#refreshposaccesstoken) - Refresh POS access token
|
|
178
|
+
* [createPosCart](docs/sdks/pos/README.md#createposcart) - Create cart
|
|
179
|
+
* [updatePosCart](docs/sdks/pos/README.md#updateposcart) - Add/update/delete cart item
|
|
180
|
+
|
|
173
181
|
### [shipping](docs/sdks/shipping/README.md)
|
|
174
182
|
|
|
175
183
|
* [shippingMethods](docs/sdks/shipping/README.md#shippingmethods) - List available shipping methods
|
|
@@ -240,6 +248,11 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
240
248
|
- [`ordersListOrders`](docs/sdks/orders/README.md#listorders) - Retrieve all orders
|
|
241
249
|
- [`ordersListOrderShipments`](docs/sdks/orders/README.md#listordershipments) - Retrieve order shipments
|
|
242
250
|
- [`ordersRetryOrderPayment`](docs/sdks/orders/README.md#retryorderpayment) - Retry payment
|
|
251
|
+
- [`posCreatePosCart`](docs/sdks/pos/README.md#createposcart) - Create cart
|
|
252
|
+
- [`posLoginToPosDevice`](docs/sdks/pos/README.md#logintoposdevice) - Login to POS device
|
|
253
|
+
- [`posPairPosDevice`](docs/sdks/pos/README.md#pairposdevice) - Pair POS device
|
|
254
|
+
- [`posRefreshPosAccessToken`](docs/sdks/pos/README.md#refreshposaccesstoken) - Refresh POS access token
|
|
255
|
+
- [`posUpdatePosCart`](docs/sdks/pos/README.md#updateposcart) - Add/update/delete cart item
|
|
243
256
|
- [`shippingShippingMethods`](docs/sdks/shipping/README.md#shippingmethods) - List available shipping methods
|
|
244
257
|
|
|
245
258
|
</details>
|
|
@@ -382,8 +395,8 @@ run();
|
|
|
382
395
|
|
|
383
396
|
|
|
384
397
|
**Inherit from [`CeStorefrontError`](./src/models/errors/cestorefronterror.ts)**:
|
|
385
|
-
* [`NotFound`](./src/models/errors/notfound.ts): Requested resource not found. Status code `404`. Applicable to 39 of
|
|
386
|
-
* [`BadRequest`](./src/models/errors/badrequest.ts): Bad request. Status code `400`. Applicable to 28 of
|
|
398
|
+
* [`NotFound`](./src/models/errors/notfound.ts): Requested resource not found. Status code `404`. Applicable to 39 of 54 methods.*
|
|
399
|
+
* [`BadRequest`](./src/models/errors/badrequest.ts): Bad request. Status code `400`. Applicable to 28 of 54 methods.*
|
|
387
400
|
* [`ResponseValidationError`](./src/models/errors/responsevalidationerror.ts): Type mismatch between the data returned from the server and the structure expected by the SDK. See `error.rawValue` for the raw value and `error.pretty()` for a nicely formatted multi-line string.
|
|
388
401
|
|
|
389
402
|
</details>
|
package/docs/sdks/auth/README.md
CHANGED
|
@@ -23,6 +23,7 @@ To interact with the system, each anonymous user is issued an access token. This
|
|
|
23
23
|
|
|
24
24
|
### Example Usage
|
|
25
25
|
|
|
26
|
+
<!-- UsageSnippet language="typescript" operationID="get-anonymous-token" method="post" path="/auth/anonymous" -->
|
|
26
27
|
```typescript
|
|
27
28
|
import { CeStorefront } from "ce-storefront";
|
|
28
29
|
|
|
@@ -93,6 +94,7 @@ This API enables users to authenticate into the system using their phone number.
|
|
|
93
94
|
|
|
94
95
|
### Example Usage
|
|
95
96
|
|
|
97
|
+
<!-- UsageSnippet language="typescript" operationID="login-with-phone" method="post" path="/auth/login/phone" -->
|
|
96
98
|
```typescript
|
|
97
99
|
import { CeStorefront } from "ce-storefront";
|
|
98
100
|
|
|
@@ -168,6 +170,7 @@ This API enables users to authenticate into the system using their email address
|
|
|
168
170
|
|
|
169
171
|
### Example Usage
|
|
170
172
|
|
|
173
|
+
<!-- UsageSnippet language="typescript" operationID="login-with-email" method="post" path="/auth/login/email" -->
|
|
171
174
|
```typescript
|
|
172
175
|
import { CeStorefront } from "ce-storefront";
|
|
173
176
|
|
|
@@ -243,6 +246,7 @@ This API enables users to authenticate into the system using their WhatsApp Numb
|
|
|
243
246
|
|
|
244
247
|
### Example Usage
|
|
245
248
|
|
|
249
|
+
<!-- UsageSnippet language="typescript" operationID="login-with-whatsapp" method="post" path="/auth/login/whatsapp" -->
|
|
246
250
|
```typescript
|
|
247
251
|
import { CeStorefront } from "ce-storefront";
|
|
248
252
|
|
|
@@ -317,6 +321,7 @@ This API endpoint allows you to verify a one-time password (OTP) for authenticat
|
|
|
317
321
|
|
|
318
322
|
### Example Usage
|
|
319
323
|
|
|
324
|
+
<!-- UsageSnippet language="typescript" operationID="verify-otp" method="post" path="/auth/verify-otp" -->
|
|
320
325
|
```typescript
|
|
321
326
|
import { CeStorefront } from "ce-storefront";
|
|
322
327
|
|
|
@@ -396,6 +401,7 @@ The Retrieve User API is designed to facilitate the retrieval of comprehensive u
|
|
|
396
401
|
|
|
397
402
|
### Example Usage
|
|
398
403
|
|
|
404
|
+
<!-- UsageSnippet language="typescript" operationID="get-user-detail" method="get" path="/auth/user/{id}" -->
|
|
399
405
|
```typescript
|
|
400
406
|
import { CeStorefront } from "ce-storefront";
|
|
401
407
|
|
|
@@ -471,6 +477,7 @@ The Update User API helps to efficiently modify and enhance user information wit
|
|
|
471
477
|
|
|
472
478
|
### Example Usage
|
|
473
479
|
|
|
480
|
+
<!-- UsageSnippet language="typescript" operationID="update-user" method="put" path="/auth/user/{id}" -->
|
|
474
481
|
```typescript
|
|
475
482
|
import { CeStorefront } from "ce-storefront";
|
|
476
483
|
|
|
@@ -601,6 +608,7 @@ The Refresh Access Token API is an integral component designed to enhance securi
|
|
|
601
608
|
|
|
602
609
|
### Example Usage
|
|
603
610
|
|
|
611
|
+
<!-- UsageSnippet language="typescript" operationID="refresh-token" method="post" path="/auth/refresh-token" -->
|
|
604
612
|
```typescript
|
|
605
613
|
import { CeStorefront } from "ce-storefront";
|
|
606
614
|
|
|
@@ -675,6 +683,7 @@ Generating a One-Time Password (OTP) typically involves creating a random code t
|
|
|
675
683
|
|
|
676
684
|
### Example Usage
|
|
677
685
|
|
|
686
|
+
<!-- UsageSnippet language="typescript" operationID="generate-otp" method="post" path="/auth/generate-otp" -->
|
|
678
687
|
```typescript
|
|
679
688
|
import { CeStorefront } from "ce-storefront";
|
|
680
689
|
|
|
@@ -753,6 +762,7 @@ The Logout User API initiate the logout process for a user. Upon a successful re
|
|
|
753
762
|
|
|
754
763
|
### Example Usage
|
|
755
764
|
|
|
765
|
+
<!-- UsageSnippet language="typescript" operationID="logout" method="post" path="/auth/logout" -->
|
|
756
766
|
```typescript
|
|
757
767
|
import { CeStorefront } from "ce-storefront";
|
|
758
768
|
|
|
@@ -24,6 +24,7 @@ Create cart
|
|
|
24
24
|
|
|
25
25
|
### Example Usage
|
|
26
26
|
|
|
27
|
+
<!-- UsageSnippet language="typescript" operationID="create-cart" method="post" path="/carts" -->
|
|
27
28
|
```typescript
|
|
28
29
|
import { CeStorefront } from "ce-storefront";
|
|
29
30
|
|
|
@@ -131,6 +132,7 @@ Retrieve cart detail
|
|
|
131
132
|
|
|
132
133
|
### Example Usage
|
|
133
134
|
|
|
135
|
+
<!-- UsageSnippet language="typescript" operationID="get-cart" method="get" path="/carts/{id}" -->
|
|
134
136
|
```typescript
|
|
135
137
|
import { CeStorefront } from "ce-storefront";
|
|
136
138
|
|
|
@@ -205,6 +207,7 @@ delete all items from the cart.
|
|
|
205
207
|
|
|
206
208
|
### Example Usage
|
|
207
209
|
|
|
210
|
+
<!-- UsageSnippet language="typescript" operationID="delete-cart" method="delete" path="/carts/{id}" -->
|
|
208
211
|
```typescript
|
|
209
212
|
import { CeStorefront } from "ce-storefront";
|
|
210
213
|
|
|
@@ -279,6 +282,7 @@ Retrieve cart detail using user id
|
|
|
279
282
|
|
|
280
283
|
### Example Usage
|
|
281
284
|
|
|
285
|
+
<!-- UsageSnippet language="typescript" operationID="get-user-cart" method="get" path="/carts/users/{user_id}" -->
|
|
282
286
|
```typescript
|
|
283
287
|
import { CeStorefront } from "ce-storefront";
|
|
284
288
|
|
|
@@ -353,6 +357,7 @@ delete all items from the cart using user id.
|
|
|
353
357
|
|
|
354
358
|
### Example Usage
|
|
355
359
|
|
|
360
|
+
<!-- UsageSnippet language="typescript" operationID="delete-user-cart" method="delete" path="/carts/users/{user_id}" -->
|
|
356
361
|
```typescript
|
|
357
362
|
import { CeStorefront } from "ce-storefront";
|
|
358
363
|
|
|
@@ -427,6 +432,7 @@ Add Item to cart. To delete item from cart, pass quantity = 0
|
|
|
427
432
|
|
|
428
433
|
### Example Usage
|
|
429
434
|
|
|
435
|
+
<!-- UsageSnippet language="typescript" operationID="update-cart" method="post" path="/carts/{id}/items" -->
|
|
430
436
|
```typescript
|
|
431
437
|
import { CeStorefront } from "ce-storefront";
|
|
432
438
|
|
|
@@ -512,6 +518,7 @@ Update billing and shipping address
|
|
|
512
518
|
|
|
513
519
|
### Example Usage
|
|
514
520
|
|
|
521
|
+
<!-- UsageSnippet language="typescript" operationID="create-cart-address" method="post" path="/carts/{id}/address" -->
|
|
515
522
|
```typescript
|
|
516
523
|
import { CeStorefront } from "ce-storefront";
|
|
517
524
|
|
|
@@ -595,6 +602,7 @@ Update preferred shipping method and courier.
|
|
|
595
602
|
|
|
596
603
|
### Example Usage
|
|
597
604
|
|
|
605
|
+
<!-- UsageSnippet language="typescript" operationID="update-shipping-method" method="post" path="/carts/{id}/shipping-method" -->
|
|
598
606
|
```typescript
|
|
599
607
|
import { CeStorefront } from "ce-storefront";
|
|
600
608
|
|
|
@@ -678,6 +686,7 @@ Apply coupon
|
|
|
678
686
|
|
|
679
687
|
### Example Usage
|
|
680
688
|
|
|
689
|
+
<!-- UsageSnippet language="typescript" operationID="apply-coupon" method="post" path="/carts/{id}/coupon" -->
|
|
681
690
|
```typescript
|
|
682
691
|
import { CeStorefront } from "ce-storefront";
|
|
683
692
|
|
|
@@ -759,6 +768,7 @@ remove coupon from cart
|
|
|
759
768
|
|
|
760
769
|
### Example Usage
|
|
761
770
|
|
|
771
|
+
<!-- UsageSnippet language="typescript" operationID="remove-coupon" method="delete" path="/carts/{id}/coupon" -->
|
|
762
772
|
```typescript
|
|
763
773
|
import { CeStorefront } from "ce-storefront";
|
|
764
774
|
|
|
@@ -833,6 +843,7 @@ Redeem loyalty points
|
|
|
833
843
|
|
|
834
844
|
### Example Usage
|
|
835
845
|
|
|
846
|
+
<!-- UsageSnippet language="typescript" operationID="redeem-loyalty-points" method="post" path="/carts/{id}/loyalty-points" -->
|
|
836
847
|
```typescript
|
|
837
848
|
import { CeStorefront } from "ce-storefront";
|
|
838
849
|
|
|
@@ -913,6 +924,7 @@ Remove loyalty points applied in cart
|
|
|
913
924
|
|
|
914
925
|
### Example Usage
|
|
915
926
|
|
|
927
|
+
<!-- UsageSnippet language="typescript" operationID="remove-loyalty-points" method="delete" path="/carts/{id}/loyalty-points" -->
|
|
916
928
|
```typescript
|
|
917
929
|
import { CeStorefront } from "ce-storefront";
|
|
918
930
|
|
|
@@ -23,6 +23,7 @@ Returns a list of your products. The products are returned sorted by creation da
|
|
|
23
23
|
|
|
24
24
|
### Example Usage
|
|
25
25
|
|
|
26
|
+
<!-- UsageSnippet language="typescript" operationID="list-products" method="get" path="/catalog/products" -->
|
|
26
27
|
```typescript
|
|
27
28
|
import { CeStorefront } from "ce-storefront";
|
|
28
29
|
|
|
@@ -97,6 +98,7 @@ Returns a list of SKUs. The SKUs are returned sorted by creation date, with the
|
|
|
97
98
|
|
|
98
99
|
### Example Usage
|
|
99
100
|
|
|
101
|
+
<!-- UsageSnippet language="typescript" operationID="list-skus" method="get" path="/catalog/skus" -->
|
|
100
102
|
```typescript
|
|
101
103
|
import { CeStorefront } from "ce-storefront";
|
|
102
104
|
|
|
@@ -171,6 +173,7 @@ Retrieves the details of an existing product. Supply either the unique product I
|
|
|
171
173
|
|
|
172
174
|
### Example Usage
|
|
173
175
|
|
|
176
|
+
<!-- UsageSnippet language="typescript" operationID="get-product-detail" method="get" path="/catalog/products/{product_id_or_slug}" -->
|
|
174
177
|
```typescript
|
|
175
178
|
import { CeStorefront } from "ce-storefront";
|
|
176
179
|
|
|
@@ -245,6 +248,7 @@ Retrieves the variants of an existing product. Supply the unique product ID, and
|
|
|
245
248
|
|
|
246
249
|
### Example Usage
|
|
247
250
|
|
|
251
|
+
<!-- UsageSnippet language="typescript" operationID="list-product-variants" method="get" path="/catalog/products/{product_id}/variants" -->
|
|
248
252
|
```typescript
|
|
249
253
|
import { CeStorefront } from "ce-storefront";
|
|
250
254
|
|
|
@@ -319,6 +323,7 @@ Retrieves the details of a particular variant. Supply the unique product ID, and
|
|
|
319
323
|
|
|
320
324
|
### Example Usage
|
|
321
325
|
|
|
326
|
+
<!-- UsageSnippet language="typescript" operationID="get-variant-detail" method="get" path="/catalog/products/{product_id}/variants/{variant_id}" -->
|
|
322
327
|
```typescript
|
|
323
328
|
import { CeStorefront } from "ce-storefront";
|
|
324
329
|
|
|
@@ -395,6 +400,7 @@ Returns a list of your product categories. The categories are returned sorted by
|
|
|
395
400
|
|
|
396
401
|
### Example Usage
|
|
397
402
|
|
|
403
|
+
<!-- UsageSnippet language="typescript" operationID="list-categories" method="get" path="/catalog/categories" -->
|
|
398
404
|
```typescript
|
|
399
405
|
import { CeStorefront } from "ce-storefront";
|
|
400
406
|
|
|
@@ -474,6 +480,7 @@ List of reviews for a specified product. The reviews are returned sorted by subm
|
|
|
474
480
|
|
|
475
481
|
### Example Usage
|
|
476
482
|
|
|
483
|
+
<!-- UsageSnippet language="typescript" operationID="list-product-reviews" method="get" path="/catalog/products/{product_id}/reviews" -->
|
|
477
484
|
```typescript
|
|
478
485
|
import { CeStorefront } from "ce-storefront";
|
|
479
486
|
|
|
@@ -550,6 +557,7 @@ Retrieves a list of products similar to a specified product based on their attri
|
|
|
550
557
|
|
|
551
558
|
### Example Usage
|
|
552
559
|
|
|
560
|
+
<!-- UsageSnippet language="typescript" operationID="list-similar-products" method="get" path="/catalog/products/similar" -->
|
|
553
561
|
```typescript
|
|
554
562
|
import { CeStorefront } from "ce-storefront";
|
|
555
563
|
|
|
@@ -620,6 +628,7 @@ Retrieves a list of products specified for upsell. The upsell products are retur
|
|
|
620
628
|
|
|
621
629
|
### Example Usage
|
|
622
630
|
|
|
631
|
+
<!-- UsageSnippet language="typescript" operationID="list-upsell-products" method="get" path="/catalog/products/up-sell" -->
|
|
623
632
|
```typescript
|
|
624
633
|
import { CeStorefront } from "ce-storefront";
|
|
625
634
|
|
|
@@ -690,6 +699,7 @@ Retrieves a list of products specified for cross selling. The cross-sell product
|
|
|
690
699
|
|
|
691
700
|
### Example Usage
|
|
692
701
|
|
|
702
|
+
<!-- UsageSnippet language="typescript" operationID="list-crosssell-products" method="get" path="/catalog/products/cross-sell" -->
|
|
693
703
|
```typescript
|
|
694
704
|
import { CeStorefront } from "ce-storefront";
|
|
695
705
|
|
|
@@ -760,6 +770,7 @@ Search for products matching a specific words or characters given.
|
|
|
760
770
|
|
|
761
771
|
### Example Usage
|
|
762
772
|
|
|
773
|
+
<!-- UsageSnippet language="typescript" operationID="search-products" method="post" path="/catalog/products/search" -->
|
|
763
774
|
```typescript
|
|
764
775
|
import { CeStorefront } from "ce-storefront";
|
|
765
776
|
|
|
@@ -13,6 +13,7 @@ Retrieve pincodes
|
|
|
13
13
|
|
|
14
14
|
### Example Usage
|
|
15
15
|
|
|
16
|
+
<!-- UsageSnippet language="typescript" operationID="list-country-pincodes" method="get" path="/common/countries/{country_iso_code}/pincodes" -->
|
|
16
17
|
```typescript
|
|
17
18
|
import { CeStorefront } from "ce-storefront";
|
|
18
19
|
|
|
@@ -19,6 +19,7 @@ Retrieve billing and shipping address of particular customer
|
|
|
19
19
|
|
|
20
20
|
### Example Usage
|
|
21
21
|
|
|
22
|
+
<!-- UsageSnippet language="typescript" operationID="list-addresses" method="get" path="/customers/{user_id}/addresses" -->
|
|
22
23
|
```typescript
|
|
23
24
|
import { CeStorefront } from "ce-storefront";
|
|
24
25
|
|
|
@@ -94,6 +95,7 @@ Add new address
|
|
|
94
95
|
|
|
95
96
|
### Example Usage
|
|
96
97
|
|
|
98
|
+
<!-- UsageSnippet language="typescript" operationID="create-address" method="post" path="/customers/{user_id}/addresses" -->
|
|
97
99
|
```typescript
|
|
98
100
|
import { CeStorefront } from "ce-storefront";
|
|
99
101
|
|
|
@@ -198,6 +200,7 @@ Retrieve address
|
|
|
198
200
|
|
|
199
201
|
### Example Usage
|
|
200
202
|
|
|
203
|
+
<!-- UsageSnippet language="typescript" operationID="get-address-detail" method="get" path="/customers/{user_id}/addresses/{address_id}" -->
|
|
201
204
|
```typescript
|
|
202
205
|
import { CeStorefront } from "ce-storefront";
|
|
203
206
|
|
|
@@ -274,6 +277,7 @@ Update address
|
|
|
274
277
|
|
|
275
278
|
### Example Usage
|
|
276
279
|
|
|
280
|
+
<!-- UsageSnippet language="typescript" operationID="update-address-detail" method="put" path="/customers/{user_id}/addresses/{address_id}" -->
|
|
277
281
|
```typescript
|
|
278
282
|
import { CeStorefront } from "ce-storefront";
|
|
279
283
|
|
|
@@ -381,6 +385,7 @@ Delete address
|
|
|
381
385
|
|
|
382
386
|
### Example Usage
|
|
383
387
|
|
|
388
|
+
<!-- UsageSnippet language="typescript" operationID="delete-address" method="delete" path="/customers/{user_id}/addresses/{address_id}" -->
|
|
384
389
|
```typescript
|
|
385
390
|
import { CeStorefront } from "ce-storefront";
|
|
386
391
|
|
|
@@ -457,6 +462,7 @@ Retrieve loyalty details
|
|
|
457
462
|
|
|
458
463
|
### Example Usage
|
|
459
464
|
|
|
465
|
+
<!-- UsageSnippet language="typescript" operationID="get-loyalty-details" method="get" path="/customers/{user_id}/loyalty" -->
|
|
460
466
|
```typescript
|
|
461
467
|
import { CeStorefront } from "ce-storefront";
|
|
462
468
|
|
|
@@ -531,6 +537,7 @@ Retrieve all reviews
|
|
|
531
537
|
|
|
532
538
|
### Example Usage
|
|
533
539
|
|
|
540
|
+
<!-- UsageSnippet language="typescript" operationID="list-user-reviews" method="get" path="/customers/{user_id}/reviews" -->
|
|
534
541
|
```typescript
|
|
535
542
|
import { CeStorefront } from "ce-storefront";
|
|
536
543
|
|
|
@@ -19,6 +19,7 @@ Create new order
|
|
|
19
19
|
|
|
20
20
|
### Example Usage
|
|
21
21
|
|
|
22
|
+
<!-- UsageSnippet language="typescript" operationID="create-order" method="post" path="/orders" -->
|
|
22
23
|
```typescript
|
|
23
24
|
import { CeStorefront } from "ce-storefront";
|
|
24
25
|
|
|
@@ -110,6 +111,7 @@ list customers all orders
|
|
|
110
111
|
|
|
111
112
|
### Example Usage
|
|
112
113
|
|
|
114
|
+
<!-- UsageSnippet language="typescript" operationID="list-orders" method="get" path="/orders" -->
|
|
113
115
|
```typescript
|
|
114
116
|
import { CeStorefront } from "ce-storefront";
|
|
115
117
|
|
|
@@ -184,6 +186,7 @@ view particular order details
|
|
|
184
186
|
|
|
185
187
|
### Example Usage
|
|
186
188
|
|
|
189
|
+
<!-- UsageSnippet language="typescript" operationID="get-order-detail" method="get" path="/orders/{order_number}" -->
|
|
187
190
|
```typescript
|
|
188
191
|
import { CeStorefront } from "ce-storefront";
|
|
189
192
|
|
|
@@ -258,6 +261,7 @@ Retrieve payment status of a paricular order.
|
|
|
258
261
|
|
|
259
262
|
### Example Usage
|
|
260
263
|
|
|
264
|
+
<!-- UsageSnippet language="typescript" operationID="get-payment-status" method="get" path="/orders/{order_number}/payment-status" -->
|
|
261
265
|
```typescript
|
|
262
266
|
import { CeStorefront } from "ce-storefront";
|
|
263
267
|
|
|
@@ -333,6 +337,7 @@ Retrieve order shipments
|
|
|
333
337
|
|
|
334
338
|
### Example Usage
|
|
335
339
|
|
|
340
|
+
<!-- UsageSnippet language="typescript" operationID="list-order-shipments" method="get" path="/orders/{order_number}/shipments" -->
|
|
336
341
|
```typescript
|
|
337
342
|
import { CeStorefront } from "ce-storefront";
|
|
338
343
|
|
|
@@ -407,6 +412,7 @@ Order cancellation
|
|
|
407
412
|
|
|
408
413
|
### Example Usage
|
|
409
414
|
|
|
415
|
+
<!-- UsageSnippet language="typescript" operationID="cancel-order" method="post" path="/orders/{order_number}/cancel" -->
|
|
410
416
|
```typescript
|
|
411
417
|
import { CeStorefront } from "ce-storefront";
|
|
412
418
|
|
|
@@ -489,6 +495,7 @@ To generate new payment request if first payment request is failed or expired. R
|
|
|
489
495
|
|
|
490
496
|
### Example Usage
|
|
491
497
|
|
|
498
|
+
<!-- UsageSnippet language="typescript" operationID="retry-order-payment" method="post" path="/orders/{order_number}/retry-payment" -->
|
|
492
499
|
```typescript
|
|
493
500
|
import { CeStorefront } from "ce-storefront";
|
|
494
501
|
|