@gofynd/fdk-client-javascript 1.4.2-beta.7 → 1.4.3
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.
- package/README.md +1 -1
- package/package.json +5 -3
- package/sdk/application/ApplicationAPIClient.d.ts +1 -1
- package/sdk/application/ApplicationAPIClient.js +0 -1
- package/sdk/application/Cart/CartApplicationClient.d.ts +25 -25
- package/sdk/application/Cart/CartApplicationClient.js +25 -25
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +40 -40
- package/sdk/application/Catalog/CatalogApplicationClient.js +40 -40
- package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
- package/sdk/application/Common/CommonApplicationClient.js +2 -2
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +3 -3
- package/sdk/application/Communication/CommunicationApplicationClient.js +3 -3
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +16 -16
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +16 -16
- package/sdk/application/Content/ContentApplicationClient.d.ts +10 -10
- package/sdk/application/Content/ContentApplicationClient.js +10 -10
- package/sdk/application/Content/ContentApplicationModel.d.ts +18 -18
- package/sdk/application/Content/ContentApplicationModel.js +26 -26
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +2 -2
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +12 -6
- package/sdk/application/Lead/LeadApplicationClient.d.ts +7 -7
- package/sdk/application/Lead/LeadApplicationClient.js +7 -7
- package/sdk/application/Lead/LeadApplicationModel.d.ts +64 -77
- package/sdk/application/Lead/LeadApplicationModel.js +42 -52
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +9 -9
- package/sdk/application/Logistic/LogisticApplicationClient.js +9 -9
- package/sdk/application/Order/OrderApplicationClient.d.ts +12 -12
- package/sdk/application/Order/OrderApplicationClient.js +12 -12
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +47 -47
- package/sdk/application/Payment/PaymentApplicationClient.js +52 -52
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +5 -2
- package/sdk/application/Payment/PaymentApplicationModel.js +4 -2
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +5 -5
- package/sdk/application/Payment/PaymentApplicationValidator.js +3 -3
- package/sdk/application/PosCart/PosCartApplicationClient.d.ts +27 -27
- package/sdk/application/PosCart/PosCartApplicationClient.js +27 -27
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +6 -6
- package/sdk/application/Rewards/RewardsApplicationClient.js +6 -6
- package/sdk/application/Share/ShareApplicationClient.d.ts +7 -7
- package/sdk/application/Share/ShareApplicationClient.js +7 -7
- package/sdk/application/Share/ShareApplicationModel.d.ts +2 -0
- package/sdk/application/Share/ShareApplicationModel.js +2 -0
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +4 -4
- package/sdk/application/Theme/ThemeApplicationClient.js +4 -4
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +25 -32
- package/sdk/application/Theme/ThemeApplicationModel.js +30 -40
- package/sdk/application/User/UserApplicationClient.d.ts +28 -28
- package/sdk/application/User/UserApplicationClient.js +28 -28
- package/sdk/application/User/UserApplicationModel.d.ts +44 -13
- package/sdk/application/User/UserApplicationModel.js +17 -13
- package/sdk/common/AxiosHelper.d.ts +1 -1
- package/sdk/common/AxiosHelper.js +38 -17
- package/sdk/common/Clickstream.js +22 -16
- package/sdk/common/curlHelper.js +1 -3
- package/sdk/common/utils.d.ts +15 -0
- package/sdk/common/utils.js +30 -0
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +2 -2
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +2 -2
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +1 -1
- package/sdk/partner/Lead/LeadPartnerClient.js +1 -1
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +4 -4
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +4 -4
- package/sdk/partner/OAuthClient.d.ts +3 -3
- package/sdk/partner/PartnerAPIClient.d.ts +1 -1
- package/sdk/partner/PartnerAPIClient.js +0 -1
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +19 -19
- package/sdk/partner/Theme/ThemePartnerClient.js +19 -19
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +25 -32
- package/sdk/partner/Theme/ThemePartnerModel.js +30 -40
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +2 -2
- package/sdk/partner/Webhook/WebhookPartnerClient.js +2 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +4 -4
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +4 -4
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +17 -17
- package/sdk/platform/Billing/BillingPlatformClient.js +17 -17
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +49 -49
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +49 -49
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +60 -60
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +62 -62
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +87 -87
- package/sdk/platform/Catalog/CatalogPlatformClient.js +87 -87
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +65 -28
- package/sdk/platform/Catalog/CatalogPlatformModel.js +68 -36
- package/sdk/platform/Common/CommonPlatformClient.d.ts +2 -2
- package/sdk/platform/Common/CommonPlatformClient.js +2 -2
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +58 -58
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +58 -58
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +1 -1
- package/sdk/platform/Communication/CommunicationPlatformClient.js +1 -1
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +12 -0
- package/sdk/platform/Communication/CommunicationPlatformModel.js +12 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +16 -16
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +16 -16
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +2 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +2 -0
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +32 -32
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +32 -32
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +18 -18
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +57 -57
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +63 -63
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +4 -4
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +4 -4
- package/sdk/platform/Content/ContentPlatformClient.d.ts +3 -3
- package/sdk/platform/Content/ContentPlatformClient.js +9 -9
- package/sdk/platform/Content/ContentPlatformModel.d.ts +18 -18
- package/sdk/platform/Content/ContentPlatformModel.js +26 -26
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +4 -4
- package/sdk/platform/Content/ContentPlatformValidator.js +4 -4
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +11 -11
- package/sdk/platform/Discount/DiscountPlatformClient.js +11 -11
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +9 -9
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +19 -13
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +23 -14
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +12 -1
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +14 -0
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +27 -27
- package/sdk/platform/Finance/FinancePlatformClient.js +27 -27
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +6 -6
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +6 -6
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +11 -11
- package/sdk/platform/Lead/LeadPlatformClient.js +11 -11
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +62 -77
- package/sdk/platform/Lead/LeadPlatformModel.js +40 -52
- package/sdk/platform/OAuthClient.d.ts +3 -3
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +2 -2
- package/sdk/platform/Order/OrderPlatformClient.d.ts +41 -41
- package/sdk/platform/Order/OrderPlatformClient.js +41 -41
- package/sdk/platform/Order/OrderPlatformModel.d.ts +8 -2
- package/sdk/platform/Order/OrderPlatformModel.js +8 -2
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +2 -2
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +38 -38
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +38 -38
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +10 -10
- package/sdk/platform/Payment/PaymentPlatformClient.js +10 -10
- package/sdk/platform/PlatformAPIClient.d.ts +1 -1
- package/sdk/platform/PlatformAPIClient.js +0 -1
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +12 -12
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +9 -9
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +9 -9
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +15 -15
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +15 -15
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +2 -2
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +4 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +5 -5
- package/sdk/platform/Share/SharePlatformApplicationClient.js +5 -5
- package/sdk/platform/Share/SharePlatformModel.d.ts +2 -0
- package/sdk/platform/Share/SharePlatformModel.js +2 -0
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +28 -28
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +28 -28
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +3 -3
- package/sdk/platform/Theme/ThemePlatformClient.js +3 -3
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +25 -32
- package/sdk/platform/Theme/ThemePlatformModel.js +30 -40
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +16 -16
- package/sdk/platform/User/UserPlatformApplicationClient.js +16 -16
- package/sdk/platform/User/UserPlatformModel.d.ts +48 -13
- package/sdk/platform/User/UserPlatformModel.js +21 -13
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +16 -16
- package/sdk/platform/Webhook/WebhookPlatformClient.js +16 -16
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +2 -2
- package/sdk/platform/Webhook/WebhookPlatformModel.js +1 -1
- package/sdk/public/Billing/BillingPublicClient.d.ts +1 -1
- package/sdk/public/Billing/BillingPublicClient.js +4 -4
- package/sdk/public/Billing/BillingPublicValidator.d.ts +2 -2
- package/sdk/public/Billing/BillingPublicValidator.js +2 -2
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +1 -1
- package/sdk/public/Configuration/ConfigurationPublicClient.js +1 -1
- package/sdk/public/Content/ContentPublicValidator.d.ts +2 -2
- package/sdk/public/Content/ContentPublicValidator.js +3 -3
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +8 -8
- package/sdk/public/Inventory/InventoryPublicModel.js +8 -8
- package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
- package/sdk/public/Partner/PartnerPublicClient.js +1 -1
- package/sdk/public/PublicAPIClient.d.ts +1 -1
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +2 -2
- package/sdk/public/Webhook/WebhookPublicClient.js +2 -2
|
@@ -89,7 +89,7 @@ class Payment {
|
|
|
89
89
|
"/service/application/payment/v1.0/refund/verification/bank",
|
|
90
90
|
verifyOtpAndAddBeneficiaryForWallet:
|
|
91
91
|
"/service/application/payment/v1.0/refund/verification/wallet",
|
|
92
|
-
|
|
92
|
+
walletLinkInitiate:
|
|
93
93
|
"/service/application/payment/v1.0/payment/options/wallet/link",
|
|
94
94
|
};
|
|
95
95
|
this._urls = Object.entries(this._relativeUrls).reduce(
|
|
@@ -115,7 +115,7 @@ class Payment {
|
|
|
115
115
|
* @returns {Promise<PaymentApplicationModel.RefundAccountResponse>} -
|
|
116
116
|
* Success response
|
|
117
117
|
* @name addBeneficiaryDetails
|
|
118
|
-
* @summary: Add beneficiary
|
|
118
|
+
* @summary: Add beneficiary
|
|
119
119
|
* @description: Adds beneficiary details for future transactions. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/addBeneficiaryDetails/).
|
|
120
120
|
*/
|
|
121
121
|
async addBeneficiaryDetails(
|
|
@@ -198,7 +198,7 @@ class Payment {
|
|
|
198
198
|
* @returns {Promise<PaymentApplicationModel.RefundAccountResponse>} -
|
|
199
199
|
* Success response
|
|
200
200
|
* @name addRefundBankAccountUsingOTP
|
|
201
|
-
* @summary: Add refund account
|
|
201
|
+
* @summary: Add refund account
|
|
202
202
|
* @description: Adds a bank account for refunds using OTP verification. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/addRefundBankAccountUsingOTP/).
|
|
203
203
|
*/
|
|
204
204
|
async addRefundBankAccountUsingOTP(
|
|
@@ -278,7 +278,7 @@ class Payment {
|
|
|
278
278
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
279
279
|
* @returns {Promise<PaymentApplicationModel.AttachCardsResponse>} - Success response
|
|
280
280
|
* @name attachCardToCustomer
|
|
281
|
-
* @summary: Attach card to user
|
|
281
|
+
* @summary: Attach card to user
|
|
282
282
|
* @description: Links a payment card to a customer's account. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/attachCardToCustomer/).
|
|
283
283
|
*/
|
|
284
284
|
async attachCardToCustomer(
|
|
@@ -359,7 +359,7 @@ class Payment {
|
|
|
359
359
|
* @returns {Promise<PaymentApplicationModel.CancelPaymentLinkResponse>} -
|
|
360
360
|
* Success response
|
|
361
361
|
* @name cancelPaymentLink
|
|
362
|
-
* @summary: Cancel link
|
|
362
|
+
* @summary: Cancel link
|
|
363
363
|
* @description: Cancels a previously generated payment link. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/cancelPaymentLink/).
|
|
364
364
|
*/
|
|
365
365
|
async cancelPaymentLink(
|
|
@@ -437,7 +437,7 @@ class Payment {
|
|
|
437
437
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
438
438
|
* @returns {Promise<PaymentApplicationModel.CardDetailsResponse>} - Success response
|
|
439
439
|
* @name cardDetails
|
|
440
|
-
* @summary: Fetch card details
|
|
440
|
+
* @summary: Fetch card details
|
|
441
441
|
* @description: Gets the details of a specified payment card. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/cardDetails/).
|
|
442
442
|
*/
|
|
443
443
|
async cardDetails(
|
|
@@ -520,7 +520,7 @@ class Payment {
|
|
|
520
520
|
* - Success response
|
|
521
521
|
*
|
|
522
522
|
* @name checkAndUpdatePaymentStatus
|
|
523
|
-
* @summary: Update payment status
|
|
523
|
+
* @summary: Update payment status
|
|
524
524
|
* @description: Checks and updates the current status of a payment. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/checkAndUpdatePaymentStatus/).
|
|
525
525
|
*/
|
|
526
526
|
async checkAndUpdatePaymentStatus(
|
|
@@ -604,7 +604,7 @@ class Payment {
|
|
|
604
604
|
* - Success response
|
|
605
605
|
*
|
|
606
606
|
* @name checkAndUpdatePaymentStatusPaymentLink
|
|
607
|
-
* @summary: Update link status
|
|
607
|
+
* @summary: Update link status
|
|
608
608
|
* @description: Checks and updates the status of payment via a link. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/checkAndUpdatePaymentStatusPaymentLink/).
|
|
609
609
|
*/
|
|
610
610
|
async checkAndUpdatePaymentStatusPaymentLink(
|
|
@@ -684,7 +684,7 @@ class Payment {
|
|
|
684
684
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
685
685
|
* @returns {Promise<PaymentApplicationModel.CheckCreditResponse>} - Success response
|
|
686
686
|
* @name checkCredit
|
|
687
|
-
* @summary: Verify credit
|
|
687
|
+
* @summary: Verify credit
|
|
688
688
|
* @description: Checks the availability and status of customer credit. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/checkCredit/).
|
|
689
689
|
*/
|
|
690
690
|
async checkCredit(
|
|
@@ -766,7 +766,7 @@ class Payment {
|
|
|
766
766
|
* @returns {Promise<PaymentApplicationModel.CreateOrderUserResponse>} -
|
|
767
767
|
* Success response
|
|
768
768
|
* @name createOrderHandlerPaymentLink
|
|
769
|
-
* @summary: Order via link
|
|
769
|
+
* @summary: Order via link
|
|
770
770
|
* @description: Creates an order handler for payment through a link. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/createOrderHandlerPaymentLink/).
|
|
771
771
|
*/
|
|
772
772
|
async createOrderHandlerPaymentLink(
|
|
@@ -847,7 +847,7 @@ class Payment {
|
|
|
847
847
|
* @returns {Promise<PaymentApplicationModel.CreatePaymentLinkResponse>} -
|
|
848
848
|
* Success response
|
|
849
849
|
* @name createPaymentLink
|
|
850
|
-
* @summary: Create payment link
|
|
850
|
+
* @summary: Create payment link
|
|
851
851
|
* @description: Generates a new payment link for transactions. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/createPaymentLink/).
|
|
852
852
|
*/
|
|
853
853
|
async createPaymentLink(
|
|
@@ -1005,7 +1005,7 @@ class Payment {
|
|
|
1005
1005
|
* - Success response
|
|
1006
1006
|
*
|
|
1007
1007
|
* @name customerCreditSummary
|
|
1008
|
-
* @summary: Credit summary
|
|
1008
|
+
* @summary: Credit summary
|
|
1009
1009
|
* @description: Retrieves a summary of the customer's credit details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/customerCreditSummary/).
|
|
1010
1010
|
*/
|
|
1011
1011
|
async customerCreditSummary(
|
|
@@ -1087,7 +1087,7 @@ class Payment {
|
|
|
1087
1087
|
* @returns {Promise<PaymentApplicationModel.CustomerOnboardingResponse>} -
|
|
1088
1088
|
* Success response
|
|
1089
1089
|
* @name customerOnboard
|
|
1090
|
-
* @summary: Onboard customer
|
|
1090
|
+
* @summary: Onboard customer
|
|
1091
1091
|
* @description: Initiates the onboarding process for payment services. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/customerOnboard/).
|
|
1092
1092
|
*/
|
|
1093
1093
|
async customerOnboard(
|
|
@@ -1165,7 +1165,7 @@ class Payment {
|
|
|
1165
1165
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1166
1166
|
* @returns {Promise<PaymentApplicationModel.DeleteCardsResponse>} - Success response
|
|
1167
1167
|
* @name deleteUserCard
|
|
1168
|
-
* @summary: Remove user's card
|
|
1168
|
+
* @summary: Remove user's card
|
|
1169
1169
|
* @description: Deletes a payment card from the user's account. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/deleteUserCard/).
|
|
1170
1170
|
*/
|
|
1171
1171
|
async deleteUserCard(
|
|
@@ -1325,7 +1325,7 @@ class Payment {
|
|
|
1325
1325
|
* - Success response
|
|
1326
1326
|
*
|
|
1327
1327
|
* @name enableOrDisableRefundTransferMode
|
|
1328
|
-
* @summary: Toggle refund mode
|
|
1328
|
+
* @summary: Toggle refund mode
|
|
1329
1329
|
* @description: Enables or disables a particular refund transfer mode. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/enableOrDisableRefundTransferMode/).
|
|
1330
1330
|
*/
|
|
1331
1331
|
async enableOrDisableRefundTransferMode(
|
|
@@ -1407,7 +1407,7 @@ class Payment {
|
|
|
1407
1407
|
* - Success response
|
|
1408
1408
|
*
|
|
1409
1409
|
* @name getActiveCardAggregator
|
|
1410
|
-
* @summary: Active card info
|
|
1410
|
+
* @summary: Active card info
|
|
1411
1411
|
* @description: Gets the active card aggregator for the user. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/getActiveCardAggregator/).
|
|
1412
1412
|
*/
|
|
1413
1413
|
async getActiveCardAggregator(
|
|
@@ -1490,7 +1490,7 @@ class Payment {
|
|
|
1490
1490
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1491
1491
|
* @returns {Promise<PaymentApplicationModel.TransferModeResponse>} - Success response
|
|
1492
1492
|
* @name getActiveRefundTransferModes
|
|
1493
|
-
* @summary: Refund modes
|
|
1493
|
+
* @summary: Refund modes
|
|
1494
1494
|
* @description: Lists the active transfer modes for refunds. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/getActiveRefundTransferModes/).
|
|
1495
1495
|
*/
|
|
1496
1496
|
async getActiveRefundTransferModes(
|
|
@@ -1570,7 +1570,7 @@ class Payment {
|
|
|
1570
1570
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1571
1571
|
* @returns {Promise<PaymentApplicationModel.ListCardsResponse>} - Success response
|
|
1572
1572
|
* @name getActiveUserCards
|
|
1573
|
-
* @summary: List user's cards
|
|
1573
|
+
* @summary: List user's cards
|
|
1574
1574
|
* @description: Retrieves all active cards linked to a user. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/getActiveUserCards/).
|
|
1575
1575
|
*/
|
|
1576
1576
|
async getActiveUserCards(
|
|
@@ -1651,7 +1651,7 @@ class Payment {
|
|
|
1651
1651
|
* - Success response
|
|
1652
1652
|
*
|
|
1653
1653
|
* @name getAggregatorsConfig
|
|
1654
|
-
* @summary: Fetch payment aggregators
|
|
1654
|
+
* @summary: Fetch payment aggregators
|
|
1655
1655
|
* @description: Retrieves configuration details for available payment aggregators. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/getAggregatorsConfig/).
|
|
1656
1656
|
*/
|
|
1657
1657
|
async getAggregatorsConfig(
|
|
@@ -1736,7 +1736,7 @@ class Payment {
|
|
|
1736
1736
|
* @returns {Promise<PaymentApplicationModel.EpaylaterBannerResponse>} -
|
|
1737
1737
|
* Success response
|
|
1738
1738
|
* @name getEpaylaterBannerDetails
|
|
1739
|
-
* @summary: Epay banner info
|
|
1739
|
+
* @summary: Epay banner info
|
|
1740
1740
|
* @description: Gets details for displaying the Epaylater payment banner. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/getEpaylaterBannerDetails/).
|
|
1741
1741
|
*/
|
|
1742
1742
|
async getEpaylaterBannerDetails(
|
|
@@ -1819,7 +1819,7 @@ class Payment {
|
|
|
1819
1819
|
* @returns {Promise<PaymentApplicationModel.OrderBeneficiaryResponse>} -
|
|
1820
1820
|
* Success response
|
|
1821
1821
|
* @name getOrderBeneficiariesDetail
|
|
1822
|
-
* @summary: Order beneficiaries
|
|
1822
|
+
* @summary: Order beneficiaries
|
|
1823
1823
|
* @description: Retrieve the beneficiary details related to an order. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/getOrderBeneficiariesDetail/).
|
|
1824
1824
|
*/
|
|
1825
1825
|
async getOrderBeneficiariesDetail(
|
|
@@ -1901,7 +1901,7 @@ class Payment {
|
|
|
1901
1901
|
* @returns {Promise<PaymentApplicationModel.GetPaymentLinkResponse>} -
|
|
1902
1902
|
* Success response
|
|
1903
1903
|
* @name getPaymentLink
|
|
1904
|
-
* @summary: Fetch payment link
|
|
1904
|
+
* @summary: Fetch payment link
|
|
1905
1905
|
* @description: Retrieves a generated payment link. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/getPaymentLink/).
|
|
1906
1906
|
*/
|
|
1907
1907
|
async getPaymentLink(
|
|
@@ -1981,7 +1981,7 @@ class Payment {
|
|
|
1981
1981
|
* @returns {Promise<PaymentApplicationModel.PaymentModeRouteResponse>} -
|
|
1982
1982
|
* Success response
|
|
1983
1983
|
* @name getPaymentModeRoutes
|
|
1984
|
-
* @summary: Get payment modes
|
|
1984
|
+
* @summary: Get payment modes
|
|
1985
1985
|
* @description: Lists the payment mode options and their routing details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/getPaymentModeRoutes/).
|
|
1986
1986
|
*/
|
|
1987
1987
|
async getPaymentModeRoutes(
|
|
@@ -2108,7 +2108,7 @@ class Payment {
|
|
|
2108
2108
|
* @returns {Promise<PaymentApplicationModel.PaymentModeRouteResponse>} -
|
|
2109
2109
|
* Success response
|
|
2110
2110
|
* @name getPaymentModeRoutesPaymentLink
|
|
2111
|
-
* @summary: Payment link modes
|
|
2111
|
+
* @summary: Payment link modes
|
|
2112
2112
|
* @description: Lists payment modes available for a given payment link. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/getPaymentModeRoutesPaymentLink/).
|
|
2113
2113
|
*/
|
|
2114
2114
|
async getPaymentModeRoutesPaymentLink(
|
|
@@ -2190,7 +2190,7 @@ class Payment {
|
|
|
2190
2190
|
* @returns {Promise<PaymentApplicationModel.PaymentModeRouteResponse>} -
|
|
2191
2191
|
* Success response
|
|
2192
2192
|
* @name getPosPaymentModeRoutes
|
|
2193
|
-
* @summary: POS payment modes
|
|
2193
|
+
* @summary: POS payment modes
|
|
2194
2194
|
* @description: Lists payment modes available for Point-of-Sale (POS). - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/getPosPaymentModeRoutes/).
|
|
2195
2195
|
*/
|
|
2196
2196
|
async getPosPaymentModeRoutes(
|
|
@@ -2306,7 +2306,7 @@ class Payment {
|
|
|
2306
2306
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
2307
2307
|
* @returns {Promise<PaymentApplicationModel.RupifiBannerResponse>} - Success response
|
|
2308
2308
|
* @name getRupifiBannerDetails
|
|
2309
|
-
* @summary: Rupifi banner info
|
|
2309
|
+
* @summary: Rupifi banner info
|
|
2310
2310
|
* @description: Retrieve details for displaying the Rupifi payment banner. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/getRupifiBannerDetails/).
|
|
2311
2311
|
*/
|
|
2312
2312
|
async getRupifiBannerDetails(
|
|
@@ -2389,7 +2389,7 @@ class Payment {
|
|
|
2389
2389
|
* @returns {Promise<PaymentApplicationModel.OrderBeneficiaryResponse>} -
|
|
2390
2390
|
* Success response
|
|
2391
2391
|
* @name getUserBeneficiariesDetail
|
|
2392
|
-
* @summary: Beneficiary info
|
|
2392
|
+
* @summary: Beneficiary info
|
|
2393
2393
|
* @description: Retrieves details of beneficiaries linked to the user. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/getUserBeneficiariesDetail/).
|
|
2394
2394
|
*/
|
|
2395
2395
|
async getUserBeneficiariesDetail(
|
|
@@ -2472,7 +2472,7 @@ class Payment {
|
|
|
2472
2472
|
* - Success response
|
|
2473
2473
|
*
|
|
2474
2474
|
* @name initialisePayment
|
|
2475
|
-
* @summary: Start payment process
|
|
2475
|
+
* @summary: Start payment process
|
|
2476
2476
|
* @description: Initializes the payment procedure for an order. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/initialisePayment/).
|
|
2477
2477
|
*/
|
|
2478
2478
|
async initialisePayment(
|
|
@@ -2554,7 +2554,7 @@ class Payment {
|
|
|
2554
2554
|
* - Success response
|
|
2555
2555
|
*
|
|
2556
2556
|
* @name initialisePaymentPaymentLink
|
|
2557
|
-
* @summary: Initialise link payment
|
|
2557
|
+
* @summary: Initialise link payment
|
|
2558
2558
|
* @description: Initializes payment for an order via a payment link. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/initialisePaymentPaymentLink/).
|
|
2559
2559
|
*/
|
|
2560
2560
|
async initialisePaymentPaymentLink(
|
|
@@ -2714,7 +2714,7 @@ class Payment {
|
|
|
2714
2714
|
* - Success response
|
|
2715
2715
|
*
|
|
2716
2716
|
* @name outstandingOrderDetails
|
|
2717
|
-
* @summary: Outstanding orders
|
|
2717
|
+
* @summary: Outstanding orders
|
|
2718
2718
|
* @description: Lists details of orders with outstanding payments. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/outstandingOrderDetails/).
|
|
2719
2719
|
*/
|
|
2720
2720
|
async outstandingOrderDetails(
|
|
@@ -2796,7 +2796,7 @@ class Payment {
|
|
|
2796
2796
|
* @returns {Promise<PaymentApplicationModel.PaidOrderDetailsResponse>} -
|
|
2797
2797
|
* Success response
|
|
2798
2798
|
* @name paidOrderDetails
|
|
2799
|
-
* @summary: Paid orders
|
|
2799
|
+
* @summary: Paid orders
|
|
2800
2800
|
* @description: Retrieves details of orders that have been paid for. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/paidOrderDetails/).
|
|
2801
2801
|
*/
|
|
2802
2802
|
async paidOrderDetails(
|
|
@@ -2876,7 +2876,7 @@ class Payment {
|
|
|
2876
2876
|
* @returns {Promise<PaymentApplicationModel.PollingPaymentLinkResponse>} -
|
|
2877
2877
|
* Success response
|
|
2878
2878
|
* @name pollingPaymentLink
|
|
2879
|
-
* @summary: Poll payment link
|
|
2879
|
+
* @summary: Poll payment link
|
|
2880
2880
|
* @description: Polls the status of a payment link for updates. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/pollingPaymentLink/).
|
|
2881
2881
|
*/
|
|
2882
2882
|
async pollingPaymentLink(
|
|
@@ -2957,7 +2957,7 @@ class Payment {
|
|
|
2957
2957
|
* - Success response
|
|
2958
2958
|
*
|
|
2959
2959
|
* @name redirectToAggregator
|
|
2960
|
-
* @summary: Redirect for payment
|
|
2960
|
+
* @summary: Redirect for payment
|
|
2961
2961
|
* @description: Redirects the user to the payment aggregator's interface. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/redirectToAggregator/).
|
|
2962
2962
|
*/
|
|
2963
2963
|
async redirectToAggregator(
|
|
@@ -3039,7 +3039,7 @@ class Payment {
|
|
|
3039
3039
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
3040
3040
|
* @returns {Promise<PaymentApplicationModel.renderHTMLResponse>} - Success response
|
|
3041
3041
|
* @name renderHTML
|
|
3042
|
-
* @summary: Render HTML
|
|
3042
|
+
* @summary: Render HTML
|
|
3043
3043
|
* @description: Generates HTML for payment-related interfaces. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/renderHTML/).
|
|
3044
3044
|
*/
|
|
3045
3045
|
async renderHTML(
|
|
@@ -3119,7 +3119,7 @@ class Payment {
|
|
|
3119
3119
|
* - Success response
|
|
3120
3120
|
*
|
|
3121
3121
|
* @name resendOrCancelPayment
|
|
3122
|
-
* @summary: Manage payment
|
|
3122
|
+
* @summary: Manage payment
|
|
3123
3123
|
* @description: Resends or cancels a pending payment transaction. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/resendOrCancelPayment/).
|
|
3124
3124
|
*/
|
|
3125
3125
|
async resendOrCancelPayment(
|
|
@@ -3200,7 +3200,7 @@ class Payment {
|
|
|
3200
3200
|
* @returns {Promise<PaymentApplicationModel.ResendPaymentLinkResponse>} -
|
|
3201
3201
|
* Success response
|
|
3202
3202
|
* @name resendPaymentLink
|
|
3203
|
-
* @summary: Resend link
|
|
3203
|
+
* @summary: Resend link
|
|
3204
3204
|
* @description: Resends an existing payment link to the user. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/resendPaymentLink/).
|
|
3205
3205
|
*/
|
|
3206
3206
|
async resendPaymentLink(
|
|
@@ -3281,7 +3281,7 @@ class Payment {
|
|
|
3281
3281
|
* - Success response
|
|
3282
3282
|
*
|
|
3283
3283
|
* @name updateDefaultBeneficiary
|
|
3284
|
-
* @summary: Set default beneficiary
|
|
3284
|
+
* @summary: Set default beneficiary
|
|
3285
3285
|
* @description: Updates the default beneficiary for the user. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/updateDefaultBeneficiary/).
|
|
3286
3286
|
*/
|
|
3287
3287
|
async updateDefaultBeneficiary(
|
|
@@ -3361,7 +3361,7 @@ class Payment {
|
|
|
3361
3361
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
3362
3362
|
* @returns {Promise<PaymentApplicationModel.ValidateVPAResponse>} - Success response
|
|
3363
3363
|
* @name validateVPA
|
|
3364
|
-
* @summary: Validate VPA
|
|
3364
|
+
* @summary: Validate VPA
|
|
3365
3365
|
* @description: Checks the validity of a Virtual Payment Address (VPA). - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/validateVPA/).
|
|
3366
3366
|
*/
|
|
3367
3367
|
async validateVPA(
|
|
@@ -3440,7 +3440,7 @@ class Payment {
|
|
|
3440
3440
|
* @returns {Promise<PaymentApplicationModel.ChargeCustomerResponse>} -
|
|
3441
3441
|
* Success response
|
|
3442
3442
|
* @name verifyAndChargePayment
|
|
3443
|
-
* @summary: Verify and charge
|
|
3443
|
+
* @summary: Verify and charge
|
|
3444
3444
|
* @description: Validates and processes a payment transaction. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/verifyAndChargePayment/).
|
|
3445
3445
|
*/
|
|
3446
3446
|
async verifyAndChargePayment(
|
|
@@ -3522,7 +3522,7 @@ class Payment {
|
|
|
3522
3522
|
* @returns {Promise<PaymentApplicationModel.ValidateCustomerResponse>} -
|
|
3523
3523
|
* Success response
|
|
3524
3524
|
* @name verifyCustomerForPayment
|
|
3525
|
-
* @summary: Verify payment customer
|
|
3525
|
+
* @summary: Verify payment customer
|
|
3526
3526
|
* @description: Checks the user's validity for proceeding with payment. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/verifyCustomerForPayment/).
|
|
3527
3527
|
*/
|
|
3528
3528
|
async verifyCustomerForPayment(
|
|
@@ -3602,7 +3602,7 @@ class Payment {
|
|
|
3602
3602
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
3603
3603
|
* @returns {Promise<PaymentApplicationModel.IfscCodeResponse>} - Success response
|
|
3604
3604
|
* @name verifyIfscCode
|
|
3605
|
-
* @summary: Verify IFSC
|
|
3605
|
+
* @summary: Verify IFSC
|
|
3606
3606
|
* @description: Checks the validity of an IFSC code for bank transactions. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/verifyIfscCode/).
|
|
3607
3607
|
*/
|
|
3608
3608
|
async verifyIfscCode(
|
|
@@ -3685,7 +3685,7 @@ class Payment {
|
|
|
3685
3685
|
* - Success response
|
|
3686
3686
|
*
|
|
3687
3687
|
* @name verifyOtpAndAddBeneficiaryForBank
|
|
3688
|
-
* @summary: Verify OTP for bank
|
|
3688
|
+
* @summary: Verify OTP for bank
|
|
3689
3689
|
* @description: Confirms OTP and adds a bank beneficiary. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/verifyOtpAndAddBeneficiaryForBank/).
|
|
3690
3690
|
*/
|
|
3691
3691
|
async verifyOtpAndAddBeneficiaryForBank(
|
|
@@ -3767,7 +3767,7 @@ class Payment {
|
|
|
3767
3767
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
3768
3768
|
* @returns {Promise<PaymentApplicationModel.WalletOtpResponse>} - Success response
|
|
3769
3769
|
* @name verifyOtpAndAddBeneficiaryForWallet
|
|
3770
|
-
* @summary: Verify OTP for wallet
|
|
3770
|
+
* @summary: Verify OTP for wallet
|
|
3771
3771
|
* @description: Confirms OTP and adds a wallet beneficiary. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/verifyOtpAndAddBeneficiaryForWallet/).
|
|
3772
3772
|
*/
|
|
3773
3773
|
async verifyOtpAndAddBeneficiaryForWallet(
|
|
@@ -3842,19 +3842,19 @@ class Payment {
|
|
|
3842
3842
|
}
|
|
3843
3843
|
|
|
3844
3844
|
/**
|
|
3845
|
-
* @param {PaymentApplicationValidator.
|
|
3845
|
+
* @param {PaymentApplicationValidator.WalletLinkInitiateParam} arg - Arg object.
|
|
3846
3846
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3847
3847
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
3848
3848
|
* @returns {Promise<PaymentApplicationModel.WalletResponseSchema>} - Success response
|
|
3849
|
-
* @name
|
|
3849
|
+
* @name walletLinkInitiate
|
|
3850
3850
|
* @summary: Initiate linking of wallet
|
|
3851
|
-
* @description: It will initiate linking of wallet for the aggregator. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/
|
|
3851
|
+
* @description: It will initiate linking of wallet for the aggregator. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/walletLinkInitiate/).
|
|
3852
3852
|
*/
|
|
3853
|
-
async
|
|
3853
|
+
async walletLinkInitiate(
|
|
3854
3854
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
3855
3855
|
{ responseHeaders } = { responseHeaders: false }
|
|
3856
3856
|
) {
|
|
3857
|
-
const { error } = PaymentApplicationValidator.
|
|
3857
|
+
const { error } = PaymentApplicationValidator.walletLinkInitiate().validate(
|
|
3858
3858
|
{ body },
|
|
3859
3859
|
{ abortEarly: false, allowUnknown: true }
|
|
3860
3860
|
);
|
|
@@ -3865,14 +3865,14 @@ class Payment {
|
|
|
3865
3865
|
// Showing warrnings if extra unknown parameters are found
|
|
3866
3866
|
const {
|
|
3867
3867
|
error: warrning,
|
|
3868
|
-
} = PaymentApplicationValidator.
|
|
3868
|
+
} = PaymentApplicationValidator.walletLinkInitiate().validate(
|
|
3869
3869
|
{ body },
|
|
3870
3870
|
{ abortEarly: false, allowUnknown: false }
|
|
3871
3871
|
);
|
|
3872
3872
|
if (warrning) {
|
|
3873
3873
|
Logger({
|
|
3874
3874
|
level: "WARN",
|
|
3875
|
-
message: `Parameter Validation warrnings for application > Payment >
|
|
3875
|
+
message: `Parameter Validation warrnings for application > Payment > walletLinkInitiate \n ${warrning}`,
|
|
3876
3876
|
});
|
|
3877
3877
|
}
|
|
3878
3878
|
|
|
@@ -3884,7 +3884,7 @@ class Payment {
|
|
|
3884
3884
|
this._conf,
|
|
3885
3885
|
"post",
|
|
3886
3886
|
constructUrl({
|
|
3887
|
-
url: this._urls["
|
|
3887
|
+
url: this._urls["walletLinkInitiate"],
|
|
3888
3888
|
params: {},
|
|
3889
3889
|
}),
|
|
3890
3890
|
query_params,
|
|
@@ -3911,7 +3911,7 @@ class Payment {
|
|
|
3911
3911
|
} else {
|
|
3912
3912
|
Logger({
|
|
3913
3913
|
level: "WARN",
|
|
3914
|
-
message: `Response Validation Warnings for application > Payment >
|
|
3914
|
+
message: `Response Validation Warnings for application > Payment > walletLinkInitiate \n ${res_error}`,
|
|
3915
3915
|
});
|
|
3916
3916
|
}
|
|
3917
3917
|
}
|
|
@@ -293,7 +293,7 @@ export = PaymentApplicationModel;
|
|
|
293
293
|
*/
|
|
294
294
|
/**
|
|
295
295
|
* @typedef PaymentOptionAndFlow
|
|
296
|
-
* @property {RootPaymentMode} payment_option
|
|
296
|
+
* @property {RootPaymentMode[]} payment_option - Payment options
|
|
297
297
|
* @property {PaymentFlow} payment_flows
|
|
298
298
|
* @property {PaymentDefaultSelection} [payment_default_selection]
|
|
299
299
|
*/
|
|
@@ -1897,7 +1897,10 @@ type PaymentFlow = {
|
|
|
1897
1897
|
/** @returns {PaymentOptionAndFlow} */
|
|
1898
1898
|
declare function PaymentOptionAndFlow(): PaymentOptionAndFlow;
|
|
1899
1899
|
type PaymentOptionAndFlow = {
|
|
1900
|
-
|
|
1900
|
+
/**
|
|
1901
|
+
* - Payment options
|
|
1902
|
+
*/
|
|
1903
|
+
payment_option: RootPaymentMode[];
|
|
1901
1904
|
payment_flows: PaymentFlow;
|
|
1902
1905
|
payment_default_selection?: PaymentDefaultSelection;
|
|
1903
1906
|
};
|
|
@@ -322,7 +322,7 @@ const Joi = require("joi");
|
|
|
322
322
|
|
|
323
323
|
/**
|
|
324
324
|
* @typedef PaymentOptionAndFlow
|
|
325
|
-
* @property {RootPaymentMode} payment_option
|
|
325
|
+
* @property {RootPaymentMode[]} payment_option - Payment options
|
|
326
326
|
* @property {PaymentFlow} payment_flows
|
|
327
327
|
* @property {PaymentDefaultSelection} [payment_default_selection]
|
|
328
328
|
*/
|
|
@@ -1551,7 +1551,9 @@ class PaymentApplicationModel {
|
|
|
1551
1551
|
/** @returns {PaymentOptionAndFlow} */
|
|
1552
1552
|
static PaymentOptionAndFlow() {
|
|
1553
1553
|
return Joi.object({
|
|
1554
|
-
payment_option:
|
|
1554
|
+
payment_option: Joi.array()
|
|
1555
|
+
.items(PaymentApplicationModel.RootPaymentMode())
|
|
1556
|
+
.required(),
|
|
1555
1557
|
payment_flows: PaymentApplicationModel.PaymentFlow().required(),
|
|
1556
1558
|
payment_default_selection: PaymentApplicationModel.PaymentDefaultSelection(),
|
|
1557
1559
|
});
|
|
@@ -202,7 +202,7 @@ export = PaymentApplicationValidator;
|
|
|
202
202
|
* @property {PaymentApplicationModel.WalletOtpRequest} body
|
|
203
203
|
*/
|
|
204
204
|
/**
|
|
205
|
-
* @typedef
|
|
205
|
+
* @typedef WalletLinkInitiateParam
|
|
206
206
|
* @property {PaymentApplicationModel.WalletLinkRequestSchema} body
|
|
207
207
|
*/
|
|
208
208
|
declare class PaymentApplicationValidator {
|
|
@@ -296,11 +296,11 @@ declare class PaymentApplicationValidator {
|
|
|
296
296
|
static verifyOtpAndAddBeneficiaryForBank(): VerifyOtpAndAddBeneficiaryForBankParam;
|
|
297
297
|
/** @returns {VerifyOtpAndAddBeneficiaryForWalletParam} */
|
|
298
298
|
static verifyOtpAndAddBeneficiaryForWallet(): VerifyOtpAndAddBeneficiaryForWalletParam;
|
|
299
|
-
/** @returns {
|
|
300
|
-
static
|
|
299
|
+
/** @returns {WalletLinkInitiateParam} */
|
|
300
|
+
static walletLinkInitiate(): WalletLinkInitiateParam;
|
|
301
301
|
}
|
|
302
302
|
declare namespace PaymentApplicationValidator {
|
|
303
|
-
export { AddBeneficiaryDetailsParam, AddRefundBankAccountUsingOTPParam, AttachCardToCustomerParam, CancelPaymentLinkParam, CardDetailsParam, CheckAndUpdatePaymentStatusParam, CheckAndUpdatePaymentStatusPaymentLinkParam, CheckCreditParam, CreateOrderHandlerPaymentLinkParam, CreatePaymentLinkParam, CreatePaymentOrderParam, CustomerCreditSummaryParam, CustomerOnboardParam, DeleteUserCardParam, DelinkWalletParam, EnableOrDisableRefundTransferModeParam, GetActiveCardAggregatorParam, GetActiveRefundTransferModesParam, GetActiveUserCardsParam, GetAggregatorsConfigParam, GetEpaylaterBannerDetailsParam, GetOrderBeneficiariesDetailParam, GetPaymentLinkParam, GetPaymentModeRoutesParam, GetPaymentModeRoutesPaymentLinkParam, GetPosPaymentModeRoutesParam, GetRupifiBannerDetailsParam, GetUserBeneficiariesDetailParam, InitialisePaymentParam, InitialisePaymentPaymentLinkParam, LinkWalletParam, OutstandingOrderDetailsParam, PaidOrderDetailsParam, PollingPaymentLinkParam, RedirectToAggregatorParam, RenderHTMLParam, ResendOrCancelPaymentParam, ResendPaymentLinkParam, UpdateDefaultBeneficiaryParam, ValidateVPAParam, VerifyAndChargePaymentParam, VerifyCustomerForPaymentParam, VerifyIfscCodeParam, VerifyOtpAndAddBeneficiaryForBankParam, VerifyOtpAndAddBeneficiaryForWalletParam,
|
|
303
|
+
export { AddBeneficiaryDetailsParam, AddRefundBankAccountUsingOTPParam, AttachCardToCustomerParam, CancelPaymentLinkParam, CardDetailsParam, CheckAndUpdatePaymentStatusParam, CheckAndUpdatePaymentStatusPaymentLinkParam, CheckCreditParam, CreateOrderHandlerPaymentLinkParam, CreatePaymentLinkParam, CreatePaymentOrderParam, CustomerCreditSummaryParam, CustomerOnboardParam, DeleteUserCardParam, DelinkWalletParam, EnableOrDisableRefundTransferModeParam, GetActiveCardAggregatorParam, GetActiveRefundTransferModesParam, GetActiveUserCardsParam, GetAggregatorsConfigParam, GetEpaylaterBannerDetailsParam, GetOrderBeneficiariesDetailParam, GetPaymentLinkParam, GetPaymentModeRoutesParam, GetPaymentModeRoutesPaymentLinkParam, GetPosPaymentModeRoutesParam, GetRupifiBannerDetailsParam, GetUserBeneficiariesDetailParam, InitialisePaymentParam, InitialisePaymentPaymentLinkParam, LinkWalletParam, OutstandingOrderDetailsParam, PaidOrderDetailsParam, PollingPaymentLinkParam, RedirectToAggregatorParam, RenderHTMLParam, ResendOrCancelPaymentParam, ResendPaymentLinkParam, UpdateDefaultBeneficiaryParam, ValidateVPAParam, VerifyAndChargePaymentParam, VerifyCustomerForPaymentParam, VerifyIfscCodeParam, VerifyOtpAndAddBeneficiaryForBankParam, VerifyOtpAndAddBeneficiaryForWalletParam, WalletLinkInitiateParam };
|
|
304
304
|
}
|
|
305
305
|
type AddBeneficiaryDetailsParam = {
|
|
306
306
|
body: PaymentApplicationModel.AddBeneficiaryDetailsRequest;
|
|
@@ -534,7 +534,7 @@ type VerifyOtpAndAddBeneficiaryForBankParam = {
|
|
|
534
534
|
type VerifyOtpAndAddBeneficiaryForWalletParam = {
|
|
535
535
|
body: PaymentApplicationModel.WalletOtpRequest;
|
|
536
536
|
};
|
|
537
|
-
type
|
|
537
|
+
type WalletLinkInitiateParam = {
|
|
538
538
|
body: PaymentApplicationModel.WalletLinkRequestSchema;
|
|
539
539
|
};
|
|
540
540
|
type GetActiveRefundTransferModesParam = any;
|
|
@@ -250,7 +250,7 @@ const PaymentApplicationModel = require("./PaymentApplicationModel");
|
|
|
250
250
|
*/
|
|
251
251
|
|
|
252
252
|
/**
|
|
253
|
-
* @typedef
|
|
253
|
+
* @typedef WalletLinkInitiateParam
|
|
254
254
|
* @property {PaymentApplicationModel.WalletLinkRequestSchema} body
|
|
255
255
|
*/
|
|
256
256
|
|
|
@@ -583,8 +583,8 @@ class PaymentApplicationValidator {
|
|
|
583
583
|
}).required();
|
|
584
584
|
}
|
|
585
585
|
|
|
586
|
-
/** @returns {
|
|
587
|
-
static
|
|
586
|
+
/** @returns {WalletLinkInitiateParam} */
|
|
587
|
+
static walletLinkInitiate() {
|
|
588
588
|
return Joi.object({
|
|
589
589
|
body: PaymentApplicationModel.WalletLinkRequestSchema().required(),
|
|
590
590
|
}).required();
|