@gofynd/fdk-client-javascript 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/documentation/application/CART.md +5934 -4502
- package/documentation/application/CATALOG.md +6338 -7245
- package/documentation/application/COMMON.md +95 -222
- package/documentation/application/COMMUNICATION.md +106 -186
- package/documentation/application/CONFIGURATION.md +903 -1597
- package/documentation/application/CONTENT.md +562 -1270
- package/documentation/application/FILESTORAGE.md +84 -220
- package/documentation/application/LEAD.md +314 -660
- package/documentation/application/LOGISTIC.md +229 -305
- package/documentation/application/ORDER.md +642 -1137
- package/documentation/application/PAYMENT.md +2285 -3031
- package/documentation/application/POSCART.md +6079 -4642
- package/documentation/application/REWARDS.md +94 -248
- package/documentation/application/SHARE.md +152 -250
- package/documentation/application/THEME.md +952 -1235
- package/documentation/application/USER.md +1228 -1765
- package/documentation/platform/ANALYTICS.md +207 -349
- package/documentation/platform/AUDITTRAIL.md +121 -204
- package/documentation/platform/BILLING.md +865 -1376
- package/documentation/platform/CART.md +2814 -3662
- package/documentation/platform/CATALOG.md +15266 -17619
- package/documentation/platform/COMMON.md +95 -222
- package/documentation/platform/COMMUNICATION.md +1632 -2380
- package/documentation/platform/COMPANYPROFILE.md +572 -957
- package/documentation/platform/CONFIGURATION.md +3050 -4073
- package/documentation/platform/CONTENT.md +3509 -4121
- package/documentation/platform/DISCOUNT.md +140 -236
- package/documentation/platform/FILESTORAGE.md +187 -323
- package/documentation/platform/INVENTORY.md +268 -911
- package/documentation/platform/LEAD.md +2195 -2541
- package/documentation/platform/ORDER.md +3750 -5636
- package/documentation/platform/PARTNER.md +9 -36
- package/documentation/platform/PAYMENT.md +903 -1213
- package/documentation/platform/REWARDS.md +183 -347
- package/documentation/platform/SHARE.md +120 -213
- package/documentation/platform/THEME.md +12956 -13239
- package/documentation/platform/USER.md +975 -1120
- package/documentation/platform/WEBHOOK.md +78 -184
- package/documentation/public/CONFIGURATION.md +95 -222
- package/documentation/public/INVENTORY.md +100 -282
- package/documentation/public/WEBHOOK.md +27 -133
- package/package.json +1 -1
- package/sdk/application/ApplicationConfig.js +1 -1
- package/sdk/application/Cart/CartApplicationClient.d.ts +243 -243
- package/sdk/application/Cart/CartApplicationClient.js +1058 -547
- package/sdk/application/Cart/CartApplicationModel.d.ts +64 -63
- package/sdk/application/Cart/CartApplicationModel.js +489 -886
- package/sdk/application/Cart/CartApplicationValidator.d.ts +17 -17
- package/sdk/application/Cart/CartApplicationValidator.js +98 -98
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +358 -358
- package/sdk/application/Catalog/CatalogApplicationClient.js +1545 -949
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +90 -90
- package/sdk/application/Catalog/CatalogApplicationModel.js +692 -1258
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +19 -19
- package/sdk/application/Catalog/CatalogApplicationValidator.js +110 -110
- package/sdk/application/Common/CommonApplicationClient.d.ts +13 -13
- package/sdk/application/Common/CommonApplicationClient.js +76 -36
- package/sdk/application/Common/CommonApplicationModel.d.ts +12 -12
- package/sdk/application/Common/CommonApplicationModel.js +83 -160
- package/sdk/application/Common/CommonApplicationValidator.d.ts +1 -1
- package/sdk/application/Common/CommonApplicationValidator.js +6 -6
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +11 -11
- package/sdk/application/Communication/CommunicationApplicationClient.js +92 -31
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +6 -6
- package/sdk/application/Communication/CommunicationApplicationModel.js +38 -83
- package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +1 -1
- package/sdk/application/Communication/CommunicationApplicationValidator.js +4 -4
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +116 -116
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +638 -312
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +85 -85
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +480 -851
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +8 -8
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +33 -33
- package/sdk/application/Content/ContentApplicationClient.d.ts +67 -67
- package/sdk/application/Content/ContentApplicationClient.js +581 -213
- package/sdk/application/Content/ContentApplicationModel.d.ts +76 -75
- package/sdk/application/Content/ContentApplicationModel.js +468 -875
- package/sdk/application/Content/ContentApplicationValidator.d.ts +5 -5
- package/sdk/application/Content/ContentApplicationValidator.js +24 -24
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +25 -25
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +121 -59
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +13 -13
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +86 -169
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +1 -1
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +7 -7
- package/sdk/application/Lead/LeadApplicationClient.d.ts +24 -24
- package/sdk/application/Lead/LeadApplicationClient.js +230 -96
- package/sdk/application/Lead/LeadApplicationModel.d.ts +35 -35
- package/sdk/application/Lead/LeadApplicationModel.js +267 -474
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +2 -2
- package/sdk/application/Lead/LeadApplicationValidator.js +11 -11
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +30 -19
- package/sdk/application/Logistic/LogisticApplicationClient.js +196 -47
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +17 -14
- package/sdk/application/Logistic/LogisticApplicationModel.js +133 -201
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +3 -2
- package/sdk/application/Logistic/LogisticApplicationValidator.js +14 -8
- package/sdk/application/Order/OrderApplicationClient.d.ts +86 -86
- package/sdk/application/Order/OrderApplicationClient.js +448 -215
- package/sdk/application/Order/OrderApplicationModel.d.ts +50 -50
- package/sdk/application/Order/OrderApplicationModel.js +357 -661
- package/sdk/application/Order/OrderApplicationValidator.d.ts +7 -7
- package/sdk/application/Order/OrderApplicationValidator.js +28 -28
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +318 -318
- package/sdk/application/Payment/PaymentApplicationClient.js +1525 -750
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +72 -72
- package/sdk/application/Payment/PaymentApplicationModel.js +565 -1033
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +28 -28
- package/sdk/application/Payment/PaymentApplicationValidator.js +107 -107
- package/sdk/application/PosCart/PosCartApplicationClient.d.ts +254 -254
- package/sdk/application/PosCart/PosCartApplicationClient.js +1137 -606
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +61 -60
- package/sdk/application/PosCart/PosCartApplicationModel.js +477 -873
- package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +18 -18
- package/sdk/application/PosCart/PosCartApplicationValidator.js +103 -103
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +27 -27
- package/sdk/application/Rewards/RewardsApplicationClient.js +253 -113
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +14 -14
- package/sdk/application/Rewards/RewardsApplicationModel.js +96 -191
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +3 -3
- package/sdk/application/Rewards/RewardsApplicationValidator.js +12 -12
- package/sdk/application/Share/ShareApplicationClient.d.ts +37 -37
- package/sdk/application/Share/ShareApplicationClient.js +221 -96
- package/sdk/application/Share/ShareApplicationModel.d.ts +8 -8
- package/sdk/application/Share/ShareApplicationModel.js +63 -123
- package/sdk/application/Share/ShareApplicationValidator.d.ts +4 -4
- package/sdk/application/Share/ShareApplicationValidator.js +12 -12
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -8
- package/sdk/application/Theme/ThemeApplicationClient.js +115 -37
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +34 -34
- package/sdk/application/Theme/ThemeApplicationModel.js +190 -336
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +1 -1
- package/sdk/application/Theme/ThemeApplicationValidator.js +4 -4
- package/sdk/application/User/UserApplicationClient.d.ts +280 -280
- package/sdk/application/User/UserApplicationClient.js +1201 -543
- package/sdk/application/User/UserApplicationModel.d.ts +79 -72
- package/sdk/application/User/UserApplicationModel.js +440 -689
- package/sdk/application/User/UserApplicationValidator.d.ts +24 -24
- package/sdk/application/User/UserApplicationValidator.js +89 -89
- package/sdk/common/AxiosHelper.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +55 -47
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +308 -151
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +6 -6
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +20 -20
- package/sdk/platform/Analytics/AnalyticsPlatformClient.d.ts +8 -4
- package/sdk/platform/Analytics/AnalyticsPlatformClient.js +103 -16
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +11 -11
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +95 -178
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +16 -12
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +131 -44
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +10 -10
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +50 -89
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +6 -6
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +68 -56
- package/sdk/platform/Billing/BillingPlatformClient.js +416 -171
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +40 -40
- package/sdk/platform/Billing/BillingPlatformModel.js +342 -668
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +8 -8
- package/sdk/platform/Billing/BillingPlatformValidator.js +25 -25
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +176 -159
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +837 -500
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +11 -11
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +63 -63
- package/sdk/platform/Cart/CartPlatformModel.d.ts +86 -85
- package/sdk/platform/Cart/CartPlatformModel.js +677 -1211
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +582 -529
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +2642 -1533
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +40 -40
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +175 -175
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +708 -590
- package/sdk/platform/Catalog/CatalogPlatformClient.js +3103 -1362
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +293 -284
- package/sdk/platform/Catalog/CatalogPlatformModel.js +2149 -3660
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +66 -64
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +235 -216
- package/sdk/platform/Common/CommonPlatformClient.d.ts +14 -12
- package/sdk/platform/Common/CommonPlatformClient.js +80 -37
- package/sdk/platform/Common/CommonPlatformModel.d.ts +12 -12
- package/sdk/platform/Common/CommonPlatformModel.js +83 -160
- package/sdk/platform/Common/CommonPlatformValidator.d.ts +1 -1
- package/sdk/platform/Common/CommonPlatformValidator.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +333 -293
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +1687 -855
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +30 -30
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +87 -87
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +2 -1
- package/sdk/platform/Communication/CommunicationPlatformClient.js +28 -4
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +67 -67
- package/sdk/platform/Communication/CommunicationPlatformModel.js +522 -974
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +70 -57
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +463 -182
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +28 -28
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +294 -557
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +7 -7
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +24 -24
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +175 -137
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +1168 -521
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +22 -21
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +69 -63
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +137 -119
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +691 -316
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +148 -146
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +854 -1508
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -9
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +38 -38
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +542 -461
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +2600 -1160
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +50 -49
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +159 -152
- package/sdk/platform/Content/ContentPlatformModel.d.ts +79 -75
- package/sdk/platform/Content/ContentPlatformModel.js +486 -867
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +72 -61
- package/sdk/platform/Discount/DiscountPlatformClient.js +424 -198
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +7 -7
- package/sdk/platform/Discount/DiscountPlatformModel.js +60 -121
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +6 -6
- package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -29
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +26 -22
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +145 -59
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +58 -52
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +240 -114
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +13 -13
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +86 -169
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +3 -3
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +11 -11
- package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +76 -63
- package/sdk/platform/Inventory/InventoryPlatformClient.js +461 -197
- package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +30 -30
- package/sdk/platform/Inventory/InventoryPlatformModel.js +497 -964
- package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +7 -7
- package/sdk/platform/Inventory/InventoryPlatformValidator.js +28 -28
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +84 -71
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +441 -182
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +7 -7
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +28 -28
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +86 -75
- package/sdk/platform/Lead/LeadPlatformClient.js +434 -212
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +35 -35
- package/sdk/platform/Lead/LeadPlatformModel.js +267 -474
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +6 -6
- package/sdk/platform/Lead/LeadPlatformValidator.js +24 -24
- package/sdk/platform/OAuthClient.js +8 -8
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +14 -11
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +113 -49
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +6 -6
- package/sdk/platform/Order/OrderPlatformClient.d.ts +367 -315
- package/sdk/platform/Order/OrderPlatformClient.js +1775 -893
- package/sdk/platform/Order/OrderPlatformModel.d.ts +198 -192
- package/sdk/platform/Order/OrderPlatformModel.js +1591 -2822
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +32 -32
- package/sdk/platform/Order/OrderPlatformValidator.js +160 -155
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -2
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +52 -8
- package/sdk/platform/Partner/PartnerPlatformModel.js +6 -22
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +65 -54
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +395 -164
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +6 -6
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +23 -23
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +55 -45
- package/sdk/platform/Payment/PaymentPlatformClient.js +362 -147
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +27 -27
- package/sdk/platform/Payment/PaymentPlatformModel.js +220 -408
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +4 -4
- package/sdk/platform/Payment/PaymentPlatformValidator.js +21 -21
- package/sdk/platform/PlatformApplicationClient.d.ts +1496 -10153
- package/sdk/platform/PlatformApplicationClient.js +1584 -13691
- package/sdk/platform/PlatformClient.d.ts +7918 -7666
- package/sdk/platform/PlatformClient.js +8701 -9926
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +91 -78
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +507 -253
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +34 -34
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +15 -15
- package/sdk/platform/Rewards/RewardsPlatformModel.js +92 -194
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +16 -12
- package/sdk/platform/Share/SharePlatformApplicationClient.js +130 -52
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +6 -6
- package/sdk/platform/Share/SharePlatformModel.d.ts +8 -8
- package/sdk/platform/Share/SharePlatformModel.js +60 -118
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +148 -124
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +770 -295
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +15 -15
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +44 -44
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +34 -34
- package/sdk/platform/Theme/ThemePlatformModel.js +190 -336
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +146 -67
- package/sdk/platform/User/UserPlatformApplicationClient.js +742 -155
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +12 -7
- package/sdk/platform/User/UserPlatformApplicationValidator.js +61 -23
- package/sdk/platform/User/UserPlatformModel.d.ts +79 -72
- package/sdk/platform/User/UserPlatformModel.js +440 -689
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +35 -29
- package/sdk/platform/Webhook/WebhookPlatformClient.js +218 -91
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +7 -7
- package/sdk/platform/Webhook/WebhookPlatformModel.js +68 -136
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +3 -3
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +14 -14
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +13 -13
- package/sdk/public/Configuration/ConfigurationPublicClient.js +81 -38
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +12 -12
- package/sdk/public/Configuration/ConfigurationPublicModel.js +85 -162
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +1 -1
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +6 -6
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +34 -34
- package/sdk/public/Inventory/InventoryPublicClient.js +228 -105
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +10 -10
- package/sdk/public/Inventory/InventoryPublicModel.js +119 -245
- package/sdk/public/Inventory/InventoryPublicValidator.d.ts +3 -3
- package/sdk/public/Inventory/InventoryPublicValidator.js +15 -15
- package/sdk/public/Webhook/WebhookPublicClient.js +51 -10
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +7 -7
- package/sdk/public/Webhook/WebhookPublicModel.js +68 -136
- package/tests/application/catalog.spec.js +7 -0
|
@@ -1,1318 +1,850 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
3
|
class PaymentModel {
|
|
4
|
+
static ActiveCardPaymentGatewayResponse() {
|
|
5
|
+
return Joi.object({
|
|
6
|
+
cards: PaymentModel.CardPaymentGateway().required(),
|
|
7
|
+
message: Joi.string().allow("").required(),
|
|
8
|
+
success: Joi.boolean().required(),
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
static AddBeneficiaryDetailsOTPRequest() {
|
|
12
|
+
return Joi.object({
|
|
13
|
+
details: PaymentModel.BankDetailsForOTP().required(),
|
|
14
|
+
order_id: Joi.string().allow("").required(),
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
static AddBeneficiaryDetailsRequest() {
|
|
18
|
+
return Joi.object({
|
|
19
|
+
delights: Joi.boolean().required(),
|
|
20
|
+
details: PaymentModel.BeneficiaryModeDetails().required(),
|
|
21
|
+
order_id: Joi.string().allow("").required(),
|
|
22
|
+
otp: Joi.string().allow(""),
|
|
23
|
+
request_id: Joi.string().allow(""),
|
|
24
|
+
shipment_id: Joi.string().allow("").required(),
|
|
25
|
+
transfer_mode: Joi.string().allow("").required(),
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
static AddBeneficiaryViaOtpVerificationRequest() {
|
|
29
|
+
return Joi.object({
|
|
30
|
+
hash_key: Joi.string().allow("").required(),
|
|
31
|
+
otp: Joi.string().allow("").required(),
|
|
32
|
+
request_id: Joi.string().allow("").required(),
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
static AddBeneficiaryViaOtpVerificationResponse() {
|
|
36
|
+
return Joi.object({
|
|
37
|
+
message: Joi.string().allow("").required(),
|
|
38
|
+
success: Joi.boolean(),
|
|
39
|
+
});
|
|
40
|
+
}
|
|
4
41
|
static AggregatorConfigDetail() {
|
|
5
42
|
return Joi.object({
|
|
6
|
-
pin: Joi.string().allow("").allow(null),
|
|
7
|
-
|
|
8
|
-
merchant_id: Joi.string().allow("").allow(null),
|
|
9
|
-
|
|
10
|
-
secret: Joi.string().allow("").required(),
|
|
11
|
-
|
|
12
|
-
user_id: Joi.string().allow("").allow(null),
|
|
13
|
-
|
|
14
|
-
sdk: Joi.boolean().allow(null),
|
|
15
|
-
|
|
16
43
|
api: Joi.string().allow("").allow(null),
|
|
17
|
-
|
|
18
|
-
merchant_key: Joi.string().allow("").allow(null),
|
|
19
|
-
|
|
20
44
|
config_type: Joi.string().allow("").required(),
|
|
21
|
-
|
|
22
45
|
key: Joi.string().allow("").required(),
|
|
23
|
-
|
|
46
|
+
merchant_id: Joi.string().allow("").allow(null),
|
|
47
|
+
merchant_key: Joi.string().allow("").allow(null),
|
|
48
|
+
pin: Joi.string().allow("").allow(null),
|
|
49
|
+
sdk: Joi.boolean().allow(null),
|
|
50
|
+
secret: Joi.string().allow("").required(),
|
|
51
|
+
user_id: Joi.string().allow("").allow(null),
|
|
24
52
|
verify_api: Joi.string().allow("").allow(null),
|
|
25
53
|
});
|
|
26
54
|
}
|
|
27
|
-
|
|
55
|
+
static AggregatorRoute() {
|
|
56
|
+
return Joi.object({
|
|
57
|
+
api_link: Joi.string().allow("").allow(null),
|
|
58
|
+
data: Joi.any().allow(null),
|
|
59
|
+
payment_flow: Joi.string().allow("").allow(null),
|
|
60
|
+
payment_flow_data: Joi.string().allow("").allow(null),
|
|
61
|
+
});
|
|
62
|
+
}
|
|
28
63
|
static AggregatorsConfigDetailResponse() {
|
|
29
64
|
return Joi.object({
|
|
30
|
-
|
|
31
|
-
|
|
65
|
+
ccavenue: PaymentModel.AggregatorConfigDetail(),
|
|
32
66
|
env: Joi.string().allow("").required(),
|
|
33
|
-
|
|
34
|
-
success: Joi.boolean().required(),
|
|
35
|
-
|
|
36
|
-
rupifi: PaymentModel.AggregatorConfigDetail(),
|
|
37
|
-
|
|
67
|
+
juspay: PaymentModel.AggregatorConfigDetail(),
|
|
38
68
|
mswipe: PaymentModel.AggregatorConfigDetail(),
|
|
39
|
-
|
|
40
69
|
payumoney: PaymentModel.AggregatorConfigDetail(),
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
70
|
+
razorpay: PaymentModel.AggregatorConfigDetail(),
|
|
71
|
+
rupifi: PaymentModel.AggregatorConfigDetail(),
|
|
44
72
|
simpl: PaymentModel.AggregatorConfigDetail(),
|
|
45
|
-
|
|
46
73
|
stripe: PaymentModel.AggregatorConfigDetail(),
|
|
47
|
-
|
|
48
|
-
ccavenue: PaymentModel.AggregatorConfigDetail(),
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
static ErrorCodeAndDescription() {
|
|
53
|
-
return Joi.object({
|
|
54
|
-
code: Joi.string().allow("").required(),
|
|
55
|
-
|
|
56
|
-
description: Joi.string().allow("").required(),
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
static HttpErrorCodeAndResponse() {
|
|
61
|
-
return Joi.object({
|
|
62
|
-
error: PaymentModel.ErrorCodeAndDescription().required(),
|
|
63
|
-
|
|
64
74
|
success: Joi.boolean().required(),
|
|
65
75
|
});
|
|
66
76
|
}
|
|
67
|
-
|
|
68
77
|
static AttachCardRequest() {
|
|
69
78
|
return Joi.object({
|
|
70
79
|
card_id: Joi.string().allow("").allow(null).required(),
|
|
71
|
-
|
|
72
80
|
name_on_card: Joi.string().allow(""),
|
|
73
|
-
|
|
74
81
|
nickname: Joi.string().allow(""),
|
|
75
|
-
|
|
76
82
|
refresh: Joi.boolean().allow(null),
|
|
77
83
|
});
|
|
78
84
|
}
|
|
79
|
-
|
|
80
85
|
static AttachCardsResponse() {
|
|
81
86
|
return Joi.object({
|
|
82
87
|
data: Joi.any().required(),
|
|
83
|
-
|
|
84
88
|
message: Joi.string().allow(""),
|
|
85
|
-
|
|
86
89
|
success: Joi.boolean().required(),
|
|
87
90
|
});
|
|
88
91
|
}
|
|
89
|
-
|
|
90
|
-
static CardPaymentGateway() {
|
|
92
|
+
static BalanceDetails() {
|
|
91
93
|
return Joi.object({
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
api: Joi.string().allow("").allow(null),
|
|
94
|
+
currency: Joi.string().allow("").required(),
|
|
95
|
+
formatted_value: Joi.string().allow("").required(),
|
|
96
|
+
value: Joi.number().required(),
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
static BankDetailsForOTP() {
|
|
100
|
+
return Joi.object({
|
|
101
|
+
account_holder: Joi.string().allow("").required(),
|
|
102
|
+
account_no: Joi.string().allow("").required(),
|
|
103
|
+
bank_name: Joi.string().allow("").required(),
|
|
104
|
+
branch_name: Joi.string().allow("").required(),
|
|
105
|
+
ifsc_code: Joi.string().allow("").required(),
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
static BeneficiaryModeDetails() {
|
|
109
|
+
return Joi.object({
|
|
110
|
+
account_holder: Joi.string().allow("").required(),
|
|
111
|
+
account_no: Joi.string().allow("").required(),
|
|
112
|
+
address: Joi.string().allow(""),
|
|
113
|
+
bank_name: Joi.string().allow("").required(),
|
|
114
|
+
branch_name: Joi.string().allow("").required(),
|
|
115
|
+
comment: Joi.string().allow(""),
|
|
116
|
+
email: Joi.string().allow("").required(),
|
|
117
|
+
ifsc_code: Joi.string().allow("").required(),
|
|
118
|
+
mobile: Joi.string().allow("").required(),
|
|
119
|
+
vpa: Joi.string().allow("").allow(null),
|
|
120
|
+
wallet: Joi.string().allow("").allow(null),
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
static BusinessDetails() {
|
|
124
|
+
return Joi.object({
|
|
125
|
+
address: PaymentModel.KYCAddress(),
|
|
126
|
+
business_ownership_type: Joi.string().allow("").allow(null),
|
|
127
|
+
business_type: Joi.string().allow("").allow(null),
|
|
128
|
+
entity_type: Joi.string().allow("").allow(null),
|
|
129
|
+
fda: Joi.string().allow("").allow(null),
|
|
130
|
+
fssai: Joi.string().allow("").allow(null),
|
|
131
|
+
gstin: Joi.string().allow("").allow(null),
|
|
132
|
+
name: Joi.string().allow("").allow(null),
|
|
133
|
+
pan: Joi.string().allow("").allow(null),
|
|
134
|
+
shop_and_establishment: Joi.any(),
|
|
135
|
+
vintage: Joi.string().allow("").allow(null),
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
static CancelOrResendPaymentLinkRequest() {
|
|
139
|
+
return Joi.object({
|
|
140
|
+
payment_link_id: Joi.string().allow("").required(),
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
static CancelPaymentLinkResponse() {
|
|
101
144
|
return Joi.object({
|
|
102
|
-
cards: PaymentModel.CardPaymentGateway().required(),
|
|
103
|
-
|
|
104
145
|
message: Joi.string().allow("").required(),
|
|
105
|
-
|
|
146
|
+
status_code: Joi.number().required(),
|
|
106
147
|
success: Joi.boolean().required(),
|
|
107
148
|
});
|
|
108
149
|
}
|
|
109
|
-
|
|
110
150
|
static Card() {
|
|
111
151
|
return Joi.object({
|
|
152
|
+
aggregator_name: Joi.string().allow("").required(),
|
|
153
|
+
card_brand: Joi.string().allow("").allow(null),
|
|
154
|
+
card_brand_image: Joi.string().allow("").allow(null),
|
|
155
|
+
card_fingerprint: Joi.string().allow("").allow(null),
|
|
156
|
+
card_id: Joi.string().allow("").allow(null),
|
|
112
157
|
card_isin: Joi.string().allow("").allow(null),
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
compliant_with_tokenisation_guidelines: Joi.boolean().allow(null),
|
|
117
|
-
|
|
118
|
-
nickname: Joi.string().allow("").allow(null),
|
|
119
|
-
|
|
120
|
-
expired: Joi.boolean().allow(null),
|
|
121
|
-
|
|
158
|
+
card_issuer: Joi.string().allow("").allow(null),
|
|
159
|
+
card_name: Joi.string().allow("").allow(null),
|
|
160
|
+
card_number: Joi.string().allow("").allow(null),
|
|
122
161
|
card_reference: Joi.string().allow("").allow(null),
|
|
123
|
-
|
|
124
|
-
card_fingerprint: Joi.string().allow("").allow(null),
|
|
125
|
-
|
|
126
|
-
card_brand_image: Joi.string().allow("").allow(null),
|
|
127
|
-
|
|
128
|
-
aggregator_name: Joi.string().allow("").required(),
|
|
129
|
-
|
|
130
162
|
card_token: Joi.string().allow("").allow(null),
|
|
131
|
-
|
|
132
|
-
card_number: Joi.string().allow("").allow(null),
|
|
133
|
-
|
|
134
163
|
card_type: Joi.string().allow("").allow(null),
|
|
135
|
-
|
|
136
|
-
card_issuer: Joi.string().allow("").allow(null),
|
|
137
|
-
|
|
138
|
-
card_brand: Joi.string().allow("").allow(null),
|
|
139
|
-
|
|
164
|
+
compliant_with_tokenisation_guidelines: Joi.boolean().allow(null),
|
|
140
165
|
exp_month: Joi.number().allow(null),
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
card_name: Joi.string().allow("").allow(null),
|
|
166
|
+
exp_year: Joi.number().allow(null),
|
|
167
|
+
expired: Joi.boolean().allow(null),
|
|
168
|
+
nickname: Joi.string().allow("").allow(null),
|
|
145
169
|
});
|
|
146
170
|
}
|
|
147
|
-
|
|
148
|
-
static ListCardsResponse() {
|
|
171
|
+
static CardPaymentGateway() {
|
|
149
172
|
return Joi.object({
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
success: Joi.boolean().required(),
|
|
173
|
+
aggregator: Joi.string().allow("").required(),
|
|
174
|
+
api: Joi.string().allow("").allow(null),
|
|
175
|
+
customer_id: Joi.string().allow("").allow(null),
|
|
155
176
|
});
|
|
156
177
|
}
|
|
157
|
-
|
|
158
|
-
static DeletehCardRequest() {
|
|
178
|
+
static ChargeCustomerRequest() {
|
|
159
179
|
return Joi.object({
|
|
160
|
-
|
|
180
|
+
aggregator: Joi.string().allow("").required(),
|
|
181
|
+
amount: Joi.number().allow(null).required(),
|
|
182
|
+
order_id: Joi.string().allow("").required(),
|
|
183
|
+
transaction_token: Joi.string().allow("").allow(null),
|
|
184
|
+
verified: Joi.boolean().allow(null),
|
|
161
185
|
});
|
|
162
186
|
}
|
|
163
|
-
|
|
164
|
-
static DeleteCardsResponse() {
|
|
187
|
+
static ChargeCustomerResponse() {
|
|
165
188
|
return Joi.object({
|
|
166
|
-
|
|
167
|
-
|
|
189
|
+
aggregator: Joi.string().allow("").required(),
|
|
190
|
+
cart_id: Joi.string().allow("").allow(null),
|
|
191
|
+
delivery_address_id: Joi.string().allow("").allow(null),
|
|
192
|
+
message: Joi.string().allow("").required(),
|
|
193
|
+
order_id: Joi.string().allow("").required(),
|
|
194
|
+
status: Joi.string().allow("").required(),
|
|
168
195
|
success: Joi.boolean().required(),
|
|
169
196
|
});
|
|
170
197
|
}
|
|
171
|
-
|
|
172
|
-
static ValidateCustomerRequest() {
|
|
198
|
+
static CheckCreditResponse() {
|
|
173
199
|
return Joi.object({
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
phone_number: Joi.string().allow("").required(),
|
|
177
|
-
|
|
178
|
-
merchant_params: Joi.any(),
|
|
179
|
-
|
|
180
|
-
payload: Joi.string().allow("").allow(null),
|
|
181
|
-
|
|
182
|
-
delivery_address: Joi.any(),
|
|
183
|
-
|
|
184
|
-
aggregator: Joi.string().allow("").required(),
|
|
185
|
-
|
|
186
|
-
transaction_amount_in_paise: Joi.number().required(),
|
|
187
|
-
|
|
188
|
-
billing_address: Joi.any(),
|
|
189
|
-
});
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
static ValidateCustomerResponse() {
|
|
193
|
-
return Joi.object({
|
|
194
|
-
data: Joi.any().required(),
|
|
195
|
-
|
|
196
|
-
message: Joi.string().allow("").required(),
|
|
197
|
-
|
|
198
|
-
success: Joi.boolean().required(),
|
|
199
|
-
});
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
static ChargeCustomerRequest() {
|
|
203
|
-
return Joi.object({
|
|
204
|
-
verified: Joi.boolean().allow(null),
|
|
205
|
-
|
|
206
|
-
amount: Joi.number().allow(null).required(),
|
|
207
|
-
|
|
208
|
-
order_id: Joi.string().allow("").required(),
|
|
209
|
-
|
|
210
|
-
transaction_token: Joi.string().allow("").allow(null),
|
|
211
|
-
|
|
212
|
-
aggregator: Joi.string().allow("").required(),
|
|
213
|
-
});
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
static ChargeCustomerResponse() {
|
|
217
|
-
return Joi.object({
|
|
218
|
-
status: Joi.string().allow("").required(),
|
|
219
|
-
|
|
220
|
-
success: Joi.boolean().required(),
|
|
221
|
-
|
|
222
|
-
delivery_address_id: Joi.string().allow("").allow(null),
|
|
223
|
-
|
|
224
|
-
message: Joi.string().allow("").required(),
|
|
225
|
-
|
|
226
|
-
order_id: Joi.string().allow("").required(),
|
|
227
|
-
|
|
228
|
-
cart_id: Joi.string().allow("").allow(null),
|
|
229
|
-
|
|
230
|
-
aggregator: Joi.string().allow("").required(),
|
|
231
|
-
});
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
static PaymentInitializationRequest() {
|
|
235
|
-
return Joi.object({
|
|
236
|
-
timeout: Joi.number().allow(null),
|
|
237
|
-
|
|
238
|
-
customer_id: Joi.string().allow("").required(),
|
|
239
|
-
|
|
240
|
-
method: Joi.string().allow("").required(),
|
|
241
|
-
|
|
242
|
-
vpa: Joi.string().allow("").allow(null),
|
|
243
|
-
|
|
244
|
-
merchant_order_id: Joi.string().allow("").required(),
|
|
245
|
-
|
|
246
|
-
amount: Joi.number().allow(null).required(),
|
|
247
|
-
|
|
248
|
-
email: Joi.string().allow("").required(),
|
|
249
|
-
|
|
250
|
-
currency: Joi.string().allow("").required(),
|
|
251
|
-
|
|
252
|
-
order_id: Joi.string().allow("").required(),
|
|
253
|
-
|
|
254
|
-
razorpay_payment_id: Joi.string().allow("").allow(null),
|
|
255
|
-
|
|
256
|
-
aggregator: Joi.string().allow("").required(),
|
|
257
|
-
|
|
258
|
-
contact: Joi.string().allow("").required(),
|
|
259
|
-
});
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
static PaymentInitializationResponse() {
|
|
263
|
-
return Joi.object({
|
|
264
|
-
customer_id: Joi.string().allow("").allow(null),
|
|
265
|
-
|
|
266
|
-
status: Joi.string().allow(""),
|
|
267
|
-
|
|
268
|
-
method: Joi.string().allow("").required(),
|
|
269
|
-
|
|
270
|
-
vpa: Joi.string().allow("").allow(null),
|
|
271
|
-
|
|
272
|
-
upi_poll_url: Joi.string().allow("").allow(null),
|
|
273
|
-
|
|
274
|
-
success: Joi.boolean().required(),
|
|
275
|
-
|
|
276
|
-
merchant_order_id: Joi.string().allow("").required(),
|
|
277
|
-
|
|
278
|
-
aggregator_order_id: Joi.string().allow(""),
|
|
279
|
-
|
|
280
|
-
amount: Joi.number().allow(null),
|
|
281
|
-
|
|
282
|
-
timeout: Joi.number().allow(null),
|
|
283
|
-
|
|
284
|
-
bqr_image: Joi.string().allow("").allow(null),
|
|
285
|
-
|
|
286
|
-
virtual_id: Joi.string().allow("").allow(null),
|
|
287
|
-
|
|
288
|
-
currency: Joi.string().allow("").allow(null),
|
|
289
|
-
|
|
290
|
-
polling_url: Joi.string().allow("").required(),
|
|
291
|
-
|
|
292
|
-
razorpay_payment_id: Joi.string().allow("").allow(null),
|
|
293
|
-
|
|
294
|
-
aggregator: Joi.string().allow("").required(),
|
|
295
|
-
});
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
static PaymentStatusUpdateRequest() {
|
|
299
|
-
return Joi.object({
|
|
300
|
-
customer_id: Joi.string().allow("").required(),
|
|
301
|
-
|
|
302
|
-
status: Joi.string().allow("").required(),
|
|
303
|
-
|
|
304
|
-
method: Joi.string().allow("").required(),
|
|
305
|
-
|
|
306
|
-
vpa: Joi.string().allow("").required(),
|
|
307
|
-
|
|
308
|
-
merchant_order_id: Joi.string().allow("").required(),
|
|
309
|
-
|
|
310
|
-
amount: Joi.number().allow(null).required(),
|
|
311
|
-
|
|
312
|
-
email: Joi.string().allow("").required(),
|
|
313
|
-
|
|
314
|
-
currency: Joi.string().allow("").required(),
|
|
315
|
-
|
|
316
|
-
order_id: Joi.string().allow("").required(),
|
|
317
|
-
|
|
318
|
-
aggregator: Joi.string().allow("").required(),
|
|
319
|
-
|
|
320
|
-
contact: Joi.string().allow("").required(),
|
|
321
|
-
});
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
static PaymentStatusUpdateResponse() {
|
|
325
|
-
return Joi.object({
|
|
326
|
-
status: Joi.string().allow("").required(),
|
|
327
|
-
|
|
328
|
-
redirect_url: Joi.string().allow("").allow(null),
|
|
329
|
-
|
|
330
|
-
success: Joi.boolean().allow(null),
|
|
331
|
-
|
|
332
|
-
aggregator_name: Joi.string().allow("").required(),
|
|
333
|
-
|
|
334
|
-
retry: Joi.boolean().required(),
|
|
335
|
-
});
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
static IntentAppErrorList() {
|
|
339
|
-
return Joi.object({
|
|
340
|
-
code: Joi.string().allow("").allow(null),
|
|
341
|
-
|
|
342
|
-
package_name: Joi.string().allow("").allow(null),
|
|
343
|
-
});
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
static PaymentModeLogo() {
|
|
347
|
-
return Joi.object({
|
|
348
|
-
large: Joi.string().allow("").required(),
|
|
349
|
-
|
|
350
|
-
small: Joi.string().allow("").required(),
|
|
351
|
-
});
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
static IntentApp() {
|
|
355
|
-
return Joi.object({
|
|
356
|
-
logos: PaymentModel.PaymentModeLogo(),
|
|
357
|
-
|
|
358
|
-
display_name: Joi.string().allow("").allow(null),
|
|
359
|
-
|
|
360
|
-
code: Joi.string().allow("").allow(null),
|
|
361
|
-
|
|
362
|
-
package_name: Joi.string().allow("").allow(null),
|
|
363
|
-
});
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
static PaymentModeList() {
|
|
367
|
-
return Joi.object({
|
|
368
|
-
card_number: Joi.string().allow("").allow(null),
|
|
369
|
-
|
|
370
|
-
display_name: Joi.string().allow("").allow(null),
|
|
371
|
-
|
|
372
|
-
card_issuer: Joi.string().allow("").allow(null),
|
|
373
|
-
|
|
374
|
-
card_brand: Joi.string().allow("").allow(null),
|
|
375
|
-
|
|
376
|
-
intent_flow: Joi.boolean().allow(null),
|
|
377
|
-
|
|
378
|
-
exp_month: Joi.number().allow(null),
|
|
379
|
-
|
|
380
|
-
intent_app_error_dict_list: Joi.array().items(
|
|
381
|
-
PaymentModel.IntentAppErrorList()
|
|
382
|
-
),
|
|
383
|
-
|
|
384
|
-
exp_year: Joi.number().allow(null),
|
|
385
|
-
|
|
386
|
-
compliant_with_tokenisation_guidelines: Joi.boolean().allow(null),
|
|
387
|
-
|
|
388
|
-
retry_count: Joi.number().allow(null),
|
|
389
|
-
|
|
390
|
-
card_brand_image: Joi.string().allow("").allow(null),
|
|
391
|
-
|
|
392
|
-
card_type: Joi.string().allow("").allow(null),
|
|
393
|
-
|
|
394
|
-
logo_url: PaymentModel.PaymentModeLogo(),
|
|
395
|
-
|
|
396
|
-
cod_limit: Joi.number().allow(null),
|
|
397
|
-
|
|
398
|
-
code: Joi.string().allow("").allow(null),
|
|
399
|
-
|
|
400
|
-
timeout: Joi.number().allow(null),
|
|
401
|
-
|
|
402
|
-
merchant_code: Joi.string().allow("").allow(null),
|
|
403
|
-
|
|
404
|
-
nickname: Joi.string().allow("").allow(null),
|
|
405
|
-
|
|
406
|
-
aggregator_name: Joi.string().allow("").required(),
|
|
407
|
-
|
|
408
|
-
fynd_vpa: Joi.string().allow("").allow(null),
|
|
409
|
-
|
|
410
|
-
card_id: Joi.string().allow("").allow(null),
|
|
411
|
-
|
|
412
|
-
cod_limit_per_order: Joi.number().allow(null),
|
|
413
|
-
|
|
414
|
-
intent_app: Joi.array().items(PaymentModel.IntentApp()),
|
|
415
|
-
|
|
416
|
-
card_isin: Joi.string().allow("").allow(null),
|
|
417
|
-
|
|
418
|
-
remaining_limit: Joi.number().allow(null),
|
|
419
|
-
|
|
420
|
-
expired: Joi.boolean().allow(null),
|
|
421
|
-
|
|
422
|
-
card_reference: Joi.string().allow("").allow(null),
|
|
423
|
-
|
|
424
|
-
card_fingerprint: Joi.string().allow("").allow(null),
|
|
425
|
-
|
|
426
|
-
intent_app_error_list: Joi.array().items(Joi.string().allow("")),
|
|
427
|
-
|
|
428
|
-
card_token: Joi.string().allow("").allow(null),
|
|
429
|
-
|
|
430
|
-
display_priority: Joi.number().allow(null),
|
|
431
|
-
|
|
432
|
-
name: Joi.string().allow("").allow(null),
|
|
433
|
-
|
|
434
|
-
card_name: Joi.string().allow("").allow(null),
|
|
435
|
-
});
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
static RootPaymentMode() {
|
|
439
|
-
return Joi.object({
|
|
440
|
-
is_pay_by_card_pl: Joi.boolean().allow(null),
|
|
441
|
-
|
|
442
|
-
aggregator_name: Joi.string().allow("").allow(null),
|
|
443
|
-
|
|
444
|
-
display_name: Joi.string().allow("").required(),
|
|
445
|
-
|
|
446
|
-
save_card: Joi.boolean().allow(null),
|
|
447
|
-
|
|
448
|
-
display_priority: Joi.number().required(),
|
|
449
|
-
|
|
450
|
-
list: Joi.array().items(PaymentModel.PaymentModeList()),
|
|
451
|
-
|
|
452
|
-
anonymous_enable: Joi.boolean().allow(null),
|
|
453
|
-
|
|
454
|
-
name: Joi.string().allow("").required(),
|
|
455
|
-
|
|
456
|
-
add_card_enabled: Joi.boolean().allow(null),
|
|
457
|
-
});
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
static AggregatorRoute() {
|
|
461
|
-
return Joi.object({
|
|
462
|
-
data: Joi.any().allow(null),
|
|
463
|
-
|
|
464
|
-
api_link: Joi.string().allow("").allow(null),
|
|
465
|
-
|
|
466
|
-
payment_flow_data: Joi.string().allow("").allow(null),
|
|
467
|
-
|
|
468
|
-
payment_flow: Joi.string().allow("").allow(null),
|
|
469
|
-
});
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
static PaymentFlow() {
|
|
473
|
-
return Joi.object({
|
|
474
|
-
razorpay: PaymentModel.AggregatorRoute(),
|
|
475
|
-
|
|
476
|
-
epaylater: PaymentModel.AggregatorRoute(),
|
|
477
|
-
|
|
478
|
-
jiopay: PaymentModel.AggregatorRoute(),
|
|
479
|
-
|
|
480
|
-
fynd: PaymentModel.AggregatorRoute(),
|
|
481
|
-
|
|
482
|
-
rupifi: PaymentModel.AggregatorRoute(),
|
|
483
|
-
|
|
484
|
-
mswipe: PaymentModel.AggregatorRoute(),
|
|
485
|
-
|
|
486
|
-
bqr_razorpay: PaymentModel.AggregatorRoute(),
|
|
487
|
-
|
|
488
|
-
juspay: PaymentModel.AggregatorRoute(),
|
|
489
|
-
|
|
490
|
-
simpl: PaymentModel.AggregatorRoute(),
|
|
491
|
-
|
|
492
|
-
stripe: PaymentModel.AggregatorRoute(),
|
|
493
|
-
|
|
494
|
-
ccavenue: PaymentModel.AggregatorRoute(),
|
|
495
|
-
|
|
496
|
-
upi_razorpay: PaymentModel.AggregatorRoute(),
|
|
497
|
-
|
|
498
|
-
payubiz: PaymentModel.AggregatorRoute(),
|
|
499
|
-
});
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
static PaymentOptionAndFlow() {
|
|
503
|
-
return Joi.object({
|
|
504
|
-
payment_option: Joi.array()
|
|
505
|
-
.items(PaymentModel.RootPaymentMode())
|
|
506
|
-
.required(),
|
|
507
|
-
|
|
508
|
-
payment_flows: PaymentModel.PaymentFlow().required(),
|
|
509
|
-
});
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
static PaymentModeRouteResponse() {
|
|
513
|
-
return Joi.object({
|
|
514
|
-
payment_options: PaymentModel.PaymentOptionAndFlow().required(),
|
|
515
|
-
|
|
200
|
+
data: PaymentModel.CreditDetail().required(),
|
|
516
201
|
success: Joi.boolean().required(),
|
|
517
202
|
});
|
|
518
203
|
}
|
|
519
|
-
|
|
520
|
-
static RupifiBannerData() {
|
|
204
|
+
static CreateOrderUserData() {
|
|
521
205
|
return Joi.object({
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
206
|
+
aggregator: Joi.string().allow("").allow(null),
|
|
207
|
+
amount: Joi.number().allow(null),
|
|
208
|
+
callback_url: Joi.string().allow("").allow(null),
|
|
209
|
+
contact: Joi.string().allow("").allow(null),
|
|
210
|
+
currency: Joi.string().allow("").allow(null),
|
|
211
|
+
customer_id: Joi.string().allow("").allow(null),
|
|
212
|
+
email: Joi.string().allow("").allow(null),
|
|
213
|
+
merchant_order_id: Joi.string().allow("").allow(null),
|
|
214
|
+
method: Joi.string().allow("").allow(null),
|
|
215
|
+
order_id: Joi.string().allow("").allow(null),
|
|
525
216
|
});
|
|
526
217
|
}
|
|
527
|
-
|
|
528
|
-
static RupifiBannerResponse() {
|
|
218
|
+
static CreateOrderUserPaymentMethods() {
|
|
529
219
|
return Joi.object({
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
220
|
+
meta: PaymentModel.PaymentMethodsMeta().required(),
|
|
221
|
+
mode: Joi.string().allow("").required(),
|
|
222
|
+
name: Joi.string().allow("").required(),
|
|
533
223
|
});
|
|
534
224
|
}
|
|
535
|
-
|
|
536
|
-
static EpaylaterBannerData() {
|
|
225
|
+
static CreateOrderUserRequest() {
|
|
537
226
|
return Joi.object({
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
227
|
+
currency: Joi.string().allow("").required(),
|
|
228
|
+
failure_callback_url: Joi.string().allow("").required(),
|
|
229
|
+
meta: Joi.any().allow(null),
|
|
230
|
+
payment_link_id: Joi.string().allow("").required(),
|
|
231
|
+
payment_methods: PaymentModel.CreateOrderUserPaymentMethods().required(),
|
|
232
|
+
success_callback_url: Joi.string().allow("").required(),
|
|
543
233
|
});
|
|
544
234
|
}
|
|
545
|
-
|
|
546
|
-
static EpaylaterBannerResponse() {
|
|
235
|
+
static CreateOrderUserResponse() {
|
|
547
236
|
return Joi.object({
|
|
548
|
-
|
|
549
|
-
|
|
237
|
+
callback_url: Joi.string().allow("").allow(null),
|
|
238
|
+
data: PaymentModel.CreateOrderUserData(),
|
|
239
|
+
message: Joi.string().allow("").required(),
|
|
240
|
+
order_id: Joi.string().allow("").allow(null),
|
|
241
|
+
payment_confirm_url: Joi.string().allow("").allow(null),
|
|
242
|
+
status_code: Joi.number().required(),
|
|
550
243
|
success: Joi.boolean().required(),
|
|
551
244
|
});
|
|
552
245
|
}
|
|
553
|
-
|
|
554
|
-
static ResendOrCancelPaymentRequest() {
|
|
246
|
+
static CreatePaymentLinkMeta() {
|
|
555
247
|
return Joi.object({
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
248
|
+
amount: Joi.string().allow("").required(),
|
|
249
|
+
assign_card_id: Joi.string().allow("").allow(null),
|
|
250
|
+
cart_id: Joi.string().allow("").required(),
|
|
251
|
+
checkout_mode: Joi.string().allow("").required(),
|
|
252
|
+
pincode: Joi.string().allow("").required(),
|
|
559
253
|
});
|
|
560
254
|
}
|
|
561
|
-
|
|
562
|
-
static LinkStatus() {
|
|
255
|
+
static CreatePaymentLinkRequest() {
|
|
563
256
|
return Joi.object({
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
257
|
+
amount: Joi.number().required(),
|
|
258
|
+
description: Joi.string().allow("").allow(null),
|
|
259
|
+
email: Joi.string().allow("").required(),
|
|
260
|
+
external_order_id: Joi.string().allow("").required(),
|
|
261
|
+
meta: PaymentModel.CreatePaymentLinkMeta().required(),
|
|
262
|
+
mobile_number: Joi.string().allow("").required(),
|
|
567
263
|
});
|
|
568
264
|
}
|
|
569
|
-
|
|
570
|
-
static ResendOrCancelPaymentResponse() {
|
|
265
|
+
static CreatePaymentLinkResponse() {
|
|
571
266
|
return Joi.object({
|
|
572
|
-
|
|
573
|
-
|
|
267
|
+
message: Joi.string().allow("").required(),
|
|
268
|
+
payment_link_id: Joi.string().allow("").allow(null),
|
|
269
|
+
payment_link_url: Joi.string().allow("").allow(null),
|
|
270
|
+
polling_timeout: Joi.number().allow(null),
|
|
271
|
+
status_code: Joi.number().required(),
|
|
574
272
|
success: Joi.boolean().required(),
|
|
575
273
|
});
|
|
576
274
|
}
|
|
577
|
-
|
|
578
|
-
static renderHTMLRequest() {
|
|
275
|
+
static CreditDetail() {
|
|
579
276
|
return Joi.object({
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
277
|
+
is_registered: Joi.boolean().required(),
|
|
278
|
+
signup_url: Joi.string().allow("").required(),
|
|
279
|
+
status: Joi.boolean().required(),
|
|
583
280
|
});
|
|
584
281
|
}
|
|
585
|
-
|
|
586
|
-
static renderHTMLResponse() {
|
|
282
|
+
static CreditSummary() {
|
|
587
283
|
return Joi.object({
|
|
588
|
-
|
|
284
|
+
balance: PaymentModel.BalanceDetails(),
|
|
285
|
+
merchant_customer_ref_id: Joi.string().allow("").required(),
|
|
286
|
+
status: Joi.string().allow("").required(),
|
|
287
|
+
status_message: Joi.string().allow("").required(),
|
|
589
288
|
});
|
|
590
289
|
}
|
|
591
|
-
|
|
592
|
-
static ValidateVPARequest() {
|
|
290
|
+
static CustomerCreditSummaryResponse() {
|
|
593
291
|
return Joi.object({
|
|
594
|
-
|
|
292
|
+
data: PaymentModel.CreditSummary(),
|
|
293
|
+
success: Joi.boolean().required(),
|
|
595
294
|
});
|
|
596
295
|
}
|
|
597
|
-
|
|
598
|
-
static ValidateUPI() {
|
|
296
|
+
static CustomerOnboardingRequest() {
|
|
599
297
|
return Joi.object({
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
298
|
+
aggregator: Joi.string().allow("").required(),
|
|
299
|
+
business_info: PaymentModel.BusinessDetails(),
|
|
300
|
+
device: PaymentModel.DeviceDetails(),
|
|
301
|
+
marketplace_info: PaymentModel.MarketplaceInfo(),
|
|
302
|
+
mcc: Joi.string().allow("").allow(null),
|
|
303
|
+
personal_info: PaymentModel.UserPersonalInfoInDetails().required(),
|
|
304
|
+
source: Joi.string().allow("").required(),
|
|
607
305
|
});
|
|
608
306
|
}
|
|
609
|
-
|
|
610
|
-
static ValidateVPAResponse() {
|
|
307
|
+
static CustomerOnboardingResponse() {
|
|
611
308
|
return Joi.object({
|
|
612
|
-
data: PaymentModel.
|
|
613
|
-
|
|
309
|
+
data: PaymentModel.OnboardSummary().required(),
|
|
614
310
|
success: Joi.boolean().required(),
|
|
615
311
|
});
|
|
616
312
|
}
|
|
617
|
-
|
|
618
|
-
static TransferItemsDetails() {
|
|
313
|
+
static DeleteCardsResponse() {
|
|
619
314
|
return Joi.object({
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
display_name: Joi.string().allow(""),
|
|
623
|
-
|
|
624
|
-
logo_small: Joi.string().allow("").required(),
|
|
625
|
-
|
|
626
|
-
logo_large: Joi.string().allow("").required(),
|
|
627
|
-
|
|
628
|
-
name: Joi.string().allow("").required(),
|
|
315
|
+
message: Joi.string().allow("").allow(null),
|
|
316
|
+
success: Joi.boolean().required(),
|
|
629
317
|
});
|
|
630
318
|
}
|
|
631
|
-
|
|
632
|
-
static TransferModeDetails() {
|
|
319
|
+
static DeletehCardRequest() {
|
|
633
320
|
return Joi.object({
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
display_name: Joi.string().allow("").required(),
|
|
321
|
+
card_id: Joi.string().allow("").allow(null).required(),
|
|
637
322
|
});
|
|
638
323
|
}
|
|
639
|
-
|
|
640
|
-
static TransferModeResponse() {
|
|
324
|
+
static DeviceDetails() {
|
|
641
325
|
return Joi.object({
|
|
642
|
-
|
|
326
|
+
device_make: Joi.string().allow("").allow(null),
|
|
327
|
+
device_model: Joi.string().allow("").allow(null),
|
|
328
|
+
device_type: Joi.string().allow("").allow(null),
|
|
329
|
+
identification_number: Joi.string().allow("").allow(null),
|
|
330
|
+
identifier_type: Joi.string().allow("").allow(null),
|
|
331
|
+
os: Joi.string().allow("").allow(null),
|
|
332
|
+
os_version: Joi.string().allow("").allow(null),
|
|
643
333
|
});
|
|
644
334
|
}
|
|
645
|
-
|
|
646
|
-
static UpdateRefundTransferModeRequest() {
|
|
335
|
+
static EpaylaterBannerData() {
|
|
647
336
|
return Joi.object({
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
337
|
+
display: Joi.boolean().required(),
|
|
338
|
+
message: Joi.string().allow(""),
|
|
339
|
+
status: Joi.string().allow(""),
|
|
651
340
|
});
|
|
652
341
|
}
|
|
653
|
-
|
|
654
|
-
static UpdateRefundTransferModeResponse() {
|
|
342
|
+
static EpaylaterBannerResponse() {
|
|
655
343
|
return Joi.object({
|
|
656
|
-
|
|
344
|
+
data: PaymentModel.EpaylaterBannerData().required(),
|
|
345
|
+
success: Joi.boolean().required(),
|
|
657
346
|
});
|
|
658
347
|
}
|
|
659
|
-
|
|
660
|
-
static OrderBeneficiaryDetails() {
|
|
348
|
+
static ErrorCodeAndDescription() {
|
|
661
349
|
return Joi.object({
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
email: Joi.string().allow("").required(),
|
|
665
|
-
|
|
666
|
-
display_name: Joi.string().allow("").required(),
|
|
667
|
-
|
|
668
|
-
account_holder: Joi.string().allow("").required(),
|
|
669
|
-
|
|
670
|
-
delights_user_name: Joi.string().allow("").allow(null),
|
|
671
|
-
|
|
672
|
-
created_on: Joi.string().allow("").required(),
|
|
673
|
-
|
|
674
|
-
beneficiary_id: Joi.string().allow("").required(),
|
|
675
|
-
|
|
676
|
-
id: Joi.number().required(),
|
|
677
|
-
|
|
678
|
-
title: Joi.string().allow("").required(),
|
|
679
|
-
|
|
680
|
-
mobile: Joi.string().allow(""),
|
|
681
|
-
|
|
682
|
-
modified_on: Joi.string().allow("").required(),
|
|
683
|
-
|
|
684
|
-
comment: Joi.string().allow(""),
|
|
685
|
-
|
|
686
|
-
subtitle: Joi.string().allow("").required(),
|
|
687
|
-
|
|
688
|
-
transfer_mode: Joi.string().allow("").required(),
|
|
689
|
-
|
|
690
|
-
bank_name: Joi.string().allow("").required(),
|
|
691
|
-
|
|
692
|
-
is_active: Joi.boolean().required(),
|
|
693
|
-
|
|
694
|
-
ifsc_code: Joi.string().allow("").required(),
|
|
695
|
-
|
|
696
|
-
branch_name: Joi.string().allow(""),
|
|
697
|
-
|
|
698
|
-
account_no: Joi.string().allow("").required(),
|
|
350
|
+
code: Joi.string().allow("").required(),
|
|
351
|
+
description: Joi.string().allow("").required(),
|
|
699
352
|
});
|
|
700
353
|
}
|
|
701
|
-
|
|
702
|
-
static OrderBeneficiaryResponse() {
|
|
354
|
+
static ErrorCodeDescription() {
|
|
703
355
|
return Joi.object({
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
356
|
+
code: Joi.string().allow("").required(),
|
|
357
|
+
description: Joi.string().allow("").required(),
|
|
358
|
+
success: Joi.boolean().required(),
|
|
707
359
|
});
|
|
708
360
|
}
|
|
709
|
-
|
|
710
|
-
static NotFoundResourceError() {
|
|
361
|
+
static ErrorDescription() {
|
|
711
362
|
return Joi.object({
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
363
|
+
amount: Joi.number().allow(null),
|
|
364
|
+
cancelled: Joi.boolean().allow(null),
|
|
365
|
+
expired: Joi.boolean().allow(null),
|
|
366
|
+
invalid_id: Joi.boolean().allow(null),
|
|
367
|
+
merchant_name: Joi.string().allow("").allow(null),
|
|
368
|
+
merchant_order_id: Joi.string().allow("").allow(null),
|
|
369
|
+
msg: Joi.string().allow("").allow(null),
|
|
370
|
+
payment_transaction_id: Joi.string().allow("").allow(null),
|
|
717
371
|
});
|
|
718
372
|
}
|
|
719
|
-
|
|
720
|
-
static IfscCodeResponse() {
|
|
373
|
+
static ErrorResponse() {
|
|
721
374
|
return Joi.object({
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
success: Joi.boolean(),
|
|
375
|
+
error: PaymentModel.ErrorDescription(),
|
|
376
|
+
message: Joi.string().allow("").required(),
|
|
377
|
+
status_code: Joi.number().required(),
|
|
378
|
+
success: Joi.boolean().required(),
|
|
727
379
|
});
|
|
728
380
|
}
|
|
729
|
-
|
|
730
|
-
static ErrorCodeDescription() {
|
|
381
|
+
static GetPaymentLinkResponse() {
|
|
731
382
|
return Joi.object({
|
|
383
|
+
amount: Joi.number().allow(null),
|
|
384
|
+
external_order_id: Joi.string().allow("").allow(null),
|
|
385
|
+
merchant_name: Joi.string().allow("").allow(null),
|
|
386
|
+
message: Joi.string().allow("").required(),
|
|
387
|
+
payment_link_current_status: Joi.string().allow("").allow(null),
|
|
388
|
+
payment_link_url: Joi.string().allow("").allow(null),
|
|
389
|
+
polling_timeout: Joi.number().allow(null),
|
|
390
|
+
status_code: Joi.number().required(),
|
|
732
391
|
success: Joi.boolean().required(),
|
|
733
|
-
|
|
734
|
-
code: Joi.string().allow("").required(),
|
|
735
|
-
|
|
736
|
-
description: Joi.string().allow("").required(),
|
|
737
392
|
});
|
|
738
393
|
}
|
|
739
|
-
|
|
740
|
-
static AddBeneficiaryViaOtpVerificationRequest() {
|
|
394
|
+
static HttpErrorCodeAndResponse() {
|
|
741
395
|
return Joi.object({
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
request_id: Joi.string().allow("").required(),
|
|
745
|
-
|
|
746
|
-
otp: Joi.string().allow("").required(),
|
|
396
|
+
error: PaymentModel.ErrorCodeAndDescription().required(),
|
|
397
|
+
success: Joi.boolean().required(),
|
|
747
398
|
});
|
|
748
399
|
}
|
|
749
|
-
|
|
750
|
-
static AddBeneficiaryViaOtpVerificationResponse() {
|
|
400
|
+
static IfscCodeResponse() {
|
|
751
401
|
return Joi.object({
|
|
752
|
-
|
|
753
|
-
|
|
402
|
+
bank_name: Joi.string().allow("").required(),
|
|
403
|
+
branch_name: Joi.string().allow("").required(),
|
|
754
404
|
success: Joi.boolean(),
|
|
755
405
|
});
|
|
756
406
|
}
|
|
757
|
-
|
|
758
|
-
static WrongOtpError() {
|
|
407
|
+
static IntentApp() {
|
|
759
408
|
return Joi.object({
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
description: Joi.string().allow("").required(),
|
|
409
|
+
code: Joi.string().allow("").allow(null),
|
|
410
|
+
display_name: Joi.string().allow("").allow(null),
|
|
411
|
+
logos: PaymentModel.PaymentModeLogo(),
|
|
412
|
+
package_name: Joi.string().allow("").allow(null),
|
|
765
413
|
});
|
|
766
414
|
}
|
|
767
|
-
|
|
768
|
-
static BeneficiaryModeDetails() {
|
|
415
|
+
static IntentAppErrorList() {
|
|
769
416
|
return Joi.object({
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
address: Joi.string().allow(""),
|
|
773
|
-
|
|
774
|
-
bank_name: Joi.string().allow("").required(),
|
|
775
|
-
|
|
776
|
-
email: Joi.string().allow("").required(),
|
|
777
|
-
|
|
778
|
-
account_holder: Joi.string().allow("").required(),
|
|
779
|
-
|
|
780
|
-
mobile: Joi.string().allow("").required(),
|
|
781
|
-
|
|
782
|
-
ifsc_code: Joi.string().allow("").required(),
|
|
783
|
-
|
|
784
|
-
wallet: Joi.string().allow("").allow(null),
|
|
785
|
-
|
|
786
|
-
comment: Joi.string().allow(""),
|
|
787
|
-
|
|
788
|
-
branch_name: Joi.string().allow("").required(),
|
|
789
|
-
|
|
790
|
-
account_no: Joi.string().allow("").required(),
|
|
417
|
+
code: Joi.string().allow("").allow(null),
|
|
418
|
+
package_name: Joi.string().allow("").allow(null),
|
|
791
419
|
});
|
|
792
420
|
}
|
|
793
|
-
|
|
794
|
-
static AddBeneficiaryDetailsRequest() {
|
|
421
|
+
static KYCAddress() {
|
|
795
422
|
return Joi.object({
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
details: PaymentModel.BeneficiaryModeDetails().required(),
|
|
805
|
-
|
|
806
|
-
transfer_mode: Joi.string().allow("").required(),
|
|
807
|
-
|
|
808
|
-
otp: Joi.string().allow(""),
|
|
423
|
+
addressline1: Joi.string().allow("").required(),
|
|
424
|
+
addressline2: Joi.string().allow("").allow(null),
|
|
425
|
+
city: Joi.string().allow("").required(),
|
|
426
|
+
land_mark: Joi.string().allow("").allow(null),
|
|
427
|
+
ownership_type: Joi.string().allow("").allow(null),
|
|
428
|
+
pincode: Joi.string().allow("").required(),
|
|
429
|
+
state: Joi.string().allow("").required(),
|
|
809
430
|
});
|
|
810
431
|
}
|
|
811
|
-
|
|
812
|
-
static RefundAccountResponse() {
|
|
432
|
+
static LinkStatus() {
|
|
813
433
|
return Joi.object({
|
|
814
|
-
is_verified_flag: Joi.boolean(),
|
|
815
|
-
|
|
816
|
-
data: Joi.any(),
|
|
817
|
-
|
|
818
434
|
message: Joi.string().allow("").required(),
|
|
819
|
-
|
|
820
|
-
success: Joi.boolean().required(),
|
|
435
|
+
status: Joi.boolean().required(),
|
|
821
436
|
});
|
|
822
437
|
}
|
|
823
|
-
|
|
824
|
-
static BankDetailsForOTP() {
|
|
438
|
+
static ListCardsResponse() {
|
|
825
439
|
return Joi.object({
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
ifsc_code: Joi.string().allow("").required(),
|
|
831
|
-
|
|
832
|
-
branch_name: Joi.string().allow("").required(),
|
|
833
|
-
|
|
834
|
-
account_no: Joi.string().allow("").required(),
|
|
440
|
+
data: Joi.array().items(PaymentModel.Card()),
|
|
441
|
+
message: Joi.string().allow("").required(),
|
|
442
|
+
success: Joi.boolean().required(),
|
|
835
443
|
});
|
|
836
444
|
}
|
|
837
|
-
|
|
838
|
-
static AddBeneficiaryDetailsOTPRequest() {
|
|
445
|
+
static MarketplaceInfo() {
|
|
839
446
|
return Joi.object({
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
447
|
+
date_of_joining: Joi.string().allow("").allow(null),
|
|
448
|
+
membership_id: Joi.string().allow("").required(),
|
|
449
|
+
name: Joi.string().allow("").required(),
|
|
843
450
|
});
|
|
844
451
|
}
|
|
845
|
-
|
|
846
|
-
static WalletOtpRequest() {
|
|
452
|
+
static NotFoundResourceError() {
|
|
847
453
|
return Joi.object({
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
454
|
+
code: Joi.string().allow("").required(),
|
|
455
|
+
description: Joi.string().allow("").required(),
|
|
456
|
+
success: Joi.boolean().required(),
|
|
851
457
|
});
|
|
852
458
|
}
|
|
853
|
-
|
|
854
|
-
static WalletOtpResponse() {
|
|
459
|
+
static OnboardSummary() {
|
|
855
460
|
return Joi.object({
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
request_id: Joi.string().allow("").required(),
|
|
461
|
+
redirect_url: Joi.string().allow("").required(),
|
|
462
|
+
session: Joi.any().required(),
|
|
463
|
+
status: Joi.boolean().required(),
|
|
861
464
|
});
|
|
862
465
|
}
|
|
863
|
-
|
|
864
|
-
static SetDefaultBeneficiaryRequest() {
|
|
466
|
+
static OrderBeneficiaryDetails() {
|
|
865
467
|
return Joi.object({
|
|
866
|
-
|
|
867
|
-
|
|
468
|
+
account_holder: Joi.string().allow("").required(),
|
|
469
|
+
account_no: Joi.string().allow("").required(),
|
|
470
|
+
address: Joi.string().allow("").required(),
|
|
471
|
+
bank_name: Joi.string().allow("").required(),
|
|
868
472
|
beneficiary_id: Joi.string().allow("").required(),
|
|
473
|
+
branch_name: Joi.string().allow(""),
|
|
474
|
+
comment: Joi.string().allow(""),
|
|
475
|
+
created_on: Joi.string().allow("").required(),
|
|
476
|
+
delights_user_name: Joi.string().allow("").allow(null),
|
|
477
|
+
display_name: Joi.string().allow("").required(),
|
|
478
|
+
email: Joi.string().allow("").required(),
|
|
479
|
+
id: Joi.number().required(),
|
|
480
|
+
ifsc_code: Joi.string().allow("").required(),
|
|
481
|
+
is_active: Joi.boolean().required(),
|
|
482
|
+
mobile: Joi.string().allow(""),
|
|
483
|
+
modified_on: Joi.string().allow("").required(),
|
|
484
|
+
subtitle: Joi.string().allow("").required(),
|
|
485
|
+
title: Joi.string().allow("").required(),
|
|
486
|
+
transfer_mode: Joi.string().allow("").required(),
|
|
869
487
|
});
|
|
870
488
|
}
|
|
871
|
-
|
|
872
|
-
static SetDefaultBeneficiaryResponse() {
|
|
489
|
+
static OrderBeneficiaryResponse() {
|
|
873
490
|
return Joi.object({
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
success: Joi.boolean(),
|
|
491
|
+
beneficiaries: Joi.array().items(PaymentModel.OrderBeneficiaryDetails()),
|
|
492
|
+
show_beneficiary_details: Joi.boolean(),
|
|
877
493
|
});
|
|
878
494
|
}
|
|
879
|
-
|
|
880
|
-
static GetPaymentLinkResponse() {
|
|
495
|
+
static PaymentFlow() {
|
|
881
496
|
return Joi.object({
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
status_code: Joi.number().required(),
|
|
897
|
-
|
|
898
|
-
polling_timeout: Joi.number().allow(null),
|
|
497
|
+
bqr_razorpay: PaymentModel.AggregatorRoute(),
|
|
498
|
+
ccavenue: PaymentModel.AggregatorRoute(),
|
|
499
|
+
epaylater: PaymentModel.AggregatorRoute(),
|
|
500
|
+
fynd: PaymentModel.AggregatorRoute(),
|
|
501
|
+
jiopay: PaymentModel.AggregatorRoute(),
|
|
502
|
+
juspay: PaymentModel.AggregatorRoute(),
|
|
503
|
+
mswipe: PaymentModel.AggregatorRoute(),
|
|
504
|
+
payubiz: PaymentModel.AggregatorRoute(),
|
|
505
|
+
razorpay: PaymentModel.AggregatorRoute(),
|
|
506
|
+
rupifi: PaymentModel.AggregatorRoute(),
|
|
507
|
+
simpl: PaymentModel.AggregatorRoute(),
|
|
508
|
+
stripe: PaymentModel.AggregatorRoute(),
|
|
509
|
+
upi_razorpay: PaymentModel.AggregatorRoute(),
|
|
899
510
|
});
|
|
900
511
|
}
|
|
901
|
-
|
|
902
|
-
static ErrorDescription() {
|
|
512
|
+
static PaymentInitializationRequest() {
|
|
903
513
|
return Joi.object({
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
514
|
+
aggregator: Joi.string().allow("").required(),
|
|
515
|
+
amount: Joi.number().allow(null).required(),
|
|
516
|
+
contact: Joi.string().allow("").required(),
|
|
517
|
+
currency: Joi.string().allow("").required(),
|
|
518
|
+
customer_id: Joi.string().allow("").required(),
|
|
519
|
+
email: Joi.string().allow("").required(),
|
|
520
|
+
merchant_order_id: Joi.string().allow("").required(),
|
|
521
|
+
method: Joi.string().allow("").required(),
|
|
522
|
+
order_id: Joi.string().allow("").required(),
|
|
523
|
+
razorpay_payment_id: Joi.string().allow("").allow(null),
|
|
524
|
+
timeout: Joi.number().allow(null),
|
|
525
|
+
vpa: Joi.string().allow("").allow(null),
|
|
526
|
+
});
|
|
527
|
+
}
|
|
528
|
+
static PaymentInitializationResponse() {
|
|
529
|
+
return Joi.object({
|
|
530
|
+
aggregator: Joi.string().allow("").required(),
|
|
531
|
+
aggregator_order_id: Joi.string().allow(""),
|
|
532
|
+
amount: Joi.number().allow(null),
|
|
533
|
+
bqr_image: Joi.string().allow("").allow(null),
|
|
534
|
+
currency: Joi.string().allow("").allow(null),
|
|
535
|
+
customer_id: Joi.string().allow("").allow(null),
|
|
536
|
+
merchant_order_id: Joi.string().allow("").required(),
|
|
537
|
+
method: Joi.string().allow("").required(),
|
|
538
|
+
polling_url: Joi.string().allow("").required(),
|
|
539
|
+
razorpay_payment_id: Joi.string().allow("").allow(null),
|
|
540
|
+
status: Joi.string().allow(""),
|
|
541
|
+
success: Joi.boolean().required(),
|
|
542
|
+
timeout: Joi.number().allow(null),
|
|
543
|
+
upi_poll_url: Joi.string().allow("").allow(null),
|
|
544
|
+
virtual_id: Joi.string().allow("").allow(null),
|
|
545
|
+
vpa: Joi.string().allow("").allow(null),
|
|
919
546
|
});
|
|
920
547
|
}
|
|
921
|
-
|
|
922
|
-
static ErrorResponse() {
|
|
548
|
+
static PaymentMethodsMeta() {
|
|
923
549
|
return Joi.object({
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
message: Joi.string().allow("").required(),
|
|
929
|
-
|
|
930
|
-
success: Joi.boolean().required(),
|
|
550
|
+
merchant_code: Joi.string().allow("").required(),
|
|
551
|
+
payment_gateway: Joi.string().allow("").required(),
|
|
552
|
+
payment_identifier: Joi.string().allow("").required(),
|
|
931
553
|
});
|
|
932
554
|
}
|
|
933
|
-
|
|
934
|
-
static CreatePaymentLinkMeta() {
|
|
555
|
+
static PaymentModeList() {
|
|
935
556
|
return Joi.object({
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
557
|
+
aggregator_name: Joi.string().allow("").required(),
|
|
558
|
+
card_brand: Joi.string().allow("").allow(null),
|
|
559
|
+
card_brand_image: Joi.string().allow("").allow(null),
|
|
560
|
+
card_fingerprint: Joi.string().allow("").allow(null),
|
|
561
|
+
card_id: Joi.string().allow("").allow(null),
|
|
562
|
+
card_isin: Joi.string().allow("").allow(null),
|
|
563
|
+
card_issuer: Joi.string().allow("").allow(null),
|
|
564
|
+
card_name: Joi.string().allow("").allow(null),
|
|
565
|
+
card_number: Joi.string().allow("").allow(null),
|
|
566
|
+
card_reference: Joi.string().allow("").allow(null),
|
|
567
|
+
card_token: Joi.string().allow("").allow(null),
|
|
568
|
+
card_type: Joi.string().allow("").allow(null),
|
|
569
|
+
cod_limit: Joi.number().allow(null),
|
|
570
|
+
cod_limit_per_order: Joi.number().allow(null),
|
|
571
|
+
code: Joi.string().allow("").allow(null),
|
|
572
|
+
compliant_with_tokenisation_guidelines: Joi.boolean().allow(null),
|
|
573
|
+
display_name: Joi.string().allow("").allow(null),
|
|
574
|
+
display_priority: Joi.number().allow(null),
|
|
575
|
+
exp_month: Joi.number().allow(null),
|
|
576
|
+
exp_year: Joi.number().allow(null),
|
|
577
|
+
expired: Joi.boolean().allow(null),
|
|
578
|
+
fynd_vpa: Joi.string().allow("").allow(null),
|
|
579
|
+
intent_app: Joi.array().items(PaymentModel.IntentApp()),
|
|
580
|
+
intent_app_error_dict_list: Joi.array().items(
|
|
581
|
+
PaymentModel.IntentAppErrorList()
|
|
582
|
+
),
|
|
583
|
+
intent_app_error_list: Joi.array().items(Joi.string().allow("")),
|
|
584
|
+
intent_flow: Joi.boolean().allow(null),
|
|
585
|
+
logo_url: PaymentModel.PaymentModeLogo(),
|
|
586
|
+
merchant_code: Joi.string().allow("").allow(null),
|
|
587
|
+
name: Joi.string().allow("").allow(null),
|
|
588
|
+
nickname: Joi.string().allow("").allow(null),
|
|
589
|
+
remaining_limit: Joi.number().allow(null),
|
|
590
|
+
retry_count: Joi.number().allow(null),
|
|
591
|
+
timeout: Joi.number().allow(null),
|
|
945
592
|
});
|
|
946
593
|
}
|
|
947
|
-
|
|
948
|
-
static CreatePaymentLinkRequest() {
|
|
594
|
+
static PaymentModeLogo() {
|
|
949
595
|
return Joi.object({
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
amount: Joi.number().required(),
|
|
953
|
-
|
|
954
|
-
email: Joi.string().allow("").required(),
|
|
955
|
-
|
|
956
|
-
meta: PaymentModel.CreatePaymentLinkMeta().required(),
|
|
957
|
-
|
|
958
|
-
external_order_id: Joi.string().allow("").required(),
|
|
959
|
-
|
|
960
|
-
description: Joi.string().allow("").allow(null),
|
|
596
|
+
large: Joi.string().allow("").required(),
|
|
597
|
+
small: Joi.string().allow("").required(),
|
|
961
598
|
});
|
|
962
599
|
}
|
|
963
|
-
|
|
964
|
-
static CreatePaymentLinkResponse() {
|
|
600
|
+
static PaymentModeRouteResponse() {
|
|
965
601
|
return Joi.object({
|
|
966
|
-
|
|
967
|
-
|
|
602
|
+
payment_options: PaymentModel.PaymentOptionAndFlow().required(),
|
|
968
603
|
success: Joi.boolean().required(),
|
|
969
|
-
|
|
970
|
-
message: Joi.string().allow("").required(),
|
|
971
|
-
|
|
972
|
-
status_code: Joi.number().required(),
|
|
973
|
-
|
|
974
|
-
polling_timeout: Joi.number().allow(null),
|
|
975
|
-
|
|
976
|
-
payment_link_id: Joi.string().allow("").allow(null),
|
|
977
604
|
});
|
|
978
605
|
}
|
|
979
|
-
|
|
980
|
-
static CancelOrResendPaymentLinkRequest() {
|
|
606
|
+
static PaymentOptionAndFlow() {
|
|
981
607
|
return Joi.object({
|
|
982
|
-
|
|
608
|
+
payment_flows: PaymentModel.PaymentFlow().required(),
|
|
609
|
+
payment_option: Joi.array()
|
|
610
|
+
.items(PaymentModel.RootPaymentMode())
|
|
611
|
+
.required(),
|
|
983
612
|
});
|
|
984
613
|
}
|
|
985
|
-
|
|
986
|
-
static ResendPaymentLinkResponse() {
|
|
614
|
+
static PaymentStatusUpdateRequest() {
|
|
987
615
|
return Joi.object({
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
616
|
+
aggregator: Joi.string().allow("").required(),
|
|
617
|
+
amount: Joi.number().allow(null).required(),
|
|
618
|
+
contact: Joi.string().allow("").required(),
|
|
619
|
+
currency: Joi.string().allow("").required(),
|
|
620
|
+
customer_id: Joi.string().allow("").required(),
|
|
621
|
+
email: Joi.string().allow("").required(),
|
|
622
|
+
merchant_order_id: Joi.string().allow("").required(),
|
|
623
|
+
method: Joi.string().allow("").required(),
|
|
624
|
+
order_id: Joi.string().allow("").required(),
|
|
625
|
+
status: Joi.string().allow("").required(),
|
|
626
|
+
vpa: Joi.string().allow("").required(),
|
|
995
627
|
});
|
|
996
628
|
}
|
|
997
|
-
|
|
998
|
-
static CancelPaymentLinkResponse() {
|
|
629
|
+
static PaymentStatusUpdateResponse() {
|
|
999
630
|
return Joi.object({
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
success: Joi.boolean().
|
|
631
|
+
aggregator_name: Joi.string().allow("").required(),
|
|
632
|
+
redirect_url: Joi.string().allow("").allow(null),
|
|
633
|
+
retry: Joi.boolean().required(),
|
|
634
|
+
status: Joi.string().allow("").required(),
|
|
635
|
+
success: Joi.boolean().allow(null),
|
|
1005
636
|
});
|
|
1006
637
|
}
|
|
1007
|
-
|
|
1008
638
|
static PollingPaymentLinkResponse() {
|
|
1009
639
|
return Joi.object({
|
|
1010
|
-
status: Joi.string().allow("").allow(null),
|
|
1011
|
-
|
|
1012
|
-
redirect_url: Joi.string().allow("").allow(null),
|
|
1013
|
-
|
|
1014
|
-
success: Joi.boolean().allow(null),
|
|
1015
|
-
|
|
1016
|
-
amount: Joi.number().allow(null),
|
|
1017
|
-
|
|
1018
640
|
aggregator_name: Joi.string().allow("").allow(null),
|
|
1019
|
-
|
|
1020
|
-
message: Joi.string().allow("").allow(null),
|
|
1021
|
-
|
|
641
|
+
amount: Joi.number().allow(null),
|
|
1022
642
|
http_status: Joi.number().allow(null),
|
|
1023
|
-
|
|
643
|
+
message: Joi.string().allow("").allow(null),
|
|
1024
644
|
order_id: Joi.string().allow("").allow(null),
|
|
1025
|
-
|
|
1026
|
-
status_code: Joi.number().allow(null),
|
|
1027
|
-
|
|
1028
645
|
payment_link_id: Joi.string().allow("").allow(null),
|
|
646
|
+
redirect_url: Joi.string().allow("").allow(null),
|
|
647
|
+
status: Joi.string().allow("").allow(null),
|
|
648
|
+
status_code: Joi.number().allow(null),
|
|
649
|
+
success: Joi.boolean().allow(null),
|
|
1029
650
|
});
|
|
1030
651
|
}
|
|
1031
|
-
|
|
1032
|
-
static PaymentMethodsMeta() {
|
|
652
|
+
static RedirectToAggregatorResponse() {
|
|
1033
653
|
return Joi.object({
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
payment_identifier: Joi.string().allow("").required(),
|
|
1037
|
-
|
|
1038
|
-
payment_gateway: Joi.string().allow("").required(),
|
|
654
|
+
data: PaymentModel.RedirectURL().required(),
|
|
655
|
+
success: Joi.boolean().required(),
|
|
1039
656
|
});
|
|
1040
657
|
}
|
|
1041
|
-
|
|
1042
|
-
static CreateOrderUserPaymentMethods() {
|
|
658
|
+
static RedirectURL() {
|
|
1043
659
|
return Joi.object({
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
meta: PaymentModel.PaymentMethodsMeta().required(),
|
|
1047
|
-
|
|
1048
|
-
mode: Joi.string().allow("").required(),
|
|
660
|
+
signup_url: Joi.string().allow("").required(),
|
|
661
|
+
status: Joi.boolean().required(),
|
|
1049
662
|
});
|
|
1050
663
|
}
|
|
1051
|
-
|
|
1052
|
-
static CreateOrderUserRequest() {
|
|
664
|
+
static RefundAccountResponse() {
|
|
1053
665
|
return Joi.object({
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
currency: Joi.string().allow("").required(),
|
|
1059
|
-
|
|
1060
|
-
meta: Joi.any().allow(null),
|
|
1061
|
-
|
|
1062
|
-
payment_methods: PaymentModel.CreateOrderUserPaymentMethods().required(),
|
|
1063
|
-
|
|
1064
|
-
payment_link_id: Joi.string().allow("").required(),
|
|
666
|
+
data: Joi.any(),
|
|
667
|
+
is_verified_flag: Joi.boolean(),
|
|
668
|
+
message: Joi.string().allow("").required(),
|
|
669
|
+
success: Joi.boolean().required(),
|
|
1065
670
|
});
|
|
1066
671
|
}
|
|
1067
|
-
|
|
1068
|
-
static CreateOrderUserData() {
|
|
672
|
+
static renderHTMLRequest() {
|
|
1069
673
|
return Joi.object({
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
method: Joi.string().allow("").allow(null),
|
|
1073
|
-
|
|
1074
|
-
merchant_order_id: Joi.string().allow("").allow(null),
|
|
1075
|
-
|
|
1076
|
-
amount: Joi.number().allow(null),
|
|
1077
|
-
|
|
1078
|
-
email: Joi.string().allow("").allow(null),
|
|
1079
|
-
|
|
1080
|
-
callback_url: Joi.string().allow("").allow(null),
|
|
1081
|
-
|
|
1082
|
-
currency: Joi.string().allow("").allow(null),
|
|
1083
|
-
|
|
1084
|
-
order_id: Joi.string().allow("").allow(null),
|
|
1085
|
-
|
|
1086
|
-
aggregator: Joi.string().allow("").allow(null),
|
|
1087
|
-
|
|
1088
|
-
contact: Joi.string().allow("").allow(null),
|
|
674
|
+
base64_html: Joi.string().allow("").required(),
|
|
675
|
+
returntype: Joi.string().allow("").allow(null),
|
|
1089
676
|
});
|
|
1090
677
|
}
|
|
1091
|
-
|
|
1092
|
-
static CreateOrderUserResponse() {
|
|
678
|
+
static renderHTMLResponse() {
|
|
1093
679
|
return Joi.object({
|
|
1094
|
-
|
|
1095
|
-
|
|
680
|
+
html: Joi.string().allow("").required(),
|
|
681
|
+
});
|
|
682
|
+
}
|
|
683
|
+
static ResendOrCancelPaymentRequest() {
|
|
684
|
+
return Joi.object({
|
|
685
|
+
order_id: Joi.string().allow("").required(),
|
|
686
|
+
request_type: Joi.string().allow("").required(),
|
|
687
|
+
});
|
|
688
|
+
}
|
|
689
|
+
static ResendOrCancelPaymentResponse() {
|
|
690
|
+
return Joi.object({
|
|
691
|
+
data: PaymentModel.LinkStatus().required(),
|
|
1096
692
|
success: Joi.boolean().required(),
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
693
|
+
});
|
|
694
|
+
}
|
|
695
|
+
static ResendPaymentLinkResponse() {
|
|
696
|
+
return Joi.object({
|
|
1100
697
|
message: Joi.string().allow("").required(),
|
|
1101
|
-
|
|
1102
|
-
callback_url: Joi.string().allow("").allow(null),
|
|
1103
|
-
|
|
1104
|
-
order_id: Joi.string().allow("").allow(null),
|
|
1105
|
-
|
|
698
|
+
polling_timeout: Joi.number().allow(null),
|
|
1106
699
|
status_code: Joi.number().required(),
|
|
700
|
+
success: Joi.boolean().required(),
|
|
1107
701
|
});
|
|
1108
702
|
}
|
|
1109
|
-
|
|
1110
|
-
static BalanceDetails() {
|
|
703
|
+
static RootPaymentMode() {
|
|
1111
704
|
return Joi.object({
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
705
|
+
add_card_enabled: Joi.boolean().allow(null),
|
|
706
|
+
aggregator_name: Joi.string().allow("").allow(null),
|
|
707
|
+
anonymous_enable: Joi.boolean().allow(null),
|
|
708
|
+
display_name: Joi.string().allow("").required(),
|
|
709
|
+
display_priority: Joi.number().required(),
|
|
710
|
+
is_pay_by_card_pl: Joi.boolean().allow(null),
|
|
711
|
+
list: Joi.array().items(PaymentModel.PaymentModeList()),
|
|
712
|
+
name: Joi.string().allow("").required(),
|
|
713
|
+
save_card: Joi.boolean().allow(null),
|
|
1117
714
|
});
|
|
1118
715
|
}
|
|
1119
|
-
|
|
1120
|
-
static CreditSummary() {
|
|
716
|
+
static RupifiBannerData() {
|
|
1121
717
|
return Joi.object({
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
merchant_customer_ref_id: Joi.string().allow("").required(),
|
|
1125
|
-
|
|
1126
|
-
status_message: Joi.string().allow("").required(),
|
|
1127
|
-
|
|
1128
|
-
balance: PaymentModel.BalanceDetails(),
|
|
718
|
+
kyc_url: Joi.string().allow(""),
|
|
719
|
+
status: Joi.string().allow(""),
|
|
1129
720
|
});
|
|
1130
721
|
}
|
|
1131
|
-
|
|
1132
|
-
static CustomerCreditSummaryResponse() {
|
|
722
|
+
static RupifiBannerResponse() {
|
|
1133
723
|
return Joi.object({
|
|
1134
|
-
data: PaymentModel.
|
|
1135
|
-
|
|
724
|
+
data: PaymentModel.RupifiBannerData().required(),
|
|
1136
725
|
success: Joi.boolean().required(),
|
|
1137
726
|
});
|
|
1138
727
|
}
|
|
1139
|
-
|
|
1140
|
-
static RedirectURL() {
|
|
728
|
+
static SetDefaultBeneficiaryRequest() {
|
|
1141
729
|
return Joi.object({
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
signup_url: Joi.string().allow("").required(),
|
|
730
|
+
beneficiary_id: Joi.string().allow("").required(),
|
|
731
|
+
order_id: Joi.string().allow("").required(),
|
|
1145
732
|
});
|
|
1146
733
|
}
|
|
1147
|
-
|
|
1148
|
-
static RedirectToAggregatorResponse() {
|
|
734
|
+
static SetDefaultBeneficiaryResponse() {
|
|
1149
735
|
return Joi.object({
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
success: Joi.boolean().required(),
|
|
736
|
+
is_beneficiary_set: Joi.boolean().required(),
|
|
737
|
+
success: Joi.boolean(),
|
|
1153
738
|
});
|
|
1154
739
|
}
|
|
1155
|
-
|
|
1156
|
-
static CreditDetail() {
|
|
740
|
+
static TransferItemsDetails() {
|
|
1157
741
|
return Joi.object({
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
742
|
+
display_name: Joi.string().allow(""),
|
|
743
|
+
id: Joi.number().required(),
|
|
744
|
+
logo_large: Joi.string().allow("").required(),
|
|
745
|
+
logo_small: Joi.string().allow("").required(),
|
|
746
|
+
name: Joi.string().allow("").required(),
|
|
1163
747
|
});
|
|
1164
748
|
}
|
|
1165
|
-
|
|
1166
|
-
static CheckCreditResponse() {
|
|
749
|
+
static TransferModeDetails() {
|
|
1167
750
|
return Joi.object({
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
success: Joi.boolean().required(),
|
|
751
|
+
display_name: Joi.string().allow("").required(),
|
|
752
|
+
items: Joi.array().items(PaymentModel.TransferItemsDetails()),
|
|
1171
753
|
});
|
|
1172
754
|
}
|
|
1173
|
-
|
|
1174
|
-
static KYCAddress() {
|
|
755
|
+
static TransferModeResponse() {
|
|
1175
756
|
return Joi.object({
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
addressline2: Joi.string().allow("").allow(null),
|
|
1179
|
-
|
|
1180
|
-
ownership_type: Joi.string().allow("").allow(null),
|
|
1181
|
-
|
|
1182
|
-
city: Joi.string().allow("").required(),
|
|
1183
|
-
|
|
1184
|
-
pincode: Joi.string().allow("").required(),
|
|
1185
|
-
|
|
1186
|
-
land_mark: Joi.string().allow("").allow(null),
|
|
1187
|
-
|
|
1188
|
-
state: Joi.string().allow("").required(),
|
|
757
|
+
data: Joi.array().items(PaymentModel.TransferModeDetails()).required(),
|
|
1189
758
|
});
|
|
1190
759
|
}
|
|
1191
|
-
|
|
1192
|
-
static BusinessDetails() {
|
|
760
|
+
static UpdateRefundTransferModeRequest() {
|
|
1193
761
|
return Joi.object({
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
vintage: Joi.string().allow("").allow(null),
|
|
1203
|
-
|
|
1204
|
-
pan: Joi.string().allow("").allow(null),
|
|
1205
|
-
|
|
1206
|
-
gstin: Joi.string().allow("").allow(null),
|
|
1207
|
-
|
|
1208
|
-
shop_and_establishment: Joi.any(),
|
|
1209
|
-
|
|
1210
|
-
name: Joi.string().allow("").allow(null),
|
|
1211
|
-
|
|
1212
|
-
business_ownership_type: Joi.string().allow("").allow(null),
|
|
1213
|
-
|
|
1214
|
-
entity_type: Joi.string().allow("").allow(null),
|
|
762
|
+
enable: Joi.boolean().required(),
|
|
763
|
+
transfer_mode: Joi.string().allow("").required(),
|
|
764
|
+
});
|
|
765
|
+
}
|
|
766
|
+
static UpdateRefundTransferModeResponse() {
|
|
767
|
+
return Joi.object({
|
|
768
|
+
success: Joi.boolean(),
|
|
1215
769
|
});
|
|
1216
770
|
}
|
|
1217
|
-
|
|
1218
771
|
static UserPersonalInfoInDetails() {
|
|
1219
772
|
return Joi.object({
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
773
|
+
address_as_per_id: PaymentModel.KYCAddress().required(),
|
|
774
|
+
dob: Joi.string().allow("").allow(null).required(),
|
|
775
|
+
driving_license: Joi.string().allow("").allow(null),
|
|
776
|
+
email: Joi.string().allow("").allow(null),
|
|
1224
777
|
email_verified: Joi.boolean().required(),
|
|
1225
|
-
|
|
1226
778
|
fathers_name: Joi.string().allow("").allow(null),
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
779
|
+
first_name: Joi.string().allow("").required(),
|
|
780
|
+
gender: Joi.string().allow("").allow(null),
|
|
1230
781
|
last_name: Joi.string().allow("").allow(null),
|
|
1231
|
-
|
|
1232
|
-
email: Joi.string().allow("").allow(null),
|
|
1233
|
-
|
|
1234
|
-
passport: Joi.string().allow("").allow(null),
|
|
1235
|
-
|
|
1236
|
-
dob: Joi.string().allow("").allow(null).required(),
|
|
1237
|
-
|
|
1238
|
-
pan: Joi.string().allow("").allow(null),
|
|
1239
|
-
|
|
1240
|
-
driving_license: Joi.string().allow("").allow(null),
|
|
1241
|
-
|
|
1242
782
|
middle_name: Joi.string().allow("").allow(null),
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
783
|
+
mobile_verified: Joi.boolean().required(),
|
|
784
|
+
mothers_name: Joi.string().allow("").allow(null),
|
|
785
|
+
pan: Joi.string().allow("").allow(null),
|
|
786
|
+
passport: Joi.string().allow("").allow(null),
|
|
787
|
+
phone: Joi.string().allow("").required(),
|
|
1246
788
|
voter_id: Joi.string().allow("").allow(null),
|
|
1247
|
-
|
|
1248
|
-
gender: Joi.string().allow("").allow(null),
|
|
1249
|
-
|
|
1250
|
-
first_name: Joi.string().allow("").required(),
|
|
1251
789
|
});
|
|
1252
790
|
}
|
|
1253
|
-
|
|
1254
|
-
static MarketplaceInfo() {
|
|
791
|
+
static ValidateCustomerRequest() {
|
|
1255
792
|
return Joi.object({
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
793
|
+
aggregator: Joi.string().allow("").required(),
|
|
794
|
+
billing_address: Joi.any(),
|
|
795
|
+
delivery_address: Joi.any(),
|
|
796
|
+
merchant_params: Joi.any(),
|
|
797
|
+
order_items: Joi.array().items(Joi.any()),
|
|
798
|
+
payload: Joi.string().allow("").allow(null),
|
|
799
|
+
phone_number: Joi.string().allow("").required(),
|
|
800
|
+
transaction_amount_in_paise: Joi.number().required(),
|
|
1261
801
|
});
|
|
1262
802
|
}
|
|
1263
|
-
|
|
1264
|
-
static DeviceDetails() {
|
|
803
|
+
static ValidateCustomerResponse() {
|
|
1265
804
|
return Joi.object({
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
device_type: Joi.string().allow("").allow(null),
|
|
1271
|
-
|
|
1272
|
-
device_model: Joi.string().allow("").allow(null),
|
|
1273
|
-
|
|
1274
|
-
identification_number: Joi.string().allow("").allow(null),
|
|
1275
|
-
|
|
1276
|
-
identifier_type: Joi.string().allow("").allow(null),
|
|
1277
|
-
|
|
1278
|
-
os: Joi.string().allow("").allow(null),
|
|
805
|
+
data: Joi.any().required(),
|
|
806
|
+
message: Joi.string().allow("").required(),
|
|
807
|
+
success: Joi.boolean().required(),
|
|
1279
808
|
});
|
|
1280
809
|
}
|
|
1281
|
-
|
|
1282
|
-
static CustomerOnboardingRequest() {
|
|
810
|
+
static ValidateUPI() {
|
|
1283
811
|
return Joi.object({
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
marketplace_info: PaymentModel.MarketplaceInfo(),
|
|
1289
|
-
|
|
1290
|
-
mcc: Joi.string().allow("").allow(null),
|
|
1291
|
-
|
|
1292
|
-
source: Joi.string().allow("").required(),
|
|
1293
|
-
|
|
1294
|
-
device: PaymentModel.DeviceDetails(),
|
|
1295
|
-
|
|
1296
|
-
aggregator: Joi.string().allow("").required(),
|
|
812
|
+
customer_name: Joi.string().allow("").required(),
|
|
813
|
+
is_valid: Joi.boolean().required(),
|
|
814
|
+
status: Joi.string().allow("").required(),
|
|
815
|
+
upi_vpa: Joi.string().allow("").required(),
|
|
1297
816
|
});
|
|
1298
817
|
}
|
|
1299
|
-
|
|
1300
|
-
static OnboardSummary() {
|
|
818
|
+
static ValidateVPARequest() {
|
|
1301
819
|
return Joi.object({
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
redirect_url: Joi.string().allow("").required(),
|
|
1305
|
-
|
|
1306
|
-
status: Joi.boolean().required(),
|
|
820
|
+
upi_vpa: Joi.string().allow("").required(),
|
|
1307
821
|
});
|
|
1308
822
|
}
|
|
1309
|
-
|
|
1310
|
-
static CustomerOnboardingResponse() {
|
|
823
|
+
static ValidateVPAResponse() {
|
|
1311
824
|
return Joi.object({
|
|
1312
|
-
data: PaymentModel.
|
|
1313
|
-
|
|
825
|
+
data: PaymentModel.ValidateUPI().required(),
|
|
1314
826
|
success: Joi.boolean().required(),
|
|
1315
827
|
});
|
|
1316
828
|
}
|
|
829
|
+
static WalletOtpRequest() {
|
|
830
|
+
return Joi.object({
|
|
831
|
+
country_code: Joi.string().allow("").required(),
|
|
832
|
+
mobile: Joi.string().allow("").required(),
|
|
833
|
+
});
|
|
834
|
+
}
|
|
835
|
+
static WalletOtpResponse() {
|
|
836
|
+
return Joi.object({
|
|
837
|
+
is_verified_flag: Joi.string().allow("").required(),
|
|
838
|
+
request_id: Joi.string().allow("").required(),
|
|
839
|
+
success: Joi.boolean(),
|
|
840
|
+
});
|
|
841
|
+
}
|
|
842
|
+
static WrongOtpError() {
|
|
843
|
+
return Joi.object({
|
|
844
|
+
description: Joi.string().allow("").required(),
|
|
845
|
+
is_verified_flag: Joi.boolean().required(),
|
|
846
|
+
success: Joi.string().allow("").required(),
|
|
847
|
+
});
|
|
848
|
+
}
|
|
1317
849
|
}
|
|
1318
850
|
module.exports = PaymentModel;
|