@gofynd/fdk-client-javascript 3.17.0 → 3.17.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 +40 -0
- package/sdk/application/Cart/CartApplicationClient.js +176 -0
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +18 -4
- package/sdk/application/Catalog/CatalogApplicationClient.js +47 -4
- package/sdk/application/Content/ContentApplicationClient.d.ts +11 -1
- package/sdk/application/Content/ContentApplicationClient.js +40 -2
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +1 -1
- package/sdk/application/Payment/PaymentApplicationClient.js +2 -0
- package/sdk/common/Constant.d.ts +9 -0
- package/sdk/common/Constant.js +11 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +3 -2
- package/sdk/partner/Theme/ThemePartnerModel.js +5 -2
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +72 -10
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +634 -33
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +225 -1
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +147 -0
- package/sdk/platform/Cart/CartPlatformModel.d.ts +951 -1
- package/sdk/platform/Cart/CartPlatformModel.js +597 -1
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +123 -3
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +829 -39
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +205 -7
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +154 -3
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +5 -5
- package/sdk/platform/Catalog/CatalogPlatformClient.js +8 -5
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1023 -31
- package/sdk/platform/Catalog/CatalogPlatformModel.js +841 -26
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +7 -0
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +3 -0
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +7 -0
- package/sdk/platform/Communication/CommunicationPlatformModel.js +3 -0
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +92 -1
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +54 -0
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +5 -5
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +3 -3
- package/sdk/platform/Content/ContentPlatformModel.d.ts +9 -8
- package/sdk/platform/Content/ContentPlatformModel.js +11 -8
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +21 -0
- package/sdk/platform/Discount/DiscountPlatformModel.js +9 -0
- package/sdk/platform/Order/OrderPlatformClient.d.ts +2 -2
- package/sdk/platform/Order/OrderPlatformClient.js +2 -2
- package/sdk/platform/Order/OrderPlatformModel.d.ts +20 -2
- package/sdk/platform/Order/OrderPlatformModel.js +9 -1
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +14 -3
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +88 -6
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +28 -3
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +22 -2
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +356 -1
- package/sdk/platform/Payment/PaymentPlatformModel.js +229 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +3 -2
- package/sdk/platform/Theme/ThemePlatformModel.js +5 -2
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +29 -0
- package/sdk/platform/Webhook/WebhookPlatformModel.js +13 -0
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +29 -0
- package/sdk/public/Webhook/WebhookPublicModel.js +13 -0
|
@@ -23,6 +23,9 @@ const CartPlatformModel = require("./CartPlatformModel");
|
|
|
23
23
|
* @typedef ApplyCouponParam
|
|
24
24
|
* @property {string} [xOrderingSource] - Ordering source header, to be used to
|
|
25
25
|
* identify source of order creation.
|
|
26
|
+
* @property {string} [xAnonymousCart] - Anonymous cart header used to perform
|
|
27
|
+
* operations on cross-platform anonymous cart. When enabled, the system
|
|
28
|
+
* fetches the cart only based on cart_id instead of user_id.
|
|
26
29
|
* @property {boolean} [i]
|
|
27
30
|
* @property {boolean} [b]
|
|
28
31
|
* @property {boolean} [p]
|
|
@@ -53,6 +56,9 @@ const CartPlatformModel = require("./CartPlatformModel");
|
|
|
53
56
|
* @typedef CheckoutCartParam
|
|
54
57
|
* @property {string} [xOrderingSource] - Ordering source header, to be used to
|
|
55
58
|
* identify source of order creation.
|
|
59
|
+
* @property {string} [xAnonymousCart] - Anonymous cart header used to perform
|
|
60
|
+
* operations on cross-platform anonymous cart. When enabled, the system
|
|
61
|
+
* fetches the cart only based on cart_id instead of user_id.
|
|
56
62
|
* @property {CartPlatformModel.OpenApiPlatformCheckoutReq} body
|
|
57
63
|
*/
|
|
58
64
|
|
|
@@ -66,6 +72,11 @@ const CartPlatformModel = require("./CartPlatformModel");
|
|
|
66
72
|
* @property {CartPlatformModel.CouponAdd} body
|
|
67
73
|
*/
|
|
68
74
|
|
|
75
|
+
/**
|
|
76
|
+
* @typedef CreateOfferParam
|
|
77
|
+
* @property {CartPlatformModel.OfferSchema} body
|
|
78
|
+
*/
|
|
79
|
+
|
|
69
80
|
/**
|
|
70
81
|
* @typedef CreatePromotionParam
|
|
71
82
|
* @property {CartPlatformModel.PromotionAdd} body
|
|
@@ -82,6 +93,11 @@ const CartPlatformModel = require("./CartPlatformModel");
|
|
|
82
93
|
* @property {string} id
|
|
83
94
|
*/
|
|
84
95
|
|
|
96
|
+
/**
|
|
97
|
+
* @typedef DeleteOfferParam
|
|
98
|
+
* @property {string} id
|
|
99
|
+
*/
|
|
100
|
+
|
|
85
101
|
/**
|
|
86
102
|
* @typedef DeletePromotionParam
|
|
87
103
|
* @property {string} id
|
|
@@ -156,6 +172,9 @@ const CartPlatformModel = require("./CartPlatformModel");
|
|
|
156
172
|
* @typedef GetCartParam
|
|
157
173
|
* @property {string} [xOrderingSource] - Ordering source header, to be used to
|
|
158
174
|
* identify source of order creation.
|
|
175
|
+
* @property {string} [xAnonymousCart] - Anonymous cart header used to perform
|
|
176
|
+
* operations on cross-platform anonymous cart. When enabled, the system
|
|
177
|
+
* fetches the cart only based on cart_id instead of user_id.
|
|
159
178
|
* @property {string} [id] - The unique identifier of the cart
|
|
160
179
|
* @property {string} [userId] - Option to fetch cart for the provided user_id.
|
|
161
180
|
* @property {string} [orderType] - The order type of shipment HomeDelivery - If
|
|
@@ -224,6 +243,33 @@ const CartPlatformModel = require("./CartPlatformModel");
|
|
|
224
243
|
* @property {boolean} [buyNow] - Boolean value to get buy_now cart.
|
|
225
244
|
*/
|
|
226
245
|
|
|
246
|
+
/**
|
|
247
|
+
* @typedef GetOfferByIdParam
|
|
248
|
+
* @property {string} id
|
|
249
|
+
*/
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* @typedef GetOffersParam
|
|
253
|
+
* @property {number} [pageNo] - Current page no as per pagination
|
|
254
|
+
* @property {number} [pageSize] - Offers max records fetched in single request
|
|
255
|
+
* @property {string} [search] - Filter by offer name
|
|
256
|
+
* @property {string} [mode] - Filter by offer mode
|
|
257
|
+
* @property {string} [type] - Filter by offer type
|
|
258
|
+
* @property {string} [promoGroup]
|
|
259
|
+
* @property {boolean} [excludeContractOffers] - Filter non contract offers
|
|
260
|
+
* @property {string} [offerId] - Filter by offer id
|
|
261
|
+
* @property {string} [createdBy] - Filter by offer created by user id
|
|
262
|
+
* @property {string} [reviewedBy] - Filter by offer reviewer user id
|
|
263
|
+
* @property {string} [approvedStartTime] - Filter offer by start time date
|
|
264
|
+
* range when status is in approved state
|
|
265
|
+
* @property {string} [approvedEndTime] - Filter offer by end time date range
|
|
266
|
+
* when status is in approved state
|
|
267
|
+
* @property {string} [status] - Filter your offers effortlessly by status, such
|
|
268
|
+
* as draft, review and more
|
|
269
|
+
* @property {string} [code] - Filter by offer code in case of coupons
|
|
270
|
+
* @property {boolean} [isPublic] - Filter offers which are public
|
|
271
|
+
*/
|
|
272
|
+
|
|
227
273
|
/**
|
|
228
274
|
* @typedef GetPriceAdjustmentsParam
|
|
229
275
|
* @property {string} cartId - Cart id of user cart
|
|
@@ -317,6 +363,9 @@ const CartPlatformModel = require("./CartPlatformModel");
|
|
|
317
363
|
* @typedef PlatformAddItemsParam
|
|
318
364
|
* @property {string} [xOrderingSource] - Ordering source header, to be used to
|
|
319
365
|
* identify source of order creation.
|
|
366
|
+
* @property {string} [xAnonymousCart] - Anonymous cart header used to perform
|
|
367
|
+
* operations on cross-platform anonymous cart. When enabled, the system
|
|
368
|
+
* fetches the cart only based on cart_id instead of user_id.
|
|
320
369
|
* @property {boolean} [i] - This is a boolean value. Select `true` to retrieve
|
|
321
370
|
* all the items added in the cart.
|
|
322
371
|
* @property {boolean} [b] - This is a boolean value. Select `true` to retrieve
|
|
@@ -334,6 +383,9 @@ const CartPlatformModel = require("./CartPlatformModel");
|
|
|
334
383
|
* @typedef PlatformCheckoutCartParam
|
|
335
384
|
* @property {string} [xOrderingSource] - Ordering source header, to be used to
|
|
336
385
|
* identify source of order creation.
|
|
386
|
+
* @property {string} [xAnonymousCart] - Anonymous cart header used to perform
|
|
387
|
+
* operations on cross-platform anonymous cart. When enabled, the system
|
|
388
|
+
* fetches the cart only based on cart_id instead of user_id.
|
|
337
389
|
* @property {string} [id] - The unique identifier of the cart
|
|
338
390
|
* @property {CartPlatformModel.PlatformCartCheckoutDetailCreation} body
|
|
339
391
|
*/
|
|
@@ -350,6 +402,9 @@ const CartPlatformModel = require("./CartPlatformModel");
|
|
|
350
402
|
* @typedef PlatformUpdateCartParam
|
|
351
403
|
* @property {string} [xOrderingSource] - Ordering source header, to be used to
|
|
352
404
|
* identify source of order creation.
|
|
405
|
+
* @property {string} [xAnonymousCart] - Anonymous cart header used to perform
|
|
406
|
+
* operations on cross-platform anonymous cart. When enabled, the system
|
|
407
|
+
* fetches the cart only based on cart_id instead of user_id.
|
|
353
408
|
* @property {string} [id] - The unique identifier of the cart
|
|
354
409
|
* @property {boolean} [i] - This is a boolean value. Select `true` to retrieve
|
|
355
410
|
* all the items added in the cart.
|
|
@@ -373,6 +428,9 @@ const CartPlatformModel = require("./CartPlatformModel");
|
|
|
373
428
|
* @typedef RemoveCouponParam
|
|
374
429
|
* @property {string} [xOrderingSource] - Ordering source header, to be used to
|
|
375
430
|
* identify source of order creation.
|
|
431
|
+
* @property {string} [xAnonymousCart] - Anonymous cart header used to perform
|
|
432
|
+
* operations on cross-platform anonymous cart. When enabled, the system
|
|
433
|
+
* fetches the cart only based on cart_id instead of user_id.
|
|
376
434
|
* @property {string} [uid]
|
|
377
435
|
* @property {boolean} [buyNow]
|
|
378
436
|
*/
|
|
@@ -386,6 +444,9 @@ const CartPlatformModel = require("./CartPlatformModel");
|
|
|
386
444
|
* @typedef SelectAddressParam
|
|
387
445
|
* @property {string} [xOrderingSource] - Ordering source header, to be used to
|
|
388
446
|
* identify source of order creation.
|
|
447
|
+
* @property {string} [xAnonymousCart] - Anonymous cart header used to perform
|
|
448
|
+
* operations on cross-platform anonymous cart. When enabled, the system
|
|
449
|
+
* fetches the cart only based on cart_id instead of user_id.
|
|
389
450
|
* @property {string} [cartId]
|
|
390
451
|
* @property {boolean} [buyNow]
|
|
391
452
|
* @property {boolean} [i]
|
|
@@ -397,6 +458,9 @@ const CartPlatformModel = require("./CartPlatformModel");
|
|
|
397
458
|
* @typedef SelectPaymentModeParam
|
|
398
459
|
* @property {string} [xOrderingSource] - Ordering source header, to be used to
|
|
399
460
|
* identify source of order creation.
|
|
461
|
+
* @property {string} [xAnonymousCart] - Anonymous cart header used to perform
|
|
462
|
+
* operations on cross-platform anonymous cart. When enabled, the system
|
|
463
|
+
* fetches the cart only based on cart_id instead of user_id.
|
|
400
464
|
* @property {string} [id]
|
|
401
465
|
* @property {boolean} [buyNow]
|
|
402
466
|
* @property {string} [orderType]
|
|
@@ -431,6 +495,9 @@ const CartPlatformModel = require("./CartPlatformModel");
|
|
|
431
495
|
* @property {string} [xOrderingSource] - Identifier for the ordering source
|
|
432
496
|
* (e.g., web, mobile app, POS). Used to determine the origin of the order
|
|
433
497
|
* request and apply source-specific rules.
|
|
498
|
+
* @property {string} [xAnonymousCart] - Anonymous cart header used to perform
|
|
499
|
+
* operations on cross-platform anonymous cart. When enabled, the system
|
|
500
|
+
* fetches the cart only based on cart_id instead of user_id.
|
|
434
501
|
* @property {string} [id] - Unique identifier of the cart for which the breakup
|
|
435
502
|
* needs to be updated.
|
|
436
503
|
* @property {boolean} [i] - Set to `true` to include all items currently added
|
|
@@ -481,6 +548,18 @@ const CartPlatformModel = require("./CartPlatformModel");
|
|
|
481
548
|
* @property {CartPlatformModel.CouponPartialUpdate} body
|
|
482
549
|
*/
|
|
483
550
|
|
|
551
|
+
/**
|
|
552
|
+
* @typedef UpdateOfferParam
|
|
553
|
+
* @property {string} id
|
|
554
|
+
* @property {CartPlatformModel.OfferSchema} body
|
|
555
|
+
*/
|
|
556
|
+
|
|
557
|
+
/**
|
|
558
|
+
* @typedef UpdateOfferPartiallyParam
|
|
559
|
+
* @property {string} id
|
|
560
|
+
* @property {CartPlatformModel.OfferPartialUpdate} body
|
|
561
|
+
*/
|
|
562
|
+
|
|
484
563
|
/**
|
|
485
564
|
* @typedef UpdatePriceAdjustmentParam
|
|
486
565
|
* @property {string} id
|
|
@@ -555,6 +634,7 @@ class CartPlatformApplicationValidator {
|
|
|
555
634
|
static applyCoupon() {
|
|
556
635
|
return Joi.object({
|
|
557
636
|
xOrderingSource: Joi.string().allow(""),
|
|
637
|
+
xAnonymousCart: Joi.string().allow(""),
|
|
558
638
|
|
|
559
639
|
i: Joi.boolean(),
|
|
560
640
|
b: Joi.boolean(),
|
|
@@ -591,6 +671,7 @@ class CartPlatformApplicationValidator {
|
|
|
591
671
|
static checkoutCart() {
|
|
592
672
|
return Joi.object({
|
|
593
673
|
xOrderingSource: Joi.string().allow(""),
|
|
674
|
+
xAnonymousCart: Joi.string().allow(""),
|
|
594
675
|
|
|
595
676
|
body: CartPlatformModel.OpenApiPlatformCheckoutReq().required(),
|
|
596
677
|
}).required();
|
|
@@ -610,6 +691,13 @@ class CartPlatformApplicationValidator {
|
|
|
610
691
|
}).required();
|
|
611
692
|
}
|
|
612
693
|
|
|
694
|
+
/** @returns {CreateOfferParam} */
|
|
695
|
+
static createOffer() {
|
|
696
|
+
return Joi.object({
|
|
697
|
+
body: CartPlatformModel.OfferSchema().required(),
|
|
698
|
+
}).required();
|
|
699
|
+
}
|
|
700
|
+
|
|
613
701
|
/** @returns {CreatePromotionParam} */
|
|
614
702
|
static createPromotion() {
|
|
615
703
|
return Joi.object({
|
|
@@ -632,6 +720,13 @@ class CartPlatformApplicationValidator {
|
|
|
632
720
|
}).required();
|
|
633
721
|
}
|
|
634
722
|
|
|
723
|
+
/** @returns {DeleteOfferParam} */
|
|
724
|
+
static deleteOffer() {
|
|
725
|
+
return Joi.object({
|
|
726
|
+
id: Joi.string().allow("").required(),
|
|
727
|
+
}).required();
|
|
728
|
+
}
|
|
729
|
+
|
|
635
730
|
/** @returns {DeletePromotionParam} */
|
|
636
731
|
static deletePromotion() {
|
|
637
732
|
return Joi.object({
|
|
@@ -725,6 +820,7 @@ class CartPlatformApplicationValidator {
|
|
|
725
820
|
static getCart() {
|
|
726
821
|
return Joi.object({
|
|
727
822
|
xOrderingSource: Joi.string().allow(""),
|
|
823
|
+
xAnonymousCart: Joi.string().allow(""),
|
|
728
824
|
|
|
729
825
|
id: Joi.string().allow(""),
|
|
730
826
|
userId: Joi.string().allow(""),
|
|
@@ -807,6 +903,34 @@ class CartPlatformApplicationValidator {
|
|
|
807
903
|
}).required();
|
|
808
904
|
}
|
|
809
905
|
|
|
906
|
+
/** @returns {GetOfferByIdParam} */
|
|
907
|
+
static getOfferById() {
|
|
908
|
+
return Joi.object({
|
|
909
|
+
id: Joi.string().allow("").required(),
|
|
910
|
+
}).required();
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
/** @returns {GetOffersParam} */
|
|
914
|
+
static getOffers() {
|
|
915
|
+
return Joi.object({
|
|
916
|
+
pageNo: Joi.number(),
|
|
917
|
+
pageSize: Joi.number(),
|
|
918
|
+
search: Joi.string().allow(""),
|
|
919
|
+
mode: Joi.string().allow(""),
|
|
920
|
+
type: Joi.string().allow(""),
|
|
921
|
+
promoGroup: Joi.string().allow(""),
|
|
922
|
+
excludeContractOffers: Joi.boolean(),
|
|
923
|
+
offerId: Joi.string().allow(""),
|
|
924
|
+
createdBy: Joi.string().allow(""),
|
|
925
|
+
reviewedBy: Joi.string().allow(""),
|
|
926
|
+
approvedStartTime: Joi.string().allow(""),
|
|
927
|
+
approvedEndTime: Joi.string().allow(""),
|
|
928
|
+
status: Joi.string().allow(""),
|
|
929
|
+
code: Joi.string().allow(""),
|
|
930
|
+
isPublic: Joi.boolean(),
|
|
931
|
+
}).required();
|
|
932
|
+
}
|
|
933
|
+
|
|
810
934
|
/** @returns {GetPriceAdjustmentsParam} */
|
|
811
935
|
static getPriceAdjustments() {
|
|
812
936
|
return Joi.object({
|
|
@@ -913,6 +1037,7 @@ class CartPlatformApplicationValidator {
|
|
|
913
1037
|
static platformAddItems() {
|
|
914
1038
|
return Joi.object({
|
|
915
1039
|
xOrderingSource: Joi.string().allow(""),
|
|
1040
|
+
xAnonymousCart: Joi.string().allow(""),
|
|
916
1041
|
|
|
917
1042
|
i: Joi.boolean(),
|
|
918
1043
|
b: Joi.boolean(),
|
|
@@ -927,6 +1052,7 @@ class CartPlatformApplicationValidator {
|
|
|
927
1052
|
static platformCheckoutCart() {
|
|
928
1053
|
return Joi.object({
|
|
929
1054
|
xOrderingSource: Joi.string().allow(""),
|
|
1055
|
+
xAnonymousCart: Joi.string().allow(""),
|
|
930
1056
|
|
|
931
1057
|
id: Joi.string().allow(""),
|
|
932
1058
|
body: CartPlatformModel.PlatformCartCheckoutDetailCreation().required(),
|
|
@@ -947,6 +1073,7 @@ class CartPlatformApplicationValidator {
|
|
|
947
1073
|
static platformUpdateCart() {
|
|
948
1074
|
return Joi.object({
|
|
949
1075
|
xOrderingSource: Joi.string().allow(""),
|
|
1076
|
+
xAnonymousCart: Joi.string().allow(""),
|
|
950
1077
|
|
|
951
1078
|
id: Joi.string().allow(""),
|
|
952
1079
|
i: Joi.boolean(),
|
|
@@ -969,6 +1096,7 @@ class CartPlatformApplicationValidator {
|
|
|
969
1096
|
static removeCoupon() {
|
|
970
1097
|
return Joi.object({
|
|
971
1098
|
xOrderingSource: Joi.string().allow(""),
|
|
1099
|
+
xAnonymousCart: Joi.string().allow(""),
|
|
972
1100
|
|
|
973
1101
|
uid: Joi.string().allow(""),
|
|
974
1102
|
buyNow: Joi.boolean(),
|
|
@@ -986,6 +1114,7 @@ class CartPlatformApplicationValidator {
|
|
|
986
1114
|
static selectAddress() {
|
|
987
1115
|
return Joi.object({
|
|
988
1116
|
xOrderingSource: Joi.string().allow(""),
|
|
1117
|
+
xAnonymousCart: Joi.string().allow(""),
|
|
989
1118
|
|
|
990
1119
|
cartId: Joi.string().allow(""),
|
|
991
1120
|
buyNow: Joi.boolean(),
|
|
@@ -999,6 +1128,7 @@ class CartPlatformApplicationValidator {
|
|
|
999
1128
|
static selectPaymentMode() {
|
|
1000
1129
|
return Joi.object({
|
|
1001
1130
|
xOrderingSource: Joi.string().allow(""),
|
|
1131
|
+
xAnonymousCart: Joi.string().allow(""),
|
|
1002
1132
|
|
|
1003
1133
|
id: Joi.string().allow(""),
|
|
1004
1134
|
buyNow: Joi.boolean(),
|
|
@@ -1040,6 +1170,7 @@ class CartPlatformApplicationValidator {
|
|
|
1040
1170
|
static updateCartBreakup() {
|
|
1041
1171
|
return Joi.object({
|
|
1042
1172
|
xOrderingSource: Joi.string().allow(""),
|
|
1173
|
+
xAnonymousCart: Joi.string().allow(""),
|
|
1043
1174
|
|
|
1044
1175
|
id: Joi.string().allow(""),
|
|
1045
1176
|
i: Joi.boolean(),
|
|
@@ -1099,6 +1230,22 @@ class CartPlatformApplicationValidator {
|
|
|
1099
1230
|
}).required();
|
|
1100
1231
|
}
|
|
1101
1232
|
|
|
1233
|
+
/** @returns {UpdateOfferParam} */
|
|
1234
|
+
static updateOffer() {
|
|
1235
|
+
return Joi.object({
|
|
1236
|
+
id: Joi.string().allow("").required(),
|
|
1237
|
+
body: CartPlatformModel.OfferSchema().required(),
|
|
1238
|
+
}).required();
|
|
1239
|
+
}
|
|
1240
|
+
|
|
1241
|
+
/** @returns {UpdateOfferPartiallyParam} */
|
|
1242
|
+
static updateOfferPartially() {
|
|
1243
|
+
return Joi.object({
|
|
1244
|
+
id: Joi.string().allow("").required(),
|
|
1245
|
+
body: CartPlatformModel.OfferPartialUpdate().required(),
|
|
1246
|
+
}).required();
|
|
1247
|
+
}
|
|
1248
|
+
|
|
1102
1249
|
/** @returns {UpdatePriceAdjustmentParam} */
|
|
1103
1250
|
static updatePriceAdjustment() {
|
|
1104
1251
|
return Joi.object({
|