@gofynd/fdk-client-javascript 0.1.35

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 (277) hide show
  1. package/.github/workflows/on_create_release.yml +23 -0
  2. package/.github/workflows/on_merge_main.yml +38 -0
  3. package/.github/workflows/on_pull_request.yml +35 -0
  4. package/.prettierrc +5 -0
  5. package/LICENSE +21 -0
  6. package/README.md +118 -0
  7. package/application.d.ts +3 -0
  8. package/application.js +6 -0
  9. package/common.d.ts +4 -0
  10. package/common.js +9 -0
  11. package/documentation/application/CART.md +7290 -0
  12. package/documentation/application/CATALOG.md +9570 -0
  13. package/documentation/application/COMMON.md +448 -0
  14. package/documentation/application/COMMUNICATION.md +463 -0
  15. package/documentation/application/CONFIGURATION.md +2902 -0
  16. package/documentation/application/CONTENT.md +3350 -0
  17. package/documentation/application/FILESTORAGE.md +491 -0
  18. package/documentation/application/LEAD.md +1891 -0
  19. package/documentation/application/LOGISTIC.md +439 -0
  20. package/documentation/application/ORDER.md +3428 -0
  21. package/documentation/application/PAYMENT.md +5035 -0
  22. package/documentation/application/POSCART.md +7889 -0
  23. package/documentation/application/README.md +21 -0
  24. package/documentation/application/REWARDS.md +714 -0
  25. package/documentation/application/SHARE.md +729 -0
  26. package/documentation/application/THEME.md +5796 -0
  27. package/documentation/application/USER.md +4326 -0
  28. package/documentation/platform/ANALYTICS.md +1150 -0
  29. package/documentation/platform/AUDITTRAIL.md +572 -0
  30. package/documentation/platform/BILLING.md +2396 -0
  31. package/documentation/platform/CART.md +5539 -0
  32. package/documentation/platform/CATALOG.md +21624 -0
  33. package/documentation/platform/COMMON.md +448 -0
  34. package/documentation/platform/COMMUNICATION.md +5714 -0
  35. package/documentation/platform/COMPANYPROFILE.md +2141 -0
  36. package/documentation/platform/CONFIGURATION.md +7335 -0
  37. package/documentation/platform/CONTENT.md +8989 -0
  38. package/documentation/platform/DISCOUNT.md +773 -0
  39. package/documentation/platform/FILESTORAGE.md +994 -0
  40. package/documentation/platform/INVENTORY.md +1775 -0
  41. package/documentation/platform/LEAD.md +4736 -0
  42. package/documentation/platform/ORDER.md +3764 -0
  43. package/documentation/platform/PARTNER.md +216 -0
  44. package/documentation/platform/PAYMENT.md +3444 -0
  45. package/documentation/platform/README.md +27 -0
  46. package/documentation/platform/REWARDS.md +871 -0
  47. package/documentation/platform/SHARE.md +602 -0
  48. package/documentation/platform/THEME.md +35725 -0
  49. package/documentation/platform/USER.md +2305 -0
  50. package/documentation/platform/WEBHOOK.md +587 -0
  51. package/documentation/public/CONFIGURATION.md +448 -0
  52. package/documentation/public/INVENTORY.md +686 -0
  53. package/documentation/public/WEBHOOK.md +348 -0
  54. package/index.d.ts +10 -0
  55. package/index.js +18 -0
  56. package/jest.config.d.ts +4 -0
  57. package/jest.config.js +6 -0
  58. package/package.json +35 -0
  59. package/platform.d.ts +3 -0
  60. package/platform.js +6 -0
  61. package/public.d.ts +3 -0
  62. package/public.js +6 -0
  63. package/sdk/application/ApplicationAPIClient.d.ts +11 -0
  64. package/sdk/application/ApplicationAPIClient.js +44 -0
  65. package/sdk/application/ApplicationClient.d.ts +40 -0
  66. package/sdk/application/ApplicationClient.js +84 -0
  67. package/sdk/application/ApplicationConfig.d.ts +19 -0
  68. package/sdk/application/ApplicationConfig.js +55 -0
  69. package/sdk/application/ApplicationModels.d.ts +826 -0
  70. package/sdk/application/ApplicationModels.js +10474 -0
  71. package/sdk/application/client/CartApplicationClient.d.ts +432 -0
  72. package/sdk/application/client/CartApplicationClient.js +1066 -0
  73. package/sdk/application/client/CatalogApplicationClient.d.ts +694 -0
  74. package/sdk/application/client/CatalogApplicationClient.js +1629 -0
  75. package/sdk/application/client/CommonApplicationClient.d.ts +38 -0
  76. package/sdk/application/client/CommonApplicationClient.js +105 -0
  77. package/sdk/application/client/CommunicationApplicationClient.d.ts +39 -0
  78. package/sdk/application/client/CommunicationApplicationClient.js +131 -0
  79. package/sdk/application/client/ConfigurationApplicationClient.d.ts +210 -0
  80. package/sdk/application/client/ConfigurationApplicationClient.js +649 -0
  81. package/sdk/application/client/ContentApplicationClient.d.ts +256 -0
  82. package/sdk/application/client/ContentApplicationClient.js +785 -0
  83. package/sdk/application/client/FileStorageApplicationClient.d.ts +88 -0
  84. package/sdk/application/client/FileStorageApplicationClient.js +214 -0
  85. package/sdk/application/client/LeadApplicationClient.d.ts +90 -0
  86. package/sdk/application/client/LeadApplicationClient.js +264 -0
  87. package/sdk/application/client/LogisticApplicationClient.d.ts +42 -0
  88. package/sdk/application/client/LogisticApplicationClient.js +128 -0
  89. package/sdk/application/client/OrderApplicationClient.d.ts +190 -0
  90. package/sdk/application/client/OrderApplicationClient.js +479 -0
  91. package/sdk/application/client/PaymentApplicationClient.d.ts +454 -0
  92. package/sdk/application/client/PaymentApplicationClient.js +1378 -0
  93. package/sdk/application/client/PosCartApplicationClient.d.ts +449 -0
  94. package/sdk/application/client/PosCartApplicationClient.js +1123 -0
  95. package/sdk/application/client/RewardsApplicationClient.d.ts +93 -0
  96. package/sdk/application/client/RewardsApplicationClient.js +293 -0
  97. package/sdk/application/client/ShareApplicationClient.d.ts +87 -0
  98. package/sdk/application/client/ShareApplicationClient.js +268 -0
  99. package/sdk/application/client/ThemeApplicationClient.d.ts +52 -0
  100. package/sdk/application/client/ThemeApplicationClient.js +161 -0
  101. package/sdk/application/client/UserApplicationClient.d.ts +446 -0
  102. package/sdk/application/client/UserApplicationClient.js +1275 -0
  103. package/sdk/application/constructUrl.d.ts +5 -0
  104. package/sdk/application/constructUrl.js +13 -0
  105. package/sdk/application/index.d.ts +2 -0
  106. package/sdk/application/index.js +4 -0
  107. package/sdk/application/models/CartValidator.d.ts +29 -0
  108. package/sdk/application/models/CartValidator.js +223 -0
  109. package/sdk/application/models/CatalogValidator.d.ts +33 -0
  110. package/sdk/application/models/CatalogValidator.js +233 -0
  111. package/sdk/application/models/CommonValidator.d.ts +5 -0
  112. package/sdk/application/models/CommonValidator.js +18 -0
  113. package/sdk/application/models/CommunicationValidator.d.ts +6 -0
  114. package/sdk/application/models/CommunicationValidator.js +20 -0
  115. package/sdk/application/models/ConfigurationValidator.d.ts +19 -0
  116. package/sdk/application/models/ConfigurationValidator.js +88 -0
  117. package/sdk/application/models/ContentValidator.d.ts +22 -0
  118. package/sdk/application/models/ContentValidator.js +106 -0
  119. package/sdk/application/models/FileStorageValidator.d.ts +6 -0
  120. package/sdk/application/models/FileStorageValidator.js +24 -0
  121. package/sdk/application/models/LeadValidator.d.ts +10 -0
  122. package/sdk/application/models/LeadValidator.js +48 -0
  123. package/sdk/application/models/LogisticValidator.d.ts +6 -0
  124. package/sdk/application/models/LogisticValidator.js +22 -0
  125. package/sdk/application/models/OrderValidator.d.ts +15 -0
  126. package/sdk/application/models/OrderValidator.js +87 -0
  127. package/sdk/application/models/PaymentValidator.d.ts +40 -0
  128. package/sdk/application/models/PaymentValidator.js +235 -0
  129. package/sdk/application/models/PosCartValidator.d.ts +30 -0
  130. package/sdk/application/models/PosCartValidator.js +232 -0
  131. package/sdk/application/models/RewardsValidator.d.ts +10 -0
  132. package/sdk/application/models/RewardsValidator.js +43 -0
  133. package/sdk/application/models/ShareValidator.d.ts +10 -0
  134. package/sdk/application/models/ShareValidator.js +44 -0
  135. package/sdk/application/models/ThemeValidator.d.ts +7 -0
  136. package/sdk/application/models/ThemeValidator.js +27 -0
  137. package/sdk/application/models/UserValidator.d.ts +38 -0
  138. package/sdk/application/models/UserValidator.js +233 -0
  139. package/sdk/common/AxiosHelper.d.ts +1 -0
  140. package/sdk/common/AxiosHelper.js +141 -0
  141. package/sdk/common/Constant.d.ts +294 -0
  142. package/sdk/common/Constant.js +332 -0
  143. package/sdk/common/FDKError.d.ts +26 -0
  144. package/sdk/common/FDKError.js +51 -0
  145. package/sdk/common/Logger.d.ts +2 -0
  146. package/sdk/common/Logger.js +85 -0
  147. package/sdk/common/Paginator.d.ts +16 -0
  148. package/sdk/common/Paginator.js +26 -0
  149. package/sdk/common/RequestSigner.d.ts +1 -0
  150. package/sdk/common/RequestSigner.js +306 -0
  151. package/sdk/common/Utility.d.ts +9 -0
  152. package/sdk/common/Utility.js +86 -0
  153. package/sdk/common/utils.d.ts +14 -0
  154. package/sdk/common/utils.js +165 -0
  155. package/sdk/platform/OAuthClient.d.ts +26 -0
  156. package/sdk/platform/OAuthClient.js +221 -0
  157. package/sdk/platform/PlatformAPIClient.d.ts +12 -0
  158. package/sdk/platform/PlatformAPIClient.js +43 -0
  159. package/sdk/platform/PlatformApplicationClient.d.ts +24398 -0
  160. package/sdk/platform/PlatformApplicationClient.js +23185 -0
  161. package/sdk/platform/PlatformApplicationModels.d.ts +333 -0
  162. package/sdk/platform/PlatformApplicationModels.js +21262 -0
  163. package/sdk/platform/PlatformClient.d.ts +9535 -0
  164. package/sdk/platform/PlatformClient.js +12336 -0
  165. package/sdk/platform/PlatformConfig.d.ts +29 -0
  166. package/sdk/platform/PlatformConfig.js +36 -0
  167. package/sdk/platform/PlatformModels.d.ts +1396 -0
  168. package/sdk/platform/PlatformModels.js +19222 -0
  169. package/sdk/platform/client/AnalyticsPlatformClient.d.ts +84 -0
  170. package/sdk/platform/client/AnalyticsPlatformClient.js +215 -0
  171. package/sdk/platform/client/AuditTrailPlatformClient.d.ts +38 -0
  172. package/sdk/platform/client/AuditTrailPlatformClient.js +133 -0
  173. package/sdk/platform/client/BillingPlatformClient.d.ts +109 -0
  174. package/sdk/platform/client/BillingPlatformClient.js +381 -0
  175. package/sdk/platform/client/CatalogPlatformClient.d.ts +806 -0
  176. package/sdk/platform/client/CatalogPlatformClient.js +2462 -0
  177. package/sdk/platform/client/CommonPlatformClient.d.ts +30 -0
  178. package/sdk/platform/client/CommonPlatformClient.js +84 -0
  179. package/sdk/platform/client/CommunicationPlatformClient.d.ts +26 -0
  180. package/sdk/platform/client/CommunicationPlatformClient.js +72 -0
  181. package/sdk/platform/client/CompanyProfilePlatformClient.d.ts +182 -0
  182. package/sdk/platform/client/CompanyProfilePlatformClient.js +540 -0
  183. package/sdk/platform/client/ConfigurationPlatformClient.d.ts +277 -0
  184. package/sdk/platform/client/ConfigurationPlatformClient.js +806 -0
  185. package/sdk/platform/client/DiscountPlatformClient.d.ts +118 -0
  186. package/sdk/platform/client/DiscountPlatformClient.js +364 -0
  187. package/sdk/platform/client/FileStoragePlatformClient.d.ts +111 -0
  188. package/sdk/platform/client/FileStoragePlatformClient.js +268 -0
  189. package/sdk/platform/client/InventoryPlatformClient.d.ts +125 -0
  190. package/sdk/platform/client/InventoryPlatformClient.js +409 -0
  191. package/sdk/platform/client/LeadPlatformClient.d.ts +150 -0
  192. package/sdk/platform/client/LeadPlatformClient.js +439 -0
  193. package/sdk/platform/client/OrderPlatformClient.d.ts +190 -0
  194. package/sdk/platform/client/OrderPlatformClient.js +521 -0
  195. package/sdk/platform/client/PaymentPlatformClient.d.ts +98 -0
  196. package/sdk/platform/client/PaymentPlatformClient.js +331 -0
  197. package/sdk/platform/client/WebhookPlatformClient.d.ts +64 -0
  198. package/sdk/platform/client/WebhookPlatformClient.js +207 -0
  199. package/sdk/platform/index.d.ts +2 -0
  200. package/sdk/platform/index.js +4 -0
  201. package/sdk/platform/models/AnalyticsValidator.d.ts +7 -0
  202. package/sdk/platform/models/AnalyticsValidator.js +36 -0
  203. package/sdk/platform/models/AuditTrailValidator.d.ts +7 -0
  204. package/sdk/platform/models/AuditTrailValidator.js +26 -0
  205. package/sdk/platform/models/BillingValidator.d.ts +15 -0
  206. package/sdk/platform/models/BillingValidator.js +72 -0
  207. package/sdk/platform/models/CartValidator.d.ts +0 -0
  208. package/sdk/platform/models/CartValidator.js +0 -0
  209. package/sdk/platform/models/CatalogValidator.d.ts +74 -0
  210. package/sdk/platform/models/CatalogValidator.js +484 -0
  211. package/sdk/platform/models/CommonValidator.d.ts +5 -0
  212. package/sdk/platform/models/CommonValidator.js +18 -0
  213. package/sdk/platform/models/CommunicationValidator.d.ts +4 -0
  214. package/sdk/platform/models/CommunicationValidator.js +11 -0
  215. package/sdk/platform/models/CompanyProfileValidator.d.ts +17 -0
  216. package/sdk/platform/models/CompanyProfileValidator.js +93 -0
  217. package/sdk/platform/models/ConfigurationValidator.d.ts +21 -0
  218. package/sdk/platform/models/ConfigurationValidator.js +134 -0
  219. package/sdk/platform/models/ContentValidator.d.ts +0 -0
  220. package/sdk/platform/models/ContentValidator.js +0 -0
  221. package/sdk/platform/models/DiscountValidator.d.ts +13 -0
  222. package/sdk/platform/models/DiscountValidator.js +75 -0
  223. package/sdk/platform/models/FileStorageValidator.d.ts +9 -0
  224. package/sdk/platform/models/FileStorageValidator.js +44 -0
  225. package/sdk/platform/models/InventoryValidator.d.ts +15 -0
  226. package/sdk/platform/models/InventoryValidator.js +81 -0
  227. package/sdk/platform/models/LeadValidator.d.ts +14 -0
  228. package/sdk/platform/models/LeadValidator.js +78 -0
  229. package/sdk/platform/models/OrderValidator.d.ts +14 -0
  230. package/sdk/platform/models/OrderValidator.js +110 -0
  231. package/sdk/platform/models/PartnerValidator.d.ts +0 -0
  232. package/sdk/platform/models/PartnerValidator.js +0 -0
  233. package/sdk/platform/models/PaymentValidator.d.ts +13 -0
  234. package/sdk/platform/models/PaymentValidator.js +65 -0
  235. package/sdk/platform/models/RewardsValidator.d.ts +0 -0
  236. package/sdk/platform/models/RewardsValidator.js +0 -0
  237. package/sdk/platform/models/ShareValidator.d.ts +0 -0
  238. package/sdk/platform/models/ShareValidator.js +0 -0
  239. package/sdk/platform/models/ThemeValidator.d.ts +0 -0
  240. package/sdk/platform/models/ThemeValidator.js +0 -0
  241. package/sdk/platform/models/UserValidator.d.ts +0 -0
  242. package/sdk/platform/models/UserValidator.js +0 -0
  243. package/sdk/platform/models/WebhookValidator.d.ts +9 -0
  244. package/sdk/platform/models/WebhookValidator.js +42 -0
  245. package/sdk/public/PublicAPIClient.d.ts +11 -0
  246. package/sdk/public/PublicAPIClient.js +38 -0
  247. package/sdk/public/PublicClient.d.ts +12 -0
  248. package/sdk/public/PublicClient.js +24 -0
  249. package/sdk/public/PublicConfig.d.ts +10 -0
  250. package/sdk/public/PublicConfig.js +12 -0
  251. package/sdk/public/PublicModels.d.ts +50 -0
  252. package/sdk/public/PublicModels.js +712 -0
  253. package/sdk/public/client/ConfigurationPublicClient.d.ts +38 -0
  254. package/sdk/public/client/ConfigurationPublicClient.js +102 -0
  255. package/sdk/public/client/InventoryPublicClient.d.ts +81 -0
  256. package/sdk/public/client/InventoryPublicClient.js +239 -0
  257. package/sdk/public/client/WebhookPublicClient.d.ts +28 -0
  258. package/sdk/public/client/WebhookPublicClient.js +92 -0
  259. package/sdk/public/constructUrl.d.ts +5 -0
  260. package/sdk/public/constructUrl.js +13 -0
  261. package/sdk/public/index.d.ts +2 -0
  262. package/sdk/public/index.js +4 -0
  263. package/sdk/public/models/ConfigurationValidator.d.ts +5 -0
  264. package/sdk/public/models/ConfigurationValidator.js +18 -0
  265. package/sdk/public/models/InventoryValidator.d.ts +9 -0
  266. package/sdk/public/models/InventoryValidator.js +43 -0
  267. package/sdk/public/models/WebhookValidator.d.ts +5 -0
  268. package/sdk/public/models/WebhookValidator.js +14 -0
  269. package/tests/application/catalog.spec.js +47 -0
  270. package/tests/common/action-url.spec.js +35 -0
  271. package/tests/common/schema/action-url.json +163 -0
  272. package/tests/common/schema/url-action.json +667 -0
  273. package/tests/common/url-action.spec.js +48 -0
  274. package/tests/helpers/cookie.helper.js +31 -0
  275. package/tests/helpers/oauth.helper.js +43 -0
  276. package/tests/platform/catalog.spec.js +49 -0
  277. package/tests/public/location.spec.js +39 -0
@@ -0,0 +1,454 @@
1
+ export = Payment;
2
+ declare class Payment {
3
+ constructor(_conf: any);
4
+ _conf: any;
5
+ _relativeUrls: {
6
+ getAggregatorsConfig: string;
7
+ attachCardToCustomer: string;
8
+ getActiveCardAggregator: string;
9
+ getActiveUserCards: string;
10
+ deleteUserCard: string;
11
+ verifyCustomerForPayment: string;
12
+ verifyAndChargePayment: string;
13
+ initialisePayment: string;
14
+ checkAndUpdatePaymentStatus: string;
15
+ getPaymentModeRoutes: string;
16
+ getPosPaymentModeRoutes: string;
17
+ getRupifiBannerDetails: string;
18
+ getEpaylaterBannerDetails: string;
19
+ resendOrCancelPayment: string;
20
+ getActiveRefundTransferModes: string;
21
+ enableOrDisableRefundTransferMode: string;
22
+ getUserBeneficiariesDetail: string;
23
+ verifyIfscCode: string;
24
+ getOrderBeneficiariesDetail: string;
25
+ verifyOtpAndAddBeneficiaryForBank: string;
26
+ addBeneficiaryDetails: string;
27
+ addRefundBankAccountUsingOTP: string;
28
+ verifyOtpAndAddBeneficiaryForWallet: string;
29
+ updateDefaultBeneficiary: string;
30
+ getPaymentLink: string;
31
+ createPaymentLink: string;
32
+ resendPaymentLink: string;
33
+ cancelPaymentLink: string;
34
+ getPaymentModeRoutesPaymentLink: string;
35
+ pollingPaymentLink: string;
36
+ createOrderHandlerPaymentLink: string;
37
+ initialisePaymentPaymentLink: string;
38
+ checkAndUpdatePaymentStatusPaymentLink: string;
39
+ customerCreditSummary: string;
40
+ redirectToAggregator: string;
41
+ checkCredit: string;
42
+ customerOnboard: string;
43
+ };
44
+ _urls: {};
45
+ updateUrls(urls: any): void;
46
+ /**
47
+ * @param {Object} arg - Arg object.
48
+ * @param {string} [arg.xApiToken] - Used for basic authentication.
49
+ * @param {boolean} [arg.refresh] - This is a boolean value. Select `true`
50
+ * to remove temporary cache files on payment gateway and replace with the
51
+ * latest one.
52
+ * @returns {Promise<AggregatorsConfigDetailResponse>} - Success response
53
+ * @summary: Get payment gateway keys
54
+ * @description: Use this API to retrieve the payment gateway key, secrets, merchant, SDK/API details to complete a payment at front-end.
55
+ */
56
+ getAggregatorsConfig({ xApiToken, refresh }?: {
57
+ xApiToken?: string;
58
+ refresh?: boolean;
59
+ }): Promise<any>;
60
+ /**
61
+ * @param {Object} arg - Arg object.
62
+ * @param {AttachCardRequest} arg.body
63
+ * @returns {Promise<AttachCardsResponse>} - Success response
64
+ * @summary: Attach a saved card to customer.
65
+ * @description: Use this API to attach a customer's saved card at the payment gateway, such as Stripe, Juspay.
66
+ */
67
+ attachCardToCustomer({ body }?: {
68
+ body: any;
69
+ }): Promise<any>;
70
+ /**
71
+ * @param {Object} arg - Arg object.
72
+ * @param {boolean} [arg.refresh] -
73
+ * @returns {Promise<ActiveCardPaymentGatewayResponse>} - Success response
74
+ * @summary: Fetch active payment gateway for card payments
75
+ * @description: Use this API to retrieve an active payment aggregator along with the Customer ID. This is applicable for cards payments only.
76
+ */
77
+ getActiveCardAggregator({ refresh }?: {
78
+ refresh?: boolean;
79
+ }): Promise<any>;
80
+ /**
81
+ * @param {Object} arg - Arg object.
82
+ * @param {boolean} [arg.forceRefresh] -
83
+ * @returns {Promise<ListCardsResponse>} - Success response
84
+ * @summary: Fetch the list of cards saved by the user
85
+ * @description: Use this API to retrieve a list of cards stored by user from an active payment gateway.
86
+ */
87
+ getActiveUserCards({ forceRefresh }?: {
88
+ forceRefresh?: boolean;
89
+ }): Promise<any>;
90
+ /**
91
+ * @param {Object} arg - Arg object.
92
+ * @param {DeletehCardRequest} arg.body
93
+ * @returns {Promise<DeleteCardsResponse>} - Success response
94
+ * @summary: Delete a card
95
+ * @description: Use this API to delete a card added by a user on the payment gateway and clear the cache.
96
+ */
97
+ deleteUserCard({ body }?: {
98
+ body: any;
99
+ }): Promise<any>;
100
+ /**
101
+ * @param {Object} arg - Arg object.
102
+ * @param {ValidateCustomerRequest} arg.body
103
+ * @returns {Promise<ValidateCustomerResponse>} - Success response
104
+ * @summary: Validate customer for payment
105
+ * @description: Use this API to check if the customer is eligible to use credit-line facilities such as Simpl Pay Later and Rupifi.
106
+ */
107
+ verifyCustomerForPayment({ body }?: {
108
+ body: any;
109
+ }): Promise<any>;
110
+ /**
111
+ * @param {Object} arg - Arg object.
112
+ * @param {ChargeCustomerRequest} arg.body
113
+ * @returns {Promise<ChargeCustomerResponse>} - Success response
114
+ * @summary: Verify and charge payment
115
+ * @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
+ */
117
+ verifyAndChargePayment({ body }?: {
118
+ body: any;
119
+ }): Promise<any>;
120
+ /**
121
+ * @param {Object} arg - Arg object.
122
+ * @param {PaymentInitializationRequest} arg.body
123
+ * @returns {Promise<PaymentInitializationResponse>} - Success response
124
+ * @summary: Initialize a payment (server-to-server) for UPI and BharatQR
125
+ * @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
+ */
127
+ initialisePayment({ body }?: {
128
+ body: any;
129
+ }): Promise<any>;
130
+ /**
131
+ * @param {Object} arg - Arg object.
132
+ * @param {PaymentStatusUpdateRequest} arg.body
133
+ * @returns {Promise<PaymentStatusUpdateResponse>} - Success response
134
+ * @summary: Performs continuous polling to check status of payment on the server
135
+ * @description: Use this API to perform continuous polling at intervals to check the status of payment until timeout.
136
+ */
137
+ checkAndUpdatePaymentStatus({ body }?: {
138
+ body: any;
139
+ }): Promise<any>;
140
+ /**
141
+ * @param {Object} arg - Arg object.
142
+ * @param {number} arg.amount - Payable amount.
143
+ * @param {string} arg.cartId - Identifier of the cart.
144
+ * @param {string} arg.pincode - The PIN Code of the destination address, e.g. 400059
145
+ * @param {string} arg.checkoutMode - Option to checkout for self or for others.
146
+ * @param {boolean} [arg.refresh] - This is a boolean value. Select `true`
147
+ * to remove temporary cache files on payment gateway and replace with the
148
+ * latest one.
149
+ * @param {string} [arg.cardReference] - Card reference id of user's debit
150
+ * or credit card.
151
+ * @param {string} [arg.userDetails] - URIencoded JSON containing details of
152
+ * an anonymous user.
153
+ * @returns {Promise<PaymentModeRouteResponse>} - Success response
154
+ * @summary: Get applicable payment options
155
+ * @description: Use this API to get all valid payment options for doing a payment.
156
+ */
157
+ getPaymentModeRoutes({ amount, cartId, pincode, checkoutMode, refresh, cardReference, userDetails, }?: {
158
+ amount: number;
159
+ cartId: string;
160
+ pincode: string;
161
+ checkoutMode: string;
162
+ refresh?: boolean;
163
+ cardReference?: string;
164
+ userDetails?: string;
165
+ }): Promise<any>;
166
+ /**
167
+ * @param {Object} arg - Arg object.
168
+ * @param {number} arg.amount - Payable amount.
169
+ * @param {string} arg.cartId - Identifier of the cart.
170
+ * @param {string} arg.pincode - The PIN Code of the destination address, e.g. 400059
171
+ * @param {string} arg.checkoutMode - Option to checkout for self or for others.
172
+ * @param {boolean} [arg.refresh] - This is a boolean value. Select `true`
173
+ * to remove temporary cache files on payment gateway and replace with the
174
+ * latest one.
175
+ * @param {string} [arg.cardReference] - Card reference id of user's debit
176
+ * or credit card.
177
+ * @param {string} arg.orderType - The order type of shipment * HomeDelivery
178
+ * - If the customer wants the order home-delivered * PickAtStore - If the
179
+ * customer wants the handover of an order at the store itself.
180
+ * @param {string} [arg.userDetails] - URIencoded JSON containing details of
181
+ * an anonymous user.
182
+ * @returns {Promise<PaymentModeRouteResponse>} - Success response
183
+ * @summary: Get applicable payment options for Point-of-Sale (POS)
184
+ * @description: Use this API to get all valid payment options for doing a payment in POS.
185
+ */
186
+ getPosPaymentModeRoutes({ amount, cartId, pincode, checkoutMode, orderType, refresh, cardReference, userDetails, }?: {
187
+ amount: number;
188
+ cartId: string;
189
+ pincode: string;
190
+ checkoutMode: string;
191
+ refresh?: boolean;
192
+ cardReference?: string;
193
+ orderType: string;
194
+ userDetails?: string;
195
+ }): Promise<any>;
196
+ /**
197
+ * @param {Object} arg - Arg object.
198
+ * @returns {Promise<RupifiBannerResponse>} - Success response
199
+ * @summary: Get CreditLine Offer
200
+ * @description: Get CreditLine Offer if user is tentatively approved by rupifi
201
+ */
202
+ getRupifiBannerDetails({}?: any): Promise<any>;
203
+ /**
204
+ * @param {Object} arg - Arg object.
205
+ * @returns {Promise<EpaylaterBannerResponse>} - Success response
206
+ * @summary: Get Epaylater Enabled
207
+ * @description: Get Epaylater Enabled if user is tentatively approved by epaylater
208
+ */
209
+ getEpaylaterBannerDetails({}?: any): Promise<any>;
210
+ /**
211
+ * @param {Object} arg - Arg object.
212
+ * @param {ResendOrCancelPaymentRequest} arg.body
213
+ * @returns {Promise<ResendOrCancelPaymentResponse>} - Success response
214
+ * @summary: API to resend and cancel a payment link which was already generated.
215
+ * @description: Use this API to perform resend or cancel a payment link based on request payload.
216
+ */
217
+ resendOrCancelPayment({ body }?: {
218
+ body: any;
219
+ }): Promise<any>;
220
+ /**
221
+ * @param {Object} arg - Arg object.
222
+ * @returns {Promise<TransferModeResponse>} - Success response
223
+ * @summary: Lists the mode of refund
224
+ * @description: Use this API to retrieve eligible refund modes (such as Netbanking) and add the beneficiary details.
225
+ */
226
+ getActiveRefundTransferModes({}?: any): Promise<any>;
227
+ /**
228
+ * @param {Object} arg - Arg object.
229
+ * @param {UpdateRefundTransferModeRequest} arg.body
230
+ * @returns {Promise<UpdateRefundTransferModeResponse>} - Success response
231
+ * @summary: Enable/Disable a mode for transferring a refund
232
+ * @description: Activate or Deactivate Transfer Mode to collect Beneficiary Details for Refund
233
+ */
234
+ enableOrDisableRefundTransferMode({ body }?: {
235
+ body: any;
236
+ }): Promise<any>;
237
+ /**
238
+ * @param {Object} arg - Arg object.
239
+ * @param {string} arg.orderId - A unique number used for identifying and
240
+ * tracking your orders.
241
+ * @returns {Promise<OrderBeneficiaryResponse>} - Success response
242
+ * @summary: Lists the beneficiary of a refund
243
+ * @description: Use this API to get the details of all active beneficiary added by a user for refund.
244
+ */
245
+ getUserBeneficiariesDetail({ orderId }?: {
246
+ orderId: string;
247
+ }): Promise<any>;
248
+ /**
249
+ * @param {Object} arg - Arg object.
250
+ * @param {string} [arg.ifscCode] - A 11-digit alphanumeric code that
251
+ * uniquely identifies a bank branch.
252
+ * @returns {Promise<IfscCodeResponse>} - Success response
253
+ * @summary: Verify IFSC Code
254
+ * @description: Use this API to check whether the 11-digit IFSC code is valid and to fetch the bank details for refund.
255
+ */
256
+ verifyIfscCode({ ifscCode }?: {
257
+ ifscCode?: string;
258
+ }): Promise<any>;
259
+ /**
260
+ * @param {Object} arg - Arg object.
261
+ * @param {string} arg.orderId - A unique number used for identifying and
262
+ * tracking your orders.
263
+ * @returns {Promise<OrderBeneficiaryResponse>} - Success response
264
+ * @summary: Lists the beneficiary of a refund
265
+ * @description: Use this API to get the details of all active beneficiary added by a user for refund.
266
+ */
267
+ getOrderBeneficiariesDetail({ orderId }?: {
268
+ orderId: string;
269
+ }): Promise<any>;
270
+ /**
271
+ * @param {Object} arg - Arg object.
272
+ * @param {AddBeneficiaryViaOtpVerificationRequest} arg.body
273
+ * @returns {Promise<AddBeneficiaryViaOtpVerificationResponse>} - Success response
274
+ * @summary: Verify the beneficiary details using OTP
275
+ * @description: Use this API to perform an OTP validation before saving the beneficiary details added for a refund.
276
+ */
277
+ verifyOtpAndAddBeneficiaryForBank({ body }?: {
278
+ body: any;
279
+ }): Promise<any>;
280
+ /**
281
+ * @param {Object} arg - Arg object.
282
+ * @param {AddBeneficiaryDetailsRequest} arg.body
283
+ * @returns {Promise<RefundAccountResponse>} - Success response
284
+ * @summary: Save bank details for cancelled/returned order
285
+ * @description: Use this API to save the bank details for a returned or cancelled order to refund the amount.
286
+ */
287
+ addBeneficiaryDetails({ body }?: {
288
+ body: any;
289
+ }): Promise<any>;
290
+ /**
291
+ * @param {Object} arg - Arg object.
292
+ * @param {AddBeneficiaryDetailsOTPRequest} arg.body
293
+ * @returns {Promise<RefundAccountResponse>} - Success response
294
+ * @summary: Save bank details for cancelled/returned order
295
+ * @description: Use this API to save bank details for returned/cancelled order to refund amount in his account.
296
+ */
297
+ addRefundBankAccountUsingOTP({ body }?: {
298
+ body: any;
299
+ }): Promise<any>;
300
+ /**
301
+ * @param {Object} arg - Arg object.
302
+ * @param {WalletOtpRequest} arg.body
303
+ * @returns {Promise<WalletOtpResponse>} - Success response
304
+ * @summary: Send OTP on adding a wallet beneficiary
305
+ * @description: Use this API to send an OTP while adding a wallet beneficiary by mobile no. verification.
306
+ */
307
+ verifyOtpAndAddBeneficiaryForWallet({ body }?: {
308
+ body: any;
309
+ }): Promise<any>;
310
+ /**
311
+ * @param {Object} arg - Arg object.
312
+ * @param {SetDefaultBeneficiaryRequest} arg.body
313
+ * @returns {Promise<SetDefaultBeneficiaryResponse>} - Success response
314
+ * @summary: Set a default beneficiary for a refund
315
+ * @description: Use this API to set a default beneficiary for getting a refund.
316
+ */
317
+ updateDefaultBeneficiary({ body }?: {
318
+ body: any;
319
+ }): Promise<any>;
320
+ /**
321
+ * @param {Object} arg - Arg object.
322
+ * @param {string} [arg.paymentLinkId] -
323
+ * @returns {Promise<GetPaymentLinkResponse>} - Success response
324
+ * @summary: Get payment link
325
+ * @description: Use this API to get a payment link
326
+ */
327
+ getPaymentLink({ paymentLinkId }?: {
328
+ paymentLinkId?: string;
329
+ }): Promise<any>;
330
+ /**
331
+ * @param {Object} arg - Arg object.
332
+ * @param {CreatePaymentLinkRequest} arg.body
333
+ * @returns {Promise<CreatePaymentLinkResponse>} - Success response
334
+ * @summary: Create payment link
335
+ * @description: Use this API to create a payment link for the customer
336
+ */
337
+ createPaymentLink({ body }?: {
338
+ body: any;
339
+ }): Promise<any>;
340
+ /**
341
+ * @param {Object} arg - Arg object.
342
+ * @param {CancelOrResendPaymentLinkRequest} arg.body
343
+ * @returns {Promise<ResendPaymentLinkResponse>} - Success response
344
+ * @summary: Resend payment link
345
+ * @description: Use this API to resend a payment link for the customer
346
+ */
347
+ resendPaymentLink({ body }?: {
348
+ body: any;
349
+ }): Promise<any>;
350
+ /**
351
+ * @param {Object} arg - Arg object.
352
+ * @param {CancelOrResendPaymentLinkRequest} arg.body
353
+ * @returns {Promise<CancelPaymentLinkResponse>} - Success response
354
+ * @summary: Cancel payment link
355
+ * @description: Use this API to cancel a payment link for the customer
356
+ */
357
+ cancelPaymentLink({ body }?: {
358
+ body: any;
359
+ }): Promise<any>;
360
+ /**
361
+ * @param {Object} arg - Arg object.
362
+ * @param {string} arg.paymentLinkId - Payment link id
363
+ * @returns {Promise<PaymentModeRouteResponse>} - Success response
364
+ * @summary: Get applicable payment options for payment link
365
+ * @description: Use this API to get all valid payment options for doing a payment through payment link
366
+ */
367
+ getPaymentModeRoutesPaymentLink({ paymentLinkId }?: {
368
+ paymentLinkId: string;
369
+ }): Promise<any>;
370
+ /**
371
+ * @param {Object} arg - Arg object.
372
+ * @param {string} [arg.paymentLinkId] -
373
+ * @returns {Promise<PollingPaymentLinkResponse>} - Success response
374
+ * @summary: Used for polling if payment successful or not
375
+ * @description: Use this API to poll if payment through payment was successful or not
376
+ */
377
+ pollingPaymentLink({ paymentLinkId }?: {
378
+ paymentLinkId?: string;
379
+ }): Promise<any>;
380
+ /**
381
+ * @param {Object} arg - Arg object.
382
+ * @param {CreateOrderUserRequest} arg.body
383
+ * @returns {Promise<CreateOrderUserResponse>} - Success response
384
+ * @summary: Create Order user
385
+ * @description: Use this API to create a order and payment on aggregator side
386
+ */
387
+ createOrderHandlerPaymentLink({ body }?: {
388
+ body: any;
389
+ }): Promise<any>;
390
+ /**
391
+ * @param {Object} arg - Arg object.
392
+ * @param {PaymentInitializationRequest} arg.body
393
+ * @returns {Promise<PaymentInitializationResponse>} - Success response
394
+ * @summary: Initialize a payment (server-to-server) for UPI and BharatQR
395
+ * @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
+ */
397
+ initialisePaymentPaymentLink({ body }?: {
398
+ body: any;
399
+ }): Promise<any>;
400
+ /**
401
+ * @param {Object} arg - Arg object.
402
+ * @param {PaymentStatusUpdateRequest} arg.body
403
+ * @returns {Promise<PaymentStatusUpdateResponse>} - Success response
404
+ * @summary: Performs continuous polling to check status of payment on the server
405
+ * @description: Use this API to perform continuous polling at intervals to check the status of payment until timeout.
406
+ */
407
+ checkAndUpdatePaymentStatusPaymentLink({ body }?: {
408
+ body: any;
409
+ }): Promise<any>;
410
+ /**
411
+ * @param {Object} arg - Arg object.
412
+ * @param {string} [arg.aggregator] -
413
+ * @returns {Promise<CustomerCreditSummaryResponse>} - Success response
414
+ * @summary: API to fetch the customer credit summary
415
+ * @description: Use this API to fetch the customer credit summary.
416
+ */
417
+ customerCreditSummary({ aggregator }?: {
418
+ aggregator?: string;
419
+ }): Promise<any>;
420
+ /**
421
+ * @param {Object} arg - Arg object.
422
+ * @param {string} [arg.source] - This is a String value that contains
423
+ * callback URL as value.
424
+ * @param {string} [arg.aggregator] - This is a String value that contains
425
+ * aggregator name as value.
426
+ * @returns {Promise<RedirectToAggregatorResponse>} - Success response
427
+ * @summary: API to get the redirect url to redirect the user to aggregator's page
428
+ * @description: Use this API to get the redirect url to redirect the user to aggregator's page
429
+ */
430
+ redirectToAggregator({ source, aggregator }?: {
431
+ source?: string;
432
+ aggregator?: string;
433
+ }): Promise<any>;
434
+ /**
435
+ * @param {Object} arg - Arg object.
436
+ * @param {string} [arg.aggregator] -
437
+ * @returns {Promise<CheckCreditResponse>} - Success response
438
+ * @summary: API to fetch the customer credit summary
439
+ * @description: Use this API to fetch the customer credit summary.
440
+ */
441
+ checkCredit({ aggregator }?: {
442
+ aggregator?: string;
443
+ }): Promise<any>;
444
+ /**
445
+ * @param {Object} arg - Arg object.
446
+ * @param {CustomerOnboardingRequest} arg.body
447
+ * @returns {Promise<CustomerOnboardingResponse>} - Success response
448
+ * @summary: API to fetch the customer credit summary
449
+ * @description: Use this API to fetch the customer credit summary.
450
+ */
451
+ customerOnboard({ body }?: {
452
+ body: any;
453
+ }): Promise<any>;
454
+ }