@gofynd/fdk-client-javascript 1.4.7 → 1.4.8-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.
Files changed (110) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Cart/CartApplicationClient.d.ts +16 -3
  4. package/sdk/application/Cart/CartApplicationClient.js +118 -13
  5. package/sdk/application/Cart/CartApplicationModel.d.ts +121 -45
  6. package/sdk/application/Cart/CartApplicationModel.js +98 -26
  7. package/sdk/application/Cart/CartApplicationValidator.d.ts +45 -1
  8. package/sdk/application/Cart/CartApplicationValidator.js +26 -0
  9. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +4 -2
  10. package/sdk/application/Catalog/CatalogApplicationModel.js +4 -2
  11. package/sdk/application/Content/ContentApplicationClient.d.ts +1 -1
  12. package/sdk/application/Content/ContentApplicationClient.js +5 -3
  13. package/sdk/application/Content/ContentApplicationModel.d.ts +5 -18
  14. package/sdk/application/Content/ContentApplicationModel.js +4 -20
  15. package/sdk/application/Content/ContentApplicationValidator.d.ts +10 -0
  16. package/sdk/application/Content/ContentApplicationValidator.js +4 -0
  17. package/sdk/application/Lead/LeadApplicationClient.d.ts +0 -27
  18. package/sdk/application/Lead/LeadApplicationClient.js +0 -167
  19. package/sdk/application/Lead/LeadApplicationModel.d.ts +1 -146
  20. package/sdk/application/Lead/LeadApplicationModel.js +0 -126
  21. package/sdk/application/Lead/LeadApplicationValidator.d.ts +1 -25
  22. package/sdk/application/Lead/LeadApplicationValidator.js +0 -24
  23. package/sdk/application/Logistic/LogisticApplicationClient.js +1 -1
  24. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +2 -0
  25. package/sdk/application/Logistic/LogisticApplicationModel.js +2 -0
  26. package/sdk/application/Order/OrderApplicationModel.d.ts +2 -0
  27. package/sdk/application/Order/OrderApplicationModel.js +2 -0
  28. package/sdk/application/Payment/PaymentApplicationModel.d.ts +9 -2
  29. package/sdk/application/Payment/PaymentApplicationModel.js +5 -2
  30. package/sdk/application/Theme/ThemeApplicationModel.d.ts +2 -0
  31. package/sdk/application/Theme/ThemeApplicationModel.js +2 -0
  32. package/sdk/partner/Lead/LeadPartnerClient.d.ts +0 -23
  33. package/sdk/partner/Lead/LeadPartnerClient.js +0 -157
  34. package/sdk/partner/Lead/LeadPartnerModel.d.ts +12 -581
  35. package/sdk/partner/Lead/LeadPartnerModel.js +14 -403
  36. package/sdk/partner/Lead/LeadPartnerValidator.d.ts +0 -2
  37. package/sdk/partner/Lead/LeadPartnerValidator.js +0 -12
  38. package/sdk/partner/Logistics/LogisticsPartnerClient.js +1 -1
  39. package/sdk/partner/Logistics/LogisticsPartnerModel.js +4 -4
  40. package/sdk/partner/Theme/ThemePartnerClient.d.ts +22 -0
  41. package/sdk/partner/Theme/ThemePartnerClient.js +162 -0
  42. package/sdk/partner/Theme/ThemePartnerModel.d.ts +119 -1
  43. package/sdk/partner/Theme/ThemePartnerModel.js +142 -0
  44. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +2 -0
  45. package/sdk/partner/Theme/ThemePartnerValidator.js +14 -0
  46. package/sdk/platform/Billing/BillingPlatformClient.d.ts +304 -43
  47. package/sdk/platform/Billing/BillingPlatformClient.js +2218 -118
  48. package/sdk/platform/Billing/BillingPlatformModel.d.ts +1330 -282
  49. package/sdk/platform/Billing/BillingPlatformModel.js +1808 -590
  50. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +324 -16
  51. package/sdk/platform/Billing/BillingPlatformValidator.js +340 -12
  52. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +28 -5
  53. package/sdk/platform/Cart/CartPlatformApplicationClient.js +198 -5
  54. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +81 -1
  55. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +48 -0
  56. package/sdk/platform/Cart/CartPlatformModel.d.ts +214 -40
  57. package/sdk/platform/Cart/CartPlatformModel.js +164 -24
  58. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +2 -2
  59. package/sdk/platform/Catalog/CatalogPlatformClient.js +18 -2
  60. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +4 -0
  61. package/sdk/platform/Catalog/CatalogPlatformModel.js +4 -0
  62. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +28 -0
  63. package/sdk/platform/Catalog/CatalogPlatformValidator.js +12 -0
  64. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +1 -1
  65. package/sdk/platform/Content/ContentPlatformApplicationClient.js +18 -1
  66. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +25 -0
  67. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +10 -0
  68. package/sdk/platform/Content/ContentPlatformModel.d.ts +6 -4
  69. package/sdk/platform/Content/ContentPlatformModel.js +6 -4
  70. package/sdk/platform/Finance/FinancePlatformClient.d.ts +49 -28
  71. package/sdk/platform/Finance/FinancePlatformClient.js +181 -28
  72. package/sdk/platform/Finance/FinancePlatformModel.d.ts +350 -127
  73. package/sdk/platform/Finance/FinancePlatformModel.js +378 -108
  74. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +56 -43
  75. package/sdk/platform/Finance/FinancePlatformValidator.js +61 -42
  76. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +0 -47
  77. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +0 -321
  78. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +1 -46
  79. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +0 -48
  80. package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -25
  81. package/sdk/platform/Lead/LeadPlatformClient.js +2 -167
  82. package/sdk/platform/Lead/LeadPlatformModel.d.ts +82 -204
  83. package/sdk/platform/Lead/LeadPlatformModel.js +98 -178
  84. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +1 -25
  85. package/sdk/platform/Lead/LeadPlatformValidator.js +0 -24
  86. package/sdk/platform/Order/OrderPlatformModel.d.ts +108 -15
  87. package/sdk/platform/Order/OrderPlatformModel.js +47 -14
  88. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +12 -0
  89. package/sdk/platform/Payment/PaymentPlatformModel.js +5 -0
  90. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +4 -4
  91. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +12 -0
  92. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +82 -0
  93. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +18 -1
  94. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +14 -0
  95. package/sdk/platform/Theme/ThemePlatformModel.d.ts +67 -1
  96. package/sdk/platform/Theme/ThemePlatformModel.js +78 -0
  97. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +0 -40
  98. package/sdk/platform/Webhook/WebhookPlatformClient.js +0 -307
  99. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +112 -164
  100. package/sdk/platform/Webhook/WebhookPlatformModel.js +118 -169
  101. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +9 -35
  102. package/sdk/platform/Webhook/WebhookPlatformValidator.js +8 -46
  103. package/sdk/public/Billing/BillingPublicClient.d.ts +24 -2
  104. package/sdk/public/Billing/BillingPublicClient.js +156 -3
  105. package/sdk/public/Billing/BillingPublicModel.d.ts +368 -26
  106. package/sdk/public/Billing/BillingPublicModel.js +317 -18
  107. package/sdk/public/Billing/BillingPublicValidator.d.ts +19 -3
  108. package/sdk/public/Billing/BillingPublicValidator.js +22 -3
  109. package/sdk/public/Webhook/WebhookPublicModel.d.ts +22 -22
  110. package/sdk/public/Webhook/WebhookPublicModel.js +22 -22
@@ -18,6 +18,11 @@ const BillingPlatformModel = require("./BillingPlatformModel");
18
18
  * @property {BillingPlatformModel.CancelSubscriptionReq} body
19
19
  */
20
20
 
21
+ /**
22
+ * @typedef ChangePlanParam
23
+ * @property {BillingPlatformModel.SubscriptionActivateReq} body
24
+ */
25
+
21
26
  /**
22
27
  * @typedef CheckCouponValidityParam
23
28
  * @property {string} plan - ID of the plan.
@@ -31,11 +36,26 @@ const BillingPlatformModel = require("./BillingPlatformModel");
31
36
  */
32
37
 
33
38
  /**
34
- * @typedef CreateSubscriptionChargeParam
35
- * @property {string} extensionId - Extension _id
36
- * @property {BillingPlatformModel.CreateSubscriptionCharge} body
39
+ * @typedef CreditTransactionParam
40
+ * @property {number} uniqueId - Unique ID of the company
41
+ * @property {string} productSuite - Product suite
42
+ * @property {string} type - Type of the company
43
+ * @property {number} [pageSize] - Number of items per page
44
+ * @property {number} [pageNo] - Page number
45
+ * @property {string} [startDate] - Start date
46
+ * @property {string} [endDate] - End date
47
+ * @property {string} [searchType] - Search Type
48
+ * @property {string} [searchValue] - Search Value
49
+ */
50
+
51
+ /**
52
+ * @typedef CurrentAppLimitParam
53
+ * @property {string} [productSuite]
54
+ * @property {string} [type]
37
55
  */
38
56
 
57
+ /** @typedef GetBankListParam */
58
+
39
59
  /**
40
60
  * @typedef GetChargeDetailsParam
41
61
  * @property {string} extensionId - Extension _id
@@ -59,6 +79,16 @@ const BillingPlatformModel = require("./BillingPlatformModel");
59
79
 
60
80
  /** @typedef GetInvoicesParam */
61
81
 
82
+ /**
83
+ * @typedef GetPaymentOptionsParam
84
+ * @property {string} transactionId - ID of the payment transaction.
85
+ */
86
+
87
+ /**
88
+ * @typedef GetPaymentTransactionParam
89
+ * @property {string} transactionId - Payment Transaction unique id.
90
+ */
91
+
62
92
  /** @typedef GetSubscriptionParam */
63
93
 
64
94
  /**
@@ -76,14 +106,116 @@ const BillingPlatformModel = require("./BillingPlatformModel");
76
106
  * @property {string} [componentName] - The name of component the preferred to be fetched.
77
107
  */
78
108
 
109
+ /**
110
+ * @typedef GlobalSettingsParam
111
+ * @property {number} pageNo - Number of pages needed
112
+ * @property {number} pageSize - Number of items to be there in page
113
+ * @property {Object} query - Field which will be used in db query
114
+ */
115
+
116
+ /**
117
+ * @typedef MethodDefaultParam
118
+ * @property {BillingPlatformModel.DefaultReq} body
119
+ */
120
+
121
+ /**
122
+ * @typedef PaymentCollectParam
123
+ * @property {BillingPlatformModel.PaymentCollectReq} body
124
+ */
125
+
126
+ /**
127
+ * @typedef PaymentInitiateParam
128
+ * @property {BillingPlatformModel.SunscribePlan} body
129
+ */
130
+
131
+ /**
132
+ * @typedef PaymentOptionsParam
133
+ * @property {string} code - Payment options unique code.
134
+ */
135
+
136
+ /**
137
+ * @typedef PaymentStatusParam
138
+ * @property {string} orderId - Unique ID of the company
139
+ */
140
+
141
+ /**
142
+ * @typedef PlanDowngradeParam
143
+ * @property {BillingPlatformModel.DowngradePlanReq} body
144
+ */
145
+
146
+ /** @typedef PlanDowngradeGetParam */
147
+
79
148
  /**
80
149
  * @typedef PlanStatusUpdateParam
81
150
  * @property {BillingPlatformModel.PlanStatusUpdateReq} body
82
151
  */
83
152
 
84
153
  /**
85
- * @typedef SubscripePlanParam
86
- * @property {BillingPlatformModel.SunscribePlan} body
154
+ * @typedef SetupIntentParam
155
+ * @property {BillingPlatformModel.IntentReq} body
156
+ */
157
+
158
+ /**
159
+ * @typedef SetupMandateParam
160
+ * @property {BillingPlatformModel.SetupMandateReq} body
161
+ */
162
+
163
+ /**
164
+ * @typedef SetupPaymentParam
165
+ * @property {BillingPlatformModel.SetupPaymentReq} body
166
+ */
167
+
168
+ /** @typedef SubscriptionConfigsParam */
169
+
170
+ /**
171
+ * @typedef SubscriptionMethodsParam
172
+ * @property {string} uniqueExternalId - Unique id for external company
173
+ */
174
+
175
+ /**
176
+ * @typedef SubscriptionMethodsDeleteParam
177
+ * @property {string} uniqueExternalId - Unique id for external company
178
+ * @property {string} paymentMethodId - Payment method id
179
+ */
180
+
181
+ /**
182
+ * @typedef SubscriptionPlanChangeParam
183
+ * @property {string} [productSuite]
184
+ * @property {string} [coupon]
185
+ * @property {number} [uniqueId]
186
+ * @property {string} [platform]
187
+ * @property {string} [planId]
188
+ */
189
+
190
+ /**
191
+ * @typedef SubscriptionRenewParam
192
+ * @property {BillingPlatformModel.SubscriptionRenewReq} body
193
+ */
194
+
195
+ /**
196
+ * @typedef TopupCancelCreditParam
197
+ * @property {BillingPlatformModel.CancelTopupReq} body
198
+ */
199
+
200
+ /**
201
+ * @typedef TopupCreditParam
202
+ * @property {BillingPlatformModel.TopupReq} body
203
+ */
204
+
205
+ /**
206
+ * @typedef UpdateConsentParam
207
+ * @property {string} subscriberId - Customer unique id. In case of company it
208
+ * will be company id.
209
+ */
210
+
211
+ /**
212
+ * @typedef UpdateSetupIntentParam
213
+ * @property {BillingPlatformModel.PutIntentReq} body
214
+ */
215
+
216
+ /**
217
+ * @typedef UpgradePlanParam
218
+ * @property {BillingPlatformModel.SubscriptionMethodsReq} body
87
219
  */
88
220
 
89
221
  /**
@@ -91,6 +223,11 @@ const BillingPlatformModel = require("./BillingPlatformModel");
91
223
  * @property {BillingPlatformModel.SubscriptionCustomerCreate} body
92
224
  */
93
225
 
226
+ /**
227
+ * @typedef VerifyPaymentParam
228
+ * @property {BillingPlatformModel.VerifyPaymentReq} body
229
+ */
230
+
94
231
  class BillingPlatformValidator {
95
232
  /** @returns {ActivateSubscriptionPlanParam} */
96
233
  static activateSubscriptionPlan() {
@@ -114,6 +251,13 @@ class BillingPlatformValidator {
114
251
  }).required();
115
252
  }
116
253
 
254
+ /** @returns {ChangePlanParam} */
255
+ static changePlan() {
256
+ return Joi.object({
257
+ body: BillingPlatformModel.SubscriptionActivateReq().required(),
258
+ }).required();
259
+ }
260
+
117
261
  /** @returns {CheckCouponValidityParam} */
118
262
  static checkCouponValidity() {
119
263
  return Joi.object({
@@ -130,14 +274,34 @@ class BillingPlatformValidator {
130
274
  }).required();
131
275
  }
132
276
 
133
- /** @returns {CreateSubscriptionChargeParam} */
134
- static createSubscriptionCharge() {
277
+ /** @returns {CreditTransactionParam} */
278
+ static creditTransaction() {
135
279
  return Joi.object({
136
- extensionId: Joi.string().allow("").required(),
137
- body: BillingPlatformModel.CreateSubscriptionCharge().required(),
280
+ uniqueId: Joi.number().required(),
281
+ productSuite: Joi.string().allow("").required(),
282
+ type: Joi.string().allow("").required(),
283
+ pageSize: Joi.number(),
284
+ pageNo: Joi.number(),
285
+ startDate: Joi.string().allow(""),
286
+ endDate: Joi.string().allow(""),
287
+ searchType: Joi.string().allow(""),
288
+ searchValue: Joi.string().allow(""),
138
289
  }).required();
139
290
  }
140
291
 
292
+ /** @returns {CurrentAppLimitParam} */
293
+ static currentAppLimit() {
294
+ return Joi.object({
295
+ productSuite: Joi.string().allow(""),
296
+ type: Joi.string().allow(""),
297
+ }).required();
298
+ }
299
+
300
+ /** @returns {GetBankListParam} */
301
+ static getBankList() {
302
+ return Joi.object({}).required();
303
+ }
304
+
141
305
  /** @returns {GetChargeDetailsParam} */
142
306
  static getChargeDetails() {
143
307
  return Joi.object({
@@ -176,6 +340,20 @@ class BillingPlatformValidator {
176
340
  return Joi.object({}).required();
177
341
  }
178
342
 
343
+ /** @returns {GetPaymentOptionsParam} */
344
+ static getPaymentOptions() {
345
+ return Joi.object({
346
+ transactionId: Joi.string().allow("").required(),
347
+ }).required();
348
+ }
349
+
350
+ /** @returns {GetPaymentTransactionParam} */
351
+ static getPaymentTransaction() {
352
+ return Joi.object({
353
+ transactionId: Joi.string().allow("").required(),
354
+ }).required();
355
+ }
356
+
179
357
  /** @returns {GetSubscriptionParam} */
180
358
  static getSubscription() {
181
359
  return Joi.object({}).required();
@@ -200,6 +378,62 @@ class BillingPlatformValidator {
200
378
  }).required();
201
379
  }
202
380
 
381
+ /** @returns {GlobalSettingsParam} */
382
+ static globalSettings() {
383
+ return Joi.object({
384
+ pageNo: Joi.number().required(),
385
+ pageSize: Joi.number().required(),
386
+ query: Joi.any().required(),
387
+ }).required();
388
+ }
389
+
390
+ /** @returns {MethodDefaultParam} */
391
+ static methodDefault() {
392
+ return Joi.object({
393
+ body: BillingPlatformModel.DefaultReq().required(),
394
+ }).required();
395
+ }
396
+
397
+ /** @returns {PaymentCollectParam} */
398
+ static paymentCollect() {
399
+ return Joi.object({
400
+ body: BillingPlatformModel.PaymentCollectReq().required(),
401
+ }).required();
402
+ }
403
+
404
+ /** @returns {PaymentInitiateParam} */
405
+ static paymentInitiate() {
406
+ return Joi.object({
407
+ body: BillingPlatformModel.SunscribePlan().required(),
408
+ }).required();
409
+ }
410
+
411
+ /** @returns {PaymentOptionsParam} */
412
+ static paymentOptions() {
413
+ return Joi.object({
414
+ code: Joi.string().allow("").required(),
415
+ }).required();
416
+ }
417
+
418
+ /** @returns {PaymentStatusParam} */
419
+ static paymentStatus() {
420
+ return Joi.object({
421
+ orderId: Joi.string().allow("").required(),
422
+ }).required();
423
+ }
424
+
425
+ /** @returns {PlanDowngradeParam} */
426
+ static planDowngrade() {
427
+ return Joi.object({
428
+ body: BillingPlatformModel.DowngradePlanReq().required(),
429
+ }).required();
430
+ }
431
+
432
+ /** @returns {PlanDowngradeGetParam} */
433
+ static planDowngradeGet() {
434
+ return Joi.object({}).required();
435
+ }
436
+
203
437
  /** @returns {PlanStatusUpdateParam} */
204
438
  static planStatusUpdate() {
205
439
  return Joi.object({
@@ -207,10 +441,97 @@ class BillingPlatformValidator {
207
441
  }).required();
208
442
  }
209
443
 
210
- /** @returns {SubscripePlanParam} */
211
- static subscripePlan() {
444
+ /** @returns {SetupIntentParam} */
445
+ static setupIntent() {
212
446
  return Joi.object({
213
- body: BillingPlatformModel.SunscribePlan().required(),
447
+ body: BillingPlatformModel.IntentReq().required(),
448
+ }).required();
449
+ }
450
+
451
+ /** @returns {SetupMandateParam} */
452
+ static setupMandate() {
453
+ return Joi.object({
454
+ body: BillingPlatformModel.SetupMandateReq().required(),
455
+ }).required();
456
+ }
457
+
458
+ /** @returns {SetupPaymentParam} */
459
+ static setupPayment() {
460
+ return Joi.object({
461
+ body: BillingPlatformModel.SetupPaymentReq().required(),
462
+ }).required();
463
+ }
464
+
465
+ /** @returns {SubscriptionConfigsParam} */
466
+ static subscriptionConfigs() {
467
+ return Joi.object({}).required();
468
+ }
469
+
470
+ /** @returns {SubscriptionMethodsParam} */
471
+ static subscriptionMethods() {
472
+ return Joi.object({
473
+ uniqueExternalId: Joi.string().allow("").required(),
474
+ }).required();
475
+ }
476
+
477
+ /** @returns {SubscriptionMethodsDeleteParam} */
478
+ static subscriptionMethodsDelete() {
479
+ return Joi.object({
480
+ uniqueExternalId: Joi.string().allow("").required(),
481
+ paymentMethodId: Joi.string().allow("").required(),
482
+ }).required();
483
+ }
484
+
485
+ /** @returns {SubscriptionPlanChangeParam} */
486
+ static subscriptionPlanChange() {
487
+ return Joi.object({
488
+ productSuite: Joi.string().allow(""),
489
+ coupon: Joi.string().allow(""),
490
+ uniqueId: Joi.number(),
491
+ platform: Joi.string().allow(""),
492
+ planId: Joi.string().allow(""),
493
+ }).required();
494
+ }
495
+
496
+ /** @returns {SubscriptionRenewParam} */
497
+ static subscriptionRenew() {
498
+ return Joi.object({
499
+ body: BillingPlatformModel.SubscriptionRenewReq().required(),
500
+ }).required();
501
+ }
502
+
503
+ /** @returns {TopupCancelCreditParam} */
504
+ static topupCancelCredit() {
505
+ return Joi.object({
506
+ body: BillingPlatformModel.CancelTopupReq().required(),
507
+ }).required();
508
+ }
509
+
510
+ /** @returns {TopupCreditParam} */
511
+ static topupCredit() {
512
+ return Joi.object({
513
+ body: BillingPlatformModel.TopupReq().required(),
514
+ }).required();
515
+ }
516
+
517
+ /** @returns {UpdateConsentParam} */
518
+ static updateConsent() {
519
+ return Joi.object({
520
+ subscriberId: Joi.string().allow("").required(),
521
+ }).required();
522
+ }
523
+
524
+ /** @returns {UpdateSetupIntentParam} */
525
+ static updateSetupIntent() {
526
+ return Joi.object({
527
+ body: BillingPlatformModel.PutIntentReq().required(),
528
+ }).required();
529
+ }
530
+
531
+ /** @returns {UpgradePlanParam} */
532
+ static upgradePlan() {
533
+ return Joi.object({
534
+ body: BillingPlatformModel.SubscriptionMethodsReq().required(),
214
535
  }).required();
215
536
  }
216
537
 
@@ -220,6 +541,13 @@ class BillingPlatformValidator {
220
541
  body: BillingPlatformModel.SubscriptionCustomerCreate().required(),
221
542
  }).required();
222
543
  }
544
+
545
+ /** @returns {VerifyPaymentParam} */
546
+ static verifyPayment() {
547
+ return Joi.object({
548
+ body: BillingPlatformModel.VerifyPaymentReq().required(),
549
+ }).required();
550
+ }
223
551
  }
224
552
 
225
553
  module.exports = BillingPlatformValidator;
@@ -205,7 +205,7 @@ declare class Cart {
205
205
  * @summary: Get a cart
206
206
  * @description: Retrieve details of a cart linked to a specific customer using either the customer's ID or a unique cart ID. It offers an overview of the items, quantities, prices, and other relevant information associated with the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getCart/).
207
207
  */
208
- getCart({ id, userId, i, b, assignCardId, buyNow, requestHeaders }?: CartPlatformApplicationValidator.GetCartParam, { responseHeaders }?: object): Promise<CartPlatformModel.CartDetailResponse>;
208
+ getCart({ id, userId, orderType, i, b, assignCardId, buyNow, requestHeaders }?: CartPlatformApplicationValidator.GetCartParam, { responseHeaders }?: object): Promise<CartPlatformModel.CartDetailResponse>;
209
209
  /**
210
210
  * @param {CartPlatformApplicationValidator.GetCartListParam} arg - Arg object
211
211
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -292,12 +292,12 @@ declare class Cart {
292
292
  * @param {CartPlatformApplicationValidator.GetPriceAdjustmentsParam} arg - Arg object
293
293
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
294
294
  * @param {import("../PlatformAPIClient").Options} - Options
295
- * @returns {Promise<CartPlatformModel.PriceAdjustmentResponse>} - Success response
295
+ * @returns {Promise<CartPlatformModel.GetPriceAdjustmentResponse>} - Success response
296
296
  * @name getPriceAdjustments
297
297
  * @summary: Get a list of all price adjustments associated with a cart
298
298
  * @description: This API helps to get price adjustments data associated to a particular cart - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getPriceAdjustments/).
299
299
  */
300
- getPriceAdjustments({ cartId, requestHeaders }?: CartPlatformApplicationValidator.GetPriceAdjustmentsParam, { responseHeaders }?: object): Promise<CartPlatformModel.PriceAdjustmentResponse>;
300
+ getPriceAdjustments({ cartId, requestHeaders }?: CartPlatformApplicationValidator.GetPriceAdjustmentsParam, { responseHeaders }?: object): Promise<CartPlatformModel.GetPriceAdjustmentResponse>;
301
301
  /**
302
302
  * @param {CartPlatformApplicationValidator.GetPromosCouponConfigParam} arg
303
303
  * - Arg object
@@ -332,6 +332,29 @@ declare class Cart {
332
332
  * @description: Validates the presence of a promotion code for the specified sales channel to verify whether the provided code already exists or not. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getPromotionCodeExists/).
333
333
  */
334
334
  getPromotionCodeExists({ code, requestHeaders }?: CartPlatformApplicationValidator.GetPromotionCodeExistsParam, { responseHeaders }?: object): Promise<any>;
335
+ /**
336
+ * @param {CartPlatformApplicationValidator.GetPromotionOffersParam} arg - Arg object
337
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
338
+ * @param {import("../PlatformAPIClient").Options} - Options
339
+ * @returns {Promise<CartPlatformModel.PromotionOffersResponse>} - Success response
340
+ * @name getPromotionOffers
341
+ * @summary: List available promotion offers
342
+ * @description: Retrieve a list of all promotional offers available for the items in the cart, including details such as offer text, unique promotion ID, and validity period. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getPromotionOffers/).
343
+ */
344
+ getPromotionOffers({ slug, pageSize, promotionGroup, storeId, cartType, requestHeaders }?: CartPlatformApplicationValidator.GetPromotionOffersParam, { responseHeaders }?: object): Promise<CartPlatformModel.PromotionOffersResponse>;
345
+ /**
346
+ * @param {CartPlatformApplicationValidator.GetPromotionPaymentOffersParam} arg
347
+ * - Arg object
348
+ *
349
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
350
+ * @param {import("../PlatformAPIClient").Options} - Options
351
+ * @returns {Promise<CartPlatformModel.PromotionPaymentOffersResponse>} -
352
+ * Success response
353
+ * @name getPromotionPaymentOffers
354
+ * @summary: Fetch available promotions payment offers
355
+ * @description: Use this API to get top 5 payment offers available for current product - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getPromotionPaymentOffers/).
356
+ */
357
+ getPromotionPaymentOffers({ id, uid, requestHeaders }?: CartPlatformApplicationValidator.GetPromotionPaymentOffersParam, { responseHeaders }?: object): Promise<CartPlatformModel.PromotionPaymentOffersResponse>;
335
358
  /**
336
359
  * @param {CartPlatformApplicationValidator.GetPromotionsParam} arg - Arg object
337
360
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -384,7 +407,7 @@ declare class Cart {
384
407
  * @summary: Add items to cart
385
408
  * @description: Add product items to the customer's existing shopping cart. If there is no existing cart associated with the customer, it creates a new one and adds the items to it. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/platformAddItems/).
386
409
  */
387
- platformAddItems({ body, i, b, buyNow, id, requestHeaders }?: CartPlatformApplicationValidator.PlatformAddItemsParam, { responseHeaders }?: object): Promise<CartPlatformModel.AddCartDetailResponse>;
410
+ platformAddItems({ body, i, b, buyNow, orderType, id, requestHeaders }?: CartPlatformApplicationValidator.PlatformAddItemsParam, { responseHeaders }?: object): Promise<CartPlatformModel.AddCartDetailResponse>;
388
411
  /**
389
412
  * @param {CartPlatformApplicationValidator.PlatformCheckoutCartParam} arg
390
413
  * - Arg object
@@ -418,7 +441,7 @@ declare class Cart {
418
441
  * @summary: Update cart items
419
442
  * @description: Customers can modify added product attributes such as quantity and size, as well as remove items from the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/platformUpdateCart/).
420
443
  */
421
- platformUpdateCart({ body, id, i, b, buyNow, requestHeaders }?: CartPlatformApplicationValidator.PlatformUpdateCartParam, { responseHeaders }?: object): Promise<CartPlatformModel.UpdateCartDetailResponse>;
444
+ platformUpdateCart({ body, id, i, orderType, b, buyNow, requestHeaders }?: CartPlatformApplicationValidator.PlatformUpdateCartParam, { responseHeaders }?: object): Promise<CartPlatformModel.UpdateCartDetailResponse>;
422
445
  /**
423
446
  * @param {CartPlatformApplicationValidator.RemoveAddressParam} arg - Arg object
424
447
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`