@gofynd/fdk-client-javascript 1.0.2 → 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 +557 -1279
- 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 +14453 -17192
- 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 +3438 -4172
- 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 +3400 -5361
- 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/Cart/CartApplicationClient.d.ts +243 -243
- package/sdk/application/Cart/CartApplicationClient.js +567 -567
- 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 +1036 -1036
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +90 -90
- package/sdk/application/Catalog/CatalogApplicationModel.js +677 -1243
- 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 +38 -38
- 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 +26 -26
- 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 +330 -330
- 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 +191 -191
- package/sdk/application/Content/ContentApplicationModel.d.ts +76 -76
- package/sdk/application/Content/ContentApplicationModel.js +467 -884
- 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 +59 -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 +100 -100
- 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 +110 -43
- 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 +85 -85
- package/sdk/application/Order/OrderApplicationClient.js +232 -232
- package/sdk/application/Order/OrderApplicationModel.d.ts +50 -50
- package/sdk/application/Order/OrderApplicationModel.js +352 -656
- 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 +739 -739
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +72 -72
- package/sdk/application/Payment/PaymentApplicationModel.js +570 -1038
- 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 +617 -617
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +64 -63
- package/sdk/application/PosCart/PosCartApplicationModel.js +475 -871
- 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 +112 -112
- 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 +84 -84
- 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 +31 -31
- 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 +581 -581
- 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 +51 -51
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +179 -179
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +6 -6
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +20 -20
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +11 -11
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +95 -178
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +10 -10
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +41 -41
- 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 +60 -60
- package/sdk/platform/Billing/BillingPlatformClient.js +181 -181
- 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 +168 -168
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +553 -553
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +11 -11
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +63 -63
- package/sdk/platform/Cart/CartPlatformModel.d.ts +84 -83
- package/sdk/platform/Cart/CartPlatformModel.js +671 -1205
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +632 -632
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1525 -1525
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +40 -40
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +174 -174
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +682 -682
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1557 -1557
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +291 -291
- package/sdk/platform/Catalog/CatalogPlatformModel.js +2127 -3904
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +66 -66
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +229 -229
- package/sdk/platform/Common/CommonPlatformClient.d.ts +12 -12
- package/sdk/platform/Common/CommonPlatformClient.js +41 -41
- 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 +326 -326
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +943 -943
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +30 -30
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +87 -87
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +67 -67
- package/sdk/platform/Communication/CommunicationPlatformModel.js +522 -974
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +55 -55
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +212 -212
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +27 -27
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +279 -542
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +7 -7
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +24 -24
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +163 -153
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +615 -552
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +22 -21
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +69 -63
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +125 -125
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +342 -342
- 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 +534 -534
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1324 -1324
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +50 -50
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +156 -156
- package/sdk/platform/Content/ContentPlatformModel.d.ts +78 -78
- package/sdk/platform/Content/ContentPlatformModel.js +484 -907
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +65 -65
- package/sdk/platform/Discount/DiscountPlatformClient.js +216 -216
- 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 +24 -24
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +58 -58
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +52 -52
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +123 -123
- 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 +63 -63
- package/sdk/platform/Inventory/InventoryPlatformClient.js +228 -228
- 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 +73 -73
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +200 -200
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +7 -7
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +28 -28
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +80 -80
- package/sdk/platform/Lead/LeadPlatformClient.js +212 -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/Order/OrderPlatformApplicationClient.d.ts +10 -10
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +65 -65
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +6 -6
- package/sdk/platform/Order/OrderPlatformClient.d.ts +357 -357
- package/sdk/platform/Order/OrderPlatformClient.js +1035 -1035
- package/sdk/platform/Order/OrderPlatformModel.d.ts +198 -196
- package/sdk/platform/Order/OrderPlatformModel.js +1574 -2861
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +32 -32
- package/sdk/platform/Order/OrderPlatformValidator.js +160 -160
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +1 -1
- package/sdk/platform/Partner/PartnerPlatformModel.js +10 -26
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +57 -57
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +167 -167
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +6 -6
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +23 -23
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +42 -42
- package/sdk/platform/Payment/PaymentPlatformClient.js +153 -153
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +27 -27
- package/sdk/platform/Payment/PaymentPlatformModel.js +222 -410
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +4 -4
- package/sdk/platform/Payment/PaymentPlatformValidator.js +21 -21
- package/sdk/platform/PlatformApplicationClient.d.ts +1496 -10325
- package/sdk/platform/PlatformApplicationClient.js +1584 -13899
- package/sdk/platform/PlatformClient.d.ts +7965 -7885
- package/sdk/platform/PlatformClient.js +8672 -10105
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +83 -83
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +275 -275
- 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 +10 -10
- package/sdk/platform/Share/SharePlatformApplicationClient.js +59 -59
- 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 +132 -132
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +310 -310
- 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 +136 -69
- package/sdk/platform/User/UserPlatformApplicationClient.js +505 -166
- 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 +31 -31
- package/sdk/platform/Webhook/WebhookPlatformClient.js +88 -88
- 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 +38 -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 +113 -113
- 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/WebhookPublicModel.d.ts +7 -7
- package/sdk/public/Webhook/WebhookPublicModel.js +68 -136
- package/tests/application/catalog.spec.js +7 -0
|
@@ -1,1317 +1,849 @@
|
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
pin: Joi.string().allow("").allow(null),
|
|
9
|
-
|
|
10
|
-
sdk: Joi.boolean().allow(null),
|
|
11
|
-
|
|
12
|
-
verify_api: Joi.string().allow("").allow(null),
|
|
13
|
-
|
|
43
|
+
api: Joi.string().allow("").allow(null),
|
|
14
44
|
config_type: Joi.string().allow("").required(),
|
|
15
|
-
|
|
16
|
-
user_id: Joi.string().allow("").allow(null),
|
|
17
|
-
|
|
45
|
+
key: Joi.string().allow("").required(),
|
|
18
46
|
merchant_id: Joi.string().allow("").allow(null),
|
|
19
|
-
|
|
20
|
-
api: Joi.string().allow("").allow(null),
|
|
21
|
-
|
|
22
47
|
merchant_key: Joi.string().allow("").allow(null),
|
|
23
|
-
|
|
24
|
-
|
|
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),
|
|
52
|
+
verify_api: Joi.string().allow("").allow(null),
|
|
53
|
+
});
|
|
54
|
+
}
|
|
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),
|
|
25
61
|
});
|
|
26
62
|
}
|
|
27
|
-
|
|
28
63
|
static AggregatorsConfigDetailResponse() {
|
|
29
64
|
return Joi.object({
|
|
30
|
-
stripe: PaymentModel.AggregatorConfigDetail(),
|
|
31
|
-
|
|
32
|
-
mswipe: PaymentModel.AggregatorConfigDetail(),
|
|
33
|
-
|
|
34
65
|
ccavenue: PaymentModel.AggregatorConfigDetail(),
|
|
35
|
-
|
|
36
|
-
rupifi: PaymentModel.AggregatorConfigDetail(),
|
|
37
|
-
|
|
38
|
-
razorpay: PaymentModel.AggregatorConfigDetail(),
|
|
39
|
-
|
|
40
|
-
payumoney: PaymentModel.AggregatorConfigDetail(),
|
|
41
|
-
|
|
66
|
+
env: Joi.string().allow("").required(),
|
|
42
67
|
juspay: PaymentModel.AggregatorConfigDetail(),
|
|
43
|
-
|
|
68
|
+
mswipe: PaymentModel.AggregatorConfigDetail(),
|
|
69
|
+
payumoney: PaymentModel.AggregatorConfigDetail(),
|
|
70
|
+
razorpay: PaymentModel.AggregatorConfigDetail(),
|
|
71
|
+
rupifi: PaymentModel.AggregatorConfigDetail(),
|
|
44
72
|
simpl: PaymentModel.AggregatorConfigDetail(),
|
|
45
|
-
|
|
73
|
+
stripe: PaymentModel.AggregatorConfigDetail(),
|
|
46
74
|
success: Joi.boolean().required(),
|
|
47
|
-
|
|
48
|
-
env: Joi.string().allow("").required(),
|
|
49
75
|
});
|
|
50
76
|
}
|
|
51
|
-
|
|
52
|
-
static ErrorCodeAndDescription() {
|
|
77
|
+
static AttachCardRequest() {
|
|
53
78
|
return Joi.object({
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
79
|
+
card_id: Joi.string().allow("").allow(null).required(),
|
|
80
|
+
name_on_card: Joi.string().allow(""),
|
|
81
|
+
nickname: Joi.string().allow(""),
|
|
82
|
+
refresh: Joi.boolean().allow(null),
|
|
57
83
|
});
|
|
58
84
|
}
|
|
59
|
-
|
|
60
|
-
static HttpErrorCodeAndResponse() {
|
|
85
|
+
static AttachCardsResponse() {
|
|
61
86
|
return Joi.object({
|
|
62
|
-
|
|
63
|
-
|
|
87
|
+
data: Joi.any().required(),
|
|
88
|
+
message: Joi.string().allow(""),
|
|
64
89
|
success: Joi.boolean().required(),
|
|
65
90
|
});
|
|
66
91
|
}
|
|
67
|
-
|
|
68
|
-
static AttachCardRequest() {
|
|
92
|
+
static BalanceDetails() {
|
|
69
93
|
return Joi.object({
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
refresh: Joi.boolean().allow(null),
|
|
75
|
-
|
|
76
|
-
name_on_card: Joi.string().allow(""),
|
|
94
|
+
currency: Joi.string().allow("").required(),
|
|
95
|
+
formatted_value: Joi.string().allow("").required(),
|
|
96
|
+
value: Joi.number().required(),
|
|
77
97
|
});
|
|
78
98
|
}
|
|
79
|
-
|
|
80
|
-
static AttachCardsResponse() {
|
|
99
|
+
static BankDetailsForOTP() {
|
|
81
100
|
return Joi.object({
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
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(),
|
|
87
106
|
});
|
|
88
107
|
}
|
|
89
|
-
|
|
90
|
-
static CardPaymentGateway() {
|
|
108
|
+
static BeneficiaryModeDetails() {
|
|
91
109
|
return Joi.object({
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
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),
|
|
97
121
|
});
|
|
98
122
|
}
|
|
99
|
-
|
|
100
|
-
|
|
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
|
-
success: Joi.boolean().required(),
|
|
105
|
-
|
|
106
145
|
message: Joi.string().allow("").required(),
|
|
146
|
+
status_code: Joi.number().required(),
|
|
147
|
+
success: Joi.boolean().required(),
|
|
107
148
|
});
|
|
108
149
|
}
|
|
109
|
-
|
|
110
150
|
static Card() {
|
|
111
151
|
return Joi.object({
|
|
112
|
-
|
|
113
|
-
|
|
152
|
+
aggregator_name: Joi.string().allow("").required(),
|
|
153
|
+
card_brand: Joi.string().allow("").allow(null),
|
|
114
154
|
card_brand_image: Joi.string().allow("").allow(null),
|
|
115
|
-
|
|
116
|
-
compliant_with_tokenisation_guidelines: Joi.boolean().allow(null),
|
|
117
|
-
|
|
118
|
-
card_number: Joi.string().allow("").allow(null),
|
|
119
|
-
|
|
120
155
|
card_fingerprint: Joi.string().allow("").allow(null),
|
|
121
|
-
|
|
122
|
-
card_brand: Joi.string().allow("").allow(null),
|
|
123
|
-
|
|
124
|
-
card_token: Joi.string().allow("").allow(null),
|
|
125
|
-
|
|
126
|
-
exp_year: Joi.number().allow(null),
|
|
127
|
-
|
|
128
|
-
card_isin: Joi.string().allow("").allow(null),
|
|
129
|
-
|
|
130
156
|
card_id: Joi.string().allow("").allow(null),
|
|
131
|
-
|
|
157
|
+
card_isin: Joi.string().allow("").allow(null),
|
|
132
158
|
card_issuer: Joi.string().allow("").allow(null),
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
159
|
+
card_name: Joi.string().allow("").allow(null),
|
|
160
|
+
card_number: Joi.string().allow("").allow(null),
|
|
136
161
|
card_reference: Joi.string().allow("").allow(null),
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
162
|
+
card_token: Joi.string().allow("").allow(null),
|
|
163
|
+
card_type: Joi.string().allow("").allow(null),
|
|
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
|
-
message: Joi.string().allow("").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({
|
|
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(),
|
|
166
195
|
success: Joi.boolean().required(),
|
|
167
|
-
|
|
168
|
-
message: Joi.string().allow("").allow(null),
|
|
169
196
|
});
|
|
170
197
|
}
|
|
171
|
-
|
|
172
|
-
static ValidateCustomerRequest() {
|
|
198
|
+
static CheckCreditResponse() {
|
|
173
199
|
return Joi.object({
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
delivery_address: Joi.any(),
|
|
177
|
-
|
|
178
|
-
payload: Joi.string().allow("").allow(null),
|
|
179
|
-
|
|
180
|
-
billing_address: Joi.any(),
|
|
181
|
-
|
|
182
|
-
order_items: Joi.array().items(Joi.any()),
|
|
183
|
-
|
|
184
|
-
phone_number: Joi.string().allow("").required(),
|
|
185
|
-
|
|
186
|
-
transaction_amount_in_paise: Joi.number().required(),
|
|
187
|
-
|
|
188
|
-
aggregator: Joi.string().allow("").required(),
|
|
189
|
-
});
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
static ValidateCustomerResponse() {
|
|
193
|
-
return Joi.object({
|
|
194
|
-
data: Joi.any().required(),
|
|
195
|
-
|
|
196
|
-
success: Joi.boolean().required(),
|
|
197
|
-
|
|
198
|
-
message: Joi.string().allow("").required(),
|
|
199
|
-
});
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
static ChargeCustomerRequest() {
|
|
203
|
-
return Joi.object({
|
|
204
|
-
order_id: Joi.string().allow("").required(),
|
|
205
|
-
|
|
206
|
-
transaction_token: Joi.string().allow("").allow(null),
|
|
207
|
-
|
|
208
|
-
amount: Joi.number().allow(null).required(),
|
|
209
|
-
|
|
210
|
-
verified: Joi.boolean().allow(null),
|
|
211
|
-
|
|
212
|
-
aggregator: Joi.string().allow("").required(),
|
|
213
|
-
});
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
static ChargeCustomerResponse() {
|
|
217
|
-
return Joi.object({
|
|
218
|
-
cart_id: Joi.string().allow("").allow(null),
|
|
219
|
-
|
|
220
|
-
status: Joi.string().allow("").required(),
|
|
221
|
-
|
|
222
|
-
message: Joi.string().allow("").required(),
|
|
223
|
-
|
|
224
|
-
order_id: Joi.string().allow("").required(),
|
|
225
|
-
|
|
226
|
-
delivery_address_id: Joi.string().allow("").allow(null),
|
|
227
|
-
|
|
228
|
-
success: Joi.boolean().required(),
|
|
229
|
-
|
|
230
|
-
aggregator: Joi.string().allow("").required(),
|
|
231
|
-
});
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
static PaymentInitializationRequest() {
|
|
235
|
-
return Joi.object({
|
|
236
|
-
method: Joi.string().allow("").required(),
|
|
237
|
-
|
|
238
|
-
merchant_order_id: Joi.string().allow("").required(),
|
|
239
|
-
|
|
240
|
-
order_id: Joi.string().allow("").required(),
|
|
241
|
-
|
|
242
|
-
contact: Joi.string().allow("").required(),
|
|
243
|
-
|
|
244
|
-
amount: Joi.number().allow(null).required(),
|
|
245
|
-
|
|
246
|
-
customer_id: Joi.string().allow("").required(),
|
|
247
|
-
|
|
248
|
-
currency: Joi.string().allow("").required(),
|
|
249
|
-
|
|
250
|
-
vpa: Joi.string().allow("").allow(null),
|
|
251
|
-
|
|
252
|
-
email: Joi.string().allow("").required(),
|
|
253
|
-
|
|
254
|
-
timeout: Joi.number().allow(null),
|
|
255
|
-
|
|
256
|
-
razorpay_payment_id: Joi.string().allow("").allow(null),
|
|
257
|
-
|
|
258
|
-
aggregator: Joi.string().allow("").required(),
|
|
259
|
-
});
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
static PaymentInitializationResponse() {
|
|
263
|
-
return Joi.object({
|
|
264
|
-
bqr_image: Joi.string().allow("").allow(null),
|
|
265
|
-
|
|
266
|
-
method: Joi.string().allow("").required(),
|
|
267
|
-
|
|
268
|
-
upi_poll_url: Joi.string().allow("").allow(null),
|
|
269
|
-
|
|
270
|
-
status: Joi.string().allow(""),
|
|
271
|
-
|
|
272
|
-
polling_url: Joi.string().allow("").required(),
|
|
273
|
-
|
|
274
|
-
vpa: Joi.string().allow("").allow(null),
|
|
275
|
-
|
|
276
|
-
virtual_id: Joi.string().allow("").allow(null),
|
|
277
|
-
|
|
278
|
-
aggregator: Joi.string().allow("").required(),
|
|
279
|
-
|
|
280
|
-
amount: Joi.number().allow(null),
|
|
281
|
-
|
|
282
|
-
aggregator_order_id: Joi.string().allow(""),
|
|
283
|
-
|
|
284
|
-
currency: Joi.string().allow("").allow(null),
|
|
285
|
-
|
|
286
|
-
customer_id: Joi.string().allow("").allow(null),
|
|
287
|
-
|
|
288
|
-
timeout: Joi.number().allow(null),
|
|
289
|
-
|
|
290
|
-
razorpay_payment_id: Joi.string().allow("").allow(null),
|
|
291
|
-
|
|
292
|
-
success: Joi.boolean().required(),
|
|
293
|
-
|
|
294
|
-
merchant_order_id: Joi.string().allow("").required(),
|
|
295
|
-
});
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
static PaymentStatusUpdateRequest() {
|
|
299
|
-
return Joi.object({
|
|
300
|
-
method: Joi.string().allow("").required(),
|
|
301
|
-
|
|
302
|
-
status: Joi.string().allow("").required(),
|
|
303
|
-
|
|
304
|
-
merchant_order_id: Joi.string().allow("").required(),
|
|
305
|
-
|
|
306
|
-
order_id: Joi.string().allow("").required(),
|
|
307
|
-
|
|
308
|
-
contact: Joi.string().allow("").required(),
|
|
309
|
-
|
|
310
|
-
amount: Joi.number().allow(null).required(),
|
|
311
|
-
|
|
312
|
-
customer_id: Joi.string().allow("").required(),
|
|
313
|
-
|
|
314
|
-
currency: Joi.string().allow("").required(),
|
|
315
|
-
|
|
316
|
-
vpa: Joi.string().allow("").required(),
|
|
317
|
-
|
|
318
|
-
email: Joi.string().allow("").required(),
|
|
319
|
-
|
|
320
|
-
aggregator: Joi.string().allow("").required(),
|
|
321
|
-
});
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
static PaymentStatusUpdateResponse() {
|
|
325
|
-
return Joi.object({
|
|
326
|
-
aggregator_name: Joi.string().allow("").required(),
|
|
327
|
-
|
|
328
|
-
status: Joi.string().allow("").required(),
|
|
329
|
-
|
|
330
|
-
retry: Joi.boolean().required(),
|
|
331
|
-
|
|
332
|
-
redirect_url: Joi.string().allow("").allow(null),
|
|
333
|
-
|
|
334
|
-
success: Joi.boolean().allow(null),
|
|
335
|
-
});
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
static PaymentModeLogo() {
|
|
339
|
-
return Joi.object({
|
|
340
|
-
large: Joi.string().allow("").required(),
|
|
341
|
-
|
|
342
|
-
small: Joi.string().allow("").required(),
|
|
343
|
-
});
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
static IntentApp() {
|
|
347
|
-
return Joi.object({
|
|
348
|
-
logos: PaymentModel.PaymentModeLogo(),
|
|
349
|
-
|
|
350
|
-
package_name: Joi.string().allow("").allow(null),
|
|
351
|
-
|
|
352
|
-
code: Joi.string().allow("").allow(null),
|
|
353
|
-
|
|
354
|
-
display_name: Joi.string().allow("").allow(null),
|
|
355
|
-
});
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
static IntentAppErrorList() {
|
|
359
|
-
return Joi.object({
|
|
360
|
-
package_name: Joi.string().allow("").allow(null),
|
|
361
|
-
|
|
362
|
-
code: Joi.string().allow("").allow(null),
|
|
363
|
-
});
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
static PaymentModeList() {
|
|
367
|
-
return Joi.object({
|
|
368
|
-
code: Joi.string().allow("").allow(null),
|
|
369
|
-
|
|
370
|
-
compliant_with_tokenisation_guidelines: Joi.boolean().allow(null),
|
|
371
|
-
|
|
372
|
-
intent_app: Joi.array().items(PaymentModel.IntentApp()),
|
|
373
|
-
|
|
374
|
-
retry_count: Joi.number().allow(null),
|
|
375
|
-
|
|
376
|
-
fynd_vpa: Joi.string().allow("").allow(null),
|
|
377
|
-
|
|
378
|
-
display_name: Joi.string().allow("").allow(null),
|
|
379
|
-
|
|
380
|
-
logo_url: PaymentModel.PaymentModeLogo(),
|
|
381
|
-
|
|
382
|
-
card_type: Joi.string().allow("").allow(null),
|
|
383
|
-
|
|
384
|
-
card_brand_image: Joi.string().allow("").allow(null),
|
|
385
|
-
|
|
386
|
-
nickname: Joi.string().allow("").allow(null),
|
|
387
|
-
|
|
388
|
-
aggregator_name: Joi.string().allow("").required(),
|
|
389
|
-
|
|
390
|
-
intent_app_error_dict_list: Joi.array().items(
|
|
391
|
-
PaymentModel.IntentAppErrorList()
|
|
392
|
-
),
|
|
393
|
-
|
|
394
|
-
merchant_code: Joi.string().allow("").allow(null),
|
|
395
|
-
|
|
396
|
-
name: Joi.string().allow("").allow(null),
|
|
397
|
-
|
|
398
|
-
card_issuer: Joi.string().allow("").allow(null),
|
|
399
|
-
|
|
400
|
-
card_reference: Joi.string().allow("").allow(null),
|
|
401
|
-
|
|
402
|
-
timeout: Joi.number().allow(null),
|
|
403
|
-
|
|
404
|
-
intent_app_error_list: Joi.array().items(Joi.string().allow("")),
|
|
405
|
-
|
|
406
|
-
card_token: Joi.string().allow("").allow(null),
|
|
407
|
-
|
|
408
|
-
cod_limit: Joi.number().allow(null),
|
|
409
|
-
|
|
410
|
-
remaining_limit: Joi.number().allow(null),
|
|
411
|
-
|
|
412
|
-
cod_limit_per_order: Joi.number().allow(null),
|
|
413
|
-
|
|
414
|
-
card_name: Joi.string().allow("").allow(null),
|
|
415
|
-
|
|
416
|
-
expired: Joi.boolean().allow(null),
|
|
417
|
-
|
|
418
|
-
card_number: Joi.string().allow("").allow(null),
|
|
419
|
-
|
|
420
|
-
intent_flow: Joi.boolean().allow(null),
|
|
421
|
-
|
|
422
|
-
card_fingerprint: Joi.string().allow("").allow(null),
|
|
423
|
-
|
|
424
|
-
card_brand: Joi.string().allow("").allow(null),
|
|
425
|
-
|
|
426
|
-
exp_year: Joi.number().allow(null),
|
|
427
|
-
|
|
428
|
-
card_isin: Joi.string().allow("").allow(null),
|
|
429
|
-
|
|
430
|
-
card_id: Joi.string().allow("").allow(null),
|
|
431
|
-
|
|
432
|
-
display_priority: Joi.number().allow(null),
|
|
433
|
-
|
|
434
|
-
exp_month: Joi.number().allow(null),
|
|
435
|
-
});
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
static RootPaymentMode() {
|
|
439
|
-
return Joi.object({
|
|
440
|
-
list: Joi.array().items(PaymentModel.PaymentModeList()),
|
|
441
|
-
|
|
442
|
-
anonymous_enable: Joi.boolean().allow(null),
|
|
443
|
-
|
|
444
|
-
display_name: Joi.string().allow("").required(),
|
|
445
|
-
|
|
446
|
-
name: Joi.string().allow("").required(),
|
|
447
|
-
|
|
448
|
-
save_card: Joi.boolean().allow(null),
|
|
449
|
-
|
|
450
|
-
display_priority: Joi.number().required(),
|
|
451
|
-
|
|
452
|
-
add_card_enabled: Joi.boolean().allow(null),
|
|
453
|
-
|
|
454
|
-
is_pay_by_card_pl: Joi.boolean().allow(null),
|
|
455
|
-
|
|
456
|
-
aggregator_name: Joi.string().allow("").allow(null),
|
|
457
|
-
});
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
static AggregatorRoute() {
|
|
461
|
-
return Joi.object({
|
|
462
|
-
payment_flow_data: Joi.string().allow("").allow(null),
|
|
463
|
-
|
|
464
|
-
payment_flow: Joi.string().allow("").allow(null),
|
|
465
|
-
|
|
466
|
-
data: Joi.any().allow(null),
|
|
467
|
-
|
|
468
|
-
api_link: Joi.string().allow("").allow(null),
|
|
469
|
-
});
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
static PaymentFlow() {
|
|
473
|
-
return Joi.object({
|
|
474
|
-
stripe: PaymentModel.AggregatorRoute(),
|
|
475
|
-
|
|
476
|
-
mswipe: PaymentModel.AggregatorRoute(),
|
|
477
|
-
|
|
478
|
-
fynd: PaymentModel.AggregatorRoute(),
|
|
479
|
-
|
|
480
|
-
ccavenue: PaymentModel.AggregatorRoute(),
|
|
481
|
-
|
|
482
|
-
rupifi: PaymentModel.AggregatorRoute(),
|
|
483
|
-
|
|
484
|
-
razorpay: PaymentModel.AggregatorRoute(),
|
|
485
|
-
|
|
486
|
-
payubiz: PaymentModel.AggregatorRoute(),
|
|
487
|
-
|
|
488
|
-
upi_razorpay: PaymentModel.AggregatorRoute(),
|
|
489
|
-
|
|
490
|
-
simpl: PaymentModel.AggregatorRoute(),
|
|
491
|
-
|
|
492
|
-
juspay: PaymentModel.AggregatorRoute(),
|
|
493
|
-
|
|
494
|
-
bqr_razorpay: PaymentModel.AggregatorRoute(),
|
|
495
|
-
|
|
496
|
-
epaylater: PaymentModel.AggregatorRoute(),
|
|
497
|
-
|
|
498
|
-
jiopay: 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
|
-
name: Joi.string().allow("").required(),
|
|
623
|
-
|
|
624
|
-
logo_large: Joi.string().allow("").required(),
|
|
625
|
-
|
|
626
|
-
logo_small: Joi.string().allow("").required(),
|
|
627
|
-
|
|
628
|
-
id: Joi.number().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
|
-
modified_on: Joi.string().allow("").required(),
|
|
665
|
-
|
|
666
|
-
display_name: Joi.string().allow("").required(),
|
|
667
|
-
|
|
668
|
-
bank_name: Joi.string().allow("").required(),
|
|
669
|
-
|
|
670
|
-
subtitle: Joi.string().allow("").required(),
|
|
671
|
-
|
|
672
|
-
account_holder: Joi.string().allow("").required(),
|
|
673
|
-
|
|
674
|
-
comment: Joi.string().allow(""),
|
|
675
|
-
|
|
676
|
-
created_on: Joi.string().allow("").required(),
|
|
677
|
-
|
|
678
|
-
title: Joi.string().allow("").required(),
|
|
679
|
-
|
|
680
|
-
id: Joi.number().required(),
|
|
681
|
-
|
|
682
|
-
beneficiary_id: Joi.string().allow("").required(),
|
|
683
|
-
|
|
684
|
-
delights_user_name: Joi.string().allow("").allow(null),
|
|
685
|
-
|
|
686
|
-
transfer_mode: Joi.string().allow("").required(),
|
|
687
|
-
|
|
688
|
-
address: Joi.string().allow("").required(),
|
|
689
|
-
|
|
690
|
-
email: Joi.string().allow("").required(),
|
|
691
|
-
|
|
692
|
-
account_no: Joi.string().allow("").required(),
|
|
693
|
-
|
|
694
|
-
is_active: Joi.boolean().required(),
|
|
695
|
-
|
|
696
|
-
ifsc_code: Joi.string().allow("").required(),
|
|
697
|
-
|
|
698
|
-
mobile: Joi.string().allow(""),
|
|
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
|
-
bank_name: Joi.string().allow("").required(),
|
|
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({
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
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(),
|
|
736
391
|
success: Joi.boolean().required(),
|
|
737
392
|
});
|
|
738
393
|
}
|
|
739
|
-
|
|
740
|
-
static AddBeneficiaryViaOtpVerificationRequest() {
|
|
394
|
+
static HttpErrorCodeAndResponse() {
|
|
741
395
|
return Joi.object({
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
hash_key: Joi.string().allow("").required(),
|
|
745
|
-
|
|
746
|
-
request_id: 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({
|
|
402
|
+
bank_name: Joi.string().allow("").required(),
|
|
403
|
+
branch_name: Joi.string().allow("").required(),
|
|
752
404
|
success: Joi.boolean(),
|
|
753
|
-
|
|
754
|
-
message: Joi.string().allow("").required(),
|
|
755
405
|
});
|
|
756
406
|
}
|
|
757
|
-
|
|
758
|
-
static WrongOtpError() {
|
|
407
|
+
static IntentApp() {
|
|
759
408
|
return Joi.object({
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
success: 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
|
-
bank_name: Joi.string().allow("").required(),
|
|
773
|
-
|
|
774
|
-
wallet: Joi.string().allow("").allow(null),
|
|
775
|
-
|
|
776
|
-
email: Joi.string().allow("").required(),
|
|
777
|
-
|
|
778
|
-
branch_name: Joi.string().allow("").required(),
|
|
779
|
-
|
|
780
|
-
ifsc_code: Joi.string().allow("").required(),
|
|
781
|
-
|
|
782
|
-
account_holder: Joi.string().allow("").required(),
|
|
783
|
-
|
|
784
|
-
comment: Joi.string().allow(""),
|
|
785
|
-
|
|
786
|
-
vpa: Joi.string().allow("").allow(null),
|
|
787
|
-
|
|
788
|
-
address: Joi.string().allow(""),
|
|
789
|
-
|
|
790
|
-
mobile: 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
|
-
otp: Joi.string().allow(""),
|
|
805
|
-
|
|
806
|
-
transfer_mode: Joi.string().allow("").required(),
|
|
807
|
-
|
|
808
|
-
delights: Joi.boolean().required(),
|
|
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
|
-
success: Joi.boolean().required(),
|
|
819
|
-
|
|
820
434
|
message: Joi.string().allow("").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
|
-
account_holder: Joi.string().allow("").required(),
|
|
833
|
-
|
|
834
|
-
bank_name: 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({
|
|
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(),
|
|
866
472
|
beneficiary_id: Joi.string().allow("").required(),
|
|
867
|
-
|
|
868
|
-
|
|
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
|
-
payment_link_url: Joi.string().allow("").allow(null),
|
|
897
|
-
|
|
898
|
-
success: Joi.boolean().required(),
|
|
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
|
-
success: Joi.boolean().required(),
|
|
929
|
-
|
|
930
|
-
message: Joi.string().allow("").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
|
-
meta: PaymentModel.CreatePaymentLinkMeta().required(),
|
|
953
|
-
|
|
954
|
-
amount: Joi.number().required(),
|
|
955
|
-
|
|
956
|
-
description: Joi.string().allow("").allow(null),
|
|
957
|
-
|
|
958
|
-
email: Joi.string().allow("").required(),
|
|
959
|
-
|
|
960
|
-
external_order_id: Joi.string().allow("").required(),
|
|
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
|
-
|
|
968
|
-
polling_timeout: Joi.number().allow(null),
|
|
969
|
-
|
|
970
|
-
status_code: Joi.number().required(),
|
|
971
|
-
|
|
972
|
-
payment_link_id: Joi.string().allow("").allow(null),
|
|
973
|
-
|
|
974
|
-
payment_link_url: Joi.string().allow("").allow(null),
|
|
975
|
-
|
|
602
|
+
payment_options: PaymentModel.PaymentOptionAndFlow().required(),
|
|
976
603
|
success: Joi.boolean().required(),
|
|
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
|
-
|
|
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({
|
|
640
|
+
aggregator_name: Joi.string().allow("").allow(null),
|
|
641
|
+
amount: Joi.number().allow(null),
|
|
1010
642
|
http_status: Joi.number().allow(null),
|
|
1011
|
-
|
|
1012
|
-
status: Joi.string().allow("").allow(null),
|
|
1013
|
-
|
|
1014
643
|
message: Joi.string().allow("").allow(null),
|
|
1015
|
-
|
|
1016
644
|
order_id: Joi.string().allow("").allow(null),
|
|
1017
|
-
|
|
1018
|
-
success: Joi.boolean().allow(null),
|
|
1019
|
-
|
|
1020
|
-
status_code: Joi.number().allow(null),
|
|
1021
|
-
|
|
1022
645
|
payment_link_id: Joi.string().allow("").allow(null),
|
|
1023
|
-
|
|
1024
|
-
amount: Joi.number().allow(null),
|
|
1025
|
-
|
|
1026
646
|
redirect_url: Joi.string().allow("").allow(null),
|
|
1027
|
-
|
|
1028
|
-
|
|
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_gateway: Joi.string().allow("").required(),
|
|
1037
|
-
|
|
1038
|
-
payment_identifier: 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
|
-
failure_callback_url: Joi.string().allow("").required(),
|
|
1059
|
-
|
|
1060
|
-
payment_link_id: Joi.string().allow("").required(),
|
|
1061
|
-
|
|
1062
|
-
payment_methods: PaymentModel.CreateOrderUserPaymentMethods().required(),
|
|
1063
|
-
|
|
1064
|
-
currency: 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
|
-
merchant_order_id: Joi.string().allow("").allow(null),
|
|
1073
|
-
|
|
1074
|
-
order_id: Joi.string().allow("").allow(null),
|
|
1075
|
-
|
|
1076
|
-
contact: Joi.string().allow("").allow(null),
|
|
1077
|
-
|
|
1078
|
-
amount: Joi.number().allow(null),
|
|
1079
|
-
|
|
1080
|
-
callback_url: Joi.string().allow("").allow(null),
|
|
1081
|
-
|
|
1082
|
-
customer_id: Joi.string().allow("").allow(null),
|
|
1083
|
-
|
|
1084
|
-
currency: Joi.string().allow("").allow(null),
|
|
1085
|
-
|
|
1086
|
-
email: Joi.string().allow("").allow(null),
|
|
1087
|
-
|
|
1088
|
-
aggregator: 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
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
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(),
|
|
692
|
+
success: Joi.boolean().required(),
|
|
693
|
+
});
|
|
694
|
+
}
|
|
695
|
+
static ResendPaymentLinkResponse() {
|
|
696
|
+
return Joi.object({
|
|
697
|
+
message: Joi.string().allow("").required(),
|
|
698
|
+
polling_timeout: Joi.number().allow(null),
|
|
1102
699
|
status_code: Joi.number().required(),
|
|
1103
|
-
|
|
1104
|
-
payment_confirm_url: Joi.string().allow("").allow(null),
|
|
1105
|
-
|
|
1106
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
|
-
status_message: Joi.string().allow("").required(),
|
|
1125
|
-
|
|
1126
|
-
status: 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
|
-
status: Joi.boolean().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
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
addressline1: Joi.string().allow("").required(),
|
|
757
|
+
data: Joi.array().items(PaymentModel.TransferModeDetails()).required(),
|
|
758
|
+
});
|
|
759
|
+
}
|
|
760
|
+
static UpdateRefundTransferModeRequest() {
|
|
761
|
+
return Joi.object({
|
|
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(),
|
|
1189
769
|
});
|
|
1190
770
|
}
|
|
1191
|
-
|
|
1192
771
|
static UserPersonalInfoInDetails() {
|
|
1193
772
|
return Joi.object({
|
|
1194
|
-
driving_license: Joi.string().allow("").allow(null),
|
|
1195
|
-
|
|
1196
|
-
mobile_verified: Joi.boolean().required(),
|
|
1197
|
-
|
|
1198
|
-
dob: Joi.string().allow("").allow(null).required(),
|
|
1199
|
-
|
|
1200
773
|
address_as_per_id: PaymentModel.KYCAddress().required(),
|
|
1201
|
-
|
|
774
|
+
dob: Joi.string().allow("").allow(null).required(),
|
|
775
|
+
driving_license: Joi.string().allow("").allow(null),
|
|
776
|
+
email: Joi.string().allow("").allow(null),
|
|
777
|
+
email_verified: Joi.boolean().required(),
|
|
1202
778
|
fathers_name: Joi.string().allow("").allow(null),
|
|
1203
|
-
|
|
779
|
+
first_name: Joi.string().allow("").required(),
|
|
780
|
+
gender: Joi.string().allow("").allow(null),
|
|
781
|
+
last_name: Joi.string().allow("").allow(null),
|
|
782
|
+
middle_name: Joi.string().allow("").allow(null),
|
|
783
|
+
mobile_verified: Joi.boolean().required(),
|
|
784
|
+
mothers_name: Joi.string().allow("").allow(null),
|
|
1204
785
|
pan: Joi.string().allow("").allow(null),
|
|
1205
|
-
|
|
1206
|
-
email_verified: Joi.boolean().required(),
|
|
1207
|
-
|
|
1208
786
|
passport: Joi.string().allow("").allow(null),
|
|
1209
|
-
|
|
1210
|
-
mothers_name: Joi.string().allow("").allow(null),
|
|
1211
|
-
|
|
1212
|
-
first_name: Joi.string().allow("").required(),
|
|
1213
|
-
|
|
1214
787
|
phone: Joi.string().allow("").required(),
|
|
1215
|
-
|
|
1216
|
-
middle_name: Joi.string().allow("").allow(null),
|
|
1217
|
-
|
|
1218
|
-
last_name: Joi.string().allow("").allow(null),
|
|
1219
|
-
|
|
1220
788
|
voter_id: Joi.string().allow("").allow(null),
|
|
1221
|
-
|
|
1222
|
-
gender: Joi.string().allow("").allow(null),
|
|
1223
|
-
|
|
1224
|
-
email: Joi.string().allow("").allow(null),
|
|
1225
789
|
});
|
|
1226
790
|
}
|
|
1227
|
-
|
|
1228
|
-
static DeviceDetails() {
|
|
791
|
+
static ValidateCustomerRequest() {
|
|
1229
792
|
return Joi.object({
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
device_make: Joi.string().allow("").allow(null),
|
|
1239
|
-
|
|
1240
|
-
device_type: Joi.string().allow("").allow(null),
|
|
1241
|
-
|
|
1242
|
-
identification_number: Joi.string().allow("").allow(null),
|
|
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(),
|
|
1243
801
|
});
|
|
1244
802
|
}
|
|
1245
|
-
|
|
1246
|
-
static BusinessDetails() {
|
|
803
|
+
static ValidateCustomerResponse() {
|
|
1247
804
|
return Joi.object({
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
pan: Joi.string().allow("").allow(null),
|
|
1253
|
-
|
|
1254
|
-
business_type: Joi.string().allow("").allow(null),
|
|
1255
|
-
|
|
1256
|
-
fda: Joi.string().allow("").allow(null),
|
|
1257
|
-
|
|
1258
|
-
shop_and_establishment: Joi.any(),
|
|
1259
|
-
|
|
1260
|
-
name: Joi.string().allow("").allow(null),
|
|
1261
|
-
|
|
1262
|
-
vintage: Joi.string().allow("").allow(null),
|
|
1263
|
-
|
|
1264
|
-
business_ownership_type: Joi.string().allow("").allow(null),
|
|
1265
|
-
|
|
1266
|
-
address: PaymentModel.KYCAddress(),
|
|
1267
|
-
|
|
1268
|
-
gstin: Joi.string().allow("").allow(null),
|
|
805
|
+
data: Joi.any().required(),
|
|
806
|
+
message: Joi.string().allow("").required(),
|
|
807
|
+
success: Joi.boolean().required(),
|
|
1269
808
|
});
|
|
1270
809
|
}
|
|
1271
|
-
|
|
1272
|
-
static MarketplaceInfo() {
|
|
810
|
+
static ValidateUPI() {
|
|
1273
811
|
return Joi.object({
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
date_of_joining: Joi.string().allow("").allow(null),
|
|
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(),
|
|
1279
816
|
});
|
|
1280
817
|
}
|
|
1281
|
-
|
|
1282
|
-
static CustomerOnboardingRequest() {
|
|
818
|
+
static ValidateVPARequest() {
|
|
1283
819
|
return Joi.object({
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
device: PaymentModel.DeviceDetails(),
|
|
1287
|
-
|
|
1288
|
-
mcc: Joi.string().allow("").allow(null),
|
|
1289
|
-
|
|
1290
|
-
source: Joi.string().allow("").required(),
|
|
1291
|
-
|
|
1292
|
-
business_info: PaymentModel.BusinessDetails(),
|
|
1293
|
-
|
|
1294
|
-
marketplace_info: PaymentModel.MarketplaceInfo(),
|
|
1295
|
-
|
|
1296
|
-
aggregator: Joi.string().allow("").required(),
|
|
820
|
+
upi_vpa: Joi.string().allow("").required(),
|
|
1297
821
|
});
|
|
1298
822
|
}
|
|
1299
|
-
|
|
1300
|
-
static OnboardSummary() {
|
|
823
|
+
static ValidateVPAResponse() {
|
|
1301
824
|
return Joi.object({
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
status: Joi.boolean().required(),
|
|
1305
|
-
|
|
1306
|
-
session: Joi.any().required(),
|
|
825
|
+
data: PaymentModel.ValidateUPI().required(),
|
|
826
|
+
success: Joi.boolean().required(),
|
|
1307
827
|
});
|
|
1308
828
|
}
|
|
1309
|
-
|
|
1310
|
-
static CustomerOnboardingResponse() {
|
|
829
|
+
static WalletOtpRequest() {
|
|
1311
830
|
return Joi.object({
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
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(),
|
|
1315
847
|
});
|
|
1316
848
|
}
|
|
1317
849
|
}
|