@gofynd/fdk-client-javascript 1.4.2-beta.1 → 1.4.2-beta.10
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 +3 -2
- package/sdk/application/ApplicationClient.js +20 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +1 -1
- package/sdk/application/Cart/CartApplicationClient.js +3 -5
- package/sdk/application/Cart/CartApplicationModel.d.ts +1634 -1742
- package/sdk/application/Cart/CartApplicationModel.js +1388 -1464
- package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -4
- package/sdk/application/Cart/CartApplicationValidator.js +0 -4
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +6 -3
- package/sdk/application/Catalog/CatalogApplicationClient.js +20 -7
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +1917 -1917
- package/sdk/application/Catalog/CatalogApplicationModel.js +1613 -1613
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +14 -0
- package/sdk/application/Catalog/CatalogApplicationValidator.js +6 -0
- package/sdk/application/Common/CommonApplicationModel.d.ts +235 -235
- package/sdk/application/Common/CommonApplicationModel.js +172 -172
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +72 -72
- package/sdk/application/Communication/CommunicationApplicationModel.js +64 -64
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1492 -1626
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +1038 -1180
- package/sdk/application/Content/ContentApplicationClient.d.ts +0 -36
- package/sdk/application/Content/ContentApplicationClient.js +0 -246
- package/sdk/application/Content/ContentApplicationModel.d.ts +546 -753
- package/sdk/application/Content/ContentApplicationModel.js +565 -817
- package/sdk/application/Content/ContentApplicationValidator.d.ts +1 -40
- package/sdk/application/Content/ContentApplicationValidator.js +0 -41
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +79 -79
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +84 -84
- package/sdk/application/Lead/LeadApplicationModel.d.ts +417 -417
- package/sdk/application/Lead/LeadApplicationModel.js +301 -301
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +0 -67
- package/sdk/application/Logistic/LogisticApplicationClient.js +0 -547
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +257 -712
- package/sdk/application/Logistic/LogisticApplicationModel.js +267 -755
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +1 -211
- package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -131
- package/sdk/application/Order/OrderApplicationClient.d.ts +3 -3
- package/sdk/application/Order/OrderApplicationClient.js +8 -32
- package/sdk/application/Order/OrderApplicationModel.d.ts +845 -853
- package/sdk/application/Order/OrderApplicationModel.js +816 -824
- package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -20
- package/sdk/application/Order/OrderApplicationValidator.js +0 -8
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +2 -46
- package/sdk/application/Payment/PaymentApplicationClient.js +10 -341
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +1892 -2199
- package/sdk/application/Payment/PaymentApplicationModel.js +1235 -1506
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +14 -59
- package/sdk/application/Payment/PaymentApplicationValidator.js +10 -64
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1396 -1429
- package/sdk/application/PosCart/PosCartApplicationModel.js +1233 -1257
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +214 -214
- package/sdk/application/Rewards/RewardsApplicationModel.js +211 -211
- package/sdk/application/Share/ShareApplicationModel.d.ts +114 -114
- package/sdk/application/Share/ShareApplicationModel.js +121 -121
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +1 -1
- package/sdk/application/Theme/ThemeApplicationClient.js +3 -7
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +783 -969
- package/sdk/application/Theme/ThemeApplicationModel.js +571 -867
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -10
- package/sdk/application/Theme/ThemeApplicationValidator.js +0 -4
- package/sdk/application/User/UserApplicationClient.d.ts +0 -33
- package/sdk/application/User/UserApplicationClient.js +0 -239
- package/sdk/application/User/UserApplicationModel.d.ts +753 -768
- package/sdk/application/User/UserApplicationModel.js +731 -755
- package/sdk/application/User/UserApplicationValidator.d.ts +1 -34
- package/sdk/application/User/UserApplicationValidator.js +0 -36
- package/sdk/common/Clickstream.d.ts +1 -0
- package/sdk/common/Clickstream.js +254 -0
- package/sdk/common/Utility.js +1 -4
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +72 -60
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +70 -58
- package/sdk/partner/PartnerClient.d.ts +0 -6
- package/sdk/partner/PartnerClient.js +0 -9
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +0 -10
- package/sdk/partner/Theme/ThemePartnerClient.js +0 -80
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +1178 -1153
- package/sdk/partner/Theme/ThemePartnerModel.js +830 -974
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +0 -1
- package/sdk/partner/Theme/ThemePartnerValidator.js +0 -9
- package/sdk/partner/index.d.ts +0 -3
- package/sdk/partner/index.js +0 -6
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +2 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +123 -123
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +109 -109
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +1 -11
- package/sdk/platform/Billing/BillingPlatformClient.js +3 -110
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +734 -800
- package/sdk/platform/Billing/BillingPlatformModel.js +732 -810
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +4 -43
- package/sdk/platform/Billing/BillingPlatformValidator.js +2 -29
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +11 -1
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +81 -7
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +13 -5
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +12 -4
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3223 -3328
- package/sdk/platform/Cart/CartPlatformModel.js +2875 -2946
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +11 -15
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +21 -52
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +0 -27
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +0 -11
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +15 -27
- package/sdk/platform/Catalog/CatalogPlatformClient.js +93 -189
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +617 -920
- package/sdk/platform/Catalog/CatalogPlatformModel.js +584 -919
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +27 -41
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +19 -31
- package/sdk/platform/Common/CommonPlatformModel.d.ts +255 -255
- package/sdk/platform/Common/CommonPlatformModel.js +187 -187
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +37 -139
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +52 -737
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +3 -133
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +1 -113
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1079 -1228
- package/sdk/platform/Communication/CommunicationPlatformModel.js +1090 -1262
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +2 -8
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +4 -32
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +629 -658
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +641 -675
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +0 -14
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +0 -6
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +8 -8
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +4 -4
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +2992 -3231
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2092 -2303
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +2 -2
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +2 -2
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -391
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1074 -3656
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -351
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +0 -410
- package/sdk/platform/Content/ContentPlatformModel.d.ts +972 -2071
- package/sdk/platform/Content/ContentPlatformModel.js +1039 -2355
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformClient.js +2 -2
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +174 -259
- package/sdk/platform/Discount/DiscountPlatformModel.js +163 -257
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +6 -16
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +8 -117
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +4 -55
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +2 -39
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +821 -892
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +833 -901
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -33
- package/sdk/platform/Finance/FinancePlatformClient.js +0 -240
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +910 -1056
- package/sdk/platform/Finance/FinancePlatformModel.js +884 -1070
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +1 -38
- package/sdk/platform/Finance/FinancePlatformValidator.js +0 -38
- package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +942 -942
- package/sdk/platform/Inventory/InventoryPlatformModel.js +1003 -1003
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +28 -38
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +56 -137
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +29 -41
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +21 -33
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +601 -610
- package/sdk/platform/Lead/LeadPlatformModel.js +457 -471
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +1 -11
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +1 -93
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -28
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +0 -18
- package/sdk/platform/Order/OrderPlatformClient.d.ts +22 -143
- package/sdk/platform/Order/OrderPlatformClient.js +160 -1190
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4451 -5275
- package/sdk/platform/Order/OrderPlatformModel.js +4039 -4994
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +21 -257
- package/sdk/platform/Order/OrderPlatformValidator.js +15 -216
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +22 -22
- package/sdk/platform/Partner/PartnerPlatformModel.js +22 -22
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +13 -119
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +40 -750
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +7 -143
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +6 -133
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +1 -1
- package/sdk/platform/Payment/PaymentPlatformClient.js +1 -1
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2067 -2929
- package/sdk/platform/Payment/PaymentPlatformModel.js +1427 -2090
- package/sdk/platform/PlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/PlatformApplicationClient.js +4 -4
- package/sdk/platform/PlatformClient.d.ts +2 -4
- package/sdk/platform/PlatformClient.js +4 -8
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +204 -204
- package/sdk/platform/Rewards/RewardsPlatformModel.js +199 -199
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +66 -142
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +147 -645
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +63 -131
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +47 -126
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +105 -217
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +349 -1138
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +989 -1588
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +977 -1695
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +133 -382
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +102 -266
- package/sdk/platform/Share/SharePlatformModel.d.ts +147 -147
- package/sdk/platform/Share/SharePlatformModel.js +139 -139
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +1 -11
- package/sdk/platform/Theme/ThemePlatformClient.js +3 -87
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +765 -1133
- package/sdk/platform/Theme/ThemePlatformModel.js +561 -1009
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +4 -28
- package/sdk/platform/Theme/ThemePlatformValidator.js +2 -21
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +1 -116
- package/sdk/platform/User/UserPlatformApplicationClient.js +86 -932
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +7 -224
- package/sdk/platform/User/UserPlatformApplicationValidator.js +5 -173
- package/sdk/platform/User/UserPlatformModel.d.ts +428 -765
- package/sdk/platform/User/UserPlatformModel.js +428 -679
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +37 -45
- package/sdk/platform/Webhook/WebhookPlatformClient.js +57 -61
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +403 -448
- package/sdk/platform/Webhook/WebhookPlatformModel.js +309 -369
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -7
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +6 -6
- package/sdk/platform/index.d.ts +1 -1
- package/sdk/platform/index.js +2 -2
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +237 -237
- package/sdk/public/Configuration/ConfigurationPublicModel.js +174 -174
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +237 -237
- package/sdk/public/Inventory/InventoryPublicModel.js +257 -257
- package/sdk/public/Partner/PartnerPublicModel.d.ts +104 -104
- package/sdk/public/Partner/PartnerPublicModel.js +113 -113
- package/sdk/public/PublicClient.d.ts +0 -4
- package/sdk/public/PublicClient.js +0 -8
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +0 -33
- package/sdk/public/Webhook/WebhookPublicClient.js +0 -242
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +15 -161
- package/sdk/public/Webhook/WebhookPublicModel.js +13 -189
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +1 -23
- package/sdk/public/Webhook/WebhookPublicValidator.js +0 -31
- package/sdk/public/index.d.ts +0 -2
- package/sdk/public/index.js +0 -4
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +0 -125
- package/sdk/partner/Lead/LeadPartnerClient.js +0 -785
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +0 -1127
- package/sdk/partner/Lead/LeadPartnerModel.js +0 -896
- package/sdk/partner/Lead/LeadPartnerValidator.d.ts +0 -12
- package/sdk/partner/Lead/LeadPartnerValidator.js +0 -67
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +0 -155
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +0 -1195
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +0 -372
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +0 -442
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -16
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +0 -123
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +0 -99
- package/sdk/partner/Webhook/WebhookPartnerClient.js +0 -753
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +0 -566
- package/sdk/partner/Webhook/WebhookPartnerModel.js +0 -583
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -12
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +0 -74
- package/sdk/platform/Content/ContentPlatformClient.d.ts +0 -277
- package/sdk/platform/Content/ContentPlatformClient.js +0 -2011
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +0 -247
- package/sdk/platform/Content/ContentPlatformValidator.js +0 -319
- package/sdk/public/Billing/BillingPublicClient.d.ts +0 -23
- package/sdk/public/Billing/BillingPublicClient.js +0 -116
- package/sdk/public/Billing/BillingPublicModel.d.ts +0 -92
- package/sdk/public/Billing/BillingPublicModel.js +0 -96
- package/sdk/public/Billing/BillingPublicValidator.d.ts +0 -18
- package/sdk/public/Billing/BillingPublicValidator.js +0 -19
- package/sdk/public/Content/ContentPublicClient.d.ts +0 -22
- package/sdk/public/Content/ContentPublicClient.js +0 -114
- package/sdk/public/Content/ContentPublicModel.d.ts +0 -53
- package/sdk/public/Content/ContentPublicModel.js +0 -60
- package/sdk/public/Content/ContentPublicValidator.d.ts +0 -18
- package/sdk/public/Content/ContentPublicValidator.js +0 -19
|
@@ -1,1508 +1,1308 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
* @typedef ActiveCardPaymentGatewayResponse
|
|
5
|
-
* @property {CardPaymentGateway} cards
|
|
6
|
-
* @property {string} message - Human readable message.
|
|
7
|
-
* @property {boolean} success - Response is successful or not.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* @typedef AddBeneficiaryDetailsOTPRequest
|
|
12
|
-
* @property {BankDetailsForOTP} details
|
|
13
|
-
* @property {string} order_id
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* @typedef AddBeneficiaryDetailsRequest
|
|
18
|
-
* @property {boolean} delights - True if beneficiary to be added by delights or
|
|
19
|
-
* False if by User
|
|
20
|
-
* @property {BeneficiaryModeDetails} details
|
|
21
|
-
* @property {string} order_id - Merchant Order Id
|
|
22
|
-
* @property {string} [otp]
|
|
23
|
-
* @property {string} [request_id]
|
|
24
|
-
* @property {string} shipment_id - Shipment Id of the respective Merchant Order Id
|
|
25
|
-
* @property {string} transfer_mode - Transfer Mode of the Beneficiary to be added
|
|
26
|
-
*/
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* @typedef AddBeneficiaryViaOtpVerificationRequest
|
|
30
|
-
* @property {string} hash_key - Hash key of the beneficiary Id
|
|
31
|
-
* @property {string} otp - Otp sent to the given Mobile No
|
|
32
|
-
* @property {string} request_id - Request Id sent in
|
|
33
|
-
*/
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* @typedef AddBeneficiaryViaOtpVerificationResponse
|
|
37
|
-
* @property {string} message - Aggregator Response of beneficicary
|
|
38
|
-
* @property {boolean} [success] - Response is successful or not
|
|
39
|
-
*/
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* @typedef AdvanceObject
|
|
43
|
-
* @property {string[]} [all_prepayment_type] - All available types of prepayment
|
|
44
|
-
* @property {boolean} [allow_custom_advance_amount] - Is custom advance amount allowed?
|
|
45
|
-
* @property {number} [amount] - Amount for Payment Breakdown
|
|
46
|
-
* @property {string} [cancellation_type] - Type of cancellation
|
|
47
|
-
* @property {string} [description] - The description for Advance Payment (user
|
|
48
|
-
* configured)
|
|
49
|
-
* @property {string} [display_name] - The display name for Advance payment
|
|
50
|
-
* @property {boolean} [is_active] - Is Advance Payment active
|
|
51
|
-
* @property {string} [prepayment_type] - Type of prepayment value
|
|
52
|
-
* @property {number} [prepayment_value] - Value for prepayment in advance payment
|
|
53
|
-
* @property {number} [refund_time_limit] - Time limit for processing refund
|
|
54
|
-
* @property {string} [time_unit] - Time unit for refunds
|
|
55
|
-
*/
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* @typedef AdvancePaymentObject
|
|
59
|
-
* @property {AdvanceObject} [advance]
|
|
60
|
-
* @property {string} [display_name] - Display name for Advance Payment Mode
|
|
61
|
-
* @property {number} [display_priority] - Display Priority for Payment Option
|
|
62
|
-
* @property {PaymentModeList[]} [list] - Payment mode
|
|
63
|
-
* @property {string} [name] - Name of Advance Payment Mode
|
|
64
|
-
* @property {number} [payment_mode_id] - Payment Mode ID for Advance Payment Option
|
|
65
|
-
* @property {SplitObject} [split]
|
|
66
|
-
*/
|
|
67
|
-
|
|
68
3
|
/**
|
|
69
4
|
* @typedef AggregatorConfigDetail
|
|
5
|
+
* @property {boolean} [sdk] - SDK
|
|
6
|
+
* @property {string} secret - Masked payment gateway api secret
|
|
70
7
|
* @property {string} [api] - Payment gateway api endpoint
|
|
8
|
+
* @property {string} [pin] - Masked pin
|
|
71
9
|
* @property {string} config_type - Fynd or self payment gateway
|
|
72
|
-
* @property {string} key - Payment gateway api key
|
|
73
|
-
* @property {string} [merchant_id] - Unique merchant id
|
|
74
10
|
* @property {string} [merchant_key] - Unique merchant key
|
|
75
|
-
* @property {string} [pin] - Masked pin
|
|
76
|
-
* @property {boolean} [sdk] - SDK
|
|
77
|
-
* @property {string} secret - Masked payment gateway api secret
|
|
78
|
-
* @property {string} [user_id] - Registered User id
|
|
79
11
|
* @property {string} [verify_api] - Payment gateway verify payment api endpoint
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
* @typedef AggregatorRoute
|
|
84
|
-
* @property {string} [api_link] - Api_link
|
|
85
|
-
* @property {Object} [data] - Data
|
|
86
|
-
* @property {string} [payment_flow] - Payment_flow
|
|
87
|
-
* @property {string} [payment_flow_data] - Payment_flow_data
|
|
12
|
+
* @property {string} key - Payment gateway api key
|
|
13
|
+
* @property {string} [user_id] - Registered User id
|
|
14
|
+
* @property {string} [merchant_id] - Unique merchant id
|
|
88
15
|
*/
|
|
89
16
|
|
|
90
17
|
/**
|
|
91
18
|
* @typedef AggregatorsConfigDetailResponse
|
|
92
|
-
* @property {
|
|
93
|
-
* @property {
|
|
19
|
+
* @property {boolean} success
|
|
20
|
+
* @property {AggregatorConfigDetail} [razorpay]
|
|
94
21
|
* @property {AggregatorConfigDetail} [juspay]
|
|
95
|
-
* @property {AggregatorConfigDetail} [
|
|
22
|
+
* @property {AggregatorConfigDetail} [simpl]
|
|
96
23
|
* @property {AggregatorConfigDetail} [payumoney]
|
|
97
|
-
* @property {AggregatorConfigDetail} [razorpay]
|
|
98
24
|
* @property {AggregatorConfigDetail} [rupifi]
|
|
99
|
-
* @property {AggregatorConfigDetail} [
|
|
25
|
+
* @property {AggregatorConfigDetail} [mswipe]
|
|
100
26
|
* @property {AggregatorConfigDetail} [stripe]
|
|
101
|
-
* @property {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* @typedef AttachCardRequest
|
|
106
|
-
* @property {string} card_id - Card token of payment gateway.
|
|
107
|
-
* @property {string} [name_on_card]
|
|
108
|
-
* @property {string} [nickname]
|
|
109
|
-
* @property {boolean} [refresh] - Refresh cache flag.
|
|
110
|
-
*/
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* @typedef AttachCardsResponse
|
|
114
|
-
* @property {Object} data - List of cards of customer.
|
|
115
|
-
* @property {string} [message] - Human readable message.
|
|
116
|
-
* @property {boolean} success - Response is successful or not.
|
|
27
|
+
* @property {AggregatorConfigDetail} [ccavenue]
|
|
28
|
+
* @property {string} env - Environment i.e Live or Test
|
|
117
29
|
*/
|
|
118
30
|
|
|
119
31
|
/**
|
|
120
|
-
* @typedef
|
|
121
|
-
* @property {string}
|
|
122
|
-
* @property {string}
|
|
123
|
-
* @property {number} [value] - Payment amount
|
|
32
|
+
* @typedef ErrorCodeAndDescription
|
|
33
|
+
* @property {string} code - Error descrption code.
|
|
34
|
+
* @property {string} description - Error human understandable description.
|
|
124
35
|
*/
|
|
125
36
|
|
|
126
37
|
/**
|
|
127
|
-
* @typedef
|
|
128
|
-
* @property {
|
|
129
|
-
* @property {
|
|
130
|
-
* @property {string} bank_name
|
|
131
|
-
* @property {string} branch_name
|
|
132
|
-
* @property {string} ifsc_code
|
|
38
|
+
* @typedef HttpErrorCodeAndResponse
|
|
39
|
+
* @property {ErrorCodeAndDescription} [error]
|
|
40
|
+
* @property {boolean} success - Response is successful or not
|
|
133
41
|
*/
|
|
134
42
|
|
|
135
43
|
/**
|
|
136
|
-
* @typedef
|
|
137
|
-
* @property {string}
|
|
138
|
-
* @property {
|
|
139
|
-
* @property {string}
|
|
140
|
-
* @property {string}
|
|
141
|
-
* @property {string} branch_name - Branch Name of the Account
|
|
142
|
-
* @property {string} [comment] - Remarks added by The user
|
|
143
|
-
* @property {string} email - Email of the Account Holder
|
|
144
|
-
* @property {string} ifsc_code - Ifsc Code of the Account
|
|
145
|
-
* @property {string} mobile - Moblie Number of the User
|
|
146
|
-
* @property {string} [vpa]
|
|
147
|
-
* @property {string} [wallet]
|
|
44
|
+
* @typedef AttachCardRequest
|
|
45
|
+
* @property {string} [nickname]
|
|
46
|
+
* @property {boolean} [refresh] - Refresh cache flag.
|
|
47
|
+
* @property {string} card_id - Card token of payment gateway.
|
|
48
|
+
* @property {string} [name_on_card]
|
|
148
49
|
*/
|
|
149
50
|
|
|
150
51
|
/**
|
|
151
|
-
* @typedef
|
|
152
|
-
* @property {
|
|
153
|
-
* @property {
|
|
154
|
-
* @property {string} [
|
|
155
|
-
* @property {string} [entity_type] - Busineess Entity Type
|
|
156
|
-
* @property {string} [fda] - Driver License
|
|
157
|
-
* @property {string} [fssai] - FDA License Number
|
|
158
|
-
* @property {string} [gstin] - GSTIN Number
|
|
159
|
-
* @property {string} [name] - Business Name
|
|
160
|
-
* @property {string} [pan] - Pan Number
|
|
161
|
-
* @property {Object} [shop_and_establishment] - Shop Establishment
|
|
162
|
-
* @property {string} [vintage] - Vintage
|
|
52
|
+
* @typedef AttachCardsResponse
|
|
53
|
+
* @property {Object} data - List of cards of customer.
|
|
54
|
+
* @property {boolean} success - Response is successful or not.
|
|
55
|
+
* @property {string} [message] - Human readable message.
|
|
163
56
|
*/
|
|
164
57
|
|
|
165
58
|
/**
|
|
166
|
-
* @typedef
|
|
167
|
-
* @property {string}
|
|
59
|
+
* @typedef CardPaymentGateway
|
|
60
|
+
* @property {string} [api] - Payment gateway CARD api endpoint
|
|
61
|
+
* @property {string} aggregator - Payment gateway name.
|
|
62
|
+
* @property {string} [customer_id] - Payment gateway customer id.
|
|
168
63
|
*/
|
|
169
64
|
|
|
170
65
|
/**
|
|
171
|
-
* @typedef
|
|
172
|
-
* @property {
|
|
173
|
-
* @property {
|
|
174
|
-
* @property {
|
|
66
|
+
* @typedef ActiveCardPaymentGatewayResponse
|
|
67
|
+
* @property {CardPaymentGateway} cards - Card's payment gateway with customer id.
|
|
68
|
+
* @property {boolean} success - Response is successful or not.
|
|
69
|
+
* @property {string} message - Human readable message.
|
|
175
70
|
*/
|
|
176
71
|
|
|
177
72
|
/**
|
|
178
73
|
* @typedef Card
|
|
179
|
-
* @property {string} aggregator_name - Aggregator_name
|
|
180
|
-
* @property {string} [card_brand] - Card_brand
|
|
181
|
-
* @property {string} [card_brand_image] - Card_brand_image
|
|
182
|
-
* @property {string} [card_fingerprint] - Card_fingerprint
|
|
183
|
-
* @property {string} [card_id] - Card_id
|
|
184
|
-
* @property {string} [card_isin] - Card_isin
|
|
185
|
-
* @property {string} [card_issuer] - Card_issuer
|
|
186
|
-
* @property {string} [card_name] - Card_name
|
|
187
74
|
* @property {string} [card_number] - Card_number
|
|
188
|
-
* @property {string} [
|
|
189
|
-
* @property {string} [card_token] - Card_token
|
|
75
|
+
* @property {string} [card_name] - Card_name
|
|
190
76
|
* @property {string} [card_type] - Card_type
|
|
77
|
+
* @property {string} [card_brand_image] - Card_brand_image
|
|
78
|
+
* @property {string} [card_reference] - Card_reference
|
|
79
|
+
* @property {string} [card_issuer] - Card_issuer
|
|
80
|
+
* @property {string} [card_brand] - Card_brand
|
|
81
|
+
* @property {boolean} [expired] - Expired
|
|
191
82
|
* @property {boolean} [compliant_with_tokenisation_guidelines] - If card is
|
|
192
83
|
* tokenised or not
|
|
193
|
-
* @property {
|
|
84
|
+
* @property {string} [card_isin] - Card_isin
|
|
194
85
|
* @property {number} [exp_year] - Exp_year
|
|
195
|
-
* @property {boolean} [expired] - Expired
|
|
196
86
|
* @property {string} [nickname] - Nickname
|
|
87
|
+
* @property {string} aggregator_name - Aggregator_name
|
|
88
|
+
* @property {string} [card_fingerprint] - Card_fingerprint
|
|
89
|
+
* @property {string} [card_token] - Card_token
|
|
90
|
+
* @property {number} [exp_month] - Exp_month
|
|
91
|
+
* @property {string} [card_id] - Card_id
|
|
197
92
|
*/
|
|
198
93
|
|
|
199
94
|
/**
|
|
200
|
-
* @typedef
|
|
201
|
-
* @property {
|
|
202
|
-
* @property {
|
|
203
|
-
* @property {string}
|
|
204
|
-
* @property {string} [card_exp_month] - Card Expire Month
|
|
205
|
-
* @property {string} [card_exp_year] - Card Expire Year
|
|
206
|
-
* @property {string} card_object - Card bin or Card refrence
|
|
207
|
-
* @property {string} card_sub_type - Card Sub type
|
|
208
|
-
* @property {string} [card_token] - Card Token
|
|
209
|
-
* @property {string} country - Country Name
|
|
210
|
-
* @property {string} extended_card_type - Extended Card Type
|
|
211
|
-
* @property {string} id - Id
|
|
212
|
-
* @property {boolean} is_domestic_card - Is card domestic or international
|
|
213
|
-
* @property {string} [name_on_card] - Name on Card
|
|
214
|
-
* @property {boolean} status - Status
|
|
215
|
-
* @property {string} type - Card Type Credit/Debit
|
|
216
|
-
* @property {string} [user] - Customer/User ID
|
|
95
|
+
* @typedef ListCardsResponse
|
|
96
|
+
* @property {Card[]} [data] - List of cards of customer.
|
|
97
|
+
* @property {boolean} success - Response is successful or not.
|
|
98
|
+
* @property {string} message - Human readable message.
|
|
217
99
|
*/
|
|
218
100
|
|
|
219
101
|
/**
|
|
220
|
-
* @typedef
|
|
221
|
-
* @property {
|
|
102
|
+
* @typedef DeletehCardRequest
|
|
103
|
+
* @property {string} card_id - Card token of payment gateway.
|
|
104
|
+
*/
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* @typedef DeleteCardsResponse
|
|
222
108
|
* @property {boolean} success - Response is successful or not.
|
|
109
|
+
* @property {string} [message] - Human readable message.
|
|
223
110
|
*/
|
|
224
111
|
|
|
225
112
|
/**
|
|
226
|
-
* @typedef
|
|
227
|
-
* @property {string} aggregator - Payment gateway name.
|
|
228
|
-
* @property {
|
|
229
|
-
* @property {string}
|
|
113
|
+
* @typedef ValidateCustomerRequest
|
|
114
|
+
* @property {string} aggregator - Payment gateway name in camel case i.e Simpl, Rupifi
|
|
115
|
+
* @property {number} transaction_amount_in_paise - Payable amount in paise
|
|
116
|
+
* @property {string} phone_number - User mobile number without country code.
|
|
117
|
+
* @property {Object} [billing_address] - Extra meta fields.
|
|
118
|
+
* @property {Object[]} [order_items] - Extra meta fields.
|
|
119
|
+
* @property {string} [payload] - Hashed payload string.
|
|
120
|
+
* @property {Object} [merchant_params] - Extra meta fields.
|
|
121
|
+
* @property {Object} [delivery_address] - Extra meta fields.
|
|
122
|
+
*/
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* @typedef ValidateCustomerResponse
|
|
126
|
+
* @property {Object} data - Payment gateway response data
|
|
127
|
+
* @property {boolean} success - Response is successful or not
|
|
128
|
+
* @property {string} message - Error or success message.
|
|
230
129
|
*/
|
|
231
130
|
|
|
232
131
|
/**
|
|
233
132
|
* @typedef ChargeCustomerRequest
|
|
133
|
+
* @property {boolean} [verified] - Already Verified flag from payment gateway i.e Mswipe
|
|
234
134
|
* @property {string} aggregator - Payment gateway name i.e Simpl, Mswipe
|
|
235
|
-
* @property {number} amount - Chargable amount of order.
|
|
236
135
|
* @property {string} order_id - Unique order id.
|
|
237
136
|
* @property {string} [transaction_token] - Transaction token of payment gateway.
|
|
238
|
-
* @property {
|
|
137
|
+
* @property {number} amount - Chargable amount of order.
|
|
239
138
|
*/
|
|
240
139
|
|
|
241
140
|
/**
|
|
242
141
|
* @typedef ChargeCustomerResponse
|
|
243
|
-
* @property {string}
|
|
142
|
+
* @property {string} status - Status of charged payment.
|
|
244
143
|
* @property {string} [cart_id] - Cart id of customer
|
|
245
|
-
* @property {
|
|
144
|
+
* @property {boolean} success - Response is successful or not.
|
|
145
|
+
* @property {string} aggregator - Payment gateway name i.e Simpl, Mswipe
|
|
246
146
|
* @property {string} message - Human readable message.
|
|
247
147
|
* @property {string} order_id - Unique order id.
|
|
248
|
-
* @property {string}
|
|
249
|
-
* @property {boolean} success - Response is successful or not.
|
|
148
|
+
* @property {string} [delivery_address_id] - Delivery adddress id of customer
|
|
250
149
|
*/
|
|
251
150
|
|
|
252
151
|
/**
|
|
253
|
-
* @typedef
|
|
254
|
-
* @property {
|
|
255
|
-
* @property {
|
|
152
|
+
* @typedef PaymentInitializationRequest
|
|
153
|
+
* @property {string} [razorpay_payment_id] - Payment gateway payment id
|
|
154
|
+
* @property {string} method - Payment method
|
|
155
|
+
* @property {string} [device_id] - EDC machine Unique Identifier
|
|
156
|
+
* @property {string} aggregator - Payment gateway name
|
|
157
|
+
* @property {string} customer_id - Payment gateway customer id.
|
|
158
|
+
* @property {string} contact - Customer valid mobile number
|
|
159
|
+
* @property {string} merchant_order_id - Unique fynd order id
|
|
160
|
+
* @property {string} [vpa] - Customer vpa address
|
|
161
|
+
* @property {string} order_id - Payment gateway order id
|
|
162
|
+
* @property {string} currency - Currency code.
|
|
163
|
+
* @property {number} [timeout] - Payment polling timeout if not recieved response
|
|
164
|
+
* @property {number} amount - Payable amount.
|
|
165
|
+
* @property {string} email - Customer valid email
|
|
256
166
|
*/
|
|
257
167
|
|
|
258
168
|
/**
|
|
259
|
-
* @typedef
|
|
260
|
-
* @property {string} [
|
|
261
|
-
* @property {
|
|
262
|
-
* @property {string} [
|
|
263
|
-
* @property {string}
|
|
264
|
-
* @property {
|
|
265
|
-
* @property {string} [
|
|
266
|
-
* @property {string} [
|
|
267
|
-
* @property {string} [
|
|
268
|
-
* @property {string}
|
|
269
|
-
* @property {string}
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
* @
|
|
274
|
-
* @property {
|
|
275
|
-
* @property {
|
|
276
|
-
* @property {string}
|
|
169
|
+
* @typedef PaymentInitializationResponse
|
|
170
|
+
* @property {string} [status] - Status of payment.
|
|
171
|
+
* @property {string} [razorpay_payment_id] - Payment id.
|
|
172
|
+
* @property {string} [aggregator_order_id] - Payment order id
|
|
173
|
+
* @property {string} method - Payment method
|
|
174
|
+
* @property {boolean} success - Response is successful or not.
|
|
175
|
+
* @property {string} [upi_poll_url] - UPI poll url.
|
|
176
|
+
* @property {string} [virtual_id] - Payment virtual address.
|
|
177
|
+
* @property {string} [device_id] - EDC machine Unique Identifier
|
|
178
|
+
* @property {string} polling_url - Polling url.
|
|
179
|
+
* @property {string} aggregator - Payment gateway name
|
|
180
|
+
* @property {string} merchant_order_id - Order id
|
|
181
|
+
* @property {string} [customer_id] - Payment gateway customer id.
|
|
182
|
+
* @property {string} [vpa] - Customer vpa address
|
|
183
|
+
* @property {string} [currency] - Currency code.
|
|
184
|
+
* @property {number} [timeout] - Timeout.
|
|
185
|
+
* @property {number} [amount] - Payable amount.
|
|
186
|
+
* @property {string} [bqr_image] - Bharath qr image url.
|
|
277
187
|
*/
|
|
278
188
|
|
|
279
189
|
/**
|
|
280
|
-
* @typedef
|
|
281
|
-
* @property {string}
|
|
282
|
-
* @property {string}
|
|
283
|
-
* @property {
|
|
284
|
-
* @property {string}
|
|
285
|
-
* @property {
|
|
286
|
-
* @property {string}
|
|
190
|
+
* @typedef PaymentStatusUpdateRequest
|
|
191
|
+
* @property {string} status - Status of payment.
|
|
192
|
+
* @property {string} merchant_transaction_id - Unique fynd transaction id
|
|
193
|
+
* @property {string} method - Payment method
|
|
194
|
+
* @property {string} [device_id] - EDC machine Unique Identifier
|
|
195
|
+
* @property {string} aggregator - Payment gateway name
|
|
196
|
+
* @property {string} customer_id - Payment gateway customer id.
|
|
197
|
+
* @property {string} contact - Customer valid mobile number
|
|
198
|
+
* @property {string} merchant_order_id - Unique fynd order id
|
|
199
|
+
* @property {string} [vpa] - Customer vpa address
|
|
200
|
+
* @property {string} order_id - Payment gateway order id
|
|
201
|
+
* @property {string} currency - Currency code.
|
|
202
|
+
* @property {number} amount - Payable amount.
|
|
203
|
+
* @property {string} email - Customer valid email
|
|
287
204
|
*/
|
|
288
205
|
|
|
289
206
|
/**
|
|
290
|
-
* @typedef
|
|
291
|
-
* @property {string}
|
|
292
|
-
* @property {
|
|
293
|
-
* @property {
|
|
294
|
-
* @property {string} [
|
|
295
|
-
* @property {string}
|
|
296
|
-
* @property {number} status_code - HTTP status code
|
|
297
|
-
* @property {boolean} success - Successful or failure
|
|
207
|
+
* @typedef PaymentStatusUpdateResponse
|
|
208
|
+
* @property {string} status - Payment status
|
|
209
|
+
* @property {boolean} [success] - Response is successful or not
|
|
210
|
+
* @property {boolean} retry - Response is successful or not.
|
|
211
|
+
* @property {string} [redirect_url] - Redirect url
|
|
212
|
+
* @property {string} aggregator_name - Payment gateway name
|
|
298
213
|
*/
|
|
299
214
|
|
|
300
215
|
/**
|
|
301
|
-
* @typedef
|
|
302
|
-
* @property {string}
|
|
303
|
-
* @property {string} [
|
|
304
|
-
* @property {string} cart_id
|
|
305
|
-
* @property {string} checkout_mode
|
|
216
|
+
* @typedef IntentAppErrorList
|
|
217
|
+
* @property {string} [code] - Code
|
|
218
|
+
* @property {string} [package_name] - Package_name
|
|
306
219
|
*/
|
|
307
220
|
|
|
308
221
|
/**
|
|
309
|
-
* @typedef
|
|
310
|
-
* @property {
|
|
311
|
-
* @property {string}
|
|
312
|
-
* @property {string} email - Email to which the payment link is to be sent
|
|
313
|
-
* @property {string} external_order_id - Merchant order id
|
|
314
|
-
* @property {CreatePaymentLinkMeta} meta
|
|
315
|
-
* @property {string} mobile_number - Mobile number to which the payment link is
|
|
316
|
-
* to be sent
|
|
222
|
+
* @typedef PaymentModeLogo
|
|
223
|
+
* @property {string} large - Large
|
|
224
|
+
* @property {string} small - Smalll
|
|
317
225
|
*/
|
|
318
226
|
|
|
319
227
|
/**
|
|
320
|
-
* @typedef
|
|
321
|
-
* @property {string}
|
|
322
|
-
* @property {string} [
|
|
323
|
-
* @property {
|
|
324
|
-
* @property {
|
|
325
|
-
* @property {number} status_code - HTTP status code
|
|
326
|
-
* @property {boolean} success - Successful or failure
|
|
228
|
+
* @typedef IntentApp
|
|
229
|
+
* @property {string} [code] - Code
|
|
230
|
+
* @property {string} [package_name] - Package_name
|
|
231
|
+
* @property {Object} [logos] - Logos
|
|
232
|
+
* @property {string} [display_name] - Display_name
|
|
327
233
|
*/
|
|
328
234
|
|
|
329
235
|
/**
|
|
330
|
-
* @typedef
|
|
331
|
-
* @property {
|
|
332
|
-
* @property {string}
|
|
333
|
-
* @property {
|
|
236
|
+
* @typedef PaymentModeList
|
|
237
|
+
* @property {string} [card_number] - Card_number
|
|
238
|
+
* @property {string} [merchant_code] - Merchant code
|
|
239
|
+
* @property {string} [card_reference] - Card_reference
|
|
240
|
+
* @property {string} [card_issuer] - Card_issuer
|
|
241
|
+
* @property {boolean} [compliant_with_tokenisation_guidelines] - If card is
|
|
242
|
+
* tokenised or not
|
|
243
|
+
* @property {string} [code] - Code
|
|
244
|
+
* @property {number} [cod_limit] - Cod limit
|
|
245
|
+
* @property {boolean} [intent_flow] - Intent_flow
|
|
246
|
+
* @property {string} [fynd_vpa] - Fynd_vpa
|
|
247
|
+
* @property {IntentAppErrorList[]} [intent_app_error_dict_list] -
|
|
248
|
+
* Intent_app_error_dict_list
|
|
249
|
+
* @property {string} aggregator_name - Aggregator_name
|
|
250
|
+
* @property {string} [card_fingerprint] - Card_fingerprint
|
|
251
|
+
* @property {string[]} [intent_app_error_list] - Intent_app_error_list
|
|
252
|
+
* @property {IntentApp[]} [intent_app] - Intent_app
|
|
253
|
+
* @property {boolean} [expired] - Expired
|
|
254
|
+
* @property {number} [retry_count] - Retry_count
|
|
255
|
+
* @property {number} [exp_year] - Exp_year
|
|
256
|
+
* @property {number} [exp_month] - Exp_month
|
|
257
|
+
* @property {string} [card_id] - Card_id
|
|
258
|
+
* @property {number} [remaining_limit] - Remaining limit
|
|
259
|
+
* @property {number} [display_priority] - Dispaly Priority
|
|
260
|
+
* @property {string} [card_brand] - Card_brand
|
|
261
|
+
* @property {number} [cod_limit_per_order] - Cod limit per order
|
|
262
|
+
* @property {Object} [logo_url] - Logo
|
|
263
|
+
* @property {string} [nickname] - Nickname
|
|
264
|
+
* @property {string} [card_name] - Card_name
|
|
265
|
+
* @property {string} [card_type] - Card_type
|
|
266
|
+
* @property {string} [card_brand_image] - Card_brand_image
|
|
267
|
+
* @property {string} [display_name] - Display name
|
|
268
|
+
* @property {string} [card_isin] - Card_isin
|
|
269
|
+
* @property {number} [timeout] - Timeout
|
|
270
|
+
* @property {string} [card_token] - Card_token
|
|
271
|
+
* @property {string} [name] - Name
|
|
334
272
|
*/
|
|
335
273
|
|
|
336
274
|
/**
|
|
337
|
-
* @typedef
|
|
338
|
-
* @property {
|
|
339
|
-
*
|
|
340
|
-
* @property {
|
|
341
|
-
* @property {
|
|
342
|
-
* @property {string}
|
|
343
|
-
* @property {
|
|
344
|
-
* @property {
|
|
345
|
-
* @property {
|
|
346
|
-
* @property {
|
|
347
|
-
* @property {
|
|
348
|
-
* @property {string} [repayment_url] - Url for repayment
|
|
349
|
-
* @property {string} [soa_url] - Statement of accounts. Show payment history.
|
|
350
|
-
* @property {string} [status] - Customer Credit status
|
|
351
|
-
* @property {string} [status_message] - Message to customer
|
|
352
|
-
* @property {BalanceDetails} [total_due_amount]
|
|
275
|
+
* @typedef RootPaymentMode
|
|
276
|
+
* @property {boolean} [is_pay_by_card_pl] - This flag will be true in case of
|
|
277
|
+
* Payment link payment through card
|
|
278
|
+
* @property {boolean} [add_card_enabled] - Annonymous card flag
|
|
279
|
+
* @property {number} display_priority - Dispaly Priority
|
|
280
|
+
* @property {string} display_name - Payment mode display name
|
|
281
|
+
* @property {PaymentModeList[]} [list] - Payment mode
|
|
282
|
+
* @property {boolean} [save_card] - Card save or not
|
|
283
|
+
* @property {string} [aggregator_name] - Dispaly Priority
|
|
284
|
+
* @property {string} name - Payment mode name
|
|
285
|
+
* @property {boolean} [anonymous_enable] - Annonymous card flag
|
|
353
286
|
*/
|
|
354
287
|
|
|
355
288
|
/**
|
|
356
|
-
* @typedef
|
|
357
|
-
* @property {
|
|
358
|
-
* @property {
|
|
289
|
+
* @typedef AggregatorRoute
|
|
290
|
+
* @property {Object} [data] - Data
|
|
291
|
+
* @property {string} [payment_flow_data] - Payment_flow_data
|
|
292
|
+
* @property {string} [payment_flow] - Payment_flow
|
|
293
|
+
* @property {string} [api_link] - Api_link
|
|
359
294
|
*/
|
|
360
295
|
|
|
361
296
|
/**
|
|
362
|
-
* @typedef
|
|
363
|
-
* @property {
|
|
364
|
-
* @property {
|
|
365
|
-
* @property {
|
|
366
|
-
* @property {
|
|
367
|
-
* @property {
|
|
368
|
-
* @property {
|
|
369
|
-
* @property {
|
|
297
|
+
* @typedef PaymentFlow
|
|
298
|
+
* @property {Object} [bqr_razorpay] - BQR_Razorpay
|
|
299
|
+
* @property {Object} [fynd] - Fynd
|
|
300
|
+
* @property {Object} [epaylater] - Epaylater
|
|
301
|
+
* @property {Object} [razorpay] - Razorpay
|
|
302
|
+
* @property {Object} [juspay] - Juspay
|
|
303
|
+
* @property {Object} [ajiodhan] - Ajiodhan
|
|
304
|
+
* @property {Object} [simpl] - Simpl
|
|
305
|
+
* @property {Object} [rupifi] - Rupifi
|
|
306
|
+
* @property {Object} [mswipe] - Mswipe
|
|
307
|
+
* @property {Object} [stripe] - Stripe
|
|
308
|
+
* @property {Object} [ccavenue] - Ccavenue
|
|
309
|
+
* @property {Object} [payubiz] - Payubiz
|
|
310
|
+
* @property {Object} [jiopay] - Jiopay
|
|
311
|
+
* @property {Object} [upi_razorpay] - UPI_Razorpay
|
|
370
312
|
*/
|
|
371
313
|
|
|
372
314
|
/**
|
|
373
|
-
* @typedef
|
|
374
|
-
* @property {
|
|
375
|
-
* @property {
|
|
315
|
+
* @typedef PaymentOptionAndFlow
|
|
316
|
+
* @property {RootPaymentMode[]} payment_option - Payment options
|
|
317
|
+
* @property {PaymentFlow} payment_flows - Payment_flows
|
|
376
318
|
*/
|
|
377
319
|
|
|
378
320
|
/**
|
|
379
|
-
* @typedef
|
|
380
|
-
* @property {
|
|
381
|
-
* @property {boolean} success - Response is successful or not
|
|
321
|
+
* @typedef PaymentModeRouteResponse
|
|
322
|
+
* @property {PaymentOptionAndFlow} payment_options - Payment_options
|
|
323
|
+
* @property {boolean} success - Response is successful or not
|
|
382
324
|
*/
|
|
383
325
|
|
|
384
326
|
/**
|
|
385
|
-
* @typedef
|
|
386
|
-
* @property {string}
|
|
327
|
+
* @typedef RupifiBannerData
|
|
328
|
+
* @property {string} [status] - Rupifi KYC status
|
|
329
|
+
* @property {string} [kyc_url] - Rupifi KYC banner url.
|
|
387
330
|
*/
|
|
388
331
|
|
|
389
332
|
/**
|
|
390
|
-
* @typedef
|
|
391
|
-
* @property {
|
|
392
|
-
* @property {
|
|
393
|
-
* @property {string} [device_type] - Device Type(E.g. Mobile)
|
|
394
|
-
* @property {string} [identification_number] - IP
|
|
395
|
-
* @property {string} [identifier_type] - Static value = ip
|
|
396
|
-
* @property {string} [os] - OS Name
|
|
397
|
-
* @property {string} [os_version] - OS Version
|
|
333
|
+
* @typedef RupifiBannerResponse
|
|
334
|
+
* @property {RupifiBannerData} data - Rupifi KYC banner details.
|
|
335
|
+
* @property {boolean} success - Successful or not.
|
|
398
336
|
*/
|
|
399
337
|
|
|
400
338
|
/**
|
|
401
339
|
* @typedef EpaylaterBannerData
|
|
402
|
-
* @property {boolean} display - Need to display banner or not
|
|
403
|
-
* @property {string} [message] - EPayLater message
|
|
404
340
|
* @property {string} [status] - Epaylater KYC status
|
|
341
|
+
* @property {string} [message] - EPayLater message
|
|
342
|
+
* @property {boolean} display - Need to display banner or not
|
|
405
343
|
*/
|
|
406
344
|
|
|
407
345
|
/**
|
|
408
346
|
* @typedef EpaylaterBannerResponse
|
|
409
|
-
* @property {EpaylaterBannerData} data
|
|
347
|
+
* @property {EpaylaterBannerData} data - Epaylater KYC banner details.
|
|
410
348
|
* @property {boolean} success - Successful or not.
|
|
411
349
|
*/
|
|
412
350
|
|
|
413
351
|
/**
|
|
414
|
-
* @typedef
|
|
415
|
-
* @property {string}
|
|
416
|
-
* @property {string}
|
|
352
|
+
* @typedef ResendOrCancelPaymentRequest
|
|
353
|
+
* @property {string} order_id - Unique order id
|
|
354
|
+
* @property {string} [device_id] - EDC machine Unique Identifier
|
|
355
|
+
* @property {string} request_type - Either resend or cancel
|
|
417
356
|
*/
|
|
418
357
|
|
|
419
358
|
/**
|
|
420
|
-
* @typedef
|
|
421
|
-
* @property {
|
|
422
|
-
* @property {string}
|
|
423
|
-
* @property {boolean} success - Response is successful or not
|
|
359
|
+
* @typedef LinkStatus
|
|
360
|
+
* @property {boolean} status - Link action status
|
|
361
|
+
* @property {string} message - Message
|
|
424
362
|
*/
|
|
425
363
|
|
|
426
364
|
/**
|
|
427
|
-
* @typedef
|
|
428
|
-
* @property {
|
|
429
|
-
* @property {boolean}
|
|
430
|
-
* @property {boolean} [expired] - Payment link expired or not
|
|
431
|
-
* @property {boolean} [invalid_id] - Payment link id is valid or not
|
|
432
|
-
* @property {string} [merchant_name] - Name of merchant that created payment link
|
|
433
|
-
* @property {string} [merchant_order_id] - Order id
|
|
434
|
-
* @property {string} [msg] - Message
|
|
435
|
-
* @property {string} [payment_transaction_id] - Payment transaction id
|
|
365
|
+
* @typedef ResendOrCancelPaymentResponse
|
|
366
|
+
* @property {LinkStatus} data - Data about link action status.
|
|
367
|
+
* @property {boolean} success - Response is successful or not.
|
|
436
368
|
*/
|
|
437
369
|
|
|
438
370
|
/**
|
|
439
|
-
* @typedef
|
|
440
|
-
* @property {
|
|
441
|
-
* @property {string}
|
|
442
|
-
* @property {number} status_code - HTTP status code
|
|
443
|
-
* @property {boolean} success - Successful or failure
|
|
371
|
+
* @typedef renderHTMLRequest
|
|
372
|
+
* @property {string} [returntype] - Return Type of API
|
|
373
|
+
* @property {string} base64_html - Base64 encoded html string
|
|
444
374
|
*/
|
|
445
375
|
|
|
446
376
|
/**
|
|
447
|
-
* @typedef
|
|
448
|
-
* @property {
|
|
449
|
-
* @property {string} [external_order_id] - Merchant order id
|
|
450
|
-
* @property {string} [merchant_name] - Merchant name
|
|
451
|
-
* @property {string} message - Message
|
|
452
|
-
* @property {string} [payment_link_current_status] - Status of payment link
|
|
453
|
-
* @property {string} [payment_link_url] - Url of payment link
|
|
454
|
-
* @property {number} [polling_timeout] - Polling request timeout
|
|
455
|
-
* @property {number} status_code - HTTP status code
|
|
456
|
-
* @property {boolean} success - Successful or failure
|
|
377
|
+
* @typedef renderHTMLResponse
|
|
378
|
+
* @property {string} html - HTML string
|
|
457
379
|
*/
|
|
458
380
|
|
|
459
381
|
/**
|
|
460
|
-
* @typedef
|
|
461
|
-
* @property {
|
|
462
|
-
* @property {boolean} success - Response is successful or not
|
|
382
|
+
* @typedef ValidateVPARequest
|
|
383
|
+
* @property {string} upi_vpa - UPI ID
|
|
463
384
|
*/
|
|
464
385
|
|
|
465
386
|
/**
|
|
466
|
-
* @typedef
|
|
467
|
-
* @property {string}
|
|
468
|
-
* @property {string}
|
|
469
|
-
* @property {boolean}
|
|
387
|
+
* @typedef ValidateUPI
|
|
388
|
+
* @property {string} status - VALID or INVALID
|
|
389
|
+
* @property {string} customer_name - Customer Bank
|
|
390
|
+
* @property {boolean} is_valid - Boolean is true or false.
|
|
391
|
+
* @property {string} upi_vpa - UPI ID
|
|
470
392
|
*/
|
|
471
393
|
|
|
472
394
|
/**
|
|
473
|
-
* @typedef
|
|
474
|
-
* @property {
|
|
475
|
-
* @property {
|
|
476
|
-
* @property {PaymentModeLogo} [logos]
|
|
477
|
-
* @property {string} [package_name] - Package_name
|
|
395
|
+
* @typedef ValidateVPAResponse
|
|
396
|
+
* @property {ValidateUPI} data - Data about UPI ID validate.
|
|
397
|
+
* @property {boolean} success - Response is successful or not.
|
|
478
398
|
*/
|
|
479
399
|
|
|
480
400
|
/**
|
|
481
|
-
* @typedef
|
|
482
|
-
* @property {
|
|
483
|
-
* @property {string}
|
|
401
|
+
* @typedef CardDetails
|
|
402
|
+
* @property {boolean} status - Status
|
|
403
|
+
* @property {string} country - Country Name
|
|
404
|
+
* @property {string} bank_code - Bank Code
|
|
405
|
+
* @property {string} id - Id
|
|
406
|
+
* @property {string} [card_exp_year] - Card Expire Year
|
|
407
|
+
* @property {string} card_brand - Card brand like VISA/RUPAY
|
|
408
|
+
* @property {string} type - Card Type Credit/Debit
|
|
409
|
+
* @property {string} card_sub_type - Card Sub type
|
|
410
|
+
* @property {boolean} is_domestic_card - Is card domestic or international
|
|
411
|
+
* @property {string} [name_on_card] - Name on Card
|
|
412
|
+
* @property {string} [card_exp_month] - Card Expire Month
|
|
413
|
+
* @property {string} extended_card_type - Extended Card Type
|
|
414
|
+
* @property {string} card_object - Card bin or Card refrence
|
|
415
|
+
* @property {string} [card_token] - Card Token
|
|
416
|
+
* @property {string} [user] - Customer/User ID
|
|
417
|
+
* @property {string} bank - Bank name
|
|
484
418
|
*/
|
|
485
419
|
|
|
486
420
|
/**
|
|
487
|
-
* @typedef
|
|
488
|
-
* @property {
|
|
489
|
-
* @property {
|
|
490
|
-
* @property {string} city - City
|
|
491
|
-
* @property {string} [land_mark] - Land Mark
|
|
492
|
-
* @property {string} [ownership_type] - Address Owner Type
|
|
493
|
-
* @property {string} pincode - Pincode
|
|
494
|
-
* @property {string} state - State
|
|
421
|
+
* @typedef CardDetailsResponse
|
|
422
|
+
* @property {CardDetails} data - Saved Card Details
|
|
423
|
+
* @property {boolean} success - Response is successful or not.
|
|
495
424
|
*/
|
|
496
425
|
|
|
497
426
|
/**
|
|
498
|
-
* @typedef
|
|
499
|
-
* @property {
|
|
500
|
-
* @property {
|
|
427
|
+
* @typedef TransferItemsDetails
|
|
428
|
+
* @property {number} id -
|
|
429
|
+
* @property {string} [display_name] - Beneficiary Display Name
|
|
430
|
+
* @property {string} logo_large - Beneficiary large Logo
|
|
431
|
+
* @property {string} logo_small - Beneficiary small Logo
|
|
432
|
+
* @property {string} name - Beneficiary Name
|
|
501
433
|
*/
|
|
502
434
|
|
|
503
435
|
/**
|
|
504
|
-
* @typedef
|
|
505
|
-
* @property {
|
|
506
|
-
* @property {string}
|
|
507
|
-
* @property {boolean} success - Response is successful or not.
|
|
436
|
+
* @typedef TransferModeDetails
|
|
437
|
+
* @property {TransferItemsDetails[]} [items] - Beneficiary Mode Items
|
|
438
|
+
* @property {string} display_name - Beneficiary Mode Name
|
|
508
439
|
*/
|
|
509
440
|
|
|
510
441
|
/**
|
|
511
|
-
* @typedef
|
|
512
|
-
* @property {
|
|
513
|
-
* @property {string} membership_id - Merchant id
|
|
514
|
-
* @property {string} name - Name of store
|
|
442
|
+
* @typedef TransferModeResponse
|
|
443
|
+
* @property {TransferModeDetails[]} data - Response Object
|
|
515
444
|
*/
|
|
516
445
|
|
|
517
446
|
/**
|
|
518
|
-
* @typedef
|
|
519
|
-
* @property {
|
|
520
|
-
* @property {string}
|
|
521
|
-
* @property {boolean} success - Response is successful or not
|
|
447
|
+
* @typedef UpdateRefundTransferModeRequest
|
|
448
|
+
* @property {boolean} enable - True for enabling the Transfer Mode
|
|
449
|
+
* @property {string} transfer_mode - Transfer Mode of the Beneficiary to be added
|
|
522
450
|
*/
|
|
523
451
|
|
|
524
452
|
/**
|
|
525
|
-
* @typedef
|
|
526
|
-
* @property {
|
|
527
|
-
* @property {boolean} [is_eligible_for_txn] - Whether is eligible for transaction
|
|
528
|
-
* @property {string} [merchant_customer_ref_id] - Rupifi customer ID
|
|
529
|
-
* @property {string} [redirect_url] - URL to which the user may redirect.
|
|
530
|
-
* @property {Object} [session] - User Session
|
|
531
|
-
* @property {boolean} status - Transaction status
|
|
532
|
-
* @property {string} [status_remark] - Decription of status
|
|
453
|
+
* @typedef UpdateRefundTransferModeResponse
|
|
454
|
+
* @property {boolean} [success] - Response is successful or not
|
|
533
455
|
*/
|
|
534
456
|
|
|
535
457
|
/**
|
|
536
458
|
* @typedef OrderBeneficiaryDetails
|
|
537
|
-
* @property {string}
|
|
459
|
+
* @property {string} modified_on - MOdification Date of Beneficiary
|
|
538
460
|
* @property {string} account_no - Account Number
|
|
539
|
-
* @property {string}
|
|
461
|
+
* @property {string} [mobile] - MObile no of User
|
|
540
462
|
* @property {string} bank_name - Bank Name Of Account
|
|
463
|
+
* @property {string} ifsc_code - Ifsc Code Of Account
|
|
464
|
+
* @property {boolean} is_active - Boolean Flag whether Beneficiary set or not
|
|
541
465
|
* @property {string} beneficiary_id - Benenficiary Id
|
|
542
|
-
* @property {string}
|
|
543
|
-
* @property {string} [comment] - Remarks
|
|
544
|
-
* @property {string} created_on - Creation Date of Beneficiary
|
|
545
|
-
* @property {string} [delights_user_name] - User Id Who filled the Beneficiary
|
|
546
|
-
* @property {string} display_name - Display Name Of Account
|
|
466
|
+
* @property {string} account_holder - Account Holder Name
|
|
547
467
|
* @property {string} email - EMail of User
|
|
468
|
+
* @property {string} [delights_user_name] - User Id Who filled the Beneficiary
|
|
548
469
|
* @property {number} id -
|
|
549
|
-
* @property {string}
|
|
550
|
-
* @property {
|
|
551
|
-
* @property {string}
|
|
552
|
-
* @property {string} modified_on - MOdification Date of Beneficiary
|
|
470
|
+
* @property {string} transfer_mode - Transfer Mode Of Account
|
|
471
|
+
* @property {string} [branch_name] - Branch Name Of Account
|
|
472
|
+
* @property {string} created_on - Creation Date of Beneficiary
|
|
553
473
|
* @property {string} subtitle - SHort Title Of Account
|
|
474
|
+
* @property {string} [comment] - Remarks
|
|
475
|
+
* @property {string} address - Address of User
|
|
554
476
|
* @property {string} title - Title Of Account
|
|
555
|
-
* @property {string}
|
|
477
|
+
* @property {string} display_name - Display Name Of Account
|
|
556
478
|
*/
|
|
557
479
|
|
|
558
480
|
/**
|
|
559
481
|
* @typedef OrderBeneficiaryResponse
|
|
560
|
-
* @property {OrderBeneficiaryDetails[]} [beneficiaries] - All Beneficiaries Of An Order
|
|
561
482
|
* @property {boolean} [show_beneficiary_details] - Show beneficiary details or not.
|
|
483
|
+
* @property {OrderBeneficiaryDetails[]} [beneficiaries] - All Beneficiaries Of An Order
|
|
562
484
|
*/
|
|
563
485
|
|
|
564
486
|
/**
|
|
565
|
-
* @typedef
|
|
566
|
-
* @property {
|
|
567
|
-
* @property {string}
|
|
568
|
-
* @property {
|
|
569
|
-
* @property {boolean} success - Response is successful or not.
|
|
487
|
+
* @typedef NotFoundResourceError
|
|
488
|
+
* @property {string} code - Bad Request Data
|
|
489
|
+
* @property {string} description - Not Found
|
|
490
|
+
* @property {boolean} success - Response is successful or not
|
|
570
491
|
*/
|
|
571
492
|
|
|
572
493
|
/**
|
|
573
|
-
* @typedef
|
|
574
|
-
* @property {
|
|
575
|
-
* @property {
|
|
576
|
-
* @property {
|
|
577
|
-
* @property {boolean} success - Response is successful or not.
|
|
494
|
+
* @typedef IfscCodeResponse
|
|
495
|
+
* @property {string} branch_name - Branch Name Of Account
|
|
496
|
+
* @property {boolean} [success] - Response is successful or not
|
|
497
|
+
* @property {string} bank_name - Bank Name Of Account
|
|
578
498
|
*/
|
|
579
499
|
|
|
580
500
|
/**
|
|
581
|
-
* @typedef
|
|
582
|
-
* @property {
|
|
583
|
-
* @property {
|
|
584
|
-
* @property {
|
|
585
|
-
* @property {AggregatorRoute} [epaylater]
|
|
586
|
-
* @property {AggregatorRoute} [fynd]
|
|
587
|
-
* @property {AggregatorRoute} [jiopay]
|
|
588
|
-
* @property {AggregatorRoute} [juspay]
|
|
589
|
-
* @property {AggregatorRoute} [mswipe]
|
|
590
|
-
* @property {AggregatorRoute} [payubiz]
|
|
591
|
-
* @property {AggregatorRoute} [razorpay]
|
|
592
|
-
* @property {AggregatorRoute} [rupifi]
|
|
593
|
-
* @property {AggregatorRoute} [simpl]
|
|
594
|
-
* @property {AggregatorRoute} [stripe]
|
|
595
|
-
* @property {AggregatorRoute} [upi_razorpay]
|
|
501
|
+
* @typedef ErrorCodeDescription
|
|
502
|
+
* @property {string} code - Error descrption code.
|
|
503
|
+
* @property {string} description - Error human understandable description.
|
|
504
|
+
* @property {boolean} success - Response is successful or not
|
|
596
505
|
*/
|
|
597
506
|
|
|
598
507
|
/**
|
|
599
|
-
* @typedef
|
|
600
|
-
* @property {string}
|
|
601
|
-
* @property {
|
|
602
|
-
* @property {string}
|
|
603
|
-
* @property {string} currency - Currency code.
|
|
604
|
-
* @property {string} customer_id - Payment gateway customer id.
|
|
605
|
-
* @property {string} [device_id] - EDC machine Unique Identifier
|
|
606
|
-
* @property {string} email - Customer valid email
|
|
607
|
-
* @property {string} merchant_order_id - Unique fynd order id
|
|
608
|
-
* @property {string} method - Payment method
|
|
609
|
-
* @property {string} order_id - Payment gateway order id
|
|
610
|
-
* @property {string} [razorpay_payment_id] - Payment gateway payment id
|
|
611
|
-
* @property {number} [timeout] - Payment polling timeout if not recieved response
|
|
612
|
-
* @property {string} [vpa] - Customer vpa address
|
|
508
|
+
* @typedef AddBeneficiaryViaOtpVerificationRequest
|
|
509
|
+
* @property {string} request_id - Request Id sent in
|
|
510
|
+
* @property {string} hash_key - Hash key of the beneficiary Id
|
|
511
|
+
* @property {string} otp - Otp sent to the given Mobile No
|
|
613
512
|
*/
|
|
614
513
|
|
|
615
514
|
/**
|
|
616
|
-
* @typedef
|
|
617
|
-
* @property {
|
|
618
|
-
* @property {string}
|
|
619
|
-
* @property {number} [amount] - Payable amount.
|
|
620
|
-
* @property {string} [bqr_image] - Bharath qr image url.
|
|
621
|
-
* @property {string} [currency] - Currency code.
|
|
622
|
-
* @property {string} [customer_id] - Payment gateway customer id.
|
|
623
|
-
* @property {string} [device_id] - EDC machine Unique Identifier
|
|
624
|
-
* @property {string} merchant_order_id - Order id
|
|
625
|
-
* @property {string} method - Payment method
|
|
626
|
-
* @property {string} polling_url - Polling url.
|
|
627
|
-
* @property {string} [razorpay_payment_id] - Payment id.
|
|
628
|
-
* @property {string} [status] - Status of payment.
|
|
629
|
-
* @property {boolean} success - Response is successful or not.
|
|
630
|
-
* @property {number} [timeout] - Timeout.
|
|
631
|
-
* @property {string} [upi_poll_url] - UPI poll url.
|
|
632
|
-
* @property {string} [virtual_id] - Payment virtual address.
|
|
633
|
-
* @property {string} [vpa] - Customer vpa address
|
|
515
|
+
* @typedef AddBeneficiaryViaOtpVerificationResponse
|
|
516
|
+
* @property {boolean} [success] - Response is successful or not
|
|
517
|
+
* @property {string} message - Aggregator Response of beneficicary
|
|
634
518
|
*/
|
|
635
519
|
|
|
636
520
|
/**
|
|
637
|
-
* @typedef
|
|
638
|
-
* @property {
|
|
639
|
-
* @property {string}
|
|
640
|
-
* @property {string}
|
|
521
|
+
* @typedef WrongOtpError
|
|
522
|
+
* @property {boolean} is_verified_flag - Vefified flag.
|
|
523
|
+
* @property {string} description - Wrong OTP Code
|
|
524
|
+
* @property {string} success - Response is successful or not
|
|
641
525
|
*/
|
|
642
526
|
|
|
643
527
|
/**
|
|
644
|
-
* @typedef
|
|
645
|
-
* @property {string}
|
|
646
|
-
* @property {string}
|
|
647
|
-
* @property {string}
|
|
528
|
+
* @typedef BeneficiaryModeDetails
|
|
529
|
+
* @property {string} account_no - Account NUmber of the Account Holder
|
|
530
|
+
* @property {string} [address] - Address of the User
|
|
531
|
+
* @property {string} mobile - Moblie Number of the User
|
|
532
|
+
* @property {string} bank_name - Bank Name of the Account
|
|
533
|
+
* @property {string} [comment] - Remarks added by The user
|
|
534
|
+
* @property {string} ifsc_code - Ifsc Code of the Account
|
|
535
|
+
* @property {string} [vpa]
|
|
536
|
+
* @property {string} branch_name - Branch Name of the Account
|
|
537
|
+
* @property {string} account_holder - Name of the Account Holder
|
|
538
|
+
* @property {string} [wallet]
|
|
539
|
+
* @property {string} email - Email of the Account Holder
|
|
648
540
|
*/
|
|
649
541
|
|
|
650
542
|
/**
|
|
651
|
-
* @typedef
|
|
652
|
-
* @property {
|
|
653
|
-
*
|
|
654
|
-
* @property {string}
|
|
655
|
-
* @property {
|
|
656
|
-
* @property {string} [
|
|
657
|
-
* @property {string}
|
|
658
|
-
* @property {string}
|
|
659
|
-
* @property {string} [
|
|
660
|
-
* @property {string} [card_number] - Card_number
|
|
661
|
-
* @property {string} [card_reference] - Card_reference
|
|
662
|
-
* @property {string} [card_token] - Card_token
|
|
663
|
-
* @property {string} [card_type] - Card_type
|
|
664
|
-
* @property {number} [cod_limit] - Cod limit
|
|
665
|
-
* @property {number} [cod_limit_per_order] - Cod limit per order
|
|
666
|
-
* @property {string} [code] - Code
|
|
667
|
-
* @property {boolean} [compliant_with_tokenisation_guidelines] - If card is
|
|
668
|
-
* tokenised or not
|
|
669
|
-
* @property {string} [display_name] - Display name
|
|
670
|
-
* @property {number} [display_priority] - Dispaly Priority
|
|
671
|
-
* @property {number} [exp_month] - Exp_month
|
|
672
|
-
* @property {number} [exp_year] - Exp_year
|
|
673
|
-
* @property {boolean} [expired] - Expired
|
|
674
|
-
* @property {string} [fynd_vpa] - Fynd_vpa
|
|
675
|
-
* @property {IntentApp[]} [intent_app] - Intent_app
|
|
676
|
-
* @property {IntentAppErrorList[]} [intent_app_error_dict_list] -
|
|
677
|
-
* Intent_app_error_dict_list
|
|
678
|
-
* @property {string[]} [intent_app_error_list] - Intent_app_error_list
|
|
679
|
-
* @property {boolean} [intent_flow] - Intent_flow
|
|
680
|
-
* @property {PaymentModeLogo} [logo_url]
|
|
681
|
-
* @property {string} [merchant_code] - Merchant code
|
|
682
|
-
* @property {Object} [meta] - Payment methods meta
|
|
683
|
-
* @property {string} [name] - Name
|
|
684
|
-
* @property {string} [nickname] - Nickname
|
|
685
|
-
* @property {number} [remaining_limit] - Remaining limit
|
|
686
|
-
* @property {number} [retry_count] - Retry_count
|
|
687
|
-
* @property {number} [timeout] - Timeout
|
|
543
|
+
* @typedef AddBeneficiaryDetailsRequest
|
|
544
|
+
* @property {boolean} delights - True if beneficiary to be added by delights or
|
|
545
|
+
* False if by User
|
|
546
|
+
* @property {string} shipment_id - Shipment Id of the respective Merchant Order Id
|
|
547
|
+
* @property {BeneficiaryModeDetails} details - Beneficiary bank details
|
|
548
|
+
* @property {string} [otp]
|
|
549
|
+
* @property {string} order_id - Merchant Order Id
|
|
550
|
+
* @property {string} transfer_mode - Transfer Mode of the Beneficiary to be added
|
|
551
|
+
* @property {string} [request_id]
|
|
688
552
|
*/
|
|
689
553
|
|
|
690
554
|
/**
|
|
691
|
-
* @typedef
|
|
692
|
-
* @property {
|
|
693
|
-
* @property {
|
|
555
|
+
* @typedef RefundAccountResponse
|
|
556
|
+
* @property {boolean} [is_verified_flag]
|
|
557
|
+
* @property {Object} [data] - Refund account data.
|
|
558
|
+
* @property {boolean} success - Success or failure flag.
|
|
559
|
+
* @property {string} message - Response message
|
|
694
560
|
*/
|
|
695
561
|
|
|
696
562
|
/**
|
|
697
|
-
* @typedef
|
|
698
|
-
* @property {
|
|
699
|
-
* @property {
|
|
700
|
-
* @property {
|
|
701
|
-
* @property {
|
|
563
|
+
* @typedef BankDetailsForOTP
|
|
564
|
+
* @property {string} account_no
|
|
565
|
+
* @property {string} bank_name
|
|
566
|
+
* @property {string} ifsc_code
|
|
567
|
+
* @property {string} branch_name
|
|
568
|
+
* @property {string} account_holder
|
|
702
569
|
*/
|
|
703
570
|
|
|
704
571
|
/**
|
|
705
|
-
* @typedef
|
|
706
|
-
* @property {
|
|
707
|
-
* @property {
|
|
572
|
+
* @typedef AddBeneficiaryDetailsOTPRequest
|
|
573
|
+
* @property {string} order_id
|
|
574
|
+
* @property {BankDetailsForOTP} details
|
|
708
575
|
*/
|
|
709
576
|
|
|
710
577
|
/**
|
|
711
|
-
* @typedef
|
|
712
|
-
* @property {string}
|
|
713
|
-
* @property {
|
|
714
|
-
* @property {string} [callback_url] - Callback url for aggregator
|
|
715
|
-
* @property {string} [contact] - Mobile number
|
|
716
|
-
* @property {string} [currency] - Currency
|
|
717
|
-
* @property {string} [customer_id] - Aggregator customer id
|
|
718
|
-
* @property {string} [email] - Email
|
|
719
|
-
* @property {string} [merchant_order_id] - Merchant order id
|
|
720
|
-
* @property {string} [method] - Method
|
|
721
|
-
* @property {string} [order_id] - Aggregator order id
|
|
578
|
+
* @typedef WalletOtpRequest
|
|
579
|
+
* @property {string} country_code - Country Code of the Mobile Number
|
|
580
|
+
* @property {string} mobile - Wallet Moblie Number of the User
|
|
722
581
|
*/
|
|
723
582
|
|
|
724
583
|
/**
|
|
725
|
-
* @typedef
|
|
726
|
-
* @property {
|
|
727
|
-
* @property {
|
|
728
|
-
*
|
|
729
|
-
* @property {
|
|
730
|
-
* @property {string} [payment] - Payment type i.e. Required / Blocked
|
|
584
|
+
* @typedef WalletOtpResponse
|
|
585
|
+
* @property {string} request_id - Request id
|
|
586
|
+
* @property {string} is_verified_flag - Boolean Flag whether OTP Validation is
|
|
587
|
+
* already done or not
|
|
588
|
+
* @property {boolean} [success] - Response is successful or not
|
|
731
589
|
*/
|
|
732
590
|
|
|
733
591
|
/**
|
|
734
|
-
* @typedef
|
|
735
|
-
* @property {string} order_id - Order
|
|
736
|
-
* @property {
|
|
737
|
-
* @property {string} [shipment_id] - Shipment_id
|
|
592
|
+
* @typedef SetDefaultBeneficiaryRequest
|
|
593
|
+
* @property {string} order_id - Merchant Order Id
|
|
594
|
+
* @property {string} beneficiary_id - Beneficiary Hash Id of the beneficiary added
|
|
738
595
|
*/
|
|
739
596
|
|
|
740
597
|
/**
|
|
741
|
-
* @typedef
|
|
742
|
-
* @property {
|
|
743
|
-
* @property {
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
598
|
+
* @typedef SetDefaultBeneficiaryResponse
|
|
599
|
+
* @property {boolean} is_beneficiary_set - Boolean Flag whether Beneficiary set or not
|
|
600
|
+
* @property {boolean} [success] - Response is successful or not
|
|
601
|
+
*/
|
|
602
|
+
|
|
603
|
+
/**
|
|
604
|
+
* @typedef GetPaymentLinkResponse
|
|
747
605
|
* @property {number} status_code - HTTP status code
|
|
606
|
+
* @property {string} [payment_link_current_status] - Status of payment link
|
|
748
607
|
* @property {boolean} success - Successful or failure
|
|
608
|
+
* @property {number} [polling_timeout] - Polling request timeout
|
|
609
|
+
* @property {string} [payment_link_url] - Url of payment link
|
|
610
|
+
* @property {string} [external_order_id] - Merchant order id
|
|
611
|
+
* @property {string} message - Message
|
|
612
|
+
* @property {string} [merchant_name] - Merchant name
|
|
613
|
+
* @property {number} [amount] - Total value of order
|
|
749
614
|
*/
|
|
750
615
|
|
|
751
616
|
/**
|
|
752
|
-
* @typedef
|
|
753
|
-
* @property {string}
|
|
754
|
-
* @property {
|
|
755
|
-
* @property {string}
|
|
756
|
-
* @property {string}
|
|
757
|
-
* @property {string}
|
|
758
|
-
* @property {
|
|
759
|
-
* @property {
|
|
760
|
-
* @property {
|
|
761
|
-
* @property {string} merchant_transaction_id - Unique fynd transaction id
|
|
762
|
-
* @property {string} method - Payment method
|
|
763
|
-
* @property {string} order_id - Payment gateway order id
|
|
764
|
-
* @property {string} status - Status of payment.
|
|
765
|
-
* @property {string} [vpa] - Customer vpa address
|
|
617
|
+
* @typedef ErrorDescription
|
|
618
|
+
* @property {string} [payment_transaction_id] - Payment transaction id
|
|
619
|
+
* @property {boolean} [expired] - Payment link expired or not
|
|
620
|
+
* @property {string} [merchant_order_id] - Order id
|
|
621
|
+
* @property {string} [merchant_name] - Name of merchant that created payment link
|
|
622
|
+
* @property {string} [msg] - Message
|
|
623
|
+
* @property {boolean} [cancelled] - Payment link is cancelled or not
|
|
624
|
+
* @property {number} [amount] - Amount paid
|
|
625
|
+
* @property {boolean} [invalid_id] - Payment link id is valid or not
|
|
766
626
|
*/
|
|
767
627
|
|
|
768
628
|
/**
|
|
769
|
-
* @typedef
|
|
770
|
-
* @property {
|
|
771
|
-
* @property {
|
|
772
|
-
* @property {
|
|
773
|
-
* @property {
|
|
774
|
-
* @property {boolean} [success] - Response is successful or not
|
|
629
|
+
* @typedef ErrorResponse
|
|
630
|
+
* @property {number} status_code - HTTP status code
|
|
631
|
+
* @property {Object} [error]
|
|
632
|
+
* @property {string} message - Message
|
|
633
|
+
* @property {boolean} success - Successful or failure
|
|
775
634
|
*/
|
|
776
635
|
|
|
777
636
|
/**
|
|
778
|
-
* @typedef
|
|
779
|
-
* @property {string}
|
|
780
|
-
* @property {
|
|
781
|
-
* @property {
|
|
782
|
-
* @property {string} [
|
|
783
|
-
* @property {string}
|
|
784
|
-
* @property {string} [payment_link_id] - Payment link id
|
|
785
|
-
* @property {string} [redirect_url] - Url to redirect to
|
|
786
|
-
* @property {string} [status] - Status of payment link
|
|
787
|
-
* @property {number} [status_code] - HTTP status code
|
|
788
|
-
* @property {boolean} [success] - Successful or failure
|
|
637
|
+
* @typedef CreatePaymentLinkMeta
|
|
638
|
+
* @property {string} cart_id
|
|
639
|
+
* @property {string} checkout_mode
|
|
640
|
+
* @property {string} pincode
|
|
641
|
+
* @property {string} [assign_card_id]
|
|
642
|
+
* @property {string} amount
|
|
789
643
|
*/
|
|
790
644
|
|
|
791
645
|
/**
|
|
792
|
-
* @typedef
|
|
793
|
-
* @property {
|
|
794
|
-
* @property {
|
|
646
|
+
* @typedef CreatePaymentLinkRequest
|
|
647
|
+
* @property {string} [description] - Merchant order id
|
|
648
|
+
* @property {string} external_order_id - Merchant order id
|
|
649
|
+
* @property {string} mobile_number - Mobile number to which the payment link is
|
|
650
|
+
* to be sent
|
|
651
|
+
* @property {number} amount - Total value of order
|
|
652
|
+
* @property {CreatePaymentLinkMeta} meta - Meta
|
|
653
|
+
* @property {string} email - Email to which the payment link is to be sent
|
|
795
654
|
*/
|
|
796
655
|
|
|
797
656
|
/**
|
|
798
|
-
* @typedef
|
|
799
|
-
* @property {
|
|
800
|
-
* @property {boolean}
|
|
657
|
+
* @typedef CreatePaymentLinkResponse
|
|
658
|
+
* @property {number} status_code - HTTP status code
|
|
659
|
+
* @property {boolean} success - Successful or failure
|
|
660
|
+
* @property {number} [polling_timeout] - Polling request timeout
|
|
661
|
+
* @property {string} [payment_link_url] - Url of payment link
|
|
662
|
+
* @property {string} message - Message
|
|
663
|
+
* @property {string} [payment_link_id] - Unique id of payment link
|
|
801
664
|
*/
|
|
802
665
|
|
|
803
666
|
/**
|
|
804
|
-
* @typedef
|
|
805
|
-
* @property {
|
|
806
|
-
* @property {boolean} [is_verified_flag]
|
|
807
|
-
* @property {string} message - Response message
|
|
808
|
-
* @property {boolean} success - Success or failure flag.
|
|
667
|
+
* @typedef CancelOrResendPaymentLinkRequest
|
|
668
|
+
* @property {string} payment_link_id - Unique id of payment link
|
|
809
669
|
*/
|
|
810
670
|
|
|
811
671
|
/**
|
|
812
|
-
* @typedef
|
|
813
|
-
* @property {
|
|
814
|
-
* @property {
|
|
672
|
+
* @typedef ResendPaymentLinkResponse
|
|
673
|
+
* @property {number} status_code - HTTP status code
|
|
674
|
+
* @property {number} [polling_timeout] - Polling request timeout
|
|
675
|
+
* @property {boolean} success - Successful or failure
|
|
676
|
+
* @property {string} message - Message
|
|
815
677
|
*/
|
|
816
678
|
|
|
817
679
|
/**
|
|
818
|
-
* @typedef
|
|
819
|
-
* @property {
|
|
680
|
+
* @typedef CancelPaymentLinkResponse
|
|
681
|
+
* @property {number} status_code - HTTP status code
|
|
682
|
+
* @property {boolean} success - Successful or failure
|
|
683
|
+
* @property {string} message - Message
|
|
820
684
|
*/
|
|
821
685
|
|
|
822
686
|
/**
|
|
823
|
-
* @typedef
|
|
824
|
-
* @property {string} [
|
|
825
|
-
* @property {
|
|
826
|
-
* @property {
|
|
687
|
+
* @typedef PollingPaymentLinkResponse
|
|
688
|
+
* @property {string} [status] - Status of payment link
|
|
689
|
+
* @property {number} [status_code] - HTTP status code
|
|
690
|
+
* @property {boolean} [success] - Successful or failure
|
|
691
|
+
* @property {number} [http_status] - HTTP status code
|
|
692
|
+
* @property {string} [message] - Message
|
|
693
|
+
* @property {string} [order_id] - Fynd order id
|
|
694
|
+
* @property {string} [redirect_url] - Url to redirect to
|
|
695
|
+
* @property {string} [payment_link_id] - Payment link id
|
|
696
|
+
* @property {string} [aggregator_name] - Aggregator name
|
|
697
|
+
* @property {number} [amount] - Amount
|
|
827
698
|
*/
|
|
828
699
|
|
|
829
700
|
/**
|
|
830
|
-
* @typedef
|
|
831
|
-
* @property {
|
|
832
|
-
* @property {
|
|
701
|
+
* @typedef PaymentMethodsMeta
|
|
702
|
+
* @property {string} merchant_code - Merchant code
|
|
703
|
+
* @property {string} payment_gateway - Payment gateway name
|
|
704
|
+
* @property {string} payment_identifier - Payment identifier
|
|
833
705
|
*/
|
|
834
706
|
|
|
835
707
|
/**
|
|
836
|
-
* @typedef
|
|
837
|
-
* @property {string}
|
|
838
|
-
* @property {
|
|
839
|
-
* @property {
|
|
840
|
-
* @property {boolean} success - Successful or failure
|
|
708
|
+
* @typedef CreateOrderUserPaymentMethods
|
|
709
|
+
* @property {string} name - Payment mode name
|
|
710
|
+
* @property {string} mode - Payment mode
|
|
711
|
+
* @property {PaymentMethodsMeta} meta - Meta
|
|
841
712
|
*/
|
|
842
713
|
|
|
843
714
|
/**
|
|
844
|
-
* @typedef
|
|
845
|
-
* @property {
|
|
846
|
-
* @property {string}
|
|
847
|
-
* @property {
|
|
848
|
-
* @property {
|
|
849
|
-
* @property {
|
|
850
|
-
* @property {
|
|
851
|
-
* Payment link payment through card
|
|
852
|
-
* @property {PaymentModeList[]} [list] - Payment mode
|
|
853
|
-
* @property {string} name - Payment mode name
|
|
854
|
-
* @property {boolean} [save_card] - Card save or not
|
|
715
|
+
* @typedef CreateOrderUserRequest
|
|
716
|
+
* @property {string} failure_callback_url - Failure page url
|
|
717
|
+
* @property {string} currency - Currency
|
|
718
|
+
* @property {string} payment_link_id - Unique id of payment link
|
|
719
|
+
* @property {CreateOrderUserPaymentMethods} payment_methods - Payment method details
|
|
720
|
+
* @property {string} success_callback_url - Success page url
|
|
721
|
+
* @property {Object} [meta] - Meta
|
|
855
722
|
*/
|
|
856
723
|
|
|
857
724
|
/**
|
|
858
|
-
* @typedef
|
|
859
|
-
* @property {string} [
|
|
860
|
-
* @property {string} [
|
|
725
|
+
* @typedef CreateOrderUserData
|
|
726
|
+
* @property {string} [method] - Method
|
|
727
|
+
* @property {string} [aggregator] - Aggregator name
|
|
728
|
+
* @property {string} [customer_id] - Aggregator customer id
|
|
729
|
+
* @property {string} [contact] - Mobile number
|
|
730
|
+
* @property {string} [merchant_order_id] - Merchant order id
|
|
731
|
+
* @property {string} [order_id] - Aggregator order id
|
|
732
|
+
* @property {string} [currency] - Currency
|
|
733
|
+
* @property {string} [callback_url] - Callback url for aggregator
|
|
734
|
+
* @property {number} [amount] - Amount
|
|
735
|
+
* @property {string} [email] - Email
|
|
861
736
|
*/
|
|
862
737
|
|
|
863
738
|
/**
|
|
864
|
-
* @typedef
|
|
865
|
-
* @property {
|
|
866
|
-
* @property {boolean} success - Successful or
|
|
739
|
+
* @typedef CreateOrderUserResponse
|
|
740
|
+
* @property {number} status_code - HTTP status code
|
|
741
|
+
* @property {boolean} success - Successful or failure
|
|
742
|
+
* @property {CreateOrderUserData} [data]
|
|
743
|
+
* @property {string} message - Message
|
|
744
|
+
* @property {string} [order_id] - Merchant order id
|
|
745
|
+
* @property {string} [callback_url] - Callback url for aggregator
|
|
746
|
+
* @property {string} [payment_confirm_url] - Payment confirm url for aggregator
|
|
867
747
|
*/
|
|
868
748
|
|
|
869
749
|
/**
|
|
870
|
-
* @typedef
|
|
871
|
-
* @property {string}
|
|
872
|
-
* @property {string}
|
|
750
|
+
* @typedef BalanceDetails
|
|
751
|
+
* @property {string} [formatted_value] - Formated Amount with currency symbol
|
|
752
|
+
* @property {string} [currency] - Currency Code
|
|
753
|
+
* @property {number} [value] - Payment amount
|
|
873
754
|
*/
|
|
874
755
|
|
|
875
756
|
/**
|
|
876
|
-
* @typedef
|
|
877
|
-
* @property {
|
|
878
|
-
* @property {
|
|
757
|
+
* @typedef CreditSummary
|
|
758
|
+
* @property {string} [status] - Customer Credit status
|
|
759
|
+
* @property {string} [credit_line_id] - ID at Credit aggregator's end
|
|
760
|
+
* @property {BalanceDetails} [amount_available] - Credit summary of user.
|
|
761
|
+
* @property {BalanceDetails} [balance] - Credit summary of user.
|
|
762
|
+
* @property {string} [status_message] - Message to customer
|
|
763
|
+
* @property {string} [merchant_customer_ref_id] - Unique aggregator customer id
|
|
764
|
+
* @property {string} [buyer_status] - Status from Credit aggregator's end
|
|
879
765
|
*/
|
|
880
766
|
|
|
881
767
|
/**
|
|
882
|
-
* @typedef
|
|
883
|
-
* @property {
|
|
884
|
-
* @property {
|
|
885
|
-
* @property {number} [total_number_of_splits] - Maximum amount of splits allowed
|
|
768
|
+
* @typedef CustomerCreditSummaryResponse
|
|
769
|
+
* @property {CreditSummary} [data] - Credit summary of user.
|
|
770
|
+
* @property {boolean} success - Payment confirmation updated or not.
|
|
886
771
|
*/
|
|
887
772
|
|
|
888
773
|
/**
|
|
889
|
-
* @typedef
|
|
890
|
-
* @property {
|
|
891
|
-
* @property {
|
|
892
|
-
* @property {string} logo_large - Beneficiary large Logo
|
|
893
|
-
* @property {string} logo_small - Beneficiary small Logo
|
|
894
|
-
* @property {string} name - Beneficiary Name
|
|
774
|
+
* @typedef RedirectURL
|
|
775
|
+
* @property {boolean} status - Aggregator's Operation is successful or not.
|
|
776
|
+
* @property {string} signup_url - URL to which the user may redirect.
|
|
895
777
|
*/
|
|
896
778
|
|
|
897
779
|
/**
|
|
898
|
-
* @typedef
|
|
899
|
-
* @property {
|
|
900
|
-
* @property {
|
|
780
|
+
* @typedef RedirectToAggregatorResponse
|
|
781
|
+
* @property {RedirectURL} data - Redirect URL.
|
|
782
|
+
* @property {boolean} success - Status updated or not.
|
|
901
783
|
*/
|
|
902
784
|
|
|
903
785
|
/**
|
|
904
|
-
* @typedef
|
|
905
|
-
* @property {
|
|
786
|
+
* @typedef CreditDetail
|
|
787
|
+
* @property {boolean} status - Operation is successful or not.
|
|
788
|
+
* @property {boolean} is_registered - User is registered with aggregator or not.
|
|
789
|
+
* @property {string} signup_url - URL to which the user may redirect.
|
|
906
790
|
*/
|
|
907
791
|
|
|
908
792
|
/**
|
|
909
|
-
* @typedef
|
|
910
|
-
* @property {
|
|
911
|
-
* @property {
|
|
793
|
+
* @typedef CheckCreditResponse
|
|
794
|
+
* @property {CreditDetail} data - Credit summary of user.
|
|
795
|
+
* @property {boolean} success - Operation is successful or not.
|
|
912
796
|
*/
|
|
913
797
|
|
|
914
798
|
/**
|
|
915
|
-
* @typedef
|
|
916
|
-
* @property {
|
|
799
|
+
* @typedef KYCAddress
|
|
800
|
+
* @property {string} city - City
|
|
801
|
+
* @property {string} [addressline2] - Address Line 2
|
|
802
|
+
* @property {string} state - State
|
|
803
|
+
* @property {string} [ownership_type] - Address Owner Type
|
|
804
|
+
* @property {string} pincode - Pincode
|
|
805
|
+
* @property {string} [land_mark] - Land Mark
|
|
806
|
+
* @property {string} addressline1 - Address Line 1
|
|
917
807
|
*/
|
|
918
808
|
|
|
919
809
|
/**
|
|
920
810
|
* @typedef UserPersonalInfoInDetails
|
|
921
|
-
* @property {KYCAddress} address_as_per_id
|
|
922
|
-
* @property {string} dob - DOB
|
|
923
|
-
* @property {string} [driving_license] - Driver License
|
|
924
|
-
* @property {string} [email] - Email
|
|
925
|
-
* @property {boolean} email_verified - Is Email Verified or not
|
|
926
|
-
* @property {string} [fathers_name] - Father's Name
|
|
927
811
|
* @property {string} first_name - First Name
|
|
812
|
+
* @property {string} [voter_id] - Voter ID Number
|
|
928
813
|
* @property {string} [gender] - Gender
|
|
929
|
-
* @property {string}
|
|
930
|
-
* @property {string} [
|
|
931
|
-
* @property {
|
|
814
|
+
* @property {string} dob - DOB
|
|
815
|
+
* @property {string} [passport] - Passport
|
|
816
|
+
* @property {string} [fathers_name] - Father's Name
|
|
932
817
|
* @property {string} [mothers_name] - Mother's Name
|
|
818
|
+
* @property {string} [middle_name] - Middle Name
|
|
819
|
+
* @property {string} [last_name] - Last Name
|
|
933
820
|
* @property {string} [pan] - Pan Number
|
|
934
|
-
* @property {string} [
|
|
821
|
+
* @property {string} [driving_license] - Driver License
|
|
822
|
+
* @property {boolean} email_verified - Is Email Verified or not
|
|
823
|
+
* @property {KYCAddress} address_as_per_id - Address details
|
|
824
|
+
* @property {boolean} mobile_verified - Is Mobile Verified or not
|
|
935
825
|
* @property {string} phone - Email
|
|
936
|
-
* @property {string} [
|
|
826
|
+
* @property {string} [email] - Email
|
|
937
827
|
*/
|
|
938
828
|
|
|
939
829
|
/**
|
|
940
|
-
* @typedef
|
|
941
|
-
* @property {string}
|
|
942
|
-
* @property {
|
|
943
|
-
* @property {
|
|
944
|
-
* @property {Object} [merchant_params] - Extra meta fields.
|
|
945
|
-
* @property {Object[]} [order_items] - Extra meta fields.
|
|
946
|
-
* @property {string} [payload] - Hashed payload string.
|
|
947
|
-
* @property {string} phone_number - User mobile number without country code.
|
|
948
|
-
* @property {number} transaction_amount_in_paise - Payable amount in paise
|
|
949
|
-
*/
|
|
950
|
-
|
|
951
|
-
/**
|
|
952
|
-
* @typedef ValidateCustomerResponse
|
|
953
|
-
* @property {Object} data - Payment gateway response data
|
|
954
|
-
* @property {string} message - Error or success message.
|
|
955
|
-
* @property {boolean} success - Response is successful or not
|
|
956
|
-
*/
|
|
957
|
-
|
|
958
|
-
/**
|
|
959
|
-
* @typedef ValidateUPI
|
|
960
|
-
* @property {string} customer_name - Customer Bank
|
|
961
|
-
* @property {boolean} is_valid - Boolean is true or false.
|
|
962
|
-
* @property {string} status - VALID or INVALID
|
|
963
|
-
* @property {string} upi_vpa - UPI ID
|
|
964
|
-
*/
|
|
965
|
-
|
|
966
|
-
/**
|
|
967
|
-
* @typedef ValidateVPARequest
|
|
968
|
-
* @property {string} upi_vpa - UPI ID
|
|
830
|
+
* @typedef MarketplaceInfo
|
|
831
|
+
* @property {string} [date_of_joining] - Date of joining
|
|
832
|
+
* @property {string} name - Name of store
|
|
833
|
+
* @property {string} membership_id - Merchant id
|
|
969
834
|
*/
|
|
970
835
|
|
|
971
836
|
/**
|
|
972
|
-
* @typedef
|
|
973
|
-
* @property {
|
|
974
|
-
* @property {
|
|
837
|
+
* @typedef BusinessDetails
|
|
838
|
+
* @property {string} [business_ownership_type] - Business Ownershipp type(e.g Rented)
|
|
839
|
+
* @property {string} [vintage] - Vintage
|
|
840
|
+
* @property {string} [gstin] - GSTIN Number
|
|
841
|
+
* @property {string} [pan] - Pan Number
|
|
842
|
+
* @property {string} [entity_type] - Busineess Entity Type
|
|
843
|
+
* @property {Object} [shop_and_establishment] - Shop Establishment
|
|
844
|
+
* @property {string} [fssai] - FDA License Number
|
|
845
|
+
* @property {string} [fda] - Driver License
|
|
846
|
+
* @property {string} [business_type] - Business Type
|
|
847
|
+
* @property {string} [name] - Business Name
|
|
848
|
+
* @property {KYCAddress} [address] - Address details
|
|
975
849
|
*/
|
|
976
850
|
|
|
977
851
|
/**
|
|
978
|
-
* @typedef
|
|
979
|
-
* @property {string}
|
|
980
|
-
* @property {string}
|
|
852
|
+
* @typedef DeviceDetails
|
|
853
|
+
* @property {string} [identification_number] - IP
|
|
854
|
+
* @property {string} [identifier_type] - Static value = ip
|
|
855
|
+
* @property {string} [device_model] - Device Model
|
|
856
|
+
* @property {string} [device_make] - Device maker
|
|
857
|
+
* @property {string} [device_type] - Device Type(E.g. Mobile)
|
|
858
|
+
* @property {string} [os] - OS Name
|
|
859
|
+
* @property {string} [os_version] - OS Version
|
|
981
860
|
*/
|
|
982
861
|
|
|
983
862
|
/**
|
|
984
|
-
* @typedef
|
|
863
|
+
* @typedef CustomerOnboardingRequest
|
|
864
|
+
* @property {UserPersonalInfoInDetails} personal_info - Credit summary of user.
|
|
865
|
+
* @property {string} [mcc] - Mcc
|
|
985
866
|
* @property {string} aggregator - Aggregator Name
|
|
986
|
-
* @property {
|
|
987
|
-
* @property {string}
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
/**
|
|
991
|
-
* @typedef WalletOtpRequest
|
|
992
|
-
* @property {string} country_code - Country Code of the Mobile Number
|
|
993
|
-
* @property {string} mobile - Wallet Moblie Number of the User
|
|
867
|
+
* @property {MarketplaceInfo} [marketplace_info] - Market Place info.
|
|
868
|
+
* @property {string} source - CallbackURL
|
|
869
|
+
* @property {BusinessDetails} [business_info] - Business summary.
|
|
870
|
+
* @property {DeviceDetails} [device] - Device Details.
|
|
994
871
|
*/
|
|
995
872
|
|
|
996
873
|
/**
|
|
997
|
-
* @typedef
|
|
998
|
-
* @property {
|
|
999
|
-
*
|
|
1000
|
-
* @property {
|
|
1001
|
-
* @property {boolean} [success] - Response is successful or not
|
|
874
|
+
* @typedef OnboardSummary
|
|
875
|
+
* @property {boolean} status - Operation Status
|
|
876
|
+
* @property {string} redirect_url - URL to which the user may redirect.
|
|
877
|
+
* @property {Object} session - User Session
|
|
1002
878
|
*/
|
|
1003
879
|
|
|
1004
880
|
/**
|
|
1005
|
-
* @typedef
|
|
1006
|
-
* @property {
|
|
1007
|
-
* @property {boolean} success -
|
|
881
|
+
* @typedef CustomerOnboardingResponse
|
|
882
|
+
* @property {OnboardSummary} data - Redirect URL.
|
|
883
|
+
* @property {boolean} success - Status updated or not.
|
|
1008
884
|
*/
|
|
1009
885
|
|
|
1010
886
|
/**
|
|
1011
|
-
* @typedef
|
|
1012
|
-
* @property {
|
|
1013
|
-
* @property {
|
|
1014
|
-
* @property {
|
|
887
|
+
* @typedef OutstandingOrderDetailsResponse
|
|
888
|
+
* @property {number} status_code - HTTP Status code
|
|
889
|
+
* @property {Object[]} [data] - Dict containing the outstanding order details
|
|
890
|
+
* @property {boolean} success - Response is successful or not.
|
|
891
|
+
* @property {string} [message] - Message
|
|
1015
892
|
*/
|
|
1016
893
|
|
|
1017
894
|
/**
|
|
1018
|
-
* @typedef
|
|
1019
|
-
* @property {
|
|
1020
|
-
* @property {
|
|
1021
|
-
* @property {
|
|
895
|
+
* @typedef PaidOrderDetailsResponse
|
|
896
|
+
* @property {number} status_code - HTTP Status code
|
|
897
|
+
* @property {Object[]} [data] - Dict containing the paid order details
|
|
898
|
+
* @property {boolean} success - Response is successful or not.
|
|
899
|
+
* @property {string} [message] - Message
|
|
1022
900
|
*/
|
|
1023
901
|
|
|
1024
902
|
class PaymentApplicationModel {
|
|
1025
|
-
/** @returns {
|
|
1026
|
-
static
|
|
903
|
+
/** @returns {AggregatorConfigDetail} */
|
|
904
|
+
static AggregatorConfigDetail() {
|
|
1027
905
|
return Joi.object({
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
906
|
+
sdk: Joi.boolean().allow(null),
|
|
907
|
+
secret: Joi.string().allow("").required(),
|
|
908
|
+
api: Joi.string().allow("").allow(null),
|
|
909
|
+
pin: Joi.string().allow("").allow(null),
|
|
910
|
+
config_type: Joi.string().allow("").required(),
|
|
911
|
+
merchant_key: Joi.string().allow("").allow(null),
|
|
912
|
+
verify_api: Joi.string().allow("").allow(null),
|
|
913
|
+
key: Joi.string().allow("").required(),
|
|
914
|
+
user_id: Joi.string().allow("").allow(null),
|
|
915
|
+
merchant_id: Joi.string().allow("").allow(null),
|
|
1031
916
|
});
|
|
1032
917
|
}
|
|
1033
918
|
|
|
1034
|
-
/** @returns {
|
|
1035
|
-
static
|
|
919
|
+
/** @returns {AggregatorsConfigDetailResponse} */
|
|
920
|
+
static AggregatorsConfigDetailResponse() {
|
|
1036
921
|
return Joi.object({
|
|
1037
|
-
|
|
1038
|
-
|
|
922
|
+
success: Joi.boolean().required(),
|
|
923
|
+
razorpay: PaymentApplicationModel.AggregatorConfigDetail(),
|
|
924
|
+
juspay: PaymentApplicationModel.AggregatorConfigDetail(),
|
|
925
|
+
simpl: PaymentApplicationModel.AggregatorConfigDetail(),
|
|
926
|
+
payumoney: PaymentApplicationModel.AggregatorConfigDetail(),
|
|
927
|
+
rupifi: PaymentApplicationModel.AggregatorConfigDetail(),
|
|
928
|
+
mswipe: PaymentApplicationModel.AggregatorConfigDetail(),
|
|
929
|
+
stripe: PaymentApplicationModel.AggregatorConfigDetail(),
|
|
930
|
+
ccavenue: PaymentApplicationModel.AggregatorConfigDetail(),
|
|
931
|
+
env: Joi.string().allow("").required(),
|
|
1039
932
|
});
|
|
1040
933
|
}
|
|
1041
934
|
|
|
1042
|
-
/** @returns {
|
|
1043
|
-
static
|
|
935
|
+
/** @returns {ErrorCodeAndDescription} */
|
|
936
|
+
static ErrorCodeAndDescription() {
|
|
1044
937
|
return Joi.object({
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
order_id: Joi.string().allow("").required(),
|
|
1048
|
-
otp: Joi.string().allow(""),
|
|
1049
|
-
request_id: Joi.string().allow(""),
|
|
1050
|
-
shipment_id: Joi.string().allow("").required(),
|
|
1051
|
-
transfer_mode: Joi.string().allow("").required(),
|
|
938
|
+
code: Joi.string().allow("").required(),
|
|
939
|
+
description: Joi.string().allow("").required(),
|
|
1052
940
|
});
|
|
1053
941
|
}
|
|
1054
942
|
|
|
1055
|
-
/** @returns {
|
|
1056
|
-
static
|
|
943
|
+
/** @returns {HttpErrorCodeAndResponse} */
|
|
944
|
+
static HttpErrorCodeAndResponse() {
|
|
1057
945
|
return Joi.object({
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
request_id: Joi.string().allow("").required(),
|
|
946
|
+
error: PaymentApplicationModel.ErrorCodeAndDescription(),
|
|
947
|
+
success: Joi.boolean().required(),
|
|
1061
948
|
});
|
|
1062
949
|
}
|
|
1063
950
|
|
|
1064
|
-
/** @returns {
|
|
1065
|
-
static
|
|
951
|
+
/** @returns {AttachCardRequest} */
|
|
952
|
+
static AttachCardRequest() {
|
|
1066
953
|
return Joi.object({
|
|
1067
|
-
|
|
1068
|
-
|
|
954
|
+
nickname: Joi.string().allow(""),
|
|
955
|
+
refresh: Joi.boolean().allow(null),
|
|
956
|
+
card_id: Joi.string().allow("").allow(null).required(),
|
|
957
|
+
name_on_card: Joi.string().allow(""),
|
|
1069
958
|
});
|
|
1070
959
|
}
|
|
1071
960
|
|
|
1072
|
-
/** @returns {
|
|
1073
|
-
static
|
|
961
|
+
/** @returns {AttachCardsResponse} */
|
|
962
|
+
static AttachCardsResponse() {
|
|
1074
963
|
return Joi.object({
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
),
|
|
1078
|
-
allow_custom_advance_amount: Joi.boolean().allow(null),
|
|
1079
|
-
amount: Joi.number(),
|
|
1080
|
-
cancellation_type: Joi.string().allow("").allow(null),
|
|
1081
|
-
description: Joi.string().allow("").allow(null),
|
|
1082
|
-
display_name: Joi.string().allow("").allow(null),
|
|
1083
|
-
is_active: Joi.boolean().allow(null),
|
|
1084
|
-
prepayment_type: Joi.string().allow("").allow(null),
|
|
1085
|
-
prepayment_value: Joi.number().allow(null),
|
|
1086
|
-
refund_time_limit: Joi.number().allow(null),
|
|
1087
|
-
time_unit: Joi.string().allow("").allow(null),
|
|
964
|
+
data: Joi.any().required(),
|
|
965
|
+
success: Joi.boolean().required(),
|
|
966
|
+
message: Joi.string().allow(""),
|
|
1088
967
|
});
|
|
1089
968
|
}
|
|
1090
969
|
|
|
1091
|
-
/** @returns {
|
|
1092
|
-
static
|
|
970
|
+
/** @returns {CardPaymentGateway} */
|
|
971
|
+
static CardPaymentGateway() {
|
|
1093
972
|
return Joi.object({
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
list: Joi.array().items(PaymentApplicationModel.PaymentModeList()),
|
|
1098
|
-
name: Joi.string().allow("").allow(null),
|
|
1099
|
-
payment_mode_id: Joi.number().allow(null),
|
|
1100
|
-
split: PaymentApplicationModel.SplitObject(),
|
|
973
|
+
api: Joi.string().allow("").allow(null),
|
|
974
|
+
aggregator: Joi.string().allow("").required(),
|
|
975
|
+
customer_id: Joi.string().allow("").allow(null),
|
|
1101
976
|
});
|
|
1102
977
|
}
|
|
1103
978
|
|
|
1104
|
-
/** @returns {
|
|
1105
|
-
static
|
|
979
|
+
/** @returns {ActiveCardPaymentGatewayResponse} */
|
|
980
|
+
static ActiveCardPaymentGatewayResponse() {
|
|
1106
981
|
return Joi.object({
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
merchant_id: Joi.string().allow("").allow(null),
|
|
1111
|
-
merchant_key: Joi.string().allow("").allow(null),
|
|
1112
|
-
pin: Joi.string().allow("").allow(null),
|
|
1113
|
-
sdk: Joi.boolean().allow(null),
|
|
1114
|
-
secret: Joi.string().allow("").required(),
|
|
1115
|
-
user_id: Joi.string().allow("").allow(null),
|
|
1116
|
-
verify_api: Joi.string().allow("").allow(null),
|
|
982
|
+
cards: PaymentApplicationModel.CardPaymentGateway().required(),
|
|
983
|
+
success: Joi.boolean().required(),
|
|
984
|
+
message: Joi.string().allow("").required(),
|
|
1117
985
|
});
|
|
1118
986
|
}
|
|
1119
987
|
|
|
1120
|
-
/** @returns {
|
|
1121
|
-
static
|
|
988
|
+
/** @returns {Card} */
|
|
989
|
+
static Card() {
|
|
1122
990
|
return Joi.object({
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
991
|
+
card_number: Joi.string().allow("").allow(null),
|
|
992
|
+
card_name: Joi.string().allow("").allow(null),
|
|
993
|
+
card_type: Joi.string().allow("").allow(null),
|
|
994
|
+
card_brand_image: Joi.string().allow("").allow(null),
|
|
995
|
+
card_reference: Joi.string().allow("").allow(null),
|
|
996
|
+
card_issuer: Joi.string().allow("").allow(null),
|
|
997
|
+
card_brand: Joi.string().allow("").allow(null),
|
|
998
|
+
expired: Joi.boolean().allow(null),
|
|
999
|
+
compliant_with_tokenisation_guidelines: Joi.boolean().allow(null),
|
|
1000
|
+
card_isin: Joi.string().allow("").allow(null),
|
|
1001
|
+
exp_year: Joi.number().allow(null),
|
|
1002
|
+
nickname: Joi.string().allow("").allow(null),
|
|
1003
|
+
aggregator_name: Joi.string().allow("").required(),
|
|
1004
|
+
card_fingerprint: Joi.string().allow("").allow(null),
|
|
1005
|
+
card_token: Joi.string().allow("").allow(null),
|
|
1006
|
+
exp_month: Joi.number().allow(null),
|
|
1007
|
+
card_id: Joi.string().allow("").allow(null),
|
|
1127
1008
|
});
|
|
1128
1009
|
}
|
|
1129
1010
|
|
|
1130
|
-
/** @returns {
|
|
1131
|
-
static
|
|
1011
|
+
/** @returns {ListCardsResponse} */
|
|
1012
|
+
static ListCardsResponse() {
|
|
1132
1013
|
return Joi.object({
|
|
1133
|
-
|
|
1134
|
-
env: Joi.string().allow("").required(),
|
|
1135
|
-
juspay: PaymentApplicationModel.AggregatorConfigDetail(),
|
|
1136
|
-
mswipe: PaymentApplicationModel.AggregatorConfigDetail(),
|
|
1137
|
-
payumoney: PaymentApplicationModel.AggregatorConfigDetail(),
|
|
1138
|
-
razorpay: PaymentApplicationModel.AggregatorConfigDetail(),
|
|
1139
|
-
rupifi: PaymentApplicationModel.AggregatorConfigDetail(),
|
|
1140
|
-
simpl: PaymentApplicationModel.AggregatorConfigDetail(),
|
|
1141
|
-
stripe: PaymentApplicationModel.AggregatorConfigDetail(),
|
|
1014
|
+
data: Joi.array().items(PaymentApplicationModel.Card()),
|
|
1142
1015
|
success: Joi.boolean().required(),
|
|
1016
|
+
message: Joi.string().allow("").required(),
|
|
1143
1017
|
});
|
|
1144
1018
|
}
|
|
1145
1019
|
|
|
1146
|
-
/** @returns {
|
|
1147
|
-
static
|
|
1020
|
+
/** @returns {DeletehCardRequest} */
|
|
1021
|
+
static DeletehCardRequest() {
|
|
1148
1022
|
return Joi.object({
|
|
1149
1023
|
card_id: Joi.string().allow("").allow(null).required(),
|
|
1150
|
-
name_on_card: Joi.string().allow(""),
|
|
1151
|
-
nickname: Joi.string().allow(""),
|
|
1152
|
-
refresh: Joi.boolean().allow(null),
|
|
1153
1024
|
});
|
|
1154
1025
|
}
|
|
1155
1026
|
|
|
1156
|
-
/** @returns {
|
|
1157
|
-
static
|
|
1027
|
+
/** @returns {DeleteCardsResponse} */
|
|
1028
|
+
static DeleteCardsResponse() {
|
|
1158
1029
|
return Joi.object({
|
|
1159
|
-
data: Joi.any().required(),
|
|
1160
|
-
message: Joi.string().allow(""),
|
|
1161
1030
|
success: Joi.boolean().required(),
|
|
1031
|
+
message: Joi.string().allow("").allow(null),
|
|
1162
1032
|
});
|
|
1163
1033
|
}
|
|
1164
1034
|
|
|
1165
|
-
/** @returns {
|
|
1166
|
-
static
|
|
1035
|
+
/** @returns {ValidateCustomerRequest} */
|
|
1036
|
+
static ValidateCustomerRequest() {
|
|
1167
1037
|
return Joi.object({
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1038
|
+
aggregator: Joi.string().allow("").required(),
|
|
1039
|
+
transaction_amount_in_paise: Joi.number().required(),
|
|
1040
|
+
phone_number: Joi.string().allow("").required(),
|
|
1041
|
+
billing_address: Joi.any(),
|
|
1042
|
+
order_items: Joi.array().items(Joi.any()),
|
|
1043
|
+
payload: Joi.string().allow("").allow(null),
|
|
1044
|
+
merchant_params: Joi.any(),
|
|
1045
|
+
delivery_address: Joi.any(),
|
|
1171
1046
|
});
|
|
1172
1047
|
}
|
|
1173
1048
|
|
|
1174
|
-
/** @returns {
|
|
1175
|
-
static
|
|
1049
|
+
/** @returns {ValidateCustomerResponse} */
|
|
1050
|
+
static ValidateCustomerResponse() {
|
|
1176
1051
|
return Joi.object({
|
|
1177
|
-
|
|
1178
|
-
account_no: Joi.string().allow("").required(),
|
|
1179
|
-
bank_name: Joi.string().allow("").required(),
|
|
1180
|
-
branch_name: Joi.string().allow("").required(),
|
|
1181
|
-
ifsc_code: Joi.string().allow("").required(),
|
|
1182
|
-
});
|
|
1183
|
-
}
|
|
1184
|
-
|
|
1185
|
-
/** @returns {BeneficiaryModeDetails} */
|
|
1186
|
-
static BeneficiaryModeDetails() {
|
|
1187
|
-
return Joi.object({
|
|
1188
|
-
account_holder: Joi.string().allow("").required(),
|
|
1189
|
-
account_no: Joi.string().allow("").required(),
|
|
1190
|
-
address: Joi.string().allow(""),
|
|
1191
|
-
bank_name: Joi.string().allow("").required(),
|
|
1192
|
-
branch_name: Joi.string().allow("").required(),
|
|
1193
|
-
comment: Joi.string().allow(""),
|
|
1194
|
-
email: Joi.string().allow("").required(),
|
|
1195
|
-
ifsc_code: Joi.string().allow("").required(),
|
|
1196
|
-
mobile: Joi.string().allow("").required(),
|
|
1197
|
-
vpa: Joi.string().allow("").allow(null),
|
|
1198
|
-
wallet: Joi.string().allow("").allow(null),
|
|
1199
|
-
});
|
|
1200
|
-
}
|
|
1201
|
-
|
|
1202
|
-
/** @returns {BusinessDetails} */
|
|
1203
|
-
static BusinessDetails() {
|
|
1204
|
-
return Joi.object({
|
|
1205
|
-
address: PaymentApplicationModel.KYCAddress(),
|
|
1206
|
-
business_ownership_type: Joi.string().allow("").allow(null),
|
|
1207
|
-
business_type: Joi.string().allow("").allow(null),
|
|
1208
|
-
entity_type: Joi.string().allow("").allow(null),
|
|
1209
|
-
fda: Joi.string().allow("").allow(null),
|
|
1210
|
-
fssai: Joi.string().allow("").allow(null),
|
|
1211
|
-
gstin: Joi.string().allow("").allow(null),
|
|
1212
|
-
name: Joi.string().allow("").allow(null),
|
|
1213
|
-
pan: Joi.string().allow("").allow(null),
|
|
1214
|
-
shop_and_establishment: Joi.any(),
|
|
1215
|
-
vintage: Joi.string().allow("").allow(null),
|
|
1216
|
-
});
|
|
1217
|
-
}
|
|
1218
|
-
|
|
1219
|
-
/** @returns {CancelOrResendPaymentLinkRequest} */
|
|
1220
|
-
static CancelOrResendPaymentLinkRequest() {
|
|
1221
|
-
return Joi.object({
|
|
1222
|
-
payment_link_id: Joi.string().allow("").required(),
|
|
1223
|
-
});
|
|
1224
|
-
}
|
|
1225
|
-
|
|
1226
|
-
/** @returns {CancelPaymentLinkResponse} */
|
|
1227
|
-
static CancelPaymentLinkResponse() {
|
|
1228
|
-
return Joi.object({
|
|
1229
|
-
message: Joi.string().allow("").required(),
|
|
1230
|
-
status_code: Joi.number().required(),
|
|
1231
|
-
success: Joi.boolean().required(),
|
|
1232
|
-
});
|
|
1233
|
-
}
|
|
1234
|
-
|
|
1235
|
-
/** @returns {Card} */
|
|
1236
|
-
static Card() {
|
|
1237
|
-
return Joi.object({
|
|
1238
|
-
aggregator_name: Joi.string().allow("").required(),
|
|
1239
|
-
card_brand: Joi.string().allow("").allow(null),
|
|
1240
|
-
card_brand_image: Joi.string().allow("").allow(null),
|
|
1241
|
-
card_fingerprint: Joi.string().allow("").allow(null),
|
|
1242
|
-
card_id: Joi.string().allow("").allow(null),
|
|
1243
|
-
card_isin: Joi.string().allow("").allow(null),
|
|
1244
|
-
card_issuer: Joi.string().allow("").allow(null),
|
|
1245
|
-
card_name: Joi.string().allow("").allow(null),
|
|
1246
|
-
card_number: Joi.string().allow("").allow(null),
|
|
1247
|
-
card_reference: Joi.string().allow("").allow(null),
|
|
1248
|
-
card_token: Joi.string().allow("").allow(null),
|
|
1249
|
-
card_type: Joi.string().allow("").allow(null),
|
|
1250
|
-
compliant_with_tokenisation_guidelines: Joi.boolean().allow(null),
|
|
1251
|
-
exp_month: Joi.number().allow(null),
|
|
1252
|
-
exp_year: Joi.number().allow(null),
|
|
1253
|
-
expired: Joi.boolean().allow(null),
|
|
1254
|
-
nickname: Joi.string().allow("").allow(null),
|
|
1255
|
-
});
|
|
1256
|
-
}
|
|
1257
|
-
|
|
1258
|
-
/** @returns {CardDetails} */
|
|
1259
|
-
static CardDetails() {
|
|
1260
|
-
return Joi.object({
|
|
1261
|
-
bank: Joi.string().allow("").required(),
|
|
1262
|
-
bank_code: Joi.string().allow("").allow(null).required(),
|
|
1263
|
-
card_brand: Joi.string().allow("").required(),
|
|
1264
|
-
card_exp_month: Joi.string().allow(""),
|
|
1265
|
-
card_exp_year: Joi.string().allow(""),
|
|
1266
|
-
card_object: Joi.string().allow("").required(),
|
|
1267
|
-
card_sub_type: Joi.string().allow("").allow(null).required(),
|
|
1268
|
-
card_token: Joi.string().allow(""),
|
|
1269
|
-
country: Joi.string().allow("").required(),
|
|
1270
|
-
extended_card_type: Joi.string().allow("").required(),
|
|
1271
|
-
id: Joi.string().allow("").required(),
|
|
1272
|
-
is_domestic_card: Joi.boolean().required(),
|
|
1273
|
-
name_on_card: Joi.string().allow(""),
|
|
1274
|
-
status: Joi.boolean().required(),
|
|
1275
|
-
type: Joi.string().allow("").required(),
|
|
1276
|
-
user: Joi.string().allow(""),
|
|
1277
|
-
});
|
|
1278
|
-
}
|
|
1279
|
-
|
|
1280
|
-
/** @returns {CardDetailsResponse} */
|
|
1281
|
-
static CardDetailsResponse() {
|
|
1282
|
-
return Joi.object({
|
|
1283
|
-
data: PaymentApplicationModel.CardDetails().required(),
|
|
1052
|
+
data: Joi.any().required(),
|
|
1284
1053
|
success: Joi.boolean().required(),
|
|
1285
|
-
|
|
1286
|
-
}
|
|
1287
|
-
|
|
1288
|
-
/** @returns {CardPaymentGateway} */
|
|
1289
|
-
static CardPaymentGateway() {
|
|
1290
|
-
return Joi.object({
|
|
1291
|
-
aggregator: Joi.string().allow("").required(),
|
|
1292
|
-
api: Joi.string().allow("").allow(null),
|
|
1293
|
-
customer_id: Joi.string().allow("").allow(null),
|
|
1054
|
+
message: Joi.string().allow("").required(),
|
|
1294
1055
|
});
|
|
1295
1056
|
}
|
|
1296
1057
|
|
|
1297
1058
|
/** @returns {ChargeCustomerRequest} */
|
|
1298
1059
|
static ChargeCustomerRequest() {
|
|
1299
1060
|
return Joi.object({
|
|
1061
|
+
verified: Joi.boolean().allow(null),
|
|
1300
1062
|
aggregator: Joi.string().allow("").required(),
|
|
1301
|
-
amount: Joi.number().allow(null).required(),
|
|
1302
1063
|
order_id: Joi.string().allow("").required(),
|
|
1303
1064
|
transaction_token: Joi.string().allow("").allow(null),
|
|
1304
|
-
|
|
1065
|
+
amount: Joi.number().allow(null).required(),
|
|
1305
1066
|
});
|
|
1306
1067
|
}
|
|
1307
1068
|
|
|
1308
1069
|
/** @returns {ChargeCustomerResponse} */
|
|
1309
1070
|
static ChargeCustomerResponse() {
|
|
1310
1071
|
return Joi.object({
|
|
1311
|
-
|
|
1072
|
+
status: Joi.string().allow("").required(),
|
|
1312
1073
|
cart_id: Joi.string().allow("").allow(null),
|
|
1313
|
-
|
|
1074
|
+
success: Joi.boolean().required(),
|
|
1075
|
+
aggregator: Joi.string().allow("").required(),
|
|
1314
1076
|
message: Joi.string().allow("").required(),
|
|
1315
1077
|
order_id: Joi.string().allow("").required(),
|
|
1316
|
-
|
|
1317
|
-
success: Joi.boolean().required(),
|
|
1078
|
+
delivery_address_id: Joi.string().allow("").allow(null),
|
|
1318
1079
|
});
|
|
1319
1080
|
}
|
|
1320
1081
|
|
|
1321
|
-
/** @returns {
|
|
1322
|
-
static
|
|
1082
|
+
/** @returns {PaymentInitializationRequest} */
|
|
1083
|
+
static PaymentInitializationRequest() {
|
|
1323
1084
|
return Joi.object({
|
|
1324
|
-
|
|
1325
|
-
|
|
1085
|
+
razorpay_payment_id: Joi.string().allow("").allow(null),
|
|
1086
|
+
method: Joi.string().allow("").required(),
|
|
1087
|
+
device_id: Joi.string().allow("").allow(null),
|
|
1088
|
+
aggregator: Joi.string().allow("").required(),
|
|
1089
|
+
customer_id: Joi.string().allow("").required(),
|
|
1090
|
+
contact: Joi.string().allow("").required(),
|
|
1091
|
+
merchant_order_id: Joi.string().allow("").required(),
|
|
1092
|
+
vpa: Joi.string().allow("").allow(null),
|
|
1093
|
+
order_id: Joi.string().allow("").required(),
|
|
1094
|
+
currency: Joi.string().allow("").required(),
|
|
1095
|
+
timeout: Joi.number().allow(null),
|
|
1096
|
+
amount: Joi.number().allow(null).required(),
|
|
1097
|
+
email: Joi.string().allow("").required(),
|
|
1326
1098
|
});
|
|
1327
1099
|
}
|
|
1328
1100
|
|
|
1329
|
-
/** @returns {
|
|
1330
|
-
static
|
|
1101
|
+
/** @returns {PaymentInitializationResponse} */
|
|
1102
|
+
static PaymentInitializationResponse() {
|
|
1331
1103
|
return Joi.object({
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1104
|
+
status: Joi.string().allow(""),
|
|
1105
|
+
razorpay_payment_id: Joi.string().allow("").allow(null),
|
|
1106
|
+
aggregator_order_id: Joi.string().allow(""),
|
|
1107
|
+
method: Joi.string().allow("").required(),
|
|
1108
|
+
success: Joi.boolean().required(),
|
|
1109
|
+
upi_poll_url: Joi.string().allow("").allow(null),
|
|
1110
|
+
virtual_id: Joi.string().allow("").allow(null),
|
|
1111
|
+
device_id: Joi.string().allow("").allow(null),
|
|
1112
|
+
polling_url: Joi.string().allow("").required(),
|
|
1113
|
+
aggregator: Joi.string().allow("").required(),
|
|
1114
|
+
merchant_order_id: Joi.string().allow("").required(),
|
|
1337
1115
|
customer_id: Joi.string().allow("").allow(null),
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
}
|
|
1344
|
-
|
|
1345
|
-
/** @returns {CreateOrderUserPaymentMethods} */
|
|
1346
|
-
static CreateOrderUserPaymentMethods() {
|
|
1347
|
-
return Joi.object({
|
|
1348
|
-
meta: PaymentApplicationModel.PaymentMethodsMeta().required(),
|
|
1349
|
-
mode: Joi.string().allow("").required(),
|
|
1350
|
-
name: Joi.string().allow("").required(),
|
|
1116
|
+
vpa: Joi.string().allow("").allow(null),
|
|
1117
|
+
currency: Joi.string().allow("").allow(null),
|
|
1118
|
+
timeout: Joi.number().allow(null),
|
|
1119
|
+
amount: Joi.number().allow(null),
|
|
1120
|
+
bqr_image: Joi.string().allow("").allow(null),
|
|
1351
1121
|
});
|
|
1352
1122
|
}
|
|
1353
1123
|
|
|
1354
|
-
/** @returns {
|
|
1355
|
-
static
|
|
1124
|
+
/** @returns {PaymentStatusUpdateRequest} */
|
|
1125
|
+
static PaymentStatusUpdateRequest() {
|
|
1356
1126
|
return Joi.object({
|
|
1127
|
+
status: Joi.string().allow("").required(),
|
|
1128
|
+
merchant_transaction_id: Joi.string().allow("").required(),
|
|
1129
|
+
method: Joi.string().allow("").required(),
|
|
1130
|
+
device_id: Joi.string().allow("").allow(null),
|
|
1131
|
+
aggregator: Joi.string().allow("").required(),
|
|
1132
|
+
customer_id: Joi.string().allow("").required(),
|
|
1133
|
+
contact: Joi.string().allow("").required(),
|
|
1134
|
+
merchant_order_id: Joi.string().allow("").required(),
|
|
1135
|
+
vpa: Joi.string().allow(""),
|
|
1136
|
+
order_id: Joi.string().allow("").required(),
|
|
1357
1137
|
currency: Joi.string().allow("").required(),
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
payment_link_id: Joi.string().allow("").required(),
|
|
1361
|
-
payment_methods: PaymentApplicationModel.CreateOrderUserPaymentMethods().required(),
|
|
1362
|
-
success_callback_url: Joi.string().allow("").required(),
|
|
1138
|
+
amount: Joi.number().allow(null).required(),
|
|
1139
|
+
email: Joi.string().allow("").required(),
|
|
1363
1140
|
});
|
|
1364
1141
|
}
|
|
1365
1142
|
|
|
1366
|
-
/** @returns {
|
|
1367
|
-
static
|
|
1143
|
+
/** @returns {PaymentStatusUpdateResponse} */
|
|
1144
|
+
static PaymentStatusUpdateResponse() {
|
|
1368
1145
|
return Joi.object({
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
status_code: Joi.number().required(),
|
|
1375
|
-
success: Joi.boolean().required(),
|
|
1146
|
+
status: Joi.string().allow("").required(),
|
|
1147
|
+
success: Joi.boolean().allow(null),
|
|
1148
|
+
retry: Joi.boolean().required(),
|
|
1149
|
+
redirect_url: Joi.string().allow("").allow(null),
|
|
1150
|
+
aggregator_name: Joi.string().allow("").required(),
|
|
1376
1151
|
});
|
|
1377
1152
|
}
|
|
1378
1153
|
|
|
1379
|
-
/** @returns {
|
|
1380
|
-
static
|
|
1154
|
+
/** @returns {IntentAppErrorList} */
|
|
1155
|
+
static IntentAppErrorList() {
|
|
1381
1156
|
return Joi.object({
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
cart_id: Joi.string().allow("").required(),
|
|
1385
|
-
checkout_mode: Joi.string().allow("").required(),
|
|
1157
|
+
code: Joi.string().allow("").allow(null),
|
|
1158
|
+
package_name: Joi.string().allow("").allow(null),
|
|
1386
1159
|
});
|
|
1387
1160
|
}
|
|
1388
1161
|
|
|
1389
|
-
/** @returns {
|
|
1390
|
-
static
|
|
1162
|
+
/** @returns {PaymentModeLogo} */
|
|
1163
|
+
static PaymentModeLogo() {
|
|
1391
1164
|
return Joi.object({
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
email: Joi.string().allow("").required(),
|
|
1395
|
-
external_order_id: Joi.string().allow("").required(),
|
|
1396
|
-
meta: PaymentApplicationModel.CreatePaymentLinkMeta().required(),
|
|
1397
|
-
mobile_number: Joi.string().allow("").required(),
|
|
1165
|
+
large: Joi.string().allow("").required(),
|
|
1166
|
+
small: Joi.string().allow("").required(),
|
|
1398
1167
|
});
|
|
1399
1168
|
}
|
|
1400
1169
|
|
|
1401
|
-
/** @returns {
|
|
1402
|
-
static
|
|
1170
|
+
/** @returns {IntentApp} */
|
|
1171
|
+
static IntentApp() {
|
|
1403
1172
|
return Joi.object({
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
status_code: Joi.number().required(),
|
|
1409
|
-
success: Joi.boolean().required(),
|
|
1173
|
+
code: Joi.string().allow("").allow(null),
|
|
1174
|
+
package_name: Joi.string().allow("").allow(null),
|
|
1175
|
+
logos: Joi.any().allow(null),
|
|
1176
|
+
display_name: Joi.string().allow("").allow(null),
|
|
1410
1177
|
});
|
|
1411
1178
|
}
|
|
1412
1179
|
|
|
1413
|
-
/** @returns {
|
|
1414
|
-
static
|
|
1180
|
+
/** @returns {PaymentModeList} */
|
|
1181
|
+
static PaymentModeList() {
|
|
1415
1182
|
return Joi.object({
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1183
|
+
card_number: Joi.string().allow("").allow(null),
|
|
1184
|
+
merchant_code: Joi.string().allow("").allow(null),
|
|
1185
|
+
card_reference: Joi.string().allow("").allow(null),
|
|
1186
|
+
card_issuer: Joi.string().allow("").allow(null),
|
|
1187
|
+
compliant_with_tokenisation_guidelines: Joi.boolean().allow(null),
|
|
1188
|
+
code: Joi.string().allow("").allow(null),
|
|
1189
|
+
cod_limit: Joi.number().allow(null),
|
|
1190
|
+
intent_flow: Joi.boolean().allow(null),
|
|
1191
|
+
fynd_vpa: Joi.string().allow("").allow(null),
|
|
1192
|
+
intent_app_error_dict_list: Joi.array().items(
|
|
1193
|
+
PaymentApplicationModel.IntentAppErrorList()
|
|
1194
|
+
),
|
|
1195
|
+
aggregator_name: Joi.string().allow("").required(),
|
|
1196
|
+
card_fingerprint: Joi.string().allow("").allow(null),
|
|
1197
|
+
intent_app_error_list: Joi.array().items(Joi.string().allow("")),
|
|
1198
|
+
intent_app: Joi.array().items(PaymentApplicationModel.IntentApp()),
|
|
1199
|
+
expired: Joi.boolean().allow(null),
|
|
1200
|
+
retry_count: Joi.number().allow(null),
|
|
1201
|
+
exp_year: Joi.number().allow(null),
|
|
1202
|
+
exp_month: Joi.number().allow(null),
|
|
1203
|
+
card_id: Joi.string().allow("").allow(null),
|
|
1204
|
+
remaining_limit: Joi.number().allow(null),
|
|
1205
|
+
display_priority: Joi.number().allow(null),
|
|
1206
|
+
card_brand: Joi.string().allow("").allow(null),
|
|
1207
|
+
cod_limit_per_order: Joi.number().allow(null),
|
|
1208
|
+
logo_url: Joi.any().allow(null),
|
|
1209
|
+
nickname: Joi.string().allow("").allow(null),
|
|
1210
|
+
card_name: Joi.string().allow("").allow(null),
|
|
1211
|
+
card_type: Joi.string().allow("").allow(null),
|
|
1212
|
+
card_brand_image: Joi.string().allow("").allow(null),
|
|
1213
|
+
display_name: Joi.string().allow("").allow(null),
|
|
1214
|
+
card_isin: Joi.string().allow("").allow(null),
|
|
1215
|
+
timeout: Joi.number().allow(null),
|
|
1216
|
+
card_token: Joi.string().allow("").allow(null),
|
|
1217
|
+
name: Joi.string().allow("").allow(null),
|
|
1419
1218
|
});
|
|
1420
1219
|
}
|
|
1421
1220
|
|
|
1422
|
-
/** @returns {
|
|
1423
|
-
static
|
|
1221
|
+
/** @returns {RootPaymentMode} */
|
|
1222
|
+
static RootPaymentMode() {
|
|
1424
1223
|
return Joi.object({
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
merchant_customer_ref_id: Joi.string().allow("").allow(null),
|
|
1435
|
-
repayment_url: Joi.string().allow("").allow(null),
|
|
1436
|
-
soa_url: Joi.string().allow("").allow(null),
|
|
1437
|
-
status: Joi.string().allow("").allow(null),
|
|
1438
|
-
status_message: Joi.string().allow("").allow(null),
|
|
1439
|
-
total_due_amount: PaymentApplicationModel.BalanceDetails(),
|
|
1224
|
+
is_pay_by_card_pl: Joi.boolean().allow(null),
|
|
1225
|
+
add_card_enabled: Joi.boolean().allow(null),
|
|
1226
|
+
display_priority: Joi.number().required(),
|
|
1227
|
+
display_name: Joi.string().allow("").required(),
|
|
1228
|
+
list: Joi.array().items(PaymentApplicationModel.PaymentModeList()),
|
|
1229
|
+
save_card: Joi.boolean().allow(null),
|
|
1230
|
+
aggregator_name: Joi.string().allow("").allow(null),
|
|
1231
|
+
name: Joi.string().allow("").required(),
|
|
1232
|
+
anonymous_enable: Joi.boolean().allow(null),
|
|
1440
1233
|
});
|
|
1441
1234
|
}
|
|
1442
1235
|
|
|
1443
|
-
/** @returns {
|
|
1444
|
-
static
|
|
1236
|
+
/** @returns {AggregatorRoute} */
|
|
1237
|
+
static AggregatorRoute() {
|
|
1445
1238
|
return Joi.object({
|
|
1446
|
-
data:
|
|
1447
|
-
|
|
1239
|
+
data: Joi.any().allow(null),
|
|
1240
|
+
payment_flow_data: Joi.string().allow("").allow(null),
|
|
1241
|
+
payment_flow: Joi.string().allow("").allow(null),
|
|
1242
|
+
api_link: Joi.string().allow("").allow(null),
|
|
1448
1243
|
});
|
|
1449
1244
|
}
|
|
1450
1245
|
|
|
1451
|
-
/** @returns {
|
|
1452
|
-
static
|
|
1246
|
+
/** @returns {PaymentFlow} */
|
|
1247
|
+
static PaymentFlow() {
|
|
1453
1248
|
return Joi.object({
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1249
|
+
bqr_razorpay: Joi.any().allow(null),
|
|
1250
|
+
fynd: Joi.any().allow(null),
|
|
1251
|
+
epaylater: Joi.any().allow(null),
|
|
1252
|
+
razorpay: Joi.any().allow(null),
|
|
1253
|
+
juspay: Joi.any().allow(null),
|
|
1254
|
+
ajiodhan: Joi.any().allow(null),
|
|
1255
|
+
simpl: Joi.any().allow(null),
|
|
1256
|
+
rupifi: Joi.any().allow(null),
|
|
1257
|
+
mswipe: Joi.any().allow(null),
|
|
1258
|
+
stripe: Joi.any().allow(null),
|
|
1259
|
+
ccavenue: Joi.any().allow(null),
|
|
1260
|
+
payubiz: Joi.any().allow(null),
|
|
1261
|
+
jiopay: Joi.any().allow(null),
|
|
1262
|
+
upi_razorpay: Joi.any().allow(null),
|
|
1461
1263
|
});
|
|
1462
1264
|
}
|
|
1463
1265
|
|
|
1464
|
-
/** @returns {
|
|
1465
|
-
static
|
|
1266
|
+
/** @returns {PaymentOptionAndFlow} */
|
|
1267
|
+
static PaymentOptionAndFlow() {
|
|
1466
1268
|
return Joi.object({
|
|
1467
|
-
|
|
1468
|
-
|
|
1269
|
+
payment_option: Joi.array()
|
|
1270
|
+
.items(PaymentApplicationModel.RootPaymentMode())
|
|
1271
|
+
.required(),
|
|
1272
|
+
payment_flows: PaymentApplicationModel.PaymentFlow().required(),
|
|
1469
1273
|
});
|
|
1470
1274
|
}
|
|
1471
1275
|
|
|
1472
|
-
/** @returns {
|
|
1473
|
-
static
|
|
1276
|
+
/** @returns {PaymentModeRouteResponse} */
|
|
1277
|
+
static PaymentModeRouteResponse() {
|
|
1474
1278
|
return Joi.object({
|
|
1475
|
-
|
|
1279
|
+
payment_options: PaymentApplicationModel.PaymentOptionAndFlow().required(),
|
|
1476
1280
|
success: Joi.boolean().required(),
|
|
1477
1281
|
});
|
|
1478
1282
|
}
|
|
1479
1283
|
|
|
1480
|
-
/** @returns {
|
|
1481
|
-
static
|
|
1284
|
+
/** @returns {RupifiBannerData} */
|
|
1285
|
+
static RupifiBannerData() {
|
|
1482
1286
|
return Joi.object({
|
|
1483
|
-
|
|
1287
|
+
status: Joi.string().allow(""),
|
|
1288
|
+
kyc_url: Joi.string().allow(""),
|
|
1484
1289
|
});
|
|
1485
1290
|
}
|
|
1486
1291
|
|
|
1487
|
-
/** @returns {
|
|
1488
|
-
static
|
|
1292
|
+
/** @returns {RupifiBannerResponse} */
|
|
1293
|
+
static RupifiBannerResponse() {
|
|
1489
1294
|
return Joi.object({
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
device_type: Joi.string().allow("").allow(null),
|
|
1493
|
-
identification_number: Joi.string().allow("").allow(null),
|
|
1494
|
-
identifier_type: Joi.string().allow("").allow(null),
|
|
1495
|
-
os: Joi.string().allow("").allow(null),
|
|
1496
|
-
os_version: Joi.string().allow("").allow(null),
|
|
1295
|
+
data: PaymentApplicationModel.RupifiBannerData().required(),
|
|
1296
|
+
success: Joi.boolean().required(),
|
|
1497
1297
|
});
|
|
1498
1298
|
}
|
|
1499
1299
|
|
|
1500
1300
|
/** @returns {EpaylaterBannerData} */
|
|
1501
1301
|
static EpaylaterBannerData() {
|
|
1502
1302
|
return Joi.object({
|
|
1503
|
-
display: Joi.boolean().required(),
|
|
1504
|
-
message: Joi.string().allow(""),
|
|
1505
1303
|
status: Joi.string().allow(""),
|
|
1304
|
+
message: Joi.string().allow(""),
|
|
1305
|
+
display: Joi.boolean().required(),
|
|
1506
1306
|
});
|
|
1507
1307
|
}
|
|
1508
1308
|
|
|
@@ -1514,754 +1314,683 @@ class PaymentApplicationModel {
|
|
|
1514
1314
|
});
|
|
1515
1315
|
}
|
|
1516
1316
|
|
|
1517
|
-
/** @returns {
|
|
1518
|
-
static
|
|
1317
|
+
/** @returns {ResendOrCancelPaymentRequest} */
|
|
1318
|
+
static ResendOrCancelPaymentRequest() {
|
|
1519
1319
|
return Joi.object({
|
|
1520
|
-
|
|
1521
|
-
|
|
1320
|
+
order_id: Joi.string().allow("").required(),
|
|
1321
|
+
device_id: Joi.string().allow("").allow(null),
|
|
1322
|
+
request_type: Joi.string().allow("").required(),
|
|
1522
1323
|
});
|
|
1523
1324
|
}
|
|
1524
1325
|
|
|
1525
|
-
/** @returns {
|
|
1526
|
-
static
|
|
1326
|
+
/** @returns {LinkStatus} */
|
|
1327
|
+
static LinkStatus() {
|
|
1527
1328
|
return Joi.object({
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
success: Joi.boolean().required(),
|
|
1329
|
+
status: Joi.boolean().required(),
|
|
1330
|
+
message: Joi.string().allow("").required(),
|
|
1531
1331
|
});
|
|
1532
1332
|
}
|
|
1533
1333
|
|
|
1534
|
-
/** @returns {
|
|
1535
|
-
static
|
|
1334
|
+
/** @returns {ResendOrCancelPaymentResponse} */
|
|
1335
|
+
static ResendOrCancelPaymentResponse() {
|
|
1536
1336
|
return Joi.object({
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
expired: Joi.boolean().allow(null),
|
|
1540
|
-
invalid_id: Joi.boolean().allow(null),
|
|
1541
|
-
merchant_name: Joi.string().allow("").allow(null),
|
|
1542
|
-
merchant_order_id: Joi.string().allow("").allow(null),
|
|
1543
|
-
msg: Joi.string().allow("").allow(null),
|
|
1544
|
-
payment_transaction_id: Joi.string().allow("").allow(null),
|
|
1337
|
+
data: PaymentApplicationModel.LinkStatus().required(),
|
|
1338
|
+
success: Joi.boolean().required(),
|
|
1545
1339
|
});
|
|
1546
1340
|
}
|
|
1547
1341
|
|
|
1548
|
-
/** @returns {
|
|
1549
|
-
static
|
|
1342
|
+
/** @returns {renderHTMLRequest} */
|
|
1343
|
+
static renderHTMLRequest() {
|
|
1550
1344
|
return Joi.object({
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
status_code: Joi.number().required(),
|
|
1554
|
-
success: Joi.boolean().required(),
|
|
1345
|
+
returntype: Joi.string().allow("").allow(null),
|
|
1346
|
+
base64_html: Joi.string().allow("").required(),
|
|
1555
1347
|
});
|
|
1556
1348
|
}
|
|
1557
1349
|
|
|
1558
|
-
/** @returns {
|
|
1559
|
-
static
|
|
1350
|
+
/** @returns {renderHTMLResponse} */
|
|
1351
|
+
static renderHTMLResponse() {
|
|
1560
1352
|
return Joi.object({
|
|
1561
|
-
|
|
1562
|
-
external_order_id: Joi.string().allow("").allow(null),
|
|
1563
|
-
merchant_name: Joi.string().allow("").allow(null),
|
|
1564
|
-
message: Joi.string().allow("").required(),
|
|
1565
|
-
payment_link_current_status: Joi.string().allow("").allow(null),
|
|
1566
|
-
payment_link_url: Joi.string().allow("").allow(null),
|
|
1567
|
-
polling_timeout: Joi.number().allow(null),
|
|
1568
|
-
status_code: Joi.number().required(),
|
|
1569
|
-
success: Joi.boolean().required(),
|
|
1353
|
+
html: Joi.string().allow("").required(),
|
|
1570
1354
|
});
|
|
1571
1355
|
}
|
|
1572
1356
|
|
|
1573
|
-
/** @returns {
|
|
1574
|
-
static
|
|
1357
|
+
/** @returns {ValidateVPARequest} */
|
|
1358
|
+
static ValidateVPARequest() {
|
|
1575
1359
|
return Joi.object({
|
|
1576
|
-
|
|
1577
|
-
success: Joi.boolean().required(),
|
|
1360
|
+
upi_vpa: Joi.string().allow("").required(),
|
|
1578
1361
|
});
|
|
1579
1362
|
}
|
|
1580
1363
|
|
|
1581
|
-
/** @returns {
|
|
1582
|
-
static
|
|
1364
|
+
/** @returns {ValidateUPI} */
|
|
1365
|
+
static ValidateUPI() {
|
|
1583
1366
|
return Joi.object({
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1367
|
+
status: Joi.string().allow("").required(),
|
|
1368
|
+
customer_name: Joi.string().allow("").required(),
|
|
1369
|
+
is_valid: Joi.boolean().required(),
|
|
1370
|
+
upi_vpa: Joi.string().allow("").required(),
|
|
1587
1371
|
});
|
|
1588
1372
|
}
|
|
1589
1373
|
|
|
1590
|
-
/** @returns {
|
|
1591
|
-
static
|
|
1374
|
+
/** @returns {ValidateVPAResponse} */
|
|
1375
|
+
static ValidateVPAResponse() {
|
|
1592
1376
|
return Joi.object({
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
logos: PaymentApplicationModel.PaymentModeLogo(),
|
|
1596
|
-
package_name: Joi.string().allow("").allow(null),
|
|
1377
|
+
data: PaymentApplicationModel.ValidateUPI().required(),
|
|
1378
|
+
success: Joi.boolean().required(),
|
|
1597
1379
|
});
|
|
1598
1380
|
}
|
|
1599
1381
|
|
|
1600
|
-
/** @returns {
|
|
1601
|
-
static
|
|
1382
|
+
/** @returns {CardDetails} */
|
|
1383
|
+
static CardDetails() {
|
|
1602
1384
|
return Joi.object({
|
|
1603
|
-
|
|
1604
|
-
|
|
1385
|
+
status: Joi.boolean().required(),
|
|
1386
|
+
country: Joi.string().allow("").required(),
|
|
1387
|
+
bank_code: Joi.string().allow("").allow(null).required(),
|
|
1388
|
+
id: Joi.string().allow("").required(),
|
|
1389
|
+
card_exp_year: Joi.string().allow(""),
|
|
1390
|
+
card_brand: Joi.string().allow("").required(),
|
|
1391
|
+
type: Joi.string().allow("").required(),
|
|
1392
|
+
card_sub_type: Joi.string().allow("").allow(null).required(),
|
|
1393
|
+
is_domestic_card: Joi.boolean().required(),
|
|
1394
|
+
name_on_card: Joi.string().allow(""),
|
|
1395
|
+
card_exp_month: Joi.string().allow(""),
|
|
1396
|
+
extended_card_type: Joi.string().allow("").required(),
|
|
1397
|
+
card_object: Joi.string().allow("").required(),
|
|
1398
|
+
card_token: Joi.string().allow(""),
|
|
1399
|
+
user: Joi.string().allow(""),
|
|
1400
|
+
bank: Joi.string().allow("").required(),
|
|
1605
1401
|
});
|
|
1606
1402
|
}
|
|
1607
1403
|
|
|
1608
|
-
/** @returns {
|
|
1609
|
-
static
|
|
1404
|
+
/** @returns {CardDetailsResponse} */
|
|
1405
|
+
static CardDetailsResponse() {
|
|
1610
1406
|
return Joi.object({
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
city: Joi.string().allow("").required(),
|
|
1614
|
-
land_mark: Joi.string().allow("").allow(null),
|
|
1615
|
-
ownership_type: Joi.string().allow("").allow(null),
|
|
1616
|
-
pincode: Joi.string().allow("").required(),
|
|
1617
|
-
state: Joi.string().allow("").required(),
|
|
1407
|
+
data: PaymentApplicationModel.CardDetails().required(),
|
|
1408
|
+
success: Joi.boolean().required(),
|
|
1618
1409
|
});
|
|
1619
1410
|
}
|
|
1620
1411
|
|
|
1621
|
-
/** @returns {
|
|
1622
|
-
static
|
|
1412
|
+
/** @returns {TransferItemsDetails} */
|
|
1413
|
+
static TransferItemsDetails() {
|
|
1623
1414
|
return Joi.object({
|
|
1624
|
-
|
|
1625
|
-
|
|
1415
|
+
id: Joi.number().required(),
|
|
1416
|
+
display_name: Joi.string().allow(""),
|
|
1417
|
+
logo_large: Joi.string().allow("").required(),
|
|
1418
|
+
logo_small: Joi.string().allow("").required(),
|
|
1419
|
+
name: Joi.string().allow("").required(),
|
|
1626
1420
|
});
|
|
1627
1421
|
}
|
|
1628
1422
|
|
|
1629
|
-
/** @returns {
|
|
1630
|
-
static
|
|
1423
|
+
/** @returns {TransferModeDetails} */
|
|
1424
|
+
static TransferModeDetails() {
|
|
1631
1425
|
return Joi.object({
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
success: Joi.boolean().required(),
|
|
1426
|
+
items: Joi.array().items(PaymentApplicationModel.TransferItemsDetails()),
|
|
1427
|
+
display_name: Joi.string().allow("").required(),
|
|
1635
1428
|
});
|
|
1636
1429
|
}
|
|
1637
1430
|
|
|
1638
|
-
/** @returns {
|
|
1639
|
-
static
|
|
1431
|
+
/** @returns {TransferModeResponse} */
|
|
1432
|
+
static TransferModeResponse() {
|
|
1640
1433
|
return Joi.object({
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1434
|
+
data: Joi.array()
|
|
1435
|
+
.items(PaymentApplicationModel.TransferModeDetails())
|
|
1436
|
+
.required(),
|
|
1644
1437
|
});
|
|
1645
1438
|
}
|
|
1646
1439
|
|
|
1647
|
-
/** @returns {
|
|
1648
|
-
static
|
|
1440
|
+
/** @returns {UpdateRefundTransferModeRequest} */
|
|
1441
|
+
static UpdateRefundTransferModeRequest() {
|
|
1649
1442
|
return Joi.object({
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
success: Joi.boolean().required(),
|
|
1443
|
+
enable: Joi.boolean().required(),
|
|
1444
|
+
transfer_mode: Joi.string().allow("").required(),
|
|
1653
1445
|
});
|
|
1654
1446
|
}
|
|
1655
1447
|
|
|
1656
|
-
/** @returns {
|
|
1657
|
-
static
|
|
1448
|
+
/** @returns {UpdateRefundTransferModeResponse} */
|
|
1449
|
+
static UpdateRefundTransferModeResponse() {
|
|
1658
1450
|
return Joi.object({
|
|
1659
|
-
|
|
1660
|
-
is_eligible_for_txn: Joi.boolean(),
|
|
1661
|
-
merchant_customer_ref_id: Joi.string().allow(""),
|
|
1662
|
-
redirect_url: Joi.string().allow(""),
|
|
1663
|
-
session: Joi.any(),
|
|
1664
|
-
status: Joi.boolean().required(),
|
|
1665
|
-
status_remark: Joi.string().allow(""),
|
|
1451
|
+
success: Joi.boolean(),
|
|
1666
1452
|
});
|
|
1667
1453
|
}
|
|
1668
1454
|
|
|
1669
1455
|
/** @returns {OrderBeneficiaryDetails} */
|
|
1670
1456
|
static OrderBeneficiaryDetails() {
|
|
1671
1457
|
return Joi.object({
|
|
1672
|
-
|
|
1458
|
+
modified_on: Joi.string().allow("").required(),
|
|
1673
1459
|
account_no: Joi.string().allow("").required(),
|
|
1674
|
-
|
|
1460
|
+
mobile: Joi.string().allow(""),
|
|
1675
1461
|
bank_name: Joi.string().allow("").required(),
|
|
1462
|
+
ifsc_code: Joi.string().allow("").required(),
|
|
1463
|
+
is_active: Joi.boolean().required(),
|
|
1676
1464
|
beneficiary_id: Joi.string().allow("").required(),
|
|
1677
|
-
|
|
1678
|
-
comment: Joi.string().allow(""),
|
|
1679
|
-
created_on: Joi.string().allow("").required(),
|
|
1680
|
-
delights_user_name: Joi.string().allow("").allow(null),
|
|
1681
|
-
display_name: Joi.string().allow("").required(),
|
|
1465
|
+
account_holder: Joi.string().allow("").required(),
|
|
1682
1466
|
email: Joi.string().allow("").required(),
|
|
1467
|
+
delights_user_name: Joi.string().allow("").allow(null),
|
|
1683
1468
|
id: Joi.number().required(),
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
modified_on: Joi.string().allow("").required(),
|
|
1469
|
+
transfer_mode: Joi.string().allow("").required(),
|
|
1470
|
+
branch_name: Joi.string().allow(""),
|
|
1471
|
+
created_on: Joi.string().allow("").required(),
|
|
1688
1472
|
subtitle: Joi.string().allow("").required(),
|
|
1473
|
+
comment: Joi.string().allow(""),
|
|
1474
|
+
address: Joi.string().allow("").required(),
|
|
1689
1475
|
title: Joi.string().allow("").required(),
|
|
1690
|
-
|
|
1476
|
+
display_name: Joi.string().allow("").required(),
|
|
1691
1477
|
});
|
|
1692
1478
|
}
|
|
1693
1479
|
|
|
1694
1480
|
/** @returns {OrderBeneficiaryResponse} */
|
|
1695
1481
|
static OrderBeneficiaryResponse() {
|
|
1696
1482
|
return Joi.object({
|
|
1483
|
+
show_beneficiary_details: Joi.boolean(),
|
|
1697
1484
|
beneficiaries: Joi.array().items(
|
|
1698
1485
|
PaymentApplicationModel.OrderBeneficiaryDetails()
|
|
1699
1486
|
),
|
|
1700
|
-
show_beneficiary_details: Joi.boolean(),
|
|
1701
|
-
});
|
|
1702
|
-
}
|
|
1703
|
-
|
|
1704
|
-
/** @returns {OutstandingOrderDetailsResponse} */
|
|
1705
|
-
static OutstandingOrderDetailsResponse() {
|
|
1706
|
-
return Joi.object({
|
|
1707
|
-
data: Joi.array().items(Joi.any()),
|
|
1708
|
-
message: Joi.string().allow("").allow(null),
|
|
1709
|
-
status_code: Joi.number().required(),
|
|
1710
|
-
success: Joi.boolean().required(),
|
|
1711
|
-
});
|
|
1712
|
-
}
|
|
1713
|
-
|
|
1714
|
-
/** @returns {PaidOrderDetailsResponse} */
|
|
1715
|
-
static PaidOrderDetailsResponse() {
|
|
1716
|
-
return Joi.object({
|
|
1717
|
-
data: Joi.array().items(Joi.any()),
|
|
1718
|
-
message: Joi.string().allow("").allow(null),
|
|
1719
|
-
status_code: Joi.number().required(),
|
|
1720
|
-
success: Joi.boolean().required(),
|
|
1721
|
-
});
|
|
1722
|
-
}
|
|
1723
|
-
|
|
1724
|
-
/** @returns {PaymentFlow} */
|
|
1725
|
-
static PaymentFlow() {
|
|
1726
|
-
return Joi.object({
|
|
1727
|
-
ajiodhan: PaymentApplicationModel.AggregatorRoute(),
|
|
1728
|
-
bqr_razorpay: PaymentApplicationModel.AggregatorRoute(),
|
|
1729
|
-
ccavenue: PaymentApplicationModel.AggregatorRoute(),
|
|
1730
|
-
epaylater: PaymentApplicationModel.AggregatorRoute(),
|
|
1731
|
-
fynd: PaymentApplicationModel.AggregatorRoute(),
|
|
1732
|
-
jiopay: PaymentApplicationModel.AggregatorRoute(),
|
|
1733
|
-
juspay: PaymentApplicationModel.AggregatorRoute(),
|
|
1734
|
-
mswipe: PaymentApplicationModel.AggregatorRoute(),
|
|
1735
|
-
payubiz: PaymentApplicationModel.AggregatorRoute(),
|
|
1736
|
-
razorpay: PaymentApplicationModel.AggregatorRoute(),
|
|
1737
|
-
rupifi: PaymentApplicationModel.AggregatorRoute(),
|
|
1738
|
-
simpl: PaymentApplicationModel.AggregatorRoute(),
|
|
1739
|
-
stripe: PaymentApplicationModel.AggregatorRoute(),
|
|
1740
|
-
upi_razorpay: PaymentApplicationModel.AggregatorRoute(),
|
|
1741
|
-
});
|
|
1742
|
-
}
|
|
1743
|
-
|
|
1744
|
-
/** @returns {PaymentInitializationRequest} */
|
|
1745
|
-
static PaymentInitializationRequest() {
|
|
1746
|
-
return Joi.object({
|
|
1747
|
-
aggregator: Joi.string().allow("").required(),
|
|
1748
|
-
amount: Joi.number().allow(null).required(),
|
|
1749
|
-
contact: Joi.string().allow("").required(),
|
|
1750
|
-
currency: Joi.string().allow("").required(),
|
|
1751
|
-
customer_id: Joi.string().allow("").required(),
|
|
1752
|
-
device_id: Joi.string().allow("").allow(null),
|
|
1753
|
-
email: Joi.string().allow("").required(),
|
|
1754
|
-
merchant_order_id: Joi.string().allow("").required(),
|
|
1755
|
-
method: Joi.string().allow("").required(),
|
|
1756
|
-
order_id: Joi.string().allow("").required(),
|
|
1757
|
-
razorpay_payment_id: Joi.string().allow("").allow(null),
|
|
1758
|
-
timeout: Joi.number().allow(null),
|
|
1759
|
-
vpa: Joi.string().allow("").allow(null),
|
|
1760
1487
|
});
|
|
1761
1488
|
}
|
|
1762
1489
|
|
|
1763
|
-
/** @returns {
|
|
1764
|
-
static
|
|
1490
|
+
/** @returns {NotFoundResourceError} */
|
|
1491
|
+
static NotFoundResourceError() {
|
|
1765
1492
|
return Joi.object({
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
amount: Joi.number().allow(null),
|
|
1769
|
-
bqr_image: Joi.string().allow("").allow(null),
|
|
1770
|
-
currency: Joi.string().allow("").allow(null),
|
|
1771
|
-
customer_id: Joi.string().allow("").allow(null),
|
|
1772
|
-
device_id: Joi.string().allow("").allow(null),
|
|
1773
|
-
merchant_order_id: Joi.string().allow("").required(),
|
|
1774
|
-
method: Joi.string().allow("").required(),
|
|
1775
|
-
polling_url: Joi.string().allow("").required(),
|
|
1776
|
-
razorpay_payment_id: Joi.string().allow("").allow(null),
|
|
1777
|
-
status: Joi.string().allow(""),
|
|
1493
|
+
code: Joi.string().allow("").required(),
|
|
1494
|
+
description: Joi.string().allow("").required(),
|
|
1778
1495
|
success: Joi.boolean().required(),
|
|
1779
|
-
timeout: Joi.number().allow(null),
|
|
1780
|
-
upi_poll_url: Joi.string().allow("").allow(null),
|
|
1781
|
-
virtual_id: Joi.string().allow("").allow(null),
|
|
1782
|
-
vpa: Joi.string().allow("").allow(null),
|
|
1783
|
-
});
|
|
1784
|
-
}
|
|
1785
|
-
|
|
1786
|
-
/** @returns {PaymentMethodsMeta} */
|
|
1787
|
-
static PaymentMethodsMeta() {
|
|
1788
|
-
return Joi.object({
|
|
1789
|
-
merchant_code: Joi.string().allow("").required(),
|
|
1790
|
-
payment_gateway: Joi.string().allow("").required(),
|
|
1791
|
-
payment_identifier: Joi.string().allow("").required(),
|
|
1792
|
-
});
|
|
1793
|
-
}
|
|
1794
|
-
|
|
1795
|
-
/** @returns {PaymentMethodsMetaOrder} */
|
|
1796
|
-
static PaymentMethodsMetaOrder() {
|
|
1797
|
-
return Joi.object({
|
|
1798
|
-
merchant_code: Joi.string().allow("").required(),
|
|
1799
|
-
payment_gateway: Joi.string().allow("").required(),
|
|
1800
|
-
payment_identifier: Joi.string().allow("").required(),
|
|
1801
1496
|
});
|
|
1802
1497
|
}
|
|
1803
1498
|
|
|
1804
|
-
/** @returns {
|
|
1805
|
-
static
|
|
1499
|
+
/** @returns {IfscCodeResponse} */
|
|
1500
|
+
static IfscCodeResponse() {
|
|
1806
1501
|
return Joi.object({
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
card_fingerprint: Joi.string().allow("").allow(null),
|
|
1811
|
-
card_id: Joi.string().allow("").allow(null),
|
|
1812
|
-
card_isin: Joi.string().allow("").allow(null),
|
|
1813
|
-
card_issuer: Joi.string().allow("").allow(null),
|
|
1814
|
-
card_name: Joi.string().allow("").allow(null),
|
|
1815
|
-
card_number: Joi.string().allow("").allow(null),
|
|
1816
|
-
card_reference: Joi.string().allow("").allow(null),
|
|
1817
|
-
card_token: Joi.string().allow("").allow(null),
|
|
1818
|
-
card_type: Joi.string().allow("").allow(null),
|
|
1819
|
-
cod_limit: Joi.number().allow(null),
|
|
1820
|
-
cod_limit_per_order: Joi.number().allow(null),
|
|
1821
|
-
code: Joi.string().allow("").allow(null),
|
|
1822
|
-
compliant_with_tokenisation_guidelines: Joi.boolean().allow(null),
|
|
1823
|
-
display_name: Joi.string().allow("").allow(null),
|
|
1824
|
-
display_priority: Joi.number().allow(null),
|
|
1825
|
-
exp_month: Joi.number().allow(null),
|
|
1826
|
-
exp_year: Joi.number().allow(null),
|
|
1827
|
-
expired: Joi.boolean().allow(null),
|
|
1828
|
-
fynd_vpa: Joi.string().allow("").allow(null),
|
|
1829
|
-
intent_app: Joi.array().items(PaymentApplicationModel.IntentApp()),
|
|
1830
|
-
intent_app_error_dict_list: Joi.array().items(
|
|
1831
|
-
PaymentApplicationModel.IntentAppErrorList()
|
|
1832
|
-
),
|
|
1833
|
-
intent_app_error_list: Joi.array().items(Joi.string().allow("")),
|
|
1834
|
-
intent_flow: Joi.boolean().allow(null),
|
|
1835
|
-
logo_url: PaymentApplicationModel.PaymentModeLogo(),
|
|
1836
|
-
merchant_code: Joi.string().allow("").allow(null),
|
|
1837
|
-
meta: Joi.any().allow(null),
|
|
1838
|
-
name: Joi.string().allow("").allow(null),
|
|
1839
|
-
nickname: Joi.string().allow("").allow(null),
|
|
1840
|
-
remaining_limit: Joi.number().allow(null),
|
|
1841
|
-
retry_count: Joi.number().allow(null),
|
|
1842
|
-
timeout: Joi.number().allow(null),
|
|
1502
|
+
branch_name: Joi.string().allow("").required(),
|
|
1503
|
+
success: Joi.boolean(),
|
|
1504
|
+
bank_name: Joi.string().allow("").required(),
|
|
1843
1505
|
});
|
|
1844
1506
|
}
|
|
1845
1507
|
|
|
1846
|
-
/** @returns {
|
|
1847
|
-
static
|
|
1508
|
+
/** @returns {ErrorCodeDescription} */
|
|
1509
|
+
static ErrorCodeDescription() {
|
|
1848
1510
|
return Joi.object({
|
|
1849
|
-
|
|
1850
|
-
|
|
1511
|
+
code: Joi.string().allow("").required(),
|
|
1512
|
+
description: Joi.string().allow("").required(),
|
|
1513
|
+
success: Joi.boolean().required(),
|
|
1851
1514
|
});
|
|
1852
1515
|
}
|
|
1853
1516
|
|
|
1854
|
-
/** @returns {
|
|
1855
|
-
static
|
|
1517
|
+
/** @returns {AddBeneficiaryViaOtpVerificationRequest} */
|
|
1518
|
+
static AddBeneficiaryViaOtpVerificationRequest() {
|
|
1856
1519
|
return Joi.object({
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
),
|
|
1860
|
-
payment_breakup: Joi.any(),
|
|
1861
|
-
payment_options: PaymentApplicationModel.PaymentOptionAndFlow().required(),
|
|
1862
|
-
success: Joi.boolean().required(),
|
|
1520
|
+
request_id: Joi.string().allow("").required(),
|
|
1521
|
+
hash_key: Joi.string().allow("").required(),
|
|
1522
|
+
otp: Joi.string().allow("").required(),
|
|
1863
1523
|
});
|
|
1864
1524
|
}
|
|
1865
1525
|
|
|
1866
|
-
/** @returns {
|
|
1867
|
-
static
|
|
1526
|
+
/** @returns {AddBeneficiaryViaOtpVerificationResponse} */
|
|
1527
|
+
static AddBeneficiaryViaOtpVerificationResponse() {
|
|
1868
1528
|
return Joi.object({
|
|
1869
|
-
|
|
1870
|
-
|
|
1529
|
+
success: Joi.boolean(),
|
|
1530
|
+
message: Joi.string().allow("").required(),
|
|
1871
1531
|
});
|
|
1872
1532
|
}
|
|
1873
1533
|
|
|
1874
|
-
/** @returns {
|
|
1875
|
-
static
|
|
1534
|
+
/** @returns {WrongOtpError} */
|
|
1535
|
+
static WrongOtpError() {
|
|
1876
1536
|
return Joi.object({
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
contact: Joi.string().allow("").allow(null),
|
|
1881
|
-
currency: Joi.string().allow("").allow(null),
|
|
1882
|
-
customer_id: Joi.string().allow("").allow(null),
|
|
1883
|
-
email: Joi.string().allow("").allow(null),
|
|
1884
|
-
merchant_order_id: Joi.string().allow("").allow(null),
|
|
1885
|
-
method: Joi.string().allow("").allow(null),
|
|
1886
|
-
order_id: Joi.string().allow("").allow(null),
|
|
1537
|
+
is_verified_flag: Joi.boolean().required(),
|
|
1538
|
+
description: Joi.string().allow("").required(),
|
|
1539
|
+
success: Joi.string().allow("").required(),
|
|
1887
1540
|
});
|
|
1888
1541
|
}
|
|
1889
1542
|
|
|
1890
|
-
/** @returns {
|
|
1891
|
-
static
|
|
1543
|
+
/** @returns {BeneficiaryModeDetails} */
|
|
1544
|
+
static BeneficiaryModeDetails() {
|
|
1892
1545
|
return Joi.object({
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1546
|
+
account_no: Joi.string().allow("").required(),
|
|
1547
|
+
address: Joi.string().allow(""),
|
|
1548
|
+
mobile: Joi.string().allow("").required(),
|
|
1549
|
+
bank_name: Joi.string().allow("").required(),
|
|
1550
|
+
comment: Joi.string().allow(""),
|
|
1551
|
+
ifsc_code: Joi.string().allow("").required(),
|
|
1552
|
+
vpa: Joi.string().allow("").allow(null),
|
|
1553
|
+
branch_name: Joi.string().allow("").required(),
|
|
1554
|
+
account_holder: Joi.string().allow("").required(),
|
|
1555
|
+
wallet: Joi.string().allow("").allow(null),
|
|
1556
|
+
email: Joi.string().allow("").required(),
|
|
1898
1557
|
});
|
|
1899
1558
|
}
|
|
1900
1559
|
|
|
1901
|
-
/** @returns {
|
|
1902
|
-
static
|
|
1560
|
+
/** @returns {AddBeneficiaryDetailsRequest} */
|
|
1561
|
+
static AddBeneficiaryDetailsRequest() {
|
|
1903
1562
|
return Joi.object({
|
|
1563
|
+
delights: Joi.boolean().required(),
|
|
1564
|
+
shipment_id: Joi.string().allow("").required(),
|
|
1565
|
+
details: PaymentApplicationModel.BeneficiaryModeDetails().required(),
|
|
1566
|
+
otp: Joi.string().allow(""),
|
|
1904
1567
|
order_id: Joi.string().allow("").required(),
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
),
|
|
1908
|
-
shipment_id: Joi.string().allow(""),
|
|
1568
|
+
transfer_mode: Joi.string().allow("").required(),
|
|
1569
|
+
request_id: Joi.string().allow(""),
|
|
1909
1570
|
});
|
|
1910
1571
|
}
|
|
1911
1572
|
|
|
1912
|
-
/** @returns {
|
|
1913
|
-
static
|
|
1573
|
+
/** @returns {RefundAccountResponse} */
|
|
1574
|
+
static RefundAccountResponse() {
|
|
1914
1575
|
return Joi.object({
|
|
1915
|
-
|
|
1916
|
-
data:
|
|
1917
|
-
message: Joi.string().allow("").required(),
|
|
1918
|
-
order_id: Joi.string().allow("").allow(null),
|
|
1919
|
-
payment_confirm_url: Joi.string().allow("").allow(null),
|
|
1920
|
-
status_code: Joi.number().required(),
|
|
1576
|
+
is_verified_flag: Joi.boolean(),
|
|
1577
|
+
data: Joi.any(),
|
|
1921
1578
|
success: Joi.boolean().required(),
|
|
1579
|
+
message: Joi.string().allow("").required(),
|
|
1922
1580
|
});
|
|
1923
1581
|
}
|
|
1924
1582
|
|
|
1925
|
-
/** @returns {
|
|
1926
|
-
static
|
|
1583
|
+
/** @returns {BankDetailsForOTP} */
|
|
1584
|
+
static BankDetailsForOTP() {
|
|
1585
|
+
return Joi.object({
|
|
1586
|
+
account_no: Joi.string().allow("").required(),
|
|
1587
|
+
bank_name: Joi.string().allow("").required(),
|
|
1588
|
+
ifsc_code: Joi.string().allow("").required(),
|
|
1589
|
+
branch_name: Joi.string().allow("").required(),
|
|
1590
|
+
account_holder: Joi.string().allow("").required(),
|
|
1591
|
+
});
|
|
1592
|
+
}
|
|
1593
|
+
|
|
1594
|
+
/** @returns {AddBeneficiaryDetailsOTPRequest} */
|
|
1595
|
+
static AddBeneficiaryDetailsOTPRequest() {
|
|
1927
1596
|
return Joi.object({
|
|
1928
|
-
aggregator: Joi.string().allow("").required(),
|
|
1929
|
-
amount: Joi.number().allow(null).required(),
|
|
1930
|
-
contact: Joi.string().allow("").required(),
|
|
1931
|
-
currency: Joi.string().allow("").required(),
|
|
1932
|
-
customer_id: Joi.string().allow("").required(),
|
|
1933
|
-
device_id: Joi.string().allow("").allow(null),
|
|
1934
|
-
email: Joi.string().allow("").required(),
|
|
1935
|
-
merchant_order_id: Joi.string().allow("").required(),
|
|
1936
|
-
merchant_transaction_id: Joi.string().allow("").required(),
|
|
1937
|
-
method: Joi.string().allow("").required(),
|
|
1938
1597
|
order_id: Joi.string().allow("").required(),
|
|
1939
|
-
|
|
1940
|
-
vpa: Joi.string().allow(""),
|
|
1598
|
+
details: PaymentApplicationModel.BankDetailsForOTP().required(),
|
|
1941
1599
|
});
|
|
1942
1600
|
}
|
|
1943
1601
|
|
|
1944
|
-
/** @returns {
|
|
1945
|
-
static
|
|
1602
|
+
/** @returns {WalletOtpRequest} */
|
|
1603
|
+
static WalletOtpRequest() {
|
|
1946
1604
|
return Joi.object({
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
retry: Joi.boolean().required(),
|
|
1950
|
-
status: Joi.string().allow("").required(),
|
|
1951
|
-
success: Joi.boolean().allow(null),
|
|
1605
|
+
country_code: Joi.string().allow("").required(),
|
|
1606
|
+
mobile: Joi.string().allow("").required(),
|
|
1952
1607
|
});
|
|
1953
1608
|
}
|
|
1954
1609
|
|
|
1955
|
-
/** @returns {
|
|
1956
|
-
static
|
|
1610
|
+
/** @returns {WalletOtpResponse} */
|
|
1611
|
+
static WalletOtpResponse() {
|
|
1957
1612
|
return Joi.object({
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
message: Joi.string().allow("").allow(null),
|
|
1962
|
-
order_id: Joi.string().allow("").allow(null),
|
|
1963
|
-
payment_link_id: Joi.string().allow("").allow(null),
|
|
1964
|
-
redirect_url: Joi.string().allow("").allow(null),
|
|
1965
|
-
status: Joi.string().allow("").allow(null),
|
|
1966
|
-
status_code: Joi.number().allow(null),
|
|
1967
|
-
success: Joi.boolean().allow(null),
|
|
1613
|
+
request_id: Joi.string().allow("").required(),
|
|
1614
|
+
is_verified_flag: Joi.string().allow("").required(),
|
|
1615
|
+
success: Joi.boolean(),
|
|
1968
1616
|
});
|
|
1969
1617
|
}
|
|
1970
1618
|
|
|
1971
|
-
/** @returns {
|
|
1972
|
-
static
|
|
1619
|
+
/** @returns {SetDefaultBeneficiaryRequest} */
|
|
1620
|
+
static SetDefaultBeneficiaryRequest() {
|
|
1973
1621
|
return Joi.object({
|
|
1974
|
-
|
|
1622
|
+
order_id: Joi.string().allow("").required(),
|
|
1623
|
+
beneficiary_id: Joi.string().allow("").required(),
|
|
1624
|
+
});
|
|
1625
|
+
}
|
|
1626
|
+
|
|
1627
|
+
/** @returns {SetDefaultBeneficiaryResponse} */
|
|
1628
|
+
static SetDefaultBeneficiaryResponse() {
|
|
1629
|
+
return Joi.object({
|
|
1630
|
+
is_beneficiary_set: Joi.boolean().required(),
|
|
1631
|
+
success: Joi.boolean(),
|
|
1632
|
+
});
|
|
1633
|
+
}
|
|
1634
|
+
|
|
1635
|
+
/** @returns {GetPaymentLinkResponse} */
|
|
1636
|
+
static GetPaymentLinkResponse() {
|
|
1637
|
+
return Joi.object({
|
|
1638
|
+
status_code: Joi.number().required(),
|
|
1639
|
+
payment_link_current_status: Joi.string().allow("").allow(null),
|
|
1975
1640
|
success: Joi.boolean().required(),
|
|
1641
|
+
polling_timeout: Joi.number().allow(null),
|
|
1642
|
+
payment_link_url: Joi.string().allow("").allow(null),
|
|
1643
|
+
external_order_id: Joi.string().allow("").allow(null),
|
|
1644
|
+
message: Joi.string().allow("").required(),
|
|
1645
|
+
merchant_name: Joi.string().allow("").allow(null),
|
|
1646
|
+
amount: Joi.number().allow(null),
|
|
1976
1647
|
});
|
|
1977
1648
|
}
|
|
1978
1649
|
|
|
1979
|
-
/** @returns {
|
|
1980
|
-
static
|
|
1650
|
+
/** @returns {ErrorDescription} */
|
|
1651
|
+
static ErrorDescription() {
|
|
1981
1652
|
return Joi.object({
|
|
1982
|
-
|
|
1983
|
-
|
|
1653
|
+
payment_transaction_id: Joi.string().allow("").allow(null),
|
|
1654
|
+
expired: Joi.boolean().allow(null),
|
|
1655
|
+
merchant_order_id: Joi.string().allow("").allow(null),
|
|
1656
|
+
merchant_name: Joi.string().allow("").allow(null),
|
|
1657
|
+
msg: Joi.string().allow("").allow(null),
|
|
1658
|
+
cancelled: Joi.boolean().allow(null),
|
|
1659
|
+
amount: Joi.number().allow(null),
|
|
1660
|
+
invalid_id: Joi.boolean().allow(null),
|
|
1984
1661
|
});
|
|
1985
1662
|
}
|
|
1986
1663
|
|
|
1987
|
-
/** @returns {
|
|
1988
|
-
static
|
|
1664
|
+
/** @returns {ErrorResponse} */
|
|
1665
|
+
static ErrorResponse() {
|
|
1989
1666
|
return Joi.object({
|
|
1990
|
-
|
|
1991
|
-
|
|
1667
|
+
status_code: Joi.number().required(),
|
|
1668
|
+
error: Joi.any().allow(null),
|
|
1992
1669
|
message: Joi.string().allow("").required(),
|
|
1993
1670
|
success: Joi.boolean().required(),
|
|
1994
1671
|
});
|
|
1995
1672
|
}
|
|
1996
1673
|
|
|
1997
|
-
/** @returns {
|
|
1998
|
-
static
|
|
1674
|
+
/** @returns {CreatePaymentLinkMeta} */
|
|
1675
|
+
static CreatePaymentLinkMeta() {
|
|
1999
1676
|
return Joi.object({
|
|
2000
|
-
|
|
2001
|
-
|
|
1677
|
+
cart_id: Joi.string().allow("").required(),
|
|
1678
|
+
checkout_mode: Joi.string().allow("").required(),
|
|
1679
|
+
pincode: Joi.string().allow("").required(),
|
|
1680
|
+
assign_card_id: Joi.string().allow("").allow(null),
|
|
1681
|
+
amount: Joi.string().allow("").required(),
|
|
2002
1682
|
});
|
|
2003
1683
|
}
|
|
2004
1684
|
|
|
2005
|
-
/** @returns {
|
|
2006
|
-
static
|
|
1685
|
+
/** @returns {CreatePaymentLinkRequest} */
|
|
1686
|
+
static CreatePaymentLinkRequest() {
|
|
2007
1687
|
return Joi.object({
|
|
2008
|
-
|
|
1688
|
+
description: Joi.string().allow("").allow(null),
|
|
1689
|
+
external_order_id: Joi.string().allow("").required(),
|
|
1690
|
+
mobile_number: Joi.string().allow("").required(),
|
|
1691
|
+
amount: Joi.number().required(),
|
|
1692
|
+
meta: PaymentApplicationModel.CreatePaymentLinkMeta().required(),
|
|
1693
|
+
email: Joi.string().allow("").required(),
|
|
2009
1694
|
});
|
|
2010
1695
|
}
|
|
2011
1696
|
|
|
2012
|
-
/** @returns {
|
|
2013
|
-
static
|
|
1697
|
+
/** @returns {CreatePaymentLinkResponse} */
|
|
1698
|
+
static CreatePaymentLinkResponse() {
|
|
2014
1699
|
return Joi.object({
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
1700
|
+
status_code: Joi.number().required(),
|
|
1701
|
+
success: Joi.boolean().required(),
|
|
1702
|
+
polling_timeout: Joi.number().allow(null),
|
|
1703
|
+
payment_link_url: Joi.string().allow("").allow(null),
|
|
1704
|
+
message: Joi.string().allow("").required(),
|
|
1705
|
+
payment_link_id: Joi.string().allow("").allow(null),
|
|
2018
1706
|
});
|
|
2019
1707
|
}
|
|
2020
1708
|
|
|
2021
|
-
/** @returns {
|
|
2022
|
-
static
|
|
1709
|
+
/** @returns {CancelOrResendPaymentLinkRequest} */
|
|
1710
|
+
static CancelOrResendPaymentLinkRequest() {
|
|
2023
1711
|
return Joi.object({
|
|
2024
|
-
|
|
2025
|
-
success: Joi.boolean().required(),
|
|
1712
|
+
payment_link_id: Joi.string().allow("").required(),
|
|
2026
1713
|
});
|
|
2027
1714
|
}
|
|
2028
1715
|
|
|
2029
1716
|
/** @returns {ResendPaymentLinkResponse} */
|
|
2030
1717
|
static ResendPaymentLinkResponse() {
|
|
2031
1718
|
return Joi.object({
|
|
2032
|
-
message: Joi.string().allow("").required(),
|
|
2033
|
-
polling_timeout: Joi.number().allow(null),
|
|
2034
1719
|
status_code: Joi.number().required(),
|
|
1720
|
+
polling_timeout: Joi.number().allow(null),
|
|
2035
1721
|
success: Joi.boolean().required(),
|
|
1722
|
+
message: Joi.string().allow("").required(),
|
|
2036
1723
|
});
|
|
2037
1724
|
}
|
|
2038
1725
|
|
|
2039
|
-
/** @returns {
|
|
2040
|
-
static
|
|
1726
|
+
/** @returns {CancelPaymentLinkResponse} */
|
|
1727
|
+
static CancelPaymentLinkResponse() {
|
|
2041
1728
|
return Joi.object({
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
display_name: Joi.string().allow("").required(),
|
|
2046
|
-
display_priority: Joi.number().required(),
|
|
2047
|
-
is_pay_by_card_pl: Joi.boolean().allow(null),
|
|
2048
|
-
list: Joi.array().items(PaymentApplicationModel.PaymentModeList()),
|
|
2049
|
-
name: Joi.string().allow("").required(),
|
|
2050
|
-
save_card: Joi.boolean().allow(null),
|
|
1729
|
+
status_code: Joi.number().required(),
|
|
1730
|
+
success: Joi.boolean().required(),
|
|
1731
|
+
message: Joi.string().allow("").required(),
|
|
2051
1732
|
});
|
|
2052
1733
|
}
|
|
2053
1734
|
|
|
2054
|
-
/** @returns {
|
|
2055
|
-
static
|
|
1735
|
+
/** @returns {PollingPaymentLinkResponse} */
|
|
1736
|
+
static PollingPaymentLinkResponse() {
|
|
2056
1737
|
return Joi.object({
|
|
2057
|
-
|
|
2058
|
-
|
|
1738
|
+
status: Joi.string().allow("").allow(null),
|
|
1739
|
+
status_code: Joi.number().allow(null),
|
|
1740
|
+
success: Joi.boolean().allow(null),
|
|
1741
|
+
http_status: Joi.number().allow(null),
|
|
1742
|
+
message: Joi.string().allow("").allow(null),
|
|
1743
|
+
order_id: Joi.string().allow("").allow(null),
|
|
1744
|
+
redirect_url: Joi.string().allow("").allow(null),
|
|
1745
|
+
payment_link_id: Joi.string().allow("").allow(null),
|
|
1746
|
+
aggregator_name: Joi.string().allow("").allow(null),
|
|
1747
|
+
amount: Joi.number().allow(null),
|
|
2059
1748
|
});
|
|
2060
1749
|
}
|
|
2061
1750
|
|
|
2062
|
-
/** @returns {
|
|
2063
|
-
static
|
|
1751
|
+
/** @returns {PaymentMethodsMeta} */
|
|
1752
|
+
static PaymentMethodsMeta() {
|
|
2064
1753
|
return Joi.object({
|
|
2065
|
-
|
|
2066
|
-
|
|
1754
|
+
merchant_code: Joi.string().allow("").required(),
|
|
1755
|
+
payment_gateway: Joi.string().allow("").required(),
|
|
1756
|
+
payment_identifier: Joi.string().allow("").required(),
|
|
2067
1757
|
});
|
|
2068
1758
|
}
|
|
2069
1759
|
|
|
2070
|
-
/** @returns {
|
|
2071
|
-
static
|
|
1760
|
+
/** @returns {CreateOrderUserPaymentMethods} */
|
|
1761
|
+
static CreateOrderUserPaymentMethods() {
|
|
2072
1762
|
return Joi.object({
|
|
2073
|
-
|
|
2074
|
-
|
|
1763
|
+
name: Joi.string().allow("").required(),
|
|
1764
|
+
mode: Joi.string().allow("").required(),
|
|
1765
|
+
meta: PaymentApplicationModel.PaymentMethodsMeta().required(),
|
|
2075
1766
|
});
|
|
2076
1767
|
}
|
|
2077
1768
|
|
|
2078
|
-
/** @returns {
|
|
2079
|
-
static
|
|
1769
|
+
/** @returns {CreateOrderUserRequest} */
|
|
1770
|
+
static CreateOrderUserRequest() {
|
|
2080
1771
|
return Joi.object({
|
|
2081
|
-
|
|
2082
|
-
|
|
1772
|
+
failure_callback_url: Joi.string().allow("").required(),
|
|
1773
|
+
currency: Joi.string().allow("").required(),
|
|
1774
|
+
payment_link_id: Joi.string().allow("").required(),
|
|
1775
|
+
payment_methods: PaymentApplicationModel.CreateOrderUserPaymentMethods().required(),
|
|
1776
|
+
success_callback_url: Joi.string().allow("").required(),
|
|
1777
|
+
meta: Joi.any().allow(null),
|
|
2083
1778
|
});
|
|
2084
1779
|
}
|
|
2085
1780
|
|
|
2086
|
-
/** @returns {
|
|
2087
|
-
static
|
|
1781
|
+
/** @returns {CreateOrderUserData} */
|
|
1782
|
+
static CreateOrderUserData() {
|
|
2088
1783
|
return Joi.object({
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
1784
|
+
method: Joi.string().allow("").allow(null),
|
|
1785
|
+
aggregator: Joi.string().allow("").allow(null),
|
|
1786
|
+
customer_id: Joi.string().allow("").allow(null),
|
|
1787
|
+
contact: Joi.string().allow("").allow(null),
|
|
1788
|
+
merchant_order_id: Joi.string().allow("").allow(null),
|
|
1789
|
+
order_id: Joi.string().allow("").allow(null),
|
|
1790
|
+
currency: Joi.string().allow("").allow(null),
|
|
1791
|
+
callback_url: Joi.string().allow("").allow(null),
|
|
1792
|
+
amount: Joi.number().allow(null),
|
|
1793
|
+
email: Joi.string().allow("").allow(null),
|
|
2092
1794
|
});
|
|
2093
1795
|
}
|
|
2094
1796
|
|
|
2095
|
-
/** @returns {
|
|
2096
|
-
static
|
|
1797
|
+
/** @returns {CreateOrderUserResponse} */
|
|
1798
|
+
static CreateOrderUserResponse() {
|
|
2097
1799
|
return Joi.object({
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
1800
|
+
status_code: Joi.number().required(),
|
|
1801
|
+
success: Joi.boolean().required(),
|
|
1802
|
+
data: PaymentApplicationModel.CreateOrderUserData(),
|
|
1803
|
+
message: Joi.string().allow("").required(),
|
|
1804
|
+
order_id: Joi.string().allow("").allow(null),
|
|
1805
|
+
callback_url: Joi.string().allow("").allow(null),
|
|
1806
|
+
payment_confirm_url: Joi.string().allow("").allow(null),
|
|
2103
1807
|
});
|
|
2104
1808
|
}
|
|
2105
1809
|
|
|
2106
|
-
/** @returns {
|
|
2107
|
-
static
|
|
1810
|
+
/** @returns {BalanceDetails} */
|
|
1811
|
+
static BalanceDetails() {
|
|
2108
1812
|
return Joi.object({
|
|
2109
|
-
|
|
2110
|
-
|
|
1813
|
+
formatted_value: Joi.string().allow("").allow(null),
|
|
1814
|
+
currency: Joi.string().allow("").allow(null),
|
|
1815
|
+
value: Joi.number().allow(null),
|
|
2111
1816
|
});
|
|
2112
1817
|
}
|
|
2113
1818
|
|
|
2114
|
-
/** @returns {
|
|
2115
|
-
static
|
|
1819
|
+
/** @returns {CreditSummary} */
|
|
1820
|
+
static CreditSummary() {
|
|
2116
1821
|
return Joi.object({
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
1822
|
+
status: Joi.string().allow("").allow(null),
|
|
1823
|
+
credit_line_id: Joi.string().allow("").allow(null),
|
|
1824
|
+
amount_available: PaymentApplicationModel.BalanceDetails(),
|
|
1825
|
+
balance: PaymentApplicationModel.BalanceDetails(),
|
|
1826
|
+
status_message: Joi.string().allow("").allow(null),
|
|
1827
|
+
merchant_customer_ref_id: Joi.string().allow("").allow(null),
|
|
1828
|
+
buyer_status: Joi.string().allow("").allow(null),
|
|
2120
1829
|
});
|
|
2121
1830
|
}
|
|
2122
1831
|
|
|
2123
|
-
/** @returns {
|
|
2124
|
-
static
|
|
1832
|
+
/** @returns {CustomerCreditSummaryResponse} */
|
|
1833
|
+
static CustomerCreditSummaryResponse() {
|
|
2125
1834
|
return Joi.object({
|
|
2126
|
-
|
|
2127
|
-
|
|
1835
|
+
data: PaymentApplicationModel.CreditSummary(),
|
|
1836
|
+
success: Joi.boolean().required(),
|
|
2128
1837
|
});
|
|
2129
1838
|
}
|
|
2130
1839
|
|
|
2131
|
-
/** @returns {
|
|
2132
|
-
static
|
|
1840
|
+
/** @returns {RedirectURL} */
|
|
1841
|
+
static RedirectURL() {
|
|
2133
1842
|
return Joi.object({
|
|
2134
|
-
|
|
1843
|
+
status: Joi.boolean().required(),
|
|
1844
|
+
signup_url: Joi.string().allow("").required(),
|
|
2135
1845
|
});
|
|
2136
1846
|
}
|
|
2137
1847
|
|
|
2138
|
-
/** @returns {
|
|
2139
|
-
static
|
|
1848
|
+
/** @returns {RedirectToAggregatorResponse} */
|
|
1849
|
+
static RedirectToAggregatorResponse() {
|
|
2140
1850
|
return Joi.object({
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
driving_license: Joi.string().allow("").allow(null),
|
|
2144
|
-
email: Joi.string().allow("").allow(null),
|
|
2145
|
-
email_verified: Joi.boolean().required(),
|
|
2146
|
-
fathers_name: Joi.string().allow("").allow(null),
|
|
2147
|
-
first_name: Joi.string().allow("").required(),
|
|
2148
|
-
gender: Joi.string().allow("").allow(null),
|
|
2149
|
-
last_name: Joi.string().allow("").allow(null),
|
|
2150
|
-
middle_name: Joi.string().allow("").allow(null),
|
|
2151
|
-
mobile_verified: Joi.boolean().required(),
|
|
2152
|
-
mothers_name: Joi.string().allow("").allow(null),
|
|
2153
|
-
pan: Joi.string().allow("").allow(null),
|
|
2154
|
-
passport: Joi.string().allow("").allow(null),
|
|
2155
|
-
phone: Joi.string().allow("").required(),
|
|
2156
|
-
voter_id: Joi.string().allow("").allow(null),
|
|
1851
|
+
data: PaymentApplicationModel.RedirectURL().required(),
|
|
1852
|
+
success: Joi.boolean().required(),
|
|
2157
1853
|
});
|
|
2158
1854
|
}
|
|
2159
1855
|
|
|
2160
|
-
/** @returns {
|
|
2161
|
-
static
|
|
1856
|
+
/** @returns {CreditDetail} */
|
|
1857
|
+
static CreditDetail() {
|
|
2162
1858
|
return Joi.object({
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
merchant_params: Joi.any(),
|
|
2167
|
-
order_items: Joi.array().items(Joi.any()),
|
|
2168
|
-
payload: Joi.string().allow("").allow(null),
|
|
2169
|
-
phone_number: Joi.string().allow("").required(),
|
|
2170
|
-
transaction_amount_in_paise: Joi.number().required(),
|
|
1859
|
+
status: Joi.boolean().required(),
|
|
1860
|
+
is_registered: Joi.boolean().required(),
|
|
1861
|
+
signup_url: Joi.string().allow("").required(),
|
|
2171
1862
|
});
|
|
2172
1863
|
}
|
|
2173
1864
|
|
|
2174
|
-
/** @returns {
|
|
2175
|
-
static
|
|
1865
|
+
/** @returns {CheckCreditResponse} */
|
|
1866
|
+
static CheckCreditResponse() {
|
|
2176
1867
|
return Joi.object({
|
|
2177
|
-
data:
|
|
2178
|
-
message: Joi.string().allow("").required(),
|
|
1868
|
+
data: PaymentApplicationModel.CreditDetail().required(),
|
|
2179
1869
|
success: Joi.boolean().required(),
|
|
2180
1870
|
});
|
|
2181
1871
|
}
|
|
2182
1872
|
|
|
2183
|
-
/** @returns {
|
|
2184
|
-
static
|
|
1873
|
+
/** @returns {KYCAddress} */
|
|
1874
|
+
static KYCAddress() {
|
|
2185
1875
|
return Joi.object({
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
1876
|
+
city: Joi.string().allow("").required(),
|
|
1877
|
+
addressline2: Joi.string().allow("").allow(null),
|
|
1878
|
+
state: Joi.string().allow("").required(),
|
|
1879
|
+
ownership_type: Joi.string().allow("").allow(null),
|
|
1880
|
+
pincode: Joi.string().allow("").required(),
|
|
1881
|
+
land_mark: Joi.string().allow("").allow(null),
|
|
1882
|
+
addressline1: Joi.string().allow("").required(),
|
|
2190
1883
|
});
|
|
2191
1884
|
}
|
|
2192
1885
|
|
|
2193
|
-
/** @returns {
|
|
2194
|
-
static
|
|
1886
|
+
/** @returns {UserPersonalInfoInDetails} */
|
|
1887
|
+
static UserPersonalInfoInDetails() {
|
|
2195
1888
|
return Joi.object({
|
|
2196
|
-
|
|
1889
|
+
first_name: Joi.string().allow("").required(),
|
|
1890
|
+
voter_id: Joi.string().allow("").allow(null),
|
|
1891
|
+
gender: Joi.string().allow("").allow(null),
|
|
1892
|
+
dob: Joi.string().allow("").allow(null).required(),
|
|
1893
|
+
passport: Joi.string().allow("").allow(null),
|
|
1894
|
+
fathers_name: Joi.string().allow("").allow(null),
|
|
1895
|
+
mothers_name: Joi.string().allow("").allow(null),
|
|
1896
|
+
middle_name: Joi.string().allow("").allow(null),
|
|
1897
|
+
last_name: Joi.string().allow("").allow(null),
|
|
1898
|
+
pan: Joi.string().allow("").allow(null),
|
|
1899
|
+
driving_license: Joi.string().allow("").allow(null),
|
|
1900
|
+
email_verified: Joi.boolean().required(),
|
|
1901
|
+
address_as_per_id: PaymentApplicationModel.KYCAddress().required(),
|
|
1902
|
+
mobile_verified: Joi.boolean().required(),
|
|
1903
|
+
phone: Joi.string().allow("").required(),
|
|
1904
|
+
email: Joi.string().allow("").allow(null),
|
|
2197
1905
|
});
|
|
2198
1906
|
}
|
|
2199
1907
|
|
|
2200
|
-
/** @returns {
|
|
2201
|
-
static
|
|
1908
|
+
/** @returns {MarketplaceInfo} */
|
|
1909
|
+
static MarketplaceInfo() {
|
|
2202
1910
|
return Joi.object({
|
|
2203
|
-
|
|
2204
|
-
|
|
1911
|
+
date_of_joining: Joi.string().allow("").allow(null),
|
|
1912
|
+
name: Joi.string().allow("").required(),
|
|
1913
|
+
membership_id: Joi.string().allow("").required(),
|
|
2205
1914
|
});
|
|
2206
1915
|
}
|
|
2207
1916
|
|
|
2208
|
-
/** @returns {
|
|
2209
|
-
static
|
|
1917
|
+
/** @returns {BusinessDetails} */
|
|
1918
|
+
static BusinessDetails() {
|
|
2210
1919
|
return Joi.object({
|
|
2211
|
-
|
|
2212
|
-
|
|
1920
|
+
business_ownership_type: Joi.string().allow("").allow(null),
|
|
1921
|
+
vintage: Joi.string().allow("").allow(null),
|
|
1922
|
+
gstin: Joi.string().allow("").allow(null),
|
|
1923
|
+
pan: Joi.string().allow("").allow(null),
|
|
1924
|
+
entity_type: Joi.string().allow("").allow(null),
|
|
1925
|
+
shop_and_establishment: Joi.any(),
|
|
1926
|
+
fssai: Joi.string().allow("").allow(null),
|
|
1927
|
+
fda: Joi.string().allow("").allow(null),
|
|
1928
|
+
business_type: Joi.string().allow("").allow(null),
|
|
1929
|
+
name: Joi.string().allow("").allow(null),
|
|
1930
|
+
address: PaymentApplicationModel.KYCAddress(),
|
|
2213
1931
|
});
|
|
2214
1932
|
}
|
|
2215
1933
|
|
|
2216
|
-
/** @returns {
|
|
2217
|
-
static
|
|
1934
|
+
/** @returns {DeviceDetails} */
|
|
1935
|
+
static DeviceDetails() {
|
|
2218
1936
|
return Joi.object({
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
1937
|
+
identification_number: Joi.string().allow("").allow(null),
|
|
1938
|
+
identifier_type: Joi.string().allow("").allow(null),
|
|
1939
|
+
device_model: Joi.string().allow("").allow(null),
|
|
1940
|
+
device_make: Joi.string().allow("").allow(null),
|
|
1941
|
+
device_type: Joi.string().allow("").allow(null),
|
|
1942
|
+
os: Joi.string().allow("").allow(null),
|
|
1943
|
+
os_version: Joi.string().allow("").allow(null),
|
|
2222
1944
|
});
|
|
2223
1945
|
}
|
|
2224
1946
|
|
|
2225
|
-
/** @returns {
|
|
2226
|
-
static
|
|
1947
|
+
/** @returns {CustomerOnboardingRequest} */
|
|
1948
|
+
static CustomerOnboardingRequest() {
|
|
2227
1949
|
return Joi.object({
|
|
2228
|
-
|
|
2229
|
-
|
|
1950
|
+
personal_info: PaymentApplicationModel.UserPersonalInfoInDetails().required(),
|
|
1951
|
+
mcc: Joi.string().allow("").allow(null),
|
|
1952
|
+
aggregator: Joi.string().allow("").required(),
|
|
1953
|
+
marketplace_info: PaymentApplicationModel.MarketplaceInfo(),
|
|
1954
|
+
source: Joi.string().allow("").required(),
|
|
1955
|
+
business_info: PaymentApplicationModel.BusinessDetails(),
|
|
1956
|
+
device: PaymentApplicationModel.DeviceDetails(),
|
|
2230
1957
|
});
|
|
2231
1958
|
}
|
|
2232
1959
|
|
|
2233
|
-
/** @returns {
|
|
2234
|
-
static
|
|
1960
|
+
/** @returns {OnboardSummary} */
|
|
1961
|
+
static OnboardSummary() {
|
|
2235
1962
|
return Joi.object({
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
1963
|
+
status: Joi.boolean().required(),
|
|
1964
|
+
redirect_url: Joi.string().allow("").required(),
|
|
1965
|
+
session: Joi.any().required(),
|
|
2239
1966
|
});
|
|
2240
1967
|
}
|
|
2241
1968
|
|
|
2242
|
-
/** @returns {
|
|
2243
|
-
static
|
|
1969
|
+
/** @returns {CustomerOnboardingResponse} */
|
|
1970
|
+
static CustomerOnboardingResponse() {
|
|
2244
1971
|
return Joi.object({
|
|
2245
|
-
data:
|
|
1972
|
+
data: PaymentApplicationModel.OnboardSummary().required(),
|
|
2246
1973
|
success: Joi.boolean().required(),
|
|
2247
1974
|
});
|
|
2248
1975
|
}
|
|
2249
1976
|
|
|
2250
|
-
/** @returns {
|
|
2251
|
-
static
|
|
1977
|
+
/** @returns {OutstandingOrderDetailsResponse} */
|
|
1978
|
+
static OutstandingOrderDetailsResponse() {
|
|
2252
1979
|
return Joi.object({
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
1980
|
+
status_code: Joi.number().required(),
|
|
1981
|
+
data: Joi.array().items(Joi.any()),
|
|
1982
|
+
success: Joi.boolean().required(),
|
|
1983
|
+
message: Joi.string().allow("").allow(null),
|
|
2256
1984
|
});
|
|
2257
1985
|
}
|
|
2258
1986
|
|
|
2259
|
-
/** @returns {
|
|
2260
|
-
static
|
|
1987
|
+
/** @returns {PaidOrderDetailsResponse} */
|
|
1988
|
+
static PaidOrderDetailsResponse() {
|
|
2261
1989
|
return Joi.object({
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
success: Joi.
|
|
1990
|
+
status_code: Joi.number().required(),
|
|
1991
|
+
data: Joi.array().items(Joi.any()),
|
|
1992
|
+
success: Joi.boolean().required(),
|
|
1993
|
+
message: Joi.string().allow("").allow(null),
|
|
2265
1994
|
});
|
|
2266
1995
|
}
|
|
2267
1996
|
}
|