@commercengine/storefront-sdk 0.9.3 → 0.9.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.
- package/dist/index.d.ts +1069 -332
- package/dist/index.iife.js +62 -53
- package/dist/index.iife.js.map +1 -1
- package/dist/index.js +62 -53
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -1809,6 +1809,26 @@ interface paths {
|
|
|
1809
1809
|
patch?: never;
|
|
1810
1810
|
trace?: never;
|
|
1811
1811
|
};
|
|
1812
|
+
"/pos/auth/logout": {
|
|
1813
|
+
parameters: {
|
|
1814
|
+
query?: never;
|
|
1815
|
+
header?: never;
|
|
1816
|
+
path?: never;
|
|
1817
|
+
cookie?: never;
|
|
1818
|
+
};
|
|
1819
|
+
get?: never;
|
|
1820
|
+
put?: never;
|
|
1821
|
+
/**
|
|
1822
|
+
* Logout
|
|
1823
|
+
* @description This endpoint ends the current loggedin session for the POS device. This action immediately invalidates the previously issued access token(s), preventing any further use. A new login is required to regain access.
|
|
1824
|
+
*/
|
|
1825
|
+
post: operations["logout-from-pos-device"];
|
|
1826
|
+
delete?: never;
|
|
1827
|
+
options?: never;
|
|
1828
|
+
head?: never;
|
|
1829
|
+
patch?: never;
|
|
1830
|
+
trace?: never;
|
|
1831
|
+
};
|
|
1812
1832
|
"/pos/auth/pair-device": {
|
|
1813
1833
|
parameters: {
|
|
1814
1834
|
query?: never;
|
|
@@ -1933,10 +1953,7 @@ interface paths {
|
|
|
1933
1953
|
parameters: {
|
|
1934
1954
|
query?: never;
|
|
1935
1955
|
header?: never;
|
|
1936
|
-
path
|
|
1937
|
-
/** @description Cart ID */
|
|
1938
|
-
id: string;
|
|
1939
|
-
};
|
|
1956
|
+
path?: never;
|
|
1940
1957
|
cookie?: never;
|
|
1941
1958
|
};
|
|
1942
1959
|
/**
|
|
@@ -1960,10 +1977,7 @@ interface paths {
|
|
|
1960
1977
|
parameters: {
|
|
1961
1978
|
query?: never;
|
|
1962
1979
|
header?: never;
|
|
1963
|
-
path
|
|
1964
|
-
/** @description Cart ID */
|
|
1965
|
-
id: string;
|
|
1966
|
-
};
|
|
1980
|
+
path?: never;
|
|
1967
1981
|
cookie?: never;
|
|
1968
1982
|
};
|
|
1969
1983
|
get?: never;
|
|
@@ -1983,10 +1997,7 @@ interface paths {
|
|
|
1983
1997
|
parameters: {
|
|
1984
1998
|
query?: never;
|
|
1985
1999
|
header?: never;
|
|
1986
|
-
path
|
|
1987
|
-
/** @description Cart ID */
|
|
1988
|
-
id: string;
|
|
1989
|
-
};
|
|
2000
|
+
path?: never;
|
|
1990
2001
|
cookie?: never;
|
|
1991
2002
|
};
|
|
1992
2003
|
get?: never;
|
|
@@ -2010,10 +2021,7 @@ interface paths {
|
|
|
2010
2021
|
parameters: {
|
|
2011
2022
|
query?: never;
|
|
2012
2023
|
header?: never;
|
|
2013
|
-
path
|
|
2014
|
-
/** @description Cart ID */
|
|
2015
|
-
id: string;
|
|
2016
|
-
};
|
|
2024
|
+
path?: never;
|
|
2017
2025
|
cookie?: never;
|
|
2018
2026
|
};
|
|
2019
2027
|
get?: never;
|
|
@@ -2037,10 +2045,7 @@ interface paths {
|
|
|
2037
2045
|
parameters: {
|
|
2038
2046
|
query?: never;
|
|
2039
2047
|
header?: never;
|
|
2040
|
-
path
|
|
2041
|
-
/** @description Cart Id */
|
|
2042
|
-
id: string;
|
|
2043
|
-
};
|
|
2048
|
+
path?: never;
|
|
2044
2049
|
cookie?: never;
|
|
2045
2050
|
};
|
|
2046
2051
|
/**
|
|
@@ -2060,10 +2065,7 @@ interface paths {
|
|
|
2060
2065
|
parameters: {
|
|
2061
2066
|
query?: never;
|
|
2062
2067
|
header?: never;
|
|
2063
|
-
path
|
|
2064
|
-
/** @description Cart Id */
|
|
2065
|
-
id: string;
|
|
2066
|
-
};
|
|
2068
|
+
path?: never;
|
|
2067
2069
|
cookie?: never;
|
|
2068
2070
|
};
|
|
2069
2071
|
/**
|
|
@@ -2083,10 +2085,7 @@ interface paths {
|
|
|
2083
2085
|
parameters: {
|
|
2084
2086
|
query?: never;
|
|
2085
2087
|
header?: never;
|
|
2086
|
-
path
|
|
2087
|
-
/** @description Cart ID */
|
|
2088
|
-
id: string;
|
|
2089
|
-
};
|
|
2088
|
+
path?: never;
|
|
2090
2089
|
cookie?: never;
|
|
2091
2090
|
};
|
|
2092
2091
|
get?: never;
|
|
@@ -2106,10 +2105,7 @@ interface paths {
|
|
|
2106
2105
|
parameters: {
|
|
2107
2106
|
query?: never;
|
|
2108
2107
|
header?: never;
|
|
2109
|
-
path
|
|
2110
|
-
/** @description Cart ID */
|
|
2111
|
-
id: string;
|
|
2112
|
-
};
|
|
2108
|
+
path?: never;
|
|
2113
2109
|
cookie?: never;
|
|
2114
2110
|
};
|
|
2115
2111
|
get?: never;
|
|
@@ -2133,10 +2129,7 @@ interface paths {
|
|
|
2133
2129
|
parameters: {
|
|
2134
2130
|
query?: never;
|
|
2135
2131
|
header?: never;
|
|
2136
|
-
path
|
|
2137
|
-
/** @description Cart ID */
|
|
2138
|
-
id: string;
|
|
2139
|
-
};
|
|
2132
|
+
path?: never;
|
|
2140
2133
|
cookie?: never;
|
|
2141
2134
|
};
|
|
2142
2135
|
get?: never;
|
|
@@ -2156,10 +2149,7 @@ interface paths {
|
|
|
2156
2149
|
parameters: {
|
|
2157
2150
|
query?: never;
|
|
2158
2151
|
header?: never;
|
|
2159
|
-
path
|
|
2160
|
-
/** @description Cart ID */
|
|
2161
|
-
id: string;
|
|
2162
|
-
};
|
|
2152
|
+
path?: never;
|
|
2163
2153
|
cookie?: never;
|
|
2164
2154
|
};
|
|
2165
2155
|
get?: never;
|
|
@@ -2183,10 +2173,7 @@ interface paths {
|
|
|
2183
2173
|
parameters: {
|
|
2184
2174
|
query?: never;
|
|
2185
2175
|
header?: never;
|
|
2186
|
-
path
|
|
2187
|
-
/** @description cart id */
|
|
2188
|
-
id: string;
|
|
2189
|
-
};
|
|
2176
|
+
path?: never;
|
|
2190
2177
|
cookie?: never;
|
|
2191
2178
|
};
|
|
2192
2179
|
get?: never;
|
|
@@ -2202,47 +2189,67 @@ interface paths {
|
|
|
2202
2189
|
patch?: never;
|
|
2203
2190
|
trace?: never;
|
|
2204
2191
|
};
|
|
2205
|
-
"/pos/
|
|
2192
|
+
"/pos/catalog/categories": {
|
|
2206
2193
|
parameters: {
|
|
2207
2194
|
query?: never;
|
|
2208
2195
|
header?: never;
|
|
2209
2196
|
path?: never;
|
|
2210
2197
|
cookie?: never;
|
|
2211
2198
|
};
|
|
2212
|
-
get?: never;
|
|
2213
|
-
put?: never;
|
|
2214
2199
|
/**
|
|
2215
|
-
*
|
|
2216
|
-
* @description
|
|
2200
|
+
* List all categories
|
|
2201
|
+
* @description Returns a list of your product categories. The categories are returned sorted by creation date, with the most recently created categories appearing first.
|
|
2217
2202
|
*/
|
|
2218
|
-
|
|
2203
|
+
get: operations["pos-list-categories"];
|
|
2204
|
+
put?: never;
|
|
2205
|
+
post?: never;
|
|
2219
2206
|
delete?: never;
|
|
2220
2207
|
options?: never;
|
|
2221
2208
|
head?: never;
|
|
2222
2209
|
patch?: never;
|
|
2223
2210
|
trace?: never;
|
|
2224
2211
|
};
|
|
2225
|
-
"/pos/
|
|
2212
|
+
"/pos/catalog/products": {
|
|
2226
2213
|
parameters: {
|
|
2227
2214
|
query?: never;
|
|
2228
2215
|
header?: never;
|
|
2229
2216
|
path?: never;
|
|
2230
2217
|
cookie?: never;
|
|
2231
2218
|
};
|
|
2232
|
-
|
|
2219
|
+
/**
|
|
2220
|
+
* List all products
|
|
2221
|
+
* @description Returns a list of your products. The products are returned sorted by creation date, with the most recently created products appearing first.
|
|
2222
|
+
*/
|
|
2223
|
+
get: operations["pos-list-products"];
|
|
2233
2224
|
put?: never;
|
|
2225
|
+
post?: never;
|
|
2226
|
+
delete?: never;
|
|
2227
|
+
options?: never;
|
|
2228
|
+
head?: never;
|
|
2229
|
+
patch?: never;
|
|
2230
|
+
trace?: never;
|
|
2231
|
+
};
|
|
2232
|
+
"/pos/catalog/products/cross-sell": {
|
|
2233
|
+
parameters: {
|
|
2234
|
+
query?: never;
|
|
2235
|
+
header?: never;
|
|
2236
|
+
path?: never;
|
|
2237
|
+
cookie?: never;
|
|
2238
|
+
};
|
|
2234
2239
|
/**
|
|
2235
|
-
*
|
|
2236
|
-
* @description
|
|
2240
|
+
* Retrieve cross-sell products
|
|
2241
|
+
* @description Retrieves a list of products specified for cross selling. The cross-sell products are returned based on product ids specified in request param.
|
|
2237
2242
|
*/
|
|
2238
|
-
|
|
2243
|
+
get: operations["pos-list-crosssell-products"];
|
|
2244
|
+
put?: never;
|
|
2245
|
+
post?: never;
|
|
2239
2246
|
delete?: never;
|
|
2240
2247
|
options?: never;
|
|
2241
2248
|
head?: never;
|
|
2242
2249
|
patch?: never;
|
|
2243
2250
|
trace?: never;
|
|
2244
2251
|
};
|
|
2245
|
-
"/
|
|
2252
|
+
"/pos/catalog/products/search": {
|
|
2246
2253
|
parameters: {
|
|
2247
2254
|
query?: never;
|
|
2248
2255
|
header?: never;
|
|
@@ -2252,31 +2259,28 @@ interface paths {
|
|
|
2252
2259
|
get?: never;
|
|
2253
2260
|
put?: never;
|
|
2254
2261
|
/**
|
|
2255
|
-
*
|
|
2256
|
-
* @description
|
|
2262
|
+
* Search products
|
|
2263
|
+
* @description Search for products matching a specific words or characters given.
|
|
2257
2264
|
*/
|
|
2258
|
-
post: operations["
|
|
2265
|
+
post: operations["pos-search-products"];
|
|
2259
2266
|
delete?: never;
|
|
2260
2267
|
options?: never;
|
|
2261
2268
|
head?: never;
|
|
2262
2269
|
patch?: never;
|
|
2263
2270
|
trace?: never;
|
|
2264
2271
|
};
|
|
2265
|
-
"/
|
|
2272
|
+
"/pos/catalog/products/similar": {
|
|
2266
2273
|
parameters: {
|
|
2267
2274
|
query?: never;
|
|
2268
2275
|
header?: never;
|
|
2269
|
-
path
|
|
2270
|
-
/** @description delivery pincode */
|
|
2271
|
-
pincode: string;
|
|
2272
|
-
};
|
|
2276
|
+
path?: never;
|
|
2273
2277
|
cookie?: never;
|
|
2274
2278
|
};
|
|
2275
2279
|
/**
|
|
2276
|
-
*
|
|
2277
|
-
* @description
|
|
2280
|
+
* Retrieve similar products
|
|
2281
|
+
* @description Retrieves a list of products similar to a specified product based on their attributes and category. The similar products are returned sorted by relevance, with the most closely matching products appearing first. Useful for providing product recommendations to your customers.
|
|
2278
2282
|
*/
|
|
2279
|
-
get: operations["
|
|
2283
|
+
get: operations["pos-list-similar-products"];
|
|
2280
2284
|
put?: never;
|
|
2281
2285
|
post?: never;
|
|
2282
2286
|
delete?: never;
|
|
@@ -2285,27 +2289,27 @@ interface paths {
|
|
|
2285
2289
|
patch?: never;
|
|
2286
2290
|
trace?: never;
|
|
2287
2291
|
};
|
|
2288
|
-
"/
|
|
2292
|
+
"/pos/catalog/products/up-sell": {
|
|
2289
2293
|
parameters: {
|
|
2290
2294
|
query?: never;
|
|
2291
2295
|
header?: never;
|
|
2292
2296
|
path?: never;
|
|
2293
2297
|
cookie?: never;
|
|
2294
2298
|
};
|
|
2295
|
-
get?: never;
|
|
2296
|
-
put?: never;
|
|
2297
2299
|
/**
|
|
2298
|
-
*
|
|
2299
|
-
* @description
|
|
2300
|
+
* Retrieve up-sell products
|
|
2301
|
+
* @description Retrieves a list of products specified for upsell. The upsell products are returned based on product ids specified in request param.
|
|
2300
2302
|
*/
|
|
2301
|
-
|
|
2303
|
+
get: operations["pos-list-upsell-products"];
|
|
2304
|
+
put?: never;
|
|
2305
|
+
post?: never;
|
|
2302
2306
|
delete?: never;
|
|
2303
2307
|
options?: never;
|
|
2304
2308
|
head?: never;
|
|
2305
2309
|
patch?: never;
|
|
2306
2310
|
trace?: never;
|
|
2307
2311
|
};
|
|
2308
|
-
"/
|
|
2312
|
+
"/pos/catalog/products/{product_id_or_slug}": {
|
|
2309
2313
|
parameters: {
|
|
2310
2314
|
query?: never;
|
|
2311
2315
|
header?: never;
|
|
@@ -2313,10 +2317,10 @@ interface paths {
|
|
|
2313
2317
|
cookie?: never;
|
|
2314
2318
|
};
|
|
2315
2319
|
/**
|
|
2316
|
-
* Retrieve
|
|
2317
|
-
* @description
|
|
2320
|
+
* Retrieve a product detail
|
|
2321
|
+
* @description Retrieves the details of an existing product. Supply either the unique product ID or the unique slug, and Commerce Engine will return the corresponding product information.
|
|
2318
2322
|
*/
|
|
2319
|
-
get: operations["get-
|
|
2323
|
+
get: operations["pos-get-product-detail"];
|
|
2320
2324
|
put?: never;
|
|
2321
2325
|
post?: never;
|
|
2322
2326
|
delete?: never;
|
|
@@ -2325,7 +2329,7 @@ interface paths {
|
|
|
2325
2329
|
patch?: never;
|
|
2326
2330
|
trace?: never;
|
|
2327
2331
|
};
|
|
2328
|
-
"/
|
|
2332
|
+
"/pos/catalog/products/{product_id}/reviews": {
|
|
2329
2333
|
parameters: {
|
|
2330
2334
|
query?: never;
|
|
2331
2335
|
header?: never;
|
|
@@ -2333,10 +2337,10 @@ interface paths {
|
|
|
2333
2337
|
cookie?: never;
|
|
2334
2338
|
};
|
|
2335
2339
|
/**
|
|
2336
|
-
* List all
|
|
2337
|
-
* @description List
|
|
2340
|
+
* List all product reviews
|
|
2341
|
+
* @description List of reviews for a specified product. The reviews are returned sorted by submission date, with the most recent reviews appearing first. You can filter the reviews by rating, reviewer, or date for more detailed analysis.
|
|
2338
2342
|
*/
|
|
2339
|
-
get: operations["list-
|
|
2343
|
+
get: operations["pos-list-product-reviews"];
|
|
2340
2344
|
put?: never;
|
|
2341
2345
|
post?: never;
|
|
2342
2346
|
delete?: never;
|
|
@@ -2345,7 +2349,7 @@ interface paths {
|
|
|
2345
2349
|
patch?: never;
|
|
2346
2350
|
trace?: never;
|
|
2347
2351
|
};
|
|
2348
|
-
"/
|
|
2352
|
+
"/pos/catalog/products/{product_id}/variants": {
|
|
2349
2353
|
parameters: {
|
|
2350
2354
|
query?: never;
|
|
2351
2355
|
header?: never;
|
|
@@ -2353,42 +2357,51 @@ interface paths {
|
|
|
2353
2357
|
cookie?: never;
|
|
2354
2358
|
};
|
|
2355
2359
|
/**
|
|
2356
|
-
*
|
|
2357
|
-
* @description
|
|
2360
|
+
* Retrieve product variants
|
|
2361
|
+
* @description Retrieves the variants of an existing product. Supply the unique product ID, and Commerce Engine will return the corresponding product variants information.
|
|
2358
2362
|
*/
|
|
2359
|
-
get: operations["list-
|
|
2363
|
+
get: operations["pos-list-product-variants"];
|
|
2360
2364
|
put?: never;
|
|
2361
|
-
|
|
2362
|
-
* Create subscription
|
|
2363
|
-
* @description List all subscriptions
|
|
2364
|
-
*/
|
|
2365
|
-
post: operations["create-subscription"];
|
|
2365
|
+
post?: never;
|
|
2366
2366
|
delete?: never;
|
|
2367
2367
|
options?: never;
|
|
2368
2368
|
head?: never;
|
|
2369
2369
|
patch?: never;
|
|
2370
2370
|
trace?: never;
|
|
2371
2371
|
};
|
|
2372
|
-
"/
|
|
2372
|
+
"/pos/catalog/products/{product_id}/variants/{variant_id}": {
|
|
2373
2373
|
parameters: {
|
|
2374
2374
|
query?: never;
|
|
2375
2375
|
header?: never;
|
|
2376
|
-
path
|
|
2377
|
-
/** @description subscription id */
|
|
2378
|
-
id: string;
|
|
2379
|
-
};
|
|
2376
|
+
path?: never;
|
|
2380
2377
|
cookie?: never;
|
|
2381
2378
|
};
|
|
2382
2379
|
/**
|
|
2383
|
-
* Retrieve
|
|
2384
|
-
* @description
|
|
2380
|
+
* Retrieve variant detail
|
|
2381
|
+
* @description Retrieves the details of a particular variant. Supply the unique product ID, and variant ID.
|
|
2385
2382
|
*/
|
|
2386
|
-
get: operations["get-
|
|
2383
|
+
get: operations["pos-get-variant-detail"];
|
|
2384
|
+
put?: never;
|
|
2385
|
+
post?: never;
|
|
2386
|
+
delete?: never;
|
|
2387
|
+
options?: never;
|
|
2388
|
+
head?: never;
|
|
2389
|
+
patch?: never;
|
|
2390
|
+
trace?: never;
|
|
2391
|
+
};
|
|
2392
|
+
"/pos/catalog/skus": {
|
|
2393
|
+
parameters: {
|
|
2394
|
+
query?: never;
|
|
2395
|
+
header?: never;
|
|
2396
|
+
path?: never;
|
|
2397
|
+
cookie?: never;
|
|
2398
|
+
};
|
|
2387
2399
|
/**
|
|
2388
|
-
*
|
|
2389
|
-
* @description
|
|
2400
|
+
* List all SKUs
|
|
2401
|
+
* @description Returns a list of SKUs. The SKUs are returned sorted by creation date, with the most recently created SKUs appearing first.
|
|
2390
2402
|
*/
|
|
2391
|
-
|
|
2403
|
+
get: operations["pos-list-skus"];
|
|
2404
|
+
put?: never;
|
|
2392
2405
|
post?: never;
|
|
2393
2406
|
delete?: never;
|
|
2394
2407
|
options?: never;
|
|
@@ -2396,49 +2409,243 @@ interface paths {
|
|
|
2396
2409
|
patch?: never;
|
|
2397
2410
|
trace?: never;
|
|
2398
2411
|
};
|
|
2399
|
-
"/
|
|
2412
|
+
"/pos/fulfillment-options": {
|
|
2400
2413
|
parameters: {
|
|
2401
2414
|
query?: never;
|
|
2402
2415
|
header?: never;
|
|
2403
2416
|
path?: never;
|
|
2404
2417
|
cookie?: never;
|
|
2405
2418
|
};
|
|
2419
|
+
get?: never;
|
|
2420
|
+
put?: never;
|
|
2406
2421
|
/**
|
|
2407
|
-
* Retrieve
|
|
2408
|
-
* @description
|
|
2422
|
+
* Retrieve fulfillment options
|
|
2423
|
+
* @description This endpoint returns the available fulfillment options for a given cart and delivery pincode. It provides both delivery options and collect-in-store (Click & Collect) options, including details of store locations where the item can be collected.
|
|
2409
2424
|
*/
|
|
2410
|
-
|
|
2425
|
+
post: operations["get-pos-fulfillment-options"];
|
|
2426
|
+
delete?: never;
|
|
2427
|
+
options?: never;
|
|
2428
|
+
head?: never;
|
|
2429
|
+
patch?: never;
|
|
2430
|
+
trace?: never;
|
|
2431
|
+
};
|
|
2432
|
+
"/pos/orders": {
|
|
2433
|
+
parameters: {
|
|
2434
|
+
query?: never;
|
|
2435
|
+
header?: never;
|
|
2436
|
+
path?: never;
|
|
2437
|
+
cookie?: never;
|
|
2438
|
+
};
|
|
2439
|
+
get?: never;
|
|
2411
2440
|
put?: never;
|
|
2412
2441
|
/**
|
|
2413
|
-
*
|
|
2414
|
-
* @description
|
|
2442
|
+
* Create order
|
|
2443
|
+
* @description Creates a new order from a POS device.
|
|
2415
2444
|
*/
|
|
2416
|
-
post: operations["
|
|
2445
|
+
post: operations["create-pos-order"];
|
|
2446
|
+
delete?: never;
|
|
2447
|
+
options?: never;
|
|
2448
|
+
head?: never;
|
|
2449
|
+
patch?: never;
|
|
2450
|
+
trace?: never;
|
|
2451
|
+
};
|
|
2452
|
+
"/shipping/fulfillment-options": {
|
|
2453
|
+
parameters: {
|
|
2454
|
+
query?: never;
|
|
2455
|
+
header?: never;
|
|
2456
|
+
path?: never;
|
|
2457
|
+
cookie?: never;
|
|
2458
|
+
};
|
|
2459
|
+
get?: never;
|
|
2460
|
+
put?: never;
|
|
2417
2461
|
/**
|
|
2418
|
-
*
|
|
2419
|
-
* @description
|
|
2462
|
+
* Retrieve fulfillment options
|
|
2463
|
+
* @description This endpoint returns the available fulfillment options for a given cart and delivery pincode. It provides both delivery options and collect-in-store (Click & Collect) options, including details of store locations where the item can be collected.
|
|
2420
2464
|
*/
|
|
2421
|
-
|
|
2465
|
+
post: operations["get-fulfillment-options"];
|
|
2466
|
+
delete?: never;
|
|
2422
2467
|
options?: never;
|
|
2423
2468
|
head?: never;
|
|
2424
2469
|
patch?: never;
|
|
2425
2470
|
trace?: never;
|
|
2426
2471
|
};
|
|
2427
|
-
}
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2472
|
+
"/shipping/serviceability/{pincode}": {
|
|
2473
|
+
parameters: {
|
|
2474
|
+
query?: never;
|
|
2475
|
+
header?: never;
|
|
2476
|
+
path: {
|
|
2477
|
+
/** @description delivery pincode */
|
|
2478
|
+
pincode: string;
|
|
2479
|
+
};
|
|
2480
|
+
cookie?: never;
|
|
2481
|
+
};
|
|
2482
|
+
/**
|
|
2483
|
+
* Check serviceability
|
|
2484
|
+
* @description Checking if delivery is available to the entered pincode based on shipping zones.
|
|
2485
|
+
*/
|
|
2486
|
+
get: operations["check-pincode-serviceability"];
|
|
2487
|
+
put?: never;
|
|
2488
|
+
post?: never;
|
|
2489
|
+
delete?: never;
|
|
2490
|
+
options?: never;
|
|
2491
|
+
head?: never;
|
|
2492
|
+
patch?: never;
|
|
2493
|
+
trace?: never;
|
|
2494
|
+
};
|
|
2495
|
+
"/shipping/shipping-methods": {
|
|
2496
|
+
parameters: {
|
|
2497
|
+
query?: never;
|
|
2498
|
+
header?: never;
|
|
2499
|
+
path?: never;
|
|
2500
|
+
cookie?: never;
|
|
2501
|
+
};
|
|
2502
|
+
get?: never;
|
|
2503
|
+
put?: never;
|
|
2504
|
+
/**
|
|
2505
|
+
* List available shipping methods
|
|
2506
|
+
* @description Checks whether a given pincode is serviceable and returns all available shipping methods based on delivery address
|
|
2507
|
+
*/
|
|
2508
|
+
post: operations["get-shipping-methods"];
|
|
2509
|
+
delete?: never;
|
|
2510
|
+
options?: never;
|
|
2511
|
+
head?: never;
|
|
2512
|
+
patch?: never;
|
|
2513
|
+
trace?: never;
|
|
2514
|
+
};
|
|
2515
|
+
"/store/config": {
|
|
2516
|
+
parameters: {
|
|
2517
|
+
query?: never;
|
|
2518
|
+
header?: never;
|
|
2519
|
+
path?: never;
|
|
2520
|
+
cookie?: never;
|
|
2521
|
+
};
|
|
2522
|
+
/**
|
|
2523
|
+
* Retrieve store config
|
|
2524
|
+
* @description Retrieve store config detail
|
|
2525
|
+
*/
|
|
2526
|
+
get: operations["get-config"];
|
|
2527
|
+
put?: never;
|
|
2528
|
+
post?: never;
|
|
2529
|
+
delete?: never;
|
|
2530
|
+
options?: never;
|
|
2531
|
+
head?: never;
|
|
2532
|
+
patch?: never;
|
|
2533
|
+
trace?: never;
|
|
2534
|
+
};
|
|
2535
|
+
"/store/kyc-document": {
|
|
2536
|
+
parameters: {
|
|
2537
|
+
query?: never;
|
|
2538
|
+
header?: never;
|
|
2539
|
+
path?: never;
|
|
2540
|
+
cookie?: never;
|
|
2541
|
+
};
|
|
2542
|
+
/**
|
|
2543
|
+
* List all kyc documents
|
|
2544
|
+
* @description List all kyc documents added for a particular store.
|
|
2545
|
+
*/
|
|
2546
|
+
get: operations["list-kyc-document"];
|
|
2547
|
+
put?: never;
|
|
2548
|
+
post?: never;
|
|
2549
|
+
delete?: never;
|
|
2550
|
+
options?: never;
|
|
2551
|
+
head?: never;
|
|
2552
|
+
patch?: never;
|
|
2553
|
+
trace?: never;
|
|
2554
|
+
};
|
|
2555
|
+
"/subscriptions": {
|
|
2556
|
+
parameters: {
|
|
2557
|
+
query?: never;
|
|
2558
|
+
header?: never;
|
|
2559
|
+
path?: never;
|
|
2560
|
+
cookie?: never;
|
|
2561
|
+
};
|
|
2562
|
+
/**
|
|
2563
|
+
* List all subscriptions
|
|
2564
|
+
* @description List all subscriptions
|
|
2565
|
+
*/
|
|
2566
|
+
get: operations["list-subscriptions"];
|
|
2567
|
+
put?: never;
|
|
2568
|
+
/**
|
|
2569
|
+
* Create subscription
|
|
2570
|
+
* @description List all subscriptions
|
|
2571
|
+
*/
|
|
2572
|
+
post: operations["create-subscription"];
|
|
2573
|
+
delete?: never;
|
|
2574
|
+
options?: never;
|
|
2575
|
+
head?: never;
|
|
2576
|
+
patch?: never;
|
|
2577
|
+
trace?: never;
|
|
2578
|
+
};
|
|
2579
|
+
"/subscriptions/{id}": {
|
|
2580
|
+
parameters: {
|
|
2581
|
+
query?: never;
|
|
2582
|
+
header?: never;
|
|
2583
|
+
path: {
|
|
2584
|
+
/** @description subscription id */
|
|
2585
|
+
id: string;
|
|
2586
|
+
};
|
|
2587
|
+
cookie?: never;
|
|
2588
|
+
};
|
|
2589
|
+
/**
|
|
2590
|
+
* Retrieve subscription details
|
|
2591
|
+
* @description Retrieve subscription details
|
|
2592
|
+
*/
|
|
2593
|
+
get: operations["get-subscription"];
|
|
2594
|
+
/**
|
|
2595
|
+
* Update a specific subscription
|
|
2596
|
+
* @description Update a specific subscription
|
|
2597
|
+
*/
|
|
2598
|
+
put: operations["update-subscription"];
|
|
2599
|
+
post?: never;
|
|
2600
|
+
delete?: never;
|
|
2601
|
+
options?: never;
|
|
2602
|
+
head?: never;
|
|
2603
|
+
patch?: never;
|
|
2604
|
+
trace?: never;
|
|
2605
|
+
};
|
|
2606
|
+
"/wishlist/{user_id}": {
|
|
2607
|
+
parameters: {
|
|
2608
|
+
query?: never;
|
|
2609
|
+
header?: never;
|
|
2610
|
+
path?: never;
|
|
2611
|
+
cookie?: never;
|
|
2612
|
+
};
|
|
2613
|
+
/**
|
|
2614
|
+
* Retrieve wishlist
|
|
2615
|
+
* @description Retrieve products in wishlist
|
|
2616
|
+
*/
|
|
2617
|
+
get: operations["get-wishlist"];
|
|
2618
|
+
put?: never;
|
|
2619
|
+
/**
|
|
2620
|
+
* Add product to wishlist
|
|
2621
|
+
* @description wishlist
|
|
2622
|
+
*/
|
|
2623
|
+
post: operations["add-to-wishlist"];
|
|
2624
|
+
/**
|
|
2625
|
+
* Delete product from wishlist
|
|
2626
|
+
* @description Remove product from wishlist
|
|
2627
|
+
*/
|
|
2628
|
+
delete: operations["delete-from-wishlist"];
|
|
2629
|
+
options?: never;
|
|
2630
|
+
head?: never;
|
|
2631
|
+
patch?: never;
|
|
2632
|
+
trace?: never;
|
|
2633
|
+
};
|
|
2634
|
+
}
|
|
2635
|
+
interface components {
|
|
2636
|
+
schemas: {
|
|
2637
|
+
/** AcceleratedRewardCouponPromotion */
|
|
2638
|
+
AcceleratedRewardCouponPromotion: components["schemas"]["CouponPromotionCommonDetail"] & {
|
|
2639
|
+
details: components["schemas"]["AcceleratedRewardRule"];
|
|
2640
|
+
/** @enum {unknown} */
|
|
2641
|
+
applies_to_product: "product" | "category";
|
|
2642
|
+
};
|
|
2643
|
+
/** AcceleratedRewardRule */
|
|
2644
|
+
AcceleratedRewardRule: {
|
|
2645
|
+
products: {
|
|
2646
|
+
product_id: string | null;
|
|
2647
|
+
variant_id: string | null;
|
|
2648
|
+
minimum_quantity: number | null;
|
|
2442
2649
|
minimum_value: number | null;
|
|
2443
2650
|
}[];
|
|
2444
2651
|
/** @description Array of category ids. */
|
|
@@ -4479,6 +4686,10 @@ interface components {
|
|
|
4479
4686
|
phone?: string;
|
|
4480
4687
|
/** Format: email */
|
|
4481
4688
|
email?: string;
|
|
4689
|
+
channel?: {
|
|
4690
|
+
id?: string;
|
|
4691
|
+
name?: string;
|
|
4692
|
+
};
|
|
4482
4693
|
device?: {
|
|
4483
4694
|
id?: string;
|
|
4484
4695
|
name?: string;
|
|
@@ -6617,10 +6828,10 @@ interface operations {
|
|
|
6617
6828
|
};
|
|
6618
6829
|
content: {
|
|
6619
6830
|
"application/json": {
|
|
6620
|
-
message
|
|
6621
|
-
success
|
|
6622
|
-
content
|
|
6623
|
-
coupons
|
|
6831
|
+
message: string;
|
|
6832
|
+
success: boolean;
|
|
6833
|
+
content: {
|
|
6834
|
+
coupons: components["schemas"]["Coupon"][];
|
|
6624
6835
|
};
|
|
6625
6836
|
};
|
|
6626
6837
|
};
|
|
@@ -6649,10 +6860,10 @@ interface operations {
|
|
|
6649
6860
|
};
|
|
6650
6861
|
content: {
|
|
6651
6862
|
"application/json": {
|
|
6652
|
-
message
|
|
6653
|
-
success
|
|
6654
|
-
content
|
|
6655
|
-
promotions
|
|
6863
|
+
message: string;
|
|
6864
|
+
success: boolean;
|
|
6865
|
+
content: {
|
|
6866
|
+
promotions: components["schemas"]["Promotion"][];
|
|
6656
6867
|
};
|
|
6657
6868
|
};
|
|
6658
6869
|
};
|
|
@@ -7001,11 +7212,11 @@ interface operations {
|
|
|
7001
7212
|
};
|
|
7002
7213
|
content: {
|
|
7003
7214
|
"application/json": {
|
|
7004
|
-
message
|
|
7005
|
-
success
|
|
7006
|
-
content
|
|
7007
|
-
applicable_coupons
|
|
7008
|
-
inapplicable_coupons
|
|
7215
|
+
message: string;
|
|
7216
|
+
success: boolean;
|
|
7217
|
+
content: {
|
|
7218
|
+
applicable_coupons: components["schemas"]["ApplicableCoupon"][];
|
|
7219
|
+
inapplicable_coupons: components["schemas"]["InapplicableCoupon"][];
|
|
7009
7220
|
};
|
|
7010
7221
|
};
|
|
7011
7222
|
};
|
|
@@ -7032,11 +7243,11 @@ interface operations {
|
|
|
7032
7243
|
};
|
|
7033
7244
|
content: {
|
|
7034
7245
|
"application/json": {
|
|
7035
|
-
message
|
|
7036
|
-
success
|
|
7037
|
-
content
|
|
7038
|
-
applicable_promotions
|
|
7039
|
-
inapplicable_promotions
|
|
7246
|
+
message: string;
|
|
7247
|
+
success: boolean;
|
|
7248
|
+
content: {
|
|
7249
|
+
applicable_promotions: components["schemas"]["ApplicablePromotion"][];
|
|
7250
|
+
inapplicable_promotions: components["schemas"]["InapplicablePromotion"][];
|
|
7040
7251
|
};
|
|
7041
7252
|
};
|
|
7042
7253
|
};
|
|
@@ -9225,7 +9436,7 @@ interface operations {
|
|
|
9225
9436
|
content: {
|
|
9226
9437
|
"application/json": {
|
|
9227
9438
|
message: string;
|
|
9228
|
-
success:
|
|
9439
|
+
success: boolean;
|
|
9229
9440
|
content: {
|
|
9230
9441
|
otp_token: string;
|
|
9231
9442
|
/** @constant */
|
|
@@ -9268,7 +9479,7 @@ interface operations {
|
|
|
9268
9479
|
content: {
|
|
9269
9480
|
"application/json": {
|
|
9270
9481
|
message: string;
|
|
9271
|
-
success:
|
|
9482
|
+
success: boolean;
|
|
9272
9483
|
content: {
|
|
9273
9484
|
otp_token: string;
|
|
9274
9485
|
/** @constant */
|
|
@@ -9311,7 +9522,7 @@ interface operations {
|
|
|
9311
9522
|
content: {
|
|
9312
9523
|
"application/json": {
|
|
9313
9524
|
message: string;
|
|
9314
|
-
success:
|
|
9525
|
+
success: boolean;
|
|
9315
9526
|
content: {
|
|
9316
9527
|
otp_token: string;
|
|
9317
9528
|
/** @constant */
|
|
@@ -9324,6 +9535,30 @@ interface operations {
|
|
|
9324
9535
|
401: components["responses"]["Unauthorized"];
|
|
9325
9536
|
};
|
|
9326
9537
|
};
|
|
9538
|
+
"logout-from-pos-device": {
|
|
9539
|
+
parameters: {
|
|
9540
|
+
query?: never;
|
|
9541
|
+
header?: never;
|
|
9542
|
+
path?: never;
|
|
9543
|
+
cookie?: never;
|
|
9544
|
+
};
|
|
9545
|
+
requestBody?: never;
|
|
9546
|
+
responses: {
|
|
9547
|
+
/** @description OK */
|
|
9548
|
+
200: {
|
|
9549
|
+
headers: {
|
|
9550
|
+
[name: string]: unknown;
|
|
9551
|
+
};
|
|
9552
|
+
content: {
|
|
9553
|
+
"application/json": {
|
|
9554
|
+
message: string;
|
|
9555
|
+
success: boolean;
|
|
9556
|
+
};
|
|
9557
|
+
};
|
|
9558
|
+
};
|
|
9559
|
+
401: components["responses"]["Unauthorized"];
|
|
9560
|
+
};
|
|
9561
|
+
};
|
|
9327
9562
|
"pair-pos-device": {
|
|
9328
9563
|
parameters: {
|
|
9329
9564
|
query?: never;
|
|
@@ -9346,10 +9581,10 @@ interface operations {
|
|
|
9346
9581
|
};
|
|
9347
9582
|
content: {
|
|
9348
9583
|
"application/json": {
|
|
9349
|
-
message
|
|
9350
|
-
success
|
|
9351
|
-
content
|
|
9352
|
-
device
|
|
9584
|
+
message: string;
|
|
9585
|
+
success: boolean;
|
|
9586
|
+
content: {
|
|
9587
|
+
device: components["schemas"]["PosDevice"];
|
|
9353
9588
|
};
|
|
9354
9589
|
};
|
|
9355
9590
|
};
|
|
@@ -9380,11 +9615,11 @@ interface operations {
|
|
|
9380
9615
|
};
|
|
9381
9616
|
content: {
|
|
9382
9617
|
"application/json": {
|
|
9383
|
-
message
|
|
9384
|
-
success
|
|
9385
|
-
content
|
|
9386
|
-
access_token
|
|
9387
|
-
refresh_token
|
|
9618
|
+
message: string;
|
|
9619
|
+
success: boolean;
|
|
9620
|
+
content: {
|
|
9621
|
+
access_token: string;
|
|
9622
|
+
refresh_token: string;
|
|
9388
9623
|
};
|
|
9389
9624
|
};
|
|
9390
9625
|
};
|
|
@@ -9423,7 +9658,7 @@ interface operations {
|
|
|
9423
9658
|
content: {
|
|
9424
9659
|
"application/json": {
|
|
9425
9660
|
message: string;
|
|
9426
|
-
success:
|
|
9661
|
+
success: boolean;
|
|
9427
9662
|
content: {
|
|
9428
9663
|
user: components["schemas"]["PosUser"];
|
|
9429
9664
|
access_token: string;
|
|
@@ -9493,10 +9728,10 @@ interface operations {
|
|
|
9493
9728
|
};
|
|
9494
9729
|
content: {
|
|
9495
9730
|
"application/json": {
|
|
9496
|
-
message
|
|
9497
|
-
success
|
|
9498
|
-
content
|
|
9499
|
-
coupons
|
|
9731
|
+
message: string;
|
|
9732
|
+
success: boolean;
|
|
9733
|
+
content: {
|
|
9734
|
+
coupons: components["schemas"]["Coupon"][];
|
|
9500
9735
|
};
|
|
9501
9736
|
};
|
|
9502
9737
|
};
|
|
@@ -9525,10 +9760,10 @@ interface operations {
|
|
|
9525
9760
|
};
|
|
9526
9761
|
content: {
|
|
9527
9762
|
"application/json": {
|
|
9528
|
-
message
|
|
9529
|
-
success
|
|
9530
|
-
content
|
|
9531
|
-
promotions
|
|
9763
|
+
message: string;
|
|
9764
|
+
success: boolean;
|
|
9765
|
+
content: {
|
|
9766
|
+
promotions: components["schemas"]["Promotion"][];
|
|
9532
9767
|
};
|
|
9533
9768
|
};
|
|
9534
9769
|
};
|
|
@@ -9816,42 +10051,462 @@ interface operations {
|
|
|
9816
10051
|
};
|
|
9817
10052
|
content: {
|
|
9818
10053
|
"application/json": {
|
|
9819
|
-
message
|
|
9820
|
-
success
|
|
9821
|
-
content
|
|
9822
|
-
applicable_coupons
|
|
9823
|
-
inapplicable_coupons
|
|
10054
|
+
message: string;
|
|
10055
|
+
success: boolean;
|
|
10056
|
+
content: {
|
|
10057
|
+
applicable_coupons: components["schemas"]["ApplicableCoupon"][];
|
|
10058
|
+
inapplicable_coupons: components["schemas"]["InapplicableCoupon"][];
|
|
10059
|
+
};
|
|
10060
|
+
};
|
|
10061
|
+
};
|
|
10062
|
+
};
|
|
10063
|
+
401: components["responses"]["Unauthorized"];
|
|
10064
|
+
};
|
|
10065
|
+
};
|
|
10066
|
+
"pos-evaluate-promotions": {
|
|
10067
|
+
parameters: {
|
|
10068
|
+
query?: never;
|
|
10069
|
+
header?: never;
|
|
10070
|
+
path: {
|
|
10071
|
+
/** @description Cart Id */
|
|
10072
|
+
id: string;
|
|
10073
|
+
};
|
|
10074
|
+
cookie?: never;
|
|
10075
|
+
};
|
|
10076
|
+
requestBody?: never;
|
|
10077
|
+
responses: {
|
|
10078
|
+
/** @description OK */
|
|
10079
|
+
200: {
|
|
10080
|
+
headers: {
|
|
10081
|
+
[name: string]: unknown;
|
|
10082
|
+
};
|
|
10083
|
+
content: {
|
|
10084
|
+
"application/json": {
|
|
10085
|
+
message: string;
|
|
10086
|
+
success: boolean;
|
|
10087
|
+
content: {
|
|
10088
|
+
applicable_promotions: components["schemas"]["ApplicablePromotion"][];
|
|
10089
|
+
inapplicable_promotions: components["schemas"]["InapplicablePromotion"][];
|
|
10090
|
+
};
|
|
10091
|
+
};
|
|
10092
|
+
};
|
|
10093
|
+
};
|
|
10094
|
+
401: components["responses"]["Unauthorized"];
|
|
10095
|
+
};
|
|
10096
|
+
};
|
|
10097
|
+
"pos-update-fulfillment-preference": {
|
|
10098
|
+
parameters: {
|
|
10099
|
+
query?: never;
|
|
10100
|
+
header?: never;
|
|
10101
|
+
path: {
|
|
10102
|
+
/** @description Cart ID */
|
|
10103
|
+
id: string;
|
|
10104
|
+
};
|
|
10105
|
+
cookie?: never;
|
|
10106
|
+
};
|
|
10107
|
+
requestBody: {
|
|
10108
|
+
content: {
|
|
10109
|
+
"application/json": components["schemas"]["CollectInStoreFulfillment"] | components["schemas"]["DeliveryFulfillment"];
|
|
10110
|
+
};
|
|
10111
|
+
};
|
|
10112
|
+
responses: {
|
|
10113
|
+
/** @description OK */
|
|
10114
|
+
200: {
|
|
10115
|
+
headers: {
|
|
10116
|
+
[name: string]: unknown;
|
|
10117
|
+
};
|
|
10118
|
+
content: {
|
|
10119
|
+
"application/json": {
|
|
10120
|
+
message: string;
|
|
10121
|
+
success: boolean;
|
|
10122
|
+
};
|
|
10123
|
+
};
|
|
10124
|
+
};
|
|
10125
|
+
400: components["responses"]["BadRequest"];
|
|
10126
|
+
401: components["responses"]["Unauthorized"];
|
|
10127
|
+
404: components["responses"]["NotFound"];
|
|
10128
|
+
};
|
|
10129
|
+
};
|
|
10130
|
+
"pos-redeem-gift-card": {
|
|
10131
|
+
parameters: {
|
|
10132
|
+
query?: never;
|
|
10133
|
+
header?: never;
|
|
10134
|
+
path: {
|
|
10135
|
+
/** @description Cart ID */
|
|
10136
|
+
id: string;
|
|
10137
|
+
};
|
|
10138
|
+
cookie?: never;
|
|
10139
|
+
};
|
|
10140
|
+
requestBody: {
|
|
10141
|
+
content: {
|
|
10142
|
+
"application/json": {
|
|
10143
|
+
gift_card_code: string;
|
|
10144
|
+
};
|
|
10145
|
+
};
|
|
10146
|
+
};
|
|
10147
|
+
responses: {
|
|
10148
|
+
/** @description OK */
|
|
10149
|
+
200: {
|
|
10150
|
+
headers: {
|
|
10151
|
+
[name: string]: unknown;
|
|
10152
|
+
};
|
|
10153
|
+
content: {
|
|
10154
|
+
"application/json": {
|
|
10155
|
+
message: string;
|
|
10156
|
+
success: boolean;
|
|
10157
|
+
content: components["schemas"]["Cart"];
|
|
10158
|
+
};
|
|
10159
|
+
};
|
|
10160
|
+
};
|
|
10161
|
+
400: components["responses"]["BadRequest"];
|
|
10162
|
+
401: components["responses"]["Unauthorized"];
|
|
10163
|
+
404: components["responses"]["NotFound"];
|
|
10164
|
+
};
|
|
10165
|
+
};
|
|
10166
|
+
"pos-remove-gift-card": {
|
|
10167
|
+
parameters: {
|
|
10168
|
+
query?: never;
|
|
10169
|
+
header?: never;
|
|
10170
|
+
path: {
|
|
10171
|
+
/** @description Cart ID */
|
|
10172
|
+
id: string;
|
|
10173
|
+
};
|
|
10174
|
+
cookie?: never;
|
|
10175
|
+
};
|
|
10176
|
+
requestBody?: never;
|
|
10177
|
+
responses: {
|
|
10178
|
+
/** @description OK */
|
|
10179
|
+
200: {
|
|
10180
|
+
headers: {
|
|
10181
|
+
[name: string]: unknown;
|
|
10182
|
+
};
|
|
10183
|
+
content: {
|
|
10184
|
+
"application/json": {
|
|
10185
|
+
message: string;
|
|
10186
|
+
success: boolean;
|
|
10187
|
+
content: components["schemas"]["Cart"];
|
|
10188
|
+
};
|
|
10189
|
+
};
|
|
10190
|
+
};
|
|
10191
|
+
400: components["responses"]["BadRequest"];
|
|
10192
|
+
401: components["responses"]["Unauthorized"];
|
|
10193
|
+
404: components["responses"]["NotFound"];
|
|
10194
|
+
};
|
|
10195
|
+
};
|
|
10196
|
+
"pos-update-cart": {
|
|
10197
|
+
parameters: {
|
|
10198
|
+
query?: never;
|
|
10199
|
+
header?: never;
|
|
10200
|
+
path: {
|
|
10201
|
+
/** @description cart id */
|
|
10202
|
+
id: string;
|
|
10203
|
+
};
|
|
10204
|
+
cookie?: never;
|
|
10205
|
+
};
|
|
10206
|
+
requestBody: {
|
|
10207
|
+
content: {
|
|
10208
|
+
"application/json": components["schemas"]["UpdateCartItem"];
|
|
10209
|
+
};
|
|
10210
|
+
};
|
|
10211
|
+
responses: {
|
|
10212
|
+
/** @description OK */
|
|
10213
|
+
200: {
|
|
10214
|
+
headers: {
|
|
10215
|
+
[name: string]: unknown;
|
|
10216
|
+
};
|
|
10217
|
+
content: {
|
|
10218
|
+
"application/json": {
|
|
10219
|
+
message: string;
|
|
10220
|
+
success: boolean;
|
|
10221
|
+
content: {
|
|
10222
|
+
cart: components["schemas"]["Cart"];
|
|
10223
|
+
};
|
|
10224
|
+
};
|
|
10225
|
+
};
|
|
10226
|
+
};
|
|
10227
|
+
400: components["responses"]["BadRequest"];
|
|
10228
|
+
401: components["responses"]["Unauthorized"];
|
|
10229
|
+
404: components["responses"]["NotFound"];
|
|
10230
|
+
};
|
|
10231
|
+
};
|
|
10232
|
+
"pos-redeem-loyalty-points": {
|
|
10233
|
+
parameters: {
|
|
10234
|
+
query?: never;
|
|
10235
|
+
header?: never;
|
|
10236
|
+
path: {
|
|
10237
|
+
/** @description Cart ID */
|
|
10238
|
+
id: string;
|
|
10239
|
+
};
|
|
10240
|
+
cookie?: never;
|
|
10241
|
+
};
|
|
10242
|
+
requestBody: {
|
|
10243
|
+
content: {
|
|
10244
|
+
"application/json": {
|
|
10245
|
+
/** @example 1000 */
|
|
10246
|
+
loyalty_point_redeemed: number;
|
|
10247
|
+
};
|
|
10248
|
+
};
|
|
10249
|
+
};
|
|
10250
|
+
responses: {
|
|
10251
|
+
/** @description OK */
|
|
10252
|
+
200: {
|
|
10253
|
+
headers: {
|
|
10254
|
+
[name: string]: unknown;
|
|
10255
|
+
};
|
|
10256
|
+
content: {
|
|
10257
|
+
"application/json": {
|
|
10258
|
+
message: string;
|
|
10259
|
+
success: boolean;
|
|
10260
|
+
content: {
|
|
10261
|
+
cart: components["schemas"]["Cart"];
|
|
10262
|
+
};
|
|
10263
|
+
};
|
|
10264
|
+
};
|
|
10265
|
+
};
|
|
10266
|
+
400: components["responses"]["BadRequest"];
|
|
10267
|
+
401: components["responses"]["Unauthorized"];
|
|
10268
|
+
};
|
|
10269
|
+
};
|
|
10270
|
+
"pos-remove-loyalty-points": {
|
|
10271
|
+
parameters: {
|
|
10272
|
+
query?: never;
|
|
10273
|
+
header?: never;
|
|
10274
|
+
path: {
|
|
10275
|
+
/** @description Cart ID */
|
|
10276
|
+
id: string;
|
|
10277
|
+
};
|
|
10278
|
+
cookie?: never;
|
|
10279
|
+
};
|
|
10280
|
+
requestBody?: never;
|
|
10281
|
+
responses: {
|
|
10282
|
+
/** @description OK */
|
|
10283
|
+
200: {
|
|
10284
|
+
headers: {
|
|
10285
|
+
[name: string]: unknown;
|
|
10286
|
+
};
|
|
10287
|
+
content: {
|
|
10288
|
+
"application/json": {
|
|
10289
|
+
message: string;
|
|
10290
|
+
success: boolean;
|
|
10291
|
+
content: {
|
|
10292
|
+
cart: components["schemas"]["Cart"];
|
|
10293
|
+
};
|
|
10294
|
+
};
|
|
10295
|
+
};
|
|
10296
|
+
};
|
|
10297
|
+
400: components["responses"]["BadRequest"];
|
|
10298
|
+
401: components["responses"]["Unauthorized"];
|
|
10299
|
+
/** @description Not Found */
|
|
10300
|
+
404: {
|
|
10301
|
+
headers: {
|
|
10302
|
+
[name: string]: unknown;
|
|
10303
|
+
};
|
|
10304
|
+
content?: never;
|
|
10305
|
+
};
|
|
10306
|
+
};
|
|
10307
|
+
};
|
|
10308
|
+
"update-pos-cart-customer": {
|
|
10309
|
+
parameters: {
|
|
10310
|
+
query?: never;
|
|
10311
|
+
header?: never;
|
|
10312
|
+
path: {
|
|
10313
|
+
/** @description cart id */
|
|
10314
|
+
id: string;
|
|
10315
|
+
};
|
|
10316
|
+
cookie?: never;
|
|
10317
|
+
};
|
|
10318
|
+
requestBody: {
|
|
10319
|
+
content: {
|
|
10320
|
+
"application/json": components["schemas"]["PosUpdateCustomerWithId"] | components["schemas"]["PosUpdateCustomerWithPhone"] | components["schemas"]["PosUpdateCustomerWithEmail"];
|
|
10321
|
+
};
|
|
10322
|
+
};
|
|
10323
|
+
responses: {
|
|
10324
|
+
/** @description OK */
|
|
10325
|
+
200: {
|
|
10326
|
+
headers: {
|
|
10327
|
+
[name: string]: unknown;
|
|
10328
|
+
};
|
|
10329
|
+
content: {
|
|
10330
|
+
"application/json": {
|
|
10331
|
+
message: string;
|
|
10332
|
+
success: boolean;
|
|
10333
|
+
content: {
|
|
10334
|
+
cart: components["schemas"]["Cart"];
|
|
10335
|
+
};
|
|
10336
|
+
};
|
|
10337
|
+
};
|
|
10338
|
+
};
|
|
10339
|
+
400: components["responses"]["BadRequest"];
|
|
10340
|
+
401: components["responses"]["Unauthorized"];
|
|
10341
|
+
404: components["responses"]["NotFound"];
|
|
10342
|
+
};
|
|
10343
|
+
};
|
|
10344
|
+
"pos-list-categories": {
|
|
10345
|
+
parameters: {
|
|
10346
|
+
query?: {
|
|
10347
|
+
/** @description search keyword */
|
|
10348
|
+
search?: components["parameters"]["searchKeyword"];
|
|
10349
|
+
/** @description JSON string format: {"field1":"asc", "field2":"desc"} */
|
|
10350
|
+
sort_by?: components["parameters"]["sortingParam"];
|
|
10351
|
+
/** @description return child categories up to nesting level */
|
|
10352
|
+
nested_level?: number;
|
|
10353
|
+
/** @description To return child categories using category id. */
|
|
10354
|
+
parent_category_id?: string;
|
|
10355
|
+
/** @description To return child categories using category slug */
|
|
10356
|
+
parent_category_slug?: string;
|
|
10357
|
+
};
|
|
10358
|
+
header?: never;
|
|
10359
|
+
path?: never;
|
|
10360
|
+
cookie?: never;
|
|
10361
|
+
};
|
|
10362
|
+
requestBody?: never;
|
|
10363
|
+
responses: {
|
|
10364
|
+
/** @description OK */
|
|
10365
|
+
200: {
|
|
10366
|
+
headers: {
|
|
10367
|
+
[name: string]: unknown;
|
|
10368
|
+
};
|
|
10369
|
+
content: {
|
|
10370
|
+
"application/json": {
|
|
10371
|
+
/** @example all categories */
|
|
10372
|
+
message: string;
|
|
10373
|
+
success: boolean;
|
|
10374
|
+
content: {
|
|
10375
|
+
categories: components["schemas"]["ProductCategory"][];
|
|
10376
|
+
pagination: components["schemas"]["Pagination"];
|
|
10377
|
+
};
|
|
10378
|
+
};
|
|
10379
|
+
};
|
|
10380
|
+
};
|
|
10381
|
+
400: components["responses"]["BadRequest"];
|
|
10382
|
+
401: components["responses"]["Unauthorized"];
|
|
10383
|
+
404: components["responses"]["NotFound"];
|
|
10384
|
+
};
|
|
10385
|
+
};
|
|
10386
|
+
"pos-list-products": {
|
|
10387
|
+
parameters: {
|
|
10388
|
+
query?: {
|
|
10389
|
+
/** @description page number of pagination list */
|
|
10390
|
+
page?: components["parameters"]["pageParam"];
|
|
10391
|
+
/** @description no of rows per page */
|
|
10392
|
+
limit?: components["parameters"]["pageLimitParam"];
|
|
10393
|
+
/** @description JSON string format: {"field1":"asc", "field2":"desc"} */
|
|
10394
|
+
sort_by?: components["parameters"]["sortingParam"];
|
|
10395
|
+
/** @description filter products by categories ids */
|
|
10396
|
+
category_id?: string[];
|
|
10397
|
+
/** @description filter products by categories slugs */
|
|
10398
|
+
category_slug?: string[];
|
|
10399
|
+
};
|
|
10400
|
+
header?: {
|
|
10401
|
+
/** @description This param is used to determine product pricing, promotions, and subscription rates. If a valid customer group id is provided, pricing details will be retrieved accordingly. If no matching data is found for the specified customer group id, the system will fall back to the default customer group id. If no data is found for the default group either, the highest applicable price will be returned. */
|
|
10402
|
+
"x-customer-group-id"?: components["parameters"]["CustomerGroupId"];
|
|
10403
|
+
};
|
|
10404
|
+
path?: never;
|
|
10405
|
+
cookie?: never;
|
|
10406
|
+
};
|
|
10407
|
+
requestBody?: never;
|
|
10408
|
+
responses: {
|
|
10409
|
+
/** @description Success response */
|
|
10410
|
+
200: {
|
|
10411
|
+
headers: {
|
|
10412
|
+
[name: string]: unknown;
|
|
10413
|
+
};
|
|
10414
|
+
content: {
|
|
10415
|
+
"application/json": {
|
|
10416
|
+
/** @example Products retrieved successfully. */
|
|
10417
|
+
message: string;
|
|
10418
|
+
success: boolean;
|
|
10419
|
+
content: {
|
|
10420
|
+
products: components["schemas"]["Product"][];
|
|
10421
|
+
pagination: components["schemas"]["Pagination"];
|
|
10422
|
+
};
|
|
10423
|
+
};
|
|
10424
|
+
};
|
|
10425
|
+
};
|
|
10426
|
+
401: components["responses"]["Unauthorized"];
|
|
10427
|
+
404: components["responses"]["NotFound"];
|
|
10428
|
+
};
|
|
10429
|
+
};
|
|
10430
|
+
"pos-list-crosssell-products": {
|
|
10431
|
+
parameters: {
|
|
10432
|
+
query?: {
|
|
10433
|
+
/** @description no of rows per page */
|
|
10434
|
+
limit?: number;
|
|
10435
|
+
/** @description page number in pagination */
|
|
10436
|
+
page?: number;
|
|
10437
|
+
/** @description Product ids of cart items */
|
|
10438
|
+
product_id?: string[];
|
|
10439
|
+
/** @description json to sort records */
|
|
10440
|
+
sort_by?: string;
|
|
10441
|
+
};
|
|
10442
|
+
header?: {
|
|
10443
|
+
/** @description This param is used to determine product pricing, promotions, and subscription rates. If a valid customer group id is provided, pricing details will be retrieved accordingly. If no matching data is found for the specified customer group id, the system will fall back to the default customer group id. If no data is found for the default group either, the highest applicable price will be returned. */
|
|
10444
|
+
"x-customer-group-id"?: components["parameters"]["CustomerGroupId"];
|
|
10445
|
+
};
|
|
10446
|
+
path?: never;
|
|
10447
|
+
cookie?: never;
|
|
10448
|
+
};
|
|
10449
|
+
requestBody?: never;
|
|
10450
|
+
responses: {
|
|
10451
|
+
/** @description Success response */
|
|
10452
|
+
200: {
|
|
10453
|
+
headers: {
|
|
10454
|
+
[name: string]: unknown;
|
|
10455
|
+
};
|
|
10456
|
+
content: {
|
|
10457
|
+
"application/json": {
|
|
10458
|
+
message: string;
|
|
10459
|
+
success: boolean;
|
|
10460
|
+
content: {
|
|
10461
|
+
products: components["schemas"]["Item"][];
|
|
10462
|
+
pagination: components["schemas"]["Pagination"];
|
|
9824
10463
|
};
|
|
9825
10464
|
};
|
|
9826
10465
|
};
|
|
9827
10466
|
};
|
|
9828
10467
|
401: components["responses"]["Unauthorized"];
|
|
10468
|
+
404: components["responses"]["NotFound"];
|
|
9829
10469
|
};
|
|
9830
10470
|
};
|
|
9831
|
-
"pos-
|
|
10471
|
+
"pos-search-products": {
|
|
9832
10472
|
parameters: {
|
|
9833
10473
|
query?: never;
|
|
9834
|
-
header?:
|
|
9835
|
-
|
|
9836
|
-
|
|
9837
|
-
id: string;
|
|
10474
|
+
header?: {
|
|
10475
|
+
/** @description This param is used to determine product pricing, promotions, and subscription rates. If a valid customer group id is provided, pricing details will be retrieved accordingly. If no matching data is found for the specified customer group id, the system will fall back to the default customer group id. If no data is found for the default group either, the highest applicable price will be returned. */
|
|
10476
|
+
"x-customer-group-id"?: components["parameters"]["CustomerGroupId"];
|
|
9838
10477
|
};
|
|
10478
|
+
path?: never;
|
|
9839
10479
|
cookie?: never;
|
|
9840
10480
|
};
|
|
9841
|
-
requestBody
|
|
10481
|
+
requestBody: {
|
|
10482
|
+
content: {
|
|
10483
|
+
"application/json": components["schemas"]["SearchProduct"];
|
|
10484
|
+
};
|
|
10485
|
+
};
|
|
9842
10486
|
responses: {
|
|
9843
|
-
/** @description
|
|
10487
|
+
/** @description Success response */
|
|
9844
10488
|
200: {
|
|
9845
10489
|
headers: {
|
|
9846
10490
|
[name: string]: unknown;
|
|
9847
10491
|
};
|
|
9848
10492
|
content: {
|
|
9849
10493
|
"application/json": {
|
|
9850
|
-
message
|
|
9851
|
-
success
|
|
9852
|
-
content
|
|
9853
|
-
|
|
9854
|
-
|
|
10494
|
+
message: string;
|
|
10495
|
+
success: boolean;
|
|
10496
|
+
content: {
|
|
10497
|
+
skus: components["schemas"]["Item"][];
|
|
10498
|
+
facet_distribution: {
|
|
10499
|
+
[key: string]: {
|
|
10500
|
+
[key: string]: number;
|
|
10501
|
+
};
|
|
10502
|
+
};
|
|
10503
|
+
facet_stats: {
|
|
10504
|
+
[key: string]: {
|
|
10505
|
+
min: number;
|
|
10506
|
+
max: number;
|
|
10507
|
+
};
|
|
10508
|
+
};
|
|
10509
|
+
pagination: components["schemas"]["Pagination"];
|
|
9855
10510
|
};
|
|
9856
10511
|
};
|
|
9857
10512
|
};
|
|
@@ -9859,23 +10514,28 @@ interface operations {
|
|
|
9859
10514
|
401: components["responses"]["Unauthorized"];
|
|
9860
10515
|
};
|
|
9861
10516
|
};
|
|
9862
|
-
"pos-
|
|
10517
|
+
"pos-list-similar-products": {
|
|
9863
10518
|
parameters: {
|
|
9864
|
-
query?:
|
|
9865
|
-
|
|
9866
|
-
|
|
9867
|
-
/** @description
|
|
9868
|
-
|
|
10519
|
+
query?: {
|
|
10520
|
+
/** @description no of rows per page */
|
|
10521
|
+
limit?: number;
|
|
10522
|
+
/** @description page number in pagination */
|
|
10523
|
+
page?: number;
|
|
10524
|
+
/** @description to retrieve similar products of specified products */
|
|
10525
|
+
product_id?: string[];
|
|
10526
|
+
/** @description json to sort records */
|
|
10527
|
+
sort_by?: string;
|
|
9869
10528
|
};
|
|
9870
|
-
|
|
9871
|
-
|
|
9872
|
-
|
|
9873
|
-
content: {
|
|
9874
|
-
"application/json": components["schemas"]["CollectInStoreFulfillment"] | components["schemas"]["DeliveryFulfillment"];
|
|
10529
|
+
header?: {
|
|
10530
|
+
/** @description This param is used to determine product pricing, promotions, and subscription rates. If a valid customer group id is provided, pricing details will be retrieved accordingly. If no matching data is found for the specified customer group id, the system will fall back to the default customer group id. If no data is found for the default group either, the highest applicable price will be returned. */
|
|
10531
|
+
"x-customer-group-id"?: components["parameters"]["CustomerGroupId"];
|
|
9875
10532
|
};
|
|
10533
|
+
path?: never;
|
|
10534
|
+
cookie?: never;
|
|
9876
10535
|
};
|
|
10536
|
+
requestBody?: never;
|
|
9877
10537
|
responses: {
|
|
9878
|
-
/** @description
|
|
10538
|
+
/** @description Success response */
|
|
9879
10539
|
200: {
|
|
9880
10540
|
headers: {
|
|
9881
10541
|
[name: string]: unknown;
|
|
@@ -9884,97 +10544,118 @@ interface operations {
|
|
|
9884
10544
|
"application/json": {
|
|
9885
10545
|
message: string;
|
|
9886
10546
|
success: boolean;
|
|
10547
|
+
content: {
|
|
10548
|
+
products: components["schemas"]["Item"][];
|
|
10549
|
+
pagination: components["schemas"]["Pagination"];
|
|
10550
|
+
};
|
|
9887
10551
|
};
|
|
9888
10552
|
};
|
|
9889
10553
|
};
|
|
9890
|
-
400: components["responses"]["BadRequest"];
|
|
9891
10554
|
401: components["responses"]["Unauthorized"];
|
|
9892
10555
|
404: components["responses"]["NotFound"];
|
|
9893
10556
|
};
|
|
9894
10557
|
};
|
|
9895
|
-
"pos-
|
|
10558
|
+
"pos-list-upsell-products": {
|
|
9896
10559
|
parameters: {
|
|
9897
|
-
query?:
|
|
9898
|
-
|
|
9899
|
-
|
|
9900
|
-
/** @description
|
|
9901
|
-
|
|
10560
|
+
query?: {
|
|
10561
|
+
/** @description no of rows per page */
|
|
10562
|
+
limit?: number;
|
|
10563
|
+
/** @description page number in pagination */
|
|
10564
|
+
page?: number;
|
|
10565
|
+
/** @description Product ids of cart items */
|
|
10566
|
+
product_id?: string[];
|
|
10567
|
+
/** @description json to sort records */
|
|
10568
|
+
sort_by?: string;
|
|
9902
10569
|
};
|
|
9903
|
-
|
|
9904
|
-
|
|
9905
|
-
|
|
9906
|
-
content: {
|
|
9907
|
-
"application/json": {
|
|
9908
|
-
gift_card_code: string;
|
|
9909
|
-
};
|
|
10570
|
+
header?: {
|
|
10571
|
+
/** @description This param is used to determine product pricing, promotions, and subscription rates. If a valid customer group id is provided, pricing details will be retrieved accordingly. If no matching data is found for the specified customer group id, the system will fall back to the default customer group id. If no data is found for the default group either, the highest applicable price will be returned. */
|
|
10572
|
+
"x-customer-group-id"?: components["parameters"]["CustomerGroupId"];
|
|
9910
10573
|
};
|
|
10574
|
+
path?: never;
|
|
10575
|
+
cookie?: never;
|
|
9911
10576
|
};
|
|
10577
|
+
requestBody?: never;
|
|
9912
10578
|
responses: {
|
|
9913
|
-
/** @description
|
|
10579
|
+
/** @description Success response */
|
|
9914
10580
|
200: {
|
|
9915
10581
|
headers: {
|
|
9916
10582
|
[name: string]: unknown;
|
|
9917
10583
|
};
|
|
9918
10584
|
content: {
|
|
9919
10585
|
"application/json": {
|
|
10586
|
+
/** @description Masssage */
|
|
9920
10587
|
message: string;
|
|
9921
10588
|
success: boolean;
|
|
9922
|
-
content:
|
|
10589
|
+
content: {
|
|
10590
|
+
products: components["schemas"]["Item"][];
|
|
10591
|
+
pagination: components["schemas"]["Pagination"];
|
|
10592
|
+
};
|
|
9923
10593
|
};
|
|
9924
10594
|
};
|
|
9925
10595
|
};
|
|
9926
|
-
400: components["responses"]["BadRequest"];
|
|
9927
10596
|
401: components["responses"]["Unauthorized"];
|
|
9928
10597
|
404: components["responses"]["NotFound"];
|
|
9929
10598
|
};
|
|
9930
10599
|
};
|
|
9931
|
-
"pos-
|
|
10600
|
+
"pos-get-product-detail": {
|
|
9932
10601
|
parameters: {
|
|
9933
10602
|
query?: never;
|
|
9934
|
-
header?:
|
|
10603
|
+
header?: {
|
|
10604
|
+
/** @description This param is used to determine product pricing, promotions, and subscription rates. If a valid customer group id is provided, pricing details will be retrieved accordingly. If no matching data is found for the specified customer group id, the system will fall back to the default customer group id. If no data is found for the default group either, the highest applicable price will be returned. */
|
|
10605
|
+
"x-customer-group-id"?: components["parameters"]["CustomerGroupId"];
|
|
10606
|
+
};
|
|
9935
10607
|
path: {
|
|
9936
|
-
/** @description
|
|
9937
|
-
|
|
10608
|
+
/** @description The unique identifier of the product. Can be either the product ID or the slug. */
|
|
10609
|
+
product_id_or_slug: string;
|
|
9938
10610
|
};
|
|
9939
10611
|
cookie?: never;
|
|
9940
10612
|
};
|
|
9941
10613
|
requestBody?: never;
|
|
9942
10614
|
responses: {
|
|
9943
|
-
/** @description
|
|
10615
|
+
/** @description Success response */
|
|
9944
10616
|
200: {
|
|
9945
10617
|
headers: {
|
|
9946
10618
|
[name: string]: unknown;
|
|
9947
10619
|
};
|
|
9948
10620
|
content: {
|
|
9949
10621
|
"application/json": {
|
|
10622
|
+
/** @example Products retrieved successfully. */
|
|
9950
10623
|
message: string;
|
|
9951
10624
|
success: boolean;
|
|
9952
|
-
content:
|
|
10625
|
+
content: {
|
|
10626
|
+
product: components["schemas"]["ProductDetail"];
|
|
10627
|
+
};
|
|
9953
10628
|
};
|
|
9954
10629
|
};
|
|
9955
10630
|
};
|
|
9956
|
-
400: components["responses"]["BadRequest"];
|
|
9957
10631
|
401: components["responses"]["Unauthorized"];
|
|
9958
10632
|
404: components["responses"]["NotFound"];
|
|
9959
10633
|
};
|
|
9960
10634
|
};
|
|
9961
|
-
"pos-
|
|
10635
|
+
"pos-list-product-reviews": {
|
|
9962
10636
|
parameters: {
|
|
9963
|
-
query?:
|
|
10637
|
+
query?: {
|
|
10638
|
+
/** @description page number of pagination list */
|
|
10639
|
+
page?: components["parameters"]["pageParam"];
|
|
10640
|
+
/** @description no of rows per page */
|
|
10641
|
+
limit?: components["parameters"]["pageLimitParam"];
|
|
10642
|
+
/** @description JSON string format: {"field1":"asc", "field2":"desc"} */
|
|
10643
|
+
sort_by?: components["parameters"]["sortingParam"];
|
|
10644
|
+
/** @description search keyword */
|
|
10645
|
+
search?: components["parameters"]["searchKeyword"];
|
|
10646
|
+
/** @description filter review with review tag */
|
|
10647
|
+
review_tag?: string;
|
|
10648
|
+
};
|
|
9964
10649
|
header?: never;
|
|
9965
10650
|
path: {
|
|
9966
|
-
/** @description
|
|
9967
|
-
|
|
10651
|
+
/** @description id of a particular product */
|
|
10652
|
+
product_id: string;
|
|
9968
10653
|
};
|
|
9969
10654
|
cookie?: never;
|
|
9970
10655
|
};
|
|
9971
|
-
requestBody
|
|
9972
|
-
content: {
|
|
9973
|
-
"application/json": components["schemas"]["UpdateCartItem"];
|
|
9974
|
-
};
|
|
9975
|
-
};
|
|
10656
|
+
requestBody?: never;
|
|
9976
10657
|
responses: {
|
|
9977
|
-
/** @description
|
|
10658
|
+
/** @description Success response */
|
|
9978
10659
|
200: {
|
|
9979
10660
|
headers: {
|
|
9980
10661
|
[name: string]: unknown;
|
|
@@ -9984,124 +10665,129 @@ interface operations {
|
|
|
9984
10665
|
message: string;
|
|
9985
10666
|
success: boolean;
|
|
9986
10667
|
content: {
|
|
9987
|
-
|
|
10668
|
+
reviews: components["schemas"]["ProductReview"][];
|
|
10669
|
+
review_tags?: string[] | null;
|
|
10670
|
+
pagination?: components["schemas"]["Pagination"];
|
|
9988
10671
|
};
|
|
9989
10672
|
};
|
|
9990
10673
|
};
|
|
9991
10674
|
};
|
|
9992
|
-
400: components["responses"]["BadRequest"];
|
|
9993
10675
|
401: components["responses"]["Unauthorized"];
|
|
9994
10676
|
404: components["responses"]["NotFound"];
|
|
9995
10677
|
};
|
|
9996
10678
|
};
|
|
9997
|
-
"pos-
|
|
10679
|
+
"pos-list-product-variants": {
|
|
9998
10680
|
parameters: {
|
|
9999
10681
|
query?: never;
|
|
10000
|
-
header?:
|
|
10682
|
+
header?: {
|
|
10683
|
+
/** @description This param is used to determine product pricing, promotions, and subscription rates. If a valid customer group id is provided, pricing details will be retrieved accordingly. If no matching data is found for the specified customer group id, the system will fall back to the default customer group id. If no data is found for the default group either, the highest applicable price will be returned. */
|
|
10684
|
+
"x-customer-group-id"?: components["parameters"]["CustomerGroupId"];
|
|
10685
|
+
};
|
|
10001
10686
|
path: {
|
|
10002
|
-
/** @description
|
|
10003
|
-
|
|
10687
|
+
/** @description ID of a particular product */
|
|
10688
|
+
product_id: string;
|
|
10004
10689
|
};
|
|
10005
10690
|
cookie?: never;
|
|
10006
10691
|
};
|
|
10007
|
-
requestBody
|
|
10008
|
-
content: {
|
|
10009
|
-
"application/json": {
|
|
10010
|
-
/** @example 1000 */
|
|
10011
|
-
loyalty_point_redeemed: number;
|
|
10012
|
-
};
|
|
10013
|
-
};
|
|
10014
|
-
};
|
|
10692
|
+
requestBody?: never;
|
|
10015
10693
|
responses: {
|
|
10016
|
-
/** @description
|
|
10694
|
+
/** @description Success response */
|
|
10017
10695
|
200: {
|
|
10018
10696
|
headers: {
|
|
10019
10697
|
[name: string]: unknown;
|
|
10020
10698
|
};
|
|
10021
10699
|
content: {
|
|
10022
10700
|
"application/json": {
|
|
10701
|
+
/** @example Products retrieved successfully. */
|
|
10023
10702
|
message: string;
|
|
10024
10703
|
success: boolean;
|
|
10025
10704
|
content: {
|
|
10026
|
-
|
|
10705
|
+
variants: components["schemas"]["Variant"][];
|
|
10027
10706
|
};
|
|
10028
10707
|
};
|
|
10029
10708
|
};
|
|
10030
10709
|
};
|
|
10031
|
-
400: components["responses"]["BadRequest"];
|
|
10032
10710
|
401: components["responses"]["Unauthorized"];
|
|
10711
|
+
404: components["responses"]["NotFound"];
|
|
10033
10712
|
};
|
|
10034
10713
|
};
|
|
10035
|
-
"pos-
|
|
10714
|
+
"pos-get-variant-detail": {
|
|
10036
10715
|
parameters: {
|
|
10037
10716
|
query?: never;
|
|
10038
|
-
header?:
|
|
10717
|
+
header?: {
|
|
10718
|
+
/** @description This param is used to determine product pricing, promotions, and subscription rates. If a valid customer group id is provided, pricing details will be retrieved accordingly. If no matching data is found for the specified customer group id, the system will fall back to the default customer group id. If no data is found for the default group either, the highest applicable price will be returned. */
|
|
10719
|
+
"x-customer-group-id"?: components["parameters"]["CustomerGroupId"];
|
|
10720
|
+
};
|
|
10039
10721
|
path: {
|
|
10040
|
-
/** @description
|
|
10041
|
-
|
|
10722
|
+
/** @description product id */
|
|
10723
|
+
product_id: string;
|
|
10724
|
+
/** @description variant id */
|
|
10725
|
+
variant_id: string;
|
|
10042
10726
|
};
|
|
10043
10727
|
cookie?: never;
|
|
10044
10728
|
};
|
|
10045
10729
|
requestBody?: never;
|
|
10046
10730
|
responses: {
|
|
10047
|
-
/** @description
|
|
10731
|
+
/** @description Success response */
|
|
10048
10732
|
200: {
|
|
10049
10733
|
headers: {
|
|
10050
10734
|
[name: string]: unknown;
|
|
10051
10735
|
};
|
|
10052
10736
|
content: {
|
|
10053
10737
|
"application/json": {
|
|
10738
|
+
/** @example Products retrieved successfully. */
|
|
10054
10739
|
message: string;
|
|
10055
10740
|
success: boolean;
|
|
10056
10741
|
content: {
|
|
10057
|
-
|
|
10742
|
+
variant: components["schemas"]["VariantDetail"];
|
|
10058
10743
|
};
|
|
10059
10744
|
};
|
|
10060
10745
|
};
|
|
10061
10746
|
};
|
|
10062
|
-
400: components["responses"]["BadRequest"];
|
|
10063
10747
|
401: components["responses"]["Unauthorized"];
|
|
10064
|
-
|
|
10065
|
-
404: {
|
|
10066
|
-
headers: {
|
|
10067
|
-
[name: string]: unknown;
|
|
10068
|
-
};
|
|
10069
|
-
content?: never;
|
|
10070
|
-
};
|
|
10748
|
+
404: components["responses"]["NotFound"];
|
|
10071
10749
|
};
|
|
10072
10750
|
};
|
|
10073
|
-
"
|
|
10751
|
+
"pos-list-skus": {
|
|
10074
10752
|
parameters: {
|
|
10075
|
-
query?:
|
|
10076
|
-
|
|
10077
|
-
|
|
10078
|
-
/** @description
|
|
10079
|
-
|
|
10753
|
+
query?: {
|
|
10754
|
+
/** @description page number of pagination list */
|
|
10755
|
+
page?: components["parameters"]["pageParam"];
|
|
10756
|
+
/** @description no of rows per page */
|
|
10757
|
+
limit?: components["parameters"]["pageLimitParam"];
|
|
10758
|
+
/** @description JSON string format: {"field1":"asc", "field2":"desc"} */
|
|
10759
|
+
sort_by?: components["parameters"]["sortingParam"];
|
|
10760
|
+
/** @description filter sku by categories */
|
|
10761
|
+
category_id?: string[];
|
|
10762
|
+
/** @description array of sku */
|
|
10763
|
+
sku?: string[];
|
|
10080
10764
|
};
|
|
10081
|
-
|
|
10082
|
-
|
|
10083
|
-
|
|
10084
|
-
content: {
|
|
10085
|
-
"application/json": components["schemas"]["PosUpdateCustomerWithId"] | components["schemas"]["PosUpdateCustomerWithPhone"] | components["schemas"]["PosUpdateCustomerWithEmail"];
|
|
10765
|
+
header?: {
|
|
10766
|
+
/** @description This param is used to determine product pricing, promotions, and subscription rates. If a valid customer group id is provided, pricing details will be retrieved accordingly. If no matching data is found for the specified customer group id, the system will fall back to the default customer group id. If no data is found for the default group either, the highest applicable price will be returned. */
|
|
10767
|
+
"x-customer-group-id"?: components["parameters"]["CustomerGroupId"];
|
|
10086
10768
|
};
|
|
10769
|
+
path?: never;
|
|
10770
|
+
cookie?: never;
|
|
10087
10771
|
};
|
|
10772
|
+
requestBody?: never;
|
|
10088
10773
|
responses: {
|
|
10089
|
-
/** @description
|
|
10774
|
+
/** @description Success response */
|
|
10090
10775
|
200: {
|
|
10091
10776
|
headers: {
|
|
10092
10777
|
[name: string]: unknown;
|
|
10093
10778
|
};
|
|
10094
10779
|
content: {
|
|
10095
10780
|
"application/json": {
|
|
10096
|
-
|
|
10097
|
-
|
|
10098
|
-
|
|
10099
|
-
|
|
10781
|
+
/** @example SKUs retrieved successfully. */
|
|
10782
|
+
message: string;
|
|
10783
|
+
success: boolean;
|
|
10784
|
+
content: {
|
|
10785
|
+
readonly skus: components["schemas"]["Item"][];
|
|
10786
|
+
pagination: components["schemas"]["Pagination"];
|
|
10100
10787
|
};
|
|
10101
10788
|
};
|
|
10102
10789
|
};
|
|
10103
10790
|
};
|
|
10104
|
-
400: components["responses"]["BadRequest"];
|
|
10105
10791
|
401: components["responses"]["Unauthorized"];
|
|
10106
10792
|
404: components["responses"]["NotFound"];
|
|
10107
10793
|
};
|
|
@@ -10244,8 +10930,8 @@ interface operations {
|
|
|
10244
10930
|
"application/json": {
|
|
10245
10931
|
message: string;
|
|
10246
10932
|
success: boolean;
|
|
10247
|
-
content
|
|
10248
|
-
is_serviceable
|
|
10933
|
+
content: {
|
|
10934
|
+
is_serviceable: boolean;
|
|
10249
10935
|
};
|
|
10250
10936
|
};
|
|
10251
10937
|
};
|
|
@@ -11023,6 +11709,13 @@ declare class BaseAPIClient<TPaths extends Record<string, any>, THeaders extends
|
|
|
11023
11709
|
* @returns Current default headers
|
|
11024
11710
|
*/
|
|
11025
11711
|
getDefaultHeaders(): THeaders | undefined;
|
|
11712
|
+
/**
|
|
11713
|
+
* Add middleware to the client
|
|
11714
|
+
* This allows SDK extensions to add custom middleware like authentication
|
|
11715
|
+
*
|
|
11716
|
+
* @param middleware - Middleware to add to the client
|
|
11717
|
+
*/
|
|
11718
|
+
use(middleware: any): void;
|
|
11026
11719
|
}
|
|
11027
11720
|
//#endregion
|
|
11028
11721
|
//#region src/utils/url.d.ts
|
|
@@ -11780,6 +12473,7 @@ type LoginPosDeviceWithPhoneBody = NonNullable<paths['/pos/auth/login/phone']['p
|
|
|
11780
12473
|
type LoginPosDeviceWithWhatsappResponse = paths['/pos/auth/login/whatsapp']['post']['responses'][200]['content']['application/json'];
|
|
11781
12474
|
type LoginPosDeviceWithWhatsappContent = LoginPosDeviceWithWhatsappResponse['content'];
|
|
11782
12475
|
type LoginPosDeviceWithWhatsappBody = NonNullable<paths['/pos/auth/login/whatsapp']['post']['requestBody']>['content']['application/json'];
|
|
12476
|
+
type LogoutFromPosDeviceResponse = paths['/pos/auth/logout']['post']['responses'][200]['content']['application/json'];
|
|
11783
12477
|
type PairPosDeviceResponse = paths['/pos/auth/pair-device']['post']['responses'][200]['content']['application/json'];
|
|
11784
12478
|
type PairPosDeviceContent = PairPosDeviceResponse['content'];
|
|
11785
12479
|
type PairPosDeviceBody = NonNullable<paths['/pos/auth/pair-device']['post']['requestBody']>['content']['application/json'];
|
|
@@ -11852,6 +12546,49 @@ type UpdatePosCartCustomerResponse = paths['/pos/carts/{id}/update-customer']['p
|
|
|
11852
12546
|
type UpdatePosCartCustomerContent = UpdatePosCartCustomerResponse['content'];
|
|
11853
12547
|
type UpdatePosCartCustomerPathParams = paths['/pos/carts/{id}/update-customer']['post']['parameters']['path'];
|
|
11854
12548
|
type UpdatePosCartCustomerBody = NonNullable<paths['/pos/carts/{id}/update-customer']['post']['requestBody']>['content']['application/json'];
|
|
12549
|
+
type PosListCategoriesResponse = paths['/pos/catalog/categories']['get']['responses'][200]['content']['application/json'];
|
|
12550
|
+
type PosListCategoriesContent = PosListCategoriesResponse['content'];
|
|
12551
|
+
type PosListCategoriesQuery = paths['/pos/catalog/categories']['get']['parameters']['query'];
|
|
12552
|
+
type PosListProductsResponse = paths['/pos/catalog/products']['get']['responses'][200]['content']['application/json'];
|
|
12553
|
+
type PosListProductsContent = PosListProductsResponse['content'];
|
|
12554
|
+
type PosListProductsQuery = paths['/pos/catalog/products']['get']['parameters']['query'];
|
|
12555
|
+
type PosListProductsHeaderParams = paths['/pos/catalog/products']['get']['parameters']['header'];
|
|
12556
|
+
type PosListCrosssellProductsResponse = paths['/pos/catalog/products/cross-sell']['get']['responses'][200]['content']['application/json'];
|
|
12557
|
+
type PosListCrosssellProductsContent = PosListCrosssellProductsResponse['content'];
|
|
12558
|
+
type PosListCrosssellProductsQuery = paths['/pos/catalog/products/cross-sell']['get']['parameters']['query'];
|
|
12559
|
+
type PosListCrosssellProductsHeaderParams = paths['/pos/catalog/products/cross-sell']['get']['parameters']['header'];
|
|
12560
|
+
type PosSearchProductsResponse = paths['/pos/catalog/products/search']['post']['responses'][200]['content']['application/json'];
|
|
12561
|
+
type PosSearchProductsContent = PosSearchProductsResponse['content'];
|
|
12562
|
+
type PosSearchProductsHeaderParams = paths['/pos/catalog/products/search']['post']['parameters']['header'];
|
|
12563
|
+
type PosSearchProductsBody = NonNullable<paths['/pos/catalog/products/search']['post']['requestBody']>['content']['application/json'];
|
|
12564
|
+
type PosListSimilarProductsResponse = paths['/pos/catalog/products/similar']['get']['responses'][200]['content']['application/json'];
|
|
12565
|
+
type PosListSimilarProductsContent = PosListSimilarProductsResponse['content'];
|
|
12566
|
+
type PosListSimilarProductsQuery = paths['/pos/catalog/products/similar']['get']['parameters']['query'];
|
|
12567
|
+
type PosListSimilarProductsHeaderParams = paths['/pos/catalog/products/similar']['get']['parameters']['header'];
|
|
12568
|
+
type PosListUpsellProductsResponse = paths['/pos/catalog/products/up-sell']['get']['responses'][200]['content']['application/json'];
|
|
12569
|
+
type PosListUpsellProductsContent = PosListUpsellProductsResponse['content'];
|
|
12570
|
+
type PosListUpsellProductsQuery = paths['/pos/catalog/products/up-sell']['get']['parameters']['query'];
|
|
12571
|
+
type PosListUpsellProductsHeaderParams = paths['/pos/catalog/products/up-sell']['get']['parameters']['header'];
|
|
12572
|
+
type PosGetProductDetailResponse = paths['/pos/catalog/products/{product_id_or_slug}']['get']['responses'][200]['content']['application/json'];
|
|
12573
|
+
type PosGetProductDetailContent = PosGetProductDetailResponse['content'];
|
|
12574
|
+
type PosGetProductDetailPathParams = paths['/pos/catalog/products/{product_id_or_slug}']['get']['parameters']['path'];
|
|
12575
|
+
type PosGetProductDetailHeaderParams = paths['/pos/catalog/products/{product_id_or_slug}']['get']['parameters']['header'];
|
|
12576
|
+
type PosListProductReviewsResponse = paths['/pos/catalog/products/{product_id}/reviews']['get']['responses'][200]['content']['application/json'];
|
|
12577
|
+
type PosListProductReviewsContent = PosListProductReviewsResponse['content'];
|
|
12578
|
+
type PosListProductReviewsQuery = paths['/pos/catalog/products/{product_id}/reviews']['get']['parameters']['query'];
|
|
12579
|
+
type PosListProductReviewsPathParams = paths['/pos/catalog/products/{product_id}/reviews']['get']['parameters']['path'];
|
|
12580
|
+
type PosListProductVariantsResponse = paths['/pos/catalog/products/{product_id}/variants']['get']['responses'][200]['content']['application/json'];
|
|
12581
|
+
type PosListProductVariantsContent = PosListProductVariantsResponse['content'];
|
|
12582
|
+
type PosListProductVariantsPathParams = paths['/pos/catalog/products/{product_id}/variants']['get']['parameters']['path'];
|
|
12583
|
+
type PosListProductVariantsHeaderParams = paths['/pos/catalog/products/{product_id}/variants']['get']['parameters']['header'];
|
|
12584
|
+
type PosGetVariantDetailResponse = paths['/pos/catalog/products/{product_id}/variants/{variant_id}']['get']['responses'][200]['content']['application/json'];
|
|
12585
|
+
type PosGetVariantDetailContent = PosGetVariantDetailResponse['content'];
|
|
12586
|
+
type PosGetVariantDetailPathParams = paths['/pos/catalog/products/{product_id}/variants/{variant_id}']['get']['parameters']['path'];
|
|
12587
|
+
type PosGetVariantDetailHeaderParams = paths['/pos/catalog/products/{product_id}/variants/{variant_id}']['get']['parameters']['header'];
|
|
12588
|
+
type PosListSkusResponse = paths['/pos/catalog/skus']['get']['responses'][200]['content']['application/json'];
|
|
12589
|
+
type PosListSkusContent = PosListSkusResponse['content'];
|
|
12590
|
+
type PosListSkusQuery = paths['/pos/catalog/skus']['get']['parameters']['query'];
|
|
12591
|
+
type PosListSkusHeaderParams = paths['/pos/catalog/skus']['get']['parameters']['header'];
|
|
11855
12592
|
type GetPosFulfillmentOptionsResponse = paths['/pos/fulfillment-options']['post']['responses'][200]['content']['application/json'];
|
|
11856
12593
|
type GetPosFulfillmentOptionsContent = GetPosFulfillmentOptionsResponse['content'];
|
|
11857
12594
|
type GetPosFulfillmentOptionsBody = NonNullable<paths['/pos/fulfillment-options']['post']['requestBody']>['content']['application/json'];
|
|
@@ -12285,10 +13022,10 @@ declare class CatalogClient extends StorefrontAPIClient {
|
|
|
12285
13022
|
* if (error) {
|
|
12286
13023
|
* console.error("Failed to get cross-sell products:", error.message);
|
|
12287
13024
|
* } else {
|
|
12288
|
-
* console.log("Cross-sell products found:", data.
|
|
12289
|
-
* console.log("Pagination:", data.
|
|
13025
|
+
* console.log("Cross-sell products found:", data.products.length);
|
|
13026
|
+
* console.log("Pagination:", data.pagination);
|
|
12290
13027
|
*
|
|
12291
|
-
* data.
|
|
13028
|
+
* data.products.forEach(product => {
|
|
12292
13029
|
* console.log(`Product: ${product.name} - ${product.price}`);
|
|
12293
13030
|
* });
|
|
12294
13031
|
* }
|
|
@@ -12331,10 +13068,10 @@ declare class CatalogClient extends StorefrontAPIClient {
|
|
|
12331
13068
|
* if (error) {
|
|
12332
13069
|
* console.error("Failed to get up-sell products:", error.message);
|
|
12333
13070
|
* } else {
|
|
12334
|
-
* console.log("Up-sell products found:", data.
|
|
12335
|
-
* console.log("Pagination:", data.
|
|
13071
|
+
* console.log("Up-sell products found:", data.products.length);
|
|
13072
|
+
* console.log("Pagination:", data.pagination);
|
|
12336
13073
|
*
|
|
12337
|
-
* data.
|
|
13074
|
+
* data.products.forEach(product => {
|
|
12338
13075
|
* console.log(`Up-sell: ${product.name} - ${product.price}`);
|
|
12339
13076
|
* });
|
|
12340
13077
|
* }
|
|
@@ -12377,10 +13114,10 @@ declare class CatalogClient extends StorefrontAPIClient {
|
|
|
12377
13114
|
* if (error) {
|
|
12378
13115
|
* console.error("Failed to get similar products:", error.message);
|
|
12379
13116
|
* } else {
|
|
12380
|
-
* console.log("Similar products found:", data.
|
|
12381
|
-
* console.log("Pagination:", data.
|
|
13117
|
+
* console.log("Similar products found:", data.products.length);
|
|
13118
|
+
* console.log("Pagination:", data.pagination);
|
|
12382
13119
|
*
|
|
12383
|
-
* data.
|
|
13120
|
+
* data.products.forEach(product => {
|
|
12384
13121
|
* console.log(`Similar: ${product.name} - ${product.price}`);
|
|
12385
13122
|
* });
|
|
12386
13123
|
* }
|
|
@@ -12443,8 +13180,8 @@ declare class CartClient extends StorefrontAPIClient {
|
|
|
12443
13180
|
* console.error("Failed to get cart:", error.message);
|
|
12444
13181
|
* } else {
|
|
12445
13182
|
* const cart = data.cart;
|
|
12446
|
-
* console.log("Cart total:", cart.
|
|
12447
|
-
* console.log("Items count:", cart.
|
|
13183
|
+
* console.log("Cart total:", cart.grand_total);
|
|
13184
|
+
* console.log("Items count:", cart.cart_items.length);
|
|
12448
13185
|
* }
|
|
12449
13186
|
* ```
|
|
12450
13187
|
*/
|
|
@@ -12489,7 +13226,7 @@ declare class CartClient extends StorefrontAPIClient {
|
|
|
12489
13226
|
* if (error) {
|
|
12490
13227
|
* console.error("Failed to update cart:", error.message);
|
|
12491
13228
|
* } else {
|
|
12492
|
-
* console.log("Cart updated:", data.cart.
|
|
13229
|
+
* console.log("Cart updated:", data.cart.cart_items.length);
|
|
12493
13230
|
* }
|
|
12494
13231
|
*
|
|
12495
13232
|
* // Remove item from cart (set quantity to 0)
|
|
@@ -12623,7 +13360,7 @@ declare class CartClient extends StorefrontAPIClient {
|
|
|
12623
13360
|
* if (error) {
|
|
12624
13361
|
* console.error("Failed to apply coupon:", error.message);
|
|
12625
13362
|
* } else {
|
|
12626
|
-
* console.log("Coupon applied, new total:", data.cart.
|
|
13363
|
+
* console.log("Coupon applied, new total:", data.cart.grand_total);
|
|
12627
13364
|
* console.log("Discount amount:", data.cart.coupon_discount_amount);
|
|
12628
13365
|
* }
|
|
12629
13366
|
* ```
|
|
@@ -12643,7 +13380,7 @@ declare class CartClient extends StorefrontAPIClient {
|
|
|
12643
13380
|
* if (error) {
|
|
12644
13381
|
* console.error("Failed to remove coupon:", error.message);
|
|
12645
13382
|
* } else {
|
|
12646
|
-
* console.log("Coupon removed, new total:", data.cart.
|
|
13383
|
+
* console.log("Coupon removed, new total:", data.cart.grand_total);
|
|
12647
13384
|
* }
|
|
12648
13385
|
* ```
|
|
12649
13386
|
*/
|
|
@@ -12658,14 +13395,14 @@ declare class CartClient extends StorefrontAPIClient {
|
|
|
12658
13395
|
* ```typescript
|
|
12659
13396
|
* const { data, error } = await sdk.cart.redeemLoyaltyPoints(
|
|
12660
13397
|
* { id: "01H9CART12345ABCDE" },
|
|
12661
|
-
* {
|
|
13398
|
+
* { loyalty_point_redeemed: 500 }
|
|
12662
13399
|
* );
|
|
12663
13400
|
*
|
|
12664
13401
|
* if (error) {
|
|
12665
13402
|
* console.error("Failed to redeem loyalty points:", error.message);
|
|
12666
13403
|
* } else {
|
|
12667
|
-
* console.log("Points redeemed, new total:", data.cart.
|
|
12668
|
-
* console.log("Points
|
|
13404
|
+
* console.log("Points redeemed, new total:", data.cart.grand_total);
|
|
13405
|
+
* console.log("Points redeemed:", data.cart.loyalty_points_redeemed);
|
|
12669
13406
|
* }
|
|
12670
13407
|
* ```
|
|
12671
13408
|
*/
|
|
@@ -12684,7 +13421,7 @@ declare class CartClient extends StorefrontAPIClient {
|
|
|
12684
13421
|
* if (error) {
|
|
12685
13422
|
* console.error("Failed to remove loyalty points:", error.message);
|
|
12686
13423
|
* } else {
|
|
12687
|
-
* console.log("Loyalty points removed, new total:", data.cart.
|
|
13424
|
+
* console.log("Loyalty points removed, new total:", data.cart.grand_total);
|
|
12688
13425
|
* }
|
|
12689
13426
|
* ```
|
|
12690
13427
|
*/
|
|
@@ -12724,14 +13461,14 @@ declare class CartClient extends StorefrontAPIClient {
|
|
|
12724
13461
|
* ```typescript
|
|
12725
13462
|
* const { data, error } = await sdk.cart.redeemCreditBalance(
|
|
12726
13463
|
* { id: "01H9CART12345ABCDE" },
|
|
12727
|
-
* {
|
|
13464
|
+
* { credit_balance_used: 250.00 }
|
|
12728
13465
|
* );
|
|
12729
13466
|
*
|
|
12730
13467
|
* if (error) {
|
|
12731
13468
|
* console.error("Failed to redeem credit balance:", error.message);
|
|
12732
13469
|
* } else {
|
|
12733
|
-
* console.log("Credit applied, new total:", data.cart.
|
|
12734
|
-
* console.log("Credit
|
|
13470
|
+
* console.log("Credit applied, new total:", data.cart.grand_total);
|
|
13471
|
+
* console.log("Credit used:", data.cart.credit_balance_used);
|
|
12735
13472
|
* }
|
|
12736
13473
|
* ```
|
|
12737
13474
|
*/
|
|
@@ -12750,7 +13487,7 @@ declare class CartClient extends StorefrontAPIClient {
|
|
|
12750
13487
|
* if (error) {
|
|
12751
13488
|
* console.error("Failed to remove credit balance:", error.message);
|
|
12752
13489
|
* } else {
|
|
12753
|
-
* console.log("Credit balance removed, new total:", data.cart.
|
|
13490
|
+
* console.log("Credit balance removed, new total:", data.cart.grand_total);
|
|
12754
13491
|
* }
|
|
12755
13492
|
* ```
|
|
12756
13493
|
*/
|
|
@@ -13583,9 +14320,9 @@ declare class OrderClient extends StorefrontAPIClient {
|
|
|
13583
14320
|
* if (error) {
|
|
13584
14321
|
* console.error("Failed to get order details:", error.message);
|
|
13585
14322
|
* } else {
|
|
13586
|
-
* console.log("Order details:", data.
|
|
13587
|
-
* console.log("Order status:", data.
|
|
13588
|
-
* console.log("Total amount:", data.
|
|
14323
|
+
* console.log("Order details:", data.order);
|
|
14324
|
+
* console.log("Order status:", data.order.status);
|
|
14325
|
+
* console.log("Total amount:", data.order.grand_total);
|
|
13589
14326
|
* }
|
|
13590
14327
|
* ```
|
|
13591
14328
|
*/
|
|
@@ -13624,9 +14361,9 @@ declare class OrderClient extends StorefrontAPIClient {
|
|
|
13624
14361
|
* if (error) {
|
|
13625
14362
|
* console.error("Failed to create order:", error.message);
|
|
13626
14363
|
* } else {
|
|
13627
|
-
* console.log("Order created:", data.
|
|
13628
|
-
* console.log("Payment required:", data.
|
|
13629
|
-
* console.log("Payment info:", data.
|
|
14364
|
+
* console.log("Order created:", data.order.id);
|
|
14365
|
+
* console.log("Payment required:", data.payment_required);
|
|
14366
|
+
* console.log("Payment info:", data.payment_info);
|
|
13630
14367
|
* }
|
|
13631
14368
|
* ```
|
|
13632
14369
|
*/
|
|
@@ -13655,10 +14392,10 @@ declare class OrderClient extends StorefrontAPIClient {
|
|
|
13655
14392
|
* if (error) {
|
|
13656
14393
|
* console.error("Failed to list orders:", error.message);
|
|
13657
14394
|
* } else {
|
|
13658
|
-
* console.log("Orders found:", data.
|
|
13659
|
-
* console.log("Pagination:", data.
|
|
14395
|
+
* console.log("Orders found:", data.orders?.length || 0);
|
|
14396
|
+
* console.log("Pagination:", data.pagination);
|
|
13660
14397
|
*
|
|
13661
|
-
* data.
|
|
14398
|
+
* data.orders?.forEach(order => {
|
|
13662
14399
|
* console.log(`Order ${order.order_number}: ${order.status}`);
|
|
13663
14400
|
* });
|
|
13664
14401
|
* }
|
|
@@ -13677,10 +14414,10 @@ declare class OrderClient extends StorefrontAPIClient {
|
|
|
13677
14414
|
* if (error) {
|
|
13678
14415
|
* console.error("Failed to get payment status:", error.message);
|
|
13679
14416
|
* } else {
|
|
13680
|
-
* console.log("Payment status:", data.
|
|
13681
|
-
* console.log("Amount paid:", data.
|
|
13682
|
-
* console.log("Amount unpaid:", data.
|
|
13683
|
-
* console.log("Retry available:", data.
|
|
14417
|
+
* console.log("Payment status:", data.status);
|
|
14418
|
+
* console.log("Amount paid:", data.amount_paid);
|
|
14419
|
+
* console.log("Amount unpaid:", data.amount_unpaid);
|
|
14420
|
+
* console.log("Retry available:", data.is_retry_available);
|
|
13684
14421
|
* }
|
|
13685
14422
|
* ```
|
|
13686
14423
|
*/
|
|
@@ -13699,9 +14436,9 @@ declare class OrderClient extends StorefrontAPIClient {
|
|
|
13699
14436
|
* if (error) {
|
|
13700
14437
|
* console.error("Failed to get order shipments:", error.message);
|
|
13701
14438
|
* } else {
|
|
13702
|
-
* console.log("Shipments found:", data.
|
|
14439
|
+
* console.log("Shipments found:", data.shipments?.length || 0);
|
|
13703
14440
|
*
|
|
13704
|
-
* data.
|
|
14441
|
+
* data.shipments?.forEach(shipment => {
|
|
13705
14442
|
* console.log(`Shipment ${shipment.id}: ${shipment.status}`);
|
|
13706
14443
|
* console.log("Tracking number:", shipment.tracking_number);
|
|
13707
14444
|
* console.log("Carrier:", shipment.carrier);
|
|
@@ -13724,9 +14461,9 @@ declare class OrderClient extends StorefrontAPIClient {
|
|
|
13724
14461
|
* if (error) {
|
|
13725
14462
|
* console.error("Failed to get order payments:", error.message);
|
|
13726
14463
|
* } else {
|
|
13727
|
-
* console.log("Payments found:", data.
|
|
14464
|
+
* console.log("Payments found:", data.payments?.length || 0);
|
|
13728
14465
|
*
|
|
13729
|
-
* data.
|
|
14466
|
+
* data.payments?.forEach(payment => {
|
|
13730
14467
|
* console.log(`Payment ${payment.id}: ${payment.status}`);
|
|
13731
14468
|
* console.log("Amount:", payment.amount);
|
|
13732
14469
|
* console.log("Gateway:", payment.payment_gateway);
|
|
@@ -13750,13 +14487,13 @@ declare class OrderClient extends StorefrontAPIClient {
|
|
|
13750
14487
|
* if (error) {
|
|
13751
14488
|
* console.error("Failed to get order refunds:", error.message);
|
|
13752
14489
|
* } else {
|
|
13753
|
-
* console.log("Refunds found:", data.
|
|
14490
|
+
* console.log("Refunds found:", data.refunds?.length || 0);
|
|
13754
14491
|
*
|
|
13755
|
-
* data.
|
|
14492
|
+
* data.refunds?.forEach(refund => {
|
|
13756
14493
|
* console.log(`Refund ${refund.id}: ${refund.status}`);
|
|
13757
|
-
* console.log("Amount:", refund.
|
|
13758
|
-
* console.log("Reason:", refund.
|
|
13759
|
-
* console.log("Processed at:", refund.
|
|
14494
|
+
* console.log("Amount:", refund.refund_amount);
|
|
14495
|
+
* console.log("Reason:", refund.refund_remarks);
|
|
14496
|
+
* console.log("Processed at:", refund.refund_date);
|
|
13760
14497
|
* });
|
|
13761
14498
|
* }
|
|
13762
14499
|
* ```
|
|
@@ -13783,8 +14520,8 @@ declare class OrderClient extends StorefrontAPIClient {
|
|
|
13783
14520
|
* console.error("Failed to cancel order:", error.message);
|
|
13784
14521
|
* } else {
|
|
13785
14522
|
* console.log("Order cancelled successfully");
|
|
13786
|
-
* console.log("Updated order status:", data.
|
|
13787
|
-
* console.log("Cancellation reason:", data.
|
|
14523
|
+
* console.log("Updated order status:", data.order?.status);
|
|
14524
|
+
* console.log("Cancellation reason:", data.order?.cancellation_reason);
|
|
13788
14525
|
* }
|
|
13789
14526
|
* ```
|
|
13790
14527
|
*/
|
|
@@ -13827,8 +14564,8 @@ declare class OrderClient extends StorefrontAPIClient {
|
|
|
13827
14564
|
* console.error("Failed to retry payment:", error.message);
|
|
13828
14565
|
* } else {
|
|
13829
14566
|
* console.log("Payment retry initiated");
|
|
13830
|
-
* console.log("Payment info:", data.
|
|
13831
|
-
* console.log("Transaction ID:", data.
|
|
14567
|
+
* console.log("Payment info:", data.payment_info);
|
|
14568
|
+
* console.log("Transaction ID:", data.payment_info.transaction_id);
|
|
13832
14569
|
* }
|
|
13833
14570
|
* ```
|
|
13834
14571
|
*/
|
|
@@ -13855,10 +14592,10 @@ declare class ShippingClient extends StorefrontAPIClient {
|
|
|
13855
14592
|
* if (error) {
|
|
13856
14593
|
* console.error("Failed to get shipping methods:", error.message);
|
|
13857
14594
|
* } else {
|
|
13858
|
-
* console.log("Is serviceable:", data.
|
|
13859
|
-
* console.log("Available shipping methods:", data.
|
|
14595
|
+
* console.log("Is serviceable:", data.is_serviceable);
|
|
14596
|
+
* console.log("Available shipping methods:", data.shipping_methods?.length || 0);
|
|
13860
14597
|
*
|
|
13861
|
-
* data.
|
|
14598
|
+
* data.shipping_methods?.forEach(method => {
|
|
13862
14599
|
* console.log(`Method: ${method.name} (${method.shipping_type})`);
|
|
13863
14600
|
* console.log(`Shipping cost: ${method.shipping_amount}`);
|
|
13864
14601
|
* console.log(`Estimated delivery: ${method.estimated_delivery_days} days`);
|
|
@@ -13886,9 +14623,9 @@ declare class ShippingClient extends StorefrontAPIClient {
|
|
|
13886
14623
|
* if (error) {
|
|
13887
14624
|
* console.error("Failed to check pincode serviceability:", error.message);
|
|
13888
14625
|
* } else {
|
|
13889
|
-
* console.log("Pincode serviceable:", data.
|
|
14626
|
+
* console.log("Pincode serviceable:", data.is_serviceable);
|
|
13890
14627
|
*
|
|
13891
|
-
* if (data.
|
|
14628
|
+
* if (data.is_serviceable) {
|
|
13892
14629
|
* console.log("Delivery is available to this pincode");
|
|
13893
14630
|
* } else {
|
|
13894
14631
|
* console.log("Delivery is not available to this pincode");
|
|
@@ -14630,5 +15367,5 @@ declare class StorefrontSDK {
|
|
|
14630
15367
|
getDefaultHeaders(): SupportedDefaultHeaders | undefined;
|
|
14631
15368
|
}
|
|
14632
15369
|
//#endregion
|
|
14633
|
-
export { AcceleratedRewardCouponPromotion, AcceleratedRewardRule, AddCardBody, AddCardContent, AddCardResponse, AddProfileImageContent, AddProfileImageFormData, AddProfileImagePathParams, AddProfileImageResponse, AddToWishlistBody, AddToWishlistContent, AddToWishlistPathParams, AddToWishlistResponse, AdditionalProductDetails, AnalyticsEvent, AnonymousUser, ApiErrorResponse, ApiResult, ApplicableCoupon, ApplicablePromotion, AppliedCoupon, AppliedPromotion, ApplyCouponBody, ApplyCouponContent, ApplyCouponPathParams, ApplyCouponResponse, AssociatedOption, AuthClient, AutoScaleBasedOnAmount, AutoScaleBasedOnQuantity, BankTransfer, BaseAPIClient, BaseSDKOptions, BooleanAttribute, Brand, BrowserTokenStorage, Business, BuyXGetYCouponPromotion, BuyXGetYRule, BuyXGetYRuleBasedOnAmount, BuyXGetYRuleBasedOnQuantity, CancelOrderBody, CancelOrderContent, CancelOrderPathParams, CancelOrderResponse, CardPayment, Cart, CartBasedServiceabilityCheck, CartClient, CartItem, CatalogClient, Category, ChangePasswordBody, ChangePasswordContent, ChangePasswordResponse, CheckPincodeServiceabilityContent, CheckPincodeServiceabilityPathParams, CheckPincodeServiceabilityResponse, CheckVerificationStatusBody, CheckVerificationStatusContent, CheckVerificationStatusResponse, CollectInStore, CollectInStoreFulfillment, ColorAttribute, ColorOption, CookieTokenStorage, type CookieTokenStorageOptions, Country, CountryState, Coupon, CouponPromotionCommonDetail, CouponType, CreateAddressBody, CreateAddressContent, CreateAddressPathParams, CreateAddressResponse, CreateCartAddressBody, CreateCartAddressContent, CreateCartAddressPathParams, CreateCartAddressResponse, CreateCartBody, CreateCartContent, CreateCartResponse, CreateCustomSubscription, CreateCustomer, CreateCustomerBody, CreateCustomerContent, CreateCustomerResponse, CreateDocumentContent, CreateDocumentFormData, CreateDocumentPathParams, CreateDocumentResponse, CreateJuspayCustomerBody, CreateJuspayCustomerContent, CreateJuspayCustomerResponse, CreateJuspayOrderBody, CreateJuspayOrderContent, CreateJuspayOrderResponse, CreateNotificationPreferencesBody, CreateNotificationPreferencesContent, CreateNotificationPreferencesPathParams, CreateNotificationPreferencesResponse, CreateOrderBody, CreateOrderContent, CreateOrderResponse, CreateOrderReturn, CreateOrderReturnBody, CreateOrderReturnContent, CreateOrderReturnPathParams, CreateOrderReturnResponse, CreatePosOrderBody, CreatePosOrderContent, CreatePosOrderResponse, CreateProductReviewFormData, CreateProductReviewPathParams, CreateProductReviewResponse, CreateReview, CreateStandardSubscription, CreateSubscription, CreateSubscriptionBody, CreateSubscriptionContent, CreateSubscriptionResponse, Currency, CustomSlabsBasedOnAmount, CustomSlabsBasedOnQuantity, CustomerAddress, CustomerClient, CustomerDetail, CustomerGroup, CustomerLoyalty, CustomerReadyForReview, CustomerReview, DateAttribute, DeactivateUserPathParams, DeactivateUserResponse, DebugLogger, DebugLoggerFn, DeleteAddressPathParams, DeleteAddressResponse, DeleteCartPathParams, DeleteCartResponse, DeleteDocumentPathParams, DeleteDocumentResponse, DeleteFromWishlistBody, DeleteFromWishlistContent, DeleteFromWishlistPathParams, DeleteFromWishlistResponse, DeleteUserCartPathParams, DeleteUserCartResponse, DeliveryFulfillment, DiscountBasedPromotion, DiscountCouponPromotion, DiscountRule, Document, Environment, EvaluateCouponsContent, EvaluateCouponsPathParams, EvaluateCouponsResponse, EvaluatePromotionsContent, EvaluatePromotionsPathParams, EvaluatePromotionsResponse, FixedAmountDiscountRule, FixedPriceCouponPromotion, FixedPricePromotion, FixedPriceRule, FixedPriceRuleBasedAmount, FixedPriceRuleBasedQuantity, ForgotPasswordBody, ForgotPasswordContent, ForgotPasswordResponse, FreeGoodCouponPromotion, FreeGoodsPromotion, FreeGoodsRule, FreeShipingCouponPromotion, FulfillmentPreference, GenerateHashBody, GenerateHashContent, GenerateHashResponse, GenerateOtpBody, GenerateOtpContent, GenerateOtpResponse, GenerateOtpWithEmail, GenerateOtpWithPhone, GetAddressDetailContent, GetAddressDetailPathParams, GetAddressDetailResponse, GetAnonymousTokenContent, GetAnonymousTokenResponse, GetCartContent, GetCartPathParams, GetCartResponse, GetConfigContent, GetConfigResponse, GetCustomerDetailContent, GetCustomerDetailPathParams, GetCustomerDetailResponse, GetDocumentContent, GetDocumentPathParams, GetDocumentResponse, GetFulfillmentOptionsBody, GetFulfillmentOptionsContent, GetFulfillmentOptionsResponse, GetJuspayCustomerContent, GetJuspayCustomerPathParams, GetJuspayCustomerResponse, GetLoyaltyDetailsContent, GetLoyaltyDetailsPathParams, GetLoyaltyDetailsResponse, GetNotificationPreferencesContent, GetNotificationPreferencesPathParams, GetNotificationPreferencesResponse, GetOrderDetailContent, GetOrderDetailPathParams, GetOrderDetailResponse, GetOrderReturnDetailContent, GetOrderReturnDetailPathParams, GetOrderReturnDetailResponse, GetPaymentStatusContent, GetPaymentStatusPathParams, GetPaymentStatusResponse, GetPosFulfillmentOptionsBody, GetPosFulfillmentOptionsContent, GetPosFulfillmentOptionsResponse, GetProductDetailContent, GetProductDetailHeaderParams, GetProductDetailPathParams, GetProductDetailResponse, GetProfileImageContent, GetProfileImagePathParams, GetProfileImageResponse, GetShippingMethodsBody, GetShippingMethodsContent, GetShippingMethodsResponse, GetSubscriptionContent, GetSubscriptionPathParams, GetSubscriptionResponse, GetUserCartContent, GetUserCartPathParams, GetUserCartResponse, GetUserDetailContent, GetUserDetailPathParams, GetUserDetailResponse, GetVariantDetailContent, GetVariantDetailHeaderParams, GetVariantDetailPathParams, GetVariantDetailResponse, GetWishlistContent, GetWishlistPathParams, GetWishlistResponse, GstinDetail, HeaderConfig, HelpersClient, InapplicableCoupon, InapplicablePromotion, Item, JuspayCardPayload, JuspayCreateCardResponse, JuspayCreateCustomerPayload, JuspayCreateOrderPayload, JuspayCustomer, JuspayOrder, JuspayPaymentGatewayParams, JuspayPaymentInfo, JuspayPaymentMethod, JuspaySavedCard, KycDocument, KycDocumentConfig, ListAddressesContent, ListAddressesPathParams, ListAddressesQuery, ListAddressesResponse, ListCategoriesContent, ListCategoriesQuery, ListCategoriesResponse, ListCountriesContent, ListCountriesResponse, ListCountryPincodesContent, ListCountryPincodesPathParams, ListCountryPincodesQuery, ListCountryPincodesResponse, ListCountryStatesContent, ListCountryStatesPathParams, ListCountryStatesResponse, ListCouponsContent, ListCouponsHeaderParams, ListCouponsResponse, ListCrosssellProductsContent, ListCrosssellProductsHeaderParams, ListCrosssellProductsQuery, ListCrosssellProductsResponse, ListDocumentsContent, ListDocumentsPathParams, ListDocumentsResponse, ListKycDocumentContent, ListKycDocumentResponse, ListLoyaltyActivitiesContent, ListLoyaltyActivitiesPathParams, ListLoyaltyActivitiesQuery, ListLoyaltyActivitiesResponse, ListOrderPaymentsContent, ListOrderPaymentsPathParams, ListOrderPaymentsResponse, ListOrderRefundsContent, ListOrderRefundsPathParams, ListOrderRefundsResponse, ListOrderShipmentsContent, ListOrderShipmentsPathParams, ListOrderShipmentsResponse, ListOrdersContent, ListOrdersQuery, ListOrdersResponse, ListPaymentMethodsContent, ListPaymentMethodsQuery, ListPaymentMethodsResponse, ListProductReviewsContent, ListProductReviewsPathParams, ListProductReviewsQuery, ListProductReviewsResponse, ListProductVariantsContent, ListProductVariantsHeaderParams, ListProductVariantsPathParams, ListProductVariantsResponse, ListProductsContent, ListProductsHeaderParams, ListProductsQuery, ListProductsResponse, ListPromotionsContent, ListPromotionsHeaderParams, ListPromotionsResponse, ListReturnsContent, ListReturnsResponse, ListSavedCardsContent, ListSavedCardsQuery, ListSavedCardsResponse, ListSimilarProductsContent, ListSimilarProductsHeaderParams, ListSimilarProductsQuery, ListSimilarProductsResponse, ListSkusContent, ListSkusHeaderParams, ListSkusQuery, ListSkusResponse, ListSubscriptionsContent, ListSubscriptionsResponse, ListUpsellProductsContent, ListUpsellProductsHeaderParams, ListUpsellProductsQuery, ListUpsellProductsResponse, ListUserReviewsContent, ListUserReviewsPathParams, ListUserReviewsResponse, LoginPosDeviceWithEmailBody, LoginPosDeviceWithEmailContent, LoginPosDeviceWithEmailResponse, LoginPosDeviceWithPhoneBody, LoginPosDeviceWithPhoneContent, LoginPosDeviceWithPhoneResponse, LoginPosDeviceWithWhatsappBody, LoginPosDeviceWithWhatsappContent, LoginPosDeviceWithWhatsappResponse, LoginWithEmailBody, LoginWithEmailContent, LoginWithEmailResponse, LoginWithPasswordBody, LoginWithPasswordContent, LoginWithPasswordResponse, LoginWithPhoneBody, LoginWithPhoneContent, LoginWithPhoneResponse, LoginWithWhatsappBody, LoginWithWhatsappContent, LoginWithWhatsappResponse, LogoutContent, LogoutResponse, LoyaltyPointActivity, MeasurementUnit, MemoryTokenStorage, MultiSelectAttribute, NetbankingPayment, NotificationChannelPreferences, NotificationPreferences, NumberAttribute, Order, OrderClient, OrderDetail, OrderItem, OrderList, OrderPayment, OrderRefund, OrderReturn, OrderReturnItem, OrderShipment, Pagination, PairPosDeviceBody, PairPosDeviceContent, PairPosDeviceResponse, PanDetail, PauseSubscription, PaymentGateway, PaymentGatewayParams, PaymentInfo, PayuCardPayload, PayuCreateCardResponse, PayuPaymentGatewayParams, PayuPaymentInfo, PayuPaymentMethod, PayuSavedCard, PercentageDiscountRule, Pincode, PincodeServiceability, PosApplyCouponBody, PosApplyCouponContent, PosApplyCouponPathParams, PosApplyCouponResponse, PosCreateCartAddressBody, PosCreateCartAddressContent, PosCreateCartAddressPathParams, PosCreateCartAddressResponse, PosCreateCartBody, PosCreateCartContent, PosCreateCartResponse, PosDeleteCartPathParams, PosDeleteCartResponse, PosDevice, PosEvaluateCouponsContent, PosEvaluateCouponsPathParams, PosEvaluateCouponsResponse, PosEvaluatePromotionsContent, PosEvaluatePromotionsPathParams, PosEvaluatePromotionsResponse, PosGetCartContent, PosGetCartPathParams, PosGetCartResponse, PosListCouponsContent, PosListCouponsHeaderParams, PosListCouponsResponse, PosListPromotionsContent, PosListPromotionsHeaderParams, PosListPromotionsResponse, PosRedeemCreditBalanceBody, PosRedeemCreditBalanceContent, PosRedeemCreditBalancePathParams, PosRedeemCreditBalanceResponse, PosRedeemGiftCardBody, PosRedeemGiftCardContent, PosRedeemGiftCardPathParams, PosRedeemGiftCardResponse, PosRedeemLoyaltyPointsBody, PosRedeemLoyaltyPointsContent, PosRedeemLoyaltyPointsPathParams, PosRedeemLoyaltyPointsResponse, PosRemoveCouponContent, PosRemoveCouponPathParams, PosRemoveCouponResponse, PosRemoveCreditBalanceContent, PosRemoveCreditBalancePathParams, PosRemoveCreditBalanceResponse, PosRemoveGiftCardContent, PosRemoveGiftCardPathParams, PosRemoveGiftCardResponse, PosRemoveLoyaltyPointsContent, PosRemoveLoyaltyPointsPathParams, PosRemoveLoyaltyPointsResponse, PosUpdateCartBody, PosUpdateCartContent, PosUpdateCartPathParams, PosUpdateCartResponse, PosUpdateCustomerWithEmail, PosUpdateCustomerWithId, PosUpdateCustomerWithPhone, PosUpdateFulfillmentPreferenceBody, PosUpdateFulfillmentPreferencePathParams, PosUpdateFulfillmentPreferenceResponse, PosUser, Product, ProductAttribute, ProductBundleItem, ProductCategory, ProductDetail, ProductImage, ProductPricing, ProductPromotion, ProductReview, ProductShipping, ProductSubscription, ProductVideo, Promotion, PromotionType, RedeemCreditBalanceBody, RedeemCreditBalanceContent, RedeemCreditBalancePathParams, RedeemCreditBalanceResponse, RedeemGiftCardBody, RedeemGiftCardContent, RedeemGiftCardPathParams, RedeemGiftCardResponse, RedeemLoyaltyPointsBody, RedeemLoyaltyPointsContent, RedeemLoyaltyPointsPathParams, RedeemLoyaltyPointsResponse, RefreshPosAccessTokenBody, RefreshPosAccessTokenContent, RefreshPosAccessTokenResponse, RefreshTokenBody, RefreshTokenContent, RefreshTokenResponse, RegisterWithEmailBody, RegisterWithEmailContent, RegisterWithEmailPassword, RegisterWithEmailResponse, RegisterWithPasswordBody, RegisterWithPasswordContent, RegisterWithPasswordResponse, RegisterWithPhoneBody, RegisterWithPhoneContent, RegisterWithPhonePassword, RegisterWithPhoneResponse, RegisterWithWhatsappBody, RegisterWithWhatsappContent, RegisterWithWhatsappResponse, RemoveCouponContent, RemoveCouponPathParams, RemoveCouponResponse, RemoveCreditBalanceContent, RemoveCreditBalancePathParams, RemoveCreditBalanceResponse, RemoveGiftCardContent, RemoveGiftCardPathParams, RemoveGiftCardResponse, RemoveLoyaltyPointsContent, RemoveLoyaltyPointsPathParams, RemoveLoyaltyPointsResponse, RemoveProfileImagePathParams, RemoveProfileImageResponse, ResetPasswordBody, ResetPasswordContent, ResetPasswordResponse, ResponseUtils, RetryOrderPaymentBody, RetryOrderPaymentContent, RetryOrderPaymentPathParams, RetryOrderPaymentResponse, RevokeSubscription, SearchProduct, SearchProductsBody, SearchProductsContent, SearchProductsHeaderParams, SearchProductsResponse, Seo, ShipmentItem, ShippingClient, SingleSelectAttribute, SingleSelectOption, StoreConfig, StoreConfigClient, StoreTemplate, StorefrontAPIClient, StorefrontSDK, StorefrontSDK as default, StorefrontSDKOptions, SubscribeNewsletterBody, SubscribeNewsletterResponse, Subscription, SubscriptionBehaviour, SubscriptionDetail, SubscriptionInvoiceItem, SupportedDefaultHeaders, TextAttribute, type TokenStorage, TrackAnalyticsEventBody, TrackAnalyticsEventResponse, UpdateAddressDetailBody, UpdateAddressDetailContent, UpdateAddressDetailPathParams, UpdateAddressDetailResponse, UpdateCartBody, UpdateCartContent, UpdateCartItem, UpdateCartPathParams, UpdateCartResponse, UpdateCustomer, UpdateCustomerBody, UpdateCustomerContent, UpdateCustomerPathParams, UpdateCustomerResponse, UpdateDigitalProductSubscription, UpdateDocument, UpdateDocumentContent, UpdateDocumentFormData, UpdateDocumentPathParams, UpdateDocumentResponse, UpdateFulfillmentPreferenceBody, UpdateFulfillmentPreferencePathParams, UpdateFulfillmentPreferenceResponse, UpdateNotificationPreferencesBody, UpdateNotificationPreferencesContent, UpdateNotificationPreferencesPathParams, UpdateNotificationPreferencesResponse, UpdatePhysicalProductSubscription, UpdatePosCartCustomerBody, UpdatePosCartCustomerContent, UpdatePosCartCustomerPathParams, UpdatePosCartCustomerResponse, UpdateProfileImageContent, UpdateProfileImageFormData, UpdateProfileImagePathParams, UpdateProfileImageResponse, UpdateShippingMethodBody, UpdateShippingMethodContent, UpdateShippingMethodPathParams, UpdateShippingMethodResponse, UpdateSubscriptionBody, UpdateSubscriptionContent, UpdateSubscriptionPathParams, UpdateSubscriptionResponse, UpdateUserBody, UpdateUserContent, UpdateUserPathParams, UpdateUserResponse, UpiPayment, User, type UserInfo, Variant, VariantDetail, VariantOption, VerifyDocumentBody, VerifyDocumentContent, VerifyDocumentPathParams, VerifyDocumentResponse, VerifyOtpBody, VerifyOtpContent, VerifyOtpResponse, VerifyPosLoginOtpBody, VerifyPosLoginOtpContent, VerifyPosLoginOtpResponse, VerifyVpaContent, VerifyVpaQuery, VerifyVpaResponse, VolumeBasedCouponPromotion, VolumeBasedPromotion, VolumeBasedRule, WalletPayment, type components, createDebugMiddleware, createTimeoutMiddleware, executeRequest, extractRequestBody, getPathnameFromUrl, mergeAndTransformHeaders, mergeHeaders, type operations, type paths, transformHeaders };
|
|
15370
|
+
export { AcceleratedRewardCouponPromotion, AcceleratedRewardRule, AddCardBody, AddCardContent, AddCardResponse, AddProfileImageContent, AddProfileImageFormData, AddProfileImagePathParams, AddProfileImageResponse, AddToWishlistBody, AddToWishlistContent, AddToWishlistPathParams, AddToWishlistResponse, AdditionalProductDetails, AnalyticsEvent, AnonymousUser, ApiErrorResponse, ApiResult, ApplicableCoupon, ApplicablePromotion, AppliedCoupon, AppliedPromotion, ApplyCouponBody, ApplyCouponContent, ApplyCouponPathParams, ApplyCouponResponse, AssociatedOption, AuthClient, AutoScaleBasedOnAmount, AutoScaleBasedOnQuantity, BankTransfer, BaseAPIClient, BaseSDKOptions, BooleanAttribute, Brand, BrowserTokenStorage, Business, BuyXGetYCouponPromotion, BuyXGetYRule, BuyXGetYRuleBasedOnAmount, BuyXGetYRuleBasedOnQuantity, CancelOrderBody, CancelOrderContent, CancelOrderPathParams, CancelOrderResponse, CardPayment, Cart, CartBasedServiceabilityCheck, CartClient, CartItem, CatalogClient, Category, ChangePasswordBody, ChangePasswordContent, ChangePasswordResponse, CheckPincodeServiceabilityContent, CheckPincodeServiceabilityPathParams, CheckPincodeServiceabilityResponse, CheckVerificationStatusBody, CheckVerificationStatusContent, CheckVerificationStatusResponse, CollectInStore, CollectInStoreFulfillment, ColorAttribute, ColorOption, CookieTokenStorage, type CookieTokenStorageOptions, Country, CountryState, Coupon, CouponPromotionCommonDetail, CouponType, CreateAddressBody, CreateAddressContent, CreateAddressPathParams, CreateAddressResponse, CreateCartAddressBody, CreateCartAddressContent, CreateCartAddressPathParams, CreateCartAddressResponse, CreateCartBody, CreateCartContent, CreateCartResponse, CreateCustomSubscription, CreateCustomer, CreateCustomerBody, CreateCustomerContent, CreateCustomerResponse, CreateDocumentContent, CreateDocumentFormData, CreateDocumentPathParams, CreateDocumentResponse, CreateJuspayCustomerBody, CreateJuspayCustomerContent, CreateJuspayCustomerResponse, CreateJuspayOrderBody, CreateJuspayOrderContent, CreateJuspayOrderResponse, CreateNotificationPreferencesBody, CreateNotificationPreferencesContent, CreateNotificationPreferencesPathParams, CreateNotificationPreferencesResponse, CreateOrderBody, CreateOrderContent, CreateOrderResponse, CreateOrderReturn, CreateOrderReturnBody, CreateOrderReturnContent, CreateOrderReturnPathParams, CreateOrderReturnResponse, CreatePosOrderBody, CreatePosOrderContent, CreatePosOrderResponse, CreateProductReviewFormData, CreateProductReviewPathParams, CreateProductReviewResponse, CreateReview, CreateStandardSubscription, CreateSubscription, CreateSubscriptionBody, CreateSubscriptionContent, CreateSubscriptionResponse, Currency, CustomSlabsBasedOnAmount, CustomSlabsBasedOnQuantity, CustomerAddress, CustomerClient, CustomerDetail, CustomerGroup, CustomerLoyalty, CustomerReadyForReview, CustomerReview, DateAttribute, DeactivateUserPathParams, DeactivateUserResponse, DebugLogger, DebugLoggerFn, DeleteAddressPathParams, DeleteAddressResponse, DeleteCartPathParams, DeleteCartResponse, DeleteDocumentPathParams, DeleteDocumentResponse, DeleteFromWishlistBody, DeleteFromWishlistContent, DeleteFromWishlistPathParams, DeleteFromWishlistResponse, DeleteUserCartPathParams, DeleteUserCartResponse, DeliveryFulfillment, DiscountBasedPromotion, DiscountCouponPromotion, DiscountRule, Document, Environment, EvaluateCouponsContent, EvaluateCouponsPathParams, EvaluateCouponsResponse, EvaluatePromotionsContent, EvaluatePromotionsPathParams, EvaluatePromotionsResponse, FixedAmountDiscountRule, FixedPriceCouponPromotion, FixedPricePromotion, FixedPriceRule, FixedPriceRuleBasedAmount, FixedPriceRuleBasedQuantity, ForgotPasswordBody, ForgotPasswordContent, ForgotPasswordResponse, FreeGoodCouponPromotion, FreeGoodsPromotion, FreeGoodsRule, FreeShipingCouponPromotion, FulfillmentPreference, GenerateHashBody, GenerateHashContent, GenerateHashResponse, GenerateOtpBody, GenerateOtpContent, GenerateOtpResponse, GenerateOtpWithEmail, GenerateOtpWithPhone, GetAddressDetailContent, GetAddressDetailPathParams, GetAddressDetailResponse, GetAnonymousTokenContent, GetAnonymousTokenResponse, GetCartContent, GetCartPathParams, GetCartResponse, GetConfigContent, GetConfigResponse, GetCustomerDetailContent, GetCustomerDetailPathParams, GetCustomerDetailResponse, GetDocumentContent, GetDocumentPathParams, GetDocumentResponse, GetFulfillmentOptionsBody, GetFulfillmentOptionsContent, GetFulfillmentOptionsResponse, GetJuspayCustomerContent, GetJuspayCustomerPathParams, GetJuspayCustomerResponse, GetLoyaltyDetailsContent, GetLoyaltyDetailsPathParams, GetLoyaltyDetailsResponse, GetNotificationPreferencesContent, GetNotificationPreferencesPathParams, GetNotificationPreferencesResponse, GetOrderDetailContent, GetOrderDetailPathParams, GetOrderDetailResponse, GetOrderReturnDetailContent, GetOrderReturnDetailPathParams, GetOrderReturnDetailResponse, GetPaymentStatusContent, GetPaymentStatusPathParams, GetPaymentStatusResponse, GetPosFulfillmentOptionsBody, GetPosFulfillmentOptionsContent, GetPosFulfillmentOptionsResponse, GetProductDetailContent, GetProductDetailHeaderParams, GetProductDetailPathParams, GetProductDetailResponse, GetProfileImageContent, GetProfileImagePathParams, GetProfileImageResponse, GetShippingMethodsBody, GetShippingMethodsContent, GetShippingMethodsResponse, GetSubscriptionContent, GetSubscriptionPathParams, GetSubscriptionResponse, GetUserCartContent, GetUserCartPathParams, GetUserCartResponse, GetUserDetailContent, GetUserDetailPathParams, GetUserDetailResponse, GetVariantDetailContent, GetVariantDetailHeaderParams, GetVariantDetailPathParams, GetVariantDetailResponse, GetWishlistContent, GetWishlistPathParams, GetWishlistResponse, GstinDetail, HeaderConfig, HelpersClient, InapplicableCoupon, InapplicablePromotion, Item, JuspayCardPayload, JuspayCreateCardResponse, JuspayCreateCustomerPayload, JuspayCreateOrderPayload, JuspayCustomer, JuspayOrder, JuspayPaymentGatewayParams, JuspayPaymentInfo, JuspayPaymentMethod, JuspaySavedCard, KycDocument, KycDocumentConfig, ListAddressesContent, ListAddressesPathParams, ListAddressesQuery, ListAddressesResponse, ListCategoriesContent, ListCategoriesQuery, ListCategoriesResponse, ListCountriesContent, ListCountriesResponse, ListCountryPincodesContent, ListCountryPincodesPathParams, ListCountryPincodesQuery, ListCountryPincodesResponse, ListCountryStatesContent, ListCountryStatesPathParams, ListCountryStatesResponse, ListCouponsContent, ListCouponsHeaderParams, ListCouponsResponse, ListCrosssellProductsContent, ListCrosssellProductsHeaderParams, ListCrosssellProductsQuery, ListCrosssellProductsResponse, ListDocumentsContent, ListDocumentsPathParams, ListDocumentsResponse, ListKycDocumentContent, ListKycDocumentResponse, ListLoyaltyActivitiesContent, ListLoyaltyActivitiesPathParams, ListLoyaltyActivitiesQuery, ListLoyaltyActivitiesResponse, ListOrderPaymentsContent, ListOrderPaymentsPathParams, ListOrderPaymentsResponse, ListOrderRefundsContent, ListOrderRefundsPathParams, ListOrderRefundsResponse, ListOrderShipmentsContent, ListOrderShipmentsPathParams, ListOrderShipmentsResponse, ListOrdersContent, ListOrdersQuery, ListOrdersResponse, ListPaymentMethodsContent, ListPaymentMethodsQuery, ListPaymentMethodsResponse, ListProductReviewsContent, ListProductReviewsPathParams, ListProductReviewsQuery, ListProductReviewsResponse, ListProductVariantsContent, ListProductVariantsHeaderParams, ListProductVariantsPathParams, ListProductVariantsResponse, ListProductsContent, ListProductsHeaderParams, ListProductsQuery, ListProductsResponse, ListPromotionsContent, ListPromotionsHeaderParams, ListPromotionsResponse, ListReturnsContent, ListReturnsResponse, ListSavedCardsContent, ListSavedCardsQuery, ListSavedCardsResponse, ListSimilarProductsContent, ListSimilarProductsHeaderParams, ListSimilarProductsQuery, ListSimilarProductsResponse, ListSkusContent, ListSkusHeaderParams, ListSkusQuery, ListSkusResponse, ListSubscriptionsContent, ListSubscriptionsResponse, ListUpsellProductsContent, ListUpsellProductsHeaderParams, ListUpsellProductsQuery, ListUpsellProductsResponse, ListUserReviewsContent, ListUserReviewsPathParams, ListUserReviewsResponse, LoginPosDeviceWithEmailBody, LoginPosDeviceWithEmailContent, LoginPosDeviceWithEmailResponse, LoginPosDeviceWithPhoneBody, LoginPosDeviceWithPhoneContent, LoginPosDeviceWithPhoneResponse, LoginPosDeviceWithWhatsappBody, LoginPosDeviceWithWhatsappContent, LoginPosDeviceWithWhatsappResponse, LoginWithEmailBody, LoginWithEmailContent, LoginWithEmailResponse, LoginWithPasswordBody, LoginWithPasswordContent, LoginWithPasswordResponse, LoginWithPhoneBody, LoginWithPhoneContent, LoginWithPhoneResponse, LoginWithWhatsappBody, LoginWithWhatsappContent, LoginWithWhatsappResponse, LogoutContent, LogoutFromPosDeviceResponse, LogoutResponse, LoyaltyPointActivity, MeasurementUnit, MemoryTokenStorage, MultiSelectAttribute, NetbankingPayment, NotificationChannelPreferences, NotificationPreferences, NumberAttribute, Order, OrderClient, OrderDetail, OrderItem, OrderList, OrderPayment, OrderRefund, OrderReturn, OrderReturnItem, OrderShipment, Pagination, PairPosDeviceBody, PairPosDeviceContent, PairPosDeviceResponse, PanDetail, PauseSubscription, PaymentGateway, PaymentGatewayParams, PaymentInfo, PayuCardPayload, PayuCreateCardResponse, PayuPaymentGatewayParams, PayuPaymentInfo, PayuPaymentMethod, PayuSavedCard, PercentageDiscountRule, Pincode, PincodeServiceability, PosApplyCouponBody, PosApplyCouponContent, PosApplyCouponPathParams, PosApplyCouponResponse, PosCreateCartAddressBody, PosCreateCartAddressContent, PosCreateCartAddressPathParams, PosCreateCartAddressResponse, PosCreateCartBody, PosCreateCartContent, PosCreateCartResponse, PosDeleteCartPathParams, PosDeleteCartResponse, PosDevice, PosEvaluateCouponsContent, PosEvaluateCouponsPathParams, PosEvaluateCouponsResponse, PosEvaluatePromotionsContent, PosEvaluatePromotionsPathParams, PosEvaluatePromotionsResponse, PosGetCartContent, PosGetCartPathParams, PosGetCartResponse, PosGetProductDetailContent, PosGetProductDetailHeaderParams, PosGetProductDetailPathParams, PosGetProductDetailResponse, PosGetVariantDetailContent, PosGetVariantDetailHeaderParams, PosGetVariantDetailPathParams, PosGetVariantDetailResponse, PosListCategoriesContent, PosListCategoriesQuery, PosListCategoriesResponse, PosListCouponsContent, PosListCouponsHeaderParams, PosListCouponsResponse, PosListCrosssellProductsContent, PosListCrosssellProductsHeaderParams, PosListCrosssellProductsQuery, PosListCrosssellProductsResponse, PosListProductReviewsContent, PosListProductReviewsPathParams, PosListProductReviewsQuery, PosListProductReviewsResponse, PosListProductVariantsContent, PosListProductVariantsHeaderParams, PosListProductVariantsPathParams, PosListProductVariantsResponse, PosListProductsContent, PosListProductsHeaderParams, PosListProductsQuery, PosListProductsResponse, PosListPromotionsContent, PosListPromotionsHeaderParams, PosListPromotionsResponse, PosListSimilarProductsContent, PosListSimilarProductsHeaderParams, PosListSimilarProductsQuery, PosListSimilarProductsResponse, PosListSkusContent, PosListSkusHeaderParams, PosListSkusQuery, PosListSkusResponse, PosListUpsellProductsContent, PosListUpsellProductsHeaderParams, PosListUpsellProductsQuery, PosListUpsellProductsResponse, PosRedeemCreditBalanceBody, PosRedeemCreditBalanceContent, PosRedeemCreditBalancePathParams, PosRedeemCreditBalanceResponse, PosRedeemGiftCardBody, PosRedeemGiftCardContent, PosRedeemGiftCardPathParams, PosRedeemGiftCardResponse, PosRedeemLoyaltyPointsBody, PosRedeemLoyaltyPointsContent, PosRedeemLoyaltyPointsPathParams, PosRedeemLoyaltyPointsResponse, PosRemoveCouponContent, PosRemoveCouponPathParams, PosRemoveCouponResponse, PosRemoveCreditBalanceContent, PosRemoveCreditBalancePathParams, PosRemoveCreditBalanceResponse, PosRemoveGiftCardContent, PosRemoveGiftCardPathParams, PosRemoveGiftCardResponse, PosRemoveLoyaltyPointsContent, PosRemoveLoyaltyPointsPathParams, PosRemoveLoyaltyPointsResponse, PosSearchProductsBody, PosSearchProductsContent, PosSearchProductsHeaderParams, PosSearchProductsResponse, PosUpdateCartBody, PosUpdateCartContent, PosUpdateCartPathParams, PosUpdateCartResponse, PosUpdateCustomerWithEmail, PosUpdateCustomerWithId, PosUpdateCustomerWithPhone, PosUpdateFulfillmentPreferenceBody, PosUpdateFulfillmentPreferencePathParams, PosUpdateFulfillmentPreferenceResponse, PosUser, Product, ProductAttribute, ProductBundleItem, ProductCategory, ProductDetail, ProductImage, ProductPricing, ProductPromotion, ProductReview, ProductShipping, ProductSubscription, ProductVideo, Promotion, PromotionType, RedeemCreditBalanceBody, RedeemCreditBalanceContent, RedeemCreditBalancePathParams, RedeemCreditBalanceResponse, RedeemGiftCardBody, RedeemGiftCardContent, RedeemGiftCardPathParams, RedeemGiftCardResponse, RedeemLoyaltyPointsBody, RedeemLoyaltyPointsContent, RedeemLoyaltyPointsPathParams, RedeemLoyaltyPointsResponse, RefreshPosAccessTokenBody, RefreshPosAccessTokenContent, RefreshPosAccessTokenResponse, RefreshTokenBody, RefreshTokenContent, RefreshTokenResponse, RegisterWithEmailBody, RegisterWithEmailContent, RegisterWithEmailPassword, RegisterWithEmailResponse, RegisterWithPasswordBody, RegisterWithPasswordContent, RegisterWithPasswordResponse, RegisterWithPhoneBody, RegisterWithPhoneContent, RegisterWithPhonePassword, RegisterWithPhoneResponse, RegisterWithWhatsappBody, RegisterWithWhatsappContent, RegisterWithWhatsappResponse, RemoveCouponContent, RemoveCouponPathParams, RemoveCouponResponse, RemoveCreditBalanceContent, RemoveCreditBalancePathParams, RemoveCreditBalanceResponse, RemoveGiftCardContent, RemoveGiftCardPathParams, RemoveGiftCardResponse, RemoveLoyaltyPointsContent, RemoveLoyaltyPointsPathParams, RemoveLoyaltyPointsResponse, RemoveProfileImagePathParams, RemoveProfileImageResponse, ResetPasswordBody, ResetPasswordContent, ResetPasswordResponse, ResponseUtils, RetryOrderPaymentBody, RetryOrderPaymentContent, RetryOrderPaymentPathParams, RetryOrderPaymentResponse, RevokeSubscription, SearchProduct, SearchProductsBody, SearchProductsContent, SearchProductsHeaderParams, SearchProductsResponse, Seo, ShipmentItem, ShippingClient, SingleSelectAttribute, SingleSelectOption, StoreConfig, StoreConfigClient, StoreTemplate, StorefrontAPIClient, StorefrontSDK, StorefrontSDK as default, StorefrontSDKOptions, SubscribeNewsletterBody, SubscribeNewsletterResponse, Subscription, SubscriptionBehaviour, SubscriptionDetail, SubscriptionInvoiceItem, SupportedDefaultHeaders, TextAttribute, type TokenStorage, TrackAnalyticsEventBody, TrackAnalyticsEventResponse, UpdateAddressDetailBody, UpdateAddressDetailContent, UpdateAddressDetailPathParams, UpdateAddressDetailResponse, UpdateCartBody, UpdateCartContent, UpdateCartItem, UpdateCartPathParams, UpdateCartResponse, UpdateCustomer, UpdateCustomerBody, UpdateCustomerContent, UpdateCustomerPathParams, UpdateCustomerResponse, UpdateDigitalProductSubscription, UpdateDocument, UpdateDocumentContent, UpdateDocumentFormData, UpdateDocumentPathParams, UpdateDocumentResponse, UpdateFulfillmentPreferenceBody, UpdateFulfillmentPreferencePathParams, UpdateFulfillmentPreferenceResponse, UpdateNotificationPreferencesBody, UpdateNotificationPreferencesContent, UpdateNotificationPreferencesPathParams, UpdateNotificationPreferencesResponse, UpdatePhysicalProductSubscription, UpdatePosCartCustomerBody, UpdatePosCartCustomerContent, UpdatePosCartCustomerPathParams, UpdatePosCartCustomerResponse, UpdateProfileImageContent, UpdateProfileImageFormData, UpdateProfileImagePathParams, UpdateProfileImageResponse, UpdateShippingMethodBody, UpdateShippingMethodContent, UpdateShippingMethodPathParams, UpdateShippingMethodResponse, UpdateSubscriptionBody, UpdateSubscriptionContent, UpdateSubscriptionPathParams, UpdateSubscriptionResponse, UpdateUserBody, UpdateUserContent, UpdateUserPathParams, UpdateUserResponse, UpiPayment, User, type UserInfo, Variant, VariantDetail, VariantOption, VerifyDocumentBody, VerifyDocumentContent, VerifyDocumentPathParams, VerifyDocumentResponse, VerifyOtpBody, VerifyOtpContent, VerifyOtpResponse, VerifyPosLoginOtpBody, VerifyPosLoginOtpContent, VerifyPosLoginOtpResponse, VerifyVpaContent, VerifyVpaQuery, VerifyVpaResponse, VolumeBasedCouponPromotion, VolumeBasedPromotion, VolumeBasedRule, WalletPayment, type components, createDebugMiddleware, createTimeoutMiddleware, executeRequest, extractRequestBody, getPathnameFromUrl, mergeAndTransformHeaders, mergeHeaders, type operations, type paths, transformHeaders };
|
|
14634
15371
|
//# sourceMappingURL=index.d.ts.map
|