@gofynd/fdk-client-javascript 1.4.15 → 1.4.16-beta.2
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 +16 -16
- package/sdk/application/Cart/CartApplicationClient.js +101 -48
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +16 -16
- package/sdk/application/Catalog/CatalogApplicationClient.js +159 -0
- package/sdk/application/Common/CommonApplicationClient.js +6 -0
- package/sdk/application/Communication/CommunicationApplicationClient.js +6 -0
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +2 -2
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +24 -0
- package/sdk/application/Content/ContentApplicationClient.d.ts +59 -7
- package/sdk/application/Content/ContentApplicationClient.js +290 -0
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +2 -2
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +24 -0
- package/sdk/application/Finance/FinanceApplicationClient.js +6 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +4 -4
- package/sdk/application/Lead/LeadApplicationClient.js +42 -0
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +6 -6
- package/sdk/application/Logistic/LogisticApplicationClient.js +69 -2
- package/sdk/application/Order/OrderApplicationClient.d.ts +11 -11
- package/sdk/application/Order/OrderApplicationClient.js +117 -0
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +1 -11
- package/sdk/application/Payment/PaymentApplicationClient.js +15 -39
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +1 -1
- package/sdk/application/Rewards/RewardsApplicationClient.js +15 -0
- package/sdk/application/Share/ShareApplicationClient.d.ts +4 -4
- package/sdk/application/Share/ShareApplicationClient.js +42 -0
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +3 -3
- package/sdk/application/Theme/ThemeApplicationClient.js +36 -0
- package/sdk/application/User/UserApplicationClient.js +6 -0
- package/sdk/application/Webhook/WebhookApplicationClient.js +6 -0
- package/sdk/common/Utility.d.ts +1 -1
- package/sdk/common/Utility.js +4 -4
- package/sdk/common/Validator.d.ts +1 -0
- package/sdk/common/Validator.js +20 -0
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +12 -33
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +38 -209
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +19 -399
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +11 -212
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +1 -3
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +7 -22
- package/sdk/partner/OAuthClient.js +1 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +3 -40
- package/sdk/partner/Theme/ThemePartnerModel.js +2 -24
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +1 -1
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +12 -3
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +11 -1
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +4 -1
- package/sdk/platform/Cart/CartPlatformModel.d.ts +49 -28
- package/sdk/platform/Cart/CartPlatformModel.js +23 -13
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +0 -24
- package/sdk/platform/Catalog/CatalogPlatformClient.js +0 -176
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +33 -80
- package/sdk/platform/Catalog/CatalogPlatformModel.js +36 -72
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +1 -45
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +0 -35
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +7 -0
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +3 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +132 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1104 -122
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +159 -1
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +161 -0
- package/sdk/platform/Content/ContentPlatformModel.d.ts +220 -5
- package/sdk/platform/Content/ContentPlatformModel.js +214 -4
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +0 -10
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +0 -92
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -28
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +0 -18
- package/sdk/platform/Order/OrderPlatformClient.d.ts +12 -2
- package/sdk/platform/Order/OrderPlatformClient.js +99 -8
- package/sdk/platform/Order/OrderPlatformModel.d.ts +3 -75
- package/sdk/platform/Order/OrderPlatformModel.js +2 -43
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +33 -23
- package/sdk/platform/Order/OrderPlatformValidator.js +20 -10
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +1 -95
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +78 -701
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +23 -598
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +20 -382
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +3 -136
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +2 -110
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Share/SharePlatformApplicationClient.js +7 -7
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +3 -6
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +10 -2
- package/sdk/platform/Share/SharePlatformModel.js +4 -2
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +3 -40
- package/sdk/platform/Theme/ThemePlatformModel.js +2 -24
- package/sdk/public/Configuration/ConfigurationPublicClient.js +1 -0
- package/sdk/public/Content/ContentPublicClient.d.ts +3 -3
- package/sdk/public/Content/ContentPublicClient.js +28 -0
- package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
- package/sdk/public/Partner/PartnerPublicClient.js +10 -0
- package/sdk/public/Webhook/WebhookPublicClient.js +1 -0
|
@@ -181,6 +181,8 @@ export = CartPlatformModel;
|
|
|
181
181
|
* @property {Validity} [validity]
|
|
182
182
|
* @property {RuleDefinition} [rule_definition]
|
|
183
183
|
* @property {string} [_id] - Unique identifier of coupon
|
|
184
|
+
* @property {boolean} [is_archived] - Indicates if the coupon is in archived
|
|
185
|
+
* state or not.
|
|
184
186
|
*/
|
|
185
187
|
/**
|
|
186
188
|
* @typedef Page
|
|
@@ -319,6 +321,7 @@ export = CartPlatformModel;
|
|
|
319
321
|
* @property {number[]} [item_exclude_l2_category] - List of all L2 category on
|
|
320
322
|
* which promotion is not applicable
|
|
321
323
|
* @property {string[]} [item_sku] - List of all item sku on which promotion is applicable
|
|
324
|
+
* @property {string[]} [item_exclude_product_tags]
|
|
322
325
|
*/
|
|
323
326
|
/**
|
|
324
327
|
* @typedef DiscountOffer
|
|
@@ -461,6 +464,8 @@ export = CartPlatformModel;
|
|
|
461
464
|
* @property {PromotionDateMeta} [date_meta]
|
|
462
465
|
* @property {string} [_id] - Unique identifier of promotion
|
|
463
466
|
* @property {string[]} [tags] - List of tags on which promotion is applicable
|
|
467
|
+
* @property {boolean} [is_archived] - Indicates if the promotion is in archived
|
|
468
|
+
* state or not.
|
|
464
469
|
*/
|
|
465
470
|
/**
|
|
466
471
|
* @typedef PromotionsResult
|
|
@@ -496,6 +501,7 @@ export = CartPlatformModel;
|
|
|
496
501
|
* @property {Object} [_custom_json] - Set extra properties in promotion
|
|
497
502
|
* @property {PromotionDateMeta} [date_meta]
|
|
498
503
|
* @property {string[]} [tags] - List of tags applicable for promotion
|
|
504
|
+
* @property {string} [_id] - Unique Identifier for promotion.
|
|
499
505
|
*/
|
|
500
506
|
/**
|
|
501
507
|
* @typedef PromotionAddResult
|
|
@@ -528,6 +534,8 @@ export = CartPlatformModel;
|
|
|
528
534
|
* @property {Object} [_custom_json] - Set extra properties in promotion
|
|
529
535
|
* @property {PromotionDateMeta} [date_meta]
|
|
530
536
|
* @property {string[]} [tags] - List of tags applicable for promotion
|
|
537
|
+
* @property {boolean} [is_archived] - Indicates if the promotion is in archived
|
|
538
|
+
* state or not.
|
|
531
539
|
*/
|
|
532
540
|
/**
|
|
533
541
|
* @typedef PromotionUpdate
|
|
@@ -594,6 +602,8 @@ export = CartPlatformModel;
|
|
|
594
602
|
* @property {Object} [_custom_json] - Set extra properties in promotion
|
|
595
603
|
* @property {PromotionDateMeta} [date_meta]
|
|
596
604
|
* @property {string[]} [tags] - List of tags applicable for promotion
|
|
605
|
+
* @property {boolean} [is_archived] - Indicates if the promotion is in archived
|
|
606
|
+
* state or not.
|
|
597
607
|
*/
|
|
598
608
|
/**
|
|
599
609
|
* @typedef PromotionPartialUpdate
|
|
@@ -1000,6 +1010,8 @@ export = CartPlatformModel;
|
|
|
1000
1010
|
* @property {BuyRules[]} [buy_rules] - Buy rules for promotions
|
|
1001
1011
|
* @property {string} [offer_text] - Offer text of current promotion
|
|
1002
1012
|
* @property {number} [amount] - Per unit discount amount applied with current promotion
|
|
1013
|
+
* @property {string} [float_amount] - Per unit discount amount with decimal
|
|
1014
|
+
* values applied with current promotion.
|
|
1003
1015
|
* @property {string} [promotion_type] - Promotion type of current promotion
|
|
1004
1016
|
* @property {boolean} [mrp_promotion] - If applied promotion is applied on
|
|
1005
1017
|
* product MRP or ESP
|
|
@@ -1968,10 +1980,6 @@ export = CartPlatformModel;
|
|
|
1968
1980
|
* @property {string} [network]
|
|
1969
1981
|
* @property {string} [type]
|
|
1970
1982
|
* @property {string} [card_id]
|
|
1971
|
-
* @property {string} [success_callback_url] - Success callback url to be
|
|
1972
|
-
* redirected after payment received
|
|
1973
|
-
* @property {string} [failure_callback_url] - Failure callback url to be
|
|
1974
|
-
* redirected after payment failed
|
|
1975
1983
|
*/
|
|
1976
1984
|
/**
|
|
1977
1985
|
* @typedef CheckCart
|
|
@@ -2170,10 +2178,6 @@ export = CartPlatformModel;
|
|
|
2170
2178
|
* the payment
|
|
2171
2179
|
* @property {string} [type] - Type of cart if payment mode is card to do the payment
|
|
2172
2180
|
* @property {string} [card_id] - Saved card id if payment mode is card to do the payment
|
|
2173
|
-
* @property {string} [success_callback_url] - Success callback url to be
|
|
2174
|
-
* redirected after payment received
|
|
2175
|
-
* @property {string} [failure_callback_url] - Failure callback url to be
|
|
2176
|
-
* redirected after payment failed
|
|
2177
2181
|
*/
|
|
2178
2182
|
/**
|
|
2179
2183
|
* @typedef UpdateCartPaymentRequestV2
|
|
@@ -2233,6 +2237,8 @@ export = CartPlatformModel;
|
|
|
2233
2237
|
* @property {Object[]} [discount_rules] - Discount rules of promotions
|
|
2234
2238
|
* @property {FreeGiftItems[]} [free_gift_items] - Details of free gift items
|
|
2235
2239
|
* @property {string} [description] - Offer details including T&C
|
|
2240
|
+
* @property {boolean} [is_bank_offer] - Indicates whether the promotion is
|
|
2241
|
+
* associated with a bank offer.
|
|
2236
2242
|
*/
|
|
2237
2243
|
/**
|
|
2238
2244
|
* @typedef PromotionOffersDetails
|
|
@@ -2709,6 +2715,11 @@ type CouponAdd = {
|
|
|
2709
2715
|
* - Unique identifier of coupon
|
|
2710
2716
|
*/
|
|
2711
2717
|
_id?: string;
|
|
2718
|
+
/**
|
|
2719
|
+
* - Indicates if the coupon is in archived
|
|
2720
|
+
* state or not.
|
|
2721
|
+
*/
|
|
2722
|
+
is_archived?: boolean;
|
|
2712
2723
|
};
|
|
2713
2724
|
/** @returns {Page} */
|
|
2714
2725
|
declare function Page(): Page;
|
|
@@ -3033,6 +3044,7 @@ type ItemCriteria = {
|
|
|
3033
3044
|
* - List of all item sku on which promotion is applicable
|
|
3034
3045
|
*/
|
|
3035
3046
|
item_sku?: string[];
|
|
3047
|
+
item_exclude_product_tags?: string[];
|
|
3036
3048
|
};
|
|
3037
3049
|
/** @returns {DiscountOffer} */
|
|
3038
3050
|
declare function DiscountOffer(): DiscountOffer;
|
|
@@ -3382,6 +3394,11 @@ type PromotionListItem = {
|
|
|
3382
3394
|
* - List of tags on which promotion is applicable
|
|
3383
3395
|
*/
|
|
3384
3396
|
tags?: string[];
|
|
3397
|
+
/**
|
|
3398
|
+
* - Indicates if the promotion is in archived
|
|
3399
|
+
* state or not.
|
|
3400
|
+
*/
|
|
3401
|
+
is_archived?: boolean;
|
|
3385
3402
|
};
|
|
3386
3403
|
/** @returns {PromotionsResult} */
|
|
3387
3404
|
declare function PromotionsResult(): PromotionsResult;
|
|
@@ -3464,6 +3481,10 @@ type PromotionAdd = {
|
|
|
3464
3481
|
* - List of tags applicable for promotion
|
|
3465
3482
|
*/
|
|
3466
3483
|
tags?: string[];
|
|
3484
|
+
/**
|
|
3485
|
+
* - Unique Identifier for promotion.
|
|
3486
|
+
*/
|
|
3487
|
+
_id?: string;
|
|
3467
3488
|
};
|
|
3468
3489
|
/** @returns {PromotionAddResult} */
|
|
3469
3490
|
declare function PromotionAddResult(): PromotionAddResult;
|
|
@@ -3542,6 +3563,11 @@ type PromotionAddResult = {
|
|
|
3542
3563
|
* - List of tags applicable for promotion
|
|
3543
3564
|
*/
|
|
3544
3565
|
tags?: string[];
|
|
3566
|
+
/**
|
|
3567
|
+
* - Indicates if the promotion is in archived
|
|
3568
|
+
* state or not.
|
|
3569
|
+
*/
|
|
3570
|
+
is_archived?: boolean;
|
|
3545
3571
|
};
|
|
3546
3572
|
/** @returns {PromotionUpdate} */
|
|
3547
3573
|
declare function PromotionUpdate(): PromotionUpdate;
|
|
@@ -3703,6 +3729,11 @@ type PromotionUpdateResult = {
|
|
|
3703
3729
|
* - List of tags applicable for promotion
|
|
3704
3730
|
*/
|
|
3705
3731
|
tags?: string[];
|
|
3732
|
+
/**
|
|
3733
|
+
* - Indicates if the promotion is in archived
|
|
3734
|
+
* state or not.
|
|
3735
|
+
*/
|
|
3736
|
+
is_archived?: boolean;
|
|
3706
3737
|
};
|
|
3707
3738
|
/** @returns {PromotionPartialUpdate} */
|
|
3708
3739
|
declare function PromotionPartialUpdate(): PromotionPartialUpdate;
|
|
@@ -4721,6 +4752,11 @@ type AppliedPromotion = {
|
|
|
4721
4752
|
* - Per unit discount amount applied with current promotion
|
|
4722
4753
|
*/
|
|
4723
4754
|
amount?: number;
|
|
4755
|
+
/**
|
|
4756
|
+
* - Per unit discount amount with decimal
|
|
4757
|
+
* values applied with current promotion.
|
|
4758
|
+
*/
|
|
4759
|
+
float_amount?: string;
|
|
4724
4760
|
/**
|
|
4725
4761
|
* - Promotion type of current promotion
|
|
4726
4762
|
*/
|
|
@@ -7189,16 +7225,6 @@ type PlatformCartCheckoutDetailCreation = {
|
|
|
7189
7225
|
network?: string;
|
|
7190
7226
|
type?: string;
|
|
7191
7227
|
card_id?: string;
|
|
7192
|
-
/**
|
|
7193
|
-
* - Success callback url to be
|
|
7194
|
-
* redirected after payment received
|
|
7195
|
-
*/
|
|
7196
|
-
success_callback_url?: string;
|
|
7197
|
-
/**
|
|
7198
|
-
* - Failure callback url to be
|
|
7199
|
-
* redirected after payment failed
|
|
7200
|
-
*/
|
|
7201
|
-
failure_callback_url?: string;
|
|
7202
7228
|
};
|
|
7203
7229
|
/** @returns {CheckCart} */
|
|
7204
7230
|
declare function CheckCart(): CheckCart;
|
|
@@ -7727,16 +7753,6 @@ type PlatformCartCheckoutDetailV2Creation = {
|
|
|
7727
7753
|
* - Saved card id if payment mode is card to do the payment
|
|
7728
7754
|
*/
|
|
7729
7755
|
card_id?: string;
|
|
7730
|
-
/**
|
|
7731
|
-
* - Success callback url to be
|
|
7732
|
-
* redirected after payment received
|
|
7733
|
-
*/
|
|
7734
|
-
success_callback_url?: string;
|
|
7735
|
-
/**
|
|
7736
|
-
* - Failure callback url to be
|
|
7737
|
-
* redirected after payment failed
|
|
7738
|
-
*/
|
|
7739
|
-
failure_callback_url?: string;
|
|
7740
7756
|
};
|
|
7741
7757
|
/** @returns {UpdateCartPaymentRequestV2} */
|
|
7742
7758
|
declare function UpdateCartPaymentRequestV2(): UpdateCartPaymentRequestV2;
|
|
@@ -7886,6 +7902,11 @@ type PromotionOffer = {
|
|
|
7886
7902
|
* - Offer details including T&C
|
|
7887
7903
|
*/
|
|
7888
7904
|
description?: string;
|
|
7905
|
+
/**
|
|
7906
|
+
* - Indicates whether the promotion is
|
|
7907
|
+
* associated with a bank offer.
|
|
7908
|
+
*/
|
|
7909
|
+
is_bank_offer?: boolean;
|
|
7889
7910
|
};
|
|
7890
7911
|
/** @returns {PromotionOffersDetails} */
|
|
7891
7912
|
declare function PromotionOffersDetails(): PromotionOffersDetails;
|
|
@@ -203,6 +203,8 @@ const Joi = require("joi");
|
|
|
203
203
|
* @property {Validity} [validity]
|
|
204
204
|
* @property {RuleDefinition} [rule_definition]
|
|
205
205
|
* @property {string} [_id] - Unique identifier of coupon
|
|
206
|
+
* @property {boolean} [is_archived] - Indicates if the coupon is in archived
|
|
207
|
+
* state or not.
|
|
206
208
|
*/
|
|
207
209
|
|
|
208
210
|
/**
|
|
@@ -353,6 +355,7 @@ const Joi = require("joi");
|
|
|
353
355
|
* @property {number[]} [item_exclude_l2_category] - List of all L2 category on
|
|
354
356
|
* which promotion is not applicable
|
|
355
357
|
* @property {string[]} [item_sku] - List of all item sku on which promotion is applicable
|
|
358
|
+
* @property {string[]} [item_exclude_product_tags]
|
|
356
359
|
*/
|
|
357
360
|
|
|
358
361
|
/**
|
|
@@ -510,6 +513,8 @@ const Joi = require("joi");
|
|
|
510
513
|
* @property {PromotionDateMeta} [date_meta]
|
|
511
514
|
* @property {string} [_id] - Unique identifier of promotion
|
|
512
515
|
* @property {string[]} [tags] - List of tags on which promotion is applicable
|
|
516
|
+
* @property {boolean} [is_archived] - Indicates if the promotion is in archived
|
|
517
|
+
* state or not.
|
|
513
518
|
*/
|
|
514
519
|
|
|
515
520
|
/**
|
|
@@ -547,6 +552,7 @@ const Joi = require("joi");
|
|
|
547
552
|
* @property {Object} [_custom_json] - Set extra properties in promotion
|
|
548
553
|
* @property {PromotionDateMeta} [date_meta]
|
|
549
554
|
* @property {string[]} [tags] - List of tags applicable for promotion
|
|
555
|
+
* @property {string} [_id] - Unique Identifier for promotion.
|
|
550
556
|
*/
|
|
551
557
|
|
|
552
558
|
/**
|
|
@@ -580,6 +586,8 @@ const Joi = require("joi");
|
|
|
580
586
|
* @property {Object} [_custom_json] - Set extra properties in promotion
|
|
581
587
|
* @property {PromotionDateMeta} [date_meta]
|
|
582
588
|
* @property {string[]} [tags] - List of tags applicable for promotion
|
|
589
|
+
* @property {boolean} [is_archived] - Indicates if the promotion is in archived
|
|
590
|
+
* state or not.
|
|
583
591
|
*/
|
|
584
592
|
|
|
585
593
|
/**
|
|
@@ -648,6 +656,8 @@ const Joi = require("joi");
|
|
|
648
656
|
* @property {Object} [_custom_json] - Set extra properties in promotion
|
|
649
657
|
* @property {PromotionDateMeta} [date_meta]
|
|
650
658
|
* @property {string[]} [tags] - List of tags applicable for promotion
|
|
659
|
+
* @property {boolean} [is_archived] - Indicates if the promotion is in archived
|
|
660
|
+
* state or not.
|
|
651
661
|
*/
|
|
652
662
|
|
|
653
663
|
/**
|
|
@@ -1096,6 +1106,8 @@ const Joi = require("joi");
|
|
|
1096
1106
|
* @property {BuyRules[]} [buy_rules] - Buy rules for promotions
|
|
1097
1107
|
* @property {string} [offer_text] - Offer text of current promotion
|
|
1098
1108
|
* @property {number} [amount] - Per unit discount amount applied with current promotion
|
|
1109
|
+
* @property {string} [float_amount] - Per unit discount amount with decimal
|
|
1110
|
+
* values applied with current promotion.
|
|
1099
1111
|
* @property {string} [promotion_type] - Promotion type of current promotion
|
|
1100
1112
|
* @property {boolean} [mrp_promotion] - If applied promotion is applied on
|
|
1101
1113
|
* product MRP or ESP
|
|
@@ -2148,10 +2160,6 @@ const Joi = require("joi");
|
|
|
2148
2160
|
* @property {string} [network]
|
|
2149
2161
|
* @property {string} [type]
|
|
2150
2162
|
* @property {string} [card_id]
|
|
2151
|
-
* @property {string} [success_callback_url] - Success callback url to be
|
|
2152
|
-
* redirected after payment received
|
|
2153
|
-
* @property {string} [failure_callback_url] - Failure callback url to be
|
|
2154
|
-
* redirected after payment failed
|
|
2155
2163
|
*/
|
|
2156
2164
|
|
|
2157
2165
|
/**
|
|
@@ -2362,10 +2370,6 @@ const Joi = require("joi");
|
|
|
2362
2370
|
* the payment
|
|
2363
2371
|
* @property {string} [type] - Type of cart if payment mode is card to do the payment
|
|
2364
2372
|
* @property {string} [card_id] - Saved card id if payment mode is card to do the payment
|
|
2365
|
-
* @property {string} [success_callback_url] - Success callback url to be
|
|
2366
|
-
* redirected after payment received
|
|
2367
|
-
* @property {string} [failure_callback_url] - Failure callback url to be
|
|
2368
|
-
* redirected after payment failed
|
|
2369
2373
|
*/
|
|
2370
2374
|
|
|
2371
2375
|
/**
|
|
@@ -2431,6 +2435,8 @@ const Joi = require("joi");
|
|
|
2431
2435
|
* @property {Object[]} [discount_rules] - Discount rules of promotions
|
|
2432
2436
|
* @property {FreeGiftItems[]} [free_gift_items] - Details of free gift items
|
|
2433
2437
|
* @property {string} [description] - Offer details including T&C
|
|
2438
|
+
* @property {boolean} [is_bank_offer] - Indicates whether the promotion is
|
|
2439
|
+
* associated with a bank offer.
|
|
2434
2440
|
*/
|
|
2435
2441
|
|
|
2436
2442
|
/**
|
|
@@ -2700,6 +2706,7 @@ class CartPlatformModel {
|
|
|
2700
2706
|
validity: CartPlatformModel.Validity(),
|
|
2701
2707
|
rule_definition: CartPlatformModel.RuleDefinition(),
|
|
2702
2708
|
_id: Joi.string().allow(""),
|
|
2709
|
+
is_archived: Joi.boolean(),
|
|
2703
2710
|
});
|
|
2704
2711
|
}
|
|
2705
2712
|
|
|
@@ -2850,6 +2857,7 @@ class CartPlatformModel {
|
|
|
2850
2857
|
item_tags: Joi.array().items(Joi.string().allow("")),
|
|
2851
2858
|
item_exclude_l2_category: Joi.array().items(Joi.number()),
|
|
2852
2859
|
item_sku: Joi.array().items(Joi.string().allow("")),
|
|
2860
|
+
item_exclude_product_tags: Joi.array().items(Joi.string().allow("")),
|
|
2853
2861
|
});
|
|
2854
2862
|
}
|
|
2855
2863
|
|
|
@@ -2961,7 +2969,7 @@ class CartPlatformModel {
|
|
|
2961
2969
|
static PromotionAction() {
|
|
2962
2970
|
return Joi.object({
|
|
2963
2971
|
action_date: Joi.string().allow("").allow(null),
|
|
2964
|
-
action_type: Joi.string().allow(""),
|
|
2972
|
+
action_type: Joi.string().allow("").allow(null),
|
|
2965
2973
|
});
|
|
2966
2974
|
}
|
|
2967
2975
|
|
|
@@ -3025,6 +3033,7 @@ class CartPlatformModel {
|
|
|
3025
3033
|
date_meta: CartPlatformModel.PromotionDateMeta(),
|
|
3026
3034
|
_id: Joi.string().allow(""),
|
|
3027
3035
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
3036
|
+
is_archived: Joi.boolean(),
|
|
3028
3037
|
});
|
|
3029
3038
|
}
|
|
3030
3039
|
|
|
@@ -3062,6 +3071,7 @@ class CartPlatformModel {
|
|
|
3062
3071
|
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
3063
3072
|
date_meta: CartPlatformModel.PromotionDateMeta(),
|
|
3064
3073
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
3074
|
+
_id: Joi.string().allow(""),
|
|
3065
3075
|
});
|
|
3066
3076
|
}
|
|
3067
3077
|
|
|
@@ -3092,6 +3102,7 @@ class CartPlatformModel {
|
|
|
3092
3102
|
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
3093
3103
|
date_meta: CartPlatformModel.PromotionDateMeta(),
|
|
3094
3104
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
3105
|
+
is_archived: Joi.boolean(),
|
|
3095
3106
|
});
|
|
3096
3107
|
}
|
|
3097
3108
|
|
|
@@ -3153,6 +3164,7 @@ class CartPlatformModel {
|
|
|
3153
3164
|
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
3154
3165
|
date_meta: CartPlatformModel.PromotionDateMeta(),
|
|
3155
3166
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
3167
|
+
is_archived: Joi.boolean(),
|
|
3156
3168
|
});
|
|
3157
3169
|
}
|
|
3158
3170
|
|
|
@@ -3625,6 +3637,7 @@ class CartPlatformModel {
|
|
|
3625
3637
|
buy_rules: Joi.array().items(CartPlatformModel.BuyRules()),
|
|
3626
3638
|
offer_text: Joi.string().allow(""),
|
|
3627
3639
|
amount: Joi.number(),
|
|
3640
|
+
float_amount: Joi.string().allow(""),
|
|
3628
3641
|
promotion_type: Joi.string().allow(""),
|
|
3629
3642
|
mrp_promotion: Joi.boolean(),
|
|
3630
3643
|
promotion_group: Joi.string().allow(""),
|
|
@@ -4714,8 +4727,6 @@ class CartPlatformModel {
|
|
|
4714
4727
|
network: Joi.string().allow(""),
|
|
4715
4728
|
type: Joi.string().allow(""),
|
|
4716
4729
|
card_id: Joi.string().allow(""),
|
|
4717
|
-
success_callback_url: Joi.string().allow("").allow(null),
|
|
4718
|
-
failure_callback_url: Joi.string().allow("").allow(null),
|
|
4719
4730
|
});
|
|
4720
4731
|
}
|
|
4721
4732
|
|
|
@@ -4915,8 +4926,6 @@ class CartPlatformModel {
|
|
|
4915
4926
|
network: Joi.string().allow(""),
|
|
4916
4927
|
type: Joi.string().allow(""),
|
|
4917
4928
|
card_id: Joi.string().allow(""),
|
|
4918
|
-
success_callback_url: Joi.string().allow("").allow(null),
|
|
4919
|
-
failure_callback_url: Joi.string().allow("").allow(null),
|
|
4920
4929
|
});
|
|
4921
4930
|
}
|
|
4922
4931
|
|
|
@@ -4986,6 +4995,7 @@ class CartPlatformModel {
|
|
|
4986
4995
|
discount_rules: Joi.array().items(Joi.any()),
|
|
4987
4996
|
free_gift_items: Joi.array().items(CartPlatformModel.FreeGiftItems()),
|
|
4988
4997
|
description: Joi.string().allow(""),
|
|
4998
|
+
is_bank_offer: Joi.boolean(),
|
|
4989
4999
|
});
|
|
4990
5000
|
}
|
|
4991
5001
|
|
|
@@ -961,30 +961,6 @@ declare class Catalog {
|
|
|
961
961
|
* @description: Allows to add Inventory for particular size and selling location. for associated companies - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateInventories/).
|
|
962
962
|
*/
|
|
963
963
|
updateInventories({ body, requestHeaders }?: CatalogPlatformValidator.UpdateInventoriesParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.InventoryUpdateResponseSchema>;
|
|
964
|
-
/**
|
|
965
|
-
* @param {CatalogPlatformValidator.UpdateLocationPriceParam} arg - Arg object
|
|
966
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
967
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
968
|
-
* @returns {Promise<CatalogPlatformModel.LocationPriceQuantitySuccessResponseSchema>}
|
|
969
|
-
* - Success response
|
|
970
|
-
*
|
|
971
|
-
* @name updateLocationPrice
|
|
972
|
-
* @summary: Update an Article Price
|
|
973
|
-
* @description: enables you to update article price for a specific size and selling location (store). The price updates will be reflected instantly after the API call. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateLocationPrice/).
|
|
974
|
-
*/
|
|
975
|
-
updateLocationPrice({ storeId, sellerIdentifier, body, requestHeaders }?: CatalogPlatformValidator.UpdateLocationPriceParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.LocationPriceQuantitySuccessResponseSchema>;
|
|
976
|
-
/**
|
|
977
|
-
* @param {CatalogPlatformValidator.UpdateLocationQuantityParam} arg - Arg object
|
|
978
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
979
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
980
|
-
* @returns {Promise<CatalogPlatformModel.LocationPriceQuantitySuccessResponseSchema>}
|
|
981
|
-
* - Success response
|
|
982
|
-
*
|
|
983
|
-
* @name updateLocationQuantity
|
|
984
|
-
* @summary: Update an Article Quantity
|
|
985
|
-
* @description: enables you to update article quantity for a specific size and selling location (store). The quantity updates will be reflected instantly after the API call. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateLocationQuantity/).
|
|
986
|
-
*/
|
|
987
|
-
updateLocationQuantity({ storeId, sellerIdentifier, body, requestHeaders }?: CatalogPlatformValidator.UpdateLocationQuantityParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.LocationPriceQuantitySuccessResponseSchema>;
|
|
988
964
|
/**
|
|
989
965
|
* @param {CatalogPlatformValidator.UpdateMarketplaceOptinParam} arg - Arg object
|
|
990
966
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -6210,182 +6210,6 @@ class Catalog {
|
|
|
6210
6210
|
return response;
|
|
6211
6211
|
}
|
|
6212
6212
|
|
|
6213
|
-
/**
|
|
6214
|
-
* @param {CatalogPlatformValidator.UpdateLocationPriceParam} arg - Arg object
|
|
6215
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
6216
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
6217
|
-
* @returns {Promise<CatalogPlatformModel.LocationPriceQuantitySuccessResponseSchema>}
|
|
6218
|
-
* - Success response
|
|
6219
|
-
*
|
|
6220
|
-
* @name updateLocationPrice
|
|
6221
|
-
* @summary: Update an Article Price
|
|
6222
|
-
* @description: enables you to update article price for a specific size and selling location (store). The price updates will be reflected instantly after the API call. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateLocationPrice/).
|
|
6223
|
-
*/
|
|
6224
|
-
async updateLocationPrice(
|
|
6225
|
-
{ storeId, sellerIdentifier, body, requestHeaders } = {
|
|
6226
|
-
requestHeaders: {},
|
|
6227
|
-
},
|
|
6228
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
6229
|
-
) {
|
|
6230
|
-
const { error } = CatalogPlatformValidator.updateLocationPrice().validate(
|
|
6231
|
-
{
|
|
6232
|
-
storeId,
|
|
6233
|
-
sellerIdentifier,
|
|
6234
|
-
body,
|
|
6235
|
-
},
|
|
6236
|
-
{ abortEarly: false, allowUnknown: true }
|
|
6237
|
-
);
|
|
6238
|
-
if (error) {
|
|
6239
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
6240
|
-
}
|
|
6241
|
-
|
|
6242
|
-
// Showing warrnings if extra unknown parameters are found
|
|
6243
|
-
const {
|
|
6244
|
-
error: warrning,
|
|
6245
|
-
} = CatalogPlatformValidator.updateLocationPrice().validate(
|
|
6246
|
-
{
|
|
6247
|
-
storeId,
|
|
6248
|
-
sellerIdentifier,
|
|
6249
|
-
body,
|
|
6250
|
-
},
|
|
6251
|
-
{ abortEarly: false, allowUnknown: false }
|
|
6252
|
-
);
|
|
6253
|
-
if (warrning) {
|
|
6254
|
-
Logger({
|
|
6255
|
-
level: "WARN",
|
|
6256
|
-
message: `Parameter Validation warrnings for platform > Catalog > updateLocationPrice \n ${warrning}`,
|
|
6257
|
-
});
|
|
6258
|
-
}
|
|
6259
|
-
|
|
6260
|
-
const query_params = {};
|
|
6261
|
-
|
|
6262
|
-
const xHeaders = {};
|
|
6263
|
-
|
|
6264
|
-
const response = await PlatformAPIClient.execute(
|
|
6265
|
-
this.config,
|
|
6266
|
-
"post",
|
|
6267
|
-
`/service/platform/catalog/v1.0/company/${this.config.companyId}/store/${storeId}/identifier/${sellerIdentifier}/price`,
|
|
6268
|
-
query_params,
|
|
6269
|
-
body,
|
|
6270
|
-
{ ...xHeaders, ...requestHeaders },
|
|
6271
|
-
{ responseHeaders }
|
|
6272
|
-
);
|
|
6273
|
-
|
|
6274
|
-
let responseData = response;
|
|
6275
|
-
if (responseHeaders) {
|
|
6276
|
-
responseData = response[0];
|
|
6277
|
-
}
|
|
6278
|
-
|
|
6279
|
-
const {
|
|
6280
|
-
error: res_error,
|
|
6281
|
-
} = CatalogPlatformModel.LocationPriceQuantitySuccessResponseSchema().validate(
|
|
6282
|
-
responseData,
|
|
6283
|
-
{ abortEarly: false, allowUnknown: true }
|
|
6284
|
-
);
|
|
6285
|
-
|
|
6286
|
-
if (res_error) {
|
|
6287
|
-
if (this.config.options.strictResponseCheck === true) {
|
|
6288
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
6289
|
-
} else {
|
|
6290
|
-
Logger({
|
|
6291
|
-
level: "WARN",
|
|
6292
|
-
message: `Response Validation Warnings for platform > Catalog > updateLocationPrice \n ${res_error}`,
|
|
6293
|
-
});
|
|
6294
|
-
}
|
|
6295
|
-
}
|
|
6296
|
-
|
|
6297
|
-
return response;
|
|
6298
|
-
}
|
|
6299
|
-
|
|
6300
|
-
/**
|
|
6301
|
-
* @param {CatalogPlatformValidator.UpdateLocationQuantityParam} arg - Arg object
|
|
6302
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
6303
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
6304
|
-
* @returns {Promise<CatalogPlatformModel.LocationPriceQuantitySuccessResponseSchema>}
|
|
6305
|
-
* - Success response
|
|
6306
|
-
*
|
|
6307
|
-
* @name updateLocationQuantity
|
|
6308
|
-
* @summary: Update an Article Quantity
|
|
6309
|
-
* @description: enables you to update article quantity for a specific size and selling location (store). The quantity updates will be reflected instantly after the API call. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateLocationQuantity/).
|
|
6310
|
-
*/
|
|
6311
|
-
async updateLocationQuantity(
|
|
6312
|
-
{ storeId, sellerIdentifier, body, requestHeaders } = {
|
|
6313
|
-
requestHeaders: {},
|
|
6314
|
-
},
|
|
6315
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
6316
|
-
) {
|
|
6317
|
-
const {
|
|
6318
|
-
error,
|
|
6319
|
-
} = CatalogPlatformValidator.updateLocationQuantity().validate(
|
|
6320
|
-
{
|
|
6321
|
-
storeId,
|
|
6322
|
-
sellerIdentifier,
|
|
6323
|
-
body,
|
|
6324
|
-
},
|
|
6325
|
-
{ abortEarly: false, allowUnknown: true }
|
|
6326
|
-
);
|
|
6327
|
-
if (error) {
|
|
6328
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
6329
|
-
}
|
|
6330
|
-
|
|
6331
|
-
// Showing warrnings if extra unknown parameters are found
|
|
6332
|
-
const {
|
|
6333
|
-
error: warrning,
|
|
6334
|
-
} = CatalogPlatformValidator.updateLocationQuantity().validate(
|
|
6335
|
-
{
|
|
6336
|
-
storeId,
|
|
6337
|
-
sellerIdentifier,
|
|
6338
|
-
body,
|
|
6339
|
-
},
|
|
6340
|
-
{ abortEarly: false, allowUnknown: false }
|
|
6341
|
-
);
|
|
6342
|
-
if (warrning) {
|
|
6343
|
-
Logger({
|
|
6344
|
-
level: "WARN",
|
|
6345
|
-
message: `Parameter Validation warrnings for platform > Catalog > updateLocationQuantity \n ${warrning}`,
|
|
6346
|
-
});
|
|
6347
|
-
}
|
|
6348
|
-
|
|
6349
|
-
const query_params = {};
|
|
6350
|
-
|
|
6351
|
-
const xHeaders = {};
|
|
6352
|
-
|
|
6353
|
-
const response = await PlatformAPIClient.execute(
|
|
6354
|
-
this.config,
|
|
6355
|
-
"post",
|
|
6356
|
-
`/service/platform/catalog/v1.0/company/${this.config.companyId}/store/${storeId}/identifier/${sellerIdentifier}/quantity`,
|
|
6357
|
-
query_params,
|
|
6358
|
-
body,
|
|
6359
|
-
{ ...xHeaders, ...requestHeaders },
|
|
6360
|
-
{ responseHeaders }
|
|
6361
|
-
);
|
|
6362
|
-
|
|
6363
|
-
let responseData = response;
|
|
6364
|
-
if (responseHeaders) {
|
|
6365
|
-
responseData = response[0];
|
|
6366
|
-
}
|
|
6367
|
-
|
|
6368
|
-
const {
|
|
6369
|
-
error: res_error,
|
|
6370
|
-
} = CatalogPlatformModel.LocationPriceQuantitySuccessResponseSchema().validate(
|
|
6371
|
-
responseData,
|
|
6372
|
-
{ abortEarly: false, allowUnknown: true }
|
|
6373
|
-
);
|
|
6374
|
-
|
|
6375
|
-
if (res_error) {
|
|
6376
|
-
if (this.config.options.strictResponseCheck === true) {
|
|
6377
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
6378
|
-
} else {
|
|
6379
|
-
Logger({
|
|
6380
|
-
level: "WARN",
|
|
6381
|
-
message: `Response Validation Warnings for platform > Catalog > updateLocationQuantity \n ${res_error}`,
|
|
6382
|
-
});
|
|
6383
|
-
}
|
|
6384
|
-
}
|
|
6385
|
-
|
|
6386
|
-
return response;
|
|
6387
|
-
}
|
|
6388
|
-
|
|
6389
6213
|
/**
|
|
6390
6214
|
* @param {CatalogPlatformValidator.UpdateMarketplaceOptinParam} arg - Arg object
|
|
6391
6215
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|