@gofynd/fdk-client-javascript 1.0.1 → 1.0.2
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 +251 -251
- package/documentation/application/CATALOG.md +414 -414
- package/documentation/application/CONTENT.md +15 -1
- package/documentation/application/ORDER.md +290 -290
- package/documentation/application/PAYMENT.md +255 -255
- package/documentation/application/POSCART.md +297 -297
- package/documentation/platform/CART.md +499 -499
- package/documentation/platform/CATALOG.md +3088 -2702
- package/documentation/platform/COMPANYPROFILE.md +201 -201
- package/documentation/platform/CONTENT.md +123 -1
- package/documentation/platform/ORDER.md +1233 -1158
- package/documentation/platform/PARTNER.md +7 -7
- package/documentation/platform/PAYMENT.md +83 -83
- package/package.json +1 -1
- package/sdk/application/ApplicationConfig.js +1 -1
- package/sdk/application/Cart/CartApplicationClient.js +619 -108
- package/sdk/application/Cart/CartApplicationModel.d.ts +7 -7
- package/sdk/application/Cart/CartApplicationModel.js +335 -335
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +1 -1
- package/sdk/application/Catalog/CatalogApplicationClient.js +730 -134
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +21 -21
- package/sdk/application/Catalog/CatalogApplicationModel.js +547 -547
- package/sdk/application/Common/CommonApplicationClient.js +48 -8
- package/sdk/application/Communication/CommunicationApplicationClient.js +75 -14
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +1 -1
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +392 -66
- package/sdk/application/Content/ContentApplicationClient.js +444 -76
- package/sdk/application/Content/ContentApplicationModel.d.ts +1 -0
- package/sdk/application/Content/ContentApplicationModel.js +11 -1
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +74 -12
- package/sdk/application/Lead/LeadApplicationClient.js +164 -30
- package/sdk/application/Logistic/LogisticApplicationClient.js +98 -16
- package/sdk/application/Order/OrderApplicationClient.d.ts +1 -1
- package/sdk/application/Order/OrderApplicationClient.js +287 -54
- package/sdk/application/Order/OrderApplicationModel.d.ts +19 -19
- package/sdk/application/Order/OrderApplicationModel.js +357 -357
- package/sdk/application/Payment/PaymentApplicationClient.js +961 -186
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +3 -3
- package/sdk/application/Payment/PaymentApplicationModel.js +352 -352
- package/sdk/application/PosCart/PosCartApplicationClient.js +645 -114
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +15 -15
- package/sdk/application/PosCart/PosCartApplicationModel.js +389 -389
- package/sdk/application/Rewards/RewardsApplicationClient.js +168 -28
- package/sdk/application/Share/ShareApplicationClient.js +157 -32
- package/sdk/application/Theme/ThemeApplicationClient.js +94 -16
- package/sdk/application/User/UserApplicationClient.js +806 -148
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +16 -8
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +191 -34
- package/sdk/platform/Analytics/AnalyticsPlatformClient.d.ts +8 -4
- package/sdk/platform/Analytics/AnalyticsPlatformClient.js +103 -16
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +8 -4
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +103 -16
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +24 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +299 -54
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +34 -17
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +409 -72
- package/sdk/platform/Cart/CartPlatformModel.d.ts +35 -35
- package/sdk/platform/Cart/CartPlatformModel.js +617 -617
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +167 -114
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1562 -453
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +39 -39
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +314 -196
- package/sdk/platform/Catalog/CatalogPlatformClient.js +2459 -718
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +103 -94
- package/sdk/platform/Catalog/CatalogPlatformModel.js +2063 -1797
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +17 -15
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +95 -76
- package/sdk/platform/Common/CommonPlatformClient.d.ts +4 -2
- package/sdk/platform/Common/CommonPlatformClient.js +51 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +80 -40
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +1000 -168
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +2 -1
- package/sdk/platform/Communication/CommunicationPlatformClient.js +28 -4
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +27 -14
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +335 -54
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +10 -10
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +278 -278
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +56 -28
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +702 -118
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +36 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +457 -82
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +148 -67
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1724 -284
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -0
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +7 -0
- package/sdk/platform/Content/ContentPlatformModel.d.ts +4 -0
- package/sdk/platform/Content/ContentPlatformModel.js +43 -1
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +21 -10
- package/sdk/platform/Discount/DiscountPlatformClient.js +270 -44
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +8 -4
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +102 -16
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +12 -6
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +150 -24
- package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +27 -14
- package/sdk/platform/Inventory/InventoryPlatformClient.js +316 -52
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +26 -13
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +311 -52
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +22 -11
- package/sdk/platform/Lead/LeadPlatformClient.js +266 -44
- package/sdk/platform/OAuthClient.js +8 -8
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +6 -3
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +78 -14
- package/sdk/platform/Order/OrderPlatformClient.d.ts +95 -43
- package/sdk/platform/Order/OrderPlatformClient.js +1062 -180
- package/sdk/platform/Order/OrderPlatformModel.d.ts +64 -60
- package/sdk/platform/Order/OrderPlatformModel.js +1481 -1425
- package/sdk/platform/Order/OrderPlatformValidator.js +5 -0
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -2
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +52 -8
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +1 -1
- package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +22 -11
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +287 -56
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +21 -11
- package/sdk/platform/Payment/PaymentPlatformClient.js +263 -48
- package/sdk/platform/Payment/PaymentPlatformModel.js +122 -122
- package/sdk/platform/PlatformApplicationClient.d.ts +2959 -2787
- package/sdk/platform/PlatformApplicationClient.js +3420 -3212
- package/sdk/platform/PlatformClient.d.ts +2959 -2787
- package/sdk/platform/PlatformClient.js +3420 -3212
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +26 -13
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +308 -54
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +8 -4
- package/sdk/platform/Share/SharePlatformApplicationClient.js +94 -16
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +47 -23
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +571 -96
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +24 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +296 -48
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +12 -6
- package/sdk/platform/Webhook/WebhookPlatformClient.js +157 -30
- package/sdk/public/Configuration/ConfigurationPublicClient.js +51 -8
- package/sdk/public/Inventory/InventoryPublicClient.js +149 -26
- package/sdk/public/Webhook/WebhookPublicClient.js +51 -10
|
@@ -3,39 +3,39 @@ const Joi = require("joi");
|
|
|
3
3
|
class PaymentModel {
|
|
4
4
|
static AggregatorConfigDetail() {
|
|
5
5
|
return Joi.object({
|
|
6
|
+
secret: Joi.string().allow("").required(),
|
|
7
|
+
|
|
6
8
|
pin: Joi.string().allow("").allow(null),
|
|
7
9
|
|
|
8
|
-
|
|
10
|
+
sdk: Joi.boolean().allow(null),
|
|
9
11
|
|
|
10
|
-
|
|
12
|
+
verify_api: Joi.string().allow("").allow(null),
|
|
13
|
+
|
|
14
|
+
config_type: Joi.string().allow("").required(),
|
|
11
15
|
|
|
12
16
|
user_id: Joi.string().allow("").allow(null),
|
|
13
17
|
|
|
14
|
-
|
|
18
|
+
merchant_id: Joi.string().allow("").allow(null),
|
|
15
19
|
|
|
16
20
|
api: Joi.string().allow("").allow(null),
|
|
17
21
|
|
|
18
22
|
merchant_key: Joi.string().allow("").allow(null),
|
|
19
23
|
|
|
20
|
-
config_type: Joi.string().allow("").required(),
|
|
21
|
-
|
|
22
24
|
key: Joi.string().allow("").required(),
|
|
23
|
-
|
|
24
|
-
verify_api: Joi.string().allow("").allow(null),
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
static AggregatorsConfigDetailResponse() {
|
|
29
29
|
return Joi.object({
|
|
30
|
-
|
|
30
|
+
stripe: PaymentModel.AggregatorConfigDetail(),
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
mswipe: PaymentModel.AggregatorConfigDetail(),
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
ccavenue: PaymentModel.AggregatorConfigDetail(),
|
|
35
35
|
|
|
36
36
|
rupifi: PaymentModel.AggregatorConfigDetail(),
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
razorpay: PaymentModel.AggregatorConfigDetail(),
|
|
39
39
|
|
|
40
40
|
payumoney: PaymentModel.AggregatorConfigDetail(),
|
|
41
41
|
|
|
@@ -43,17 +43,17 @@ class PaymentModel {
|
|
|
43
43
|
|
|
44
44
|
simpl: PaymentModel.AggregatorConfigDetail(),
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
success: Joi.boolean().required(),
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
env: Joi.string().allow("").required(),
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
static ErrorCodeAndDescription() {
|
|
53
53
|
return Joi.object({
|
|
54
|
-
code: Joi.string().allow("").required(),
|
|
55
|
-
|
|
56
54
|
description: Joi.string().allow("").required(),
|
|
55
|
+
|
|
56
|
+
code: Joi.string().allow("").required(),
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
59
|
|
|
@@ -67,13 +67,13 @@ class PaymentModel {
|
|
|
67
67
|
|
|
68
68
|
static AttachCardRequest() {
|
|
69
69
|
return Joi.object({
|
|
70
|
-
card_id: Joi.string().allow("").allow(null).required(),
|
|
71
|
-
|
|
72
|
-
name_on_card: Joi.string().allow(""),
|
|
73
|
-
|
|
74
70
|
nickname: Joi.string().allow(""),
|
|
75
71
|
|
|
72
|
+
card_id: Joi.string().allow("").allow(null).required(),
|
|
73
|
+
|
|
76
74
|
refresh: Joi.boolean().allow(null),
|
|
75
|
+
|
|
76
|
+
name_on_card: Joi.string().allow(""),
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
79
|
|
|
@@ -81,9 +81,9 @@ class PaymentModel {
|
|
|
81
81
|
return Joi.object({
|
|
82
82
|
data: Joi.any().required(),
|
|
83
83
|
|
|
84
|
-
message: Joi.string().allow(""),
|
|
85
|
-
|
|
86
84
|
success: Joi.boolean().required(),
|
|
85
|
+
|
|
86
|
+
message: Joi.string().allow(""),
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
89
|
|
|
@@ -91,9 +91,9 @@ class PaymentModel {
|
|
|
91
91
|
return Joi.object({
|
|
92
92
|
customer_id: Joi.string().allow("").allow(null),
|
|
93
93
|
|
|
94
|
-
aggregator: Joi.string().allow("").required(),
|
|
95
|
-
|
|
96
94
|
api: Joi.string().allow("").allow(null),
|
|
95
|
+
|
|
96
|
+
aggregator: Joi.string().allow("").required(),
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
99
|
|
|
@@ -101,45 +101,45 @@ class PaymentModel {
|
|
|
101
101
|
return Joi.object({
|
|
102
102
|
cards: PaymentModel.CardPaymentGateway().required(),
|
|
103
103
|
|
|
104
|
-
message: Joi.string().allow("").required(),
|
|
105
|
-
|
|
106
104
|
success: Joi.boolean().required(),
|
|
105
|
+
|
|
106
|
+
message: Joi.string().allow("").required(),
|
|
107
107
|
});
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
static Card() {
|
|
111
111
|
return Joi.object({
|
|
112
|
-
|
|
112
|
+
expired: Joi.boolean().allow(null),
|
|
113
113
|
|
|
114
|
-
|
|
114
|
+
card_brand_image: Joi.string().allow("").allow(null),
|
|
115
115
|
|
|
116
116
|
compliant_with_tokenisation_guidelines: Joi.boolean().allow(null),
|
|
117
117
|
|
|
118
|
-
|
|
118
|
+
card_number: Joi.string().allow("").allow(null),
|
|
119
119
|
|
|
120
|
-
|
|
120
|
+
card_fingerprint: Joi.string().allow("").allow(null),
|
|
121
121
|
|
|
122
|
-
|
|
122
|
+
card_brand: Joi.string().allow("").allow(null),
|
|
123
123
|
|
|
124
|
-
|
|
124
|
+
card_token: Joi.string().allow("").allow(null),
|
|
125
125
|
|
|
126
|
-
|
|
126
|
+
exp_year: Joi.number().allow(null),
|
|
127
127
|
|
|
128
|
-
|
|
128
|
+
card_isin: Joi.string().allow("").allow(null),
|
|
129
129
|
|
|
130
|
-
|
|
130
|
+
card_id: Joi.string().allow("").allow(null),
|
|
131
131
|
|
|
132
|
-
|
|
132
|
+
card_issuer: Joi.string().allow("").allow(null),
|
|
133
133
|
|
|
134
134
|
card_type: Joi.string().allow("").allow(null),
|
|
135
135
|
|
|
136
|
-
|
|
136
|
+
card_reference: Joi.string().allow("").allow(null),
|
|
137
137
|
|
|
138
|
-
|
|
138
|
+
nickname: Joi.string().allow("").allow(null),
|
|
139
139
|
|
|
140
140
|
exp_month: Joi.number().allow(null),
|
|
141
141
|
|
|
142
|
-
|
|
142
|
+
aggregator_name: Joi.string().allow("").required(),
|
|
143
143
|
|
|
144
144
|
card_name: Joi.string().allow("").allow(null),
|
|
145
145
|
});
|
|
@@ -149,9 +149,9 @@ class PaymentModel {
|
|
|
149
149
|
return Joi.object({
|
|
150
150
|
data: Joi.array().items(PaymentModel.Card()),
|
|
151
151
|
|
|
152
|
-
message: Joi.string().allow("").required(),
|
|
153
|
-
|
|
154
152
|
success: Joi.boolean().required(),
|
|
153
|
+
|
|
154
|
+
message: Joi.string().allow("").required(),
|
|
155
155
|
});
|
|
156
156
|
}
|
|
157
157
|
|
|
@@ -163,29 +163,29 @@ class PaymentModel {
|
|
|
163
163
|
|
|
164
164
|
static DeleteCardsResponse() {
|
|
165
165
|
return Joi.object({
|
|
166
|
-
message: Joi.string().allow("").allow(null),
|
|
167
|
-
|
|
168
166
|
success: Joi.boolean().required(),
|
|
167
|
+
|
|
168
|
+
message: Joi.string().allow("").allow(null),
|
|
169
169
|
});
|
|
170
170
|
}
|
|
171
171
|
|
|
172
172
|
static ValidateCustomerRequest() {
|
|
173
173
|
return Joi.object({
|
|
174
|
-
order_items: Joi.array().items(Joi.any()),
|
|
175
|
-
|
|
176
|
-
phone_number: Joi.string().allow("").required(),
|
|
177
|
-
|
|
178
174
|
merchant_params: Joi.any(),
|
|
179
175
|
|
|
176
|
+
delivery_address: Joi.any(),
|
|
177
|
+
|
|
180
178
|
payload: Joi.string().allow("").allow(null),
|
|
181
179
|
|
|
182
|
-
|
|
180
|
+
billing_address: Joi.any(),
|
|
183
181
|
|
|
184
|
-
|
|
182
|
+
order_items: Joi.array().items(Joi.any()),
|
|
183
|
+
|
|
184
|
+
phone_number: Joi.string().allow("").required(),
|
|
185
185
|
|
|
186
186
|
transaction_amount_in_paise: Joi.number().required(),
|
|
187
187
|
|
|
188
|
-
|
|
188
|
+
aggregator: Joi.string().allow("").required(),
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
191
|
|
|
@@ -193,39 +193,39 @@ class PaymentModel {
|
|
|
193
193
|
return Joi.object({
|
|
194
194
|
data: Joi.any().required(),
|
|
195
195
|
|
|
196
|
-
message: Joi.string().allow("").required(),
|
|
197
|
-
|
|
198
196
|
success: Joi.boolean().required(),
|
|
197
|
+
|
|
198
|
+
message: Joi.string().allow("").required(),
|
|
199
199
|
});
|
|
200
200
|
}
|
|
201
201
|
|
|
202
202
|
static ChargeCustomerRequest() {
|
|
203
203
|
return Joi.object({
|
|
204
|
-
verified: Joi.boolean().allow(null),
|
|
205
|
-
|
|
206
|
-
amount: Joi.number().allow(null).required(),
|
|
207
|
-
|
|
208
204
|
order_id: Joi.string().allow("").required(),
|
|
209
205
|
|
|
210
206
|
transaction_token: Joi.string().allow("").allow(null),
|
|
211
207
|
|
|
208
|
+
amount: Joi.number().allow(null).required(),
|
|
209
|
+
|
|
210
|
+
verified: Joi.boolean().allow(null),
|
|
211
|
+
|
|
212
212
|
aggregator: Joi.string().allow("").required(),
|
|
213
213
|
});
|
|
214
214
|
}
|
|
215
215
|
|
|
216
216
|
static ChargeCustomerResponse() {
|
|
217
217
|
return Joi.object({
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
success: Joi.boolean().required(),
|
|
218
|
+
cart_id: Joi.string().allow("").allow(null),
|
|
221
219
|
|
|
222
|
-
|
|
220
|
+
status: Joi.string().allow("").required(),
|
|
223
221
|
|
|
224
222
|
message: Joi.string().allow("").required(),
|
|
225
223
|
|
|
226
224
|
order_id: Joi.string().allow("").required(),
|
|
227
225
|
|
|
228
|
-
|
|
226
|
+
delivery_address_id: Joi.string().allow("").allow(null),
|
|
227
|
+
|
|
228
|
+
success: Joi.boolean().required(),
|
|
229
229
|
|
|
230
230
|
aggregator: Joi.string().allow("").required(),
|
|
231
231
|
});
|
|
@@ -233,113 +233,105 @@ class PaymentModel {
|
|
|
233
233
|
|
|
234
234
|
static PaymentInitializationRequest() {
|
|
235
235
|
return Joi.object({
|
|
236
|
-
timeout: Joi.number().allow(null),
|
|
237
|
-
|
|
238
|
-
customer_id: Joi.string().allow("").required(),
|
|
239
|
-
|
|
240
236
|
method: Joi.string().allow("").required(),
|
|
241
237
|
|
|
242
|
-
vpa: Joi.string().allow("").allow(null),
|
|
243
|
-
|
|
244
238
|
merchant_order_id: Joi.string().allow("").required(),
|
|
245
239
|
|
|
240
|
+
order_id: Joi.string().allow("").required(),
|
|
241
|
+
|
|
242
|
+
contact: Joi.string().allow("").required(),
|
|
243
|
+
|
|
246
244
|
amount: Joi.number().allow(null).required(),
|
|
247
245
|
|
|
248
|
-
|
|
246
|
+
customer_id: Joi.string().allow("").required(),
|
|
249
247
|
|
|
250
248
|
currency: Joi.string().allow("").required(),
|
|
251
249
|
|
|
252
|
-
|
|
250
|
+
vpa: Joi.string().allow("").allow(null),
|
|
251
|
+
|
|
252
|
+
email: Joi.string().allow("").required(),
|
|
253
|
+
|
|
254
|
+
timeout: Joi.number().allow(null),
|
|
253
255
|
|
|
254
256
|
razorpay_payment_id: Joi.string().allow("").allow(null),
|
|
255
257
|
|
|
256
258
|
aggregator: Joi.string().allow("").required(),
|
|
257
|
-
|
|
258
|
-
contact: Joi.string().allow("").required(),
|
|
259
259
|
});
|
|
260
260
|
}
|
|
261
261
|
|
|
262
262
|
static PaymentInitializationResponse() {
|
|
263
263
|
return Joi.object({
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
status: Joi.string().allow(""),
|
|
264
|
+
bqr_image: Joi.string().allow("").allow(null),
|
|
267
265
|
|
|
268
266
|
method: Joi.string().allow("").required(),
|
|
269
267
|
|
|
270
|
-
vpa: Joi.string().allow("").allow(null),
|
|
271
|
-
|
|
272
268
|
upi_poll_url: Joi.string().allow("").allow(null),
|
|
273
269
|
|
|
274
|
-
|
|
270
|
+
status: Joi.string().allow(""),
|
|
275
271
|
|
|
276
|
-
|
|
272
|
+
polling_url: Joi.string().allow("").required(),
|
|
277
273
|
|
|
278
|
-
|
|
274
|
+
vpa: Joi.string().allow("").allow(null),
|
|
279
275
|
|
|
280
|
-
|
|
276
|
+
virtual_id: Joi.string().allow("").allow(null),
|
|
281
277
|
|
|
282
|
-
|
|
278
|
+
aggregator: Joi.string().allow("").required(),
|
|
283
279
|
|
|
284
|
-
|
|
280
|
+
amount: Joi.number().allow(null),
|
|
285
281
|
|
|
286
|
-
|
|
282
|
+
aggregator_order_id: Joi.string().allow(""),
|
|
287
283
|
|
|
288
284
|
currency: Joi.string().allow("").allow(null),
|
|
289
285
|
|
|
290
|
-
|
|
286
|
+
customer_id: Joi.string().allow("").allow(null),
|
|
287
|
+
|
|
288
|
+
timeout: Joi.number().allow(null),
|
|
291
289
|
|
|
292
290
|
razorpay_payment_id: Joi.string().allow("").allow(null),
|
|
293
291
|
|
|
294
|
-
|
|
292
|
+
success: Joi.boolean().required(),
|
|
293
|
+
|
|
294
|
+
merchant_order_id: Joi.string().allow("").required(),
|
|
295
295
|
});
|
|
296
296
|
}
|
|
297
297
|
|
|
298
298
|
static PaymentStatusUpdateRequest() {
|
|
299
299
|
return Joi.object({
|
|
300
|
-
|
|
300
|
+
method: Joi.string().allow("").required(),
|
|
301
301
|
|
|
302
302
|
status: Joi.string().allow("").required(),
|
|
303
303
|
|
|
304
|
-
|
|
304
|
+
merchant_order_id: Joi.string().allow("").required(),
|
|
305
305
|
|
|
306
|
-
|
|
306
|
+
order_id: Joi.string().allow("").required(),
|
|
307
307
|
|
|
308
|
-
|
|
308
|
+
contact: Joi.string().allow("").required(),
|
|
309
309
|
|
|
310
310
|
amount: Joi.number().allow(null).required(),
|
|
311
311
|
|
|
312
|
-
|
|
312
|
+
customer_id: Joi.string().allow("").required(),
|
|
313
313
|
|
|
314
314
|
currency: Joi.string().allow("").required(),
|
|
315
315
|
|
|
316
|
-
|
|
316
|
+
vpa: Joi.string().allow("").required(),
|
|
317
317
|
|
|
318
|
-
|
|
318
|
+
email: Joi.string().allow("").required(),
|
|
319
319
|
|
|
320
|
-
|
|
320
|
+
aggregator: Joi.string().allow("").required(),
|
|
321
321
|
});
|
|
322
322
|
}
|
|
323
323
|
|
|
324
324
|
static PaymentStatusUpdateResponse() {
|
|
325
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
326
|
aggregator_name: Joi.string().allow("").required(),
|
|
333
327
|
|
|
328
|
+
status: Joi.string().allow("").required(),
|
|
329
|
+
|
|
334
330
|
retry: Joi.boolean().required(),
|
|
335
|
-
});
|
|
336
|
-
}
|
|
337
331
|
|
|
338
|
-
|
|
339
|
-
return Joi.object({
|
|
340
|
-
code: Joi.string().allow("").allow(null),
|
|
332
|
+
redirect_url: Joi.string().allow("").allow(null),
|
|
341
333
|
|
|
342
|
-
|
|
334
|
+
success: Joi.boolean().allow(null),
|
|
343
335
|
});
|
|
344
336
|
}
|
|
345
337
|
|
|
@@ -355,147 +347,155 @@ class PaymentModel {
|
|
|
355
347
|
return Joi.object({
|
|
356
348
|
logos: PaymentModel.PaymentModeLogo(),
|
|
357
349
|
|
|
358
|
-
|
|
350
|
+
package_name: Joi.string().allow("").allow(null),
|
|
359
351
|
|
|
360
352
|
code: Joi.string().allow("").allow(null),
|
|
361
353
|
|
|
362
|
-
|
|
354
|
+
display_name: Joi.string().allow("").allow(null),
|
|
363
355
|
});
|
|
364
356
|
}
|
|
365
357
|
|
|
366
|
-
static
|
|
358
|
+
static IntentAppErrorList() {
|
|
367
359
|
return Joi.object({
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
display_name: Joi.string().allow("").allow(null),
|
|
371
|
-
|
|
372
|
-
card_issuer: Joi.string().allow("").allow(null),
|
|
360
|
+
package_name: Joi.string().allow("").allow(null),
|
|
373
361
|
|
|
374
|
-
|
|
362
|
+
code: Joi.string().allow("").allow(null),
|
|
363
|
+
});
|
|
364
|
+
}
|
|
375
365
|
|
|
376
|
-
|
|
366
|
+
static PaymentModeList() {
|
|
367
|
+
return Joi.object({
|
|
368
|
+
code: Joi.string().allow("").allow(null),
|
|
377
369
|
|
|
378
|
-
|
|
370
|
+
compliant_with_tokenisation_guidelines: Joi.boolean().allow(null),
|
|
379
371
|
|
|
380
|
-
|
|
381
|
-
PaymentModel.IntentAppErrorList()
|
|
382
|
-
),
|
|
372
|
+
intent_app: Joi.array().items(PaymentModel.IntentApp()),
|
|
383
373
|
|
|
384
|
-
|
|
374
|
+
retry_count: Joi.number().allow(null),
|
|
385
375
|
|
|
386
|
-
|
|
376
|
+
fynd_vpa: Joi.string().allow("").allow(null),
|
|
387
377
|
|
|
388
|
-
|
|
378
|
+
display_name: Joi.string().allow("").allow(null),
|
|
389
379
|
|
|
390
|
-
|
|
380
|
+
logo_url: PaymentModel.PaymentModeLogo(),
|
|
391
381
|
|
|
392
382
|
card_type: Joi.string().allow("").allow(null),
|
|
393
383
|
|
|
394
|
-
|
|
384
|
+
card_brand_image: Joi.string().allow("").allow(null),
|
|
395
385
|
|
|
396
|
-
|
|
386
|
+
nickname: Joi.string().allow("").allow(null),
|
|
397
387
|
|
|
398
|
-
|
|
388
|
+
aggregator_name: Joi.string().allow("").required(),
|
|
399
389
|
|
|
400
|
-
|
|
390
|
+
intent_app_error_dict_list: Joi.array().items(
|
|
391
|
+
PaymentModel.IntentAppErrorList()
|
|
392
|
+
),
|
|
401
393
|
|
|
402
394
|
merchant_code: Joi.string().allow("").allow(null),
|
|
403
395
|
|
|
404
|
-
|
|
396
|
+
name: Joi.string().allow("").allow(null),
|
|
405
397
|
|
|
406
|
-
|
|
398
|
+
card_issuer: Joi.string().allow("").allow(null),
|
|
407
399
|
|
|
408
|
-
|
|
400
|
+
card_reference: Joi.string().allow("").allow(null),
|
|
409
401
|
|
|
410
|
-
|
|
402
|
+
timeout: Joi.number().allow(null),
|
|
411
403
|
|
|
412
|
-
|
|
404
|
+
intent_app_error_list: Joi.array().items(Joi.string().allow("")),
|
|
413
405
|
|
|
414
|
-
|
|
406
|
+
card_token: Joi.string().allow("").allow(null),
|
|
415
407
|
|
|
416
|
-
|
|
408
|
+
cod_limit: Joi.number().allow(null),
|
|
417
409
|
|
|
418
410
|
remaining_limit: Joi.number().allow(null),
|
|
419
411
|
|
|
412
|
+
cod_limit_per_order: Joi.number().allow(null),
|
|
413
|
+
|
|
414
|
+
card_name: Joi.string().allow("").allow(null),
|
|
415
|
+
|
|
420
416
|
expired: Joi.boolean().allow(null),
|
|
421
417
|
|
|
422
|
-
|
|
418
|
+
card_number: Joi.string().allow("").allow(null),
|
|
419
|
+
|
|
420
|
+
intent_flow: Joi.boolean().allow(null),
|
|
423
421
|
|
|
424
422
|
card_fingerprint: Joi.string().allow("").allow(null),
|
|
425
423
|
|
|
426
|
-
|
|
424
|
+
card_brand: Joi.string().allow("").allow(null),
|
|
427
425
|
|
|
428
|
-
|
|
426
|
+
exp_year: Joi.number().allow(null),
|
|
429
427
|
|
|
430
|
-
|
|
428
|
+
card_isin: Joi.string().allow("").allow(null),
|
|
431
429
|
|
|
432
|
-
|
|
430
|
+
card_id: Joi.string().allow("").allow(null),
|
|
433
431
|
|
|
434
|
-
|
|
432
|
+
display_priority: Joi.number().allow(null),
|
|
433
|
+
|
|
434
|
+
exp_month: Joi.number().allow(null),
|
|
435
435
|
});
|
|
436
436
|
}
|
|
437
437
|
|
|
438
438
|
static RootPaymentMode() {
|
|
439
439
|
return Joi.object({
|
|
440
|
-
|
|
440
|
+
list: Joi.array().items(PaymentModel.PaymentModeList()),
|
|
441
441
|
|
|
442
|
-
|
|
442
|
+
anonymous_enable: Joi.boolean().allow(null),
|
|
443
443
|
|
|
444
444
|
display_name: Joi.string().allow("").required(),
|
|
445
445
|
|
|
446
|
+
name: Joi.string().allow("").required(),
|
|
447
|
+
|
|
446
448
|
save_card: Joi.boolean().allow(null),
|
|
447
449
|
|
|
448
450
|
display_priority: Joi.number().required(),
|
|
449
451
|
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
anonymous_enable: Joi.boolean().allow(null),
|
|
452
|
+
add_card_enabled: Joi.boolean().allow(null),
|
|
453
453
|
|
|
454
|
-
|
|
454
|
+
is_pay_by_card_pl: Joi.boolean().allow(null),
|
|
455
455
|
|
|
456
|
-
|
|
456
|
+
aggregator_name: Joi.string().allow("").allow(null),
|
|
457
457
|
});
|
|
458
458
|
}
|
|
459
459
|
|
|
460
460
|
static AggregatorRoute() {
|
|
461
461
|
return Joi.object({
|
|
462
|
-
data: Joi.any().allow(null),
|
|
463
|
-
|
|
464
|
-
api_link: Joi.string().allow("").allow(null),
|
|
465
|
-
|
|
466
462
|
payment_flow_data: Joi.string().allow("").allow(null),
|
|
467
463
|
|
|
468
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
469
|
});
|
|
470
470
|
}
|
|
471
471
|
|
|
472
472
|
static PaymentFlow() {
|
|
473
473
|
return Joi.object({
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
epaylater: PaymentModel.AggregatorRoute(),
|
|
474
|
+
stripe: PaymentModel.AggregatorRoute(),
|
|
477
475
|
|
|
478
|
-
|
|
476
|
+
mswipe: PaymentModel.AggregatorRoute(),
|
|
479
477
|
|
|
480
478
|
fynd: PaymentModel.AggregatorRoute(),
|
|
481
479
|
|
|
480
|
+
ccavenue: PaymentModel.AggregatorRoute(),
|
|
481
|
+
|
|
482
482
|
rupifi: PaymentModel.AggregatorRoute(),
|
|
483
483
|
|
|
484
|
-
|
|
484
|
+
razorpay: PaymentModel.AggregatorRoute(),
|
|
485
485
|
|
|
486
|
-
|
|
486
|
+
payubiz: PaymentModel.AggregatorRoute(),
|
|
487
487
|
|
|
488
|
-
|
|
488
|
+
upi_razorpay: PaymentModel.AggregatorRoute(),
|
|
489
489
|
|
|
490
490
|
simpl: PaymentModel.AggregatorRoute(),
|
|
491
491
|
|
|
492
|
-
|
|
492
|
+
juspay: PaymentModel.AggregatorRoute(),
|
|
493
493
|
|
|
494
|
-
|
|
494
|
+
bqr_razorpay: PaymentModel.AggregatorRoute(),
|
|
495
495
|
|
|
496
|
-
|
|
496
|
+
epaylater: PaymentModel.AggregatorRoute(),
|
|
497
497
|
|
|
498
|
-
|
|
498
|
+
jiopay: PaymentModel.AggregatorRoute(),
|
|
499
499
|
});
|
|
500
500
|
}
|
|
501
501
|
|
|
@@ -519,9 +519,9 @@ class PaymentModel {
|
|
|
519
519
|
|
|
520
520
|
static RupifiBannerData() {
|
|
521
521
|
return Joi.object({
|
|
522
|
-
status: Joi.string().allow(""),
|
|
523
|
-
|
|
524
522
|
kyc_url: Joi.string().allow(""),
|
|
523
|
+
|
|
524
|
+
status: Joi.string().allow(""),
|
|
525
525
|
});
|
|
526
526
|
}
|
|
527
527
|
|
|
@@ -537,9 +537,9 @@ class PaymentModel {
|
|
|
537
537
|
return Joi.object({
|
|
538
538
|
display: Joi.boolean().required(),
|
|
539
539
|
|
|
540
|
-
message: Joi.string().allow(""),
|
|
541
|
-
|
|
542
540
|
status: Joi.string().allow(""),
|
|
541
|
+
|
|
542
|
+
message: Joi.string().allow(""),
|
|
543
543
|
});
|
|
544
544
|
}
|
|
545
545
|
|
|
@@ -577,9 +577,9 @@ class PaymentModel {
|
|
|
577
577
|
|
|
578
578
|
static renderHTMLRequest() {
|
|
579
579
|
return Joi.object({
|
|
580
|
-
base64_html: Joi.string().allow("").required(),
|
|
581
|
-
|
|
582
580
|
returntype: Joi.string().allow("").allow(null),
|
|
581
|
+
|
|
582
|
+
base64_html: Joi.string().allow("").required(),
|
|
583
583
|
});
|
|
584
584
|
}
|
|
585
585
|
|
|
@@ -599,11 +599,11 @@ class PaymentModel {
|
|
|
599
599
|
return Joi.object({
|
|
600
600
|
upi_vpa: Joi.string().allow("").required(),
|
|
601
601
|
|
|
602
|
-
|
|
602
|
+
is_valid: Joi.boolean().required(),
|
|
603
603
|
|
|
604
604
|
customer_name: Joi.string().allow("").required(),
|
|
605
605
|
|
|
606
|
-
|
|
606
|
+
status: Joi.string().allow("").required(),
|
|
607
607
|
});
|
|
608
608
|
}
|
|
609
609
|
|
|
@@ -617,15 +617,15 @@ class PaymentModel {
|
|
|
617
617
|
|
|
618
618
|
static TransferItemsDetails() {
|
|
619
619
|
return Joi.object({
|
|
620
|
-
id: Joi.number().required(),
|
|
621
|
-
|
|
622
620
|
display_name: Joi.string().allow(""),
|
|
623
621
|
|
|
624
|
-
|
|
622
|
+
name: Joi.string().allow("").required(),
|
|
625
623
|
|
|
626
624
|
logo_large: Joi.string().allow("").required(),
|
|
627
625
|
|
|
628
|
-
|
|
626
|
+
logo_small: Joi.string().allow("").required(),
|
|
627
|
+
|
|
628
|
+
id: Joi.number().required(),
|
|
629
629
|
});
|
|
630
630
|
}
|
|
631
631
|
|
|
@@ -659,43 +659,43 @@ class PaymentModel {
|
|
|
659
659
|
|
|
660
660
|
static OrderBeneficiaryDetails() {
|
|
661
661
|
return Joi.object({
|
|
662
|
-
|
|
662
|
+
branch_name: Joi.string().allow(""),
|
|
663
663
|
|
|
664
|
-
|
|
664
|
+
modified_on: Joi.string().allow("").required(),
|
|
665
665
|
|
|
666
666
|
display_name: Joi.string().allow("").required(),
|
|
667
667
|
|
|
668
|
+
bank_name: Joi.string().allow("").required(),
|
|
669
|
+
|
|
670
|
+
subtitle: Joi.string().allow("").required(),
|
|
671
|
+
|
|
668
672
|
account_holder: Joi.string().allow("").required(),
|
|
669
673
|
|
|
670
|
-
|
|
674
|
+
comment: Joi.string().allow(""),
|
|
671
675
|
|
|
672
676
|
created_on: Joi.string().allow("").required(),
|
|
673
677
|
|
|
674
|
-
|
|
678
|
+
title: Joi.string().allow("").required(),
|
|
675
679
|
|
|
676
680
|
id: Joi.number().required(),
|
|
677
681
|
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
mobile: Joi.string().allow(""),
|
|
682
|
+
beneficiary_id: Joi.string().allow("").required(),
|
|
681
683
|
|
|
682
|
-
|
|
684
|
+
delights_user_name: Joi.string().allow("").allow(null),
|
|
683
685
|
|
|
684
|
-
|
|
686
|
+
transfer_mode: Joi.string().allow("").required(),
|
|
685
687
|
|
|
686
|
-
|
|
688
|
+
address: Joi.string().allow("").required(),
|
|
687
689
|
|
|
688
|
-
|
|
690
|
+
email: Joi.string().allow("").required(),
|
|
689
691
|
|
|
690
|
-
|
|
692
|
+
account_no: Joi.string().allow("").required(),
|
|
691
693
|
|
|
692
694
|
is_active: Joi.boolean().required(),
|
|
693
695
|
|
|
694
696
|
ifsc_code: Joi.string().allow("").required(),
|
|
695
697
|
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
account_no: Joi.string().allow("").required(),
|
|
698
|
+
mobile: Joi.string().allow(""),
|
|
699
699
|
});
|
|
700
700
|
}
|
|
701
701
|
|
|
@@ -709,11 +709,11 @@ class PaymentModel {
|
|
|
709
709
|
|
|
710
710
|
static NotFoundResourceError() {
|
|
711
711
|
return Joi.object({
|
|
712
|
-
|
|
712
|
+
description: Joi.string().allow("").required(),
|
|
713
713
|
|
|
714
714
|
code: Joi.string().allow("").required(),
|
|
715
715
|
|
|
716
|
-
|
|
716
|
+
success: Joi.boolean().required(),
|
|
717
717
|
});
|
|
718
718
|
}
|
|
719
719
|
|
|
@@ -721,91 +721,91 @@ class PaymentModel {
|
|
|
721
721
|
return Joi.object({
|
|
722
722
|
branch_name: Joi.string().allow("").required(),
|
|
723
723
|
|
|
724
|
-
bank_name: Joi.string().allow("").required(),
|
|
725
|
-
|
|
726
724
|
success: Joi.boolean(),
|
|
725
|
+
|
|
726
|
+
bank_name: Joi.string().allow("").required(),
|
|
727
727
|
});
|
|
728
728
|
}
|
|
729
729
|
|
|
730
730
|
static ErrorCodeDescription() {
|
|
731
731
|
return Joi.object({
|
|
732
|
-
|
|
732
|
+
description: Joi.string().allow("").required(),
|
|
733
733
|
|
|
734
734
|
code: Joi.string().allow("").required(),
|
|
735
735
|
|
|
736
|
-
|
|
736
|
+
success: Joi.boolean().required(),
|
|
737
737
|
});
|
|
738
738
|
}
|
|
739
739
|
|
|
740
740
|
static AddBeneficiaryViaOtpVerificationRequest() {
|
|
741
741
|
return Joi.object({
|
|
742
|
+
otp: Joi.string().allow("").required(),
|
|
743
|
+
|
|
742
744
|
hash_key: Joi.string().allow("").required(),
|
|
743
745
|
|
|
744
746
|
request_id: Joi.string().allow("").required(),
|
|
745
|
-
|
|
746
|
-
otp: Joi.string().allow("").required(),
|
|
747
747
|
});
|
|
748
748
|
}
|
|
749
749
|
|
|
750
750
|
static AddBeneficiaryViaOtpVerificationResponse() {
|
|
751
751
|
return Joi.object({
|
|
752
|
-
message: Joi.string().allow("").required(),
|
|
753
|
-
|
|
754
752
|
success: Joi.boolean(),
|
|
753
|
+
|
|
754
|
+
message: Joi.string().allow("").required(),
|
|
755
755
|
});
|
|
756
756
|
}
|
|
757
757
|
|
|
758
758
|
static WrongOtpError() {
|
|
759
759
|
return Joi.object({
|
|
760
|
+
description: Joi.string().allow("").required(),
|
|
761
|
+
|
|
760
762
|
is_verified_flag: Joi.boolean().required(),
|
|
761
763
|
|
|
762
764
|
success: Joi.string().allow("").required(),
|
|
763
|
-
|
|
764
|
-
description: Joi.string().allow("").required(),
|
|
765
765
|
});
|
|
766
766
|
}
|
|
767
767
|
|
|
768
768
|
static BeneficiaryModeDetails() {
|
|
769
769
|
return Joi.object({
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
address: Joi.string().allow(""),
|
|
770
|
+
account_no: Joi.string().allow("").required(),
|
|
773
771
|
|
|
774
772
|
bank_name: Joi.string().allow("").required(),
|
|
775
773
|
|
|
776
|
-
|
|
774
|
+
wallet: Joi.string().allow("").allow(null),
|
|
777
775
|
|
|
778
|
-
|
|
776
|
+
email: Joi.string().allow("").required(),
|
|
779
777
|
|
|
780
|
-
|
|
778
|
+
branch_name: Joi.string().allow("").required(),
|
|
781
779
|
|
|
782
780
|
ifsc_code: Joi.string().allow("").required(),
|
|
783
781
|
|
|
784
|
-
|
|
782
|
+
account_holder: Joi.string().allow("").required(),
|
|
785
783
|
|
|
786
784
|
comment: Joi.string().allow(""),
|
|
787
785
|
|
|
788
|
-
|
|
786
|
+
vpa: Joi.string().allow("").allow(null),
|
|
789
787
|
|
|
790
|
-
|
|
788
|
+
address: Joi.string().allow(""),
|
|
789
|
+
|
|
790
|
+
mobile: Joi.string().allow("").required(),
|
|
791
791
|
});
|
|
792
792
|
}
|
|
793
793
|
|
|
794
794
|
static AddBeneficiaryDetailsRequest() {
|
|
795
795
|
return Joi.object({
|
|
796
|
-
|
|
796
|
+
details: PaymentModel.BeneficiaryModeDetails().required(),
|
|
797
797
|
|
|
798
798
|
request_id: Joi.string().allow(""),
|
|
799
799
|
|
|
800
|
-
|
|
800
|
+
shipment_id: Joi.string().allow("").required(),
|
|
801
801
|
|
|
802
|
-
|
|
802
|
+
order_id: Joi.string().allow("").required(),
|
|
803
803
|
|
|
804
|
-
|
|
804
|
+
otp: Joi.string().allow(""),
|
|
805
805
|
|
|
806
806
|
transfer_mode: Joi.string().allow("").required(),
|
|
807
807
|
|
|
808
|
-
|
|
808
|
+
delights: Joi.boolean().required(),
|
|
809
809
|
});
|
|
810
810
|
}
|
|
811
811
|
|
|
@@ -815,23 +815,23 @@ class PaymentModel {
|
|
|
815
815
|
|
|
816
816
|
data: Joi.any(),
|
|
817
817
|
|
|
818
|
-
message: Joi.string().allow("").required(),
|
|
819
|
-
|
|
820
818
|
success: Joi.boolean().required(),
|
|
819
|
+
|
|
820
|
+
message: Joi.string().allow("").required(),
|
|
821
821
|
});
|
|
822
822
|
}
|
|
823
823
|
|
|
824
824
|
static BankDetailsForOTP() {
|
|
825
825
|
return Joi.object({
|
|
826
|
-
|
|
826
|
+
account_no: Joi.string().allow("").required(),
|
|
827
827
|
|
|
828
|
-
|
|
828
|
+
branch_name: Joi.string().allow("").required(),
|
|
829
829
|
|
|
830
830
|
ifsc_code: Joi.string().allow("").required(),
|
|
831
831
|
|
|
832
|
-
|
|
832
|
+
account_holder: Joi.string().allow("").required(),
|
|
833
833
|
|
|
834
|
-
|
|
834
|
+
bank_name: Joi.string().allow("").required(),
|
|
835
835
|
});
|
|
836
836
|
}
|
|
837
837
|
|
|
@@ -863,9 +863,9 @@ class PaymentModel {
|
|
|
863
863
|
|
|
864
864
|
static SetDefaultBeneficiaryRequest() {
|
|
865
865
|
return Joi.object({
|
|
866
|
-
order_id: Joi.string().allow("").required(),
|
|
867
|
-
|
|
868
866
|
beneficiary_id: Joi.string().allow("").required(),
|
|
867
|
+
|
|
868
|
+
order_id: Joi.string().allow("").required(),
|
|
869
869
|
});
|
|
870
870
|
}
|
|
871
871
|
|
|
@@ -879,69 +879,69 @@ class PaymentModel {
|
|
|
879
879
|
|
|
880
880
|
static GetPaymentLinkResponse() {
|
|
881
881
|
return Joi.object({
|
|
882
|
-
|
|
882
|
+
external_order_id: Joi.string().allow("").allow(null),
|
|
883
883
|
|
|
884
|
-
|
|
884
|
+
message: Joi.string().allow("").required(),
|
|
885
885
|
|
|
886
|
-
|
|
886
|
+
polling_timeout: Joi.number().allow(null),
|
|
887
887
|
|
|
888
888
|
payment_link_current_status: Joi.string().allow("").allow(null),
|
|
889
889
|
|
|
890
|
-
message: Joi.string().allow("").required(),
|
|
891
|
-
|
|
892
890
|
merchant_name: Joi.string().allow("").allow(null),
|
|
893
891
|
|
|
894
|
-
|
|
892
|
+
amount: Joi.number().allow(null),
|
|
895
893
|
|
|
896
894
|
status_code: Joi.number().required(),
|
|
897
895
|
|
|
898
|
-
|
|
896
|
+
payment_link_url: Joi.string().allow("").allow(null),
|
|
897
|
+
|
|
898
|
+
success: Joi.boolean().required(),
|
|
899
899
|
});
|
|
900
900
|
}
|
|
901
901
|
|
|
902
902
|
static ErrorDescription() {
|
|
903
903
|
return Joi.object({
|
|
904
|
-
payment_transaction_id: Joi.string().allow("").allow(null),
|
|
905
|
-
|
|
906
904
|
expired: Joi.boolean().allow(null),
|
|
907
905
|
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
amount: Joi.number().allow(null),
|
|
906
|
+
invalid_id: Joi.boolean().allow(null),
|
|
911
907
|
|
|
912
|
-
|
|
908
|
+
payment_transaction_id: Joi.string().allow("").allow(null),
|
|
913
909
|
|
|
914
910
|
merchant_name: Joi.string().allow("").allow(null),
|
|
915
911
|
|
|
912
|
+
amount: Joi.number().allow(null),
|
|
913
|
+
|
|
916
914
|
cancelled: Joi.boolean().allow(null),
|
|
917
915
|
|
|
918
|
-
|
|
916
|
+
msg: Joi.string().allow("").allow(null),
|
|
917
|
+
|
|
918
|
+
merchant_order_id: Joi.string().allow("").allow(null),
|
|
919
919
|
});
|
|
920
920
|
}
|
|
921
921
|
|
|
922
922
|
static ErrorResponse() {
|
|
923
923
|
return Joi.object({
|
|
924
|
-
error: PaymentModel.ErrorDescription(),
|
|
925
|
-
|
|
926
924
|
status_code: Joi.number().required(),
|
|
927
925
|
|
|
928
|
-
|
|
926
|
+
error: PaymentModel.ErrorDescription(),
|
|
929
927
|
|
|
930
928
|
success: Joi.boolean().required(),
|
|
929
|
+
|
|
930
|
+
message: Joi.string().allow("").required(),
|
|
931
931
|
});
|
|
932
932
|
}
|
|
933
933
|
|
|
934
934
|
static CreatePaymentLinkMeta() {
|
|
935
935
|
return Joi.object({
|
|
936
|
-
|
|
936
|
+
cart_id: Joi.string().allow("").required(),
|
|
937
937
|
|
|
938
|
-
|
|
938
|
+
assign_card_id: Joi.string().allow("").allow(null),
|
|
939
939
|
|
|
940
940
|
checkout_mode: Joi.string().allow("").required(),
|
|
941
941
|
|
|
942
|
-
|
|
942
|
+
amount: Joi.string().allow("").required(),
|
|
943
943
|
|
|
944
|
-
|
|
944
|
+
pincode: Joi.string().allow("").required(),
|
|
945
945
|
});
|
|
946
946
|
}
|
|
947
947
|
|
|
@@ -949,31 +949,31 @@ class PaymentModel {
|
|
|
949
949
|
return Joi.object({
|
|
950
950
|
mobile_number: Joi.string().allow("").required(),
|
|
951
951
|
|
|
952
|
+
meta: PaymentModel.CreatePaymentLinkMeta().required(),
|
|
953
|
+
|
|
952
954
|
amount: Joi.number().required(),
|
|
953
955
|
|
|
954
|
-
|
|
956
|
+
description: Joi.string().allow("").allow(null),
|
|
955
957
|
|
|
956
|
-
|
|
958
|
+
email: Joi.string().allow("").required(),
|
|
957
959
|
|
|
958
960
|
external_order_id: Joi.string().allow("").required(),
|
|
959
|
-
|
|
960
|
-
description: Joi.string().allow("").allow(null),
|
|
961
961
|
});
|
|
962
962
|
}
|
|
963
963
|
|
|
964
964
|
static CreatePaymentLinkResponse() {
|
|
965
965
|
return Joi.object({
|
|
966
|
-
payment_link_url: Joi.string().allow("").allow(null),
|
|
967
|
-
|
|
968
|
-
success: Joi.boolean().required(),
|
|
969
|
-
|
|
970
966
|
message: Joi.string().allow("").required(),
|
|
971
967
|
|
|
972
|
-
status_code: Joi.number().required(),
|
|
973
|
-
|
|
974
968
|
polling_timeout: Joi.number().allow(null),
|
|
975
969
|
|
|
970
|
+
status_code: Joi.number().required(),
|
|
971
|
+
|
|
976
972
|
payment_link_id: Joi.string().allow("").allow(null),
|
|
973
|
+
|
|
974
|
+
payment_link_url: Joi.string().allow("").allow(null),
|
|
975
|
+
|
|
976
|
+
success: Joi.boolean().required(),
|
|
977
977
|
});
|
|
978
978
|
}
|
|
979
979
|
|
|
@@ -985,13 +985,13 @@ class PaymentModel {
|
|
|
985
985
|
|
|
986
986
|
static ResendPaymentLinkResponse() {
|
|
987
987
|
return Joi.object({
|
|
988
|
-
polling_timeout: Joi.number().allow(null),
|
|
989
|
-
|
|
990
988
|
status_code: Joi.number().required(),
|
|
991
989
|
|
|
992
|
-
|
|
990
|
+
polling_timeout: Joi.number().allow(null),
|
|
993
991
|
|
|
994
992
|
success: Joi.boolean().required(),
|
|
993
|
+
|
|
994
|
+
message: Joi.string().allow("").required(),
|
|
995
995
|
});
|
|
996
996
|
}
|
|
997
997
|
|
|
@@ -999,33 +999,33 @@ class PaymentModel {
|
|
|
999
999
|
return Joi.object({
|
|
1000
1000
|
status_code: Joi.number().required(),
|
|
1001
1001
|
|
|
1002
|
-
message: Joi.string().allow("").required(),
|
|
1003
|
-
|
|
1004
1002
|
success: Joi.boolean().required(),
|
|
1003
|
+
|
|
1004
|
+
message: Joi.string().allow("").required(),
|
|
1005
1005
|
});
|
|
1006
1006
|
}
|
|
1007
1007
|
|
|
1008
1008
|
static PollingPaymentLinkResponse() {
|
|
1009
1009
|
return Joi.object({
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
redirect_url: Joi.string().allow("").allow(null),
|
|
1013
|
-
|
|
1014
|
-
success: Joi.boolean().allow(null),
|
|
1015
|
-
|
|
1016
|
-
amount: Joi.number().allow(null),
|
|
1010
|
+
http_status: Joi.number().allow(null),
|
|
1017
1011
|
|
|
1018
|
-
|
|
1012
|
+
status: Joi.string().allow("").allow(null),
|
|
1019
1013
|
|
|
1020
1014
|
message: Joi.string().allow("").allow(null),
|
|
1021
1015
|
|
|
1022
|
-
http_status: Joi.number().allow(null),
|
|
1023
|
-
|
|
1024
1016
|
order_id: Joi.string().allow("").allow(null),
|
|
1025
1017
|
|
|
1018
|
+
success: Joi.boolean().allow(null),
|
|
1019
|
+
|
|
1026
1020
|
status_code: Joi.number().allow(null),
|
|
1027
1021
|
|
|
1028
1022
|
payment_link_id: Joi.string().allow("").allow(null),
|
|
1023
|
+
|
|
1024
|
+
amount: Joi.number().allow(null),
|
|
1025
|
+
|
|
1026
|
+
redirect_url: Joi.string().allow("").allow(null),
|
|
1027
|
+
|
|
1028
|
+
aggregator_name: Joi.string().allow("").allow(null),
|
|
1029
1029
|
});
|
|
1030
1030
|
}
|
|
1031
1031
|
|
|
@@ -1033,9 +1033,9 @@ class PaymentModel {
|
|
|
1033
1033
|
return Joi.object({
|
|
1034
1034
|
merchant_code: Joi.string().allow("").required(),
|
|
1035
1035
|
|
|
1036
|
-
payment_identifier: Joi.string().allow("").required(),
|
|
1037
|
-
|
|
1038
1036
|
payment_gateway: Joi.string().allow("").required(),
|
|
1037
|
+
|
|
1038
|
+
payment_identifier: Joi.string().allow("").required(),
|
|
1039
1039
|
});
|
|
1040
1040
|
}
|
|
1041
1041
|
|
|
@@ -1051,59 +1051,59 @@ class PaymentModel {
|
|
|
1051
1051
|
|
|
1052
1052
|
static CreateOrderUserRequest() {
|
|
1053
1053
|
return Joi.object({
|
|
1054
|
-
failure_callback_url: Joi.string().allow("").required(),
|
|
1055
|
-
|
|
1056
1054
|
success_callback_url: Joi.string().allow("").required(),
|
|
1057
1055
|
|
|
1058
|
-
currency: Joi.string().allow("").required(),
|
|
1059
|
-
|
|
1060
1056
|
meta: Joi.any().allow(null),
|
|
1061
1057
|
|
|
1062
|
-
|
|
1058
|
+
failure_callback_url: Joi.string().allow("").required(),
|
|
1063
1059
|
|
|
1064
1060
|
payment_link_id: Joi.string().allow("").required(),
|
|
1061
|
+
|
|
1062
|
+
payment_methods: PaymentModel.CreateOrderUserPaymentMethods().required(),
|
|
1063
|
+
|
|
1064
|
+
currency: Joi.string().allow("").required(),
|
|
1065
1065
|
});
|
|
1066
1066
|
}
|
|
1067
1067
|
|
|
1068
1068
|
static CreateOrderUserData() {
|
|
1069
1069
|
return Joi.object({
|
|
1070
|
-
customer_id: Joi.string().allow("").allow(null),
|
|
1071
|
-
|
|
1072
1070
|
method: Joi.string().allow("").allow(null),
|
|
1073
1071
|
|
|
1074
1072
|
merchant_order_id: Joi.string().allow("").allow(null),
|
|
1075
1073
|
|
|
1076
|
-
|
|
1074
|
+
order_id: Joi.string().allow("").allow(null),
|
|
1077
1075
|
|
|
1078
|
-
|
|
1076
|
+
contact: Joi.string().allow("").allow(null),
|
|
1077
|
+
|
|
1078
|
+
amount: Joi.number().allow(null),
|
|
1079
1079
|
|
|
1080
1080
|
callback_url: Joi.string().allow("").allow(null),
|
|
1081
1081
|
|
|
1082
|
+
customer_id: Joi.string().allow("").allow(null),
|
|
1083
|
+
|
|
1082
1084
|
currency: Joi.string().allow("").allow(null),
|
|
1083
1085
|
|
|
1084
|
-
|
|
1086
|
+
email: Joi.string().allow("").allow(null),
|
|
1085
1087
|
|
|
1086
1088
|
aggregator: Joi.string().allow("").allow(null),
|
|
1087
|
-
|
|
1088
|
-
contact: Joi.string().allow("").allow(null),
|
|
1089
1089
|
});
|
|
1090
1090
|
}
|
|
1091
1091
|
|
|
1092
1092
|
static CreateOrderUserResponse() {
|
|
1093
1093
|
return Joi.object({
|
|
1094
|
-
|
|
1094
|
+
message: Joi.string().allow("").required(),
|
|
1095
1095
|
|
|
1096
|
-
|
|
1096
|
+
order_id: Joi.string().allow("").allow(null),
|
|
1097
1097
|
|
|
1098
1098
|
data: PaymentModel.CreateOrderUserData(),
|
|
1099
1099
|
|
|
1100
|
-
message: Joi.string().allow("").required(),
|
|
1101
|
-
|
|
1102
1100
|
callback_url: Joi.string().allow("").allow(null),
|
|
1103
1101
|
|
|
1104
|
-
order_id: Joi.string().allow("").allow(null),
|
|
1105
|
-
|
|
1106
1102
|
status_code: Joi.number().required(),
|
|
1103
|
+
|
|
1104
|
+
payment_confirm_url: Joi.string().allow("").allow(null),
|
|
1105
|
+
|
|
1106
|
+
success: Joi.boolean().required(),
|
|
1107
1107
|
});
|
|
1108
1108
|
}
|
|
1109
1109
|
|
|
@@ -1119,12 +1119,12 @@ class PaymentModel {
|
|
|
1119
1119
|
|
|
1120
1120
|
static CreditSummary() {
|
|
1121
1121
|
return Joi.object({
|
|
1122
|
-
status: Joi.string().allow("").required(),
|
|
1123
|
-
|
|
1124
1122
|
merchant_customer_ref_id: Joi.string().allow("").required(),
|
|
1125
1123
|
|
|
1126
1124
|
status_message: Joi.string().allow("").required(),
|
|
1127
1125
|
|
|
1126
|
+
status: Joi.string().allow("").required(),
|
|
1127
|
+
|
|
1128
1128
|
balance: PaymentModel.BalanceDetails(),
|
|
1129
1129
|
});
|
|
1130
1130
|
}
|
|
@@ -1139,9 +1139,9 @@ class PaymentModel {
|
|
|
1139
1139
|
|
|
1140
1140
|
static RedirectURL() {
|
|
1141
1141
|
return Joi.object({
|
|
1142
|
-
status: Joi.boolean().required(),
|
|
1143
|
-
|
|
1144
1142
|
signup_url: Joi.string().allow("").required(),
|
|
1143
|
+
|
|
1144
|
+
status: Joi.boolean().required(),
|
|
1145
1145
|
});
|
|
1146
1146
|
}
|
|
1147
1147
|
|
|
@@ -1155,11 +1155,11 @@ class PaymentModel {
|
|
|
1155
1155
|
|
|
1156
1156
|
static CreditDetail() {
|
|
1157
1157
|
return Joi.object({
|
|
1158
|
-
|
|
1158
|
+
is_registered: Joi.boolean().required(),
|
|
1159
1159
|
|
|
1160
1160
|
signup_url: Joi.string().allow("").required(),
|
|
1161
1161
|
|
|
1162
|
-
|
|
1162
|
+
status: Joi.boolean().required(),
|
|
1163
1163
|
});
|
|
1164
1164
|
}
|
|
1165
1165
|
|
|
@@ -1173,81 +1173,99 @@ class PaymentModel {
|
|
|
1173
1173
|
|
|
1174
1174
|
static KYCAddress() {
|
|
1175
1175
|
return Joi.object({
|
|
1176
|
-
|
|
1176
|
+
land_mark: Joi.string().allow("").allow(null),
|
|
1177
|
+
|
|
1178
|
+
state: Joi.string().allow("").required(),
|
|
1179
|
+
|
|
1180
|
+
city: Joi.string().allow("").required(),
|
|
1177
1181
|
|
|
1178
1182
|
addressline2: Joi.string().allow("").allow(null),
|
|
1179
1183
|
|
|
1180
1184
|
ownership_type: Joi.string().allow("").allow(null),
|
|
1181
1185
|
|
|
1182
|
-
city: Joi.string().allow("").required(),
|
|
1183
|
-
|
|
1184
1186
|
pincode: Joi.string().allow("").required(),
|
|
1185
1187
|
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
state: Joi.string().allow("").required(),
|
|
1188
|
+
addressline1: Joi.string().allow("").required(),
|
|
1189
1189
|
});
|
|
1190
1190
|
}
|
|
1191
1191
|
|
|
1192
|
-
static
|
|
1192
|
+
static UserPersonalInfoInDetails() {
|
|
1193
1193
|
return Joi.object({
|
|
1194
|
-
|
|
1194
|
+
driving_license: Joi.string().allow("").allow(null),
|
|
1195
1195
|
|
|
1196
|
-
|
|
1196
|
+
mobile_verified: Joi.boolean().required(),
|
|
1197
1197
|
|
|
1198
|
-
|
|
1198
|
+
dob: Joi.string().allow("").allow(null).required(),
|
|
1199
1199
|
|
|
1200
|
-
|
|
1200
|
+
address_as_per_id: PaymentModel.KYCAddress().required(),
|
|
1201
1201
|
|
|
1202
|
-
|
|
1202
|
+
fathers_name: Joi.string().allow("").allow(null),
|
|
1203
1203
|
|
|
1204
1204
|
pan: Joi.string().allow("").allow(null),
|
|
1205
1205
|
|
|
1206
|
-
|
|
1206
|
+
email_verified: Joi.boolean().required(),
|
|
1207
1207
|
|
|
1208
|
-
|
|
1208
|
+
passport: Joi.string().allow("").allow(null),
|
|
1209
1209
|
|
|
1210
|
-
|
|
1210
|
+
mothers_name: Joi.string().allow("").allow(null),
|
|
1211
1211
|
|
|
1212
|
-
|
|
1212
|
+
first_name: Joi.string().allow("").required(),
|
|
1213
1213
|
|
|
1214
|
-
|
|
1214
|
+
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
|
+
voter_id: Joi.string().allow("").allow(null),
|
|
1221
|
+
|
|
1222
|
+
gender: Joi.string().allow("").allow(null),
|
|
1223
|
+
|
|
1224
|
+
email: Joi.string().allow("").allow(null),
|
|
1215
1225
|
});
|
|
1216
1226
|
}
|
|
1217
1227
|
|
|
1218
|
-
static
|
|
1228
|
+
static DeviceDetails() {
|
|
1219
1229
|
return Joi.object({
|
|
1220
|
-
|
|
1230
|
+
identifier_type: Joi.string().allow("").allow(null),
|
|
1221
1231
|
|
|
1222
|
-
|
|
1232
|
+
device_model: Joi.string().allow("").allow(null),
|
|
1223
1233
|
|
|
1224
|
-
|
|
1234
|
+
os: Joi.string().allow("").allow(null),
|
|
1225
1235
|
|
|
1226
|
-
|
|
1236
|
+
os_version: Joi.string().allow("").allow(null),
|
|
1227
1237
|
|
|
1228
|
-
|
|
1238
|
+
device_make: Joi.string().allow("").allow(null),
|
|
1229
1239
|
|
|
1230
|
-
|
|
1240
|
+
device_type: Joi.string().allow("").allow(null),
|
|
1231
1241
|
|
|
1232
|
-
|
|
1242
|
+
identification_number: Joi.string().allow("").allow(null),
|
|
1243
|
+
});
|
|
1244
|
+
}
|
|
1233
1245
|
|
|
1234
|
-
|
|
1246
|
+
static BusinessDetails() {
|
|
1247
|
+
return Joi.object({
|
|
1248
|
+
entity_type: Joi.string().allow("").allow(null),
|
|
1235
1249
|
|
|
1236
|
-
|
|
1250
|
+
fssai: Joi.string().allow("").allow(null),
|
|
1237
1251
|
|
|
1238
1252
|
pan: Joi.string().allow("").allow(null),
|
|
1239
1253
|
|
|
1240
|
-
|
|
1254
|
+
business_type: Joi.string().allow("").allow(null),
|
|
1241
1255
|
|
|
1242
|
-
|
|
1256
|
+
fda: Joi.string().allow("").allow(null),
|
|
1243
1257
|
|
|
1244
|
-
|
|
1258
|
+
shop_and_establishment: Joi.any(),
|
|
1245
1259
|
|
|
1246
|
-
|
|
1260
|
+
name: Joi.string().allow("").allow(null),
|
|
1247
1261
|
|
|
1248
|
-
|
|
1262
|
+
vintage: Joi.string().allow("").allow(null),
|
|
1249
1263
|
|
|
1250
|
-
|
|
1264
|
+
business_ownership_type: Joi.string().allow("").allow(null),
|
|
1265
|
+
|
|
1266
|
+
address: PaymentModel.KYCAddress(),
|
|
1267
|
+
|
|
1268
|
+
gstin: Joi.string().allow("").allow(null),
|
|
1251
1269
|
});
|
|
1252
1270
|
}
|
|
1253
1271
|
|
|
@@ -1255,43 +1273,25 @@ class PaymentModel {
|
|
|
1255
1273
|
return Joi.object({
|
|
1256
1274
|
name: Joi.string().allow("").required(),
|
|
1257
1275
|
|
|
1258
|
-
date_of_joining: Joi.string().allow("").allow(null),
|
|
1259
|
-
|
|
1260
1276
|
membership_id: Joi.string().allow("").required(),
|
|
1261
|
-
});
|
|
1262
|
-
}
|
|
1263
|
-
|
|
1264
|
-
static DeviceDetails() {
|
|
1265
|
-
return Joi.object({
|
|
1266
|
-
device_make: Joi.string().allow("").allow(null),
|
|
1267
|
-
|
|
1268
|
-
os_version: Joi.string().allow("").allow(null),
|
|
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
1277
|
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
os: Joi.string().allow("").allow(null),
|
|
1278
|
+
date_of_joining: Joi.string().allow("").allow(null),
|
|
1279
1279
|
});
|
|
1280
1280
|
}
|
|
1281
1281
|
|
|
1282
1282
|
static CustomerOnboardingRequest() {
|
|
1283
1283
|
return Joi.object({
|
|
1284
|
-
business_info: PaymentModel.BusinessDetails(),
|
|
1285
|
-
|
|
1286
1284
|
personal_info: PaymentModel.UserPersonalInfoInDetails().required(),
|
|
1287
1285
|
|
|
1288
|
-
|
|
1286
|
+
device: PaymentModel.DeviceDetails(),
|
|
1289
1287
|
|
|
1290
1288
|
mcc: Joi.string().allow("").allow(null),
|
|
1291
1289
|
|
|
1292
1290
|
source: Joi.string().allow("").required(),
|
|
1293
1291
|
|
|
1294
|
-
|
|
1292
|
+
business_info: PaymentModel.BusinessDetails(),
|
|
1293
|
+
|
|
1294
|
+
marketplace_info: PaymentModel.MarketplaceInfo(),
|
|
1295
1295
|
|
|
1296
1296
|
aggregator: Joi.string().allow("").required(),
|
|
1297
1297
|
});
|
|
@@ -1299,11 +1299,11 @@ class PaymentModel {
|
|
|
1299
1299
|
|
|
1300
1300
|
static OnboardSummary() {
|
|
1301
1301
|
return Joi.object({
|
|
1302
|
-
session: Joi.any().required(),
|
|
1303
|
-
|
|
1304
1302
|
redirect_url: Joi.string().allow("").required(),
|
|
1305
1303
|
|
|
1306
1304
|
status: Joi.boolean().required(),
|
|
1305
|
+
|
|
1306
|
+
session: Joi.any().required(),
|
|
1307
1307
|
});
|
|
1308
1308
|
}
|
|
1309
1309
|
|