@gofynd/fdk-client-javascript 1.4.2-beta.4 → 1.4.2-beta.5
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 +1 -1
- 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/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/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/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 +19 -55
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +19 -55
- 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 -12
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +12 -14
- 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/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/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/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 +2 -2
- package/sdk/platform/User/UserPlatformModel.js +2 -2
- 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
|
@@ -104,12 +104,15 @@ export = CartPlatformApplicationValidator;
|
|
|
104
104
|
*/
|
|
105
105
|
/**
|
|
106
106
|
* @typedef GetCartParam
|
|
107
|
-
* @property {string} [id]
|
|
108
|
-
* @property {string} [userId]
|
|
109
|
-
* @property {boolean} [i]
|
|
110
|
-
*
|
|
111
|
-
* @property {
|
|
112
|
-
*
|
|
107
|
+
* @property {string} [id] - The unique identifier of the cart
|
|
108
|
+
* @property {string} [userId] - Option to fetch cart for the provided user_id.
|
|
109
|
+
* @property {boolean} [i] - This is a boolean value. Select `true` to retrieve
|
|
110
|
+
* all the items added in the cart.
|
|
111
|
+
* @property {boolean} [b] - This is a boolean value. Select `true` to retrieve
|
|
112
|
+
* the price breakup of cart items.
|
|
113
|
+
* @property {number} [assignCardId] - Token of user's debit or credit card
|
|
114
|
+
* @property {boolean} [buyNow] - This is a boolen value. Select `true` to
|
|
115
|
+
* set/initialize buy now cart
|
|
113
116
|
*/
|
|
114
117
|
/**
|
|
115
118
|
* @typedef GetCartListParam
|
|
@@ -148,7 +151,7 @@ export = CartPlatformApplicationValidator;
|
|
|
148
151
|
/**
|
|
149
152
|
* @typedef GetItemCountParam
|
|
150
153
|
* @property {string} [id] - The unique identifier of the cart.
|
|
151
|
-
* @property {boolean} [buyNow]
|
|
154
|
+
* @property {boolean} [buyNow] - Boolean value to get buy_now cart.
|
|
152
155
|
*/
|
|
153
156
|
/**
|
|
154
157
|
* @typedef GetPromosCouponConfigParam
|
|
@@ -199,28 +202,34 @@ export = CartPlatformApplicationValidator;
|
|
|
199
202
|
*/
|
|
200
203
|
/**
|
|
201
204
|
* @typedef PlatformAddItemsParam
|
|
202
|
-
* @property {boolean} [i]
|
|
203
|
-
*
|
|
204
|
-
* @property {boolean} [
|
|
205
|
-
*
|
|
205
|
+
* @property {boolean} [i] - This is a boolean value. Select `true` to retrieve
|
|
206
|
+
* all the items added in the cart.
|
|
207
|
+
* @property {boolean} [b] - This is a boolean value. Select `true` to retrieve
|
|
208
|
+
* the price breakup of cart items.
|
|
209
|
+
* @property {boolean} [buyNow] - This is a boolen value. Select `true` to
|
|
210
|
+
* set/initialize buy now cart
|
|
211
|
+
* @property {string} [id] - The unique identifier of the cart
|
|
206
212
|
* @property {CartPlatformModel.PlatformAddCartRequest} body
|
|
207
213
|
*/
|
|
208
214
|
/**
|
|
209
215
|
* @typedef PlatformCheckoutCartParam
|
|
210
|
-
* @property {string} [id]
|
|
216
|
+
* @property {string} [id] - The unique identifier of the cart
|
|
211
217
|
* @property {CartPlatformModel.PlatformCartCheckoutDetailRequest} body
|
|
212
218
|
*/
|
|
213
219
|
/**
|
|
214
220
|
* @typedef PlatformCheckoutCartV2Param
|
|
215
|
-
* @property {string} [id]
|
|
221
|
+
* @property {string} [id] - The unique identifier of the cart
|
|
216
222
|
* @property {CartPlatformModel.PlatformCartCheckoutDetailV2Request} body
|
|
217
223
|
*/
|
|
218
224
|
/**
|
|
219
225
|
* @typedef PlatformUpdateCartParam
|
|
220
|
-
* @property {string} [id]
|
|
221
|
-
* @property {boolean} [i]
|
|
222
|
-
*
|
|
223
|
-
* @property {boolean} [
|
|
226
|
+
* @property {string} [id] - The unique identifier of the cart
|
|
227
|
+
* @property {boolean} [i] - This is a boolean value. Select `true` to retrieve
|
|
228
|
+
* all the items added in the cart.
|
|
229
|
+
* @property {boolean} [b] - This is a boolean value. Select `true` to retrieve
|
|
230
|
+
* the price breakup of cart items.
|
|
231
|
+
* @property {boolean} [buyNow] - This is a boolen value. Select `true` to
|
|
232
|
+
* set/initialize buy now cart
|
|
224
233
|
* @property {CartPlatformModel.PlatformUpdateCartRequest} body
|
|
225
234
|
*/
|
|
226
235
|
/**
|
|
@@ -282,7 +291,8 @@ export = CartPlatformApplicationValidator;
|
|
|
282
291
|
*/
|
|
283
292
|
/**
|
|
284
293
|
* @typedef UpdateCartMetaConfigParam
|
|
285
|
-
* @property {string} cartMetaId
|
|
294
|
+
* @property {string} cartMetaId - CartMeta mongo _id for fetching single cart
|
|
295
|
+
* meta data for editing
|
|
286
296
|
* @property {CartPlatformModel.CartMetaConfigUpdate} body
|
|
287
297
|
*/
|
|
288
298
|
/**
|
|
@@ -556,11 +566,32 @@ type GetAvailableDeliveryModesParam = {
|
|
|
556
566
|
id?: string;
|
|
557
567
|
};
|
|
558
568
|
type GetCartParam = {
|
|
569
|
+
/**
|
|
570
|
+
* - The unique identifier of the cart
|
|
571
|
+
*/
|
|
559
572
|
id?: string;
|
|
573
|
+
/**
|
|
574
|
+
* - Option to fetch cart for the provided user_id.
|
|
575
|
+
*/
|
|
560
576
|
userId?: string;
|
|
577
|
+
/**
|
|
578
|
+
* - This is a boolean value. Select `true` to retrieve
|
|
579
|
+
* all the items added in the cart.
|
|
580
|
+
*/
|
|
561
581
|
i?: boolean;
|
|
582
|
+
/**
|
|
583
|
+
* - This is a boolean value. Select `true` to retrieve
|
|
584
|
+
* the price breakup of cart items.
|
|
585
|
+
*/
|
|
562
586
|
b?: boolean;
|
|
587
|
+
/**
|
|
588
|
+
* - Token of user's debit or credit card
|
|
589
|
+
*/
|
|
563
590
|
assignCardId?: number;
|
|
591
|
+
/**
|
|
592
|
+
* - This is a boolen value. Select `true` to
|
|
593
|
+
* set/initialize buy now cart
|
|
594
|
+
*/
|
|
564
595
|
buyNow?: boolean;
|
|
565
596
|
};
|
|
566
597
|
type GetCartListParam = {
|
|
@@ -598,6 +629,9 @@ type GetItemCountParam = {
|
|
|
598
629
|
* - The unique identifier of the cart.
|
|
599
630
|
*/
|
|
600
631
|
id?: string;
|
|
632
|
+
/**
|
|
633
|
+
* - Boolean value to get buy_now cart.
|
|
634
|
+
*/
|
|
601
635
|
buyNow?: boolean;
|
|
602
636
|
};
|
|
603
637
|
type GetPromosCouponConfigParam = {
|
|
@@ -665,24 +699,60 @@ type OverrideCartParam = {
|
|
|
665
699
|
body: CartPlatformModel.OverrideCheckoutReq;
|
|
666
700
|
};
|
|
667
701
|
type PlatformAddItemsParam = {
|
|
702
|
+
/**
|
|
703
|
+
* - This is a boolean value. Select `true` to retrieve
|
|
704
|
+
* all the items added in the cart.
|
|
705
|
+
*/
|
|
668
706
|
i?: boolean;
|
|
707
|
+
/**
|
|
708
|
+
* - This is a boolean value. Select `true` to retrieve
|
|
709
|
+
* the price breakup of cart items.
|
|
710
|
+
*/
|
|
669
711
|
b?: boolean;
|
|
712
|
+
/**
|
|
713
|
+
* - This is a boolen value. Select `true` to
|
|
714
|
+
* set/initialize buy now cart
|
|
715
|
+
*/
|
|
670
716
|
buyNow?: boolean;
|
|
717
|
+
/**
|
|
718
|
+
* - The unique identifier of the cart
|
|
719
|
+
*/
|
|
671
720
|
id?: string;
|
|
672
721
|
body: CartPlatformModel.PlatformAddCartRequest;
|
|
673
722
|
};
|
|
674
723
|
type PlatformCheckoutCartParam = {
|
|
724
|
+
/**
|
|
725
|
+
* - The unique identifier of the cart
|
|
726
|
+
*/
|
|
675
727
|
id?: string;
|
|
676
728
|
body: CartPlatformModel.PlatformCartCheckoutDetailRequest;
|
|
677
729
|
};
|
|
678
730
|
type PlatformCheckoutCartV2Param = {
|
|
731
|
+
/**
|
|
732
|
+
* - The unique identifier of the cart
|
|
733
|
+
*/
|
|
679
734
|
id?: string;
|
|
680
735
|
body: CartPlatformModel.PlatformCartCheckoutDetailV2Request;
|
|
681
736
|
};
|
|
682
737
|
type PlatformUpdateCartParam = {
|
|
738
|
+
/**
|
|
739
|
+
* - The unique identifier of the cart
|
|
740
|
+
*/
|
|
683
741
|
id?: string;
|
|
742
|
+
/**
|
|
743
|
+
* - This is a boolean value. Select `true` to retrieve
|
|
744
|
+
* all the items added in the cart.
|
|
745
|
+
*/
|
|
684
746
|
i?: boolean;
|
|
747
|
+
/**
|
|
748
|
+
* - This is a boolean value. Select `true` to retrieve
|
|
749
|
+
* the price breakup of cart items.
|
|
750
|
+
*/
|
|
685
751
|
b?: boolean;
|
|
752
|
+
/**
|
|
753
|
+
* - This is a boolen value. Select `true` to
|
|
754
|
+
* set/initialize buy now cart
|
|
755
|
+
*/
|
|
686
756
|
buyNow?: boolean;
|
|
687
757
|
body: CartPlatformModel.PlatformUpdateCartRequest;
|
|
688
758
|
};
|
|
@@ -753,6 +823,10 @@ type UpdateCartMetaParam = {
|
|
|
753
823
|
body: CartPlatformModel.PlatformCartMetaRequest;
|
|
754
824
|
};
|
|
755
825
|
type UpdateCartMetaConfigParam = {
|
|
826
|
+
/**
|
|
827
|
+
* - CartMeta mongo _id for fetching single cart
|
|
828
|
+
* meta data for editing
|
|
829
|
+
*/
|
|
756
830
|
cartMetaId: string;
|
|
757
831
|
body: CartPlatformModel.CartMetaConfigUpdate;
|
|
758
832
|
};
|
|
@@ -125,12 +125,15 @@ const CartPlatformModel = require("./CartPlatformModel");
|
|
|
125
125
|
|
|
126
126
|
/**
|
|
127
127
|
* @typedef GetCartParam
|
|
128
|
-
* @property {string} [id]
|
|
129
|
-
* @property {string} [userId]
|
|
130
|
-
* @property {boolean} [i]
|
|
131
|
-
*
|
|
132
|
-
* @property {
|
|
133
|
-
*
|
|
128
|
+
* @property {string} [id] - The unique identifier of the cart
|
|
129
|
+
* @property {string} [userId] - Option to fetch cart for the provided user_id.
|
|
130
|
+
* @property {boolean} [i] - This is a boolean value. Select `true` to retrieve
|
|
131
|
+
* all the items added in the cart.
|
|
132
|
+
* @property {boolean} [b] - This is a boolean value. Select `true` to retrieve
|
|
133
|
+
* the price breakup of cart items.
|
|
134
|
+
* @property {number} [assignCardId] - Token of user's debit or credit card
|
|
135
|
+
* @property {boolean} [buyNow] - This is a boolen value. Select `true` to
|
|
136
|
+
* set/initialize buy now cart
|
|
134
137
|
*/
|
|
135
138
|
|
|
136
139
|
/**
|
|
@@ -177,7 +180,7 @@ const CartPlatformModel = require("./CartPlatformModel");
|
|
|
177
180
|
/**
|
|
178
181
|
* @typedef GetItemCountParam
|
|
179
182
|
* @property {string} [id] - The unique identifier of the cart.
|
|
180
|
-
* @property {boolean} [buyNow]
|
|
183
|
+
* @property {boolean} [buyNow] - Boolean value to get buy_now cart.
|
|
181
184
|
*/
|
|
182
185
|
|
|
183
186
|
/**
|
|
@@ -236,31 +239,37 @@ const CartPlatformModel = require("./CartPlatformModel");
|
|
|
236
239
|
|
|
237
240
|
/**
|
|
238
241
|
* @typedef PlatformAddItemsParam
|
|
239
|
-
* @property {boolean} [i]
|
|
240
|
-
*
|
|
241
|
-
* @property {boolean} [
|
|
242
|
-
*
|
|
242
|
+
* @property {boolean} [i] - This is a boolean value. Select `true` to retrieve
|
|
243
|
+
* all the items added in the cart.
|
|
244
|
+
* @property {boolean} [b] - This is a boolean value. Select `true` to retrieve
|
|
245
|
+
* the price breakup of cart items.
|
|
246
|
+
* @property {boolean} [buyNow] - This is a boolen value. Select `true` to
|
|
247
|
+
* set/initialize buy now cart
|
|
248
|
+
* @property {string} [id] - The unique identifier of the cart
|
|
243
249
|
* @property {CartPlatformModel.PlatformAddCartRequest} body
|
|
244
250
|
*/
|
|
245
251
|
|
|
246
252
|
/**
|
|
247
253
|
* @typedef PlatformCheckoutCartParam
|
|
248
|
-
* @property {string} [id]
|
|
254
|
+
* @property {string} [id] - The unique identifier of the cart
|
|
249
255
|
* @property {CartPlatformModel.PlatformCartCheckoutDetailRequest} body
|
|
250
256
|
*/
|
|
251
257
|
|
|
252
258
|
/**
|
|
253
259
|
* @typedef PlatformCheckoutCartV2Param
|
|
254
|
-
* @property {string} [id]
|
|
260
|
+
* @property {string} [id] - The unique identifier of the cart
|
|
255
261
|
* @property {CartPlatformModel.PlatformCartCheckoutDetailV2Request} body
|
|
256
262
|
*/
|
|
257
263
|
|
|
258
264
|
/**
|
|
259
265
|
* @typedef PlatformUpdateCartParam
|
|
260
|
-
* @property {string} [id]
|
|
261
|
-
* @property {boolean} [i]
|
|
262
|
-
*
|
|
263
|
-
* @property {boolean} [
|
|
266
|
+
* @property {string} [id] - The unique identifier of the cart
|
|
267
|
+
* @property {boolean} [i] - This is a boolean value. Select `true` to retrieve
|
|
268
|
+
* all the items added in the cart.
|
|
269
|
+
* @property {boolean} [b] - This is a boolean value. Select `true` to retrieve
|
|
270
|
+
* the price breakup of cart items.
|
|
271
|
+
* @property {boolean} [buyNow] - This is a boolen value. Select `true` to
|
|
272
|
+
* set/initialize buy now cart
|
|
264
273
|
* @property {CartPlatformModel.PlatformUpdateCartRequest} body
|
|
265
274
|
*/
|
|
266
275
|
|
|
@@ -332,7 +341,8 @@ const CartPlatformModel = require("./CartPlatformModel");
|
|
|
332
341
|
|
|
333
342
|
/**
|
|
334
343
|
* @typedef UpdateCartMetaConfigParam
|
|
335
|
-
* @property {string} cartMetaId
|
|
344
|
+
* @property {string} cartMetaId - CartMeta mongo _id for fetching single cart
|
|
345
|
+
* meta data for editing
|
|
336
346
|
* @property {CartPlatformModel.CartMetaConfigUpdate} body
|
|
337
347
|
*/
|
|
338
348
|
|
|
@@ -183,6 +183,7 @@ export = CartPlatformModel;
|
|
|
183
183
|
* @typedef OperationErrorResponse
|
|
184
184
|
* @property {boolean} [success]
|
|
185
185
|
* @property {string} [message]
|
|
186
|
+
* @property {string} [error]
|
|
186
187
|
*/
|
|
187
188
|
/**
|
|
188
189
|
* @typedef CouponUpdate
|
|
@@ -380,6 +381,7 @@ export = CartPlatformModel;
|
|
|
380
381
|
* @property {Object} [_custom_json] - Custom data stored in promotion
|
|
381
382
|
* @property {PromotionDateMeta} [date_meta]
|
|
382
383
|
* @property {string} [_id] - Promotion id
|
|
384
|
+
* @property {string[]} [tags]
|
|
383
385
|
*/
|
|
384
386
|
/**
|
|
385
387
|
* @typedef PromotionsResponse
|
|
@@ -411,6 +413,7 @@ export = CartPlatformModel;
|
|
|
411
413
|
* @property {Object} buy_rules
|
|
412
414
|
* @property {Object} [_custom_json]
|
|
413
415
|
* @property {PromotionDateMeta} [date_meta]
|
|
416
|
+
* @property {string[]} [tags]
|
|
414
417
|
*/
|
|
415
418
|
/**
|
|
416
419
|
* @typedef PromotionUpdate
|
|
@@ -437,6 +440,7 @@ export = CartPlatformModel;
|
|
|
437
440
|
* @property {Object} buy_rules
|
|
438
441
|
* @property {Object} [_custom_json]
|
|
439
442
|
* @property {PromotionDateMeta} [date_meta]
|
|
443
|
+
* @property {string[]} [tags]
|
|
440
444
|
*/
|
|
441
445
|
/**
|
|
442
446
|
* @typedef PromotionPartialUpdate
|
|
@@ -470,6 +474,7 @@ export = CartPlatformModel;
|
|
|
470
474
|
/**
|
|
471
475
|
* @typedef CartMetaConfigUpdate
|
|
472
476
|
* @property {number} [min_cart_value]
|
|
477
|
+
* @property {number} [max_cart_value]
|
|
473
478
|
* @property {boolean} [bulk_coupons]
|
|
474
479
|
* @property {number} [max_cart_items]
|
|
475
480
|
* @property {string} [gift_display_text]
|
|
@@ -481,6 +486,7 @@ export = CartPlatformModel;
|
|
|
481
486
|
/**
|
|
482
487
|
* @typedef CartMetaConfigAdd
|
|
483
488
|
* @property {number} [min_cart_value]
|
|
489
|
+
* @property {number} [max_cart_value]
|
|
484
490
|
* @property {boolean} [bulk_coupons]
|
|
485
491
|
* @property {number} [max_cart_items]
|
|
486
492
|
* @property {string} [gift_display_text]
|
|
@@ -1945,6 +1951,7 @@ declare function OperationErrorResponse(): OperationErrorResponse;
|
|
|
1945
1951
|
type OperationErrorResponse = {
|
|
1946
1952
|
success?: boolean;
|
|
1947
1953
|
message?: string;
|
|
1954
|
+
error?: string;
|
|
1948
1955
|
};
|
|
1949
1956
|
/** @returns {CouponUpdate} */
|
|
1950
1957
|
declare function CouponUpdate(): CouponUpdate;
|
|
@@ -2211,6 +2218,7 @@ type PromotionListItem = {
|
|
|
2211
2218
|
* - Promotion id
|
|
2212
2219
|
*/
|
|
2213
2220
|
_id?: string;
|
|
2221
|
+
tags?: string[];
|
|
2214
2222
|
};
|
|
2215
2223
|
/** @returns {PromotionsResponse} */
|
|
2216
2224
|
declare function PromotionsResponse(): PromotionsResponse;
|
|
@@ -2247,6 +2255,7 @@ type PromotionAdd = {
|
|
|
2247
2255
|
buy_rules: any;
|
|
2248
2256
|
_custom_json?: any;
|
|
2249
2257
|
date_meta?: PromotionDateMeta;
|
|
2258
|
+
tags?: string[];
|
|
2250
2259
|
};
|
|
2251
2260
|
/** @returns {PromotionUpdate} */
|
|
2252
2261
|
declare function PromotionUpdate(): PromotionUpdate;
|
|
@@ -2277,6 +2286,7 @@ type PromotionUpdate = {
|
|
|
2277
2286
|
buy_rules: any;
|
|
2278
2287
|
_custom_json?: any;
|
|
2279
2288
|
date_meta?: PromotionDateMeta;
|
|
2289
|
+
tags?: string[];
|
|
2280
2290
|
};
|
|
2281
2291
|
/** @returns {PromotionPartialUpdate} */
|
|
2282
2292
|
declare function PromotionPartialUpdate(): PromotionPartialUpdate;
|
|
@@ -2345,6 +2355,7 @@ type DeliveryCharges = {
|
|
|
2345
2355
|
declare function CartMetaConfigUpdate(): CartMetaConfigUpdate;
|
|
2346
2356
|
type CartMetaConfigUpdate = {
|
|
2347
2357
|
min_cart_value?: number;
|
|
2358
|
+
max_cart_value?: number;
|
|
2348
2359
|
bulk_coupons?: boolean;
|
|
2349
2360
|
max_cart_items?: number;
|
|
2350
2361
|
gift_display_text?: string;
|
|
@@ -2357,6 +2368,7 @@ type CartMetaConfigUpdate = {
|
|
|
2357
2368
|
declare function CartMetaConfigAdd(): CartMetaConfigAdd;
|
|
2358
2369
|
type CartMetaConfigAdd = {
|
|
2359
2370
|
min_cart_value?: number;
|
|
2371
|
+
max_cart_value?: number;
|
|
2360
2372
|
bulk_coupons?: boolean;
|
|
2361
2373
|
max_cart_items?: number;
|
|
2362
2374
|
gift_display_text?: string;
|
|
@@ -209,6 +209,7 @@ const Joi = require("joi");
|
|
|
209
209
|
* @typedef OperationErrorResponse
|
|
210
210
|
* @property {boolean} [success]
|
|
211
211
|
* @property {string} [message]
|
|
212
|
+
* @property {string} [error]
|
|
212
213
|
*/
|
|
213
214
|
|
|
214
215
|
/**
|
|
@@ -427,6 +428,7 @@ const Joi = require("joi");
|
|
|
427
428
|
* @property {Object} [_custom_json] - Custom data stored in promotion
|
|
428
429
|
* @property {PromotionDateMeta} [date_meta]
|
|
429
430
|
* @property {string} [_id] - Promotion id
|
|
431
|
+
* @property {string[]} [tags]
|
|
430
432
|
*/
|
|
431
433
|
|
|
432
434
|
/**
|
|
@@ -460,6 +462,7 @@ const Joi = require("joi");
|
|
|
460
462
|
* @property {Object} buy_rules
|
|
461
463
|
* @property {Object} [_custom_json]
|
|
462
464
|
* @property {PromotionDateMeta} [date_meta]
|
|
465
|
+
* @property {string[]} [tags]
|
|
463
466
|
*/
|
|
464
467
|
|
|
465
468
|
/**
|
|
@@ -487,6 +490,7 @@ const Joi = require("joi");
|
|
|
487
490
|
* @property {Object} buy_rules
|
|
488
491
|
* @property {Object} [_custom_json]
|
|
489
492
|
* @property {PromotionDateMeta} [date_meta]
|
|
493
|
+
* @property {string[]} [tags]
|
|
490
494
|
*/
|
|
491
495
|
|
|
492
496
|
/**
|
|
@@ -525,6 +529,7 @@ const Joi = require("joi");
|
|
|
525
529
|
/**
|
|
526
530
|
* @typedef CartMetaConfigUpdate
|
|
527
531
|
* @property {number} [min_cart_value]
|
|
532
|
+
* @property {number} [max_cart_value]
|
|
528
533
|
* @property {boolean} [bulk_coupons]
|
|
529
534
|
* @property {number} [max_cart_items]
|
|
530
535
|
* @property {string} [gift_display_text]
|
|
@@ -537,6 +542,7 @@ const Joi = require("joi");
|
|
|
537
542
|
/**
|
|
538
543
|
* @typedef CartMetaConfigAdd
|
|
539
544
|
* @property {number} [min_cart_value]
|
|
545
|
+
* @property {number} [max_cart_value]
|
|
540
546
|
* @property {boolean} [bulk_coupons]
|
|
541
547
|
* @property {number} [max_cart_items]
|
|
542
548
|
* @property {string} [gift_display_text]
|
|
@@ -2170,6 +2176,7 @@ class CartPlatformModel {
|
|
|
2170
2176
|
return Joi.object({
|
|
2171
2177
|
success: Joi.boolean(),
|
|
2172
2178
|
message: Joi.string().allow(""),
|
|
2179
|
+
error: Joi.string().allow(""),
|
|
2173
2180
|
});
|
|
2174
2181
|
}
|
|
2175
2182
|
|
|
@@ -2429,6 +2436,7 @@ class CartPlatformModel {
|
|
|
2429
2436
|
_custom_json: Joi.any(),
|
|
2430
2437
|
date_meta: CartPlatformModel.PromotionDateMeta(),
|
|
2431
2438
|
_id: Joi.string().allow(""),
|
|
2439
|
+
tags: Joi.array().items(Joi.string().allow("")),
|
|
2432
2440
|
});
|
|
2433
2441
|
}
|
|
2434
2442
|
|
|
@@ -2469,6 +2477,7 @@ class CartPlatformModel {
|
|
|
2469
2477
|
.required(),
|
|
2470
2478
|
_custom_json: Joi.any(),
|
|
2471
2479
|
date_meta: CartPlatformModel.PromotionDateMeta(),
|
|
2480
|
+
tags: Joi.array().items(Joi.string().allow("")),
|
|
2472
2481
|
});
|
|
2473
2482
|
}
|
|
2474
2483
|
|
|
@@ -2501,6 +2510,7 @@ class CartPlatformModel {
|
|
|
2501
2510
|
.required(),
|
|
2502
2511
|
_custom_json: Joi.any(),
|
|
2503
2512
|
date_meta: CartPlatformModel.PromotionDateMeta(),
|
|
2513
|
+
tags: Joi.array().items(Joi.string().allow("")),
|
|
2504
2514
|
});
|
|
2505
2515
|
}
|
|
2506
2516
|
|
|
@@ -2548,6 +2558,7 @@ class CartPlatformModel {
|
|
|
2548
2558
|
static CartMetaConfigUpdate() {
|
|
2549
2559
|
return Joi.object({
|
|
2550
2560
|
min_cart_value: Joi.number(),
|
|
2561
|
+
max_cart_value: Joi.number(),
|
|
2551
2562
|
bulk_coupons: Joi.boolean(),
|
|
2552
2563
|
max_cart_items: Joi.number(),
|
|
2553
2564
|
gift_display_text: Joi.string().allow(""),
|
|
@@ -2562,6 +2573,7 @@ class CartPlatformModel {
|
|
|
2562
2573
|
static CartMetaConfigAdd() {
|
|
2563
2574
|
return Joi.object({
|
|
2564
2575
|
min_cart_value: Joi.number(),
|
|
2576
|
+
max_cart_value: Joi.number(),
|
|
2565
2577
|
bulk_coupons: Joi.boolean(),
|
|
2566
2578
|
max_cart_items: Joi.number(),
|
|
2567
2579
|
gift_display_text: Joi.string().allow(""),
|