@gofynd/fdk-client-javascript 1.4.15-beta.1 → 1.4.15-beta.11

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.
Files changed (150) hide show
  1. package/README.md +2 -2
  2. package/application.d.ts +1 -2
  3. package/application.js +2 -3
  4. package/index.d.ts +1 -2
  5. package/index.js +7 -1
  6. package/package.json +3 -4
  7. package/sdk/application/ApplicationClient.js +0 -18
  8. package/sdk/application/Cart/CartApplicationClient.d.ts +55 -90
  9. package/sdk/application/Cart/CartApplicationClient.js +60 -1185
  10. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +90 -142
  11. package/sdk/application/Catalog/CatalogApplicationClient.js +187 -1293
  12. package/sdk/application/Common/CommonApplicationClient.d.ts +4 -8
  13. package/sdk/application/Common/CommonApplicationClient.js +5 -89
  14. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +6 -19
  15. package/sdk/application/Communication/CommunicationApplicationClient.js +6 -145
  16. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +32 -73
  17. package/sdk/application/Configuration/ConfigurationApplicationClient.js +31 -718
  18. package/sdk/application/Content/ContentApplicationClient.d.ts +46 -78
  19. package/sdk/application/Content/ContentApplicationClient.js +77 -914
  20. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -11
  21. package/sdk/application/FileStorage/FileStorageApplicationClient.js +19 -125
  22. package/sdk/application/Lead/LeadApplicationClient.d.ts +10 -18
  23. package/sdk/application/Lead/LeadApplicationClient.js +32 -202
  24. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +22 -39
  25. package/sdk/application/Logistic/LogisticApplicationClient.js +50 -478
  26. package/sdk/application/Order/OrderApplicationClient.d.ts +22 -42
  27. package/sdk/application/Order/OrderApplicationClient.js +86 -472
  28. package/sdk/application/Payment/PaymentApplicationClient.d.ts +92 -212
  29. package/sdk/application/Payment/PaymentApplicationClient.js +57 -2102
  30. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +14 -28
  31. package/sdk/application/Rewards/RewardsApplicationClient.js +16 -305
  32. package/sdk/application/Share/ShareApplicationClient.d.ts +14 -24
  33. package/sdk/application/Share/ShareApplicationClient.js +34 -294
  34. package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -14
  35. package/sdk/application/Theme/ThemeApplicationClient.js +28 -162
  36. package/sdk/application/User/UserApplicationClient.d.ts +85 -136
  37. package/sdk/application/User/UserApplicationClient.js +45 -1815
  38. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +2 -5
  39. package/sdk/application/Webhook/WebhookApplicationClient.js +4 -47
  40. package/sdk/application/index.d.ts +0 -18
  41. package/sdk/application/index.js +0 -33
  42. package/sdk/common/Utility.d.ts +1 -1
  43. package/sdk/common/Utility.js +10 -7
  44. package/sdk/common/Validator.d.ts +1 -0
  45. package/sdk/common/Validator.js +20 -0
  46. package/sdk/common/utils.d.ts +0 -1
  47. package/sdk/common/utils.js +0 -14
  48. package/sdk/partner/OAuthClient.js +1 -0
  49. package/sdk/partner/Theme/ThemePartnerModel.d.ts +3 -40
  50. package/sdk/partner/Theme/ThemePartnerModel.js +2 -24
  51. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +39 -1
  52. package/sdk/platform/Cart/CartPlatformApplicationClient.js +247 -1
  53. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +33 -1
  54. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +37 -0
  55. package/sdk/platform/Cart/CartPlatformModel.d.ts +193 -1
  56. package/sdk/platform/Cart/CartPlatformModel.js +132 -0
  57. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +0 -7
  58. package/sdk/platform/Catalog/CatalogPlatformModel.js +1 -4
  59. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +14 -0
  60. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +6 -0
  61. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +0 -10
  62. package/sdk/platform/Order/OrderPlatformApplicationClient.js +0 -92
  63. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -28
  64. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +0 -18
  65. package/sdk/platform/Order/OrderPlatformClient.d.ts +10 -0
  66. package/sdk/platform/Order/OrderPlatformClient.js +99 -0
  67. package/sdk/platform/Order/OrderPlatformModel.d.ts +7 -0
  68. package/sdk/platform/Order/OrderPlatformModel.js +3 -0
  69. package/sdk/platform/Order/OrderPlatformValidator.d.ts +33 -1
  70. package/sdk/platform/Order/OrderPlatformValidator.js +20 -0
  71. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +1 -1
  72. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +4 -4
  73. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +56 -19
  74. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +42 -18
  75. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +3 -3
  76. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +2 -2
  77. package/sdk/platform/Theme/ThemePlatformModel.d.ts +3 -40
  78. package/sdk/platform/Theme/ThemePlatformModel.js +2 -24
  79. package/sdk/public/Configuration/ConfigurationPublicClient.js +5 -2
  80. package/sdk/public/Content/ContentPublicClient.d.ts +1 -1
  81. package/sdk/public/Content/ContentPublicClient.js +14 -2
  82. package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
  83. package/sdk/public/Partner/PartnerPublicClient.js +14 -2
  84. package/sdk/public/Webhook/WebhookPublicClient.js +5 -2
  85. package/sdk/application/Cart/CartApplicationModel.d.ts +0 -3994
  86. package/sdk/application/Cart/CartApplicationModel.js +0 -2497
  87. package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -769
  88. package/sdk/application/Cart/CartApplicationValidator.js +0 -530
  89. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +0 -3857
  90. package/sdk/application/Catalog/CatalogApplicationModel.js +0 -2629
  91. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -791
  92. package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -551
  93. package/sdk/application/Common/CommonApplicationModel.d.ts +0 -449
  94. package/sdk/application/Common/CommonApplicationModel.js +0 -308
  95. package/sdk/application/Common/CommonApplicationValidator.d.ts +0 -46
  96. package/sdk/application/Common/CommonApplicationValidator.js +0 -38
  97. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +0 -293
  98. package/sdk/application/Communication/CommunicationApplicationModel.js +0 -201
  99. package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +0 -29
  100. package/sdk/application/Communication/CommunicationApplicationValidator.js +0 -38
  101. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +0 -2556
  102. package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -1887
  103. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +0 -179
  104. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +0 -176
  105. package/sdk/application/Content/ContentApplicationModel.d.ts +0 -2133
  106. package/sdk/application/Content/ContentApplicationModel.js +0 -1589
  107. package/sdk/application/Content/ContentApplicationValidator.d.ts +0 -284
  108. package/sdk/application/Content/ContentApplicationValidator.js +0 -264
  109. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +0 -272
  110. package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -190
  111. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +0 -56
  112. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +0 -53
  113. package/sdk/application/Lead/LeadApplicationModel.d.ts +0 -590
  114. package/sdk/application/Lead/LeadApplicationModel.js +0 -480
  115. package/sdk/application/Lead/LeadApplicationValidator.d.ts +0 -68
  116. package/sdk/application/Lead/LeadApplicationValidator.js +0 -71
  117. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +0 -1675
  118. package/sdk/application/Logistic/LogisticApplicationModel.js +0 -1121
  119. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +0 -254
  120. package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -190
  121. package/sdk/application/Order/OrderApplicationModel.d.ts +0 -2296
  122. package/sdk/application/Order/OrderApplicationModel.js +0 -1471
  123. package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -265
  124. package/sdk/application/Order/OrderApplicationValidator.js +0 -197
  125. package/sdk/application/Payment/PaymentApplicationModel.d.ts +0 -4058
  126. package/sdk/application/Payment/PaymentApplicationModel.js +0 -2630
  127. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +0 -576
  128. package/sdk/application/Payment/PaymentApplicationValidator.js +0 -594
  129. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +0 -365
  130. package/sdk/application/Rewards/RewardsApplicationModel.js +0 -396
  131. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +0 -73
  132. package/sdk/application/Rewards/RewardsApplicationValidator.js +0 -84
  133. package/sdk/application/Share/ShareApplicationModel.d.ts +0 -339
  134. package/sdk/application/Share/ShareApplicationModel.js +0 -234
  135. package/sdk/application/Share/ShareApplicationValidator.d.ts +0 -90
  136. package/sdk/application/Share/ShareApplicationValidator.js +0 -91
  137. package/sdk/application/Theme/ThemeApplicationModel.d.ts +0 -1713
  138. package/sdk/application/Theme/ThemeApplicationModel.js +0 -1426
  139. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -66
  140. package/sdk/application/Theme/ThemeApplicationValidator.js +0 -58
  141. package/sdk/application/User/UserApplicationModel.d.ts +0 -1943
  142. package/sdk/application/User/UserApplicationModel.js +0 -1382
  143. package/sdk/application/User/UserApplicationValidator.d.ts +0 -560
  144. package/sdk/application/User/UserApplicationValidator.js +0 -573
  145. package/sdk/application/Webhook/WebhookApplicationModel.d.ts +0 -52
  146. package/sdk/application/Webhook/WebhookApplicationModel.js +0 -46
  147. package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +0 -16
  148. package/sdk/application/Webhook/WebhookApplicationValidator.js +0 -19
  149. package/sdk/common/Clickstream.d.ts +0 -1
  150. package/sdk/common/Clickstream.js +0 -464
@@ -1,769 +0,0 @@
1
- export = CartApplicationValidator;
2
- /**
3
- * @typedef AddAddressParam
4
- * @property {CartApplicationModel.Address} body
5
- */
6
- /**
7
- * @typedef AddItemsParam
8
- * @property {boolean} [i] - Select `true` to retrieve all the items added in the cart.
9
- * @property {boolean} [b] - Select `true` to retrieve the price breakup of cart items.
10
- * @property {string} [areaCode] - Customer servicable area_code.
11
- * @property {boolean} [buyNow] - Select `true` to set/initialize buy now cart.
12
- * @property {string} [id] - The unique identifier of the cart.
13
- * @property {string} [orderType] - The order type of shipment HomeDelivery - If
14
- * the customer wants the order home-delivered PickAtStore - If the customer
15
- * wants the handover of an order at the store itself.
16
- * @property {CartApplicationModel.AddCartRequest} body
17
- */
18
- /**
19
- * @typedef ApplyCouponParam
20
- * @property {boolean} [i] - Select `true` to retrieve all the items added in the cart.
21
- * @property {boolean} [b] - Select `true` to retrieve the price breakup of cart items.
22
- * @property {boolean} [p] - Select `true` for getting a payment option in response.
23
- * @property {string} [id] - The unique identifier of the cart.
24
- * @property {boolean} [buyNow] - This is boolean to get buy_now cart.
25
- * @property {string} [cartType] - The type of cart.
26
- * @property {CartApplicationModel.ApplyCouponRequest} body
27
- */
28
- /**
29
- * @typedef ApplyRewardPointsParam
30
- * @property {string} [id] - The unique identifier of the cart.
31
- * @property {boolean} [i] - Select `true` to retrieve all the items added in the cart.
32
- * @property {boolean} [b] - Select `true` to retrieve the price breakup of cart items.
33
- * @property {boolean} [buyNow] - This is boolean to get buy_now cart.
34
- * @property {CartApplicationModel.RewardPointRequest} body
35
- */
36
- /**
37
- * @typedef CheckoutCartV2Param
38
- * @property {boolean} [buyNow] - This indicates the type of cart to checkout.
39
- * @property {string} [cartType] - The type of cart.
40
- * @property {CartApplicationModel.CartCheckoutDetailV2Request} body
41
- */
42
- /**
43
- * @typedef DeleteCartParam
44
- * @property {string} [id] - The unique identifier of the cart.
45
- */
46
- /**
47
- * @typedef GetAddressByIdParam
48
- * @property {string} id - ID allotted to the selected address.
49
- * @property {string} [cartId] - The unique identifier of the cart.
50
- * @property {boolean} [buyNow] - This is boolean to get buy_now cart.
51
- * @property {string} [mobileNo] - Mobile number of the customer.
52
- * @property {string} [checkoutMode] - Option to checkout for self or for others.
53
- * @property {string} [tags] - Tag given to an address, e.g. work, home, office, shop.
54
- * @property {boolean} [isDefault] - This is a boolean value. Select `true` to
55
- * fetch the default address.
56
- */
57
- /**
58
- * @typedef GetAddressesParam
59
- * @property {string} [cartId] - The unique identifier of the user cart.
60
- * @property {boolean} [buyNow] - Whether to get buy_now cart.
61
- * @property {string} [mobileNo] - Mobile number of the customer.
62
- * @property {string} [checkoutMode] - Option to checkout for self or for others.
63
- * @property {string} [tags] - Tag given to an address, e.g. work, home, office, shop.
64
- * @property {boolean} [isDefault] - Select `true` to fetch the default address.
65
- */
66
- /**
67
- * @typedef GetBulkDiscountOffersParam
68
- * @property {number} [itemId] - The Item ID of the product.
69
- * @property {string} [articleId] - Article Mongo ID.
70
- * @property {number} [uid] - UID of the product.
71
- * @property {string} [slug] - A short, human-readable, URL-friendly identifier
72
- * of a product.
73
- */
74
- /**
75
- * @typedef GetCartParam
76
- * @property {string} [id] - The unique identifier of the cart.
77
- * @property {boolean} [i] - Select `true` to retrieve all the items added in the cart.
78
- * @property {boolean} [b] - Select `true` to retrieve the price breakup of cart items.
79
- * @property {boolean} [c] - Select `true` to retrieve the cod charges in
80
- * breakup of cart items.
81
- * @property {number} [assignCardId] - Token of user's debit or credit card.
82
- * @property {string} [areaCode] - Customer servicable area_code.
83
- * @property {boolean} [buyNow] - Select `true` to set/initialize buy now cart.
84
- * @property {string} [orderType] - The order type of shipment HomeDelivery - If
85
- * the customer wants the order home-delivered PickAtStore - If the customer
86
- * wants the handover of an order at the store itself.
87
- */
88
- /**
89
- * @typedef GetCartLastModifiedParam
90
- * @property {string} [id] - The unique identifier of the cart.
91
- */
92
- /**
93
- * @typedef GetCartShareLinkParam
94
- * @property {CartApplicationModel.GetShareCartLinkRequest} body
95
- */
96
- /**
97
- * @typedef GetCartSharedItemsParam
98
- * @property {string} token - Token of the shared short link.
99
- */
100
- /**
101
- * @typedef GetCouponsParam
102
- * @property {string} [id] - The unique identifier of the cart.
103
- * @property {boolean} [buyNow] - Whether to get buy_now cart.
104
- * @property {string} [slug] - Product slug to fetch the available coupons.
105
- * @property {string} [storeId] - Unique identifier of a store.
106
- */
107
- /**
108
- * @typedef GetItemCountParam
109
- * @property {string} [id] - The unique identifier of the cart.
110
- * @property {boolean} [buyNow] - Boolean value to get buy_now cart.
111
- */
112
- /**
113
- * @typedef GetLadderOffersParam
114
- * @property {string} slug - A short, human-readable, URL-friendly identifier of
115
- * a product.
116
- * @property {string} [storeId] - Store uid of assigned store on PDP page. If
117
- * not passed default first created ladder will be returned.
118
- * @property {string} [promotionId] - Get ladder information of given promotion
119
- * id explicitely.
120
- * @property {number} [pageSize] - Number of offers to be fetched to show.
121
- */
122
- /**
123
- * @typedef GetPromotionOffersParam
124
- * @property {string} [slug] - A short, human-readable, URL-friendly identifier
125
- * of a product.
126
- * @property {number} [pageSize] - Number of offers to be fetched to show.
127
- * @property {string} [promotionGroup] - Type of promotion groups.
128
- * @property {number} [storeId] - Unique identifier of a store.
129
- * @property {string} [cartType] - The type of cart.
130
- */
131
- /**
132
- * @typedef GetPromotionPaymentOffersParam
133
- * @property {string} [id] - Cart id of the user cart .
134
- * @property {number} [uid] - Cart uid of the user cart .
135
- */
136
- /**
137
- * @typedef GetShipmentsParam
138
- * @property {boolean} [p] - Select `true` for getting a payment option in response.
139
- * @property {string} [id] - The unique identifier of the cart.
140
- * @property {boolean} [buyNow] - This is boolean to get buy_now cart.
141
- * @property {string} [addressId] - ID allotted to the selected address.
142
- * @property {string} [areaCode] - The PIN Code of the destination address, e.g. 400059.
143
- * @property {string} [orderType] - The order type of shipment HomeDelivery - If
144
- * the customer wants the order home-delivered PickAtStore - If the customer
145
- * wants the handover of an order at the store itself. Digital - If the
146
- * customer wants to buy digital voucher ( for jiogames ).
147
- */
148
- /**
149
- * @typedef RemoveAddressParam
150
- * @property {string} id - ID allotted to the selected address.
151
- */
152
- /**
153
- * @typedef RemoveCouponParam
154
- * @property {string} [id] - The unique identifier of the cart.
155
- * @property {boolean} [buyNow] - Wheter to get buy_now cart.
156
- */
157
- /**
158
- * @typedef SelectAddressParam
159
- * @property {string} [cartId] - The unique identifier of the cart.
160
- * @property {boolean} [buyNow] - Whether to get buy_now cart.
161
- * @property {boolean} [i] - Select `true` to retrieve all the items added in the cart.
162
- * @property {boolean} [b] - Select `true` to retrieve the price breakup of cart items.
163
- * @property {CartApplicationModel.SelectCartAddressRequest} body
164
- */
165
- /**
166
- * @typedef SelectPaymentModeParam
167
- * @property {string} [id] - The unique identifier of the cart.
168
- * @property {boolean} [buyNow] - Whether to get buy_now cart.
169
- * @property {CartApplicationModel.UpdateCartPaymentRequest} body
170
- */
171
- /**
172
- * @typedef UpdateAddressParam
173
- * @property {string} id - ID allotted to the selected address.
174
- * @property {CartApplicationModel.Address} body
175
- */
176
- /**
177
- * @typedef UpdateCartParam
178
- * @property {string} [id] - The unique identifier of the cart.
179
- * @property {boolean} [i] - Select `true` to retrieve all the items added in the cart.
180
- * @property {boolean} [b] - Select `true` to retrieve the price breakup of cart items.
181
- * @property {string} [areaCode] - Customer servicable area_code.
182
- * @property {boolean} [buyNow] - Select `true` to set/initialize buy now cart.
183
- * @property {string} [cartType] - The type of cart.
184
- * @property {string} [orderType] - The order type of shipment HomeDelivery - If
185
- * the customer wants the order home-delivered PickAtStore - If the customer
186
- * wants the handover of an order at the store itself.
187
- * @property {CartApplicationModel.UpdateCartRequest} body
188
- */
189
- /**
190
- * @typedef UpdateCartMetaParam
191
- * @property {string} [id] - The unique identifier of the cart.
192
- * @property {boolean} [buyNow] - Whether to get buy_now cart.
193
- * @property {CartApplicationModel.CartMetaRequest} body
194
- */
195
- /**
196
- * @typedef UpdateCartWithSharedItemsParam
197
- * @property {string} token - Token of the shared short link.
198
- * @property {string} action - Operation to perform on the existing cart merge or replace.
199
- */
200
- /**
201
- * @typedef ValidateCouponForPaymentParam
202
- * @property {string} [id] - The unique identifier of the cart.
203
- * @property {boolean} [buyNow] - Whether to get buy_now cart.
204
- * @property {string} [addressId] - ID allotted to an address.
205
- * @property {string} [paymentMode] - Payment mode selected by the customer.
206
- * @property {string} [paymentIdentifier] - Identifier of payment like ICIC, PAYTM.
207
- * @property {string} [aggregatorName] - Payment gateway identifier.
208
- * @property {string} [merchantCode] - Identifier used by payment gateway for a
209
- * given payment mode, e.g. NB_ICIC, PAYTM.
210
- * @property {string} [iin] - Debit/Credit card prefix (first 6 digit).
211
- * @property {string} [network] - Credit/Debit card issuer, e.g. VISA, MASTERCARD, RUPAY.
212
- * @property {string} [type] - Card type, e.g. Credit, Debit.
213
- * @property {string} [cardId] - Saved card token reference id.
214
- * @property {string} [cartType] - Type of the cart.
215
- */
216
- declare class CartApplicationValidator {
217
- /** @returns {AddAddressParam} */
218
- static addAddress(): AddAddressParam;
219
- /** @returns {AddItemsParam} */
220
- static addItems(): AddItemsParam;
221
- /** @returns {ApplyCouponParam} */
222
- static applyCoupon(): ApplyCouponParam;
223
- /** @returns {ApplyRewardPointsParam} */
224
- static applyRewardPoints(): ApplyRewardPointsParam;
225
- /** @returns {CheckoutCartV2Param} */
226
- static checkoutCartV2(): CheckoutCartV2Param;
227
- /** @returns {DeleteCartParam} */
228
- static deleteCart(): DeleteCartParam;
229
- /** @returns {GetAddressByIdParam} */
230
- static getAddressById(): GetAddressByIdParam;
231
- /** @returns {GetAddressesParam} */
232
- static getAddresses(): GetAddressesParam;
233
- /** @returns {GetBulkDiscountOffersParam} */
234
- static getBulkDiscountOffers(): GetBulkDiscountOffersParam;
235
- /** @returns {GetCartParam} */
236
- static getCart(): GetCartParam;
237
- /** @returns {GetCartLastModifiedParam} */
238
- static getCartLastModified(): GetCartLastModifiedParam;
239
- /** @returns {GetCartShareLinkParam} */
240
- static getCartShareLink(): GetCartShareLinkParam;
241
- /** @returns {GetCartSharedItemsParam} */
242
- static getCartSharedItems(): GetCartSharedItemsParam;
243
- /** @returns {GetCouponsParam} */
244
- static getCoupons(): GetCouponsParam;
245
- /** @returns {GetItemCountParam} */
246
- static getItemCount(): GetItemCountParam;
247
- /** @returns {GetLadderOffersParam} */
248
- static getLadderOffers(): GetLadderOffersParam;
249
- /** @returns {GetPromotionOffersParam} */
250
- static getPromotionOffers(): GetPromotionOffersParam;
251
- /** @returns {GetPromotionPaymentOffersParam} */
252
- static getPromotionPaymentOffers(): GetPromotionPaymentOffersParam;
253
- /** @returns {GetShipmentsParam} */
254
- static getShipments(): GetShipmentsParam;
255
- /** @returns {RemoveAddressParam} */
256
- static removeAddress(): RemoveAddressParam;
257
- /** @returns {RemoveCouponParam} */
258
- static removeCoupon(): RemoveCouponParam;
259
- /** @returns {SelectAddressParam} */
260
- static selectAddress(): SelectAddressParam;
261
- /** @returns {SelectPaymentModeParam} */
262
- static selectPaymentMode(): SelectPaymentModeParam;
263
- /** @returns {UpdateAddressParam} */
264
- static updateAddress(): UpdateAddressParam;
265
- /** @returns {UpdateCartParam} */
266
- static updateCart(): UpdateCartParam;
267
- /** @returns {UpdateCartMetaParam} */
268
- static updateCartMeta(): UpdateCartMetaParam;
269
- /** @returns {UpdateCartWithSharedItemsParam} */
270
- static updateCartWithSharedItems(): UpdateCartWithSharedItemsParam;
271
- /** @returns {ValidateCouponForPaymentParam} */
272
- static validateCouponForPayment(): ValidateCouponForPaymentParam;
273
- }
274
- declare namespace CartApplicationValidator {
275
- export { AddAddressParam, AddItemsParam, ApplyCouponParam, ApplyRewardPointsParam, CheckoutCartV2Param, DeleteCartParam, GetAddressByIdParam, GetAddressesParam, GetBulkDiscountOffersParam, GetCartParam, GetCartLastModifiedParam, GetCartShareLinkParam, GetCartSharedItemsParam, GetCouponsParam, GetItemCountParam, GetLadderOffersParam, GetPromotionOffersParam, GetPromotionPaymentOffersParam, GetShipmentsParam, RemoveAddressParam, RemoveCouponParam, SelectAddressParam, SelectPaymentModeParam, UpdateAddressParam, UpdateCartParam, UpdateCartMetaParam, UpdateCartWithSharedItemsParam, ValidateCouponForPaymentParam };
276
- }
277
- type AddAddressParam = {
278
- body: CartApplicationModel.Address;
279
- };
280
- type AddItemsParam = {
281
- /**
282
- * - Select `true` to retrieve all the items added in the cart.
283
- */
284
- i?: boolean;
285
- /**
286
- * - Select `true` to retrieve the price breakup of cart items.
287
- */
288
- b?: boolean;
289
- /**
290
- * - Customer servicable area_code.
291
- */
292
- areaCode?: string;
293
- /**
294
- * - Select `true` to set/initialize buy now cart.
295
- */
296
- buyNow?: boolean;
297
- /**
298
- * - The unique identifier of the cart.
299
- */
300
- id?: string;
301
- /**
302
- * - The order type of shipment HomeDelivery - If
303
- * the customer wants the order home-delivered PickAtStore - If the customer
304
- * wants the handover of an order at the store itself.
305
- */
306
- orderType?: string;
307
- body: CartApplicationModel.AddCartRequest;
308
- };
309
- type ApplyCouponParam = {
310
- /**
311
- * - Select `true` to retrieve all the items added in the cart.
312
- */
313
- i?: boolean;
314
- /**
315
- * - Select `true` to retrieve the price breakup of cart items.
316
- */
317
- b?: boolean;
318
- /**
319
- * - Select `true` for getting a payment option in response.
320
- */
321
- p?: boolean;
322
- /**
323
- * - The unique identifier of the cart.
324
- */
325
- id?: string;
326
- /**
327
- * - This is boolean to get buy_now cart.
328
- */
329
- buyNow?: boolean;
330
- /**
331
- * - The type of cart.
332
- */
333
- cartType?: string;
334
- body: CartApplicationModel.ApplyCouponRequest;
335
- };
336
- type ApplyRewardPointsParam = {
337
- /**
338
- * - The unique identifier of the cart.
339
- */
340
- id?: string;
341
- /**
342
- * - Select `true` to retrieve all the items added in the cart.
343
- */
344
- i?: boolean;
345
- /**
346
- * - Select `true` to retrieve the price breakup of cart items.
347
- */
348
- b?: boolean;
349
- /**
350
- * - This is boolean to get buy_now cart.
351
- */
352
- buyNow?: boolean;
353
- body: CartApplicationModel.RewardPointRequest;
354
- };
355
- type CheckoutCartV2Param = {
356
- /**
357
- * - This indicates the type of cart to checkout.
358
- */
359
- buyNow?: boolean;
360
- /**
361
- * - The type of cart.
362
- */
363
- cartType?: string;
364
- body: CartApplicationModel.CartCheckoutDetailV2Request;
365
- };
366
- type DeleteCartParam = {
367
- /**
368
- * - The unique identifier of the cart.
369
- */
370
- id?: string;
371
- };
372
- type GetAddressByIdParam = {
373
- /**
374
- * - ID allotted to the selected address.
375
- */
376
- id: string;
377
- /**
378
- * - The unique identifier of the cart.
379
- */
380
- cartId?: string;
381
- /**
382
- * - This is boolean to get buy_now cart.
383
- */
384
- buyNow?: boolean;
385
- /**
386
- * - Mobile number of the customer.
387
- */
388
- mobileNo?: string;
389
- /**
390
- * - Option to checkout for self or for others.
391
- */
392
- checkoutMode?: string;
393
- /**
394
- * - Tag given to an address, e.g. work, home, office, shop.
395
- */
396
- tags?: string;
397
- /**
398
- * - This is a boolean value. Select `true` to
399
- * fetch the default address.
400
- */
401
- isDefault?: boolean;
402
- };
403
- type GetAddressesParam = {
404
- /**
405
- * - The unique identifier of the user cart.
406
- */
407
- cartId?: string;
408
- /**
409
- * - Whether to get buy_now cart.
410
- */
411
- buyNow?: boolean;
412
- /**
413
- * - Mobile number of the customer.
414
- */
415
- mobileNo?: string;
416
- /**
417
- * - Option to checkout for self or for others.
418
- */
419
- checkoutMode?: string;
420
- /**
421
- * - Tag given to an address, e.g. work, home, office, shop.
422
- */
423
- tags?: string;
424
- /**
425
- * - Select `true` to fetch the default address.
426
- */
427
- isDefault?: boolean;
428
- };
429
- type GetBulkDiscountOffersParam = {
430
- /**
431
- * - The Item ID of the product.
432
- */
433
- itemId?: number;
434
- /**
435
- * - Article Mongo ID.
436
- */
437
- articleId?: string;
438
- /**
439
- * - UID of the product.
440
- */
441
- uid?: number;
442
- /**
443
- * - A short, human-readable, URL-friendly identifier
444
- * of a product.
445
- */
446
- slug?: string;
447
- };
448
- type GetCartParam = {
449
- /**
450
- * - The unique identifier of the cart.
451
- */
452
- id?: string;
453
- /**
454
- * - Select `true` to retrieve all the items added in the cart.
455
- */
456
- i?: boolean;
457
- /**
458
- * - Select `true` to retrieve the price breakup of cart items.
459
- */
460
- b?: boolean;
461
- /**
462
- * - Select `true` to retrieve the cod charges in
463
- * breakup of cart items.
464
- */
465
- c?: boolean;
466
- /**
467
- * - Token of user's debit or credit card.
468
- */
469
- assignCardId?: number;
470
- /**
471
- * - Customer servicable area_code.
472
- */
473
- areaCode?: string;
474
- /**
475
- * - Select `true` to set/initialize buy now cart.
476
- */
477
- buyNow?: boolean;
478
- /**
479
- * - The order type of shipment HomeDelivery - If
480
- * the customer wants the order home-delivered PickAtStore - If the customer
481
- * wants the handover of an order at the store itself.
482
- */
483
- orderType?: string;
484
- };
485
- type GetCartLastModifiedParam = {
486
- /**
487
- * - The unique identifier of the cart.
488
- */
489
- id?: string;
490
- };
491
- type GetCartShareLinkParam = {
492
- body: CartApplicationModel.GetShareCartLinkRequest;
493
- };
494
- type GetCartSharedItemsParam = {
495
- /**
496
- * - Token of the shared short link.
497
- */
498
- token: string;
499
- };
500
- type GetCouponsParam = {
501
- /**
502
- * - The unique identifier of the cart.
503
- */
504
- id?: string;
505
- /**
506
- * - Whether to get buy_now cart.
507
- */
508
- buyNow?: boolean;
509
- /**
510
- * - Product slug to fetch the available coupons.
511
- */
512
- slug?: string;
513
- /**
514
- * - Unique identifier of a store.
515
- */
516
- storeId?: string;
517
- };
518
- type GetItemCountParam = {
519
- /**
520
- * - The unique identifier of the cart.
521
- */
522
- id?: string;
523
- /**
524
- * - Boolean value to get buy_now cart.
525
- */
526
- buyNow?: boolean;
527
- };
528
- type GetLadderOffersParam = {
529
- /**
530
- * - A short, human-readable, URL-friendly identifier of
531
- * a product.
532
- */
533
- slug: string;
534
- /**
535
- * - Store uid of assigned store on PDP page. If
536
- * not passed default first created ladder will be returned.
537
- */
538
- storeId?: string;
539
- /**
540
- * - Get ladder information of given promotion
541
- * id explicitely.
542
- */
543
- promotionId?: string;
544
- /**
545
- * - Number of offers to be fetched to show.
546
- */
547
- pageSize?: number;
548
- };
549
- type GetPromotionOffersParam = {
550
- /**
551
- * - A short, human-readable, URL-friendly identifier
552
- * of a product.
553
- */
554
- slug?: string;
555
- /**
556
- * - Number of offers to be fetched to show.
557
- */
558
- pageSize?: number;
559
- /**
560
- * - Type of promotion groups.
561
- */
562
- promotionGroup?: string;
563
- /**
564
- * - Unique identifier of a store.
565
- */
566
- storeId?: number;
567
- /**
568
- * - The type of cart.
569
- */
570
- cartType?: string;
571
- };
572
- type GetPromotionPaymentOffersParam = {
573
- /**
574
- * - Cart id of the user cart .
575
- */
576
- id?: string;
577
- /**
578
- * - Cart uid of the user cart .
579
- */
580
- uid?: number;
581
- };
582
- type GetShipmentsParam = {
583
- /**
584
- * - Select `true` for getting a payment option in response.
585
- */
586
- p?: boolean;
587
- /**
588
- * - The unique identifier of the cart.
589
- */
590
- id?: string;
591
- /**
592
- * - This is boolean to get buy_now cart.
593
- */
594
- buyNow?: boolean;
595
- /**
596
- * - ID allotted to the selected address.
597
- */
598
- addressId?: string;
599
- /**
600
- * - The PIN Code of the destination address, e.g. 400059.
601
- */
602
- areaCode?: string;
603
- /**
604
- * - The order type of shipment HomeDelivery - If
605
- * the customer wants the order home-delivered PickAtStore - If the customer
606
- * wants the handover of an order at the store itself. Digital - If the
607
- * customer wants to buy digital voucher ( for jiogames ).
608
- */
609
- orderType?: string;
610
- };
611
- type RemoveAddressParam = {
612
- /**
613
- * - ID allotted to the selected address.
614
- */
615
- id: string;
616
- };
617
- type RemoveCouponParam = {
618
- /**
619
- * - The unique identifier of the cart.
620
- */
621
- id?: string;
622
- /**
623
- * - Wheter to get buy_now cart.
624
- */
625
- buyNow?: boolean;
626
- };
627
- type SelectAddressParam = {
628
- /**
629
- * - The unique identifier of the cart.
630
- */
631
- cartId?: string;
632
- /**
633
- * - Whether to get buy_now cart.
634
- */
635
- buyNow?: boolean;
636
- /**
637
- * - Select `true` to retrieve all the items added in the cart.
638
- */
639
- i?: boolean;
640
- /**
641
- * - Select `true` to retrieve the price breakup of cart items.
642
- */
643
- b?: boolean;
644
- body: CartApplicationModel.SelectCartAddressRequest;
645
- };
646
- type SelectPaymentModeParam = {
647
- /**
648
- * - The unique identifier of the cart.
649
- */
650
- id?: string;
651
- /**
652
- * - Whether to get buy_now cart.
653
- */
654
- buyNow?: boolean;
655
- body: CartApplicationModel.UpdateCartPaymentRequest;
656
- };
657
- type UpdateAddressParam = {
658
- /**
659
- * - ID allotted to the selected address.
660
- */
661
- id: string;
662
- body: CartApplicationModel.Address;
663
- };
664
- type UpdateCartParam = {
665
- /**
666
- * - The unique identifier of the cart.
667
- */
668
- id?: string;
669
- /**
670
- * - Select `true` to retrieve all the items added in the cart.
671
- */
672
- i?: boolean;
673
- /**
674
- * - Select `true` to retrieve the price breakup of cart items.
675
- */
676
- b?: boolean;
677
- /**
678
- * - Customer servicable area_code.
679
- */
680
- areaCode?: string;
681
- /**
682
- * - Select `true` to set/initialize buy now cart.
683
- */
684
- buyNow?: boolean;
685
- /**
686
- * - The type of cart.
687
- */
688
- cartType?: string;
689
- /**
690
- * - The order type of shipment HomeDelivery - If
691
- * the customer wants the order home-delivered PickAtStore - If the customer
692
- * wants the handover of an order at the store itself.
693
- */
694
- orderType?: string;
695
- body: CartApplicationModel.UpdateCartRequest;
696
- };
697
- type UpdateCartMetaParam = {
698
- /**
699
- * - The unique identifier of the cart.
700
- */
701
- id?: string;
702
- /**
703
- * - Whether to get buy_now cart.
704
- */
705
- buyNow?: boolean;
706
- body: CartApplicationModel.CartMetaRequest;
707
- };
708
- type UpdateCartWithSharedItemsParam = {
709
- /**
710
- * - Token of the shared short link.
711
- */
712
- token: string;
713
- /**
714
- * - Operation to perform on the existing cart merge or replace.
715
- */
716
- action: string;
717
- };
718
- type ValidateCouponForPaymentParam = {
719
- /**
720
- * - The unique identifier of the cart.
721
- */
722
- id?: string;
723
- /**
724
- * - Whether to get buy_now cart.
725
- */
726
- buyNow?: boolean;
727
- /**
728
- * - ID allotted to an address.
729
- */
730
- addressId?: string;
731
- /**
732
- * - Payment mode selected by the customer.
733
- */
734
- paymentMode?: string;
735
- /**
736
- * - Identifier of payment like ICIC, PAYTM.
737
- */
738
- paymentIdentifier?: string;
739
- /**
740
- * - Payment gateway identifier.
741
- */
742
- aggregatorName?: string;
743
- /**
744
- * - Identifier used by payment gateway for a
745
- * given payment mode, e.g. NB_ICIC, PAYTM.
746
- */
747
- merchantCode?: string;
748
- /**
749
- * - Debit/Credit card prefix (first 6 digit).
750
- */
751
- iin?: string;
752
- /**
753
- * - Credit/Debit card issuer, e.g. VISA, MASTERCARD, RUPAY.
754
- */
755
- network?: string;
756
- /**
757
- * - Card type, e.g. Credit, Debit.
758
- */
759
- type?: string;
760
- /**
761
- * - Saved card token reference id.
762
- */
763
- cardId?: string;
764
- /**
765
- * - Type of the cart.
766
- */
767
- cartType?: string;
768
- };
769
- import CartApplicationModel = require("./CartApplicationModel");