@gofynd/fdk-client-javascript 1.1.2 → 1.1.4

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 (120) hide show
  1. package/README.md +2 -2
  2. package/index.d.ts +7 -7
  3. package/index.js +12 -12
  4. package/package.json +1 -1
  5. package/sdk/application/ApplicationClient.d.ts +20 -20
  6. package/sdk/application/ApplicationClient.js +26 -26
  7. package/sdk/application/Cart/CartApplicationClient.d.ts +36 -6
  8. package/sdk/application/Cart/CartApplicationClient.js +105 -10
  9. package/sdk/application/Cart/CartApplicationModel.d.ts +9 -0
  10. package/sdk/application/Cart/CartApplicationModel.js +105 -1
  11. package/sdk/application/Cart/CartApplicationValidator.d.ts +1 -0
  12. package/sdk/application/Cart/CartApplicationValidator.js +15 -1
  13. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +1 -0
  14. package/sdk/application/Catalog/CatalogApplicationModel.js +13 -0
  15. package/sdk/application/Common/CommonApplicationModel.js +4 -0
  16. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +14 -10
  17. package/sdk/application/Configuration/ConfigurationApplicationClient.js +16 -10
  18. package/sdk/application/Configuration/ConfigurationApplicationModel.js +6 -5
  19. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +1 -0
  20. package/sdk/application/Content/ContentApplicationModel.js +3 -1
  21. package/sdk/application/Lead/LeadApplicationModel.js +4 -1
  22. package/sdk/application/Logistic/LogisticApplicationModel.js +3 -2
  23. package/sdk/application/Order/OrderApplicationClient.d.ts +2 -2
  24. package/sdk/application/Order/OrderApplicationClient.js +2 -2
  25. package/sdk/application/Order/OrderApplicationModel.js +18 -8
  26. package/sdk/application/Payment/PaymentApplicationClient.d.ts +35 -0
  27. package/sdk/application/Payment/PaymentApplicationClient.js +200 -0
  28. package/sdk/application/Payment/PaymentApplicationModel.d.ts +4 -0
  29. package/sdk/application/Payment/PaymentApplicationModel.js +58 -7
  30. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +3 -0
  31. package/sdk/application/Payment/PaymentApplicationValidator.js +19 -0
  32. package/sdk/application/PosCart/PosCartApplicationClient.d.ts +16 -3
  33. package/sdk/application/PosCart/PosCartApplicationClient.js +39 -6
  34. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +6 -0
  35. package/sdk/application/PosCart/PosCartApplicationModel.js +63 -1
  36. package/sdk/application/PosCart/PosCartApplicationValidator.js +6 -0
  37. package/sdk/application/index.d.ts +10 -10
  38. package/sdk/application/index.js +13 -13
  39. package/sdk/common/Constant.d.ts +5 -0
  40. package/sdk/common/Constant.js +5 -0
  41. package/sdk/partner/OAuthClient.js +1 -1
  42. package/sdk/platform/Billing/BillingPlatformModel.js +6 -1
  43. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +491 -2
  44. package/sdk/platform/Cart/CartPlatformApplicationClient.js +2661 -337
  45. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +32 -0
  46. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +269 -0
  47. package/sdk/platform/Cart/CartPlatformModel.d.ts +58 -0
  48. package/sdk/platform/Cart/CartPlatformModel.js +652 -3
  49. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +8 -2
  50. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +10 -0
  51. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +1 -0
  52. package/sdk/platform/Catalog/CatalogPlatformClient.js +2 -2
  53. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1 -0
  54. package/sdk/platform/Catalog/CatalogPlatformModel.js +43 -31
  55. package/sdk/platform/Common/CommonPlatformModel.js +4 -0
  56. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1 -0
  57. package/sdk/platform/Communication/CommunicationPlatformModel.js +9 -0
  58. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +2 -2
  59. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +2 -2
  60. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +5 -4
  61. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +99 -78
  62. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +99 -78
  63. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +87 -71
  64. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +87 -71
  65. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +2 -0
  66. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +34 -7
  67. package/sdk/platform/Content/ContentPlatformModel.js +3 -1
  68. package/sdk/platform/Finance/FinancePlatformClient.d.ts +135 -0
  69. package/sdk/platform/Finance/FinancePlatformClient.js +853 -0
  70. package/sdk/platform/Finance/FinancePlatformModel.d.ts +51 -0
  71. package/sdk/platform/Finance/FinancePlatformModel.js +342 -0
  72. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +16 -0
  73. package/sdk/platform/Finance/FinancePlatformValidator.js +84 -0
  74. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +11 -1
  75. package/sdk/platform/Order/OrderPlatformApplicationClient.js +66 -2
  76. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -0
  77. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +6 -0
  78. package/sdk/platform/Order/OrderPlatformClient.d.ts +161 -79
  79. package/sdk/platform/Order/OrderPlatformClient.js +546 -114
  80. package/sdk/platform/Order/OrderPlatformModel.d.ts +42 -6
  81. package/sdk/platform/Order/OrderPlatformModel.js +569 -159
  82. package/sdk/platform/Order/OrderPlatformValidator.d.ts +6 -0
  83. package/sdk/platform/Order/OrderPlatformValidator.js +52 -9
  84. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +22 -0
  85. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +127 -0
  86. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +2 -0
  87. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +13 -0
  88. package/sdk/platform/Partner/PartnerPlatformClient.d.ts +145 -0
  89. package/sdk/platform/Partner/PartnerPlatformClient.js +799 -0
  90. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +39 -0
  91. package/sdk/platform/Partner/PartnerPlatformModel.js +367 -0
  92. package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +14 -0
  93. package/sdk/platform/Partner/PartnerPlatformValidator.js +87 -0
  94. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +221 -0
  95. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +1476 -190
  96. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +20 -0
  97. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +126 -0
  98. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +48 -0
  99. package/sdk/platform/Payment/PaymentPlatformModel.js +452 -7
  100. package/sdk/platform/PlatformApplicationClient.d.ts +1249 -937
  101. package/sdk/platform/PlatformApplicationClient.js +1366 -1033
  102. package/sdk/platform/PlatformClient.d.ts +10979 -8771
  103. package/sdk/platform/PlatformClient.js +11874 -9197
  104. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +134 -0
  105. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +852 -0
  106. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +16 -0
  107. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +81 -0
  108. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +223 -0
  109. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +1296 -0
  110. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +97 -0
  111. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +778 -0
  112. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +21 -0
  113. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +130 -0
  114. package/sdk/platform/index.d.ts +16 -14
  115. package/sdk/platform/index.js +22 -18
  116. package/sdk/public/Configuration/ConfigurationPublicModel.js +5 -0
  117. package/sdk/public/PublicClient.d.ts +2 -2
  118. package/sdk/public/PublicClient.js +4 -4
  119. package/sdk/public/index.d.ts +1 -1
  120. package/sdk/public/index.js +2 -2
@@ -3,6 +3,16 @@ declare class Cart {
3
3
  constructor(config: any, applicationId: any);
4
4
  config: any;
5
5
  applicationId: any;
6
+ /**
7
+ * @param {Object} arg - Arg object.
8
+ * @param {PlatformAddress} arg.body
9
+ * @returns {Promise<SaveAddressResponse>} - Success response
10
+ * @summary: Add address to an account
11
+ * @description: Use this API to add an address to an account.
12
+ */
13
+ addAddress({ body }?: {
14
+ body: PlatformAddress;
15
+ }): Promise<SaveAddressResponse>;
6
16
  /**
7
17
  * @param {Object} arg - Arg object.
8
18
  * @param {string} arg.cartId - Current Cart _id
@@ -17,6 +27,36 @@ declare class Cart {
17
27
  b?: boolean;
18
28
  body: AddCartRequest;
19
29
  }): Promise<AddCartDetailResponse>;
30
+ /**
31
+ * @param {Object} arg - Arg object.
32
+ * @param {PriceAdjustmentAdd} arg.body
33
+ * @returns {Promise<PriceAdjustmentResponse>} - Success response
34
+ * @summary: Create new price adjustment
35
+ * @description: Create new price adjustment
36
+ */
37
+ addPriceAdjustment({ body }?: {
38
+ body: PriceAdjustmentAdd;
39
+ }): Promise<PriceAdjustmentResponse>;
40
+ /**
41
+ * @param {Object} arg - Arg object.
42
+ * @param {boolean} [arg.i] -
43
+ * @param {boolean} [arg.b] -
44
+ * @param {boolean} [arg.p] -
45
+ * @param {string} [arg.id] -
46
+ * @param {boolean} [arg.buyNow] -
47
+ * @param {ApplyCouponRequest} arg.body
48
+ * @returns {Promise<CartDetailResponse>} - Success response
49
+ * @summary: Apply Coupon for platform pos user
50
+ * @description: Use this API to apply coupons on items in the cart.
51
+ */
52
+ applyCoupon({ body, i, b, p, id, buyNow }?: {
53
+ i?: boolean;
54
+ b?: boolean;
55
+ p?: boolean;
56
+ id?: string;
57
+ buyNow?: boolean;
58
+ body: ApplyCouponRequest;
59
+ }): Promise<CartDetailResponse>;
20
60
  /**
21
61
  * @param {Object} arg - Arg object.
22
62
  * @param {OpenApiCartServiceabilityRequest} arg.body
@@ -67,6 +107,18 @@ declare class Cart {
67
107
  createPromotion({ body }?: {
68
108
  body: PromotionAdd;
69
109
  }): Promise<PromotionAdd>;
110
+ /**
111
+ * @param {Object} arg - Arg object.
112
+ * @param {string} [arg.id] - The unique identifier of the cart.
113
+ * @param {DeleteCartRequest} arg.body
114
+ * @returns {Promise<DeleteCartDetailResponse>} - Success response
115
+ * @summary: Delete cart once user made successful checkout
116
+ * @description: Use this API to delete the cart.
117
+ */
118
+ deleteCart({ body, id }?: {
119
+ id?: string;
120
+ body: DeleteCartRequest;
121
+ }): Promise<DeleteCartDetailResponse>;
70
122
  /**
71
123
  * @param {Object} arg - Arg object.
72
124
  * @param {OpenapiCartDetailsRequest} arg.body
@@ -143,6 +195,130 @@ declare class Cart {
143
195
  i?: boolean;
144
196
  b?: boolean;
145
197
  }): Promise<CartDetailResponse>;
198
+ /**
199
+ * @param {Object} arg - Arg object.
200
+ * @param {string} arg.id -
201
+ * @param {string} [arg.cartId] -
202
+ * @param {boolean} [arg.buyNow] -
203
+ * @param {string} [arg.mobileNo] -
204
+ * @param {string} [arg.checkoutMode] -
205
+ * @param {string} [arg.tags] -
206
+ * @param {boolean} [arg.isDefault] -
207
+ * @param {string} [arg.userId] -
208
+ * @returns {Promise<PlatformAddress>} - Success response
209
+ * @summary: Fetch a single address by its ID
210
+ * @description: Use this API to get an addresses using its ID. If successful, returns a Address resource in the response body specified in `PlatformAddress`. Attibutes listed below are optional <ul> <li> <font color="monochrome">mobile_no</font></li> <li> <font color="monochrome">checkout_mode</font></li> <li> <font color="monochrome">tags</font></li> <li> <font color="monochrome">default</font></li> </ul>
211
+ */
212
+ getAddressById({ id, cartId, buyNow, mobileNo, checkoutMode, tags, isDefault, userId, }?: {
213
+ id: string;
214
+ cartId?: string;
215
+ buyNow?: boolean;
216
+ mobileNo?: string;
217
+ checkoutMode?: string;
218
+ tags?: string;
219
+ isDefault?: boolean;
220
+ userId?: string;
221
+ }): Promise<PlatformAddress>;
222
+ /**
223
+ * @param {Object} arg - Arg object.
224
+ * @param {string} [arg.cartId] -
225
+ * @param {boolean} [arg.buyNow] -
226
+ * @param {string} [arg.mobileNo] -
227
+ * @param {string} [arg.checkoutMode] -
228
+ * @param {string} [arg.tags] -
229
+ * @param {boolean} [arg.isDefault] -
230
+ * @param {string} [arg.userId] -
231
+ * @returns {Promise<PlatformGetAddressesResponse>} - Success response
232
+ * @summary: Fetch address
233
+ * @description: Use this API to get all the addresses associated with an account. If successful, returns a Address resource in the response body specified in GetAddressesResponse.attibutes listed below are optional <ul> <li> <font color="monochrome">uid</font></li> <li> <font color="monochrome">address_id</font></li> <li> <font color="monochrome">mobile_no</font></li> <li> <font color="monochrome">checkout_mode</font></li> <li> <font color="monochrome">tags</font></li> <li> <font color="monochrome">default</font></li> </ul>
234
+ */
235
+ getAddresses({ cartId, buyNow, mobileNo, checkoutMode, tags, isDefault, userId, }?: {
236
+ cartId?: string;
237
+ buyNow?: boolean;
238
+ mobileNo?: string;
239
+ checkoutMode?: string;
240
+ tags?: string;
241
+ isDefault?: boolean;
242
+ userId?: string;
243
+ }): Promise<PlatformGetAddressesResponse>;
244
+ /**
245
+ * @param {Object} arg - Arg object.
246
+ * @param {string} [arg.id] -
247
+ * @param {boolean} [arg.buyNow] -
248
+ * @returns {Promise<GetCouponResponse>} - Success response
249
+ * @summary: Fetch Coupon
250
+ * @description: Use this API to get a list of available coupons along with their details.
251
+ */
252
+ getAppCoupons({ id, buyNow }?: {
253
+ id?: string;
254
+ buyNow?: boolean;
255
+ }): Promise<GetCouponResponse>;
256
+ /**
257
+ * @param {Object} arg - Arg object.
258
+ * @param {string} arg.areaCode -
259
+ * @param {string} [arg.id] -
260
+ * @returns {Promise<CartDeliveryModesResponse>} - Success response
261
+ * @summary: Get available delivery modes for cart
262
+ * @description: Use this API to get the delivery modes (home-delivery/store-pickup) along with a list of pickup stores available for a given cart at a given PIN Code. User can then view the address of a pickup store with the help of store-address API.
263
+ */
264
+ getAvailableDeliveryModes({ areaCode, id }?: {
265
+ areaCode: string;
266
+ id?: string;
267
+ }): Promise<CartDeliveryModesResponse>;
268
+ /**
269
+ * @param {Object} arg - Arg object.
270
+ * @param {string} [arg.id] -
271
+ * @param {string} [arg.userId] -
272
+ * @param {boolean} [arg.i] -
273
+ * @param {boolean} [arg.b] -
274
+ * @param {number} [arg.assignCardId] -
275
+ * @param {boolean} [arg.buyNow] -
276
+ * @returns {Promise<CartDetailResponse>} - Success response
277
+ * @summary: Fetch all items added to the customer cart using cart id
278
+ * @description: Use this API to get details of all the items added to a cart.
279
+ */
280
+ getCart({ id, userId, i, b, assignCardId, buyNow }?: {
281
+ id?: string;
282
+ userId?: string;
283
+ i?: boolean;
284
+ b?: boolean;
285
+ assignCardId?: number;
286
+ buyNow?: boolean;
287
+ }): Promise<CartDetailResponse>;
288
+ /**
289
+ * @param {Object} arg - Arg object.
290
+ * @param {string} [arg.fromDate] -
291
+ * @param {string} [arg.toDate] -
292
+ * @param {string} [arg.filterOn] -
293
+ * @returns {Promise<MultiCartResponse>} - Success response
294
+ * @summary: Get cart list for store os user
295
+ * @description: Get all carts for the store os user which is created for customer
296
+ */
297
+ getCartList({ fromDate, toDate, filterOn }?: {
298
+ fromDate?: string;
299
+ toDate?: string;
300
+ filterOn?: string;
301
+ }): Promise<MultiCartResponse>;
302
+ /**
303
+ * @param {Object} arg - Arg object.
304
+ * @param {GetShareCartLinkRequest} arg.body
305
+ * @returns {Promise<GetShareCartLinkResponse>} - Success response
306
+ * @summary: Generate token for sharing the cart
307
+ * @description: Use this API to generate a shared cart snapshot and return a shortlink token. The link can be shared with other users for getting the same items in their cart.
308
+ */
309
+ getCartShareLink({ body }?: {
310
+ body: GetShareCartLinkRequest;
311
+ }): Promise<GetShareCartLinkResponse>;
312
+ /**
313
+ * @param {Object} arg - Arg object.
314
+ * @param {string} arg.token - Token of the shared short link
315
+ * @returns {Promise<SharedCartResponse>} - Success response
316
+ * @summary: Get details of a shared cart
317
+ * @description: Use this API to get the shared cart details as per the token generated using the share-cart API.
318
+ */
319
+ getCartSharedItems({ token }?: {
320
+ token: string;
321
+ }): Promise<SharedCartResponse>;
146
322
  /**
147
323
  * @param {Object} arg - Arg object.
148
324
  * @param {string} arg.id -
@@ -221,8 +397,20 @@ declare class Cart {
221
397
  }): Paginator;
222
398
  /**
223
399
  * @param {Object} arg - Arg object.
224
- * @param {string} [arg.entityType] - Entity_type as coupon or promotion
225
- * @param {boolean} [arg.isHidden] - Show Promo Coupon Config or not
400
+ * @param {string} [arg.id] - The unique identifier of the cart.
401
+ * @param {boolean} [arg.buyNow] -
402
+ * @returns {Promise<CartItemCountResponse>} - Success response
403
+ * @summary: Count items in the customer's cart
404
+ * @description: Use this API to get the total number of items present in cart.
405
+ */
406
+ getItemCount({ id, buyNow }?: {
407
+ id?: string;
408
+ buyNow?: boolean;
409
+ }): Promise<CartItemCountResponse>;
410
+ /**
411
+ * @param {Object} arg - Arg object.
412
+ * @param {string} [arg.entityType] - Entity_type as promotion or coupon
413
+ * @param {boolean} [arg.isHidden] - Promo-coupon config shown or not
226
414
  * @returns {Promise<ActivePromosResponse>} - Success response
227
415
  * @summary: Fetch all promos that are set as active
228
416
  * @description: Use this API to get list of all the active promos/coupons.
@@ -300,6 +488,45 @@ declare class Cart {
300
488
  fpPanel?: string;
301
489
  promotionId?: string;
302
490
  }): Paginator;
491
+ /**
492
+ * @param {Object} arg - Arg object.
493
+ * @param {number} [arg.pickAtStoreUid] -
494
+ * @param {number} [arg.orderingStoreId] -
495
+ * @param {boolean} [arg.i] - This is a boolean value. Select `true` to
496
+ * retrieve all the items added in the cart.
497
+ * @param {boolean} [arg.p] - This is a boolean value. Select `true` for
498
+ * getting a payment option in response.
499
+ * @param {string} [arg.id] - The unique identifier of the cart
500
+ * @param {string} [arg.addressId] - ID allotted to the selected address
501
+ * @param {string} [arg.areaCode] - The PIN Code of the destination address,
502
+ * e.g. 400059
503
+ * @param {string} [arg.orderType] - The order type of shipment HomeDelivery
504
+ * - If the customer wants the order home-delivered PickAtStore - If the
505
+ * customer wants the handover of an order at the store itself.
506
+ * @returns {Promise<PlatformCartShipmentsResponse>} - Success response
507
+ * @summary: Get delivery date and options before checkout
508
+ * @description: Use this API to get shipment details, expected delivery date, items and price breakup of the shipment.
509
+ */
510
+ getShipments({ pickAtStoreUid, orderingStoreId, i, p, id, addressId, areaCode, orderType, }?: {
511
+ pickAtStoreUid?: number;
512
+ orderingStoreId?: number;
513
+ i?: boolean;
514
+ p?: boolean;
515
+ id?: string;
516
+ addressId?: string;
517
+ areaCode?: string;
518
+ orderType?: string;
519
+ }): Promise<PlatformCartShipmentsResponse>;
520
+ /**
521
+ * @param {Object} arg - Arg object.
522
+ * @param {number} arg.storeUid -
523
+ * @returns {Promise<StoreDetailsResponse>} - Success response
524
+ * @summary: Get list of stores for give uids
525
+ * @description: Use this API to get the store details by entering the unique identifier of the pickup stores shown in the response of available-delivery-mode API.
526
+ */
527
+ getStoreAddressByUid({ storeUid }?: {
528
+ storeUid: number;
529
+ }): Promise<StoreDetailsResponse>;
303
530
  /**
304
531
  * @param {Object} arg - Arg object.
305
532
  * @param {OverrideCheckoutReq} arg.body
@@ -310,6 +537,166 @@ declare class Cart {
310
537
  overrideCart({ body }?: {
311
538
  body: OverrideCheckoutReq;
312
539
  }): Promise<OverrideCheckoutResponse>;
540
+ /**
541
+ * @param {Object} arg - Arg object.
542
+ * @param {boolean} [arg.i] -
543
+ * @param {boolean} [arg.b] -
544
+ * @param {boolean} [arg.buyNow] -
545
+ * @param {string} [arg.id] -
546
+ * @param {PlatformAddCartRequest} arg.body
547
+ * @returns {Promise<AddCartDetailResponse>} - Success response
548
+ * @summary: Add items to cart
549
+ * @description: Use this API to add items to the cart.
550
+ */
551
+ platformAddItems({ body, i, b, buyNow, id }?: {
552
+ i?: boolean;
553
+ b?: boolean;
554
+ buyNow?: boolean;
555
+ id?: string;
556
+ body: PlatformAddCartRequest;
557
+ }): Promise<AddCartDetailResponse>;
558
+ /**
559
+ * @param {Object} arg - Arg object.
560
+ * @param {string} [arg.id] -
561
+ * @param {PlatformCartCheckoutDetailRequest} arg.body
562
+ * @returns {Promise<CartCheckoutResponse>} - Success response
563
+ * @summary: Checkout all items in the cart
564
+ * @description: Use this API to checkout all items in the cart for payment and order generation. For COD, order will be generated directly, whereas for other checkout modes, user will be redirected to a payment gateway.
565
+ */
566
+ platformCheckoutCart({ body, id }?: {
567
+ id?: string;
568
+ body: PlatformCartCheckoutDetailRequest;
569
+ }): Promise<CartCheckoutResponse>;
570
+ /**
571
+ * @param {Object} arg - Arg object.
572
+ * @param {string} [arg.id] -
573
+ * @param {PlatformCartCheckoutDetailV2Request} arg.body
574
+ * @returns {Promise<CartCheckoutResponse>} - Success response
575
+ * @summary: Checkout all items in the cart
576
+ * @description: Use this API to checkout all items in the cart for payment and order generation. For COD, order will be directly generated, whereas for other checkout modes, user will be redirected to a payment gateway.
577
+ */
578
+ platformCheckoutCartV2({ body, id }?: {
579
+ id?: string;
580
+ body: PlatformCartCheckoutDetailV2Request;
581
+ }): Promise<CartCheckoutResponse>;
582
+ /**
583
+ * @param {Object} arg - Arg object.
584
+ * @param {string} [arg.id] -
585
+ * @param {boolean} [arg.i] -
586
+ * @param {boolean} [arg.b] -
587
+ * @param {boolean} [arg.buyNow] -
588
+ * @param {PlatformUpdateCartRequest} arg.body
589
+ * @returns {Promise<UpdateCartDetailResponse>} - Success response
590
+ * @summary: Update items in the customer 's cart using cart id
591
+ * @description: <p>Use this API to update items added to the cart with the help of a request object containing attributes like item_quantity and item_size. These attributes will be fetched from the following APIs</p> <ul> <li><font color="monochrome">operation</font> Operation for current api call. <b>update_item</b> for update items. <b>remove_item</b> for removing items.</li> <li> <font color="monochrome">item_id</font> "/platform/content/v1/products/"</li> <li> <font color="monochrome">item_size</font> "/platform/content/v1/products/:slug/sizes/"</li> <li> <font color="monochrome">quantity</font> item quantity (must be greater than or equal to 1)</li> <li> <font color="monochrome">article_id</font> "/content​/v1​/products​/:identifier​/sizes​/price​/"</li> <li> <font color="monochrome">item_index</font> item position in the cart (must be greater than or equal to 0)</li> </ul>
592
+ */
593
+ platformUpdateCart({ body, id, i, b, buyNow }?: {
594
+ id?: string;
595
+ i?: boolean;
596
+ b?: boolean;
597
+ buyNow?: boolean;
598
+ body: PlatformUpdateCartRequest;
599
+ }): Promise<UpdateCartDetailResponse>;
600
+ /**
601
+ * @param {Object} arg - Arg object.
602
+ * @param {string} arg.id - ID allotted to the selected address
603
+ * @param {string} [arg.userId] - Option to delete address for the provided user_id.
604
+ * @returns {Promise<DeleteAddressResponse>} - Success response
605
+ * @summary: Remove address associated with an account
606
+ * @description: Use this API to delete an address by its ID. This will returns an object that will indicate whether the address was deleted successfully or not.
607
+ */
608
+ removeAddress({ id, userId }?: {
609
+ id: string;
610
+ userId?: string;
611
+ }): Promise<DeleteAddressResponse>;
612
+ /**
613
+ * @param {Object} arg - Arg object.
614
+ * @param {string} [arg.uid] -
615
+ * @param {boolean} [arg.buyNow] -
616
+ * @returns {Promise<CartDetailResponse>} - Success response
617
+ * @summary: Remove Applied Coupon for platform pos user
618
+ * @description: Remove Coupon applied on the cart by passing uid in request body.
619
+ */
620
+ removeCoupon({ uid, buyNow }?: {
621
+ uid?: string;
622
+ buyNow?: boolean;
623
+ }): Promise<CartDetailResponse>;
624
+ /**
625
+ * @param {Object} arg - Arg object.
626
+ * @param {string} arg.id -
627
+ * @returns {Promise<SuccessMessage>} - Success response
628
+ * @summary: Remove price adjustment
629
+ * @description: Remove price adjustment
630
+ */
631
+ removePriceAdjustment({ id }?: {
632
+ id: string;
633
+ }): Promise<SuccessMessage>;
634
+ /**
635
+ * @param {Object} arg - Arg object.
636
+ * @param {string} [arg.cartId] -
637
+ * @param {boolean} [arg.buyNow] -
638
+ * @param {boolean} [arg.i] -
639
+ * @param {boolean} [arg.b] -
640
+ * @param {PlatformSelectCartAddressRequest} arg.body
641
+ * @returns {Promise<CartDetailResponse>} - Success response
642
+ * @summary: Select an address from available addresses
643
+ * @description: <p>Select Address from all addresses associated with the account in order to ship the cart items to that address, otherwise default address will be selected implicitly. See `PlatformSelectCartAddressRequest` in schema of request body for the list of attributes needed to select Address from account. On successful request, this API returns a Cart object. Below address attributes are required. <ul> <li> <font color="monochrome">address_id</font></li> <li> <font color="monochrome">billing_address_id</font></li> <li> <font color="monochrome">uid</font></li> </ul></p>
644
+ */
645
+ selectAddress({ body, cartId, buyNow, i, b }?: {
646
+ cartId?: string;
647
+ buyNow?: boolean;
648
+ i?: boolean;
649
+ b?: boolean;
650
+ body: PlatformSelectCartAddressRequest;
651
+ }): Promise<CartDetailResponse>;
652
+ /**
653
+ * @param {Object} arg - Arg object.
654
+ * @param {string} [arg.id] -
655
+ * @param {boolean} [arg.buyNow] -
656
+ * @param {string} [arg.orderType] - The order type of shipment HomeDelivery
657
+ * - If the customer wants the order home-delivered PickAtStore - If the
658
+ * customer wants the handover of an order at the store itself.
659
+ * @param {UpdateCartPaymentRequest} arg.body
660
+ * @returns {Promise<CartDetailResponse>} - Success response
661
+ * @summary: Update cart payment
662
+ * @description: Use this API to update cart payment.
663
+ */
664
+ selectPaymentMode({ body, id, buyNow, orderType }?: {
665
+ id?: string;
666
+ buyNow?: boolean;
667
+ orderType?: string;
668
+ body: UpdateCartPaymentRequest;
669
+ }): Promise<CartDetailResponse>;
670
+ /**
671
+ * @param {Object} arg - Arg object.
672
+ * @param {string} [arg.id] -
673
+ * @param {boolean} [arg.buyNow] -
674
+ * @param {string} [arg.orderType] - The order type of shipment HomeDelivery
675
+ * - If the customer wants the order home-delivered PickAtStore - If the
676
+ * customer wants the handover of an order at the store itself.
677
+ * @param {UpdateCartPaymentRequestV2} arg.body
678
+ * @returns {Promise<CartDetailResponse>} - Success response
679
+ * @summary: Update cart payment
680
+ * @description: Use this API to update cart payment.
681
+ */
682
+ selectPaymentModeV2({ body, id, buyNow, orderType }?: {
683
+ id?: string;
684
+ buyNow?: boolean;
685
+ orderType?: string;
686
+ body: UpdateCartPaymentRequestV2;
687
+ }): Promise<CartDetailResponse>;
688
+ /**
689
+ * @param {Object} arg - Arg object.
690
+ * @param {string} arg.id - ID allotted to the selected address
691
+ * @param {PlatformAddress} arg.body
692
+ * @returns {Promise<UpdateAddressResponse>} - Success response
693
+ * @summary: Update address added to an account
694
+ * @description: <p>Use this API to update an existing address in the account. Request object should contain attributes mentioned in <font color="blue">Address </font> can be updated. These attributes are:</p> <ul> <li> <font color="monochrome">is_default_address</font></li> <li> <font color="monochrome">landmark</font></li> <li> <font color="monochrome">area</font></li> <li> <font color="monochrome">pincode</font></li> <li> <font color="monochrome">email</font></li> <li> <font color="monochrome">address_type</font></li> <li> <font color="monochrome">name</font></li> <li> <font color="monochrome">address_id</font></li> <li> <font color="monochrome">address</font></li> </ul>
695
+ */
696
+ updateAddress({ id, body }?: {
697
+ id: string;
698
+ body: PlatformAddress;
699
+ }): Promise<UpdateAddressResponse>;
313
700
  /**
314
701
  * @param {Object} arg - Arg object.
315
702
  * @param {string} arg.cartId - Current Cart _id
@@ -324,6 +711,20 @@ declare class Cart {
324
711
  b?: boolean;
325
712
  body: UpdateCartRequest;
326
713
  }): Promise<UpdateCartDetailResponse>;
714
+ /**
715
+ * @param {Object} arg - Arg object.
716
+ * @param {string} [arg.id] -
717
+ * @param {boolean} [arg.buyNow] -
718
+ * @param {PlatformCartMetaRequest} arg.body
719
+ * @returns {Promise<CartMetaResponse>} - Success response
720
+ * @summary: Update the cart meta for platform pos user
721
+ * @description: Use this API to update cart meta like checkout_mode and gstin.
722
+ */
723
+ updateCartMeta({ body, id, buyNow }?: {
724
+ id?: string;
725
+ buyNow?: boolean;
726
+ body: PlatformCartMetaRequest;
727
+ }): Promise<CartMetaResponse>;
327
728
  /**
328
729
  * @param {Object} arg - Arg object.
329
730
  * @param {string} arg.cartMetaId -
@@ -336,6 +737,33 @@ declare class Cart {
336
737
  cartMetaId: string;
337
738
  body: CartMetaConfigUpdate;
338
739
  }): Promise<CartMetaConfigUpdate>;
740
+ /**
741
+ * @param {Object} arg - Arg object.
742
+ * @param {string} [arg.id] -
743
+ * @param {UpdateUserCartMapping} arg.body
744
+ * @returns {Promise<UserCartMappingResponse>} - Success response
745
+ * @summary: Update user id for store os customer
746
+ * @description: Update user id for store os customer after creating customer
747
+ */
748
+ updateCartUser({ body, id }?: {
749
+ id?: string;
750
+ body: UpdateUserCartMapping;
751
+ }): Promise<UserCartMappingResponse>;
752
+ /**
753
+ * @param {Object} arg - Arg object.
754
+ * @param {string} arg.token - Token of the shared short link
755
+ * @param {string} arg.action - Operation to perform on the existing cart
756
+ * merge or replace.
757
+ * @param {string} [arg.cartId] -
758
+ * @returns {Promise<SharedCartResponse>} - Success response
759
+ * @summary: Merge or replace existing cart
760
+ * @description: Use this API to merge the shared cart with existing cart, or replace the existing cart with the shared cart. The `action` parameter is used to indicate the operation Merge or Replace.
761
+ */
762
+ updateCartWithSharedItems({ token, action, cartId }?: {
763
+ token: string;
764
+ action: string;
765
+ cartId?: string;
766
+ }): Promise<SharedCartResponse>;
339
767
  /**
340
768
  * @param {Object} arg - Arg object.
341
769
  * @param {string} arg.id -
@@ -360,6 +788,18 @@ declare class Cart {
360
788
  id: string;
361
789
  body: CouponPartialUpdate;
362
790
  }): Promise<SuccessMessage>;
791
+ /**
792
+ * @param {Object} arg - Arg object.
793
+ * @param {string} arg.id -
794
+ * @param {PriceAdjustmentUpdate} arg.body
795
+ * @returns {Promise<PriceAdjustmentResponse>} - Success response
796
+ * @summary: Update price adjustment configuration
797
+ * @description: Update price adjustment configuration
798
+ */
799
+ updatePriceAdjustment({ id, body }?: {
800
+ id: string;
801
+ body: PriceAdjustmentUpdate;
802
+ }): Promise<PriceAdjustmentResponse>;
363
803
  /**
364
804
  * @param {Object} arg - Arg object.
365
805
  * @param {string} arg.id -
@@ -384,5 +824,54 @@ declare class Cart {
384
824
  id: string;
385
825
  body: PromotionPartialUpdate;
386
826
  }): Promise<SuccessMessage>;
827
+ /**
828
+ * @param {Object} arg - Arg object.
829
+ * @param {boolean} [arg.i] - This is a boolean value. Select `true` to
830
+ * retrieve all the items added in the cart.
831
+ * @param {boolean} [arg.p] - This is a boolean value. Select `true` for
832
+ * getting a payment option in response.
833
+ * @param {string} [arg.id] - The unique identifier of the cart
834
+ * @param {string} [arg.addressId] - ID allotted to an address
835
+ * @param {string} [arg.areaCode] - The PIN Code of the destination address,
836
+ * e.g. 400059
837
+ * @param {string} [arg.orderType] - The order type of shipment HomeDelivery
838
+ * - If the customer wants the order home-delivered PickAtStore - If the
839
+ * customer wants the handover of an order at the store itself.
840
+ * @param {UpdateCartShipmentRequest} arg.body
841
+ * @returns {Promise<PlatformCartShipmentsResponse>} - Success response
842
+ * @summary: Update shipment delivery type and quantity before checkout
843
+ * @description: Use this API to update the delivery type and quantity as per customer's preference for either store pick-up or home-delivery.
844
+ */
845
+ updateShipments({ body, i, p, id, addressId, areaCode, orderType, }?: {
846
+ i?: boolean;
847
+ p?: boolean;
848
+ id?: string;
849
+ addressId?: string;
850
+ areaCode?: string;
851
+ orderType?: string;
852
+ body: UpdateCartShipmentRequest;
853
+ }): Promise<PlatformCartShipmentsResponse>;
854
+ /**
855
+ * @param {Object} arg - Arg object.
856
+ * @param {string} [arg.id] -
857
+ * @param {boolean} [arg.buyNow] -
858
+ * @param {string} [arg.addressId] -
859
+ * @param {string} [arg.paymentMode] -
860
+ * @param {string} [arg.paymentIdentifier] -
861
+ * @param {string} [arg.aggregatorName] -
862
+ * @param {string} [arg.merchantCode] -
863
+ * @returns {Promise<PaymentCouponValidate>} - Success response
864
+ * @summary: Verify the coupon eligibility against the payment mode
865
+ * @description: Use this API to validate a coupon against the payment mode such as NetBanking, Wallet, UPI etc.
866
+ */
867
+ validateCouponForPayment({ id, buyNow, addressId, paymentMode, paymentIdentifier, aggregatorName, merchantCode, }?: {
868
+ id?: string;
869
+ buyNow?: boolean;
870
+ addressId?: string;
871
+ paymentMode?: string;
872
+ paymentIdentifier?: string;
873
+ aggregatorName?: string;
874
+ merchantCode?: string;
875
+ }): Promise<PaymentCouponValidate>;
387
876
  }
388
877
  import Paginator = require("../../common/Paginator");