@gofynd/fdk-client-javascript 1.3.4-beta.1 → 1.3.4-beta.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/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +18 -1
- package/sdk/application/Catalog/CatalogApplicationModel.js +20 -0
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +23 -9
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +21 -7
- package/sdk/application/User/UserApplicationClient.d.ts +56 -0
- package/sdk/application/User/UserApplicationClient.js +385 -0
- package/sdk/application/User/UserApplicationModel.d.ts +93 -1
- package/sdk/application/User/UserApplicationModel.js +110 -0
- package/sdk/application/User/UserApplicationValidator.d.ts +66 -1
- package/sdk/application/User/UserApplicationValidator.js +68 -0
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +96 -0
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +177 -0
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +139 -0
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +158 -0
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +6 -0
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +33 -0
- package/sdk/partner/PartnerClient.d.ts +2 -0
- package/sdk/partner/PartnerClient.js +3 -0
- package/sdk/partner/index.d.ts +1 -0
- package/sdk/partner/index.js +2 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +4 -16
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +11 -79
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +12 -8
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +7 -9
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +37 -27
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +145 -56
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +22 -11
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +24 -10
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +4 -4
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +4 -8
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +832 -150
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +940 -138
- package/sdk/platform/Order/OrderPlatformClient.d.ts +2 -2
- package/sdk/platform/Order/OrderPlatformClient.js +1 -1
- package/sdk/platform/Order/OrderPlatformModel.d.ts +10 -2
- package/sdk/platform/Order/OrderPlatformModel.js +10 -2
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +4 -4
- package/sdk/platform/Order/OrderPlatformValidator.js +4 -4
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +42 -0
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +241 -0
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +41 -1
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +40 -0
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +72 -1
- package/sdk/platform/Payment/PaymentPlatformModel.js +54 -0
|
@@ -20,6 +20,11 @@ export = PaymentPlatformApplicationValidator;
|
|
|
20
20
|
* @typedef ConfirmPaymentParam
|
|
21
21
|
* @property {PaymentPlatformModel.PaymentConfirmationRequest} body
|
|
22
22
|
*/
|
|
23
|
+
/**
|
|
24
|
+
* @typedef CreateMerchantRefundPriorityParam
|
|
25
|
+
* @property {string} configType - Configuration for merchant or customer
|
|
26
|
+
* @property {PaymentPlatformModel.RefundPriorityRequestSerializer} body
|
|
27
|
+
*/
|
|
23
28
|
/**
|
|
24
29
|
* @typedef CreatePaymentLinkParam
|
|
25
30
|
* @property {PaymentPlatformModel.CreatePaymentLinkRequest} body
|
|
@@ -55,6 +60,10 @@ export = PaymentPlatformApplicationValidator;
|
|
|
55
60
|
* @property {string} device
|
|
56
61
|
*/
|
|
57
62
|
/** @typedef GetMerchantPaymentOptionParam */
|
|
63
|
+
/**
|
|
64
|
+
* @typedef GetMerchantRefundPriorityParam
|
|
65
|
+
* @property {string} configType - Configuration for merchant or customer
|
|
66
|
+
*/
|
|
58
67
|
/** @typedef GetPGConfigAggregatorsParam */
|
|
59
68
|
/** @typedef GetPaymentCodeOptionParam */
|
|
60
69
|
/**
|
|
@@ -153,6 +162,11 @@ export = PaymentPlatformApplicationValidator;
|
|
|
153
162
|
* @typedef UpdateEdcDeviceParam
|
|
154
163
|
* @property {PaymentPlatformModel.EdcAddRequest} body
|
|
155
164
|
*/
|
|
165
|
+
/**
|
|
166
|
+
* @typedef UpdateMerchantRefundPriorityParam
|
|
167
|
+
* @property {string} configType - Configuration for merchant or customer
|
|
168
|
+
* @property {PaymentPlatformModel.RefundPriorityRequestSerializer} body
|
|
169
|
+
*/
|
|
156
170
|
/**
|
|
157
171
|
* @typedef UpdatePaymentSessionParam
|
|
158
172
|
* @property {string} gid - Global identifier of the entity (e.g. order, cart
|
|
@@ -184,6 +198,8 @@ declare class PaymentPlatformApplicationValidator {
|
|
|
184
198
|
static checkAndUpdatePaymentStatus(): CheckAndUpdatePaymentStatusParam;
|
|
185
199
|
/** @returns {ConfirmPaymentParam} */
|
|
186
200
|
static confirmPayment(): ConfirmPaymentParam;
|
|
201
|
+
/** @returns {CreateMerchantRefundPriorityParam} */
|
|
202
|
+
static createMerchantRefundPriority(): CreateMerchantRefundPriorityParam;
|
|
187
203
|
/** @returns {CreatePaymentLinkParam} */
|
|
188
204
|
static createPaymentLink(): CreatePaymentLinkParam;
|
|
189
205
|
/** @returns {EdcAggregatorsAndModelListParam} */
|
|
@@ -202,6 +218,8 @@ declare class PaymentPlatformApplicationValidator {
|
|
|
202
218
|
static getMerchantAggregatorPaymentModeDetails(): GetMerchantAggregatorPaymentModeDetailsParam;
|
|
203
219
|
/** @returns {GetMerchantPaymentOptionParam} */
|
|
204
220
|
static getMerchantPaymentOption(): any;
|
|
221
|
+
/** @returns {GetMerchantRefundPriorityParam} */
|
|
222
|
+
static getMerchantRefundPriority(): GetMerchantRefundPriorityParam;
|
|
205
223
|
/** @returns {GetPGConfigAggregatorsParam} */
|
|
206
224
|
static getPGConfigAggregators(): any;
|
|
207
225
|
/** @returns {GetPaymentCodeOptionParam} */
|
|
@@ -246,6 +264,8 @@ declare class PaymentPlatformApplicationValidator {
|
|
|
246
264
|
static setUserCODlimitRoutes(): SetUserCODlimitRoutesParam;
|
|
247
265
|
/** @returns {UpdateEdcDeviceParam} */
|
|
248
266
|
static updateEdcDevice(): UpdateEdcDeviceParam;
|
|
267
|
+
/** @returns {UpdateMerchantRefundPriorityParam} */
|
|
268
|
+
static updateMerchantRefundPriority(): UpdateMerchantRefundPriorityParam;
|
|
249
269
|
/** @returns {UpdatePaymentSessionParam} */
|
|
250
270
|
static updatePaymentSession(): UpdatePaymentSessionParam;
|
|
251
271
|
/** @returns {UpdateRefundSessionParam} */
|
|
@@ -254,7 +274,7 @@ declare class PaymentPlatformApplicationValidator {
|
|
|
254
274
|
static verifyCustomerForPayment(): VerifyCustomerForPaymentParam;
|
|
255
275
|
}
|
|
256
276
|
declare namespace PaymentPlatformApplicationValidator {
|
|
257
|
-
export { AddEdcDeviceParam, AddRefundBankAccountUsingOTPParam, CancelPaymentLinkParam, CheckAndUpdatePaymentStatusParam, ConfirmPaymentParam, CreatePaymentLinkParam, EdcAggregatorsAndModelListParam, EdcDeviceListParam, EdcDeviceStatsParam, GetBankAccountDetailsOpenAPIParam, GetBrandPaymentGatewayConfigParam, GetEdcDeviceParam, GetMerchantAggregatorPaymentModeDetailsParam, GetMerchantPaymentOptionParam, GetPGConfigAggregatorsParam, GetPaymentCodeOptionParam, GetPaymentLinkParam, GetPaymentModeRoutesParam, GetPosPaymentModeRoutesParam, GetUserBeneficiariesParam, GetUserCODlimitRoutesParam, GetUserOrderBeneficiariesParam, InitialisePaymentParam, MerchantOnBoardingParam, OauthGetUrlParam, PatchMerchantAggregatorPaymentModeDetailsParam, PatchMerchantPaymentOptionParam, PaymentStatusBulkParam, PollingPaymentLinkParam, RepaymentDetailsParam, ResendOrCancelPaymentParam, ResendPaymentLinkParam, RevokeOauthTokenParam, SaveBrandPaymentGatewayConfigParam, SetUserCODlimitRoutesParam, UpdateEdcDeviceParam, UpdatePaymentSessionParam, UpdateRefundSessionParam, VerifyCustomerForPaymentParam };
|
|
277
|
+
export { AddEdcDeviceParam, AddRefundBankAccountUsingOTPParam, CancelPaymentLinkParam, CheckAndUpdatePaymentStatusParam, ConfirmPaymentParam, CreateMerchantRefundPriorityParam, CreatePaymentLinkParam, EdcAggregatorsAndModelListParam, EdcDeviceListParam, EdcDeviceStatsParam, GetBankAccountDetailsOpenAPIParam, GetBrandPaymentGatewayConfigParam, GetEdcDeviceParam, GetMerchantAggregatorPaymentModeDetailsParam, GetMerchantPaymentOptionParam, GetMerchantRefundPriorityParam, GetPGConfigAggregatorsParam, GetPaymentCodeOptionParam, GetPaymentLinkParam, GetPaymentModeRoutesParam, GetPosPaymentModeRoutesParam, GetUserBeneficiariesParam, GetUserCODlimitRoutesParam, GetUserOrderBeneficiariesParam, InitialisePaymentParam, MerchantOnBoardingParam, OauthGetUrlParam, PatchMerchantAggregatorPaymentModeDetailsParam, PatchMerchantPaymentOptionParam, PaymentStatusBulkParam, PollingPaymentLinkParam, RepaymentDetailsParam, ResendOrCancelPaymentParam, ResendPaymentLinkParam, RevokeOauthTokenParam, SaveBrandPaymentGatewayConfigParam, SetUserCODlimitRoutesParam, UpdateEdcDeviceParam, UpdateMerchantRefundPriorityParam, UpdatePaymentSessionParam, UpdateRefundSessionParam, VerifyCustomerForPaymentParam };
|
|
258
278
|
}
|
|
259
279
|
type AddEdcDeviceParam = {
|
|
260
280
|
/**
|
|
@@ -275,6 +295,13 @@ type CheckAndUpdatePaymentStatusParam = {
|
|
|
275
295
|
type ConfirmPaymentParam = {
|
|
276
296
|
body: PaymentPlatformModel.PaymentConfirmationRequest;
|
|
277
297
|
};
|
|
298
|
+
type CreateMerchantRefundPriorityParam = {
|
|
299
|
+
/**
|
|
300
|
+
* - Configuration for merchant or customer
|
|
301
|
+
*/
|
|
302
|
+
configType: string;
|
|
303
|
+
body: PaymentPlatformModel.RefundPriorityRequestSerializer;
|
|
304
|
+
};
|
|
278
305
|
type CreatePaymentLinkParam = {
|
|
279
306
|
body: PaymentPlatformModel.CreatePaymentLinkRequest;
|
|
280
307
|
};
|
|
@@ -310,6 +337,12 @@ type GetMerchantAggregatorPaymentModeDetailsParam = {
|
|
|
310
337
|
businessUnit: string;
|
|
311
338
|
device: string;
|
|
312
339
|
};
|
|
340
|
+
type GetMerchantRefundPriorityParam = {
|
|
341
|
+
/**
|
|
342
|
+
* - Configuration for merchant or customer
|
|
343
|
+
*/
|
|
344
|
+
configType: string;
|
|
345
|
+
};
|
|
313
346
|
type GetPaymentLinkParam = {
|
|
314
347
|
paymentLinkId?: string;
|
|
315
348
|
};
|
|
@@ -419,6 +452,13 @@ type SetUserCODlimitRoutesParam = {
|
|
|
419
452
|
type UpdateEdcDeviceParam = {
|
|
420
453
|
body: PaymentPlatformModel.EdcAddRequest;
|
|
421
454
|
};
|
|
455
|
+
type UpdateMerchantRefundPriorityParam = {
|
|
456
|
+
/**
|
|
457
|
+
* - Configuration for merchant or customer
|
|
458
|
+
*/
|
|
459
|
+
configType: string;
|
|
460
|
+
body: PaymentPlatformModel.RefundPriorityRequestSerializer;
|
|
461
|
+
};
|
|
422
462
|
type UpdatePaymentSessionParam = {
|
|
423
463
|
/**
|
|
424
464
|
* - Global identifier of the entity (e.g. order, cart
|
|
@@ -28,6 +28,12 @@ const PaymentPlatformModel = require("./PaymentPlatformModel");
|
|
|
28
28
|
* @property {PaymentPlatformModel.PaymentConfirmationRequest} body
|
|
29
29
|
*/
|
|
30
30
|
|
|
31
|
+
/**
|
|
32
|
+
* @typedef CreateMerchantRefundPriorityParam
|
|
33
|
+
* @property {string} configType - Configuration for merchant or customer
|
|
34
|
+
* @property {PaymentPlatformModel.RefundPriorityRequestSerializer} body
|
|
35
|
+
*/
|
|
36
|
+
|
|
31
37
|
/**
|
|
32
38
|
* @typedef CreatePaymentLinkParam
|
|
33
39
|
* @property {PaymentPlatformModel.CreatePaymentLinkRequest} body
|
|
@@ -72,6 +78,11 @@ const PaymentPlatformModel = require("./PaymentPlatformModel");
|
|
|
72
78
|
|
|
73
79
|
/** @typedef GetMerchantPaymentOptionParam */
|
|
74
80
|
|
|
81
|
+
/**
|
|
82
|
+
* @typedef GetMerchantRefundPriorityParam
|
|
83
|
+
* @property {string} configType - Configuration for merchant or customer
|
|
84
|
+
*/
|
|
85
|
+
|
|
75
86
|
/** @typedef GetPGConfigAggregatorsParam */
|
|
76
87
|
|
|
77
88
|
/** @typedef GetPaymentCodeOptionParam */
|
|
@@ -192,6 +203,12 @@ const PaymentPlatformModel = require("./PaymentPlatformModel");
|
|
|
192
203
|
* @property {PaymentPlatformModel.EdcAddRequest} body
|
|
193
204
|
*/
|
|
194
205
|
|
|
206
|
+
/**
|
|
207
|
+
* @typedef UpdateMerchantRefundPriorityParam
|
|
208
|
+
* @property {string} configType - Configuration for merchant or customer
|
|
209
|
+
* @property {PaymentPlatformModel.RefundPriorityRequestSerializer} body
|
|
210
|
+
*/
|
|
211
|
+
|
|
195
212
|
/**
|
|
196
213
|
* @typedef UpdatePaymentSessionParam
|
|
197
214
|
* @property {string} gid - Global identifier of the entity (e.g. order, cart
|
|
@@ -252,6 +269,14 @@ class PaymentPlatformApplicationValidator {
|
|
|
252
269
|
}).required();
|
|
253
270
|
}
|
|
254
271
|
|
|
272
|
+
/** @returns {CreateMerchantRefundPriorityParam} */
|
|
273
|
+
static createMerchantRefundPriority() {
|
|
274
|
+
return Joi.object({
|
|
275
|
+
configType: Joi.string().allow("").required(),
|
|
276
|
+
body: PaymentPlatformModel.RefundPriorityRequestSerializer().required(),
|
|
277
|
+
}).required();
|
|
278
|
+
}
|
|
279
|
+
|
|
255
280
|
/** @returns {CreatePaymentLinkParam} */
|
|
256
281
|
static createPaymentLink() {
|
|
257
282
|
return Joi.object({
|
|
@@ -317,6 +342,13 @@ class PaymentPlatformApplicationValidator {
|
|
|
317
342
|
return Joi.object({}).required();
|
|
318
343
|
}
|
|
319
344
|
|
|
345
|
+
/** @returns {GetMerchantRefundPriorityParam} */
|
|
346
|
+
static getMerchantRefundPriority() {
|
|
347
|
+
return Joi.object({
|
|
348
|
+
configType: Joi.string().allow("").required(),
|
|
349
|
+
}).required();
|
|
350
|
+
}
|
|
351
|
+
|
|
320
352
|
/** @returns {GetPGConfigAggregatorsParam} */
|
|
321
353
|
static getPGConfigAggregators() {
|
|
322
354
|
return Joi.object({}).required();
|
|
@@ -479,6 +511,14 @@ class PaymentPlatformApplicationValidator {
|
|
|
479
511
|
}).required();
|
|
480
512
|
}
|
|
481
513
|
|
|
514
|
+
/** @returns {UpdateMerchantRefundPriorityParam} */
|
|
515
|
+
static updateMerchantRefundPriority() {
|
|
516
|
+
return Joi.object({
|
|
517
|
+
configType: Joi.string().allow("").required(),
|
|
518
|
+
body: PaymentPlatformModel.RefundPriorityRequestSerializer().required(),
|
|
519
|
+
}).required();
|
|
520
|
+
}
|
|
521
|
+
|
|
482
522
|
/** @returns {UpdatePaymentSessionParam} */
|
|
483
523
|
static updatePaymentSession() {
|
|
484
524
|
return Joi.object({
|
|
@@ -710,6 +710,19 @@ export = PaymentPlatformModel;
|
|
|
710
710
|
* @property {string} message - Response message
|
|
711
711
|
* @property {boolean} success - Success or failure flag.
|
|
712
712
|
*/
|
|
713
|
+
/**
|
|
714
|
+
* @typedef RefundPriorityRequestSerializer
|
|
715
|
+
* @property {boolean} apportion - Apportion refund to multiple sources
|
|
716
|
+
* @property {RefundSourcesPriority[]} refund_sources_priority - Refund sources priority
|
|
717
|
+
*/
|
|
718
|
+
/**
|
|
719
|
+
* @typedef RefundPriorityResponseSerializer
|
|
720
|
+
* @property {boolean} apportion - Apportion refund to multiple sources
|
|
721
|
+
* @property {string} configuration - Configuration for merchant or customer
|
|
722
|
+
* @property {string} [message] - Message
|
|
723
|
+
* @property {RefundSourcesPriority[]} refund_sources_priority - Refund sources priority
|
|
724
|
+
* @property {boolean} success - Success
|
|
725
|
+
*/
|
|
713
726
|
/**
|
|
714
727
|
* @typedef RefundSessionDetail
|
|
715
728
|
* @property {number} amount - Amount refunded.
|
|
@@ -748,6 +761,12 @@ export = PaymentPlatformModel;
|
|
|
748
761
|
* @property {string} status - The status of the refund.
|
|
749
762
|
* @property {number} total_refund_amount - The total amount refunded.
|
|
750
763
|
*/
|
|
764
|
+
/**
|
|
765
|
+
* @typedef RefundSourcesPriority
|
|
766
|
+
* @property {string} description - Description of refund source
|
|
767
|
+
* @property {number} priority - Priority of refund source, 0 being highest
|
|
768
|
+
* @property {string} source - Source of refund
|
|
769
|
+
*/
|
|
751
770
|
/**
|
|
752
771
|
* @typedef RepaymentDetailsSerialiserPayAll
|
|
753
772
|
* @property {string} aggregator_order_id - Id of payment gateway
|
|
@@ -878,7 +897,7 @@ export = PaymentPlatformModel;
|
|
|
878
897
|
declare class PaymentPlatformModel {
|
|
879
898
|
}
|
|
880
899
|
declare namespace PaymentPlatformModel {
|
|
881
|
-
export { AddBeneficiaryDetailsOTPRequest, AddressDetail, BankDetailsForOTP, CancelOrResendPaymentLinkRequest, CancelPaymentLinkResponse, CODChargesLimitsResponse, CODdata, Code, CreatePaymentLinkMeta, CreatePaymentLinkRequest, CreatePaymentLinkResponse, DeletePayoutResponse, DeleteSubscriptionPaymentMethodResponse, EdcAddRequest, EdcAggregatorAndModelListResponse, EdcDevice, EdcDeviceAddResponse, EdcDeviceDetailsResponse, EdcDeviceListResponse, EdcDeviceStatsResponse, EdcDeviceUpdateResponse, EdcModelData, EdcUpdateRequest, ErrorCodeAndDescription, ErrorCodeDescription, ErrorDescription, ErrorResponse, GetOauthUrlResponse, GetPaymentCode, GetPaymentCodeResponse, GetPaymentLinkResponse, GetUserCODLimitResponse, HttpErrorCodeAndResponse, IfscCodeResponse, IntentApp, IntentAppErrorList, LinkStatus, MerchantOnBoardingRequest, MerchantOnBoardingResponse, MerchnatPaymentModeRequest, MerchnatPaymentModeResponse, MultiTenderPaymentMeta, MultiTenderPaymentMethod, NotFoundResourceError, OrderBeneficiaryDetails, OrderBeneficiaryResponse, OrderDetail, Page, PaymentCode, PaymentConfirmationRequest, PaymentConfirmationResponse, PaymentGatewayConfig, PaymentGatewayConfigRequest, PaymentGatewayConfigResponse, PaymentGatewayToBeReviewed, PaymentInitializationRequest, PaymentInitializationResponse, PaymentModeList, PaymentModeLogo, PaymentObjectListSerializer, PaymentOptions, PaymentOptionsResponse, PaymentSessionDetail, PaymentSessionRequestSerializer, PaymentSessionResponseSerializer, PaymentStatusBulkHandlerRequest, PaymentStatusBulkHandlerResponse, PaymentStatusObject, PaymentStatusUpdateRequest, PaymentStatusUpdateResponse, Payout, PayoutAggregator, PayoutBankDetails, PayoutCustomer, PayoutMoreAttributes, PayoutRequest, PayoutResponse, PayoutsResponse, PollingPaymentLinkResponse, ProductCODData, RefundAccountResponse, RefundSessionDetail, RefundSessionRequestSerializer, RefundSessionResponseSerializer, RepaymentDetailsSerialiserPayAll, RepaymentRequestDetails, RepaymentResponse, ResendOrCancelPaymentRequest, ResendOrCancelPaymentResponse, ResendPaymentLinkResponse, RevokeOAuthToken, RootPaymentMode, SaveSubscriptionSetupIntentRequest, SaveSubscriptionSetupIntentResponse, SetCODForUserRequest, SetCODOptionResponse, StatisticsData, SubscriptionConfigResponse, SubscriptionPaymentMethodResponse, UpdatePayoutRequest, UpdatePayoutResponse, ValidateCustomerRequest, ValidateCustomerResponse };
|
|
900
|
+
export { AddBeneficiaryDetailsOTPRequest, AddressDetail, BankDetailsForOTP, CancelOrResendPaymentLinkRequest, CancelPaymentLinkResponse, CODChargesLimitsResponse, CODdata, Code, CreatePaymentLinkMeta, CreatePaymentLinkRequest, CreatePaymentLinkResponse, DeletePayoutResponse, DeleteSubscriptionPaymentMethodResponse, EdcAddRequest, EdcAggregatorAndModelListResponse, EdcDevice, EdcDeviceAddResponse, EdcDeviceDetailsResponse, EdcDeviceListResponse, EdcDeviceStatsResponse, EdcDeviceUpdateResponse, EdcModelData, EdcUpdateRequest, ErrorCodeAndDescription, ErrorCodeDescription, ErrorDescription, ErrorResponse, GetOauthUrlResponse, GetPaymentCode, GetPaymentCodeResponse, GetPaymentLinkResponse, GetUserCODLimitResponse, HttpErrorCodeAndResponse, IfscCodeResponse, IntentApp, IntentAppErrorList, LinkStatus, MerchantOnBoardingRequest, MerchantOnBoardingResponse, MerchnatPaymentModeRequest, MerchnatPaymentModeResponse, MultiTenderPaymentMeta, MultiTenderPaymentMethod, NotFoundResourceError, OrderBeneficiaryDetails, OrderBeneficiaryResponse, OrderDetail, Page, PaymentCode, PaymentConfirmationRequest, PaymentConfirmationResponse, PaymentGatewayConfig, PaymentGatewayConfigRequest, PaymentGatewayConfigResponse, PaymentGatewayToBeReviewed, PaymentInitializationRequest, PaymentInitializationResponse, PaymentModeList, PaymentModeLogo, PaymentObjectListSerializer, PaymentOptions, PaymentOptionsResponse, PaymentSessionDetail, PaymentSessionRequestSerializer, PaymentSessionResponseSerializer, PaymentStatusBulkHandlerRequest, PaymentStatusBulkHandlerResponse, PaymentStatusObject, PaymentStatusUpdateRequest, PaymentStatusUpdateResponse, Payout, PayoutAggregator, PayoutBankDetails, PayoutCustomer, PayoutMoreAttributes, PayoutRequest, PayoutResponse, PayoutsResponse, PollingPaymentLinkResponse, ProductCODData, RefundAccountResponse, RefundPriorityRequestSerializer, RefundPriorityResponseSerializer, RefundSessionDetail, RefundSessionRequestSerializer, RefundSessionResponseSerializer, RefundSourcesPriority, RepaymentDetailsSerialiserPayAll, RepaymentRequestDetails, RepaymentResponse, ResendOrCancelPaymentRequest, ResendOrCancelPaymentResponse, ResendPaymentLinkResponse, RevokeOAuthToken, RootPaymentMode, SaveSubscriptionSetupIntentRequest, SaveSubscriptionSetupIntentResponse, SetCODForUserRequest, SetCODOptionResponse, StatisticsData, SubscriptionConfigResponse, SubscriptionPaymentMethodResponse, UpdatePayoutRequest, UpdatePayoutResponse, ValidateCustomerRequest, ValidateCustomerResponse };
|
|
882
901
|
}
|
|
883
902
|
/** @returns {AddBeneficiaryDetailsOTPRequest} */
|
|
884
903
|
declare function AddBeneficiaryDetailsOTPRequest(): AddBeneficiaryDetailsOTPRequest;
|
|
@@ -2791,6 +2810,42 @@ type RefundAccountResponse = {
|
|
|
2791
2810
|
*/
|
|
2792
2811
|
success: boolean;
|
|
2793
2812
|
};
|
|
2813
|
+
/** @returns {RefundPriorityRequestSerializer} */
|
|
2814
|
+
declare function RefundPriorityRequestSerializer(): RefundPriorityRequestSerializer;
|
|
2815
|
+
type RefundPriorityRequestSerializer = {
|
|
2816
|
+
/**
|
|
2817
|
+
* - Apportion refund to multiple sources
|
|
2818
|
+
*/
|
|
2819
|
+
apportion: boolean;
|
|
2820
|
+
/**
|
|
2821
|
+
* - Refund sources priority
|
|
2822
|
+
*/
|
|
2823
|
+
refund_sources_priority: RefundSourcesPriority[];
|
|
2824
|
+
};
|
|
2825
|
+
/** @returns {RefundPriorityResponseSerializer} */
|
|
2826
|
+
declare function RefundPriorityResponseSerializer(): RefundPriorityResponseSerializer;
|
|
2827
|
+
type RefundPriorityResponseSerializer = {
|
|
2828
|
+
/**
|
|
2829
|
+
* - Apportion refund to multiple sources
|
|
2830
|
+
*/
|
|
2831
|
+
apportion: boolean;
|
|
2832
|
+
/**
|
|
2833
|
+
* - Configuration for merchant or customer
|
|
2834
|
+
*/
|
|
2835
|
+
configuration: string;
|
|
2836
|
+
/**
|
|
2837
|
+
* - Message
|
|
2838
|
+
*/
|
|
2839
|
+
message?: string;
|
|
2840
|
+
/**
|
|
2841
|
+
* - Refund sources priority
|
|
2842
|
+
*/
|
|
2843
|
+
refund_sources_priority: RefundSourcesPriority[];
|
|
2844
|
+
/**
|
|
2845
|
+
* - Success
|
|
2846
|
+
*/
|
|
2847
|
+
success: boolean;
|
|
2848
|
+
};
|
|
2794
2849
|
/** @returns {RefundSessionDetail} */
|
|
2795
2850
|
declare function RefundSessionDetail(): RefundSessionDetail;
|
|
2796
2851
|
type RefundSessionDetail = {
|
|
@@ -2901,6 +2956,22 @@ type RefundSessionResponseSerializer = {
|
|
|
2901
2956
|
*/
|
|
2902
2957
|
total_refund_amount: number;
|
|
2903
2958
|
};
|
|
2959
|
+
/** @returns {RefundSourcesPriority} */
|
|
2960
|
+
declare function RefundSourcesPriority(): RefundSourcesPriority;
|
|
2961
|
+
type RefundSourcesPriority = {
|
|
2962
|
+
/**
|
|
2963
|
+
* - Description of refund source
|
|
2964
|
+
*/
|
|
2965
|
+
description: string;
|
|
2966
|
+
/**
|
|
2967
|
+
* - Priority of refund source, 0 being highest
|
|
2968
|
+
*/
|
|
2969
|
+
priority: number;
|
|
2970
|
+
/**
|
|
2971
|
+
* - Source of refund
|
|
2972
|
+
*/
|
|
2973
|
+
source: string;
|
|
2974
|
+
};
|
|
2904
2975
|
/** @returns {RepaymentDetailsSerialiserPayAll} */
|
|
2905
2976
|
declare function RepaymentDetailsSerialiserPayAll(): RepaymentDetailsSerialiserPayAll;
|
|
2906
2977
|
type RepaymentDetailsSerialiserPayAll = {
|
|
@@ -792,6 +792,21 @@ const Joi = require("joi");
|
|
|
792
792
|
* @property {boolean} success - Success or failure flag.
|
|
793
793
|
*/
|
|
794
794
|
|
|
795
|
+
/**
|
|
796
|
+
* @typedef RefundPriorityRequestSerializer
|
|
797
|
+
* @property {boolean} apportion - Apportion refund to multiple sources
|
|
798
|
+
* @property {RefundSourcesPriority[]} refund_sources_priority - Refund sources priority
|
|
799
|
+
*/
|
|
800
|
+
|
|
801
|
+
/**
|
|
802
|
+
* @typedef RefundPriorityResponseSerializer
|
|
803
|
+
* @property {boolean} apportion - Apportion refund to multiple sources
|
|
804
|
+
* @property {string} configuration - Configuration for merchant or customer
|
|
805
|
+
* @property {string} [message] - Message
|
|
806
|
+
* @property {RefundSourcesPriority[]} refund_sources_priority - Refund sources priority
|
|
807
|
+
* @property {boolean} success - Success
|
|
808
|
+
*/
|
|
809
|
+
|
|
795
810
|
/**
|
|
796
811
|
* @typedef RefundSessionDetail
|
|
797
812
|
* @property {number} amount - Amount refunded.
|
|
@@ -833,6 +848,13 @@ const Joi = require("joi");
|
|
|
833
848
|
* @property {number} total_refund_amount - The total amount refunded.
|
|
834
849
|
*/
|
|
835
850
|
|
|
851
|
+
/**
|
|
852
|
+
* @typedef RefundSourcesPriority
|
|
853
|
+
* @property {string} description - Description of refund source
|
|
854
|
+
* @property {number} priority - Priority of refund source, 0 being highest
|
|
855
|
+
* @property {string} source - Source of refund
|
|
856
|
+
*/
|
|
857
|
+
|
|
836
858
|
/**
|
|
837
859
|
* @typedef RepaymentDetailsSerialiserPayAll
|
|
838
860
|
* @property {string} aggregator_order_id - Id of payment gateway
|
|
@@ -1922,6 +1944,29 @@ class PaymentPlatformModel {
|
|
|
1922
1944
|
});
|
|
1923
1945
|
}
|
|
1924
1946
|
|
|
1947
|
+
/** @returns {RefundPriorityRequestSerializer} */
|
|
1948
|
+
static RefundPriorityRequestSerializer() {
|
|
1949
|
+
return Joi.object({
|
|
1950
|
+
apportion: Joi.boolean().required(),
|
|
1951
|
+
refund_sources_priority: Joi.array()
|
|
1952
|
+
.items(PaymentPlatformModel.RefundSourcesPriority())
|
|
1953
|
+
.required(),
|
|
1954
|
+
});
|
|
1955
|
+
}
|
|
1956
|
+
|
|
1957
|
+
/** @returns {RefundPriorityResponseSerializer} */
|
|
1958
|
+
static RefundPriorityResponseSerializer() {
|
|
1959
|
+
return Joi.object({
|
|
1960
|
+
apportion: Joi.boolean().required(),
|
|
1961
|
+
configuration: Joi.string().allow("").required(),
|
|
1962
|
+
message: Joi.string().allow(""),
|
|
1963
|
+
refund_sources_priority: Joi.array()
|
|
1964
|
+
.items(PaymentPlatformModel.RefundSourcesPriority())
|
|
1965
|
+
.required(),
|
|
1966
|
+
success: Joi.boolean().required(),
|
|
1967
|
+
});
|
|
1968
|
+
}
|
|
1969
|
+
|
|
1925
1970
|
/** @returns {RefundSessionDetail} */
|
|
1926
1971
|
static RefundSessionDetail() {
|
|
1927
1972
|
return Joi.object({
|
|
@@ -1965,6 +2010,15 @@ class PaymentPlatformModel {
|
|
|
1965
2010
|
});
|
|
1966
2011
|
}
|
|
1967
2012
|
|
|
2013
|
+
/** @returns {RefundSourcesPriority} */
|
|
2014
|
+
static RefundSourcesPriority() {
|
|
2015
|
+
return Joi.object({
|
|
2016
|
+
description: Joi.string().allow("").required(),
|
|
2017
|
+
priority: Joi.number().required(),
|
|
2018
|
+
source: Joi.string().allow("").required(),
|
|
2019
|
+
});
|
|
2020
|
+
}
|
|
2021
|
+
|
|
1968
2022
|
/** @returns {RepaymentDetailsSerialiserPayAll} */
|
|
1969
2023
|
static RepaymentDetailsSerialiserPayAll() {
|
|
1970
2024
|
return Joi.object({
|