@gofynd/fdk-client-javascript 1.4.2-beta.4 → 1.4.2-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +3 -2
- package/sdk/application/ApplicationClient.js +20 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +62 -62
- package/sdk/application/Cart/CartApplicationClient.js +82 -71
- package/sdk/application/Cart/CartApplicationValidator.d.ts +189 -34
- package/sdk/application/Cart/CartApplicationValidator.js +59 -34
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +78 -78
- package/sdk/application/Catalog/CatalogApplicationClient.js +78 -78
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
- package/sdk/application/Common/CommonApplicationClient.js +4 -4
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +6 -6
- package/sdk/application/Communication/CommunicationApplicationClient.js +6 -6
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +32 -67
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +32 -106
- package/sdk/application/Content/ContentApplicationClient.d.ts +34 -64
- package/sdk/application/Content/ContentApplicationClient.js +34 -115
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -42
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +6 -42
- package/sdk/application/Lead/LeadApplicationClient.d.ts +14 -14
- package/sdk/application/Lead/LeadApplicationClient.js +14 -14
- package/sdk/application/Lead/LeadApplicationModel.js +1 -1
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +12 -12
- package/sdk/application/Logistic/LogisticApplicationClient.js +12 -12
- package/sdk/application/Order/OrderApplicationClient.d.ts +24 -24
- package/sdk/application/Order/OrderApplicationClient.js +24 -24
- package/sdk/application/Order/OrderApplicationModel.d.ts +23 -1
- package/sdk/application/Order/OrderApplicationModel.js +28 -0
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +89 -89
- package/sdk/application/Payment/PaymentApplicationClient.js +94 -94
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +498 -3
- package/sdk/application/Payment/PaymentApplicationModel.js +316 -2
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +5 -5
- package/sdk/application/Payment/PaymentApplicationValidator.js +3 -3
- package/sdk/application/PosCart/PosCartApplicationClient.d.ts +54 -54
- package/sdk/application/PosCart/PosCartApplicationClient.js +54 -54
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +14 -25
- package/sdk/application/Rewards/RewardsApplicationClient.js +14 -41
- package/sdk/application/Share/ShareApplicationClient.d.ts +14 -14
- package/sdk/application/Share/ShareApplicationClient.js +14 -14
- package/sdk/application/Share/ShareApplicationModel.d.ts +0 -4
- package/sdk/application/Share/ShareApplicationModel.js +0 -4
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -8
- package/sdk/application/Theme/ThemeApplicationClient.js +8 -8
- package/sdk/application/User/UserApplicationClient.d.ts +64 -64
- package/sdk/application/User/UserApplicationClient.js +64 -64
- package/sdk/common/Clickstream.d.ts +1 -0
- package/sdk/common/Clickstream.js +246 -0
- package/sdk/common/Utility.js +1 -4
- package/sdk/partner/Lead/LeadPartnerModel.js +1 -1
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +38 -38
- package/sdk/partner/Theme/ThemePartnerClient.js +38 -38
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +8 -8
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +8 -8
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +34 -36
- package/sdk/platform/Billing/BillingPlatformClient.js +34 -36
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +98 -175
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +98 -254
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +92 -18
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +28 -18
- package/sdk/platform/Cart/CartPlatformModel.d.ts +12 -0
- package/sdk/platform/Cart/CartPlatformModel.js +12 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +195 -108
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +278 -113
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +335 -136
- package/sdk/platform/Catalog/CatalogPlatformClient.js +551 -136
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +5 -5
- package/sdk/platform/Catalog/CatalogPlatformModel.js +3 -3
- package/sdk/platform/Common/CommonPlatformClient.d.ts +3 -3
- package/sdk/platform/Common/CommonPlatformClient.js +3 -3
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +115 -290
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +115 -510
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +2 -13
- package/sdk/platform/Communication/CommunicationPlatformClient.js +2 -29
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +32 -32
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +32 -32
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +52 -127
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +52 -204
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +35 -111
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +35 -212
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +142 -1
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +96 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +130 -218
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +136 -314
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +4 -4
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +4 -4
- package/sdk/platform/Content/ContentPlatformClient.d.ts +1 -1
- package/sdk/platform/Content/ContentPlatformClient.js +7 -7
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +4 -4
- package/sdk/platform/Content/ContentPlatformValidator.js +4 -4
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +22 -48
- package/sdk/platform/Discount/DiscountPlatformClient.js +22 -73
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +20 -56
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +20 -59
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +0 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +0 -2
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +14 -50
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +16 -55
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +13 -14
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +12 -16
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +44 -44
- package/sdk/platform/Finance/FinancePlatformClient.js +44 -44
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +12 -12
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +22 -48
- package/sdk/platform/Lead/LeadPlatformClient.js +22 -72
- package/sdk/platform/Lead/LeadPlatformModel.js +1 -1
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +4 -4
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +4 -4
- package/sdk/platform/Order/OrderPlatformClient.d.ts +79 -208
- package/sdk/platform/Order/OrderPlatformClient.js +79 -294
- package/sdk/platform/Order/OrderPlatformModel.d.ts +32 -3
- package/sdk/platform/Order/OrderPlatformModel.js +34 -2
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +4 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +4 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +81 -81
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +81 -81
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
- package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +23 -40
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +23 -61
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +5 -5
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +4 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +5 -1
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +2 -2
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +2 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +10 -10
- package/sdk/platform/Share/SharePlatformApplicationClient.js +10 -10
- package/sdk/platform/Share/SharePlatformModel.d.ts +0 -4
- package/sdk/platform/Share/SharePlatformModel.js +0 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +56 -56
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +56 -56
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +6 -6
- package/sdk/platform/Theme/ThemePlatformClient.js +6 -6
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +33 -33
- package/sdk/platform/User/UserPlatformApplicationClient.js +33 -33
- package/sdk/platform/User/UserPlatformModel.d.ts +4 -4
- package/sdk/platform/User/UserPlatformModel.js +4 -4
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +32 -45
- package/sdk/platform/Webhook/WebhookPlatformClient.js +32 -45
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +58 -1
- package/sdk/platform/Webhook/WebhookPlatformModel.js +66 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -2
- package/sdk/public/Configuration/ConfigurationPublicClient.js +2 -2
- package/sdk/public/Partner/PartnerPublicClient.d.ts +2 -2
- package/sdk/public/Partner/PartnerPublicClient.js +2 -2
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicClient.js +4 -4
|
@@ -5,11 +5,14 @@ export = CartApplicationValidator;
|
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
7
|
* @typedef AddItemsParam
|
|
8
|
-
* @property {boolean} [i]
|
|
9
|
-
*
|
|
10
|
-
* @property {
|
|
11
|
-
*
|
|
12
|
-
* @property {string} [
|
|
8
|
+
* @property {boolean} [i] - This is a boolean value. Select `true` to retrieve
|
|
9
|
+
* all the items added in the cart.
|
|
10
|
+
* @property {boolean} [b] - This is a boolean value. Select `true` to retrieve
|
|
11
|
+
* the price breakup of cart items.
|
|
12
|
+
* @property {string} [areaCode] - Customer servicable area_code
|
|
13
|
+
* @property {boolean} [buyNow] - This is a boolen value. Select `true` to
|
|
14
|
+
* set/initialize buy now cart
|
|
15
|
+
* @property {string} [id] - The unique identifier of the cart
|
|
13
16
|
* @property {CartApplicationModel.AddCartRequest} body
|
|
14
17
|
*/
|
|
15
18
|
/**
|
|
@@ -19,24 +22,29 @@ export = CartApplicationValidator;
|
|
|
19
22
|
* @property {boolean} [p]
|
|
20
23
|
* @property {string} [id]
|
|
21
24
|
* @property {boolean} [buyNow]
|
|
25
|
+
* @property {string} [cartType]
|
|
22
26
|
* @property {CartApplicationModel.ApplyCouponRequest} body
|
|
23
27
|
*/
|
|
24
28
|
/**
|
|
25
29
|
* @typedef ApplyRewardPointsParam
|
|
26
|
-
* @property {string} [id]
|
|
27
|
-
* @property {boolean} [i]
|
|
28
|
-
*
|
|
29
|
-
* @property {boolean} [
|
|
30
|
+
* @property {string} [id] - The unique identifier of the cart
|
|
31
|
+
* @property {boolean} [i] - This is a boolean value. Select `true` to retrieve
|
|
32
|
+
* all the items added in the cart.
|
|
33
|
+
* @property {boolean} [b] - This is a boolean value. Select `true` to retrieve
|
|
34
|
+
* the price breakup of cart items.
|
|
35
|
+
* @property {boolean} [buyNow] - This is boolean to get buy_now cart
|
|
30
36
|
* @property {CartApplicationModel.RewardPointRequest} body
|
|
31
37
|
*/
|
|
32
38
|
/**
|
|
33
39
|
* @typedef CheckoutCartParam
|
|
34
40
|
* @property {boolean} [buyNow] - This indicates the type of cart to checkout
|
|
41
|
+
* @property {string} [cartType] - The type of cart
|
|
35
42
|
* @property {CartApplicationModel.CartCheckoutDetailRequest} body
|
|
36
43
|
*/
|
|
37
44
|
/**
|
|
38
45
|
* @typedef CheckoutCartV2Param
|
|
39
46
|
* @property {boolean} [buyNow] - This indicates the type of cart to checkout
|
|
47
|
+
* @property {string} [cartType] - The type of cart
|
|
40
48
|
* @property {CartApplicationModel.CartCheckoutDetailV2Request} body
|
|
41
49
|
*/
|
|
42
50
|
/**
|
|
@@ -73,13 +81,17 @@ export = CartApplicationValidator;
|
|
|
73
81
|
*/
|
|
74
82
|
/**
|
|
75
83
|
* @typedef GetCartParam
|
|
76
|
-
* @property {string} [id]
|
|
77
|
-
* @property {boolean} [i]
|
|
78
|
-
*
|
|
79
|
-
* @property {boolean} [
|
|
80
|
-
*
|
|
81
|
-
* @property {
|
|
82
|
-
*
|
|
84
|
+
* @property {string} [id] - The unique identifier of the cart
|
|
85
|
+
* @property {boolean} [i] - This is a boolean value. Select `true` to retrieve
|
|
86
|
+
* all the items added in the cart.
|
|
87
|
+
* @property {boolean} [b] - This is a boolean value. Select `true` to retrieve
|
|
88
|
+
* the price breakup of cart items.
|
|
89
|
+
* @property {boolean} [c] - This is a boolean value. Select `true` to retrieve
|
|
90
|
+
* the cod charges in breakup of cart items.
|
|
91
|
+
* @property {number} [assignCardId] - Token of user's debit or credit card
|
|
92
|
+
* @property {string} [areaCode] - Customer servicable area_code
|
|
93
|
+
* @property {boolean} [buyNow] - This is a boolen value. Select `true` to
|
|
94
|
+
* set/initialize buy now cart
|
|
83
95
|
*/
|
|
84
96
|
/**
|
|
85
97
|
* @typedef GetCartLastModifiedParam
|
|
@@ -124,6 +136,7 @@ export = CartApplicationValidator;
|
|
|
124
136
|
* @property {number} [pageSize] - Number of offers to be fetched to show
|
|
125
137
|
* @property {string} [promotionGroup] - Type of promotion groups
|
|
126
138
|
* @property {number} [storeId] - Store id
|
|
139
|
+
* @property {string} [cartType] - The type of cart
|
|
127
140
|
*/
|
|
128
141
|
/**
|
|
129
142
|
* @typedef GetShipmentsParam
|
|
@@ -144,8 +157,8 @@ export = CartApplicationValidator;
|
|
|
144
157
|
*/
|
|
145
158
|
/**
|
|
146
159
|
* @typedef RemoveCouponParam
|
|
147
|
-
* @property {string} [id]
|
|
148
|
-
* @property {boolean} [buyNow]
|
|
160
|
+
* @property {string} [id] - The unique identifier of the cart
|
|
161
|
+
* @property {boolean} [buyNow] - This is boolean to get buy_now cart
|
|
149
162
|
*/
|
|
150
163
|
/**
|
|
151
164
|
* @typedef SelectAddressParam
|
|
@@ -168,11 +181,15 @@ export = CartApplicationValidator;
|
|
|
168
181
|
*/
|
|
169
182
|
/**
|
|
170
183
|
* @typedef UpdateCartParam
|
|
171
|
-
* @property {string} [id]
|
|
172
|
-
* @property {boolean} [i]
|
|
173
|
-
*
|
|
174
|
-
* @property {
|
|
175
|
-
*
|
|
184
|
+
* @property {string} [id] - The unique identifier of the cart
|
|
185
|
+
* @property {boolean} [i] - This is a boolean value. Select `true` to retrieve
|
|
186
|
+
* all the items added in the cart.
|
|
187
|
+
* @property {boolean} [b] - This is a boolean value. Select `true` to retrieve
|
|
188
|
+
* the price breakup of cart items.
|
|
189
|
+
* @property {string} [areaCode] - Customer servicable area_code
|
|
190
|
+
* @property {boolean} [buyNow] - This is a boolen value. Select `true` to
|
|
191
|
+
* set/initialize buy now cart
|
|
192
|
+
* @property {string} [cartType] - The type of cart
|
|
176
193
|
* @property {CartApplicationModel.UpdateCartRequest} body
|
|
177
194
|
*/
|
|
178
195
|
/**
|
|
@@ -188,17 +205,19 @@ export = CartApplicationValidator;
|
|
|
188
205
|
*/
|
|
189
206
|
/**
|
|
190
207
|
* @typedef ValidateCouponForPaymentParam
|
|
191
|
-
* @property {string} [id]
|
|
192
|
-
* @property {boolean} [buyNow]
|
|
193
|
-
* @property {string} [addressId]
|
|
194
|
-
* @property {string} [paymentMode]
|
|
195
|
-
* @property {string} [paymentIdentifier]
|
|
196
|
-
* @property {string} [aggregatorName]
|
|
197
|
-
* @property {string} [merchantCode]
|
|
198
|
-
*
|
|
199
|
-
* @property {string} [
|
|
200
|
-
* @property {string} [
|
|
201
|
-
* @property {string} [
|
|
208
|
+
* @property {string} [id] - The unique identifier of the cart
|
|
209
|
+
* @property {boolean} [buyNow] - This is boolean to get buy_now cart
|
|
210
|
+
* @property {string} [addressId] - ID allotted to an address
|
|
211
|
+
* @property {string} [paymentMode] - Payment mode selected by the customer
|
|
212
|
+
* @property {string} [paymentIdentifier] - Identifier of payment like ICIC, PAYTM
|
|
213
|
+
* @property {string} [aggregatorName] - Payment gateway identifier
|
|
214
|
+
* @property {string} [merchantCode] - Identifier used by payment gateway for a
|
|
215
|
+
* given payment mode, e.g. NB_ICIC, PAYTM
|
|
216
|
+
* @property {string} [iin] - Debit/Credit card prefix (first 6 digit)
|
|
217
|
+
* @property {string} [network] - Credit/Debit card issuer, e.g. VISA, MASTERCARD, RUPAY
|
|
218
|
+
* @property {string} [type] - Card type, e.g. Credit, Debit
|
|
219
|
+
* @property {string} [cardId] - Saved card token reference id
|
|
220
|
+
* @property {string} [cartType] - Type of the cart
|
|
202
221
|
*/
|
|
203
222
|
declare class CartApplicationValidator {
|
|
204
223
|
/** @returns {AddAddressParam} */
|
|
@@ -265,10 +284,28 @@ type AddAddressParam = {
|
|
|
265
284
|
body: CartApplicationModel.Address;
|
|
266
285
|
};
|
|
267
286
|
type AddItemsParam = {
|
|
287
|
+
/**
|
|
288
|
+
* - This is a boolean value. Select `true` to retrieve
|
|
289
|
+
* all the items added in the cart.
|
|
290
|
+
*/
|
|
268
291
|
i?: boolean;
|
|
292
|
+
/**
|
|
293
|
+
* - This is a boolean value. Select `true` to retrieve
|
|
294
|
+
* the price breakup of cart items.
|
|
295
|
+
*/
|
|
269
296
|
b?: boolean;
|
|
297
|
+
/**
|
|
298
|
+
* - Customer servicable area_code
|
|
299
|
+
*/
|
|
270
300
|
areaCode?: string;
|
|
301
|
+
/**
|
|
302
|
+
* - This is a boolen value. Select `true` to
|
|
303
|
+
* set/initialize buy now cart
|
|
304
|
+
*/
|
|
271
305
|
buyNow?: boolean;
|
|
306
|
+
/**
|
|
307
|
+
* - The unique identifier of the cart
|
|
308
|
+
*/
|
|
272
309
|
id?: string;
|
|
273
310
|
body: CartApplicationModel.AddCartRequest;
|
|
274
311
|
};
|
|
@@ -278,12 +315,27 @@ type ApplyCouponParam = {
|
|
|
278
315
|
p?: boolean;
|
|
279
316
|
id?: string;
|
|
280
317
|
buyNow?: boolean;
|
|
318
|
+
cartType?: string;
|
|
281
319
|
body: CartApplicationModel.ApplyCouponRequest;
|
|
282
320
|
};
|
|
283
321
|
type ApplyRewardPointsParam = {
|
|
322
|
+
/**
|
|
323
|
+
* - The unique identifier of the cart
|
|
324
|
+
*/
|
|
284
325
|
id?: string;
|
|
326
|
+
/**
|
|
327
|
+
* - This is a boolean value. Select `true` to retrieve
|
|
328
|
+
* all the items added in the cart.
|
|
329
|
+
*/
|
|
285
330
|
i?: boolean;
|
|
331
|
+
/**
|
|
332
|
+
* - This is a boolean value. Select `true` to retrieve
|
|
333
|
+
* the price breakup of cart items.
|
|
334
|
+
*/
|
|
286
335
|
b?: boolean;
|
|
336
|
+
/**
|
|
337
|
+
* - This is boolean to get buy_now cart
|
|
338
|
+
*/
|
|
287
339
|
buyNow?: boolean;
|
|
288
340
|
body: CartApplicationModel.RewardPointRequest;
|
|
289
341
|
};
|
|
@@ -292,6 +344,10 @@ type CheckoutCartParam = {
|
|
|
292
344
|
* - This indicates the type of cart to checkout
|
|
293
345
|
*/
|
|
294
346
|
buyNow?: boolean;
|
|
347
|
+
/**
|
|
348
|
+
* - The type of cart
|
|
349
|
+
*/
|
|
350
|
+
cartType?: string;
|
|
295
351
|
body: CartApplicationModel.CartCheckoutDetailRequest;
|
|
296
352
|
};
|
|
297
353
|
type CheckoutCartV2Param = {
|
|
@@ -299,6 +355,10 @@ type CheckoutCartV2Param = {
|
|
|
299
355
|
* - This indicates the type of cart to checkout
|
|
300
356
|
*/
|
|
301
357
|
buyNow?: boolean;
|
|
358
|
+
/**
|
|
359
|
+
* - The type of cart
|
|
360
|
+
*/
|
|
361
|
+
cartType?: string;
|
|
302
362
|
body: CartApplicationModel.CartCheckoutDetailV2Request;
|
|
303
363
|
};
|
|
304
364
|
type DeleteCartParam = {
|
|
@@ -345,12 +405,37 @@ type GetBulkDiscountOffersParam = {
|
|
|
345
405
|
slug?: string;
|
|
346
406
|
};
|
|
347
407
|
type GetCartParam = {
|
|
408
|
+
/**
|
|
409
|
+
* - The unique identifier of the cart
|
|
410
|
+
*/
|
|
348
411
|
id?: string;
|
|
412
|
+
/**
|
|
413
|
+
* - This is a boolean value. Select `true` to retrieve
|
|
414
|
+
* all the items added in the cart.
|
|
415
|
+
*/
|
|
349
416
|
i?: boolean;
|
|
417
|
+
/**
|
|
418
|
+
* - This is a boolean value. Select `true` to retrieve
|
|
419
|
+
* the price breakup of cart items.
|
|
420
|
+
*/
|
|
350
421
|
b?: boolean;
|
|
422
|
+
/**
|
|
423
|
+
* - This is a boolean value. Select `true` to retrieve
|
|
424
|
+
* the cod charges in breakup of cart items.
|
|
425
|
+
*/
|
|
351
426
|
c?: boolean;
|
|
427
|
+
/**
|
|
428
|
+
* - Token of user's debit or credit card
|
|
429
|
+
*/
|
|
352
430
|
assignCardId?: number;
|
|
431
|
+
/**
|
|
432
|
+
* - Customer servicable area_code
|
|
433
|
+
*/
|
|
353
434
|
areaCode?: string;
|
|
435
|
+
/**
|
|
436
|
+
* - This is a boolen value. Select `true` to
|
|
437
|
+
* set/initialize buy now cart
|
|
438
|
+
*/
|
|
354
439
|
buyNow?: boolean;
|
|
355
440
|
};
|
|
356
441
|
type GetCartLastModifiedParam = {
|
|
@@ -419,6 +504,10 @@ type GetPromotionOffersParam = {
|
|
|
419
504
|
* - Store id
|
|
420
505
|
*/
|
|
421
506
|
storeId?: number;
|
|
507
|
+
/**
|
|
508
|
+
* - The type of cart
|
|
509
|
+
*/
|
|
510
|
+
cartType?: string;
|
|
422
511
|
};
|
|
423
512
|
type GetShipmentsParam = {
|
|
424
513
|
/**
|
|
@@ -454,7 +543,13 @@ type RemoveAddressParam = {
|
|
|
454
543
|
id: string;
|
|
455
544
|
};
|
|
456
545
|
type RemoveCouponParam = {
|
|
546
|
+
/**
|
|
547
|
+
* - The unique identifier of the cart
|
|
548
|
+
*/
|
|
457
549
|
id?: string;
|
|
550
|
+
/**
|
|
551
|
+
* - This is boolean to get buy_now cart
|
|
552
|
+
*/
|
|
458
553
|
buyNow?: boolean;
|
|
459
554
|
};
|
|
460
555
|
type SelectAddressParam = {
|
|
@@ -477,11 +572,33 @@ type UpdateAddressParam = {
|
|
|
477
572
|
body: CartApplicationModel.Address;
|
|
478
573
|
};
|
|
479
574
|
type UpdateCartParam = {
|
|
575
|
+
/**
|
|
576
|
+
* - The unique identifier of the cart
|
|
577
|
+
*/
|
|
480
578
|
id?: string;
|
|
579
|
+
/**
|
|
580
|
+
* - This is a boolean value. Select `true` to retrieve
|
|
581
|
+
* all the items added in the cart.
|
|
582
|
+
*/
|
|
481
583
|
i?: boolean;
|
|
584
|
+
/**
|
|
585
|
+
* - This is a boolean value. Select `true` to retrieve
|
|
586
|
+
* the price breakup of cart items.
|
|
587
|
+
*/
|
|
482
588
|
b?: boolean;
|
|
589
|
+
/**
|
|
590
|
+
* - Customer servicable area_code
|
|
591
|
+
*/
|
|
483
592
|
areaCode?: string;
|
|
593
|
+
/**
|
|
594
|
+
* - This is a boolen value. Select `true` to
|
|
595
|
+
* set/initialize buy now cart
|
|
596
|
+
*/
|
|
484
597
|
buyNow?: boolean;
|
|
598
|
+
/**
|
|
599
|
+
* - The type of cart
|
|
600
|
+
*/
|
|
601
|
+
cartType?: string;
|
|
485
602
|
body: CartApplicationModel.UpdateCartRequest;
|
|
486
603
|
};
|
|
487
604
|
type UpdateCartMetaParam = {
|
|
@@ -500,16 +617,54 @@ type UpdateCartWithSharedItemsParam = {
|
|
|
500
617
|
action: string;
|
|
501
618
|
};
|
|
502
619
|
type ValidateCouponForPaymentParam = {
|
|
620
|
+
/**
|
|
621
|
+
* - The unique identifier of the cart
|
|
622
|
+
*/
|
|
503
623
|
id?: string;
|
|
624
|
+
/**
|
|
625
|
+
* - This is boolean to get buy_now cart
|
|
626
|
+
*/
|
|
504
627
|
buyNow?: boolean;
|
|
628
|
+
/**
|
|
629
|
+
* - ID allotted to an address
|
|
630
|
+
*/
|
|
505
631
|
addressId?: string;
|
|
632
|
+
/**
|
|
633
|
+
* - Payment mode selected by the customer
|
|
634
|
+
*/
|
|
506
635
|
paymentMode?: string;
|
|
636
|
+
/**
|
|
637
|
+
* - Identifier of payment like ICIC, PAYTM
|
|
638
|
+
*/
|
|
507
639
|
paymentIdentifier?: string;
|
|
640
|
+
/**
|
|
641
|
+
* - Payment gateway identifier
|
|
642
|
+
*/
|
|
508
643
|
aggregatorName?: string;
|
|
644
|
+
/**
|
|
645
|
+
* - Identifier used by payment gateway for a
|
|
646
|
+
* given payment mode, e.g. NB_ICIC, PAYTM
|
|
647
|
+
*/
|
|
509
648
|
merchantCode?: string;
|
|
649
|
+
/**
|
|
650
|
+
* - Debit/Credit card prefix (first 6 digit)
|
|
651
|
+
*/
|
|
510
652
|
iin?: string;
|
|
653
|
+
/**
|
|
654
|
+
* - Credit/Debit card issuer, e.g. VISA, MASTERCARD, RUPAY
|
|
655
|
+
*/
|
|
511
656
|
network?: string;
|
|
657
|
+
/**
|
|
658
|
+
* - Card type, e.g. Credit, Debit
|
|
659
|
+
*/
|
|
512
660
|
type?: string;
|
|
661
|
+
/**
|
|
662
|
+
* - Saved card token reference id
|
|
663
|
+
*/
|
|
513
664
|
cardId?: string;
|
|
665
|
+
/**
|
|
666
|
+
* - Type of the cart
|
|
667
|
+
*/
|
|
668
|
+
cartType?: string;
|
|
514
669
|
};
|
|
515
670
|
import CartApplicationModel = require("./CartApplicationModel");
|
|
@@ -9,11 +9,14 @@ const CartApplicationModel = require("./CartApplicationModel");
|
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* @typedef AddItemsParam
|
|
12
|
-
* @property {boolean} [i]
|
|
13
|
-
*
|
|
14
|
-
* @property {
|
|
15
|
-
*
|
|
16
|
-
* @property {string} [
|
|
12
|
+
* @property {boolean} [i] - This is a boolean value. Select `true` to retrieve
|
|
13
|
+
* all the items added in the cart.
|
|
14
|
+
* @property {boolean} [b] - This is a boolean value. Select `true` to retrieve
|
|
15
|
+
* the price breakup of cart items.
|
|
16
|
+
* @property {string} [areaCode] - Customer servicable area_code
|
|
17
|
+
* @property {boolean} [buyNow] - This is a boolen value. Select `true` to
|
|
18
|
+
* set/initialize buy now cart
|
|
19
|
+
* @property {string} [id] - The unique identifier of the cart
|
|
17
20
|
* @property {CartApplicationModel.AddCartRequest} body
|
|
18
21
|
*/
|
|
19
22
|
|
|
@@ -24,27 +27,32 @@ const CartApplicationModel = require("./CartApplicationModel");
|
|
|
24
27
|
* @property {boolean} [p]
|
|
25
28
|
* @property {string} [id]
|
|
26
29
|
* @property {boolean} [buyNow]
|
|
30
|
+
* @property {string} [cartType]
|
|
27
31
|
* @property {CartApplicationModel.ApplyCouponRequest} body
|
|
28
32
|
*/
|
|
29
33
|
|
|
30
34
|
/**
|
|
31
35
|
* @typedef ApplyRewardPointsParam
|
|
32
|
-
* @property {string} [id]
|
|
33
|
-
* @property {boolean} [i]
|
|
34
|
-
*
|
|
35
|
-
* @property {boolean} [
|
|
36
|
+
* @property {string} [id] - The unique identifier of the cart
|
|
37
|
+
* @property {boolean} [i] - This is a boolean value. Select `true` to retrieve
|
|
38
|
+
* all the items added in the cart.
|
|
39
|
+
* @property {boolean} [b] - This is a boolean value. Select `true` to retrieve
|
|
40
|
+
* the price breakup of cart items.
|
|
41
|
+
* @property {boolean} [buyNow] - This is boolean to get buy_now cart
|
|
36
42
|
* @property {CartApplicationModel.RewardPointRequest} body
|
|
37
43
|
*/
|
|
38
44
|
|
|
39
45
|
/**
|
|
40
46
|
* @typedef CheckoutCartParam
|
|
41
47
|
* @property {boolean} [buyNow] - This indicates the type of cart to checkout
|
|
48
|
+
* @property {string} [cartType] - The type of cart
|
|
42
49
|
* @property {CartApplicationModel.CartCheckoutDetailRequest} body
|
|
43
50
|
*/
|
|
44
51
|
|
|
45
52
|
/**
|
|
46
53
|
* @typedef CheckoutCartV2Param
|
|
47
54
|
* @property {boolean} [buyNow] - This indicates the type of cart to checkout
|
|
55
|
+
* @property {string} [cartType] - The type of cart
|
|
48
56
|
* @property {CartApplicationModel.CartCheckoutDetailV2Request} body
|
|
49
57
|
*/
|
|
50
58
|
|
|
@@ -86,13 +94,17 @@ const CartApplicationModel = require("./CartApplicationModel");
|
|
|
86
94
|
|
|
87
95
|
/**
|
|
88
96
|
* @typedef GetCartParam
|
|
89
|
-
* @property {string} [id]
|
|
90
|
-
* @property {boolean} [i]
|
|
91
|
-
*
|
|
92
|
-
* @property {boolean} [
|
|
93
|
-
*
|
|
94
|
-
* @property {
|
|
95
|
-
*
|
|
97
|
+
* @property {string} [id] - The unique identifier of the cart
|
|
98
|
+
* @property {boolean} [i] - This is a boolean value. Select `true` to retrieve
|
|
99
|
+
* all the items added in the cart.
|
|
100
|
+
* @property {boolean} [b] - This is a boolean value. Select `true` to retrieve
|
|
101
|
+
* the price breakup of cart items.
|
|
102
|
+
* @property {boolean} [c] - This is a boolean value. Select `true` to retrieve
|
|
103
|
+
* the cod charges in breakup of cart items.
|
|
104
|
+
* @property {number} [assignCardId] - Token of user's debit or credit card
|
|
105
|
+
* @property {string} [areaCode] - Customer servicable area_code
|
|
106
|
+
* @property {boolean} [buyNow] - This is a boolen value. Select `true` to
|
|
107
|
+
* set/initialize buy now cart
|
|
96
108
|
*/
|
|
97
109
|
|
|
98
110
|
/**
|
|
@@ -144,6 +156,7 @@ const CartApplicationModel = require("./CartApplicationModel");
|
|
|
144
156
|
* @property {number} [pageSize] - Number of offers to be fetched to show
|
|
145
157
|
* @property {string} [promotionGroup] - Type of promotion groups
|
|
146
158
|
* @property {number} [storeId] - Store id
|
|
159
|
+
* @property {string} [cartType] - The type of cart
|
|
147
160
|
*/
|
|
148
161
|
|
|
149
162
|
/**
|
|
@@ -167,8 +180,8 @@ const CartApplicationModel = require("./CartApplicationModel");
|
|
|
167
180
|
|
|
168
181
|
/**
|
|
169
182
|
* @typedef RemoveCouponParam
|
|
170
|
-
* @property {string} [id]
|
|
171
|
-
* @property {boolean} [buyNow]
|
|
183
|
+
* @property {string} [id] - The unique identifier of the cart
|
|
184
|
+
* @property {boolean} [buyNow] - This is boolean to get buy_now cart
|
|
172
185
|
*/
|
|
173
186
|
|
|
174
187
|
/**
|
|
@@ -195,11 +208,15 @@ const CartApplicationModel = require("./CartApplicationModel");
|
|
|
195
208
|
|
|
196
209
|
/**
|
|
197
210
|
* @typedef UpdateCartParam
|
|
198
|
-
* @property {string} [id]
|
|
199
|
-
* @property {boolean} [i]
|
|
200
|
-
*
|
|
201
|
-
* @property {
|
|
202
|
-
*
|
|
211
|
+
* @property {string} [id] - The unique identifier of the cart
|
|
212
|
+
* @property {boolean} [i] - This is a boolean value. Select `true` to retrieve
|
|
213
|
+
* all the items added in the cart.
|
|
214
|
+
* @property {boolean} [b] - This is a boolean value. Select `true` to retrieve
|
|
215
|
+
* the price breakup of cart items.
|
|
216
|
+
* @property {string} [areaCode] - Customer servicable area_code
|
|
217
|
+
* @property {boolean} [buyNow] - This is a boolen value. Select `true` to
|
|
218
|
+
* set/initialize buy now cart
|
|
219
|
+
* @property {string} [cartType] - The type of cart
|
|
203
220
|
* @property {CartApplicationModel.UpdateCartRequest} body
|
|
204
221
|
*/
|
|
205
222
|
|
|
@@ -218,17 +235,19 @@ const CartApplicationModel = require("./CartApplicationModel");
|
|
|
218
235
|
|
|
219
236
|
/**
|
|
220
237
|
* @typedef ValidateCouponForPaymentParam
|
|
221
|
-
* @property {string} [id]
|
|
222
|
-
* @property {boolean} [buyNow]
|
|
223
|
-
* @property {string} [addressId]
|
|
224
|
-
* @property {string} [paymentMode]
|
|
225
|
-
* @property {string} [paymentIdentifier]
|
|
226
|
-
* @property {string} [aggregatorName]
|
|
227
|
-
* @property {string} [merchantCode]
|
|
228
|
-
*
|
|
229
|
-
* @property {string} [
|
|
230
|
-
* @property {string} [
|
|
231
|
-
* @property {string} [
|
|
238
|
+
* @property {string} [id] - The unique identifier of the cart
|
|
239
|
+
* @property {boolean} [buyNow] - This is boolean to get buy_now cart
|
|
240
|
+
* @property {string} [addressId] - ID allotted to an address
|
|
241
|
+
* @property {string} [paymentMode] - Payment mode selected by the customer
|
|
242
|
+
* @property {string} [paymentIdentifier] - Identifier of payment like ICIC, PAYTM
|
|
243
|
+
* @property {string} [aggregatorName] - Payment gateway identifier
|
|
244
|
+
* @property {string} [merchantCode] - Identifier used by payment gateway for a
|
|
245
|
+
* given payment mode, e.g. NB_ICIC, PAYTM
|
|
246
|
+
* @property {string} [iin] - Debit/Credit card prefix (first 6 digit)
|
|
247
|
+
* @property {string} [network] - Credit/Debit card issuer, e.g. VISA, MASTERCARD, RUPAY
|
|
248
|
+
* @property {string} [type] - Card type, e.g. Credit, Debit
|
|
249
|
+
* @property {string} [cardId] - Saved card token reference id
|
|
250
|
+
* @property {string} [cartType] - Type of the cart
|
|
232
251
|
*/
|
|
233
252
|
|
|
234
253
|
class CartApplicationValidator {
|
|
@@ -259,6 +278,7 @@ class CartApplicationValidator {
|
|
|
259
278
|
p: Joi.boolean(),
|
|
260
279
|
id: Joi.string().allow(""),
|
|
261
280
|
buyNow: Joi.boolean(),
|
|
281
|
+
cartType: Joi.string().allow(""),
|
|
262
282
|
body: CartApplicationModel.ApplyCouponRequest().required(),
|
|
263
283
|
}).required();
|
|
264
284
|
}
|
|
@@ -278,6 +298,7 @@ class CartApplicationValidator {
|
|
|
278
298
|
static checkoutCart() {
|
|
279
299
|
return Joi.object({
|
|
280
300
|
buyNow: Joi.boolean(),
|
|
301
|
+
cartType: Joi.string().allow(""),
|
|
281
302
|
body: CartApplicationModel.CartCheckoutDetailRequest().required(),
|
|
282
303
|
}).required();
|
|
283
304
|
}
|
|
@@ -286,6 +307,7 @@ class CartApplicationValidator {
|
|
|
286
307
|
static checkoutCartV2() {
|
|
287
308
|
return Joi.object({
|
|
288
309
|
buyNow: Joi.boolean(),
|
|
310
|
+
cartType: Joi.string().allow(""),
|
|
289
311
|
body: CartApplicationModel.CartCheckoutDetailV2Request().required(),
|
|
290
312
|
}).required();
|
|
291
313
|
}
|
|
@@ -401,6 +423,7 @@ class CartApplicationValidator {
|
|
|
401
423
|
pageSize: Joi.number(),
|
|
402
424
|
promotionGroup: Joi.string().allow(""),
|
|
403
425
|
storeId: Joi.number(),
|
|
426
|
+
cartType: Joi.string().allow(""),
|
|
404
427
|
});
|
|
405
428
|
}
|
|
406
429
|
|
|
@@ -467,6 +490,7 @@ class CartApplicationValidator {
|
|
|
467
490
|
b: Joi.boolean(),
|
|
468
491
|
areaCode: Joi.string().allow(""),
|
|
469
492
|
buyNow: Joi.boolean(),
|
|
493
|
+
cartType: Joi.string().allow(""),
|
|
470
494
|
body: CartApplicationModel.UpdateCartRequest().required(),
|
|
471
495
|
}).required();
|
|
472
496
|
}
|
|
@@ -502,6 +526,7 @@ class CartApplicationValidator {
|
|
|
502
526
|
network: Joi.string().allow(""),
|
|
503
527
|
type: Joi.string().allow(""),
|
|
504
528
|
cardId: Joi.string().allow(""),
|
|
529
|
+
cartType: Joi.string().allow(""),
|
|
505
530
|
});
|
|
506
531
|
}
|
|
507
532
|
}
|