@gofynd/fdk-client-javascript 3.17.0 → 3.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Cart/CartApplicationClient.d.ts +40 -0
  4. package/sdk/application/Cart/CartApplicationClient.js +176 -0
  5. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +18 -4
  6. package/sdk/application/Catalog/CatalogApplicationClient.js +47 -4
  7. package/sdk/application/Content/ContentApplicationClient.d.ts +11 -1
  8. package/sdk/application/Content/ContentApplicationClient.js +40 -2
  9. package/sdk/application/Payment/PaymentApplicationClient.d.ts +1 -1
  10. package/sdk/application/Payment/PaymentApplicationClient.js +2 -0
  11. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +72 -10
  12. package/sdk/platform/Cart/CartPlatformApplicationClient.js +634 -33
  13. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +225 -1
  14. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +147 -0
  15. package/sdk/platform/Cart/CartPlatformModel.d.ts +951 -1
  16. package/sdk/platform/Cart/CartPlatformModel.js +597 -1
  17. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +123 -3
  18. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +829 -39
  19. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +205 -7
  20. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +154 -3
  21. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +5 -5
  22. package/sdk/platform/Catalog/CatalogPlatformClient.js +8 -5
  23. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1020 -29
  24. package/sdk/platform/Catalog/CatalogPlatformModel.js +836 -24
  25. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +7 -0
  26. package/sdk/platform/Catalog/CatalogPlatformValidator.js +3 -0
  27. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +92 -1
  28. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +54 -0
  29. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +21 -0
  30. package/sdk/platform/Discount/DiscountPlatformModel.js +9 -0
  31. package/sdk/platform/Order/OrderPlatformClient.d.ts +1 -1
  32. package/sdk/platform/Order/OrderPlatformClient.js +1 -1
  33. package/sdk/platform/Order/OrderPlatformModel.d.ts +20 -2
  34. package/sdk/platform/Order/OrderPlatformModel.js +9 -1
  35. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +14 -3
  36. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +88 -6
  37. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +28 -3
  38. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +22 -2
  39. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +356 -1
  40. package/sdk/platform/Payment/PaymentPlatformModel.js +229 -0
  41. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +29 -0
  42. package/sdk/platform/Webhook/WebhookPlatformModel.js +13 -0
  43. package/sdk/public/Webhook/WebhookPublicModel.d.ts +29 -0
  44. package/sdk/public/Webhook/WebhookPublicModel.js +13 -0
@@ -17,6 +17,9 @@ export = CartPlatformApplicationValidator;
17
17
  * @typedef ApplyCouponParam
18
18
  * @property {string} [xOrderingSource] - Ordering source header, to be used to
19
19
  * identify source of order creation.
20
+ * @property {string} [xAnonymousCart] - Anonymous cart header used to perform
21
+ * operations on cross-platform anonymous cart. When enabled, the system
22
+ * fetches the cart only based on cart_id instead of user_id.
20
23
  * @property {boolean} [i]
21
24
  * @property {boolean} [b]
22
25
  * @property {boolean} [p]
@@ -44,6 +47,9 @@ export = CartPlatformApplicationValidator;
44
47
  * @typedef CheckoutCartParam
45
48
  * @property {string} [xOrderingSource] - Ordering source header, to be used to
46
49
  * identify source of order creation.
50
+ * @property {string} [xAnonymousCart] - Anonymous cart header used to perform
51
+ * operations on cross-platform anonymous cart. When enabled, the system
52
+ * fetches the cart only based on cart_id instead of user_id.
47
53
  * @property {CartPlatformModel.OpenApiPlatformCheckoutReq} body
48
54
  */
49
55
  /**
@@ -54,6 +60,10 @@ export = CartPlatformApplicationValidator;
54
60
  * @typedef CreateCouponParam
55
61
  * @property {CartPlatformModel.CouponAdd} body
56
62
  */
63
+ /**
64
+ * @typedef CreateOfferParam
65
+ * @property {CartPlatformModel.OfferSchema} body
66
+ */
57
67
  /**
58
68
  * @typedef CreatePromotionParam
59
69
  * @property {CartPlatformModel.PromotionAdd} body
@@ -67,6 +77,10 @@ export = CartPlatformApplicationValidator;
67
77
  * @typedef DeleteCouponParam
68
78
  * @property {string} id
69
79
  */
80
+ /**
81
+ * @typedef DeleteOfferParam
82
+ * @property {string} id
83
+ */
70
84
  /**
71
85
  * @typedef DeletePromotionParam
72
86
  * @property {string} id
@@ -132,6 +146,9 @@ export = CartPlatformApplicationValidator;
132
146
  * @typedef GetCartParam
133
147
  * @property {string} [xOrderingSource] - Ordering source header, to be used to
134
148
  * identify source of order creation.
149
+ * @property {string} [xAnonymousCart] - Anonymous cart header used to perform
150
+ * operations on cross-platform anonymous cart. When enabled, the system
151
+ * fetches the cart only based on cart_id instead of user_id.
135
152
  * @property {string} [id] - The unique identifier of the cart
136
153
  * @property {string} [userId] - Option to fetch cart for the provided user_id.
137
154
  * @property {string} [orderType] - The order type of shipment HomeDelivery - If
@@ -191,6 +208,31 @@ export = CartPlatformApplicationValidator;
191
208
  * @property {string} [id] - The unique identifier of the cart.
192
209
  * @property {boolean} [buyNow] - Boolean value to get buy_now cart.
193
210
  */
211
+ /**
212
+ * @typedef GetOfferByIdParam
213
+ * @property {string} id
214
+ */
215
+ /**
216
+ * @typedef GetOffersParam
217
+ * @property {number} [pageNo] - Current page no as per pagination
218
+ * @property {number} [pageSize] - Offers max records fetched in single request
219
+ * @property {string} [search] - Filter by offer name
220
+ * @property {string} [mode] - Filter by offer mode
221
+ * @property {string} [type] - Filter by offer type
222
+ * @property {string} [promoGroup]
223
+ * @property {boolean} [excludeContractOffers] - Filter non contract offers
224
+ * @property {string} [offerId] - Filter by offer id
225
+ * @property {string} [createdBy] - Filter by offer created by user id
226
+ * @property {string} [reviewedBy] - Filter by offer reviewer user id
227
+ * @property {string} [approvedStartTime] - Filter offer by start time date
228
+ * range when status is in approved state
229
+ * @property {string} [approvedEndTime] - Filter offer by end time date range
230
+ * when status is in approved state
231
+ * @property {string} [status] - Filter your offers effortlessly by status, such
232
+ * as draft, review and more
233
+ * @property {string} [code] - Filter by offer code in case of coupons
234
+ * @property {boolean} [isPublic] - Filter offers which are public
235
+ */
194
236
  /**
195
237
  * @typedef GetPriceAdjustmentsParam
196
238
  * @property {string} cartId - Cart id of user cart
@@ -274,6 +316,9 @@ export = CartPlatformApplicationValidator;
274
316
  * @typedef PlatformAddItemsParam
275
317
  * @property {string} [xOrderingSource] - Ordering source header, to be used to
276
318
  * identify source of order creation.
319
+ * @property {string} [xAnonymousCart] - Anonymous cart header used to perform
320
+ * operations on cross-platform anonymous cart. When enabled, the system
321
+ * fetches the cart only based on cart_id instead of user_id.
277
322
  * @property {boolean} [i] - This is a boolean value. Select `true` to retrieve
278
323
  * all the items added in the cart.
279
324
  * @property {boolean} [b] - This is a boolean value. Select `true` to retrieve
@@ -290,6 +335,9 @@ export = CartPlatformApplicationValidator;
290
335
  * @typedef PlatformCheckoutCartParam
291
336
  * @property {string} [xOrderingSource] - Ordering source header, to be used to
292
337
  * identify source of order creation.
338
+ * @property {string} [xAnonymousCart] - Anonymous cart header used to perform
339
+ * operations on cross-platform anonymous cart. When enabled, the system
340
+ * fetches the cart only based on cart_id instead of user_id.
293
341
  * @property {string} [id] - The unique identifier of the cart
294
342
  * @property {CartPlatformModel.PlatformCartCheckoutDetailCreation} body
295
343
  */
@@ -304,6 +352,9 @@ export = CartPlatformApplicationValidator;
304
352
  * @typedef PlatformUpdateCartParam
305
353
  * @property {string} [xOrderingSource] - Ordering source header, to be used to
306
354
  * identify source of order creation.
355
+ * @property {string} [xAnonymousCart] - Anonymous cart header used to perform
356
+ * operations on cross-platform anonymous cart. When enabled, the system
357
+ * fetches the cart only based on cart_id instead of user_id.
307
358
  * @property {string} [id] - The unique identifier of the cart
308
359
  * @property {boolean} [i] - This is a boolean value. Select `true` to retrieve
309
360
  * all the items added in the cart.
@@ -325,6 +376,9 @@ export = CartPlatformApplicationValidator;
325
376
  * @typedef RemoveCouponParam
326
377
  * @property {string} [xOrderingSource] - Ordering source header, to be used to
327
378
  * identify source of order creation.
379
+ * @property {string} [xAnonymousCart] - Anonymous cart header used to perform
380
+ * operations on cross-platform anonymous cart. When enabled, the system
381
+ * fetches the cart only based on cart_id instead of user_id.
328
382
  * @property {string} [uid]
329
383
  * @property {boolean} [buyNow]
330
384
  */
@@ -336,6 +390,9 @@ export = CartPlatformApplicationValidator;
336
390
  * @typedef SelectAddressParam
337
391
  * @property {string} [xOrderingSource] - Ordering source header, to be used to
338
392
  * identify source of order creation.
393
+ * @property {string} [xAnonymousCart] - Anonymous cart header used to perform
394
+ * operations on cross-platform anonymous cart. When enabled, the system
395
+ * fetches the cart only based on cart_id instead of user_id.
339
396
  * @property {string} [cartId]
340
397
  * @property {boolean} [buyNow]
341
398
  * @property {boolean} [i]
@@ -346,6 +403,9 @@ export = CartPlatformApplicationValidator;
346
403
  * @typedef SelectPaymentModeParam
347
404
  * @property {string} [xOrderingSource] - Ordering source header, to be used to
348
405
  * identify source of order creation.
406
+ * @property {string} [xAnonymousCart] - Anonymous cart header used to perform
407
+ * operations on cross-platform anonymous cart. When enabled, the system
408
+ * fetches the cart only based on cart_id instead of user_id.
349
409
  * @property {string} [id]
350
410
  * @property {boolean} [buyNow]
351
411
  * @property {string} [orderType]
@@ -376,6 +436,9 @@ export = CartPlatformApplicationValidator;
376
436
  * @property {string} [xOrderingSource] - Identifier for the ordering source
377
437
  * (e.g., web, mobile app, POS). Used to determine the origin of the order
378
438
  * request and apply source-specific rules.
439
+ * @property {string} [xAnonymousCart] - Anonymous cart header used to perform
440
+ * operations on cross-platform anonymous cart. When enabled, the system
441
+ * fetches the cart only based on cart_id instead of user_id.
379
442
  * @property {string} [id] - Unique identifier of the cart for which the breakup
380
443
  * needs to be updated.
381
444
  * @property {boolean} [i] - Set to `true` to include all items currently added
@@ -419,6 +482,16 @@ export = CartPlatformApplicationValidator;
419
482
  * @property {string} id
420
483
  * @property {CartPlatformModel.CouponPartialUpdate} body
421
484
  */
485
+ /**
486
+ * @typedef UpdateOfferParam
487
+ * @property {string} id
488
+ * @property {CartPlatformModel.OfferSchema} body
489
+ */
490
+ /**
491
+ * @typedef UpdateOfferPartiallyParam
492
+ * @property {string} id
493
+ * @property {CartPlatformModel.OfferPartialUpdate} body
494
+ */
422
495
  /**
423
496
  * @typedef UpdatePriceAdjustmentParam
424
497
  * @property {string} id
@@ -479,12 +552,16 @@ declare class CartPlatformApplicationValidator {
479
552
  static createCartMetaConfig(): CreateCartMetaConfigParam;
480
553
  /** @returns {CreateCouponParam} */
481
554
  static createCoupon(): CreateCouponParam;
555
+ /** @returns {CreateOfferParam} */
556
+ static createOffer(): CreateOfferParam;
482
557
  /** @returns {CreatePromotionParam} */
483
558
  static createPromotion(): CreatePromotionParam;
484
559
  /** @returns {DeleteCartParam} */
485
560
  static deleteCart(): DeleteCartParam;
486
561
  /** @returns {DeleteCouponParam} */
487
562
  static deleteCoupon(): DeleteCouponParam;
563
+ /** @returns {DeleteOfferParam} */
564
+ static deleteOffer(): DeleteOfferParam;
488
565
  /** @returns {DeletePromotionParam} */
489
566
  static deletePromotion(): DeletePromotionParam;
490
567
  /** @returns {FetchAndvalidateCartItemsParam} */
@@ -521,6 +598,10 @@ declare class CartPlatformApplicationValidator {
521
598
  static getCoupons(): GetCouponsParam;
522
599
  /** @returns {GetItemCountParam} */
523
600
  static getItemCount(): GetItemCountParam;
601
+ /** @returns {GetOfferByIdParam} */
602
+ static getOfferById(): GetOfferByIdParam;
603
+ /** @returns {GetOffersParam} */
604
+ static getOffers(): GetOffersParam;
524
605
  /** @returns {GetPriceAdjustmentsParam} */
525
606
  static getPriceAdjustments(): GetPriceAdjustmentsParam;
526
607
  /** @returns {GetPromosCouponConfigParam} */
@@ -579,6 +660,10 @@ declare class CartPlatformApplicationValidator {
579
660
  static updateCoupon(): UpdateCouponParam;
580
661
  /** @returns {UpdateCouponPartiallyParam} */
581
662
  static updateCouponPartially(): UpdateCouponPartiallyParam;
663
+ /** @returns {UpdateOfferParam} */
664
+ static updateOffer(): UpdateOfferParam;
665
+ /** @returns {UpdateOfferPartiallyParam} */
666
+ static updateOfferPartially(): UpdateOfferPartiallyParam;
582
667
  /** @returns {UpdatePriceAdjustmentParam} */
583
668
  static updatePriceAdjustment(): UpdatePriceAdjustmentParam;
584
669
  /** @returns {UpdatePromotionParam} */
@@ -591,7 +676,7 @@ declare class CartPlatformApplicationValidator {
591
676
  static validateCouponForPayment(): ValidateCouponForPaymentParam;
592
677
  }
593
678
  declare namespace CartPlatformApplicationValidator {
594
- export { AddAddressParam, AddItemsParam, AddPriceAdjustmentParam, ApplyCouponParam, ApplyLoyaltyPointsParam, CheckCartServiceabilityParam, CheckoutCartParam, CreateCartMetaConfigParam, CreateCouponParam, CreatePromotionParam, DeleteCartParam, DeleteCouponParam, DeletePromotionParam, FetchAndvalidateCartItemsParam, FetchCartMetaConfigParam, GetAbandonedCartParam, GetAbandonedCartDetailsParam, GetAddressByIdParam, GetAddressesParam, GetAppCouponsParam, GetAvailableDeliveryModesParam, GetCartParam, GetCartListParam, GetCartShareLinkParam, GetCartSharedItemsParam, GetCouponByIdParam, GetCouponCodeExistsParam, GetCouponOptionValuesParam, GetCouponsParam, GetItemCountParam, GetPriceAdjustmentsParam, GetPromosCouponConfigParam, GetPromotionByIdParam, GetPromotionCodeExistsParam, GetPromotionOffersParam, GetPromotionPaymentOffersParam, GetPromotionsParam, GetShipmentsParam, GetStoreAddressByUidParam, OverrideCartParam, PlatformAddItemsParam, PlatformCheckoutCartParam, PlatformCheckoutCartV2Param, PlatformUpdateCartParam, RemoveAddressParam, RemoveCouponParam, RemovePriceAdjustmentParam, SelectAddressParam, SelectPaymentModeParam, SelectPaymentModeV2Param, UpdateAddressParam, UpdateCartParam, UpdateCartBreakupParam, UpdateCartMetaParam, UpdateCartMetaConfigParam, UpdateCartUserParam, UpdateCartWithSharedItemsParam, UpdateCouponParam, UpdateCouponPartiallyParam, UpdatePriceAdjustmentParam, UpdatePromotionParam, UpdatePromotionPartiallyParam, UpdateShipmentsParam, ValidateCouponForPaymentParam };
679
+ export { AddAddressParam, AddItemsParam, AddPriceAdjustmentParam, ApplyCouponParam, ApplyLoyaltyPointsParam, CheckCartServiceabilityParam, CheckoutCartParam, CreateCartMetaConfigParam, CreateCouponParam, CreateOfferParam, CreatePromotionParam, DeleteCartParam, DeleteCouponParam, DeleteOfferParam, DeletePromotionParam, FetchAndvalidateCartItemsParam, FetchCartMetaConfigParam, GetAbandonedCartParam, GetAbandonedCartDetailsParam, GetAddressByIdParam, GetAddressesParam, GetAppCouponsParam, GetAvailableDeliveryModesParam, GetCartParam, GetCartListParam, GetCartShareLinkParam, GetCartSharedItemsParam, GetCouponByIdParam, GetCouponCodeExistsParam, GetCouponOptionValuesParam, GetCouponsParam, GetItemCountParam, GetOfferByIdParam, GetOffersParam, GetPriceAdjustmentsParam, GetPromosCouponConfigParam, GetPromotionByIdParam, GetPromotionCodeExistsParam, GetPromotionOffersParam, GetPromotionPaymentOffersParam, GetPromotionsParam, GetShipmentsParam, GetStoreAddressByUidParam, OverrideCartParam, PlatformAddItemsParam, PlatformCheckoutCartParam, PlatformCheckoutCartV2Param, PlatformUpdateCartParam, RemoveAddressParam, RemoveCouponParam, RemovePriceAdjustmentParam, SelectAddressParam, SelectPaymentModeParam, SelectPaymentModeV2Param, UpdateAddressParam, UpdateCartParam, UpdateCartBreakupParam, UpdateCartMetaParam, UpdateCartMetaConfigParam, UpdateCartUserParam, UpdateCartWithSharedItemsParam, UpdateCouponParam, UpdateCouponPartiallyParam, UpdateOfferParam, UpdateOfferPartiallyParam, UpdatePriceAdjustmentParam, UpdatePromotionParam, UpdatePromotionPartiallyParam, UpdateShipmentsParam, ValidateCouponForPaymentParam };
595
680
  }
596
681
  type AddAddressParam = {
597
682
  body: CartPlatformModel.PlatformAddress;
@@ -613,6 +698,12 @@ type ApplyCouponParam = {
613
698
  * identify source of order creation.
614
699
  */
615
700
  xOrderingSource?: string;
701
+ /**
702
+ * - Anonymous cart header used to perform
703
+ * operations on cross-platform anonymous cart. When enabled, the system
704
+ * fetches the cart only based on cart_id instead of user_id.
705
+ */
706
+ xAnonymousCart?: string;
616
707
  i?: boolean;
617
708
  b?: boolean;
618
709
  p?: boolean;
@@ -658,6 +749,12 @@ type CheckoutCartParam = {
658
749
  * identify source of order creation.
659
750
  */
660
751
  xOrderingSource?: string;
752
+ /**
753
+ * - Anonymous cart header used to perform
754
+ * operations on cross-platform anonymous cart. When enabled, the system
755
+ * fetches the cart only based on cart_id instead of user_id.
756
+ */
757
+ xAnonymousCart?: string;
661
758
  body: CartPlatformModel.OpenApiPlatformCheckoutReq;
662
759
  };
663
760
  type CreateCartMetaConfigParam = {
@@ -666,6 +763,9 @@ type CreateCartMetaConfigParam = {
666
763
  type CreateCouponParam = {
667
764
  body: CartPlatformModel.CouponAdd;
668
765
  };
766
+ type CreateOfferParam = {
767
+ body: CartPlatformModel.OfferSchema;
768
+ };
669
769
  type CreatePromotionParam = {
670
770
  body: CartPlatformModel.PromotionAdd;
671
771
  };
@@ -679,6 +779,9 @@ type DeleteCartParam = {
679
779
  type DeleteCouponParam = {
680
780
  id: string;
681
781
  };
782
+ type DeleteOfferParam = {
783
+ id: string;
784
+ };
682
785
  type DeletePromotionParam = {
683
786
  id: string;
684
787
  };
@@ -740,6 +843,12 @@ type GetCartParam = {
740
843
  * identify source of order creation.
741
844
  */
742
845
  xOrderingSource?: string;
846
+ /**
847
+ * - Anonymous cart header used to perform
848
+ * operations on cross-platform anonymous cart. When enabled, the system
849
+ * fetches the cart only based on cart_id instead of user_id.
850
+ */
851
+ xAnonymousCart?: string;
743
852
  /**
744
853
  * - The unique identifier of the cart
745
854
  */
@@ -821,6 +930,71 @@ type GetItemCountParam = {
821
930
  */
822
931
  buyNow?: boolean;
823
932
  };
933
+ type GetOfferByIdParam = {
934
+ id: string;
935
+ };
936
+ type GetOffersParam = {
937
+ /**
938
+ * - Current page no as per pagination
939
+ */
940
+ pageNo?: number;
941
+ /**
942
+ * - Offers max records fetched in single request
943
+ */
944
+ pageSize?: number;
945
+ /**
946
+ * - Filter by offer name
947
+ */
948
+ search?: string;
949
+ /**
950
+ * - Filter by offer mode
951
+ */
952
+ mode?: string;
953
+ /**
954
+ * - Filter by offer type
955
+ */
956
+ type?: string;
957
+ promoGroup?: string;
958
+ /**
959
+ * - Filter non contract offers
960
+ */
961
+ excludeContractOffers?: boolean;
962
+ /**
963
+ * - Filter by offer id
964
+ */
965
+ offerId?: string;
966
+ /**
967
+ * - Filter by offer created by user id
968
+ */
969
+ createdBy?: string;
970
+ /**
971
+ * - Filter by offer reviewer user id
972
+ */
973
+ reviewedBy?: string;
974
+ /**
975
+ * - Filter offer by start time date
976
+ * range when status is in approved state
977
+ */
978
+ approvedStartTime?: string;
979
+ /**
980
+ * - Filter offer by end time date range
981
+ * when status is in approved state
982
+ */
983
+ approvedEndTime?: string;
984
+ /**
985
+ * - Filter your offers effortlessly by status, such
986
+ * as draft, review and more
987
+ */
988
+ status?: string;
989
+ /**
990
+ * - Filter by offer code in case of coupons
991
+ */
992
+ code?: string;
993
+ /**
994
+ * - Filter offers which are public
995
+ */
996
+ isPublic?: boolean;
997
+ };
824
998
  type GetPriceAdjustmentsParam = {
825
999
  /**
826
1000
  * - Cart id of user cart
@@ -956,6 +1130,12 @@ type PlatformAddItemsParam = {
956
1130
  * identify source of order creation.
957
1131
  */
958
1132
  xOrderingSource?: string;
1133
+ /**
1134
+ * - Anonymous cart header used to perform
1135
+ * operations on cross-platform anonymous cart. When enabled, the system
1136
+ * fetches the cart only based on cart_id instead of user_id.
1137
+ */
1138
+ xAnonymousCart?: string;
959
1139
  /**
960
1140
  * - This is a boolean value. Select `true` to retrieve
961
1141
  * all the items added in the cart.
@@ -989,6 +1169,12 @@ type PlatformCheckoutCartParam = {
989
1169
  * identify source of order creation.
990
1170
  */
991
1171
  xOrderingSource?: string;
1172
+ /**
1173
+ * - Anonymous cart header used to perform
1174
+ * operations on cross-platform anonymous cart. When enabled, the system
1175
+ * fetches the cart only based on cart_id instead of user_id.
1176
+ */
1177
+ xAnonymousCart?: string;
992
1178
  /**
993
1179
  * - The unique identifier of the cart
994
1180
  */
@@ -1013,6 +1199,12 @@ type PlatformUpdateCartParam = {
1013
1199
  * identify source of order creation.
1014
1200
  */
1015
1201
  xOrderingSource?: string;
1202
+ /**
1203
+ * - Anonymous cart header used to perform
1204
+ * operations on cross-platform anonymous cart. When enabled, the system
1205
+ * fetches the cart only based on cart_id instead of user_id.
1206
+ */
1207
+ xAnonymousCart?: string;
1016
1208
  /**
1017
1209
  * - The unique identifier of the cart
1018
1210
  */
@@ -1056,6 +1248,12 @@ type RemoveCouponParam = {
1056
1248
  * identify source of order creation.
1057
1249
  */
1058
1250
  xOrderingSource?: string;
1251
+ /**
1252
+ * - Anonymous cart header used to perform
1253
+ * operations on cross-platform anonymous cart. When enabled, the system
1254
+ * fetches the cart only based on cart_id instead of user_id.
1255
+ */
1256
+ xAnonymousCart?: string;
1059
1257
  uid?: string;
1060
1258
  buyNow?: boolean;
1061
1259
  };
@@ -1068,6 +1266,12 @@ type SelectAddressParam = {
1068
1266
  * identify source of order creation.
1069
1267
  */
1070
1268
  xOrderingSource?: string;
1269
+ /**
1270
+ * - Anonymous cart header used to perform
1271
+ * operations on cross-platform anonymous cart. When enabled, the system
1272
+ * fetches the cart only based on cart_id instead of user_id.
1273
+ */
1274
+ xAnonymousCart?: string;
1071
1275
  cartId?: string;
1072
1276
  buyNow?: boolean;
1073
1277
  i?: boolean;
@@ -1080,6 +1284,12 @@ type SelectPaymentModeParam = {
1080
1284
  * identify source of order creation.
1081
1285
  */
1082
1286
  xOrderingSource?: string;
1287
+ /**
1288
+ * - Anonymous cart header used to perform
1289
+ * operations on cross-platform anonymous cart. When enabled, the system
1290
+ * fetches the cart only based on cart_id instead of user_id.
1291
+ */
1292
+ xAnonymousCart?: string;
1083
1293
  id?: string;
1084
1294
  buyNow?: boolean;
1085
1295
  orderType?: string;
@@ -1118,6 +1328,12 @@ type UpdateCartBreakupParam = {
1118
1328
  * request and apply source-specific rules.
1119
1329
  */
1120
1330
  xOrderingSource?: string;
1331
+ /**
1332
+ * - Anonymous cart header used to perform
1333
+ * operations on cross-platform anonymous cart. When enabled, the system
1334
+ * fetches the cart only based on cart_id instead of user_id.
1335
+ */
1336
+ xAnonymousCart?: string;
1121
1337
  /**
1122
1338
  * - Unique identifier of the cart for which the breakup
1123
1339
  * needs to be updated.
@@ -1176,6 +1392,14 @@ type UpdateCouponPartiallyParam = {
1176
1392
  id: string;
1177
1393
  body: CartPlatformModel.CouponPartialUpdate;
1178
1394
  };
1395
+ type UpdateOfferParam = {
1396
+ id: string;
1397
+ body: CartPlatformModel.OfferSchema;
1398
+ };
1399
+ type UpdateOfferPartiallyParam = {
1400
+ id: string;
1401
+ body: CartPlatformModel.OfferPartialUpdate;
1402
+ };
1179
1403
  type UpdatePriceAdjustmentParam = {
1180
1404
  id: string;
1181
1405
  body: CartPlatformModel.PriceAdjustmentUpdate;