@commercengine/storefront-sdk 0.4.6 → 0.4.7

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.cts CHANGED
@@ -350,6 +350,29 @@ interface paths {
350
350
  patch?: never;
351
351
  trace?: never;
352
352
  };
353
+ "/carts/{id}/update-customer": {
354
+ parameters: {
355
+ query?: never;
356
+ header?: never;
357
+ path: {
358
+ /** @description Cart ID */
359
+ id: string;
360
+ };
361
+ cookie?: never;
362
+ };
363
+ get?: never;
364
+ put?: never;
365
+ /**
366
+ * Update cart customer (S2S)
367
+ * @description Link customer to the specified cart.
368
+ */
369
+ post: operations["update-cart-customer"];
370
+ delete?: never;
371
+ options?: never;
372
+ head?: never;
373
+ patch?: never;
374
+ trace?: never;
375
+ };
353
376
  "/carts/{id}/shipping-method": {
354
377
  parameters: {
355
378
  query?: never;
@@ -569,6 +592,98 @@ interface paths {
569
592
  patch?: never;
570
593
  trace?: never;
571
594
  };
595
+ "/carts/{id}/evaluate-promotions": {
596
+ parameters: {
597
+ query?: never;
598
+ header?: never;
599
+ path: {
600
+ /** @description Cart Id */
601
+ id: string;
602
+ };
603
+ cookie?: never;
604
+ };
605
+ /**
606
+ * Evaluate promotions
607
+ * @description Evaluate applicable & inapplicable promotions based on the specified cart.
608
+ */
609
+ get: operations["evaluate-promotions"];
610
+ put?: never;
611
+ post?: never;
612
+ delete?: never;
613
+ options?: never;
614
+ head?: never;
615
+ patch?: never;
616
+ trace?: never;
617
+ };
618
+ "/carts/{id}/evaluate-coupons": {
619
+ parameters: {
620
+ query?: never;
621
+ header?: never;
622
+ path: {
623
+ /** @description Cart Id */
624
+ id: string;
625
+ };
626
+ cookie?: never;
627
+ };
628
+ /**
629
+ * Evaluate coupons
630
+ * @description Evaluate applicable & inapplicable coupons based on the specified cart.
631
+ */
632
+ get: operations["evaluate-coupons"];
633
+ put?: never;
634
+ post?: never;
635
+ delete?: never;
636
+ options?: never;
637
+ head?: never;
638
+ patch?: never;
639
+ trace?: never;
640
+ };
641
+ "/pos/carts/{id}/evaluate-promotions": {
642
+ parameters: {
643
+ query?: never;
644
+ header?: never;
645
+ path: {
646
+ /** @description Cart Id */
647
+ id: string;
648
+ };
649
+ cookie?: never;
650
+ };
651
+ /**
652
+ * Evaluate promotions
653
+ * @description Evaluate applicable & inapplicable promotions based on the specified cart.
654
+ */
655
+ get: operations["evaluate-pos-promotions"];
656
+ put?: never;
657
+ post?: never;
658
+ delete?: never;
659
+ options?: never;
660
+ head?: never;
661
+ patch?: never;
662
+ trace?: never;
663
+ };
664
+ "/pos/carts/{id}/evaluate-coupons": {
665
+ parameters: {
666
+ query?: never;
667
+ header?: never;
668
+ path: {
669
+ /** @description Cart Id */
670
+ id: string;
671
+ };
672
+ cookie?: never;
673
+ };
674
+ /**
675
+ * Evaluate coupons
676
+ * @description Evaluate applicable & inapplicable coupons based on the specified cart.
677
+ */
678
+ get: operations["evaluate-pos-coupons"];
679
+ put?: never;
680
+ post?: never;
681
+ delete?: never;
682
+ options?: never;
683
+ head?: never;
684
+ patch?: never;
685
+ trace?: never;
686
+ };
572
687
  "/customers/{id}": {
573
688
  parameters: {
574
689
  query?: never;
@@ -1841,124 +1956,359 @@ interface paths {
1841
1956
  patch?: never;
1842
1957
  trace?: never;
1843
1958
  };
1844
- }
1845
- interface components {
1846
- schemas: {
1847
- /** Product */
1848
- Product: {
1849
- /** @description The ID of the product */
1850
- id: string;
1851
- sku: string | null;
1852
- name: string;
1853
- slug: string;
1854
- short_description: string | null;
1855
- /** @enum {string} */
1856
- product_type: "physical" | "digital" | "bundle";
1857
- readonly active: boolean;
1858
- /** @description Indicates whether the product has stock available */
1859
- readonly stock_available: boolean;
1860
- /** @description Indicates whether the item is being fulfilled as a backorder. When true, the item is not currently in stock and will ship later once inventory is available. This may result in the order being split into multiple shipments, with delays for the backordered portion. */
1861
- backorder?: boolean;
1862
- /** @description Indicates whether this item is associated with any active (product-specific) coupons */
1863
- readonly on_offer: boolean;
1864
- /** @description Indicates whether the product has any subscription plans avaialble */
1865
- readonly on_subscription: boolean;
1866
- /** @description Indicates whether the product is currently on promotion. When true, the `ProductPromotion` object will contain details of the promotion */
1867
- readonly on_promotion: boolean;
1868
- /** @description Indicates whether the product has variants */
1869
- readonly has_variant: boolean;
1870
- tags: string[] | null;
1871
- category_ids: string[];
1872
- categories: components["schemas"]["Category"][];
1873
- /** Format: double */
1874
- reviews_rating_sum: number;
1875
- reviews_count: number;
1876
- attributes: components["schemas"]["ProductAttribute"][];
1877
- pricing: components["schemas"]["ProductPricing"];
1878
- /** @description this will be used if has_variant is true, to auto set default values. */
1879
- variant_options: components["schemas"]["VariantOption"][] | null;
1880
- promotion: components["schemas"]["ProductPromotion"];
1881
- images: components["schemas"]["ProductImage"][];
1882
- subscription: components["schemas"]["ProductSubscription"][];
1883
- variants: components["schemas"]["Variant"][];
1884
- bundle_items: components["schemas"]["ProductBundleItem"];
1959
+ "/pos/auth/pair-device": {
1960
+ parameters: {
1961
+ query?: never;
1962
+ header?: never;
1963
+ path?: never;
1964
+ cookie?: never;
1885
1965
  };
1886
- ProductAttribute: components["schemas"]["ColorAttribute"] | components["schemas"]["SingleSelectAttribute"] | components["schemas"]["MultiSelectAttribute"] | components["schemas"]["TextAttribute"] | components["schemas"]["DateAttribute"] | components["schemas"]["NumberAttribute"] | components["schemas"]["BooleanAttribute"];
1966
+ get?: never;
1967
+ put?: never;
1887
1968
  /**
1888
- * ColorAttribute
1889
- * @description Attribute for colors
1969
+ * Pair POS device
1970
+ * @description Pair POS device
1890
1971
  */
1891
- ColorAttribute: {
1892
- id: string;
1893
- name: string;
1894
- /** @description A lookup safe version of the name that is lowercased and spaces are replaced with underscores. For instance, if name is `Product Type`, key will be `product_type` */
1895
- key: string;
1896
- /**
1897
- * @description discriminator enum property added by openapi-typescript
1898
- * @enum {string}
1899
- */
1900
- type: "color";
1901
- value: {
1902
- name: string;
1903
- /**
1904
- * Format: color-hex
1905
- * @description The hex code of the color (e.g., #000000).
1906
- */
1907
- hexcode: string;
1908
- }[];
1972
+ post: operations["pair-pos-device"];
1973
+ delete?: never;
1974
+ options?: never;
1975
+ head?: never;
1976
+ patch?: never;
1977
+ trace?: never;
1978
+ };
1979
+ "/pos/auth/login/phone": {
1980
+ parameters: {
1981
+ query?: never;
1982
+ header?: never;
1983
+ path?: never;
1984
+ cookie?: never;
1909
1985
  };
1986
+ get?: never;
1987
+ put?: never;
1910
1988
  /**
1911
- * SingleSelectAttribute
1912
- * @description Attribute for single-select values
1989
+ * Login with phone
1990
+ * @description Login to POS device using phone.
1913
1991
  */
1914
- SingleSelectAttribute: {
1915
- id: string;
1916
- name: string;
1917
- /** @description A lookup safe version of the name that is lowercased and spaces are replaced with underscores. For instance, if name is `Product Type`, key will be `product_type` */
1918
- key: string;
1919
- /**
1920
- * @description discriminator enum property added by openapi-typescript
1921
- * @enum {string}
1922
- */
1923
- type: "single-select";
1924
- /** @description For single-select attributes */
1925
- value: string;
1992
+ post: operations["login-pos-device-with-phone"];
1993
+ delete?: never;
1994
+ options?: never;
1995
+ head?: never;
1996
+ patch?: never;
1997
+ trace?: never;
1998
+ };
1999
+ "/pos/auth/login/whatsapp": {
2000
+ parameters: {
2001
+ query?: never;
2002
+ header?: never;
2003
+ path?: never;
2004
+ cookie?: never;
1926
2005
  };
2006
+ get?: never;
2007
+ put?: never;
1927
2008
  /**
1928
- * MultiSelectAttribute
1929
- * @description Attribute for multi-select values
2009
+ * Login with whatsapp
2010
+ * @description Login to POS device using whatsapp.
1930
2011
  */
1931
- MultiSelectAttribute: {
1932
- id: string;
1933
- name: string;
1934
- /** @description A lookup safe version of the name that is lowercased and spaces are replaced with underscores. For instance, if name is `Product Type`, key will be `product_type` */
1935
- key: string;
1936
- /**
1937
- * @description discriminator enum property added by openapi-typescript
1938
- * @enum {string}
1939
- */
1940
- type: "multi-select";
1941
- /** @description For multi-select attributes */
1942
- value: string[];
2012
+ post: operations["login-pos-device-with-whatsapp"];
2013
+ delete?: never;
2014
+ options?: never;
2015
+ head?: never;
2016
+ patch?: never;
2017
+ trace?: never;
2018
+ };
2019
+ "/pos/auth/login/email": {
2020
+ parameters: {
2021
+ query?: never;
2022
+ header?: never;
2023
+ path?: never;
2024
+ cookie?: never;
1943
2025
  };
2026
+ get?: never;
2027
+ put?: never;
1944
2028
  /**
1945
- * TextAttribute
1946
- * @description Attribute for text values
2029
+ * Login with email
2030
+ * @description Login to POS device using email.
1947
2031
  */
1948
- TextAttribute: {
1949
- id: string;
1950
- name: string;
1951
- /** @description A lookup safe version of the name that is lowercased and spaces are replaced with underscores. For instance, if name is `Product Type`, key will be `product_type` */
1952
- key: string;
1953
- /**
1954
- * @description discriminator enum property added by openapi-typescript
1955
- * @enum {string}
1956
- */
1957
- type: "text";
1958
- /** @description For text attributes */
1959
- value: string;
2032
+ post: operations["login-pos-device-with-email"];
2033
+ delete?: never;
2034
+ options?: never;
2035
+ head?: never;
2036
+ patch?: never;
2037
+ trace?: never;
2038
+ };
2039
+ "/pos/auth/verify-otp": {
2040
+ parameters: {
2041
+ query?: never;
2042
+ header?: never;
2043
+ path?: never;
2044
+ cookie?: never;
1960
2045
  };
1961
- /**
2046
+ get?: never;
2047
+ put?: never;
2048
+ /**
2049
+ * Verify OTP
2050
+ * @description Verify POS login otp.
2051
+ */
2052
+ post: operations["verify-pos-login-otp"];
2053
+ delete?: never;
2054
+ options?: never;
2055
+ head?: never;
2056
+ patch?: never;
2057
+ trace?: never;
2058
+ };
2059
+ "/pos/auth/refresh-token": {
2060
+ parameters: {
2061
+ query?: never;
2062
+ header?: never;
2063
+ path?: never;
2064
+ cookie?: never;
2065
+ };
2066
+ get?: never;
2067
+ put?: never;
2068
+ /**
2069
+ * Refresh POS access token
2070
+ * @description Refresh POS access token
2071
+ */
2072
+ post: operations["refresh-pos-access-token"];
2073
+ delete?: never;
2074
+ options?: never;
2075
+ head?: never;
2076
+ patch?: never;
2077
+ trace?: never;
2078
+ };
2079
+ "/pos/carts": {
2080
+ parameters: {
2081
+ query?: never;
2082
+ header?: never;
2083
+ path?: never;
2084
+ cookie?: never;
2085
+ };
2086
+ get?: never;
2087
+ put?: never;
2088
+ /**
2089
+ * Create cart
2090
+ * @description Create cart from POS device
2091
+ */
2092
+ post: operations["create-pos-cart"];
2093
+ delete?: never;
2094
+ options?: never;
2095
+ head?: never;
2096
+ patch?: never;
2097
+ trace?: never;
2098
+ };
2099
+ "/pos/carts/{id}": {
2100
+ parameters: {
2101
+ query?: never;
2102
+ header?: never;
2103
+ path: {
2104
+ /** @description cart id */
2105
+ id: string;
2106
+ };
2107
+ cookie?: never;
2108
+ };
2109
+ /**
2110
+ * Retrieve cart detail
2111
+ * @description Retrieve cart detail
2112
+ */
2113
+ get: operations["get-pos-cart"];
2114
+ put?: never;
2115
+ post?: never;
2116
+ delete?: never;
2117
+ options?: never;
2118
+ head?: never;
2119
+ patch?: never;
2120
+ trace?: never;
2121
+ };
2122
+ "/pos/carts/{id}/items": {
2123
+ parameters: {
2124
+ query?: never;
2125
+ header?: never;
2126
+ path: {
2127
+ /** @description cart id */
2128
+ id: string;
2129
+ };
2130
+ cookie?: never;
2131
+ };
2132
+ get?: never;
2133
+ put?: never;
2134
+ /**
2135
+ * Add/update/delete cart item
2136
+ * @description Add/update item to cart. To delete item from cart, pass quantity = 0
2137
+ */
2138
+ post: operations["update-pos-cart"];
2139
+ delete?: never;
2140
+ options?: never;
2141
+ head?: never;
2142
+ patch?: never;
2143
+ trace?: never;
2144
+ };
2145
+ "/pos/carts/{id}/update-customer": {
2146
+ parameters: {
2147
+ query?: never;
2148
+ header?: never;
2149
+ path: {
2150
+ /** @description cart id */
2151
+ id: string;
2152
+ };
2153
+ cookie?: never;
2154
+ };
2155
+ get?: never;
2156
+ put?: never;
2157
+ /**
2158
+ * Update cart customer
2159
+ * @description Link customer to the specified cart.
2160
+ */
2161
+ post: operations["update-pos-cart-customer"];
2162
+ delete?: never;
2163
+ options?: never;
2164
+ head?: never;
2165
+ patch?: never;
2166
+ trace?: never;
2167
+ };
2168
+ "/pos/carts/{id}/address": {
2169
+ parameters: {
2170
+ query?: never;
2171
+ header?: never;
2172
+ path: {
2173
+ /** @description cart id */
2174
+ id: string;
2175
+ };
2176
+ cookie?: never;
2177
+ };
2178
+ get?: never;
2179
+ put?: never;
2180
+ /**
2181
+ * Update cart address
2182
+ * @description Updat customer address in cart if he/she choose home delivery option instead of store pickup.
2183
+ */
2184
+ post: operations["update-pos-cart-address"];
2185
+ delete?: never;
2186
+ options?: never;
2187
+ head?: never;
2188
+ patch?: never;
2189
+ trace?: never;
2190
+ };
2191
+ }
2192
+ interface components {
2193
+ schemas: {
2194
+ /** Product */
2195
+ Product: {
2196
+ /** @description The ID of the product */
2197
+ id: string;
2198
+ sku: string | null;
2199
+ name: string;
2200
+ slug: string;
2201
+ short_description: string | null;
2202
+ /**
2203
+ * @example physical
2204
+ * @enum {string}
2205
+ */
2206
+ product_type: "physical" | "digital" | "bundle";
2207
+ readonly active: boolean;
2208
+ /** @description Indicates whether the product has stock available */
2209
+ readonly stock_available: boolean;
2210
+ /** @description Indicates whether the item is being fulfilled as a backorder. When true, the item is not currently in stock and will ship later once inventory is available. This may result in the order being split into multiple shipments, with delays for the backordered portion. */
2211
+ backorder?: boolean;
2212
+ /** @description Indicates whether this item is associated with any active (product-specific) coupons */
2213
+ readonly on_offer: boolean;
2214
+ /** @description Indicates whether the product has any subscription plans avaialble */
2215
+ readonly on_subscription: boolean;
2216
+ /** @description Indicates whether the product is currently on promotion. When true, the `ProductPromotion` object will contain details of the promotion */
2217
+ readonly on_promotion: boolean;
2218
+ /** @description Indicates whether the product has variants */
2219
+ readonly has_variant: boolean;
2220
+ tags: string[] | null;
2221
+ category_ids: string[];
2222
+ categories: components["schemas"]["Category"][];
2223
+ /** Format: double */
2224
+ reviews_rating_sum: number;
2225
+ reviews_count: number;
2226
+ attributes: components["schemas"]["ProductAttribute"][];
2227
+ pricing: components["schemas"]["ProductPricing"];
2228
+ /** @description this will be used if has_variant is true, to auto set default values. */
2229
+ variant_options: components["schemas"]["VariantOption"][] | null;
2230
+ promotion: components["schemas"]["ProductPromotion"];
2231
+ images: components["schemas"]["ProductImage"][];
2232
+ subscription: components["schemas"]["ProductSubscription"][];
2233
+ variants: components["schemas"]["Variant"][];
2234
+ bundle_items: components["schemas"]["ProductBundleItem"];
2235
+ };
2236
+ ProductAttribute: components["schemas"]["ColorAttribute"] | components["schemas"]["SingleSelectAttribute"] | components["schemas"]["MultiSelectAttribute"] | components["schemas"]["TextAttribute"] | components["schemas"]["DateAttribute"] | components["schemas"]["NumberAttribute"] | components["schemas"]["BooleanAttribute"];
2237
+ /**
2238
+ * ColorAttribute
2239
+ * @description Attribute for colors
2240
+ */
2241
+ ColorAttribute: {
2242
+ id: string;
2243
+ name: string;
2244
+ /** @description A lookup safe version of the name that is lowercased and spaces are replaced with underscores. For instance, if name is `Product Type`, key will be `product_type` */
2245
+ key: string;
2246
+ /**
2247
+ * @description discriminator enum property added by openapi-typescript
2248
+ * @enum {string}
2249
+ */
2250
+ type: "color";
2251
+ value: {
2252
+ name: string;
2253
+ /**
2254
+ * Format: color-hex
2255
+ * @description The hex code of the color (e.g., #000000).
2256
+ */
2257
+ hexcode: string;
2258
+ }[];
2259
+ };
2260
+ /**
2261
+ * SingleSelectAttribute
2262
+ * @description Attribute for single-select values
2263
+ */
2264
+ SingleSelectAttribute: {
2265
+ id: string;
2266
+ name: string;
2267
+ /** @description A lookup safe version of the name that is lowercased and spaces are replaced with underscores. For instance, if name is `Product Type`, key will be `product_type` */
2268
+ key: string;
2269
+ /**
2270
+ * @description discriminator enum property added by openapi-typescript
2271
+ * @enum {string}
2272
+ */
2273
+ type: "single-select";
2274
+ /** @description For single-select attributes */
2275
+ value: string;
2276
+ };
2277
+ /**
2278
+ * MultiSelectAttribute
2279
+ * @description Attribute for multi-select values
2280
+ */
2281
+ MultiSelectAttribute: {
2282
+ id: string;
2283
+ name: string;
2284
+ /** @description A lookup safe version of the name that is lowercased and spaces are replaced with underscores. For instance, if name is `Product Type`, key will be `product_type` */
2285
+ key: string;
2286
+ /**
2287
+ * @description discriminator enum property added by openapi-typescript
2288
+ * @enum {string}
2289
+ */
2290
+ type: "multi-select";
2291
+ /** @description For multi-select attributes */
2292
+ value: string[];
2293
+ };
2294
+ /**
2295
+ * TextAttribute
2296
+ * @description Attribute for text values
2297
+ */
2298
+ TextAttribute: {
2299
+ id: string;
2300
+ name: string;
2301
+ /** @description A lookup safe version of the name that is lowercased and spaces are replaced with underscores. For instance, if name is `Product Type`, key will be `product_type` */
2302
+ key: string;
2303
+ /**
2304
+ * @description discriminator enum property added by openapi-typescript
2305
+ * @enum {string}
2306
+ */
2307
+ type: "text";
2308
+ /** @description For text attributes */
2309
+ value: string;
2310
+ };
2311
+ /**
1962
2312
  * DateAttribute
1963
2313
  * @description Attribute for date values
1964
2314
  */
@@ -2017,12 +2367,16 @@ interface components {
2017
2367
  currency: string;
2018
2368
  /**
2019
2369
  * @default GST
2370
+ * @example GST
2020
2371
  * @constant
2021
2372
  */
2022
2373
  tax_type: "GST";
2023
2374
  /** Format: double */
2024
2375
  tax_rate: number;
2025
- /** Format: double */
2376
+ /**
2377
+ * Format: double
2378
+ * @example false
2379
+ */
2026
2380
  price_including_tax: boolean;
2027
2381
  /** Format: double */
2028
2382
  listing_price: number;
@@ -2136,7 +2490,10 @@ interface components {
2136
2490
  subscription_price: number;
2137
2491
  /** @description Billing interval determines the frequency for which the customer is charged for the subscription itself. */
2138
2492
  billing_interval: number;
2139
- /** @enum {string} */
2493
+ /**
2494
+ * @example monthly
2495
+ * @enum {string}
2496
+ */
2140
2497
  billing_frequency: "weekly" | "monthly" | "annually";
2141
2498
  /** @description Optionally limit the number of times this subscription will invoice the customer. */
2142
2499
  billing_limit: number;
@@ -2144,7 +2501,10 @@ interface components {
2144
2501
  fulfill_separately: boolean;
2145
2502
  /** @description order interval defines the frequency of when the subscription sends customers the product */
2146
2503
  order_interval: number;
2147
- /** @enum {string} */
2504
+ /**
2505
+ * @example monthly
2506
+ * @enum {string}
2507
+ */
2148
2508
  order_frequency: "weekly" | "monthly" | "annully";
2149
2509
  /** @description By default this is set to unlimited, meaning the subscription will fulfill indefinitely. Changing the Limit to 10 would force the subscription to end after the tenth interval had been fulfilled. */
2150
2510
  order_limit: number;
@@ -2187,6 +2547,21 @@ interface components {
2187
2547
  /**
2188
2548
  * AssociatedOption
2189
2549
  * @description An object where each key is an option name, and the value describes the option details.
2550
+ * @example {
2551
+ * "background_color": {
2552
+ * "name": "Background Color",
2553
+ * "value": {
2554
+ * "name": "Blue",
2555
+ * "hexcode": "#0000FF"
2556
+ * },
2557
+ * "type": "color"
2558
+ * },
2559
+ * "size": {
2560
+ * "name": "Size",
2561
+ * "value": "Large",
2562
+ * "type": "single-select"
2563
+ * }
2564
+ * }
2190
2565
  */
2191
2566
  AssociatedOption: {
2192
2567
  [key: string]: components["schemas"]["ColorOption"] | components["schemas"]["SingleSelectOption"];
@@ -2234,7 +2609,10 @@ interface components {
2234
2609
  slug: string;
2235
2610
  product_name: string;
2236
2611
  variant_name: string | null;
2237
- /** @enum {string} */
2612
+ /**
2613
+ * @example physical
2614
+ * @enum {string}
2615
+ */
2238
2616
  product_type: "physical" | "digital" | "bundle";
2239
2617
  short_description: string | null;
2240
2618
  active: boolean;
@@ -2257,7 +2635,16 @@ interface components {
2257
2635
  associated_options: components["schemas"]["AssociatedOption"] | null;
2258
2636
  shipping?: components["schemas"]["ProductShipping"];
2259
2637
  };
2260
- /** @description pagination metadata structure */
2638
+ /**
2639
+ * @description pagination metadata structure
2640
+ * @example {
2641
+ * "total_records": 252,
2642
+ * "total_pages": 26,
2643
+ * "previous_page": null,
2644
+ * "next_page": 2,
2645
+ * "limit": 10
2646
+ * }
2647
+ */
2261
2648
  Pagination: {
2262
2649
  total_records: number;
2263
2650
  total_pages: number;
@@ -2309,7 +2696,10 @@ interface components {
2309
2696
  };
2310
2697
  /** VariantDetail */
2311
2698
  VariantDetail: components["schemas"]["Variant"] & {
2312
- /** @enum {string} */
2699
+ /**
2700
+ * @example physical
2701
+ * @enum {string}
2702
+ */
2313
2703
  product_type: "physical" | "digital" | "bundle";
2314
2704
  description: string | null;
2315
2705
  readonly category_ids: string[];
@@ -2355,6 +2745,7 @@ interface components {
2355
2745
  /**
2356
2746
  * Format: email
2357
2747
  * @description The email of the reviewer. Must be a valid email, or an empty string.
2748
+ * @example mr@bees.com
2358
2749
  */
2359
2750
  readonly email?: string;
2360
2751
  /**
@@ -2390,11 +2781,13 @@ interface components {
2390
2781
  /**
2391
2782
  * Format: date-time
2392
2783
  * @description The ISO 8601 date-time for when review is created.
2784
+ * @example 2023-05-25T14:15:22Z
2393
2785
  */
2394
2786
  readonly created_at?: string;
2395
2787
  /**
2396
2788
  * Format: date-time
2397
2789
  * @description The ISO 8601 date-time for when review was last modified.
2790
+ * @example 2023-05-25T14:15:22Z
2398
2791
  */
2399
2792
  readonly modified_at?: string;
2400
2793
  };
@@ -2441,11 +2834,20 @@ interface components {
2441
2834
  * @description Schema for updating a cart item, including adding, removing, or adjusting the quantity of a product or variant.
2442
2835
  */
2443
2836
  UpdateCartItem: {
2444
- /** @description The ID of the product to update in the cart. */
2837
+ /**
2838
+ * @description The ID of the product to update in the cart.
2839
+ * @example 01H9XYZ12345ABCDE
2840
+ */
2445
2841
  product_id: string;
2446
- /** @description The ID of the product variant, or null if the product has no variants. */
2842
+ /**
2843
+ * @description The ID of the product variant, or null if the product has no variants.
2844
+ * @example null
2845
+ */
2447
2846
  variant_id: string | null;
2448
- /** @description The quantity of the product to add to or update in the cart. Use `0` to remove the item from the cart. */
2847
+ /**
2848
+ * @description The quantity of the product to add to or update in the cart. Use `0` to remove the item from the cart.
2849
+ * @example 1
2850
+ */
2449
2851
  quantity: number;
2450
2852
  };
2451
2853
  /**
@@ -2457,16 +2859,6 @@ interface components {
2457
2859
  id: string;
2458
2860
  /** @description Indicates whether the cart is currently active or inactive. */
2459
2861
  active: boolean;
2460
- /**
2461
- * Format: email
2462
- * @description Email of the customer associated with the cart.
2463
- */
2464
- customer_email: string | null;
2465
- /**
2466
- * @description Phone number of the customer.
2467
- * @example +919988776655
2468
- */
2469
- customer_phone: string | null;
2470
2862
  /** @description customer note for shipping or product customization. */
2471
2863
  customer_note: string | null;
2472
2864
  /** @description Indicates if a promotion is applied or not. */
@@ -2595,7 +2987,10 @@ interface components {
2595
2987
  product_id: string;
2596
2988
  /** @description Unique identifier for the product. */
2597
2989
  variant_id: string | null;
2598
- /** @description Stock Keeping Unit, a unique identifier for the product within inventory. */
2990
+ /**
2991
+ * @description Stock Keeping Unit, a unique identifier for the product within inventory.
2992
+ * @example SKU1254
2993
+ */
2599
2994
  sku: string | null;
2600
2995
  /** @description Unique slug for the product */
2601
2996
  slug: string;
@@ -2603,7 +2998,10 @@ interface components {
2603
2998
  product_name: string;
2604
2999
  /** @description Name of the variant. */
2605
3000
  variant_name: string | null;
2606
- /** @enum {string} */
3001
+ /**
3002
+ * @example physical
3003
+ * @enum {string}
3004
+ */
2607
3005
  product_type: "physical" | "digital" | "bundle";
2608
3006
  /** @description URL pointing to the product image. */
2609
3007
  product_image_url: string;
@@ -2633,7 +3031,10 @@ interface components {
2633
3031
  * @description Discount amount due to applied coupons.
2634
3032
  */
2635
3033
  coupon_discount_amount: number;
2636
- /** Format: double */
3034
+ /**
3035
+ * Format: double
3036
+ * @example false
3037
+ */
2637
3038
  price_including_tax: boolean;
2638
3039
  /**
2639
3040
  * Format: double
@@ -2697,7 +3098,12 @@ interface components {
2697
3098
  state: string;
2698
3099
  /** @constant */
2699
3100
  country: "India";
2700
- /** @description Tax Identification Number (TIN/VAT/GSTIN) specific to the country of operation. */
3101
+ /**
3102
+ * @description Tax Identification Number (TIN/VAT/GSTIN) specific to the country of operation.
3103
+ * @example 123456789
3104
+ * @example GB123456789
3105
+ * @example IN27AAEPM0111C1ZQ
3106
+ */
2701
3107
  tax_identification_number: string | null;
2702
3108
  /** @description Use in billing & shipping details only. */
2703
3109
  business_name: string | null;
@@ -2705,8 +3111,11 @@ interface components {
2705
3111
  readonly is_email_verified: boolean;
2706
3112
  } | null;
2707
3113
  Currency: {
3114
+ /** @example Indian Rupee */
2708
3115
  name: string;
3116
+ /** @example INR */
2709
3117
  code: string;
3118
+ /** @example ₹ */
2710
3119
  symbol: string;
2711
3120
  };
2712
3121
  /** DiscountRule */
@@ -3084,8 +3493,6 @@ interface components {
3084
3493
  /** @enum {string} */
3085
3494
  payment_status?: "pending" | "success" | "failed" | "partially_paid";
3086
3495
  payment_success_date?: string | null;
3087
- customer_email?: string | null;
3088
- customer_phone?: string | null;
3089
3496
  customer_note?: string | null;
3090
3497
  is_promotion_applied?: boolean;
3091
3498
  /** Format: double */
@@ -3219,6 +3626,7 @@ interface components {
3219
3626
  coupon_discount_amount: number;
3220
3627
  /**
3221
3628
  * @default GST
3629
+ * @example GST
3222
3630
  * @constant
3223
3631
  */
3224
3632
  tax_type: "GST";
@@ -4342,7 +4750,7 @@ interface components {
4342
4750
  Brand: {
4343
4751
  /** @description brand name. it will be used in emails and other communications. */
4344
4752
  name: string;
4345
- readonly logo_url: string;
4753
+ logo_url: string | null;
4346
4754
  /** @description json object having key - value pair.
4347
4755
  *
4348
4756
  * example - {"facebook": "www.facebook.com/commecengine"} */
@@ -4483,6 +4891,73 @@ interface components {
4483
4891
  /** @enum {string} */
4484
4892
  otp_action: "register" | "reset-password" | "verify-email" | "update-email";
4485
4893
  };
4894
+ /** PosDevice */
4895
+ PosDevice: {
4896
+ readonly id?: string;
4897
+ name?: string;
4898
+ /** @enum {unknown} */
4899
+ device_type?: "POS Terminal";
4900
+ /** @description A Device ID for an app. */
4901
+ readonly external_device_id?: string;
4902
+ manufacturer?: string;
4903
+ model_number?: string;
4904
+ mac_address?: string | null;
4905
+ location_id?: string;
4906
+ readonly location_name?: string;
4907
+ };
4908
+ /** PosUser */
4909
+ PosUser: {
4910
+ id?: string;
4911
+ first_name?: string;
4912
+ last_name?: string | null;
4913
+ phone?: string;
4914
+ /** Format: email */
4915
+ email?: string;
4916
+ device?: {
4917
+ id?: string;
4918
+ name?: string;
4919
+ };
4920
+ location?: {
4921
+ id?: string;
4922
+ name?: string;
4923
+ };
4924
+ role?: {
4925
+ id?: string;
4926
+ name?: string;
4927
+ };
4928
+ };
4929
+ /** UpdateCustomerWithId */
4930
+ PosUpdateCustomerWithId: {
4931
+ customer_id: string;
4932
+ };
4933
+ /** UpdateCustomerWithPhone */
4934
+ PosUpdateCustomerWithPhone: {
4935
+ /**
4936
+ * @description Two-letter code begin with a plus sign prefix that identifies different countries. By default it will be +91 if not provided.
4937
+ * @default +91
4938
+ */
4939
+ country_code: string | null;
4940
+ /** @description 10 digit phone number without country code. */
4941
+ phone: string;
4942
+ /** Format: email */
4943
+ email?: string | null;
4944
+ first_name?: string | null;
4945
+ last_name?: string | null;
4946
+ };
4947
+ /** UpdateCustomerWithEmail */
4948
+ PosUpdateCustomerWithEmail: {
4949
+ /** Format: email */
4950
+ email: string;
4951
+ /** @description 10 digit phone number without country code. */
4952
+ phone?: string | null;
4953
+ /**
4954
+ * @description Two-letter code begin with a plus sign prefix that identifies different countries.
4955
+ * @example +91
4956
+ */
4957
+ country_code?: string | null;
4958
+ first_name?: string | null;
4959
+ last_name?: string | null;
4960
+ };
4486
4961
  };
4487
4962
  responses: {
4488
4963
  /** @description Requested resource not found */
@@ -4505,9 +4980,11 @@ interface components {
4505
4980
  };
4506
4981
  content: {
4507
4982
  "application/json": {
4983
+ /** @example Not authorized for given operation on the Resource. */
4508
4984
  message: string;
4509
4985
  /** @default false */
4510
4986
  success: boolean;
4987
+ /** @example unauthorized */
4511
4988
  code: string;
4512
4989
  };
4513
4990
  };
@@ -4597,6 +5074,7 @@ interface operations {
4597
5074
  };
4598
5075
  content: {
4599
5076
  "application/json": {
5077
+ /** @example Products retrieved successfully. */
4600
5078
  message: string;
4601
5079
  success: boolean;
4602
5080
  content: {
@@ -4640,6 +5118,7 @@ interface operations {
4640
5118
  };
4641
5119
  content: {
4642
5120
  "application/json": {
5121
+ /** @example SKUs retrieved successfully. */
4643
5122
  message: string;
4644
5123
  success: boolean;
4645
5124
  content: {
@@ -4675,6 +5154,7 @@ interface operations {
4675
5154
  };
4676
5155
  content: {
4677
5156
  "application/json": {
5157
+ /** @example Products retrieved successfully. */
4678
5158
  message: string;
4679
5159
  success: boolean;
4680
5160
  content: {
@@ -4709,6 +5189,7 @@ interface operations {
4709
5189
  };
4710
5190
  content: {
4711
5191
  "application/json": {
5192
+ /** @example Products retrieved successfully. */
4712
5193
  message: string;
4713
5194
  success: boolean;
4714
5195
  content: {
@@ -4745,6 +5226,7 @@ interface operations {
4745
5226
  };
4746
5227
  content: {
4747
5228
  "application/json": {
5229
+ /** @example Products retrieved successfully. */
4748
5230
  message: string;
4749
5231
  success: boolean;
4750
5232
  content: {
@@ -4784,6 +5266,7 @@ interface operations {
4784
5266
  };
4785
5267
  content: {
4786
5268
  "application/json": {
5269
+ /** @example all categories */
4787
5270
  message: string;
4788
5271
  success: boolean;
4789
5272
  content: {
@@ -4865,6 +5348,7 @@ interface operations {
4865
5348
  };
4866
5349
  content: {
4867
5350
  "application/json": {
5351
+ /** @example Review submitted successfully. */
4868
5352
  message: string;
4869
5353
  success: boolean;
4870
5354
  };
@@ -5056,6 +5540,9 @@ interface operations {
5056
5540
  content: {
5057
5541
  "application/json": {
5058
5542
  items: components["schemas"]["UpdateCartItem"][];
5543
+ metadata?: {
5544
+ [key: string]: string;
5545
+ };
5059
5546
  };
5060
5547
  };
5061
5548
  };
@@ -5099,6 +5586,7 @@ interface operations {
5099
5586
  };
5100
5587
  content: {
5101
5588
  "application/json": {
5589
+ /** @example cart details */
5102
5590
  readonly message: string;
5103
5591
  readonly success: boolean;
5104
5592
  content: {
@@ -5130,6 +5618,7 @@ interface operations {
5130
5618
  };
5131
5619
  content: {
5132
5620
  "application/json": {
5621
+ /** @example All cart items are removed. */
5133
5622
  readonly message: string;
5134
5623
  readonly success: boolean;
5135
5624
  };
@@ -5158,6 +5647,7 @@ interface operations {
5158
5647
  };
5159
5648
  content: {
5160
5649
  "application/json": {
5650
+ /** @example cart details */
5161
5651
  readonly message: string;
5162
5652
  readonly success: boolean;
5163
5653
  content: {
@@ -5189,6 +5679,7 @@ interface operations {
5189
5679
  };
5190
5680
  content: {
5191
5681
  "application/json": {
5682
+ /** @example All cart items are removed. */
5192
5683
  readonly message: string;
5193
5684
  readonly success: boolean;
5194
5685
  };
@@ -5264,6 +5755,45 @@ interface operations {
5264
5755
  };
5265
5756
  content: {
5266
5757
  "application/json": {
5758
+ /** @example Address updated successfully */
5759
+ message: string;
5760
+ success: boolean;
5761
+ content: {
5762
+ cart: components["schemas"]["Cart"];
5763
+ };
5764
+ };
5765
+ };
5766
+ };
5767
+ 400: components["responses"]["BadRequest"];
5768
+ 401: components["responses"]["Unauthorized"];
5769
+ 404: components["responses"]["NotFound"];
5770
+ };
5771
+ };
5772
+ "update-cart-customer": {
5773
+ parameters: {
5774
+ query?: never;
5775
+ header?: never;
5776
+ path: {
5777
+ /** @description Cart ID */
5778
+ id: string;
5779
+ };
5780
+ cookie?: never;
5781
+ };
5782
+ /** @description Update billing and shipping address during checkout */
5783
+ requestBody: {
5784
+ content: {
5785
+ "application/json": components["schemas"]["PosUpdateCustomerWithId"] | components["schemas"]["PosUpdateCustomerWithPhone"] | components["schemas"]["PosUpdateCustomerWithEmail"];
5786
+ };
5787
+ };
5788
+ responses: {
5789
+ /** @description OK */
5790
+ 200: {
5791
+ headers: {
5792
+ [name: string]: unknown;
5793
+ };
5794
+ content: {
5795
+ "application/json": {
5796
+ /** @example Address updated successfully */
5267
5797
  message: string;
5268
5798
  success: boolean;
5269
5799
  content: {
@@ -5329,6 +5859,7 @@ interface operations {
5329
5859
  requestBody: {
5330
5860
  content: {
5331
5861
  "application/json": {
5862
+ /** @example FLAT100OFF */
5332
5863
  coupon_code: string;
5333
5864
  };
5334
5865
  };
@@ -5409,6 +5940,7 @@ interface operations {
5409
5940
  requestBody: {
5410
5941
  content: {
5411
5942
  "application/json": {
5943
+ /** @example 1000 */
5412
5944
  loyalty_point_redeemed: number;
5413
5945
  };
5414
5946
  };
@@ -5488,7 +6020,10 @@ interface operations {
5488
6020
  requestBody: {
5489
6021
  content: {
5490
6022
  "application/json": {
5491
- /** Format: double */
6023
+ /**
6024
+ * Format: double
6025
+ * @example 200
6026
+ */
5492
6027
  credit_balance_used: number;
5493
6028
  };
5494
6029
  };
@@ -5732,6 +6267,7 @@ interface operations {
5732
6267
  requestBody: {
5733
6268
  content: {
5734
6269
  "application/json": {
6270
+ /** @example 01F3Z7KG06J4ACWH1C4926KJEC */
5735
6271
  product_id: string;
5736
6272
  variant_id: string | null;
5737
6273
  };
@@ -5771,6 +6307,7 @@ interface operations {
5771
6307
  requestBody: {
5772
6308
  content: {
5773
6309
  "application/json": {
6310
+ /** @example 01F3Z7KG06J4ACWH1C4926KJEC */
5774
6311
  product_id: string;
5775
6312
  variant_id: string | null;
5776
6313
  };
@@ -5828,6 +6365,190 @@ interface operations {
5828
6365
  401: components["responses"]["Unauthorized"];
5829
6366
  };
5830
6367
  };
6368
+ "evaluate-promotions": {
6369
+ parameters: {
6370
+ query?: never;
6371
+ header?: never;
6372
+ path: {
6373
+ /** @description Cart Id */
6374
+ id: string;
6375
+ };
6376
+ cookie?: never;
6377
+ };
6378
+ requestBody?: never;
6379
+ responses: {
6380
+ /** @description OK */
6381
+ 200: {
6382
+ headers: {
6383
+ [name: string]: unknown;
6384
+ };
6385
+ content: {
6386
+ "application/json": {
6387
+ message?: string;
6388
+ success?: boolean;
6389
+ content?: {
6390
+ applicable_promotions?: {
6391
+ id?: string;
6392
+ name?: string;
6393
+ /** @enum {unknown} */
6394
+ promotion_type?: "discount" | "free-goods" | "free-shipping" | "buy-x-get-y" | "volume-based";
6395
+ estimated_discount?: number;
6396
+ savings_message?: string;
6397
+ }[];
6398
+ inapplicable_promotions?: {
6399
+ id?: string;
6400
+ name?: string;
6401
+ /** @enum {unknown} */
6402
+ promotion_type?: "discount" | "free-goods" | "free-shipping" | "buy-x-get-y" | "volume-based";
6403
+ reason?: string;
6404
+ suggestion?: string;
6405
+ }[];
6406
+ };
6407
+ };
6408
+ };
6409
+ };
6410
+ 401: components["responses"]["Unauthorized"];
6411
+ };
6412
+ };
6413
+ "evaluate-coupons": {
6414
+ parameters: {
6415
+ query?: never;
6416
+ header?: never;
6417
+ path: {
6418
+ /** @description Cart Id */
6419
+ id: string;
6420
+ };
6421
+ cookie?: never;
6422
+ };
6423
+ requestBody?: never;
6424
+ responses: {
6425
+ /** @description OK */
6426
+ 200: {
6427
+ headers: {
6428
+ [name: string]: unknown;
6429
+ };
6430
+ content: {
6431
+ "application/json": {
6432
+ message?: string;
6433
+ success?: boolean;
6434
+ content?: {
6435
+ applicable_coupons?: {
6436
+ id?: string;
6437
+ name?: string;
6438
+ /** @enum {unknown} */
6439
+ coupon_type?: "discount" | "free-goods" | "fixed-price" | "free-shipping" | "buy-x-get-y" | "volume-based" | "accelerated-rewards";
6440
+ coupon_code?: string[];
6441
+ estimated_discount?: number;
6442
+ savings_message?: string;
6443
+ }[];
6444
+ inapplicable_coupons?: {
6445
+ id?: string;
6446
+ name?: string;
6447
+ /** @enum {unknown} */
6448
+ coupon_type?: "discount" | "free-goods" | "fixed-price" | "free-shipping" | "buy-x-get-y" | "volume-based" | "accelerated-rewards";
6449
+ coupon_code?: string[];
6450
+ reason?: string;
6451
+ suggestion?: string;
6452
+ }[];
6453
+ };
6454
+ };
6455
+ };
6456
+ };
6457
+ 401: components["responses"]["Unauthorized"];
6458
+ };
6459
+ };
6460
+ "evaluate-pos-promotions": {
6461
+ parameters: {
6462
+ query?: never;
6463
+ header?: never;
6464
+ path: {
6465
+ /** @description Cart Id */
6466
+ id: string;
6467
+ };
6468
+ cookie?: never;
6469
+ };
6470
+ requestBody?: never;
6471
+ responses: {
6472
+ /** @description OK */
6473
+ 200: {
6474
+ headers: {
6475
+ [name: string]: unknown;
6476
+ };
6477
+ content: {
6478
+ "application/json": {
6479
+ message?: string;
6480
+ success?: boolean;
6481
+ content?: {
6482
+ applicable_promotions?: {
6483
+ id?: string;
6484
+ name?: string;
6485
+ /** @enum {unknown} */
6486
+ promotion_type?: "discount" | "free-goods" | "free-shipping" | "buy-x-get-y" | "volume-based";
6487
+ estimated_discount?: number;
6488
+ savings_message?: string;
6489
+ }[];
6490
+ inapplicable_promotions?: {
6491
+ id?: string;
6492
+ name?: string;
6493
+ /** @enum {unknown} */
6494
+ promotion_type?: "discount" | "free-goods" | "free-shipping" | "buy-x-get-y" | "volume-based";
6495
+ reason?: string;
6496
+ suggestion?: string;
6497
+ }[];
6498
+ };
6499
+ };
6500
+ };
6501
+ };
6502
+ 401: components["responses"]["Unauthorized"];
6503
+ };
6504
+ };
6505
+ "evaluate-pos-coupons": {
6506
+ parameters: {
6507
+ query?: never;
6508
+ header?: never;
6509
+ path: {
6510
+ /** @description Cart Id */
6511
+ id: string;
6512
+ };
6513
+ cookie?: never;
6514
+ };
6515
+ requestBody?: never;
6516
+ responses: {
6517
+ /** @description OK */
6518
+ 200: {
6519
+ headers: {
6520
+ [name: string]: unknown;
6521
+ };
6522
+ content: {
6523
+ "application/json": {
6524
+ message?: string;
6525
+ success?: boolean;
6526
+ content?: {
6527
+ applicable_coupons?: {
6528
+ id?: string;
6529
+ name?: string;
6530
+ /** @enum {unknown} */
6531
+ coupon_type?: "discount" | "free-goods" | "fixed-price" | "free-shipping" | "buy-x-get-y" | "volume-based" | "accelerated-rewards";
6532
+ coupon_code?: string[];
6533
+ estimated_discount?: number;
6534
+ savings_message?: string;
6535
+ }[];
6536
+ inapplicable_coupons?: {
6537
+ id?: string;
6538
+ name?: string;
6539
+ /** @enum {unknown} */
6540
+ coupon_type?: "discount" | "free-goods" | "fixed-price" | "free-shipping" | "buy-x-get-y" | "volume-based" | "accelerated-rewards";
6541
+ coupon_code?: string[];
6542
+ reason?: string;
6543
+ suggestion?: string;
6544
+ }[];
6545
+ };
6546
+ };
6547
+ };
6548
+ };
6549
+ 401: components["responses"]["Unauthorized"];
6550
+ };
6551
+ };
5831
6552
  "get-customer-detail": {
5832
6553
  parameters: {
5833
6554
  query?: never;
@@ -6074,6 +6795,7 @@ interface operations {
6074
6795
  };
6075
6796
  content: {
6076
6797
  "application/json": {
6798
+ /** @example address removed successfully */
6077
6799
  message?: string;
6078
6800
  success?: boolean;
6079
6801
  };
@@ -7407,7 +8129,404 @@ interface operations {
7407
8129
  };
7408
8130
  cookie?: never;
7409
8131
  };
7410
- requestBody?: never;
8132
+ requestBody?: never;
8133
+ responses: {
8134
+ /** @description OK */
8135
+ 200: {
8136
+ headers: {
8137
+ [name: string]: unknown;
8138
+ };
8139
+ content: {
8140
+ "application/json": {
8141
+ /** @description A descriptive message confirming the success or failure of the Registration process. */
8142
+ message: string;
8143
+ /** @description Indicates whether the request was successful or failure (true for success, false for failure). */
8144
+ success: boolean;
8145
+ /** @description An object containing the response content. */
8146
+ content: {
8147
+ /** @description An object containing the response content. */
8148
+ user: components["schemas"]["User"];
8149
+ };
8150
+ };
8151
+ };
8152
+ };
8153
+ 400: components["responses"]["BadRequest"];
8154
+ 401: components["responses"]["Unauthorized"];
8155
+ 404: components["responses"]["NotFound"];
8156
+ };
8157
+ };
8158
+ "update-user": {
8159
+ parameters: {
8160
+ query?: never;
8161
+ header?: never;
8162
+ path: {
8163
+ /** @description user ID */
8164
+ id: string;
8165
+ };
8166
+ cookie?: never;
8167
+ };
8168
+ requestBody: {
8169
+ content: {
8170
+ "application/json": components["schemas"]["User"];
8171
+ };
8172
+ };
8173
+ responses: {
8174
+ /** @description OK */
8175
+ 200: {
8176
+ headers: {
8177
+ [name: string]: unknown;
8178
+ };
8179
+ content: {
8180
+ "application/json": {
8181
+ /** @description A descriptive message confirming the success or failure of the Registration process. */
8182
+ message: string;
8183
+ /** @description Indicates whether the request was successful or failure (true for success, false for failure). */
8184
+ success: boolean;
8185
+ /** @description An object containing the response content. */
8186
+ content: {
8187
+ /** @description An object containing the response content. */
8188
+ user: components["schemas"]["User"];
8189
+ };
8190
+ };
8191
+ };
8192
+ };
8193
+ 400: components["responses"]["BadRequest"];
8194
+ 401: components["responses"]["Unauthorized"];
8195
+ };
8196
+ };
8197
+ "get-profile-image": {
8198
+ parameters: {
8199
+ query?: never;
8200
+ header?: never;
8201
+ path: {
8202
+ /** @description user ID */
8203
+ id: string;
8204
+ };
8205
+ cookie?: never;
8206
+ };
8207
+ requestBody?: never;
8208
+ responses: {
8209
+ /** @description OK */
8210
+ 200: {
8211
+ headers: {
8212
+ [name: string]: unknown;
8213
+ };
8214
+ content: {
8215
+ "application/json": {
8216
+ /** @description A descriptive message confirming the success or failure of the retrieve operation. */
8217
+ message: string;
8218
+ /** @description Indicates whether the request was successful or failure (true for success, false for failure). */
8219
+ success: boolean;
8220
+ /** @description An object containing the response content. */
8221
+ content: {
8222
+ /** @description A string representing the URL to a profile image. */
8223
+ profile_image_url: string;
8224
+ };
8225
+ };
8226
+ };
8227
+ };
8228
+ 400: components["responses"]["BadRequest"];
8229
+ 401: components["responses"]["Unauthorized"];
8230
+ 404: components["responses"]["NotFound"];
8231
+ };
8232
+ };
8233
+ "update-profile-image": {
8234
+ parameters: {
8235
+ query?: never;
8236
+ header?: never;
8237
+ path: {
8238
+ /** @description user ID */
8239
+ id: string;
8240
+ };
8241
+ cookie?: never;
8242
+ };
8243
+ requestBody: {
8244
+ content: {
8245
+ "multipart/form-data": {
8246
+ /** Format: binary */
8247
+ image?: string;
8248
+ };
8249
+ };
8250
+ };
8251
+ responses: {
8252
+ /** @description OK */
8253
+ 200: {
8254
+ headers: {
8255
+ [name: string]: unknown;
8256
+ };
8257
+ content: {
8258
+ "application/json": {
8259
+ /** @description A descriptive message confirming the success or failure of the update operation. */
8260
+ message: string;
8261
+ /** @description Indicates whether the request was successful or failure (true for success, false for failure). */
8262
+ success: boolean;
8263
+ /** @description An object containing the response content. */
8264
+ content: {
8265
+ /** @description A string representing the URL to a profile image. */
8266
+ profile_image_url: string;
8267
+ };
8268
+ };
8269
+ };
8270
+ };
8271
+ 400: components["responses"]["BadRequest"];
8272
+ 401: components["responses"]["Unauthorized"];
8273
+ 404: components["responses"]["NotFound"];
8274
+ };
8275
+ };
8276
+ "add-profile-image": {
8277
+ parameters: {
8278
+ query?: never;
8279
+ header?: never;
8280
+ path: {
8281
+ /** @description user ID */
8282
+ id: string;
8283
+ };
8284
+ cookie?: never;
8285
+ };
8286
+ requestBody: {
8287
+ content: {
8288
+ "multipart/form-data": {
8289
+ /** Format: binary */
8290
+ image: string;
8291
+ };
8292
+ };
8293
+ };
8294
+ responses: {
8295
+ /** @description OK */
8296
+ 200: {
8297
+ headers: {
8298
+ [name: string]: unknown;
8299
+ };
8300
+ content: {
8301
+ "application/json": {
8302
+ /** @description A descriptive message confirming the success or failure of the add operation. */
8303
+ message: string;
8304
+ /** @description Indicates whether the request was successful or failure (true for success, false for failure). */
8305
+ success: boolean;
8306
+ /** @description An object containing the response content. */
8307
+ content: {
8308
+ /** @description A string representing the URL to a profile image. */
8309
+ profile_image_url: string;
8310
+ };
8311
+ };
8312
+ };
8313
+ };
8314
+ 400: components["responses"]["BadRequest"];
8315
+ 401: components["responses"]["Unauthorized"];
8316
+ };
8317
+ };
8318
+ "remove-profile-image": {
8319
+ parameters: {
8320
+ query?: never;
8321
+ header?: never;
8322
+ path: {
8323
+ /** @description user ID */
8324
+ id: string;
8325
+ };
8326
+ cookie?: never;
8327
+ };
8328
+ requestBody?: never;
8329
+ responses: {
8330
+ /** @description OK */
8331
+ 200: {
8332
+ headers: {
8333
+ [name: string]: unknown;
8334
+ };
8335
+ content: {
8336
+ "application/json": {
8337
+ /** @description A descriptive message confirming the success or failure of the delete operation. */
8338
+ message: string;
8339
+ /** @description Indicates whether the request was successful or failure (true for success, false for failure). */
8340
+ success: boolean;
8341
+ };
8342
+ };
8343
+ };
8344
+ 400: components["responses"]["BadRequest"];
8345
+ 401: components["responses"]["Unauthorized"];
8346
+ 404: components["responses"]["NotFound"];
8347
+ };
8348
+ };
8349
+ "deactivate-user": {
8350
+ parameters: {
8351
+ query?: never;
8352
+ header?: never;
8353
+ path: {
8354
+ /** @description user ID */
8355
+ id: string;
8356
+ };
8357
+ cookie?: never;
8358
+ };
8359
+ requestBody?: never;
8360
+ responses: {
8361
+ /** @description OK */
8362
+ 200: {
8363
+ headers: {
8364
+ [name: string]: unknown;
8365
+ };
8366
+ content: {
8367
+ "application/json": {
8368
+ /** @description A descriptive message confirming the success or failure of the deactivate account operation. */
8369
+ message: string;
8370
+ /** @description Indicates whether the request was successful or failure (true for success, false for failure). */
8371
+ success: boolean;
8372
+ };
8373
+ };
8374
+ };
8375
+ 400: components["responses"]["BadRequest"];
8376
+ 401: components["responses"]["Unauthorized"];
8377
+ 404: components["responses"]["NotFound"];
8378
+ };
8379
+ };
8380
+ "refresh-token": {
8381
+ parameters: {
8382
+ query?: never;
8383
+ header?: never;
8384
+ path?: never;
8385
+ cookie?: never;
8386
+ };
8387
+ requestBody: {
8388
+ content: {
8389
+ "application/json": {
8390
+ /** @description A string representing the refresh token. */
8391
+ refresh_token: string;
8392
+ };
8393
+ };
8394
+ };
8395
+ responses: {
8396
+ /** @description OK */
8397
+ 200: {
8398
+ headers: {
8399
+ [name: string]: unknown;
8400
+ };
8401
+ content: {
8402
+ "application/json": {
8403
+ /** @description A descriptive message confirming the success or failure of the operation. */
8404
+ message: string;
8405
+ /** @description Indicates whether the request was successful or failure (true for success, false for failure). */
8406
+ success: boolean;
8407
+ /** @description An object containing the response content. */
8408
+ content: {
8409
+ /** @description It is a string-based token utilized for authentication and authorization. */
8410
+ access_token: string;
8411
+ /** @description It is a string-based token designed for refreshing the user's access token. */
8412
+ refresh_token: string;
8413
+ };
8414
+ };
8415
+ };
8416
+ };
8417
+ 400: components["responses"]["BadRequest"];
8418
+ 404: components["responses"]["NotFound"];
8419
+ };
8420
+ };
8421
+ "change-password": {
8422
+ parameters: {
8423
+ query?: never;
8424
+ header?: never;
8425
+ path?: never;
8426
+ cookie?: never;
8427
+ };
8428
+ requestBody: {
8429
+ content: {
8430
+ "application/json": {
8431
+ /** @description The old password associated with the user's account. This parameter is crucial for verifying the user's identity before allowing a password change. */
8432
+ old_password: string;
8433
+ /** @description The new password that the user intends to set for their account. This parameter is necessary for updating the password to enhance account security. */
8434
+ new_password: string;
8435
+ /** @description A confirmation of the new password. */
8436
+ confirm_password: string;
8437
+ };
8438
+ };
8439
+ };
8440
+ responses: {
8441
+ /** @description OK */
8442
+ 200: {
8443
+ headers: {
8444
+ [name: string]: unknown;
8445
+ };
8446
+ content: {
8447
+ "application/json": {
8448
+ /** @description A descriptive message confirming the success or failure of the change password operation. */
8449
+ message: string;
8450
+ /** @description Indicates whether the request was successful or failure (true for success, false for failure). */
8451
+ success: boolean;
8452
+ /** @description An object containing the response content. */
8453
+ content: {
8454
+ /** @description It is a string-based token utilized for authentication and authorization. */
8455
+ access_token: string;
8456
+ /** @description It is a string-based token designed for refreshing the user's access token. */
8457
+ refresh_token: string;
8458
+ };
8459
+ };
8460
+ };
8461
+ };
8462
+ 400: components["responses"]["BadRequest"];
8463
+ 401: components["responses"]["Unauthorized"];
8464
+ };
8465
+ };
8466
+ "forgot-password": {
8467
+ parameters: {
8468
+ query?: never;
8469
+ header?: never;
8470
+ path?: never;
8471
+ cookie?: never;
8472
+ };
8473
+ requestBody: {
8474
+ content: {
8475
+ "application/json": {
8476
+ /** @description A string representing the email address. */
8477
+ email: string;
8478
+ /** @description 10 digit phone number without country code. */
8479
+ phone: string;
8480
+ /** @description Two-letter code begin with a plus sign prefix that identifies different countries. By default it will be +91 if not provided.
8481
+ * Use this key along with phone. Not necessary for email. */
8482
+ country_code: string;
8483
+ };
8484
+ };
8485
+ };
8486
+ responses: {
8487
+ /** @description OK */
8488
+ 200: {
8489
+ headers: {
8490
+ [name: string]: unknown;
8491
+ };
8492
+ content: {
8493
+ "application/json": {
8494
+ /** @description A descriptive message confirming the success or failure of the operation. */
8495
+ message: string;
8496
+ /** @description Indicates whether the request was successful or failure (true for success, false for failure). */
8497
+ success: boolean;
8498
+ /** @description An object containing the response content. */
8499
+ content: {
8500
+ /** @description A string representing the OTP token which facilitas the resetting of user’s account password. */
8501
+ otp_token: string;
8502
+ };
8503
+ };
8504
+ };
8505
+ };
8506
+ 400: components["responses"]["BadRequest"];
8507
+ 401: components["responses"]["Unauthorized"];
8508
+ 404: components["responses"]["NotFound"];
8509
+ };
8510
+ };
8511
+ "reset-password": {
8512
+ parameters: {
8513
+ query?: never;
8514
+ header?: never;
8515
+ path?: never;
8516
+ cookie?: never;
8517
+ };
8518
+ requestBody: {
8519
+ content: {
8520
+ "application/json": {
8521
+ /** @description The new password that the user wants to set for their account. */
8522
+ new_password: string;
8523
+ /** @description A confirmation of the new password. */
8524
+ confirm_password: string;
8525
+ /** @description A string representing the OTP token which facilitas the resetting of user’s account password. */
8526
+ otp_token: string;
8527
+ };
8528
+ };
8529
+ };
7411
8530
  responses: {
7412
8531
  /** @description OK */
7413
8532
  200: {
@@ -7416,38 +8535,34 @@ interface operations {
7416
8535
  };
7417
8536
  content: {
7418
8537
  "application/json": {
7419
- /** @description A descriptive message confirming the success or failure of the Registration process. */
8538
+ /** @description A descriptive message confirming the success or failure of the reset password operation. */
7420
8539
  message: string;
7421
8540
  /** @description Indicates whether the request was successful or failure (true for success, false for failure). */
7422
8541
  success: boolean;
7423
8542
  /** @description An object containing the response content. */
7424
8543
  content: {
7425
- /** @description An object containing the response content. */
7426
- user: components["schemas"]["User"];
8544
+ /** @description It is a string-based token utilized for authentication and authorization. */
8545
+ access_token: string;
8546
+ /** @description It is a string-based token designed for refreshing the user's access token. */
8547
+ refresh_token: string;
7427
8548
  };
7428
8549
  };
7429
8550
  };
7430
8551
  };
7431
8552
  400: components["responses"]["BadRequest"];
7432
- 401: components["responses"]["Unauthorized"];
7433
- 404: components["responses"]["NotFound"];
7434
8553
  };
7435
8554
  };
7436
- "update-user": {
8555
+ "get-notification-preferences": {
7437
8556
  parameters: {
7438
8557
  query?: never;
7439
8558
  header?: never;
7440
8559
  path: {
7441
- /** @description user ID */
8560
+ /** @description user id */
7442
8561
  id: string;
7443
8562
  };
7444
8563
  cookie?: never;
7445
8564
  };
7446
- requestBody: {
7447
- content: {
7448
- "application/json": components["schemas"]["User"];
7449
- };
7450
- };
8565
+ requestBody?: never;
7451
8566
  responses: {
7452
8567
  /** @description OK */
7453
8568
  200: {
@@ -7456,33 +8571,41 @@ interface operations {
7456
8571
  };
7457
8572
  content: {
7458
8573
  "application/json": {
7459
- /** @description A descriptive message confirming the success or failure of the Registration process. */
8574
+ /** @description A descriptive message confirming the success or failure of the operation. */
7460
8575
  message: string;
7461
8576
  /** @description Indicates whether the request was successful or failure (true for success, false for failure). */
7462
8577
  success: boolean;
7463
8578
  /** @description An object containing the response content. */
7464
8579
  content: {
7465
- /** @description An object containing the response content. */
7466
- user: components["schemas"]["User"];
8580
+ /** @description An object containing the user's notification preferences. */
8581
+ notification_preferences: components["schemas"]["NotificationPreferences"];
7467
8582
  };
7468
8583
  };
7469
8584
  };
7470
8585
  };
7471
8586
  400: components["responses"]["BadRequest"];
7472
8587
  401: components["responses"]["Unauthorized"];
8588
+ 404: components["responses"]["NotFound"];
7473
8589
  };
7474
8590
  };
7475
- "get-profile-image": {
8591
+ "update-notification-preferences": {
7476
8592
  parameters: {
7477
8593
  query?: never;
7478
8594
  header?: never;
7479
8595
  path: {
7480
- /** @description user ID */
8596
+ /** @description user id */
7481
8597
  id: string;
7482
8598
  };
7483
8599
  cookie?: never;
7484
8600
  };
7485
- requestBody?: never;
8601
+ requestBody: {
8602
+ content: {
8603
+ "application/json": {
8604
+ /** @description An object containing the user's notification preferences. */
8605
+ notification_preferences?: components["schemas"]["NotificationPreferences"];
8606
+ };
8607
+ };
8608
+ };
7486
8609
  responses: {
7487
8610
  /** @description OK */
7488
8611
  200: {
@@ -7491,14 +8614,14 @@ interface operations {
7491
8614
  };
7492
8615
  content: {
7493
8616
  "application/json": {
7494
- /** @description A descriptive message confirming the success or failure of the retrieve operation. */
8617
+ /** @description A descriptive message confirming the success or failure of the operation. */
7495
8618
  message: string;
7496
8619
  /** @description Indicates whether the request was successful or failure (true for success, false for failure). */
7497
8620
  success: boolean;
7498
8621
  /** @description An object containing the response content. */
7499
8622
  content: {
7500
- /** @description A string representing the URL to a profile image. */
7501
- profile_image_url: string;
8623
+ /** @description An object containing the user's notification preferences. */
8624
+ notification_preferences: components["schemas"]["NotificationPreferences"];
7502
8625
  };
7503
8626
  };
7504
8627
  };
@@ -7508,21 +8631,21 @@ interface operations {
7508
8631
  404: components["responses"]["NotFound"];
7509
8632
  };
7510
8633
  };
7511
- "update-profile-image": {
8634
+ "create-notification-preferences": {
7512
8635
  parameters: {
7513
8636
  query?: never;
7514
8637
  header?: never;
7515
8638
  path: {
7516
- /** @description user ID */
8639
+ /** @description user id */
7517
8640
  id: string;
7518
8641
  };
7519
8642
  cookie?: never;
7520
8643
  };
7521
8644
  requestBody: {
7522
8645
  content: {
7523
- "multipart/form-data": {
7524
- /** Format: binary */
7525
- image?: string;
8646
+ "application/json": {
8647
+ /** @description An object containing the user's notification preferences. */
8648
+ notification_preferences: components["schemas"]["NotificationPreferences"];
7526
8649
  };
7527
8650
  };
7528
8651
  };
@@ -7534,14 +8657,14 @@ interface operations {
7534
8657
  };
7535
8658
  content: {
7536
8659
  "application/json": {
7537
- /** @description A descriptive message confirming the success or failure of the update operation. */
8660
+ /** @description A descriptive message confirming the success or failure of the operation. */
7538
8661
  message: string;
7539
8662
  /** @description Indicates whether the request was successful or failure (true for success, false for failure). */
7540
8663
  success: boolean;
7541
8664
  /** @description An object containing the response content. */
7542
8665
  content: {
7543
- /** @description A string representing the URL to a profile image. */
7544
- profile_image_url: string;
8666
+ /** @description An object containing the user's notification preferences. */
8667
+ notification_preferences: components["schemas"]["NotificationPreferences"];
7545
8668
  };
7546
8669
  };
7547
8670
  };
@@ -7551,22 +8674,16 @@ interface operations {
7551
8674
  404: components["responses"]["NotFound"];
7552
8675
  };
7553
8676
  };
7554
- "add-profile-image": {
8677
+ "generate-otp": {
7555
8678
  parameters: {
7556
8679
  query?: never;
7557
8680
  header?: never;
7558
- path: {
7559
- /** @description user ID */
7560
- id: string;
7561
- };
8681
+ path?: never;
7562
8682
  cookie?: never;
7563
8683
  };
7564
8684
  requestBody: {
7565
8685
  content: {
7566
- "multipart/form-data": {
7567
- /** Format: binary */
7568
- image: string;
7569
- };
8686
+ "application/json": components["schemas"]["GenerateOtpWithPhone"] | components["schemas"]["GenerateOtpWithEmail"];
7570
8687
  };
7571
8688
  };
7572
8689
  responses: {
@@ -7577,14 +8694,16 @@ interface operations {
7577
8694
  };
7578
8695
  content: {
7579
8696
  "application/json": {
7580
- /** @description A descriptive message confirming the success or failure of the add operation. */
8697
+ /** @description A descriptive message confirming the success or failure of the operation. */
7581
8698
  message: string;
7582
8699
  /** @description Indicates whether the request was successful or failure (true for success, false for failure). */
7583
8700
  success: boolean;
7584
8701
  /** @description An object containing the response content. */
7585
8702
  content: {
7586
- /** @description A string representing the URL to a profile image. */
7587
- profile_image_url: string;
8703
+ /** @description A string representing the OTP token. */
8704
+ otp_token: string;
8705
+ /** @description This is used for verifying OTP or using subsequent APIs call. */
8706
+ otp_action: string;
7588
8707
  };
7589
8708
  };
7590
8709
  };
@@ -7593,14 +8712,11 @@ interface operations {
7593
8712
  401: components["responses"]["Unauthorized"];
7594
8713
  };
7595
8714
  };
7596
- "remove-profile-image": {
8715
+ logout: {
7597
8716
  parameters: {
7598
8717
  query?: never;
7599
8718
  header?: never;
7600
- path: {
7601
- /** @description user ID */
7602
- id: string;
7603
- };
8719
+ path?: never;
7604
8720
  cookie?: never;
7605
8721
  };
7606
8722
  requestBody?: never;
@@ -7612,10 +8728,19 @@ interface operations {
7612
8728
  };
7613
8729
  content: {
7614
8730
  "application/json": {
7615
- /** @description A descriptive message confirming the success or failure of the delete operation. */
8731
+ /** @description A descriptive message confirming the success or failure of the operation. */
7616
8732
  message: string;
7617
8733
  /** @description Indicates whether the request was successful or failure (true for success, false for failure). */
7618
8734
  success: boolean;
8735
+ /** @description An object containing the response content. */
8736
+ content: {
8737
+ /** @description It is a string-based token utilized for authentication and authorization. */
8738
+ access_token: string;
8739
+ /** @description It is a string-based token designed for refreshing the user's access token. */
8740
+ refresh_token: string;
8741
+ /** @description An object representing user details. */
8742
+ user: components["schemas"]["User"];
8743
+ };
7619
8744
  };
7620
8745
  };
7621
8746
  };
@@ -7624,13 +8749,13 @@ interface operations {
7624
8749
  404: components["responses"]["NotFound"];
7625
8750
  };
7626
8751
  };
7627
- "deactivate-user": {
8752
+ "list-user-reviews": {
7628
8753
  parameters: {
7629
8754
  query?: never;
7630
8755
  header?: never;
7631
8756
  path: {
7632
- /** @description user ID */
7633
- id: string;
8757
+ /** @description user id */
8758
+ user_id: string;
7634
8759
  };
7635
8760
  cookie?: never;
7636
8761
  };
@@ -7643,10 +8768,12 @@ interface operations {
7643
8768
  };
7644
8769
  content: {
7645
8770
  "application/json": {
7646
- /** @description A descriptive message confirming the success or failure of the deactivate account operation. */
7647
- message: string;
7648
- /** @description Indicates whether the request was successful or failure (true for success, false for failure). */
7649
- success: boolean;
8771
+ message?: string;
8772
+ success?: boolean;
8773
+ content?: {
8774
+ reviews?: components["schemas"]["CustomerReview"][];
8775
+ ready_for_review?: components["schemas"]["CustomerReadyForReview"][];
8776
+ };
7650
8777
  };
7651
8778
  };
7652
8779
  };
@@ -7655,7 +8782,7 @@ interface operations {
7655
8782
  404: components["responses"]["NotFound"];
7656
8783
  };
7657
8784
  };
7658
- "refresh-token": {
8785
+ "check-verification-status": {
7659
8786
  parameters: {
7660
8787
  query?: never;
7661
8788
  header?: never;
@@ -7665,8 +8792,10 @@ interface operations {
7665
8792
  requestBody: {
7666
8793
  content: {
7667
8794
  "application/json": {
7668
- /** @description A string representing the refresh token. */
7669
- refresh_token: string;
8795
+ /** @description A string representing the phone number. */
8796
+ phone?: string[];
8797
+ /** @description A string representing the email address. */
8798
+ email?: string[];
7670
8799
  };
7671
8800
  };
7672
8801
  };
@@ -7684,19 +8813,20 @@ interface operations {
7684
8813
  success: boolean;
7685
8814
  /** @description An object containing the response content. */
7686
8815
  content: {
7687
- /** @description It is a string-based token utilized for authentication and authorization. */
7688
- access_token: string;
7689
- /** @description It is a string-based token designed for refreshing the user's access token. */
7690
- refresh_token: string;
8816
+ /** @description An array containing verified phone numbers for the user */
8817
+ verified_phone: string[];
8818
+ /** @description An array containing verified email address for the user. */
8819
+ verified_email: string[];
7691
8820
  };
7692
8821
  };
7693
8822
  };
7694
8823
  };
7695
8824
  400: components["responses"]["BadRequest"];
8825
+ 401: components["responses"]["Unauthorized"];
7696
8826
  404: components["responses"]["NotFound"];
7697
8827
  };
7698
8828
  };
7699
- "change-password": {
8829
+ "generate-hash": {
7700
8830
  parameters: {
7701
8831
  query?: never;
7702
8832
  header?: never;
@@ -7706,12 +8836,15 @@ interface operations {
7706
8836
  requestBody: {
7707
8837
  content: {
7708
8838
  "application/json": {
7709
- /** @description The old password associated with the user's account. This parameter is crucial for verifying the user's identity before allowing a password change. */
7710
- old_password: string;
7711
- /** @description The new password that the user intends to set for their account. This parameter is necessary for updating the password to enhance account security. */
7712
- new_password: string;
7713
- /** @description A confirmation of the new password. */
7714
- confirm_password: string;
8839
+ /** @constant */
8840
+ payment_gateway: "payu";
8841
+ /** @description Format:
8842
+ * For UPI id validation,
8843
+ * command|{upi id}
8844
+ *
8845
+ * For saving, retrieving cards,
8846
+ * command|{user id} */
8847
+ plain_text: string;
7715
8848
  };
7716
8849
  };
7717
8850
  };
@@ -7723,44 +8856,62 @@ interface operations {
7723
8856
  };
7724
8857
  content: {
7725
8858
  "application/json": {
7726
- /** @description A descriptive message confirming the success or failure of the change password operation. */
7727
- message: string;
7728
- /** @description Indicates whether the request was successful or failure (true for success, false for failure). */
7729
- success: boolean;
7730
- /** @description An object containing the response content. */
7731
- content: {
7732
- /** @description It is a string-based token utilized for authentication and authorization. */
7733
- access_token: string;
7734
- /** @description It is a string-based token designed for refreshing the user's access token. */
7735
- refresh_token: string;
8859
+ message?: string;
8860
+ success?: boolean;
8861
+ content?: {
8862
+ hash?: string;
7736
8863
  };
7737
8864
  };
7738
8865
  };
7739
8866
  };
7740
8867
  400: components["responses"]["BadRequest"];
7741
8868
  401: components["responses"]["Unauthorized"];
8869
+ 404: components["responses"]["NotFound"];
7742
8870
  };
7743
8871
  };
7744
- "forgot-password": {
8872
+ "list-payment-methods": {
7745
8873
  parameters: {
7746
- query?: never;
8874
+ query: {
8875
+ /** @description payment gateway code */
8876
+ payment_gateway: "PAYU" | "JUSPAY";
8877
+ };
7747
8878
  header?: never;
7748
8879
  path?: never;
7749
8880
  cookie?: never;
7750
8881
  };
7751
- requestBody: {
7752
- content: {
7753
- "application/json": {
7754
- /** @description A string representing the email address. */
7755
- email: string;
7756
- /** @description 10 digit phone number without country code. */
7757
- phone: string;
7758
- /** @description Two-letter code begin with a plus sign prefix that identifies different countries. By default it will be +91 if not provided.
7759
- * Use this key along with phone. Not necessary for email. */
7760
- country_code: string;
8882
+ requestBody?: never;
8883
+ responses: {
8884
+ /** @description OK */
8885
+ 200: {
8886
+ headers: {
8887
+ [name: string]: unknown;
8888
+ };
8889
+ content: {
8890
+ "application/json": {
8891
+ message?: string;
8892
+ success?: boolean;
8893
+ content?: {
8894
+ payment_methods?: (components["schemas"]["PayuPaymentMethod"] | components["schemas"]["JuspayPaymentMethod"])[];
8895
+ };
8896
+ };
7761
8897
  };
7762
8898
  };
8899
+ 400: components["responses"]["BadRequest"];
8900
+ 401: components["responses"]["Unauthorized"];
8901
+ 404: components["responses"]["NotFound"];
8902
+ };
8903
+ };
8904
+ "list-saved-cards": {
8905
+ parameters: {
8906
+ query: {
8907
+ /** @description payment gateway code */
8908
+ payment_gateway: "PAYU" | "JUSPAY";
8909
+ };
8910
+ header?: never;
8911
+ path?: never;
8912
+ cookie?: never;
7763
8913
  };
8914
+ requestBody?: never;
7764
8915
  responses: {
7765
8916
  /** @description OK */
7766
8917
  200: {
@@ -7769,14 +8920,10 @@ interface operations {
7769
8920
  };
7770
8921
  content: {
7771
8922
  "application/json": {
7772
- /** @description A descriptive message confirming the success or failure of the operation. */
7773
- message: string;
7774
- /** @description Indicates whether the request was successful or failure (true for success, false for failure). */
7775
- success: boolean;
7776
- /** @description An object containing the response content. */
7777
- content: {
7778
- /** @description A string representing the OTP token which facilitas the resetting of user’s account password. */
7779
- otp_token: string;
8923
+ message?: string;
8924
+ success?: boolean;
8925
+ content?: {
8926
+ data?: (components["schemas"]["PayuSavedCard"] | components["schemas"]["JuspaySavedCard"])[];
7780
8927
  };
7781
8928
  };
7782
8929
  };
@@ -7786,7 +8933,7 @@ interface operations {
7786
8933
  404: components["responses"]["NotFound"];
7787
8934
  };
7788
8935
  };
7789
- "reset-password": {
8936
+ "add-card": {
7790
8937
  parameters: {
7791
8938
  query?: never;
7792
8939
  header?: never;
@@ -7796,12 +8943,7 @@ interface operations {
7796
8943
  requestBody: {
7797
8944
  content: {
7798
8945
  "application/json": {
7799
- /** @description The new password that the user wants to set for their account. */
7800
- new_password: string;
7801
- /** @description A confirmation of the new password. */
7802
- confirm_password: string;
7803
- /** @description A string representing the OTP token which facilitas the resetting of user’s account password. */
7804
- otp_token: string;
8946
+ "card-details": components["schemas"]["PayuCardPayload"] | components["schemas"]["JuspayCardPayload"];
7805
8947
  };
7806
8948
  };
7807
8949
  };
@@ -7813,31 +8955,31 @@ interface operations {
7813
8955
  };
7814
8956
  content: {
7815
8957
  "application/json": {
7816
- /** @description A descriptive message confirming the success or failure of the reset password operation. */
7817
8958
  message: string;
7818
- /** @description Indicates whether the request was successful or failure (true for success, false for failure). */
7819
8959
  success: boolean;
7820
- /** @description An object containing the response content. */
7821
8960
  content: {
7822
- /** @description It is a string-based token utilized for authentication and authorization. */
7823
- access_token: string;
7824
- /** @description It is a string-based token designed for refreshing the user's access token. */
7825
- refresh_token: string;
8961
+ /** @enum {string} */
8962
+ readonly payment_gateway: "juspay" | "payu";
8963
+ "card-details": components["schemas"]["PayuCreateCardResponse"] | components["schemas"]["JuspayCreateCardResponse"];
7826
8964
  };
7827
8965
  };
7828
8966
  };
7829
8967
  };
7830
8968
  400: components["responses"]["BadRequest"];
8969
+ 401: components["responses"]["Unauthorized"];
8970
+ 404: components["responses"]["NotFound"];
7831
8971
  };
7832
8972
  };
7833
- "get-notification-preferences": {
8973
+ "verify-vpa": {
7834
8974
  parameters: {
7835
- query?: never;
7836
- header?: never;
7837
- path: {
7838
- /** @description user id */
7839
- id: string;
8975
+ query: {
8976
+ /** @description payment gateway code */
8977
+ payment_gateway: "PAYU" | "JUSPAY";
8978
+ /** @description The Virtual Payment Address or VPA is a unique ID given to an individual using the Unified Payment Interface (UPI) service. */
8979
+ vpa?: string;
7840
8980
  };
8981
+ header?: never;
8982
+ path?: never;
7841
8983
  cookie?: never;
7842
8984
  };
7843
8985
  requestBody?: never;
@@ -7849,14 +8991,11 @@ interface operations {
7849
8991
  };
7850
8992
  content: {
7851
8993
  "application/json": {
7852
- /** @description A descriptive message confirming the success or failure of the operation. */
7853
- message: string;
7854
- /** @description Indicates whether the request was successful or failure (true for success, false for failure). */
7855
- success: boolean;
7856
- /** @description An object containing the response content. */
7857
- content: {
7858
- /** @description An object containing the user's notification preferences. */
7859
- notification_preferences: components["schemas"]["NotificationPreferences"];
8994
+ message?: string;
8995
+ success?: boolean;
8996
+ content?: {
8997
+ vpa?: string;
8998
+ status?: string;
7860
8999
  };
7861
9000
  };
7862
9001
  };
@@ -7866,22 +9005,16 @@ interface operations {
7866
9005
  404: components["responses"]["NotFound"];
7867
9006
  };
7868
9007
  };
7869
- "update-notification-preferences": {
9008
+ "create-juspay-order": {
7870
9009
  parameters: {
7871
9010
  query?: never;
7872
9011
  header?: never;
7873
- path: {
7874
- /** @description user id */
7875
- id: string;
7876
- };
9012
+ path?: never;
7877
9013
  cookie?: never;
7878
9014
  };
7879
9015
  requestBody: {
7880
9016
  content: {
7881
- "application/json": {
7882
- /** @description An object containing the user's notification preferences. */
7883
- notification_preferences?: components["schemas"]["NotificationPreferences"];
7884
- };
9017
+ "application/json": components["schemas"]["JuspayCreateOrderPayload"];
7885
9018
  };
7886
9019
  };
7887
9020
  responses: {
@@ -7892,14 +9025,10 @@ interface operations {
7892
9025
  };
7893
9026
  content: {
7894
9027
  "application/json": {
7895
- /** @description A descriptive message confirming the success or failure of the operation. */
7896
9028
  message: string;
7897
- /** @description Indicates whether the request was successful or failure (true for success, false for failure). */
7898
9029
  success: boolean;
7899
- /** @description An object containing the response content. */
7900
9030
  content: {
7901
- /** @description An object containing the user's notification preferences. */
7902
- notification_preferences: components["schemas"]["NotificationPreferences"];
9031
+ data?: components["schemas"]["JuspayOrder"];
7903
9032
  };
7904
9033
  };
7905
9034
  };
@@ -7909,22 +9038,16 @@ interface operations {
7909
9038
  404: components["responses"]["NotFound"];
7910
9039
  };
7911
9040
  };
7912
- "create-notification-preferences": {
9041
+ "create-juspay-customer": {
7913
9042
  parameters: {
7914
9043
  query?: never;
7915
9044
  header?: never;
7916
- path: {
7917
- /** @description user id */
7918
- id: string;
7919
- };
9045
+ path?: never;
7920
9046
  cookie?: never;
7921
9047
  };
7922
9048
  requestBody: {
7923
9049
  content: {
7924
- "application/json": {
7925
- /** @description An object containing the user's notification preferences. */
7926
- notification_preferences: components["schemas"]["NotificationPreferences"];
7927
- };
9050
+ "application/json": components["schemas"]["JuspayCreateCustomerPayload"];
7928
9051
  };
7929
9052
  };
7930
9053
  responses: {
@@ -7935,14 +9058,10 @@ interface operations {
7935
9058
  };
7936
9059
  content: {
7937
9060
  "application/json": {
7938
- /** @description A descriptive message confirming the success or failure of the operation. */
7939
9061
  message: string;
7940
- /** @description Indicates whether the request was successful or failure (true for success, false for failure). */
7941
9062
  success: boolean;
7942
- /** @description An object containing the response content. */
7943
9063
  content: {
7944
- /** @description An object containing the user's notification preferences. */
7945
- notification_preferences: components["schemas"]["NotificationPreferences"];
9064
+ data?: components["schemas"]["JuspayCustomer"];
7946
9065
  };
7947
9066
  };
7948
9067
  };
@@ -7952,18 +9071,17 @@ interface operations {
7952
9071
  404: components["responses"]["NotFound"];
7953
9072
  };
7954
9073
  };
7955
- "generate-otp": {
9074
+ "get-juspay-customer": {
7956
9075
  parameters: {
7957
9076
  query?: never;
7958
9077
  header?: never;
7959
- path?: never;
7960
- cookie?: never;
7961
- };
7962
- requestBody: {
7963
- content: {
7964
- "application/json": components["schemas"]["GenerateOtpWithPhone"] | components["schemas"]["GenerateOtpWithEmail"];
9078
+ path: {
9079
+ /** @description Commercengine User Id */
9080
+ "user-id": string;
7965
9081
  };
9082
+ cookie?: never;
7966
9083
  };
9084
+ requestBody?: never;
7967
9085
  responses: {
7968
9086
  /** @description OK */
7969
9087
  200: {
@@ -7972,25 +9090,20 @@ interface operations {
7972
9090
  };
7973
9091
  content: {
7974
9092
  "application/json": {
7975
- /** @description A descriptive message confirming the success or failure of the operation. */
7976
9093
  message: string;
7977
- /** @description Indicates whether the request was successful or failure (true for success, false for failure). */
7978
9094
  success: boolean;
7979
- /** @description An object containing the response content. */
7980
9095
  content: {
7981
- /** @description A string representing the OTP token. */
7982
- otp_token: string;
7983
- /** @description This is used for verifying OTP or using subsequent APIs call. */
7984
- otp_action: string;
9096
+ data?: components["schemas"]["JuspayCustomer"];
7985
9097
  };
7986
9098
  };
7987
9099
  };
7988
9100
  };
7989
9101
  400: components["responses"]["BadRequest"];
7990
9102
  401: components["responses"]["Unauthorized"];
9103
+ 404: components["responses"]["NotFound"];
7991
9104
  };
7992
9105
  };
7993
- logout: {
9106
+ "list-countries": {
7994
9107
  parameters: {
7995
9108
  query?: never;
7996
9109
  header?: never;
@@ -8006,18 +9119,10 @@ interface operations {
8006
9119
  };
8007
9120
  content: {
8008
9121
  "application/json": {
8009
- /** @description A descriptive message confirming the success or failure of the operation. */
8010
- message: string;
8011
- /** @description Indicates whether the request was successful or failure (true for success, false for failure). */
8012
- success: boolean;
8013
- /** @description An object containing the response content. */
8014
- content: {
8015
- /** @description It is a string-based token utilized for authentication and authorization. */
8016
- access_token: string;
8017
- /** @description It is a string-based token designed for refreshing the user's access token. */
8018
- refresh_token: string;
8019
- /** @description An object representing user details. */
8020
- user: components["schemas"]["User"];
9122
+ message?: string;
9123
+ success?: boolean;
9124
+ content?: {
9125
+ countries?: components["schemas"]["Country"][];
8021
9126
  };
8022
9127
  };
8023
9128
  };
@@ -8027,13 +9132,13 @@ interface operations {
8027
9132
  404: components["responses"]["NotFound"];
8028
9133
  };
8029
9134
  };
8030
- "list-user-reviews": {
9135
+ "list-country-states": {
8031
9136
  parameters: {
8032
9137
  query?: never;
8033
9138
  header?: never;
8034
9139
  path: {
8035
- /** @description user id */
8036
- user_id: string;
9140
+ /** @description country iso code in 2 chars. ex. IN for India */
9141
+ country_iso_code: string;
8037
9142
  };
8038
9143
  cookie?: never;
8039
9144
  };
@@ -8049,8 +9154,7 @@ interface operations {
8049
9154
  message?: string;
8050
9155
  success?: boolean;
8051
9156
  content?: {
8052
- reviews?: components["schemas"]["CustomerReview"][];
8053
- ready_for_review?: components["schemas"]["CustomerReadyForReview"][];
9157
+ states?: components["schemas"]["CountryState"][];
8054
9158
  };
8055
9159
  };
8056
9160
  };
@@ -8060,23 +9164,24 @@ interface operations {
8060
9164
  404: components["responses"]["NotFound"];
8061
9165
  };
8062
9166
  };
8063
- "check-verification-status": {
9167
+ "list-country-pincodes": {
8064
9168
  parameters: {
8065
- query?: never;
9169
+ query?: {
9170
+ /** @description pincode. atleast 3 initial chars require to use this param */
9171
+ pincode?: string;
9172
+ /** @description no of rows per page */
9173
+ limit?: number;
9174
+ /** @description page number of pagination list */
9175
+ page?: number;
9176
+ };
8066
9177
  header?: never;
8067
- path?: never;
8068
- cookie?: never;
8069
- };
8070
- requestBody: {
8071
- content: {
8072
- "application/json": {
8073
- /** @description A string representing the phone number. */
8074
- phone?: string[];
8075
- /** @description A string representing the email address. */
8076
- email?: string[];
8077
- };
9178
+ path: {
9179
+ /** @description Country iso code with 2 chars. ex. IN for india */
9180
+ country_iso_code: string;
8078
9181
  };
9182
+ cookie?: never;
8079
9183
  };
9184
+ requestBody?: never;
8080
9185
  responses: {
8081
9186
  /** @description OK */
8082
9187
  200: {
@@ -8085,16 +9190,10 @@ interface operations {
8085
9190
  };
8086
9191
  content: {
8087
9192
  "application/json": {
8088
- /** @description A descriptive message confirming the success or failure of the operation. */
8089
- message: string;
8090
- /** @description Indicates whether the request was successful or failure (true for success, false for failure). */
8091
- success: boolean;
8092
- /** @description An object containing the response content. */
8093
- content: {
8094
- /** @description An array containing verified phone numbers for the user */
8095
- verified_phone: string[];
8096
- /** @description An array containing verified email address for the user. */
8097
- verified_email: string[];
9193
+ message?: string;
9194
+ success?: boolean;
9195
+ content?: {
9196
+ pincodes?: components["schemas"]["Pincode"][];
8098
9197
  };
8099
9198
  };
8100
9199
  };
@@ -8104,28 +9203,14 @@ interface operations {
8104
9203
  404: components["responses"]["NotFound"];
8105
9204
  };
8106
9205
  };
8107
- "generate-hash": {
9206
+ "list-returns": {
8108
9207
  parameters: {
8109
9208
  query?: never;
8110
9209
  header?: never;
8111
9210
  path?: never;
8112
9211
  cookie?: never;
8113
9212
  };
8114
- requestBody: {
8115
- content: {
8116
- "application/json": {
8117
- /** @constant */
8118
- payment_gateway: "payu";
8119
- /** @description Format:
8120
- * For UPI id validation,
8121
- * command|{upi id}
8122
- *
8123
- * For saving, retrieving cards,
8124
- * command|{user id} */
8125
- plain_text: string;
8126
- };
8127
- };
8128
- };
9213
+ requestBody?: never;
8129
9214
  responses: {
8130
9215
  /** @description OK */
8131
9216
  200: {
@@ -8137,7 +9222,7 @@ interface operations {
8137
9222
  message?: string;
8138
9223
  success?: boolean;
8139
9224
  content?: {
8140
- hash?: string;
9225
+ returns?: components["schemas"]["OrderReturn"][];
8141
9226
  };
8142
9227
  };
8143
9228
  };
@@ -8147,17 +9232,18 @@ interface operations {
8147
9232
  404: components["responses"]["NotFound"];
8148
9233
  };
8149
9234
  };
8150
- "list-payment-methods": {
9235
+ "track-analytics-event": {
8151
9236
  parameters: {
8152
- query: {
8153
- /** @description payment gateway code */
8154
- payment_gateway: "PAYU" | "JUSPAY";
8155
- };
9237
+ query?: never;
8156
9238
  header?: never;
8157
9239
  path?: never;
8158
9240
  cookie?: never;
8159
9241
  };
8160
- requestBody?: never;
9242
+ requestBody: {
9243
+ content: {
9244
+ "application/json": components["schemas"]["AnalyticsEvent"];
9245
+ };
9246
+ };
8161
9247
  responses: {
8162
9248
  /** @description OK */
8163
9249
  200: {
@@ -8168,28 +9254,27 @@ interface operations {
8168
9254
  "application/json": {
8169
9255
  message?: string;
8170
9256
  success?: boolean;
8171
- content?: {
8172
- payment_methods?: (components["schemas"]["PayuPaymentMethod"] | components["schemas"]["JuspayPaymentMethod"])[];
8173
- };
8174
9257
  };
8175
9258
  };
8176
9259
  };
8177
9260
  400: components["responses"]["BadRequest"];
8178
9261
  401: components["responses"]["Unauthorized"];
8179
- 404: components["responses"]["NotFound"];
8180
9262
  };
8181
9263
  };
8182
- "list-saved-cards": {
9264
+ "subscribe-newsletter": {
8183
9265
  parameters: {
8184
- query: {
8185
- /** @description payment gateway code */
8186
- payment_gateway: "PAYU" | "JUSPAY";
8187
- };
9266
+ query?: never;
8188
9267
  header?: never;
8189
9268
  path?: never;
8190
9269
  cookie?: never;
8191
9270
  };
8192
- requestBody?: never;
9271
+ requestBody: {
9272
+ content: {
9273
+ "application/json": {
9274
+ email: string;
9275
+ };
9276
+ };
9277
+ };
8193
9278
  responses: {
8194
9279
  /** @description OK */
8195
9280
  200: {
@@ -8200,31 +9285,21 @@ interface operations {
8200
9285
  "application/json": {
8201
9286
  message?: string;
8202
9287
  success?: boolean;
8203
- content?: {
8204
- data?: (components["schemas"]["PayuSavedCard"] | components["schemas"]["JuspaySavedCard"])[];
8205
- };
8206
9288
  };
8207
9289
  };
8208
9290
  };
8209
9291
  400: components["responses"]["BadRequest"];
8210
9292
  401: components["responses"]["Unauthorized"];
8211
- 404: components["responses"]["NotFound"];
8212
9293
  };
8213
9294
  };
8214
- "add-card": {
9295
+ "list-subscriptions": {
8215
9296
  parameters: {
8216
9297
  query?: never;
8217
9298
  header?: never;
8218
9299
  path?: never;
8219
9300
  cookie?: never;
8220
9301
  };
8221
- requestBody: {
8222
- content: {
8223
- "application/json": {
8224
- "card-details": components["schemas"]["PayuCardPayload"] | components["schemas"]["JuspayCardPayload"];
8225
- };
8226
- };
8227
- };
9302
+ requestBody?: never;
8228
9303
  responses: {
8229
9304
  /** @description OK */
8230
9305
  200: {
@@ -8236,9 +9311,8 @@ interface operations {
8236
9311
  message: string;
8237
9312
  success: boolean;
8238
9313
  content: {
8239
- /** @enum {string} */
8240
- readonly payment_gateway: "juspay" | "payu";
8241
- "card-details": components["schemas"]["PayuCreateCardResponse"] | components["schemas"]["JuspayCreateCardResponse"];
9314
+ subscriptions: components["schemas"]["Subscription"][];
9315
+ pagination: components["schemas"]["Pagination"];
8242
9316
  };
8243
9317
  };
8244
9318
  };
@@ -8248,19 +9322,18 @@ interface operations {
8248
9322
  404: components["responses"]["NotFound"];
8249
9323
  };
8250
9324
  };
8251
- "verify-vpa": {
9325
+ "create-subscription": {
8252
9326
  parameters: {
8253
- query: {
8254
- /** @description payment gateway code */
8255
- payment_gateway: "PAYU" | "JUSPAY";
8256
- /** @description The Virtual Payment Address or VPA is a unique ID given to an individual using the Unified Payment Interface (UPI) service. */
8257
- vpa?: string;
8258
- };
9327
+ query?: never;
8259
9328
  header?: never;
8260
9329
  path?: never;
8261
9330
  cookie?: never;
8262
9331
  };
8263
- requestBody?: never;
9332
+ requestBody: {
9333
+ content: {
9334
+ "application/json": components["schemas"]["CreateSubscription"];
9335
+ };
9336
+ };
8264
9337
  responses: {
8265
9338
  /** @description OK */
8266
9339
  200: {
@@ -8269,32 +9342,29 @@ interface operations {
8269
9342
  };
8270
9343
  content: {
8271
9344
  "application/json": {
8272
- message?: string;
8273
- success?: boolean;
8274
- content?: {
8275
- vpa?: string;
8276
- status?: string;
9345
+ message: string;
9346
+ success: boolean;
9347
+ content: {
9348
+ subscription: components["schemas"]["SubscriptionDetail"];
8277
9349
  };
8278
9350
  };
8279
9351
  };
8280
9352
  };
8281
9353
  400: components["responses"]["BadRequest"];
8282
9354
  401: components["responses"]["Unauthorized"];
8283
- 404: components["responses"]["NotFound"];
8284
9355
  };
8285
9356
  };
8286
- "create-juspay-order": {
9357
+ "get-subscription": {
8287
9358
  parameters: {
8288
9359
  query?: never;
8289
9360
  header?: never;
8290
- path?: never;
8291
- cookie?: never;
8292
- };
8293
- requestBody: {
8294
- content: {
8295
- "application/json": components["schemas"]["JuspayCreateOrderPayload"];
9361
+ path: {
9362
+ /** @description subscription id */
9363
+ id: string;
8296
9364
  };
9365
+ cookie?: never;
8297
9366
  };
9367
+ requestBody?: never;
8298
9368
  responses: {
8299
9369
  /** @description OK */
8300
9370
  200: {
@@ -8306,7 +9376,7 @@ interface operations {
8306
9376
  message: string;
8307
9377
  success: boolean;
8308
9378
  content: {
8309
- data?: components["schemas"]["JuspayOrder"];
9379
+ subscription: components["schemas"]["SubscriptionDetail"];
8310
9380
  };
8311
9381
  };
8312
9382
  };
@@ -8316,16 +9386,19 @@ interface operations {
8316
9386
  404: components["responses"]["NotFound"];
8317
9387
  };
8318
9388
  };
8319
- "create-juspay-customer": {
9389
+ "update-subscription": {
8320
9390
  parameters: {
8321
9391
  query?: never;
8322
9392
  header?: never;
8323
- path?: never;
9393
+ path: {
9394
+ /** @description subscription id */
9395
+ id: string;
9396
+ };
8324
9397
  cookie?: never;
8325
9398
  };
8326
9399
  requestBody: {
8327
9400
  content: {
8328
- "application/json": components["schemas"]["JuspayCreateCustomerPayload"];
9401
+ "application/json": components["schemas"]["UpdatePhysicalProductSubscription"] | components["schemas"]["UpdateDigitalProductSubscription"] | components["schemas"]["PauseSubscription"] | components["schemas"]["RevokeSubscription"];
8329
9402
  };
8330
9403
  };
8331
9404
  responses: {
@@ -8339,7 +9412,7 @@ interface operations {
8339
9412
  message: string;
8340
9413
  success: boolean;
8341
9414
  content: {
8342
- data?: components["schemas"]["JuspayCustomer"];
9415
+ subscription: components["schemas"]["SubscriptionDetail"];
8343
9416
  };
8344
9417
  };
8345
9418
  };
@@ -8349,17 +9422,20 @@ interface operations {
8349
9422
  404: components["responses"]["NotFound"];
8350
9423
  };
8351
9424
  };
8352
- "get-juspay-customer": {
9425
+ "pair-pos-device": {
8353
9426
  parameters: {
8354
9427
  query?: never;
8355
9428
  header?: never;
8356
- path: {
8357
- /** @description Commercengine User Id */
8358
- "user-id": string;
8359
- };
9429
+ path?: never;
8360
9430
  cookie?: never;
8361
9431
  };
8362
- requestBody?: never;
9432
+ requestBody?: {
9433
+ content: {
9434
+ "application/json": {
9435
+ pairing_code: string;
9436
+ };
9437
+ };
9438
+ };
8363
9439
  responses: {
8364
9440
  /** @description OK */
8365
9441
  200: {
@@ -8368,27 +9444,37 @@ interface operations {
8368
9444
  };
8369
9445
  content: {
8370
9446
  "application/json": {
8371
- message: string;
8372
- success: boolean;
8373
- content: {
8374
- data?: components["schemas"]["JuspayCustomer"];
9447
+ message?: string;
9448
+ success?: string;
9449
+ content?: {
9450
+ device?: components["schemas"]["PosDevice"];
8375
9451
  };
8376
9452
  };
8377
9453
  };
8378
9454
  };
8379
- 400: components["responses"]["BadRequest"];
8380
- 401: components["responses"]["Unauthorized"];
8381
- 404: components["responses"]["NotFound"];
8382
9455
  };
8383
9456
  };
8384
- "list-countries": {
9457
+ "login-pos-device-with-phone": {
8385
9458
  parameters: {
8386
9459
  query?: never;
8387
9460
  header?: never;
8388
9461
  path?: never;
8389
9462
  cookie?: never;
8390
9463
  };
8391
- requestBody?: never;
9464
+ requestBody?: {
9465
+ content: {
9466
+ "application/json": {
9467
+ device_id: string;
9468
+ /** @description 10 digit phone number without country code. */
9469
+ phone: string;
9470
+ /**
9471
+ * @description Two-letter code begin with a plus sign prefix that identifies different countries. By default it will be +91 if not provided.
9472
+ * @default +91
9473
+ */
9474
+ country_code?: string;
9475
+ };
9476
+ };
9477
+ };
8392
9478
  responses: {
8393
9479
  /** @description OK */
8394
9480
  200: {
@@ -8397,30 +9483,39 @@ interface operations {
8397
9483
  };
8398
9484
  content: {
8399
9485
  "application/json": {
8400
- message?: string;
8401
- success?: boolean;
8402
- content?: {
8403
- countries?: components["schemas"]["Country"][];
9486
+ message: string;
9487
+ success: string;
9488
+ content: {
9489
+ otp_token: string;
9490
+ /** @enum {unknown} */
9491
+ otp_action: "login";
8404
9492
  };
8405
9493
  };
8406
9494
  };
8407
9495
  };
8408
- 400: components["responses"]["BadRequest"];
8409
- 401: components["responses"]["Unauthorized"];
8410
- 404: components["responses"]["NotFound"];
8411
9496
  };
8412
9497
  };
8413
- "list-country-states": {
9498
+ "login-pos-device-with-whatsapp": {
8414
9499
  parameters: {
8415
9500
  query?: never;
8416
9501
  header?: never;
8417
- path: {
8418
- /** @description country iso code in 2 chars. ex. IN for India */
8419
- country_iso_code: string;
8420
- };
9502
+ path?: never;
8421
9503
  cookie?: never;
8422
9504
  };
8423
- requestBody?: never;
9505
+ requestBody?: {
9506
+ content: {
9507
+ "application/json": {
9508
+ device_id: string;
9509
+ /** @description 10 digit phone number without country code linked with WhatsApp. */
9510
+ phone: string;
9511
+ /**
9512
+ * @description Two-letter code begin with a plus sign prefix that identifies different countries. By default it will be +91 if not provided.
9513
+ * @default +91
9514
+ */
9515
+ country_code?: string;
9516
+ };
9517
+ };
9518
+ };
8424
9519
  responses: {
8425
9520
  /** @description OK */
8426
9521
  200: {
@@ -8429,37 +9524,33 @@ interface operations {
8429
9524
  };
8430
9525
  content: {
8431
9526
  "application/json": {
8432
- message?: string;
8433
- success?: boolean;
8434
- content?: {
8435
- states?: components["schemas"]["CountryState"][];
9527
+ message: string;
9528
+ success: string;
9529
+ content: {
9530
+ otp_token: string;
9531
+ /** @enum {unknown} */
9532
+ otp_action: "login";
8436
9533
  };
8437
9534
  };
8438
9535
  };
8439
9536
  };
8440
- 400: components["responses"]["BadRequest"];
8441
- 401: components["responses"]["Unauthorized"];
8442
- 404: components["responses"]["NotFound"];
8443
9537
  };
8444
9538
  };
8445
- "list-country-pincodes": {
9539
+ "login-pos-device-with-email": {
8446
9540
  parameters: {
8447
- query?: {
8448
- /** @description pincode. atleast 3 initial chars require to use this param */
8449
- pincode?: string;
8450
- /** @description no of rows per page */
8451
- limit?: number;
8452
- /** @description page number of pagination list */
8453
- page?: number;
8454
- };
9541
+ query?: never;
8455
9542
  header?: never;
8456
- path: {
8457
- /** @description Country iso code with 2 chars. ex. IN for india */
8458
- country_iso_code: string;
8459
- };
9543
+ path?: never;
8460
9544
  cookie?: never;
8461
9545
  };
8462
- requestBody?: never;
9546
+ requestBody?: {
9547
+ content: {
9548
+ "application/json": {
9549
+ device_id: string;
9550
+ email: string;
9551
+ };
9552
+ };
9553
+ };
8463
9554
  responses: {
8464
9555
  /** @description OK */
8465
9556
  200: {
@@ -8468,27 +9559,40 @@ interface operations {
8468
9559
  };
8469
9560
  content: {
8470
9561
  "application/json": {
8471
- message?: string;
8472
- success?: boolean;
8473
- content?: {
8474
- pincodes?: components["schemas"]["Pincode"][];
9562
+ message: string;
9563
+ success: string;
9564
+ content: {
9565
+ otp_token: string;
9566
+ /** @enum {unknown} */
9567
+ otp_action: "login";
8475
9568
  };
8476
9569
  };
8477
9570
  };
8478
9571
  };
8479
- 400: components["responses"]["BadRequest"];
8480
- 401: components["responses"]["Unauthorized"];
8481
- 404: components["responses"]["NotFound"];
8482
9572
  };
8483
9573
  };
8484
- "list-returns": {
9574
+ "verify-pos-login-otp": {
8485
9575
  parameters: {
8486
9576
  query?: never;
8487
9577
  header?: never;
8488
9578
  path?: never;
8489
9579
  cookie?: never;
8490
9580
  };
8491
- requestBody?: never;
9581
+ requestBody?: {
9582
+ content: {
9583
+ "application/json": {
9584
+ /** @description A string representing the one-time password. */
9585
+ otp: string;
9586
+ /** @description A string representing the OTP token. */
9587
+ otp_token: string;
9588
+ /**
9589
+ * @description A string indicating the action to be performed.
9590
+ * @enum {unknown}
9591
+ */
9592
+ otp_action: "login";
9593
+ };
9594
+ };
9595
+ };
8492
9596
  responses: {
8493
9597
  /** @description OK */
8494
9598
  200: {
@@ -8497,29 +9601,30 @@ interface operations {
8497
9601
  };
8498
9602
  content: {
8499
9603
  "application/json": {
8500
- message?: string;
8501
- success?: boolean;
8502
- content?: {
8503
- returns?: components["schemas"]["OrderReturn"][];
9604
+ message: string;
9605
+ success: string;
9606
+ content: {
9607
+ user: components["schemas"]["PosUser"];
9608
+ access_token: string;
9609
+ refresh_token: string;
8504
9610
  };
8505
9611
  };
8506
9612
  };
8507
9613
  };
8508
- 400: components["responses"]["BadRequest"];
8509
- 401: components["responses"]["Unauthorized"];
8510
- 404: components["responses"]["NotFound"];
8511
9614
  };
8512
9615
  };
8513
- "track-analytics-event": {
9616
+ "refresh-pos-access-token": {
8514
9617
  parameters: {
8515
9618
  query?: never;
8516
9619
  header?: never;
8517
9620
  path?: never;
8518
9621
  cookie?: never;
8519
9622
  };
8520
- requestBody: {
9623
+ requestBody?: {
8521
9624
  content: {
8522
- "application/json": components["schemas"]["AnalyticsEvent"];
9625
+ "application/json": {
9626
+ refresh_token: string;
9627
+ };
8523
9628
  };
8524
9629
  };
8525
9630
  responses: {
@@ -8531,25 +9636,27 @@ interface operations {
8531
9636
  content: {
8532
9637
  "application/json": {
8533
9638
  message?: string;
8534
- success?: boolean;
9639
+ success?: string;
9640
+ content?: {
9641
+ access_token?: string;
9642
+ refresh_token?: string;
9643
+ };
8535
9644
  };
8536
9645
  };
8537
9646
  };
8538
- 400: components["responses"]["BadRequest"];
8539
- 401: components["responses"]["Unauthorized"];
8540
9647
  };
8541
9648
  };
8542
- "subscribe-newsletter": {
9649
+ "create-pos-cart": {
8543
9650
  parameters: {
8544
9651
  query?: never;
8545
9652
  header?: never;
8546
9653
  path?: never;
8547
9654
  cookie?: never;
8548
9655
  };
8549
- requestBody: {
9656
+ requestBody?: {
8550
9657
  content: {
8551
9658
  "application/json": {
8552
- email: string;
9659
+ items?: components["schemas"]["UpdateCartItem"][];
8553
9660
  };
8554
9661
  };
8555
9662
  };
@@ -8562,22 +9669,30 @@ interface operations {
8562
9669
  content: {
8563
9670
  "application/json": {
8564
9671
  message?: string;
8565
- success?: boolean;
9672
+ success?: string;
9673
+ content?: {
9674
+ cart?: components["schemas"]["Cart"];
9675
+ };
8566
9676
  };
8567
9677
  };
8568
9678
  };
8569
- 400: components["responses"]["BadRequest"];
8570
- 401: components["responses"]["Unauthorized"];
8571
9679
  };
8572
9680
  };
8573
- "list-subscriptions": {
9681
+ "get-pos-cart": {
8574
9682
  parameters: {
8575
9683
  query?: never;
8576
9684
  header?: never;
8577
- path?: never;
9685
+ path: {
9686
+ /** @description cart id */
9687
+ id: string;
9688
+ };
8578
9689
  cookie?: never;
8579
9690
  };
8580
- requestBody?: never;
9691
+ requestBody?: {
9692
+ content: {
9693
+ "*/*"?: never;
9694
+ };
9695
+ };
8581
9696
  responses: {
8582
9697
  /** @description OK */
8583
9698
  200: {
@@ -8586,30 +9701,31 @@ interface operations {
8586
9701
  };
8587
9702
  content: {
8588
9703
  "application/json": {
8589
- message: string;
8590
- success: boolean;
8591
- content: {
8592
- subscriptions: components["schemas"]["Subscription"][];
8593
- pagination: components["schemas"]["Pagination"];
9704
+ message?: string;
9705
+ success?: string;
9706
+ content?: {
9707
+ cart?: components["schemas"]["Cart"];
8594
9708
  };
8595
9709
  };
8596
9710
  };
8597
9711
  };
8598
- 400: components["responses"]["BadRequest"];
8599
- 401: components["responses"]["Unauthorized"];
8600
- 404: components["responses"]["NotFound"];
8601
9712
  };
8602
9713
  };
8603
- "create-subscription": {
9714
+ "update-pos-cart": {
8604
9715
  parameters: {
8605
9716
  query?: never;
8606
9717
  header?: never;
8607
- path?: never;
9718
+ path: {
9719
+ /** @description cart id */
9720
+ id: string;
9721
+ };
8608
9722
  cookie?: never;
8609
9723
  };
8610
- requestBody: {
9724
+ requestBody?: {
8611
9725
  content: {
8612
- "application/json": components["schemas"]["CreateSubscription"];
9726
+ "application/json": {
9727
+ items?: components["schemas"]["UpdateCartItem"][];
9728
+ };
8613
9729
  };
8614
9730
  };
8615
9731
  responses: {
@@ -8620,29 +9736,31 @@ interface operations {
8620
9736
  };
8621
9737
  content: {
8622
9738
  "application/json": {
8623
- message: string;
8624
- success: boolean;
8625
- content: {
8626
- subscription: components["schemas"]["SubscriptionDetail"];
9739
+ message?: string;
9740
+ success?: string;
9741
+ content?: {
9742
+ cart?: components["schemas"]["Cart"];
8627
9743
  };
8628
9744
  };
8629
9745
  };
8630
9746
  };
8631
- 400: components["responses"]["BadRequest"];
8632
- 401: components["responses"]["Unauthorized"];
8633
9747
  };
8634
9748
  };
8635
- "get-subscription": {
9749
+ "update-pos-cart-customer": {
8636
9750
  parameters: {
8637
9751
  query?: never;
8638
9752
  header?: never;
8639
9753
  path: {
8640
- /** @description subscription id */
9754
+ /** @description cart id */
8641
9755
  id: string;
8642
9756
  };
8643
9757
  cookie?: never;
8644
9758
  };
8645
- requestBody?: never;
9759
+ requestBody?: {
9760
+ content: {
9761
+ "application/json": components["schemas"]["PosUpdateCustomerWithId"] | components["schemas"]["PosUpdateCustomerWithPhone"] | components["schemas"]["PosUpdateCustomerWithEmail"];
9762
+ };
9763
+ };
8646
9764
  responses: {
8647
9765
  /** @description OK */
8648
9766
  200: {
@@ -8651,32 +9769,32 @@ interface operations {
8651
9769
  };
8652
9770
  content: {
8653
9771
  "application/json": {
8654
- message: string;
8655
- success: boolean;
8656
- content: {
8657
- subscription: components["schemas"]["SubscriptionDetail"];
9772
+ message?: string;
9773
+ success?: string;
9774
+ content?: {
9775
+ cart?: components["schemas"]["Cart"];
8658
9776
  };
8659
9777
  };
8660
9778
  };
8661
9779
  };
8662
- 400: components["responses"]["BadRequest"];
8663
- 401: components["responses"]["Unauthorized"];
8664
- 404: components["responses"]["NotFound"];
8665
9780
  };
8666
9781
  };
8667
- "update-subscription": {
9782
+ "update-pos-cart-address": {
8668
9783
  parameters: {
8669
9784
  query?: never;
8670
9785
  header?: never;
8671
9786
  path: {
8672
- /** @description subscription id */
9787
+ /** @description cart id */
8673
9788
  id: string;
8674
9789
  };
8675
9790
  cookie?: never;
8676
9791
  };
8677
- requestBody: {
9792
+ requestBody?: {
8678
9793
  content: {
8679
- "application/json": components["schemas"]["UpdatePhysicalProductSubscription"] | components["schemas"]["UpdateDigitalProductSubscription"] | components["schemas"]["PauseSubscription"] | components["schemas"]["RevokeSubscription"];
9794
+ "application/json": {
9795
+ shipping_address: components["schemas"]["CustomerAddress"];
9796
+ billing_address?: components["schemas"]["CustomerAddress"];
9797
+ };
8680
9798
  };
8681
9799
  };
8682
9800
  responses: {
@@ -8687,17 +9805,14 @@ interface operations {
8687
9805
  };
8688
9806
  content: {
8689
9807
  "application/json": {
8690
- message: string;
8691
- success: boolean;
8692
- content: {
8693
- subscription: components["schemas"]["SubscriptionDetail"];
9808
+ message?: string;
9809
+ success?: string;
9810
+ content?: {
9811
+ cart?: components["schemas"]["Cart"];
8694
9812
  };
8695
9813
  };
8696
9814
  };
8697
9815
  };
8698
- 400: components["responses"]["BadRequest"];
8699
- 401: components["responses"]["Unauthorized"];
8700
- 404: components["responses"]["NotFound"];
8701
9816
  };
8702
9817
  };
8703
9818
  "order-created": {
@@ -9064,6 +10179,10 @@ type CreateCartAddressResponse = paths['/carts/{id}/address']['post']['responses
9064
10179
  type CreateCartAddressContent = CreateCartAddressResponse['content'];
9065
10180
  type CreateCartAddressPathParams = paths['/carts/{id}/address']['post']['parameters']['path'];
9066
10181
  type CreateCartAddressBody = NonNullable<paths['/carts/{id}/address']['post']['requestBody']>['content']['application/json'];
10182
+ type UpdateCartCustomerResponse = paths['/carts/{id}/update-customer']['post']['responses'][200]['content']['application/json'];
10183
+ type UpdateCartCustomerContent = UpdateCartCustomerResponse['content'];
10184
+ type UpdateCartCustomerPathParams = paths['/carts/{id}/update-customer']['post']['parameters']['path'];
10185
+ type UpdateCartCustomerBody = NonNullable<paths['/carts/{id}/update-customer']['post']['requestBody']>['content']['application/json'];
9067
10186
  type UpdateShippingMethodResponse = paths['/carts/{id}/shipping-method']['post']['responses'][200]['content']['application/json'];
9068
10187
  type UpdateShippingMethodContent = UpdateShippingMethodResponse['content'];
9069
10188
  type UpdateShippingMethodPathParams = paths['/carts/{id}/shipping-method']['post']['parameters']['path'];
@@ -9116,6 +10235,18 @@ type DeleteFromWishlistBody = NonNullable<paths['/wishlist/{user_id}']['delete']
9116
10235
  type CreateCustomerResponse = paths['/customers']['post']['responses'][200]['content']['application/json'];
9117
10236
  type CreateCustomerContent = CreateCustomerResponse['content'];
9118
10237
  type CreateCustomerBody = NonNullable<paths['/customers']['post']['requestBody']>['content']['application/json'];
10238
+ type EvaluatePromotionsResponse = paths['/carts/{id}/evaluate-promotions']['get']['responses'][200]['content']['application/json'];
10239
+ type EvaluatePromotionsContent = EvaluatePromotionsResponse['content'];
10240
+ type EvaluatePromotionsPathParams = paths['/carts/{id}/evaluate-promotions']['get']['parameters']['path'];
10241
+ type EvaluateCouponsResponse = paths['/carts/{id}/evaluate-coupons']['get']['responses'][200]['content']['application/json'];
10242
+ type EvaluateCouponsContent = EvaluateCouponsResponse['content'];
10243
+ type EvaluateCouponsPathParams = paths['/carts/{id}/evaluate-coupons']['get']['parameters']['path'];
10244
+ type EvaluatePosPromotionsResponse = paths['/pos/carts/{id}/evaluate-promotions']['get']['responses'][200]['content']['application/json'];
10245
+ type EvaluatePosPromotionsContent = EvaluatePosPromotionsResponse['content'];
10246
+ type EvaluatePosPromotionsPathParams = paths['/pos/carts/{id}/evaluate-promotions']['get']['parameters']['path'];
10247
+ type EvaluatePosCouponsResponse = paths['/pos/carts/{id}/evaluate-coupons']['get']['responses'][200]['content']['application/json'];
10248
+ type EvaluatePosCouponsContent = EvaluatePosCouponsResponse['content'];
10249
+ type EvaluatePosCouponsPathParams = paths['/pos/carts/{id}/evaluate-coupons']['get']['parameters']['path'];
9119
10250
  type GetCustomerDetailResponse = paths['/customers/{id}']['get']['responses'][200]['content']['application/json'];
9120
10251
  type GetCustomerDetailContent = GetCustomerDetailResponse['content'];
9121
10252
  type GetCustomerDetailPathParams = paths['/customers/{id}']['get']['parameters']['path'];
@@ -9349,6 +10480,42 @@ type UpdateSubscriptionResponse = paths['/subscriptions/{id}']['put']['responses
9349
10480
  type UpdateSubscriptionContent = UpdateSubscriptionResponse['content'];
9350
10481
  type UpdateSubscriptionPathParams = paths['/subscriptions/{id}']['put']['parameters']['path'];
9351
10482
  type UpdateSubscriptionBody = NonNullable<paths['/subscriptions/{id}']['put']['requestBody']>['content']['application/json'];
10483
+ type PairPosDeviceResponse = paths['/pos/auth/pair-device']['post']['responses'][200]['content']['application/json'];
10484
+ type PairPosDeviceContent = PairPosDeviceResponse['content'];
10485
+ type PairPosDeviceBody = NonNullable<paths['/pos/auth/pair-device']['post']['requestBody']>['content']['application/json'];
10486
+ type LoginPosDeviceWithPhoneResponse = paths['/pos/auth/login/phone']['post']['responses'][200]['content']['application/json'];
10487
+ type LoginPosDeviceWithPhoneContent = LoginPosDeviceWithPhoneResponse['content'];
10488
+ type LoginPosDeviceWithPhoneBody = NonNullable<paths['/pos/auth/login/phone']['post']['requestBody']>['content']['application/json'];
10489
+ type LoginPosDeviceWithWhatsappResponse = paths['/pos/auth/login/whatsapp']['post']['responses'][200]['content']['application/json'];
10490
+ type LoginPosDeviceWithWhatsappContent = LoginPosDeviceWithWhatsappResponse['content'];
10491
+ type LoginPosDeviceWithWhatsappBody = NonNullable<paths['/pos/auth/login/whatsapp']['post']['requestBody']>['content']['application/json'];
10492
+ type LoginPosDeviceWithEmailResponse = paths['/pos/auth/login/email']['post']['responses'][200]['content']['application/json'];
10493
+ type LoginPosDeviceWithEmailContent = LoginPosDeviceWithEmailResponse['content'];
10494
+ type LoginPosDeviceWithEmailBody = NonNullable<paths['/pos/auth/login/email']['post']['requestBody']>['content']['application/json'];
10495
+ type VerifyPosLoginOtpResponse = paths['/pos/auth/verify-otp']['post']['responses'][200]['content']['application/json'];
10496
+ type VerifyPosLoginOtpContent = VerifyPosLoginOtpResponse['content'];
10497
+ type VerifyPosLoginOtpBody = NonNullable<paths['/pos/auth/verify-otp']['post']['requestBody']>['content']['application/json'];
10498
+ type RefreshPosAccessTokenResponse = paths['/pos/auth/refresh-token']['post']['responses'][200]['content']['application/json'];
10499
+ type RefreshPosAccessTokenContent = RefreshPosAccessTokenResponse['content'];
10500
+ type RefreshPosAccessTokenBody = NonNullable<paths['/pos/auth/refresh-token']['post']['requestBody']>['content']['application/json'];
10501
+ type CreatePosCartResponse = paths['/pos/carts']['post']['responses'][200]['content']['application/json'];
10502
+ type CreatePosCartContent = CreatePosCartResponse['content'];
10503
+ type CreatePosCartBody = NonNullable<paths['/pos/carts']['post']['requestBody']>['content']['application/json'];
10504
+ type GetPosCartResponse = paths['/pos/carts/{id}']['get']['responses'][200]['content']['application/json'];
10505
+ type GetPosCartContent = GetPosCartResponse['content'];
10506
+ type GetPosCartPathParams = paths['/pos/carts/{id}']['get']['parameters']['path'];
10507
+ type UpdatePosCartResponse = paths['/pos/carts/{id}/items']['post']['responses'][200]['content']['application/json'];
10508
+ type UpdatePosCartContent = UpdatePosCartResponse['content'];
10509
+ type UpdatePosCartPathParams = paths['/pos/carts/{id}/items']['post']['parameters']['path'];
10510
+ type UpdatePosCartBody = NonNullable<paths['/pos/carts/{id}/items']['post']['requestBody']>['content']['application/json'];
10511
+ type UpdatePosCartCustomerResponse = paths['/pos/carts/{id}/update-customer']['post']['responses'][200]['content']['application/json'];
10512
+ type UpdatePosCartCustomerContent = UpdatePosCartCustomerResponse['content'];
10513
+ type UpdatePosCartCustomerPathParams = paths['/pos/carts/{id}/update-customer']['post']['parameters']['path'];
10514
+ type UpdatePosCartCustomerBody = NonNullable<paths['/pos/carts/{id}/update-customer']['post']['requestBody']>['content']['application/json'];
10515
+ type UpdatePosCartAddressResponse = paths['/pos/carts/{id}/address']['post']['responses'][200]['content']['application/json'];
10516
+ type UpdatePosCartAddressContent = UpdatePosCartAddressResponse['content'];
10517
+ type UpdatePosCartAddressPathParams = paths['/pos/carts/{id}/address']['post']['parameters']['path'];
10518
+ type UpdatePosCartAddressBody = NonNullable<paths['/pos/carts/{id}/address']['post']['requestBody']>['content']['application/json'];
9352
10519
 
9353
10520
  /**
9354
10521
  * Available API environments
@@ -9720,6 +10887,28 @@ declare class CartClient extends StorefrontAPIClient {
9720
10887
  * @returns Promise with all available promotions
9721
10888
  */
9722
10889
  getAvailablePromotions(headers?: ListPromotionsHeaderParams): Promise<ApiResult<ListPromotionsContent>>;
10890
+ /**
10891
+ * Evaluate promotions
10892
+ *
10893
+ * @param cartId - The ID of the cart
10894
+ * @returns Promise with evaluated promotions
10895
+ */
10896
+ evaluatePromotions(cartId: EvaluatePromotionsPathParams): Promise<ApiResult<EvaluatePromotionsContent>>;
10897
+ /**
10898
+ * Evaluate coupons
10899
+ *
10900
+ * @param cartId - The ID of the cart
10901
+ * @returns Promise with evaluated coupons
10902
+ */
10903
+ evaluateCoupons(cartId: EvaluateCouponsPathParams): Promise<ApiResult<EvaluateCouponsContent>>;
10904
+ /**
10905
+ * Update cart customer
10906
+ *
10907
+ * @param cartId - The ID of the cart
10908
+ * @param body - The body of the request
10909
+ * @returns Promise with updated cart
10910
+ */
10911
+ updateCartCustomer(cartId: UpdateCartCustomerPathParams, body: UpdateCartCustomerBody): Promise<ApiResult<UpdateCartCustomerContent>>;
9723
10912
  }
9724
10913
 
9725
10914
  /**
@@ -10478,4 +11667,4 @@ declare class StorefrontSDK {
10478
11667
  getDefaultHeaders(): SupportedDefaultHeaders | undefined;
10479
11668
  }
10480
11669
 
10481
- export { type AddCardBody, type AddCardContent, type AddCardResponse, type AddProfileImageContent, type AddProfileImageFormData, type AddProfileImagePathParams, type AddProfileImageResponse, type AddToWishlistBody, type AddToWishlistContent, type AddToWishlistPathParams, type AddToWishlistResponse, type ApiErrorResponse, type ApiResult, type ApplyCouponBody, type ApplyCouponContent, type ApplyCouponPathParams, type ApplyCouponResponse, AuthClient, BrowserTokenStorage, type CancelOrderBody, type CancelOrderContent, type CancelOrderPathParams, type CancelOrderResponse, CartClient, CatalogClient, type ChangePasswordBody, type ChangePasswordContent, type ChangePasswordResponse, type CheckPincodeServiceabilityContent, type CheckPincodeServiceabilityPathParams, type CheckPincodeServiceabilityResponse, type CheckVerificationStatusBody, type CheckVerificationStatusContent, type CheckVerificationStatusResponse, CookieTokenStorage, type CookieTokenStorageOptions, type CreateAddressBody, type CreateAddressContent, type CreateAddressPathParams, type CreateAddressResponse, type CreateCartAddressBody, type CreateCartAddressContent, type CreateCartAddressPathParams, type CreateCartAddressResponse, type CreateCartBody, type CreateCartContent, type CreateCartResponse, type CreateCustomerBody, type CreateCustomerContent, type CreateCustomerResponse, type CreateDocumentContent, type CreateDocumentFormData, type CreateDocumentPathParams, type CreateDocumentResponse, type CreateJuspayCustomerBody, type CreateJuspayCustomerContent, type CreateJuspayCustomerResponse, type CreateJuspayOrderBody, type CreateJuspayOrderContent, type CreateJuspayOrderResponse, type CreateNotificationPreferencesBody, type CreateNotificationPreferencesContent, type CreateNotificationPreferencesPathParams, type CreateNotificationPreferencesResponse, type CreateOrderBody, type CreateOrderContent, type CreateOrderResponse, type CreateOrderReturnBody, type CreateOrderReturnContent, type CreateOrderReturnPathParams, type CreateOrderReturnResponse, type CreateProductReviewFormData, type CreateProductReviewPathParams, type CreateProductReviewResponse, type CreateSubscriptionBody, type CreateSubscriptionContent, type CreateSubscriptionResponse, CustomerClient, type DeactivateUserPathParams, type DeactivateUserResponse, type DebugLoggerFn, type DeleteAddressPathParams, type DeleteAddressResponse, type DeleteCartPathParams, type DeleteCartResponse, type DeleteDocumentPathParams, type DeleteDocumentResponse, type DeleteFromWishlistBody, type DeleteFromWishlistContent, type DeleteFromWishlistPathParams, type DeleteFromWishlistResponse, type DeleteUserCartPathParams, type DeleteUserCartResponse, Environment, type ForgotPasswordBody, type ForgotPasswordContent, type ForgotPasswordResponse, type GenerateHashBody, type GenerateHashContent, type GenerateHashResponse, type GenerateOtpBody, type GenerateOtpContent, type GenerateOtpResponse, type GetAddressDetailContent, type GetAddressDetailPathParams, type GetAddressDetailResponse, type GetAnonymousTokenContent, type GetAnonymousTokenResponse, type GetCartContent, type GetCartPathParams, type GetCartResponse, type GetConfigContent, type GetConfigResponse, type GetCustomerDetailContent, type GetCustomerDetailPathParams, type GetCustomerDetailResponse, type GetDocumentContent, type GetDocumentPathParams, type GetDocumentResponse, type GetJuspayCustomerContent, type GetJuspayCustomerPathParams, type GetJuspayCustomerResponse, type GetLoyaltyDetailsContent, type GetLoyaltyDetailsPathParams, type GetLoyaltyDetailsResponse, type GetNotificationPreferencesContent, type GetNotificationPreferencesPathParams, type GetNotificationPreferencesResponse, type GetOrderDetailContent, type GetOrderDetailPathParams, type GetOrderDetailResponse, type GetOrderReturnDetailContent, type GetOrderReturnDetailPathParams, type GetOrderReturnDetailResponse, type GetPaymentStatusContent, type GetPaymentStatusPathParams, type GetPaymentStatusResponse, type GetProductDetailContent, type GetProductDetailHeaderParams, type GetProductDetailPathParams, type GetProductDetailResponse, type GetProfileImageContent, type GetProfileImagePathParams, type GetProfileImageResponse, type GetShippingMethodsBody, type GetShippingMethodsContent, type GetShippingMethodsResponse, type GetSubscriptionContent, type GetSubscriptionPathParams, type GetSubscriptionResponse, type GetUserCartContent, type GetUserCartPathParams, type GetUserCartResponse, type GetUserDetailContent, type GetUserDetailPathParams, type GetUserDetailResponse, type GetVariantDetailContent, type GetVariantDetailHeaderParams, type GetVariantDetailPathParams, type GetVariantDetailResponse, type GetWishlistContent, type GetWishlistPathParams, type GetWishlistResponse, HelpersClient, type ListAddressesContent, type ListAddressesPathParams, type ListAddressesQuery, type ListAddressesResponse, type ListCategoriesContent, type ListCategoriesQuery, type ListCategoriesResponse, type ListCountriesContent, type ListCountriesResponse, type ListCountryPincodesContent, type ListCountryPincodesPathParams, type ListCountryPincodesQuery, type ListCountryPincodesResponse, type ListCountryStatesContent, type ListCountryStatesPathParams, type ListCountryStatesResponse, type ListCouponsContent, type ListCouponsHeaderParams, type ListCouponsResponse, type ListCrosssellProductsContent, type ListCrosssellProductsHeaderParams, type ListCrosssellProductsQuery, type ListCrosssellProductsResponse, type ListDocumentsContent, type ListDocumentsPathParams, type ListDocumentsResponse, type ListKycDocumentContent, type ListKycDocumentResponse, type ListLoyaltyActivitiesContent, type ListLoyaltyActivitiesPathParams, type ListLoyaltyActivitiesQuery, type ListLoyaltyActivitiesResponse, type ListOrderPaymentsContent, type ListOrderPaymentsPathParams, type ListOrderPaymentsResponse, type ListOrderRefundsContent, type ListOrderRefundsPathParams, type ListOrderRefundsResponse, type ListOrderShipmentsContent, type ListOrderShipmentsPathParams, type ListOrderShipmentsResponse, type ListOrdersContent, type ListOrdersQuery, type ListOrdersResponse, type ListPaymentMethodsContent, type ListPaymentMethodsQuery, type ListPaymentMethodsResponse, type ListProductReviewsContent, type ListProductReviewsPathParams, type ListProductReviewsQuery, type ListProductReviewsResponse, type ListProductVariantsContent, type ListProductVariantsHeaderParams, type ListProductVariantsPathParams, type ListProductVariantsResponse, type ListProductsContent, type ListProductsHeaderParams, type ListProductsQuery, type ListProductsResponse, type ListPromotionsContent, type ListPromotionsHeaderParams, type ListPromotionsResponse, type ListReturnsContent, type ListReturnsResponse, type ListSavedCardsContent, type ListSavedCardsQuery, type ListSavedCardsResponse, type ListSimilarProductsContent, type ListSimilarProductsHeaderParams, type ListSimilarProductsQuery, type ListSimilarProductsResponse, type ListSkusContent, type ListSkusHeaderParams, type ListSkusQuery, type ListSkusResponse, type ListSubscriptionsContent, type ListSubscriptionsResponse, type ListUpsellProductsContent, type ListUpsellProductsHeaderParams, type ListUpsellProductsQuery, type ListUpsellProductsResponse, type ListUserReviewsContent, type ListUserReviewsPathParams, type ListUserReviewsResponse, type LoginWithEmailBody, type LoginWithEmailContent, type LoginWithEmailResponse, type LoginWithPasswordBody, type LoginWithPasswordContent, type LoginWithPasswordResponse, type LoginWithPhoneBody, type LoginWithPhoneContent, type LoginWithPhoneResponse, type LoginWithWhatsappBody, type LoginWithWhatsappContent, type LoginWithWhatsappResponse, type LogoutContent, type LogoutResponse, MemoryTokenStorage, OrderClient, type RedeemCreditBalanceBody, type RedeemCreditBalanceContent, type RedeemCreditBalancePathParams, type RedeemCreditBalanceResponse, type RedeemGiftCardBody, type RedeemGiftCardContent, type RedeemGiftCardPathParams, type RedeemGiftCardResponse, type RedeemLoyaltyPointsBody, type RedeemLoyaltyPointsContent, type RedeemLoyaltyPointsPathParams, type RedeemLoyaltyPointsResponse, type RefreshTokenBody, type RefreshTokenContent, type RefreshTokenResponse, type RegisterWithEmailBody, type RegisterWithEmailContent, type RegisterWithEmailResponse, type RegisterWithPasswordBody, type RegisterWithPasswordContent, type RegisterWithPasswordResponse, type RegisterWithPhoneBody, type RegisterWithPhoneContent, type RegisterWithPhoneResponse, type RegisterWithWhatsappBody, type RegisterWithWhatsappContent, type RegisterWithWhatsappResponse, type RemoveCouponContent, type RemoveCouponPathParams, type RemoveCouponResponse, type RemoveCreditBalanceContent, type RemoveCreditBalancePathParams, type RemoveCreditBalanceResponse, type RemoveGiftCardContent, type RemoveGiftCardPathParams, type RemoveGiftCardResponse, type RemoveLoyaltyPointsContent, type RemoveLoyaltyPointsPathParams, type RemoveLoyaltyPointsResponse, type RemoveProfileImagePathParams, type RemoveProfileImageResponse, type ResetPasswordBody, type ResetPasswordContent, type ResetPasswordResponse, ResponseUtils, type RetryOrderPaymentBody, type RetryOrderPaymentContent, type RetryOrderPaymentPathParams, type RetryOrderPaymentResponse, type SearchProductsBody, type SearchProductsContent, type SearchProductsHeaderParams, type SearchProductsResponse, ShippingClient, StoreConfigClient, StorefrontAPIClient, StorefrontSDK, type StorefrontSDKOptions, type SubscribeNewsletterBody, type SubscribeNewsletterResponse, type SupportedDefaultHeaders, type TokenStorage, type TrackAnalyticsEventBody, type TrackAnalyticsEventResponse, type UpdateAddressDetailBody, type UpdateAddressDetailContent, type UpdateAddressDetailPathParams, type UpdateAddressDetailResponse, type UpdateCartBody, type UpdateCartContent, type UpdateCartPathParams, type UpdateCartResponse, type UpdateCustomerBody, type UpdateCustomerContent, type UpdateCustomerPathParams, type UpdateCustomerResponse, type UpdateDocumentContent, type UpdateDocumentFormData, type UpdateDocumentPathParams, type UpdateDocumentResponse, type UpdateNotificationPreferencesBody, type UpdateNotificationPreferencesContent, type UpdateNotificationPreferencesPathParams, type UpdateNotificationPreferencesResponse, type UpdateProfileImageContent, type UpdateProfileImageFormData, type UpdateProfileImagePathParams, type UpdateProfileImageResponse, type UpdateShippingMethodBody, type UpdateShippingMethodContent, type UpdateShippingMethodPathParams, type UpdateShippingMethodResponse, type UpdateSubscriptionBody, type UpdateSubscriptionContent, type UpdateSubscriptionPathParams, type UpdateSubscriptionResponse, type UpdateUserBody, type UpdateUserContent, type UpdateUserPathParams, type UpdateUserResponse, type UserInfo, type VerifyDocumentBody, type VerifyDocumentContent, type VerifyDocumentPathParams, type VerifyDocumentResponse, type VerifyOtpBody, type VerifyOtpContent, type VerifyOtpResponse, type VerifyVpaContent, type VerifyVpaQuery, type VerifyVpaResponse, type components, StorefrontSDK as default, type operations, type paths };
11670
+ export { type AddCardBody, type AddCardContent, type AddCardResponse, type AddProfileImageContent, type AddProfileImageFormData, type AddProfileImagePathParams, type AddProfileImageResponse, type AddToWishlistBody, type AddToWishlistContent, type AddToWishlistPathParams, type AddToWishlistResponse, type ApiErrorResponse, type ApiResult, type ApplyCouponBody, type ApplyCouponContent, type ApplyCouponPathParams, type ApplyCouponResponse, AuthClient, BrowserTokenStorage, type CancelOrderBody, type CancelOrderContent, type CancelOrderPathParams, type CancelOrderResponse, CartClient, CatalogClient, type ChangePasswordBody, type ChangePasswordContent, type ChangePasswordResponse, type CheckPincodeServiceabilityContent, type CheckPincodeServiceabilityPathParams, type CheckPincodeServiceabilityResponse, type CheckVerificationStatusBody, type CheckVerificationStatusContent, type CheckVerificationStatusResponse, CookieTokenStorage, type CookieTokenStorageOptions, type CreateAddressBody, type CreateAddressContent, type CreateAddressPathParams, type CreateAddressResponse, type CreateCartAddressBody, type CreateCartAddressContent, type CreateCartAddressPathParams, type CreateCartAddressResponse, type CreateCartBody, type CreateCartContent, type CreateCartResponse, type CreateCustomerBody, type CreateCustomerContent, type CreateCustomerResponse, type CreateDocumentContent, type CreateDocumentFormData, type CreateDocumentPathParams, type CreateDocumentResponse, type CreateJuspayCustomerBody, type CreateJuspayCustomerContent, type CreateJuspayCustomerResponse, type CreateJuspayOrderBody, type CreateJuspayOrderContent, type CreateJuspayOrderResponse, type CreateNotificationPreferencesBody, type CreateNotificationPreferencesContent, type CreateNotificationPreferencesPathParams, type CreateNotificationPreferencesResponse, type CreateOrderBody, type CreateOrderContent, type CreateOrderResponse, type CreateOrderReturnBody, type CreateOrderReturnContent, type CreateOrderReturnPathParams, type CreateOrderReturnResponse, type CreatePosCartBody, type CreatePosCartContent, type CreatePosCartResponse, type CreateProductReviewFormData, type CreateProductReviewPathParams, type CreateProductReviewResponse, type CreateSubscriptionBody, type CreateSubscriptionContent, type CreateSubscriptionResponse, CustomerClient, type DeactivateUserPathParams, type DeactivateUserResponse, type DebugLoggerFn, type DeleteAddressPathParams, type DeleteAddressResponse, type DeleteCartPathParams, type DeleteCartResponse, type DeleteDocumentPathParams, type DeleteDocumentResponse, type DeleteFromWishlistBody, type DeleteFromWishlistContent, type DeleteFromWishlistPathParams, type DeleteFromWishlistResponse, type DeleteUserCartPathParams, type DeleteUserCartResponse, Environment, type EvaluateCouponsContent, type EvaluateCouponsPathParams, type EvaluateCouponsResponse, type EvaluatePosCouponsContent, type EvaluatePosCouponsPathParams, type EvaluatePosCouponsResponse, type EvaluatePosPromotionsContent, type EvaluatePosPromotionsPathParams, type EvaluatePosPromotionsResponse, type EvaluatePromotionsContent, type EvaluatePromotionsPathParams, type EvaluatePromotionsResponse, type ForgotPasswordBody, type ForgotPasswordContent, type ForgotPasswordResponse, type GenerateHashBody, type GenerateHashContent, type GenerateHashResponse, type GenerateOtpBody, type GenerateOtpContent, type GenerateOtpResponse, type GetAddressDetailContent, type GetAddressDetailPathParams, type GetAddressDetailResponse, type GetAnonymousTokenContent, type GetAnonymousTokenResponse, type GetCartContent, type GetCartPathParams, type GetCartResponse, type GetConfigContent, type GetConfigResponse, type GetCustomerDetailContent, type GetCustomerDetailPathParams, type GetCustomerDetailResponse, type GetDocumentContent, type GetDocumentPathParams, type GetDocumentResponse, type GetJuspayCustomerContent, type GetJuspayCustomerPathParams, type GetJuspayCustomerResponse, type GetLoyaltyDetailsContent, type GetLoyaltyDetailsPathParams, type GetLoyaltyDetailsResponse, type GetNotificationPreferencesContent, type GetNotificationPreferencesPathParams, type GetNotificationPreferencesResponse, type GetOrderDetailContent, type GetOrderDetailPathParams, type GetOrderDetailResponse, type GetOrderReturnDetailContent, type GetOrderReturnDetailPathParams, type GetOrderReturnDetailResponse, type GetPaymentStatusContent, type GetPaymentStatusPathParams, type GetPaymentStatusResponse, type GetPosCartContent, type GetPosCartPathParams, type GetPosCartResponse, type GetProductDetailContent, type GetProductDetailHeaderParams, type GetProductDetailPathParams, type GetProductDetailResponse, type GetProfileImageContent, type GetProfileImagePathParams, type GetProfileImageResponse, type GetShippingMethodsBody, type GetShippingMethodsContent, type GetShippingMethodsResponse, type GetSubscriptionContent, type GetSubscriptionPathParams, type GetSubscriptionResponse, type GetUserCartContent, type GetUserCartPathParams, type GetUserCartResponse, type GetUserDetailContent, type GetUserDetailPathParams, type GetUserDetailResponse, type GetVariantDetailContent, type GetVariantDetailHeaderParams, type GetVariantDetailPathParams, type GetVariantDetailResponse, type GetWishlistContent, type GetWishlistPathParams, type GetWishlistResponse, HelpersClient, type ListAddressesContent, type ListAddressesPathParams, type ListAddressesQuery, type ListAddressesResponse, type ListCategoriesContent, type ListCategoriesQuery, type ListCategoriesResponse, type ListCountriesContent, type ListCountriesResponse, type ListCountryPincodesContent, type ListCountryPincodesPathParams, type ListCountryPincodesQuery, type ListCountryPincodesResponse, type ListCountryStatesContent, type ListCountryStatesPathParams, type ListCountryStatesResponse, type ListCouponsContent, type ListCouponsHeaderParams, type ListCouponsResponse, type ListCrosssellProductsContent, type ListCrosssellProductsHeaderParams, type ListCrosssellProductsQuery, type ListCrosssellProductsResponse, type ListDocumentsContent, type ListDocumentsPathParams, type ListDocumentsResponse, type ListKycDocumentContent, type ListKycDocumentResponse, type ListLoyaltyActivitiesContent, type ListLoyaltyActivitiesPathParams, type ListLoyaltyActivitiesQuery, type ListLoyaltyActivitiesResponse, type ListOrderPaymentsContent, type ListOrderPaymentsPathParams, type ListOrderPaymentsResponse, type ListOrderRefundsContent, type ListOrderRefundsPathParams, type ListOrderRefundsResponse, type ListOrderShipmentsContent, type ListOrderShipmentsPathParams, type ListOrderShipmentsResponse, type ListOrdersContent, type ListOrdersQuery, type ListOrdersResponse, type ListPaymentMethodsContent, type ListPaymentMethodsQuery, type ListPaymentMethodsResponse, type ListProductReviewsContent, type ListProductReviewsPathParams, type ListProductReviewsQuery, type ListProductReviewsResponse, type ListProductVariantsContent, type ListProductVariantsHeaderParams, type ListProductVariantsPathParams, type ListProductVariantsResponse, type ListProductsContent, type ListProductsHeaderParams, type ListProductsQuery, type ListProductsResponse, type ListPromotionsContent, type ListPromotionsHeaderParams, type ListPromotionsResponse, type ListReturnsContent, type ListReturnsResponse, type ListSavedCardsContent, type ListSavedCardsQuery, type ListSavedCardsResponse, type ListSimilarProductsContent, type ListSimilarProductsHeaderParams, type ListSimilarProductsQuery, type ListSimilarProductsResponse, type ListSkusContent, type ListSkusHeaderParams, type ListSkusQuery, type ListSkusResponse, type ListSubscriptionsContent, type ListSubscriptionsResponse, type ListUpsellProductsContent, type ListUpsellProductsHeaderParams, type ListUpsellProductsQuery, type ListUpsellProductsResponse, type ListUserReviewsContent, type ListUserReviewsPathParams, type ListUserReviewsResponse, type LoginPosDeviceWithEmailBody, type LoginPosDeviceWithEmailContent, type LoginPosDeviceWithEmailResponse, type LoginPosDeviceWithPhoneBody, type LoginPosDeviceWithPhoneContent, type LoginPosDeviceWithPhoneResponse, type LoginPosDeviceWithWhatsappBody, type LoginPosDeviceWithWhatsappContent, type LoginPosDeviceWithWhatsappResponse, type LoginWithEmailBody, type LoginWithEmailContent, type LoginWithEmailResponse, type LoginWithPasswordBody, type LoginWithPasswordContent, type LoginWithPasswordResponse, type LoginWithPhoneBody, type LoginWithPhoneContent, type LoginWithPhoneResponse, type LoginWithWhatsappBody, type LoginWithWhatsappContent, type LoginWithWhatsappResponse, type LogoutContent, type LogoutResponse, MemoryTokenStorage, OrderClient, type PairPosDeviceBody, type PairPosDeviceContent, type PairPosDeviceResponse, type RedeemCreditBalanceBody, type RedeemCreditBalanceContent, type RedeemCreditBalancePathParams, type RedeemCreditBalanceResponse, type RedeemGiftCardBody, type RedeemGiftCardContent, type RedeemGiftCardPathParams, type RedeemGiftCardResponse, type RedeemLoyaltyPointsBody, type RedeemLoyaltyPointsContent, type RedeemLoyaltyPointsPathParams, type RedeemLoyaltyPointsResponse, type RefreshPosAccessTokenBody, type RefreshPosAccessTokenContent, type RefreshPosAccessTokenResponse, type RefreshTokenBody, type RefreshTokenContent, type RefreshTokenResponse, type RegisterWithEmailBody, type RegisterWithEmailContent, type RegisterWithEmailResponse, type RegisterWithPasswordBody, type RegisterWithPasswordContent, type RegisterWithPasswordResponse, type RegisterWithPhoneBody, type RegisterWithPhoneContent, type RegisterWithPhoneResponse, type RegisterWithWhatsappBody, type RegisterWithWhatsappContent, type RegisterWithWhatsappResponse, type RemoveCouponContent, type RemoveCouponPathParams, type RemoveCouponResponse, type RemoveCreditBalanceContent, type RemoveCreditBalancePathParams, type RemoveCreditBalanceResponse, type RemoveGiftCardContent, type RemoveGiftCardPathParams, type RemoveGiftCardResponse, type RemoveLoyaltyPointsContent, type RemoveLoyaltyPointsPathParams, type RemoveLoyaltyPointsResponse, type RemoveProfileImagePathParams, type RemoveProfileImageResponse, type ResetPasswordBody, type ResetPasswordContent, type ResetPasswordResponse, ResponseUtils, type RetryOrderPaymentBody, type RetryOrderPaymentContent, type RetryOrderPaymentPathParams, type RetryOrderPaymentResponse, type SearchProductsBody, type SearchProductsContent, type SearchProductsHeaderParams, type SearchProductsResponse, ShippingClient, StoreConfigClient, StorefrontAPIClient, StorefrontSDK, type StorefrontSDKOptions, type SubscribeNewsletterBody, type SubscribeNewsletterResponse, type SupportedDefaultHeaders, type TokenStorage, type TrackAnalyticsEventBody, type TrackAnalyticsEventResponse, type UpdateAddressDetailBody, type UpdateAddressDetailContent, type UpdateAddressDetailPathParams, type UpdateAddressDetailResponse, type UpdateCartBody, type UpdateCartContent, type UpdateCartCustomerBody, type UpdateCartCustomerContent, type UpdateCartCustomerPathParams, type UpdateCartCustomerResponse, type UpdateCartPathParams, type UpdateCartResponse, type UpdateCustomerBody, type UpdateCustomerContent, type UpdateCustomerPathParams, type UpdateCustomerResponse, type UpdateDocumentContent, type UpdateDocumentFormData, type UpdateDocumentPathParams, type UpdateDocumentResponse, type UpdateNotificationPreferencesBody, type UpdateNotificationPreferencesContent, type UpdateNotificationPreferencesPathParams, type UpdateNotificationPreferencesResponse, type UpdatePosCartAddressBody, type UpdatePosCartAddressContent, type UpdatePosCartAddressPathParams, type UpdatePosCartAddressResponse, type UpdatePosCartBody, type UpdatePosCartContent, type UpdatePosCartCustomerBody, type UpdatePosCartCustomerContent, type UpdatePosCartCustomerPathParams, type UpdatePosCartCustomerResponse, type UpdatePosCartPathParams, type UpdatePosCartResponse, type UpdateProfileImageContent, type UpdateProfileImageFormData, type UpdateProfileImagePathParams, type UpdateProfileImageResponse, type UpdateShippingMethodBody, type UpdateShippingMethodContent, type UpdateShippingMethodPathParams, type UpdateShippingMethodResponse, type UpdateSubscriptionBody, type UpdateSubscriptionContent, type UpdateSubscriptionPathParams, type UpdateSubscriptionResponse, type UpdateUserBody, type UpdateUserContent, type UpdateUserPathParams, type UpdateUserResponse, type UserInfo, type VerifyDocumentBody, type VerifyDocumentContent, type VerifyDocumentPathParams, type VerifyDocumentResponse, type VerifyOtpBody, type VerifyOtpContent, type VerifyOtpResponse, type VerifyPosLoginOtpBody, type VerifyPosLoginOtpContent, type VerifyPosLoginOtpResponse, type VerifyVpaContent, type VerifyVpaQuery, type VerifyVpaResponse, type components, StorefrontSDK as default, type operations, type paths };