@gofynd/fdk-client-javascript 0.1.35 → 0.1.37

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 (118) hide show
  1. package/README.md +1 -1
  2. package/documentation/application/CART.md +272 -249
  3. package/documentation/application/CATALOG.md +417 -413
  4. package/documentation/application/COMMON.md +4 -0
  5. package/documentation/application/COMMUNICATION.md +4 -0
  6. package/documentation/application/CONFIGURATION.md +4 -0
  7. package/documentation/application/CONTENT.md +7 -20
  8. package/documentation/application/FILESTORAGE.md +85 -0
  9. package/documentation/application/LEAD.md +6 -2
  10. package/documentation/application/LOGISTIC.md +427 -101
  11. package/documentation/application/ORDER.md +292 -288
  12. package/documentation/application/PAYMENT.md +445 -259
  13. package/documentation/application/POSCART.md +309 -286
  14. package/documentation/application/README.md +1 -1
  15. package/documentation/application/REWARDS.md +153 -160
  16. package/documentation/application/SHARE.md +4 -0
  17. package/documentation/application/THEME.md +4 -0
  18. package/documentation/application/USER.md +4 -0
  19. package/documentation/platform/ANALYTICS.md +4 -0
  20. package/documentation/platform/AUDITTRAIL.md +6 -2
  21. package/documentation/platform/BILLING.md +4 -0
  22. package/documentation/platform/CART.md +476 -459
  23. package/documentation/platform/CATALOG.md +4138 -2968
  24. package/documentation/platform/COMMON.md +4 -0
  25. package/documentation/platform/COMMUNICATION.md +4 -0
  26. package/documentation/platform/COMPANYPROFILE.md +258 -206
  27. package/documentation/platform/CONFIGURATION.md +4 -0
  28. package/documentation/platform/CONTENT.md +8 -21
  29. package/documentation/platform/DISCOUNT.md +4 -0
  30. package/documentation/platform/FILESTORAGE.md +85 -0
  31. package/documentation/platform/INVENTORY.md +4 -0
  32. package/documentation/platform/LEAD.md +6 -2
  33. package/documentation/platform/ORDER.md +6298 -1448
  34. package/documentation/platform/PARTNER.md +12 -8
  35. package/documentation/platform/PAYMENT.md +107 -103
  36. package/documentation/platform/README.md +2 -2
  37. package/documentation/platform/REWARDS.md +219 -152
  38. package/documentation/platform/SHARE.md +4 -0
  39. package/documentation/platform/THEME.md +4 -0
  40. package/documentation/platform/USER.md +4 -0
  41. package/documentation/platform/WEBHOOK.md +4 -0
  42. package/documentation/public/CONFIGURATION.md +4 -0
  43. package/documentation/public/INVENTORY.md +4 -0
  44. package/documentation/public/WEBHOOK.md +4 -0
  45. package/package.json +2 -2
  46. package/sdk/application/ApplicationAPIClient.js +3 -0
  47. package/sdk/application/ApplicationClient.d.ts +1 -0
  48. package/sdk/application/ApplicationClient.js +11 -1
  49. package/sdk/application/ApplicationConfig.d.ts +1 -0
  50. package/sdk/application/ApplicationConfig.js +1 -0
  51. package/sdk/application/ApplicationModels.d.ts +94 -85
  52. package/sdk/application/ApplicationModels.js +1909 -1792
  53. package/sdk/application/client/CartApplicationClient.d.ts +36 -36
  54. package/sdk/application/client/CatalogApplicationClient.d.ts +39 -39
  55. package/sdk/application/client/CatalogApplicationClient.js +16 -16
  56. package/sdk/application/client/CommonApplicationClient.d.ts +2 -2
  57. package/sdk/application/client/CommunicationApplicationClient.d.ts +5 -5
  58. package/sdk/application/client/ConfigurationApplicationClient.d.ts +17 -17
  59. package/sdk/application/client/ContentApplicationClient.d.ts +19 -19
  60. package/sdk/application/client/FileStorageApplicationClient.d.ts +14 -6
  61. package/sdk/application/client/FileStorageApplicationClient.js +2 -0
  62. package/sdk/application/client/LeadApplicationClient.d.ts +10 -10
  63. package/sdk/application/client/LogisticApplicationClient.d.ts +32 -21
  64. package/sdk/application/client/LogisticApplicationClient.js +62 -27
  65. package/sdk/application/client/OrderApplicationClient.d.ts +15 -15
  66. package/sdk/application/client/OrderApplicationClient.js +1 -1
  67. package/sdk/application/client/PaymentApplicationClient.d.ts +79 -57
  68. package/sdk/application/client/PaymentApplicationClient.js +66 -0
  69. package/sdk/application/client/PosCartApplicationClient.d.ts +38 -38
  70. package/sdk/application/client/RewardsApplicationClient.d.ts +34 -34
  71. package/sdk/application/client/RewardsApplicationClient.js +77 -77
  72. package/sdk/application/client/ShareApplicationClient.d.ts +8 -8
  73. package/sdk/application/client/ThemeApplicationClient.d.ts +4 -4
  74. package/sdk/application/client/UserApplicationClient.d.ts +63 -63
  75. package/sdk/application/models/CatalogValidator.d.ts +1 -1
  76. package/sdk/application/models/CatalogValidator.js +2 -2
  77. package/sdk/application/models/LogisticValidator.d.ts +2 -1
  78. package/sdk/application/models/LogisticValidator.js +11 -6
  79. package/sdk/application/models/PaymentValidator.d.ts +2 -0
  80. package/sdk/application/models/PaymentValidator.js +12 -0
  81. package/sdk/application/models/RewardsValidator.d.ts +3 -3
  82. package/sdk/application/models/RewardsValidator.js +12 -12
  83. package/sdk/common/AxiosHelper.js +1 -1
  84. package/sdk/common/Constant.d.ts +9 -0
  85. package/sdk/common/Constant.js +11 -0
  86. package/sdk/platform/PlatformApplicationClient.d.ts +7962 -6505
  87. package/sdk/platform/PlatformApplicationClient.js +4377 -3635
  88. package/sdk/platform/PlatformApplicationModels.d.ts +26 -31
  89. package/sdk/platform/PlatformApplicationModels.js +5530 -4134
  90. package/sdk/platform/PlatformClient.d.ts +3495 -2780
  91. package/sdk/platform/PlatformClient.js +3985 -3108
  92. package/sdk/platform/PlatformModels.d.ts +354 -273
  93. package/sdk/platform/PlatformModels.js +5635 -4211
  94. package/sdk/platform/client/AnalyticsPlatformClient.d.ts +5 -5
  95. package/sdk/platform/client/AuditTrailPlatformClient.d.ts +1 -1
  96. package/sdk/platform/client/BillingPlatformClient.d.ts +4 -4
  97. package/sdk/platform/client/CatalogPlatformClient.d.ts +222 -154
  98. package/sdk/platform/client/CatalogPlatformClient.js +473 -295
  99. package/sdk/platform/client/CompanyProfilePlatformClient.d.ts +8 -8
  100. package/sdk/platform/client/ConfigurationPlatformClient.d.ts +9 -9
  101. package/sdk/platform/client/DiscountPlatformClient.d.ts +4 -4
  102. package/sdk/platform/client/FileStoragePlatformClient.d.ts +20 -4
  103. package/sdk/platform/client/FileStoragePlatformClient.js +49 -0
  104. package/sdk/platform/client/InventoryPlatformClient.d.ts +3 -3
  105. package/sdk/platform/client/LeadPlatformClient.d.ts +6 -6
  106. package/sdk/platform/client/OrderPlatformClient.d.ts +557 -131
  107. package/sdk/platform/client/OrderPlatformClient.js +1551 -247
  108. package/sdk/platform/client/PaymentPlatformClient.d.ts +4 -4
  109. package/sdk/platform/client/WebhookPlatformClient.d.ts +2 -2
  110. package/sdk/platform/models/CatalogValidator.d.ts +26 -22
  111. package/sdk/platform/models/CatalogValidator.js +109 -72
  112. package/sdk/platform/models/OrderValidator.d.ts +43 -11
  113. package/sdk/platform/models/OrderValidator.js +312 -51
  114. package/sdk/public/client/ConfigurationPublicClient.d.ts +2 -2
  115. package/sdk/public/client/InventoryPublicClient.d.ts +7 -7
  116. package/sdk/public/client/WebhookPublicClient.d.ts +3 -3
  117. package/tests/common/schema/action-url.json +15 -0
  118. package/tests/common/schema/url-action.json +16 -0
@@ -21,7 +21,7 @@ declare class Order {
21
21
  /**
22
22
  * @param {Object} arg - Arg object.
23
23
  * @param {number} [arg.status] - A filter to retrieve orders by their
24
- * current status such as *placed*, *delivered*, etc.
24
+ * current status such as _placed_, _delivered_, etc.
25
25
  * @param {number} [arg.pageNo] - The page number to navigate through the
26
26
  * given set of results. Default value is 1.
27
27
  * @param {number} [arg.pageSize] - The number of items to retrieve in each
@@ -42,7 +42,7 @@ declare class Order {
42
42
  fromDate?: string;
43
43
  toDate?: string;
44
44
  customMeta?: string;
45
- }): Promise<any>;
45
+ }): Promise<OrderList>;
46
46
  /**
47
47
  * @param {Object} arg - Arg object.
48
48
  * @param {string} arg.orderId - A unique number used for identifying and
@@ -53,7 +53,7 @@ declare class Order {
53
53
  */
54
54
  getOrderById({ orderId }?: {
55
55
  orderId: string;
56
- }): Promise<any>;
56
+ }): Promise<OrderById>;
57
57
  /**
58
58
  * @param {Object} arg - Arg object.
59
59
  * @param {string} arg.orderId - A unique number used for identifying and
@@ -64,7 +64,7 @@ declare class Order {
64
64
  */
65
65
  getPosOrderById({ orderId }?: {
66
66
  orderId: string;
67
- }): Promise<any>;
67
+ }): Promise<OrderList>;
68
68
  /**
69
69
  * @param {Object} arg - Arg object.
70
70
  * @param {string} arg.shipmentId - ID of the shipment. An order may contain
@@ -76,7 +76,7 @@ declare class Order {
76
76
  */
77
77
  getShipmentById({ shipmentId }?: {
78
78
  shipmentId: string;
79
- }): Promise<any>;
79
+ }): Promise<ShipmentById>;
80
80
  /**
81
81
  * @param {Object} arg - Arg object.
82
82
  * @param {string} arg.shipmentId - ID of the shipment.
@@ -86,7 +86,7 @@ declare class Order {
86
86
  */
87
87
  getInvoiceByShipmentId({ shipmentId }?: {
88
88
  shipmentId: string;
89
- }): Promise<any>;
89
+ }): Promise<ResponseGetInvoiceShipment>;
90
90
  /**
91
91
  * @param {Object} arg - Arg object.
92
92
  * @param {string} arg.shipmentId - ID of the shipment. An order may contain
@@ -98,7 +98,7 @@ declare class Order {
98
98
  */
99
99
  trackShipment({ shipmentId }?: {
100
100
  shipmentId: string;
101
- }): Promise<any>;
101
+ }): Promise<ShipmentTrack>;
102
102
  /**
103
103
  * @param {Object} arg - Arg object.
104
104
  * @param {string} arg.orderId - ID of the shipment. An order may contain
@@ -113,7 +113,7 @@ declare class Order {
113
113
  getCustomerDetailsByShipmentId({ orderId, shipmentId }?: {
114
114
  orderId: string;
115
115
  shipmentId: string;
116
- }): Promise<any>;
116
+ }): Promise<CustomerDetailsResponse>;
117
117
  /**
118
118
  * @param {Object} arg - Arg object.
119
119
  * @param {string} arg.orderId - A unique number used for identifying and
@@ -128,7 +128,7 @@ declare class Order {
128
128
  sendOtpToShipmentCustomer({ orderId, shipmentId }?: {
129
129
  orderId: string;
130
130
  shipmentId: string;
131
- }): Promise<any>;
131
+ }): Promise<SendOtpToCustomerResponse>;
132
132
  /**
133
133
  * @param {Object} arg - Arg object.
134
134
  * @param {string} arg.orderId - A unique number used for identifying and
@@ -144,8 +144,8 @@ declare class Order {
144
144
  verifyOtpShipmentCustomer({ orderId, shipmentId, body }?: {
145
145
  orderId: string;
146
146
  shipmentId: string;
147
- body: any;
148
- }): Promise<any>;
147
+ body: VerifyOtp;
148
+ }): Promise<VerifyOtpResponse>;
149
149
  /**
150
150
  * @param {Object} arg - Arg object.
151
151
  * @param {string} arg.shipmentId - ID of the bag. An order may contain
@@ -160,7 +160,7 @@ declare class Order {
160
160
  getShipmentBagReasons({ shipmentId, bagId }?: {
161
161
  shipmentId: string;
162
162
  bagId: string;
163
- }): Promise<any>;
163
+ }): Promise<ShipmentBagReasons>;
164
164
  /**
165
165
  * @param {Object} arg - Arg object.
166
166
  * @param {string} arg.shipmentId - ID of the shipment. An order may contain
@@ -172,7 +172,7 @@ declare class Order {
172
172
  */
173
173
  getShipmentReasons({ shipmentId }?: {
174
174
  shipmentId: string;
175
- }): Promise<any>;
175
+ }): Promise<ShipmentReasons>;
176
176
  /**
177
177
  * @param {Object} arg - Arg object.
178
178
  * @param {string} arg.shipmentId - ID of the shipment. An order may contain
@@ -185,6 +185,6 @@ declare class Order {
185
185
  */
186
186
  updateShipmentStatus({ shipmentId, body }?: {
187
187
  shipmentId: string;
188
- body: any;
189
- }): Promise<any>;
188
+ body: UpdateShipmentStatusRequest;
189
+ }): Promise<ShipmentApplicationStatusResponse>;
190
190
  }
@@ -50,7 +50,7 @@ class Order {
50
50
  /**
51
51
  * @param {Object} arg - Arg object.
52
52
  * @param {number} [arg.status] - A filter to retrieve orders by their
53
- * current status such as *placed*, *delivered*, etc.
53
+ * current status such as _placed_, _delivered_, etc.
54
54
  * @param {number} [arg.pageNo] - The page number to navigate through the
55
55
  * given set of results. Default value is 1.
56
56
  * @param {number} [arg.pageSize] - The number of items to retrieve in each
@@ -17,6 +17,8 @@ declare class Payment {
17
17
  getRupifiBannerDetails: string;
18
18
  getEpaylaterBannerDetails: string;
19
19
  resendOrCancelPayment: string;
20
+ renderHTML: string;
21
+ validateVPA: string;
20
22
  getActiveRefundTransferModes: string;
21
23
  enableOrDisableRefundTransferMode: string;
22
24
  getUserBeneficiariesDetail: string;
@@ -56,7 +58,7 @@ declare class Payment {
56
58
  getAggregatorsConfig({ xApiToken, refresh }?: {
57
59
  xApiToken?: string;
58
60
  refresh?: boolean;
59
- }): Promise<any>;
61
+ }): Promise<AggregatorsConfigDetailResponse>;
60
62
  /**
61
63
  * @param {Object} arg - Arg object.
62
64
  * @param {AttachCardRequest} arg.body
@@ -65,8 +67,8 @@ declare class Payment {
65
67
  * @description: Use this API to attach a customer's saved card at the payment gateway, such as Stripe, Juspay.
66
68
  */
67
69
  attachCardToCustomer({ body }?: {
68
- body: any;
69
- }): Promise<any>;
70
+ body: AttachCardRequest;
71
+ }): Promise<AttachCardsResponse>;
70
72
  /**
71
73
  * @param {Object} arg - Arg object.
72
74
  * @param {boolean} [arg.refresh] -
@@ -76,7 +78,7 @@ declare class Payment {
76
78
  */
77
79
  getActiveCardAggregator({ refresh }?: {
78
80
  refresh?: boolean;
79
- }): Promise<any>;
81
+ }): Promise<ActiveCardPaymentGatewayResponse>;
80
82
  /**
81
83
  * @param {Object} arg - Arg object.
82
84
  * @param {boolean} [arg.forceRefresh] -
@@ -86,7 +88,7 @@ declare class Payment {
86
88
  */
87
89
  getActiveUserCards({ forceRefresh }?: {
88
90
  forceRefresh?: boolean;
89
- }): Promise<any>;
91
+ }): Promise<ListCardsResponse>;
90
92
  /**
91
93
  * @param {Object} arg - Arg object.
92
94
  * @param {DeletehCardRequest} arg.body
@@ -95,8 +97,8 @@ declare class Payment {
95
97
  * @description: Use this API to delete a card added by a user on the payment gateway and clear the cache.
96
98
  */
97
99
  deleteUserCard({ body }?: {
98
- body: any;
99
- }): Promise<any>;
100
+ body: DeletehCardRequest;
101
+ }): Promise<DeleteCardsResponse>;
100
102
  /**
101
103
  * @param {Object} arg - Arg object.
102
104
  * @param {ValidateCustomerRequest} arg.body
@@ -105,8 +107,8 @@ declare class Payment {
105
107
  * @description: Use this API to check if the customer is eligible to use credit-line facilities such as Simpl Pay Later and Rupifi.
106
108
  */
107
109
  verifyCustomerForPayment({ body }?: {
108
- body: any;
109
- }): Promise<any>;
110
+ body: ValidateCustomerRequest;
111
+ }): Promise<ValidateCustomerResponse>;
110
112
  /**
111
113
  * @param {Object} arg - Arg object.
112
114
  * @param {ChargeCustomerRequest} arg.body
@@ -115,8 +117,8 @@ declare class Payment {
115
117
  * @description: Use this API to verify and check the status of a payment transaction (server-to-server) made through aggregators like Simpl and Mswipe.
116
118
  */
117
119
  verifyAndChargePayment({ body }?: {
118
- body: any;
119
- }): Promise<any>;
120
+ body: ChargeCustomerRequest;
121
+ }): Promise<ChargeCustomerResponse>;
120
122
  /**
121
123
  * @param {Object} arg - Arg object.
122
124
  * @param {PaymentInitializationRequest} arg.body
@@ -125,8 +127,8 @@ declare class Payment {
125
127
  * @description: PUse this API to inititate payment using UPI, BharatQR, wherein the UPI requests are send to the app and QR code is displayed on the screen.
126
128
  */
127
129
  initialisePayment({ body }?: {
128
- body: any;
129
- }): Promise<any>;
130
+ body: PaymentInitializationRequest;
131
+ }): Promise<PaymentInitializationResponse>;
130
132
  /**
131
133
  * @param {Object} arg - Arg object.
132
134
  * @param {PaymentStatusUpdateRequest} arg.body
@@ -135,8 +137,8 @@ declare class Payment {
135
137
  * @description: Use this API to perform continuous polling at intervals to check the status of payment until timeout.
136
138
  */
137
139
  checkAndUpdatePaymentStatus({ body }?: {
138
- body: any;
139
- }): Promise<any>;
140
+ body: PaymentStatusUpdateRequest;
141
+ }): Promise<PaymentStatusUpdateResponse>;
140
142
  /**
141
143
  * @param {Object} arg - Arg object.
142
144
  * @param {number} arg.amount - Payable amount.
@@ -162,7 +164,7 @@ declare class Payment {
162
164
  refresh?: boolean;
163
165
  cardReference?: string;
164
166
  userDetails?: string;
165
- }): Promise<any>;
167
+ }): Promise<PaymentModeRouteResponse>;
166
168
  /**
167
169
  * @param {Object} arg - Arg object.
168
170
  * @param {number} arg.amount - Payable amount.
@@ -192,21 +194,21 @@ declare class Payment {
192
194
  cardReference?: string;
193
195
  orderType: string;
194
196
  userDetails?: string;
195
- }): Promise<any>;
197
+ }): Promise<PaymentModeRouteResponse>;
196
198
  /**
197
199
  * @param {Object} arg - Arg object.
198
200
  * @returns {Promise<RupifiBannerResponse>} - Success response
199
201
  * @summary: Get CreditLine Offer
200
202
  * @description: Get CreditLine Offer if user is tentatively approved by rupifi
201
203
  */
202
- getRupifiBannerDetails({}?: any): Promise<any>;
204
+ getRupifiBannerDetails({}?: any): Promise<RupifiBannerResponse>;
203
205
  /**
204
206
  * @param {Object} arg - Arg object.
205
207
  * @returns {Promise<EpaylaterBannerResponse>} - Success response
206
208
  * @summary: Get Epaylater Enabled
207
209
  * @description: Get Epaylater Enabled if user is tentatively approved by epaylater
208
210
  */
209
- getEpaylaterBannerDetails({}?: any): Promise<any>;
211
+ getEpaylaterBannerDetails({}?: any): Promise<EpaylaterBannerResponse>;
210
212
  /**
211
213
  * @param {Object} arg - Arg object.
212
214
  * @param {ResendOrCancelPaymentRequest} arg.body
@@ -215,15 +217,35 @@ declare class Payment {
215
217
  * @description: Use this API to perform resend or cancel a payment link based on request payload.
216
218
  */
217
219
  resendOrCancelPayment({ body }?: {
218
- body: any;
219
- }): Promise<any>;
220
+ body: ResendOrCancelPaymentRequest;
221
+ }): Promise<ResendOrCancelPaymentResponse>;
222
+ /**
223
+ * @param {Object} arg - Arg object.
224
+ * @param {renderHTMLRequest} arg.body
225
+ * @returns {Promise<renderHTMLResponse>} - Success response
226
+ * @summary: Convert base64 string to HTML form
227
+ * @description: Use this API to decode base64 html form to plain HTML string.
228
+ */
229
+ renderHTML({ body }?: {
230
+ body: renderHTMLRequest;
231
+ }): Promise<renderHTMLResponse>;
232
+ /**
233
+ * @param {Object} arg - Arg object.
234
+ * @param {ValidateVPARequest} arg.body
235
+ * @returns {Promise<ValidateVPAResponse>} - Success response
236
+ * @summary: API to Validate UPI ID
237
+ * @description: API to Validate UPI ID
238
+ */
239
+ validateVPA({ body }?: {
240
+ body: ValidateVPARequest;
241
+ }): Promise<ValidateVPAResponse>;
220
242
  /**
221
243
  * @param {Object} arg - Arg object.
222
244
  * @returns {Promise<TransferModeResponse>} - Success response
223
245
  * @summary: Lists the mode of refund
224
246
  * @description: Use this API to retrieve eligible refund modes (such as Netbanking) and add the beneficiary details.
225
247
  */
226
- getActiveRefundTransferModes({}?: any): Promise<any>;
248
+ getActiveRefundTransferModes({}?: any): Promise<TransferModeResponse>;
227
249
  /**
228
250
  * @param {Object} arg - Arg object.
229
251
  * @param {UpdateRefundTransferModeRequest} arg.body
@@ -232,8 +254,8 @@ declare class Payment {
232
254
  * @description: Activate or Deactivate Transfer Mode to collect Beneficiary Details for Refund
233
255
  */
234
256
  enableOrDisableRefundTransferMode({ body }?: {
235
- body: any;
236
- }): Promise<any>;
257
+ body: UpdateRefundTransferModeRequest;
258
+ }): Promise<UpdateRefundTransferModeResponse>;
237
259
  /**
238
260
  * @param {Object} arg - Arg object.
239
261
  * @param {string} arg.orderId - A unique number used for identifying and
@@ -244,7 +266,7 @@ declare class Payment {
244
266
  */
245
267
  getUserBeneficiariesDetail({ orderId }?: {
246
268
  orderId: string;
247
- }): Promise<any>;
269
+ }): Promise<OrderBeneficiaryResponse>;
248
270
  /**
249
271
  * @param {Object} arg - Arg object.
250
272
  * @param {string} [arg.ifscCode] - A 11-digit alphanumeric code that
@@ -255,7 +277,7 @@ declare class Payment {
255
277
  */
256
278
  verifyIfscCode({ ifscCode }?: {
257
279
  ifscCode?: string;
258
- }): Promise<any>;
280
+ }): Promise<IfscCodeResponse>;
259
281
  /**
260
282
  * @param {Object} arg - Arg object.
261
283
  * @param {string} arg.orderId - A unique number used for identifying and
@@ -266,7 +288,7 @@ declare class Payment {
266
288
  */
267
289
  getOrderBeneficiariesDetail({ orderId }?: {
268
290
  orderId: string;
269
- }): Promise<any>;
291
+ }): Promise<OrderBeneficiaryResponse>;
270
292
  /**
271
293
  * @param {Object} arg - Arg object.
272
294
  * @param {AddBeneficiaryViaOtpVerificationRequest} arg.body
@@ -275,8 +297,8 @@ declare class Payment {
275
297
  * @description: Use this API to perform an OTP validation before saving the beneficiary details added for a refund.
276
298
  */
277
299
  verifyOtpAndAddBeneficiaryForBank({ body }?: {
278
- body: any;
279
- }): Promise<any>;
300
+ body: AddBeneficiaryViaOtpVerificationRequest;
301
+ }): Promise<AddBeneficiaryViaOtpVerificationResponse>;
280
302
  /**
281
303
  * @param {Object} arg - Arg object.
282
304
  * @param {AddBeneficiaryDetailsRequest} arg.body
@@ -285,8 +307,8 @@ declare class Payment {
285
307
  * @description: Use this API to save the bank details for a returned or cancelled order to refund the amount.
286
308
  */
287
309
  addBeneficiaryDetails({ body }?: {
288
- body: any;
289
- }): Promise<any>;
310
+ body: AddBeneficiaryDetailsRequest;
311
+ }): Promise<RefundAccountResponse>;
290
312
  /**
291
313
  * @param {Object} arg - Arg object.
292
314
  * @param {AddBeneficiaryDetailsOTPRequest} arg.body
@@ -295,8 +317,8 @@ declare class Payment {
295
317
  * @description: Use this API to save bank details for returned/cancelled order to refund amount in his account.
296
318
  */
297
319
  addRefundBankAccountUsingOTP({ body }?: {
298
- body: any;
299
- }): Promise<any>;
320
+ body: AddBeneficiaryDetailsOTPRequest;
321
+ }): Promise<RefundAccountResponse>;
300
322
  /**
301
323
  * @param {Object} arg - Arg object.
302
324
  * @param {WalletOtpRequest} arg.body
@@ -305,8 +327,8 @@ declare class Payment {
305
327
  * @description: Use this API to send an OTP while adding a wallet beneficiary by mobile no. verification.
306
328
  */
307
329
  verifyOtpAndAddBeneficiaryForWallet({ body }?: {
308
- body: any;
309
- }): Promise<any>;
330
+ body: WalletOtpRequest;
331
+ }): Promise<WalletOtpResponse>;
310
332
  /**
311
333
  * @param {Object} arg - Arg object.
312
334
  * @param {SetDefaultBeneficiaryRequest} arg.body
@@ -315,8 +337,8 @@ declare class Payment {
315
337
  * @description: Use this API to set a default beneficiary for getting a refund.
316
338
  */
317
339
  updateDefaultBeneficiary({ body }?: {
318
- body: any;
319
- }): Promise<any>;
340
+ body: SetDefaultBeneficiaryRequest;
341
+ }): Promise<SetDefaultBeneficiaryResponse>;
320
342
  /**
321
343
  * @param {Object} arg - Arg object.
322
344
  * @param {string} [arg.paymentLinkId] -
@@ -326,7 +348,7 @@ declare class Payment {
326
348
  */
327
349
  getPaymentLink({ paymentLinkId }?: {
328
350
  paymentLinkId?: string;
329
- }): Promise<any>;
351
+ }): Promise<GetPaymentLinkResponse>;
330
352
  /**
331
353
  * @param {Object} arg - Arg object.
332
354
  * @param {CreatePaymentLinkRequest} arg.body
@@ -335,8 +357,8 @@ declare class Payment {
335
357
  * @description: Use this API to create a payment link for the customer
336
358
  */
337
359
  createPaymentLink({ body }?: {
338
- body: any;
339
- }): Promise<any>;
360
+ body: CreatePaymentLinkRequest;
361
+ }): Promise<CreatePaymentLinkResponse>;
340
362
  /**
341
363
  * @param {Object} arg - Arg object.
342
364
  * @param {CancelOrResendPaymentLinkRequest} arg.body
@@ -345,8 +367,8 @@ declare class Payment {
345
367
  * @description: Use this API to resend a payment link for the customer
346
368
  */
347
369
  resendPaymentLink({ body }?: {
348
- body: any;
349
- }): Promise<any>;
370
+ body: CancelOrResendPaymentLinkRequest;
371
+ }): Promise<ResendPaymentLinkResponse>;
350
372
  /**
351
373
  * @param {Object} arg - Arg object.
352
374
  * @param {CancelOrResendPaymentLinkRequest} arg.body
@@ -355,8 +377,8 @@ declare class Payment {
355
377
  * @description: Use this API to cancel a payment link for the customer
356
378
  */
357
379
  cancelPaymentLink({ body }?: {
358
- body: any;
359
- }): Promise<any>;
380
+ body: CancelOrResendPaymentLinkRequest;
381
+ }): Promise<CancelPaymentLinkResponse>;
360
382
  /**
361
383
  * @param {Object} arg - Arg object.
362
384
  * @param {string} arg.paymentLinkId - Payment link id
@@ -366,7 +388,7 @@ declare class Payment {
366
388
  */
367
389
  getPaymentModeRoutesPaymentLink({ paymentLinkId }?: {
368
390
  paymentLinkId: string;
369
- }): Promise<any>;
391
+ }): Promise<PaymentModeRouteResponse>;
370
392
  /**
371
393
  * @param {Object} arg - Arg object.
372
394
  * @param {string} [arg.paymentLinkId] -
@@ -376,7 +398,7 @@ declare class Payment {
376
398
  */
377
399
  pollingPaymentLink({ paymentLinkId }?: {
378
400
  paymentLinkId?: string;
379
- }): Promise<any>;
401
+ }): Promise<PollingPaymentLinkResponse>;
380
402
  /**
381
403
  * @param {Object} arg - Arg object.
382
404
  * @param {CreateOrderUserRequest} arg.body
@@ -385,8 +407,8 @@ declare class Payment {
385
407
  * @description: Use this API to create a order and payment on aggregator side
386
408
  */
387
409
  createOrderHandlerPaymentLink({ body }?: {
388
- body: any;
389
- }): Promise<any>;
410
+ body: CreateOrderUserRequest;
411
+ }): Promise<CreateOrderUserResponse>;
390
412
  /**
391
413
  * @param {Object} arg - Arg object.
392
414
  * @param {PaymentInitializationRequest} arg.body
@@ -395,8 +417,8 @@ declare class Payment {
395
417
  * @description: Use this API to inititate payment using UPI, BharatQR, wherein the UPI requests are send to the app and QR code is displayed on the screen.
396
418
  */
397
419
  initialisePaymentPaymentLink({ body }?: {
398
- body: any;
399
- }): Promise<any>;
420
+ body: PaymentInitializationRequest;
421
+ }): Promise<PaymentInitializationResponse>;
400
422
  /**
401
423
  * @param {Object} arg - Arg object.
402
424
  * @param {PaymentStatusUpdateRequest} arg.body
@@ -405,8 +427,8 @@ declare class Payment {
405
427
  * @description: Use this API to perform continuous polling at intervals to check the status of payment until timeout.
406
428
  */
407
429
  checkAndUpdatePaymentStatusPaymentLink({ body }?: {
408
- body: any;
409
- }): Promise<any>;
430
+ body: PaymentStatusUpdateRequest;
431
+ }): Promise<PaymentStatusUpdateResponse>;
410
432
  /**
411
433
  * @param {Object} arg - Arg object.
412
434
  * @param {string} [arg.aggregator] -
@@ -416,7 +438,7 @@ declare class Payment {
416
438
  */
417
439
  customerCreditSummary({ aggregator }?: {
418
440
  aggregator?: string;
419
- }): Promise<any>;
441
+ }): Promise<CustomerCreditSummaryResponse>;
420
442
  /**
421
443
  * @param {Object} arg - Arg object.
422
444
  * @param {string} [arg.source] - This is a String value that contains
@@ -430,7 +452,7 @@ declare class Payment {
430
452
  redirectToAggregator({ source, aggregator }?: {
431
453
  source?: string;
432
454
  aggregator?: string;
433
- }): Promise<any>;
455
+ }): Promise<RedirectToAggregatorResponse>;
434
456
  /**
435
457
  * @param {Object} arg - Arg object.
436
458
  * @param {string} [arg.aggregator] -
@@ -440,7 +462,7 @@ declare class Payment {
440
462
  */
441
463
  checkCredit({ aggregator }?: {
442
464
  aggregator?: string;
443
- }): Promise<any>;
465
+ }): Promise<CheckCreditResponse>;
444
466
  /**
445
467
  * @param {Object} arg - Arg object.
446
468
  * @param {CustomerOnboardingRequest} arg.body
@@ -449,6 +471,6 @@ declare class Payment {
449
471
  * @description: Use this API to fetch the customer credit summary.
450
472
  */
451
473
  customerOnboard({ body }?: {
452
- body: any;
453
- }): Promise<any>;
474
+ body: CustomerOnboardingRequest;
475
+ }): Promise<CustomerOnboardingResponse>;
454
476
  }
@@ -30,6 +30,8 @@ class Payment {
30
30
  "/service/application/payment/v1.0/epaylater/banner",
31
31
  resendOrCancelPayment:
32
32
  "/service/application/payment/v1.0/payment/resend_or_cancel",
33
+ renderHTML: "/service/application/payment/v1.0/payment/html/render/",
34
+ validateVPA: "/service/application/payment/v1.0/validate-vpa",
33
35
  getActiveRefundTransferModes:
34
36
  "/service/application/payment/v1.0/refund/transfer-mode",
35
37
  enableOrDisableRefundTransferMode:
@@ -613,6 +615,70 @@ class Payment {
613
615
  );
614
616
  }
615
617
 
618
+ /**
619
+ * @param {Object} arg - Arg object.
620
+ * @param {renderHTMLRequest} arg.body
621
+ * @returns {Promise<renderHTMLResponse>} - Success response
622
+ * @summary: Convert base64 string to HTML form
623
+ * @description: Use this API to decode base64 html form to plain HTML string.
624
+ */
625
+ renderHTML({ body } = {}) {
626
+ const { error } = PaymentValidator.renderHTML().validate(
627
+ { body },
628
+ { abortEarly: false, allowUnknown: true }
629
+ );
630
+ if (error) {
631
+ return Promise.reject(new FDKClientValidationError(error));
632
+ }
633
+ const query_params = {};
634
+
635
+ const xHeaders = {};
636
+
637
+ return APIClient.execute(
638
+ this._conf,
639
+ "post",
640
+ constructUrl({
641
+ url: this._urls["renderHTML"],
642
+ params: {},
643
+ }),
644
+ query_params,
645
+ body,
646
+ xHeaders
647
+ );
648
+ }
649
+
650
+ /**
651
+ * @param {Object} arg - Arg object.
652
+ * @param {ValidateVPARequest} arg.body
653
+ * @returns {Promise<ValidateVPAResponse>} - Success response
654
+ * @summary: API to Validate UPI ID
655
+ * @description: API to Validate UPI ID
656
+ */
657
+ validateVPA({ body } = {}) {
658
+ const { error } = PaymentValidator.validateVPA().validate(
659
+ { body },
660
+ { abortEarly: false, allowUnknown: true }
661
+ );
662
+ if (error) {
663
+ return Promise.reject(new FDKClientValidationError(error));
664
+ }
665
+ const query_params = {};
666
+
667
+ const xHeaders = {};
668
+
669
+ return APIClient.execute(
670
+ this._conf,
671
+ "post",
672
+ constructUrl({
673
+ url: this._urls["validateVPA"],
674
+ params: {},
675
+ }),
676
+ query_params,
677
+ body,
678
+ xHeaders
679
+ );
680
+ }
681
+
616
682
  /**
617
683
  * @param {Object} arg - Arg object.
618
684
  * @returns {Promise<TransferModeResponse>} - Success response