@gofynd/fdk-client-javascript 1.3.1 → 1.3.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/package.json +1 -1
- package/sdk/platform/Order/OrderPlatformModel.d.ts +8 -8
- package/sdk/platform/Order/OrderPlatformModel.js +8 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +11 -3
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +13 -3
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +9 -2
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +50 -1
- package/sdk/platform/Payment/PaymentPlatformModel.js +34 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +1 -349
- package/sdk/platform/Theme/ThemePlatformModel.js +0 -282
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +13 -19
- package/sdk/platform/Webhook/WebhookPlatformModel.js +21 -8
package/package.json
CHANGED
|
@@ -970,7 +970,7 @@ export = OrderPlatformModel;
|
|
|
970
970
|
/**
|
|
971
971
|
* @typedef GSTDetailsData
|
|
972
972
|
* @property {number} brand_calculated_amount
|
|
973
|
-
* @property {
|
|
973
|
+
* @property {number} [cgst_gst_fee]
|
|
974
974
|
* @property {number} [cgst_tax_percentage]
|
|
975
975
|
* @property {number} gst_fee
|
|
976
976
|
* @property {string} [gst_tag]
|
|
@@ -978,10 +978,10 @@ export = OrderPlatformModel;
|
|
|
978
978
|
* @property {string} [gstin_code]
|
|
979
979
|
* @property {string} [hsn_code]
|
|
980
980
|
* @property {string} [hsn_code_id]
|
|
981
|
-
* @property {
|
|
981
|
+
* @property {number} [igst_gst_fee]
|
|
982
982
|
* @property {number} [igst_tax_percentage]
|
|
983
983
|
* @property {boolean} [is_default_hsn_code]
|
|
984
|
-
* @property {
|
|
984
|
+
* @property {number} [sgst_gst_fee]
|
|
985
985
|
* @property {number} [sgst_tax_percentage]
|
|
986
986
|
* @property {number} tax_collected_at_source
|
|
987
987
|
* @property {number} value_of_good
|
|
@@ -1277,7 +1277,7 @@ export = OrderPlatformModel;
|
|
|
1277
1277
|
* @property {string} [company_logo]
|
|
1278
1278
|
* @property {string} [currency_symbol]
|
|
1279
1279
|
* @property {string} [customer_note]
|
|
1280
|
-
* @property {
|
|
1280
|
+
* @property {string} [employee_id]
|
|
1281
1281
|
* @property {Object} [extra_meta]
|
|
1282
1282
|
* @property {Object[]} [files]
|
|
1283
1283
|
* @property {number} [mongo_cart_id]
|
|
@@ -3546,7 +3546,7 @@ type GiftCard = {
|
|
|
3546
3546
|
declare function GSTDetailsData(): GSTDetailsData;
|
|
3547
3547
|
type GSTDetailsData = {
|
|
3548
3548
|
brand_calculated_amount: number;
|
|
3549
|
-
cgst_gst_fee?:
|
|
3549
|
+
cgst_gst_fee?: number;
|
|
3550
3550
|
cgst_tax_percentage?: number;
|
|
3551
3551
|
gst_fee: number;
|
|
3552
3552
|
gst_tag?: string;
|
|
@@ -3554,10 +3554,10 @@ type GSTDetailsData = {
|
|
|
3554
3554
|
gstin_code?: string;
|
|
3555
3555
|
hsn_code?: string;
|
|
3556
3556
|
hsn_code_id?: string;
|
|
3557
|
-
igst_gst_fee?:
|
|
3557
|
+
igst_gst_fee?: number;
|
|
3558
3558
|
igst_tax_percentage?: number;
|
|
3559
3559
|
is_default_hsn_code?: boolean;
|
|
3560
|
-
sgst_gst_fee?:
|
|
3560
|
+
sgst_gst_fee?: number;
|
|
3561
3561
|
sgst_tax_percentage?: number;
|
|
3562
3562
|
tax_collected_at_source: number;
|
|
3563
3563
|
value_of_good: number;
|
|
@@ -3930,7 +3930,7 @@ type OrderMeta = {
|
|
|
3930
3930
|
company_logo?: string;
|
|
3931
3931
|
currency_symbol?: string;
|
|
3932
3932
|
customer_note?: string;
|
|
3933
|
-
employee_id?:
|
|
3933
|
+
employee_id?: string;
|
|
3934
3934
|
extra_meta?: any;
|
|
3935
3935
|
files?: any[];
|
|
3936
3936
|
mongo_cart_id?: number;
|
|
@@ -1080,7 +1080,7 @@ const Joi = require("joi");
|
|
|
1080
1080
|
/**
|
|
1081
1081
|
* @typedef GSTDetailsData
|
|
1082
1082
|
* @property {number} brand_calculated_amount
|
|
1083
|
-
* @property {
|
|
1083
|
+
* @property {number} [cgst_gst_fee]
|
|
1084
1084
|
* @property {number} [cgst_tax_percentage]
|
|
1085
1085
|
* @property {number} gst_fee
|
|
1086
1086
|
* @property {string} [gst_tag]
|
|
@@ -1088,10 +1088,10 @@ const Joi = require("joi");
|
|
|
1088
1088
|
* @property {string} [gstin_code]
|
|
1089
1089
|
* @property {string} [hsn_code]
|
|
1090
1090
|
* @property {string} [hsn_code_id]
|
|
1091
|
-
* @property {
|
|
1091
|
+
* @property {number} [igst_gst_fee]
|
|
1092
1092
|
* @property {number} [igst_tax_percentage]
|
|
1093
1093
|
* @property {boolean} [is_default_hsn_code]
|
|
1094
|
-
* @property {
|
|
1094
|
+
* @property {number} [sgst_gst_fee]
|
|
1095
1095
|
* @property {number} [sgst_tax_percentage]
|
|
1096
1096
|
* @property {number} tax_collected_at_source
|
|
1097
1097
|
* @property {number} value_of_good
|
|
@@ -1416,7 +1416,7 @@ const Joi = require("joi");
|
|
|
1416
1416
|
* @property {string} [company_logo]
|
|
1417
1417
|
* @property {string} [currency_symbol]
|
|
1418
1418
|
* @property {string} [customer_note]
|
|
1419
|
-
* @property {
|
|
1419
|
+
* @property {string} [employee_id]
|
|
1420
1420
|
* @property {Object} [extra_meta]
|
|
1421
1421
|
* @property {Object[]} [files]
|
|
1422
1422
|
* @property {number} [mongo_cart_id]
|
|
@@ -3900,7 +3900,7 @@ class OrderPlatformModel {
|
|
|
3900
3900
|
static GSTDetailsData() {
|
|
3901
3901
|
return Joi.object({
|
|
3902
3902
|
brand_calculated_amount: Joi.number().required(),
|
|
3903
|
-
cgst_gst_fee: Joi.
|
|
3903
|
+
cgst_gst_fee: Joi.number(),
|
|
3904
3904
|
cgst_tax_percentage: Joi.number(),
|
|
3905
3905
|
gst_fee: Joi.number().required(),
|
|
3906
3906
|
gst_tag: Joi.string().allow(""),
|
|
@@ -3908,10 +3908,10 @@ class OrderPlatformModel {
|
|
|
3908
3908
|
gstin_code: Joi.string().allow("").allow(null),
|
|
3909
3909
|
hsn_code: Joi.string().allow(""),
|
|
3910
3910
|
hsn_code_id: Joi.string().allow(""),
|
|
3911
|
-
igst_gst_fee: Joi.
|
|
3911
|
+
igst_gst_fee: Joi.number(),
|
|
3912
3912
|
igst_tax_percentage: Joi.number(),
|
|
3913
3913
|
is_default_hsn_code: Joi.boolean(),
|
|
3914
|
-
sgst_gst_fee: Joi.
|
|
3914
|
+
sgst_gst_fee: Joi.number(),
|
|
3915
3915
|
sgst_tax_percentage: Joi.number(),
|
|
3916
3916
|
tax_collected_at_source: Joi.number().required(),
|
|
3917
3917
|
value_of_good: Joi.number().required(),
|
|
@@ -4299,7 +4299,7 @@ class OrderPlatformModel {
|
|
|
4299
4299
|
company_logo: Joi.string().allow(""),
|
|
4300
4300
|
currency_symbol: Joi.string().allow(""),
|
|
4301
4301
|
customer_note: Joi.string().allow(""),
|
|
4302
|
-
employee_id: Joi.
|
|
4302
|
+
employee_id: Joi.string().allow("").allow(null),
|
|
4303
4303
|
extra_meta: Joi.any(),
|
|
4304
4304
|
files: Joi.array().items(Joi.any()),
|
|
4305
4305
|
mongo_cart_id: Joi.number(),
|
|
@@ -133,7 +133,7 @@ declare class Payment {
|
|
|
133
133
|
* @summary: Get All Brand Payment Gateway Config Secret
|
|
134
134
|
* @description: Get All Brand Payment Gateway Config Secret - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getBrandPaymentGatewayConfig/).
|
|
135
135
|
*/
|
|
136
|
-
getBrandPaymentGatewayConfig({ requestHeaders }?:
|
|
136
|
+
getBrandPaymentGatewayConfig({ aggregator, configType, requestHeaders }?: PaymentPlatformApplicationValidator.GetBrandPaymentGatewayConfigParam, { responseHeaders }?: object): Promise<PaymentPlatformModel.PaymentGatewayConfigResponse>;
|
|
137
137
|
/**
|
|
138
138
|
* @param {PaymentPlatformApplicationValidator.GetEdcDeviceParam} arg - Arg object
|
|
139
139
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -808,13 +808,16 @@ class Payment {
|
|
|
808
808
|
* @description: Get All Brand Payment Gateway Config Secret - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getBrandPaymentGatewayConfig/).
|
|
809
809
|
*/
|
|
810
810
|
async getBrandPaymentGatewayConfig(
|
|
811
|
-
{ requestHeaders } = { requestHeaders: {} },
|
|
811
|
+
{ aggregator, configType, requestHeaders } = { requestHeaders: {} },
|
|
812
812
|
{ responseHeaders } = { responseHeaders: false }
|
|
813
813
|
) {
|
|
814
814
|
const {
|
|
815
815
|
error,
|
|
816
816
|
} = PaymentPlatformApplicationValidator.getBrandPaymentGatewayConfig().validate(
|
|
817
|
-
{
|
|
817
|
+
{
|
|
818
|
+
aggregator,
|
|
819
|
+
configType,
|
|
820
|
+
},
|
|
818
821
|
{ abortEarly: false, allowUnknown: true }
|
|
819
822
|
);
|
|
820
823
|
if (error) {
|
|
@@ -825,7 +828,10 @@ class Payment {
|
|
|
825
828
|
const {
|
|
826
829
|
error: warrning,
|
|
827
830
|
} = PaymentPlatformApplicationValidator.getBrandPaymentGatewayConfig().validate(
|
|
828
|
-
{
|
|
831
|
+
{
|
|
832
|
+
aggregator,
|
|
833
|
+
configType,
|
|
834
|
+
},
|
|
829
835
|
{ abortEarly: false, allowUnknown: false }
|
|
830
836
|
);
|
|
831
837
|
if (warrning) {
|
|
@@ -836,6 +842,8 @@ class Payment {
|
|
|
836
842
|
}
|
|
837
843
|
|
|
838
844
|
const query_params = {};
|
|
845
|
+
query_params["aggregator"] = aggregator;
|
|
846
|
+
query_params["config_type"] = configType;
|
|
839
847
|
|
|
840
848
|
const response = await PlatformAPIClient.execute(
|
|
841
849
|
this.config,
|
|
@@ -39,7 +39,11 @@ export = PaymentPlatformApplicationValidator;
|
|
|
39
39
|
* @property {string} orderId
|
|
40
40
|
* @property {string} [requestHash]
|
|
41
41
|
*/
|
|
42
|
-
/**
|
|
42
|
+
/**
|
|
43
|
+
* @typedef GetBrandPaymentGatewayConfigParam
|
|
44
|
+
* @property {string} [aggregator] - Aggregator slug
|
|
45
|
+
* @property {string} [configType]
|
|
46
|
+
*/
|
|
43
47
|
/**
|
|
44
48
|
* @typedef GetEdcDeviceParam
|
|
45
49
|
* @property {string} terminalUniqueIdentifier - Terminal unique identifier
|
|
@@ -191,7 +195,7 @@ declare class PaymentPlatformApplicationValidator {
|
|
|
191
195
|
/** @returns {GetBankAccountDetailsOpenAPIParam} */
|
|
192
196
|
static getBankAccountDetailsOpenAPI(): GetBankAccountDetailsOpenAPIParam;
|
|
193
197
|
/** @returns {GetBrandPaymentGatewayConfigParam} */
|
|
194
|
-
static getBrandPaymentGatewayConfig():
|
|
198
|
+
static getBrandPaymentGatewayConfig(): GetBrandPaymentGatewayConfigParam;
|
|
195
199
|
/** @returns {GetEdcDeviceParam} */
|
|
196
200
|
static getEdcDevice(): GetEdcDeviceParam;
|
|
197
201
|
/** @returns {GetMerchantAggregatorPaymentModeDetailsParam} */
|
|
@@ -285,6 +289,13 @@ type GetBankAccountDetailsOpenAPIParam = {
|
|
|
285
289
|
orderId: string;
|
|
286
290
|
requestHash?: string;
|
|
287
291
|
};
|
|
292
|
+
type GetBrandPaymentGatewayConfigParam = {
|
|
293
|
+
/**
|
|
294
|
+
* - Aggregator slug
|
|
295
|
+
*/
|
|
296
|
+
aggregator?: string;
|
|
297
|
+
configType?: string;
|
|
298
|
+
};
|
|
288
299
|
type GetEdcDeviceParam = {
|
|
289
300
|
/**
|
|
290
301
|
* - Terminal unique identifier
|
|
@@ -436,7 +447,6 @@ type VerifyCustomerForPaymentParam = {
|
|
|
436
447
|
};
|
|
437
448
|
type EdcAggregatorsAndModelListParam = any;
|
|
438
449
|
type EdcDeviceStatsParam = any;
|
|
439
|
-
type GetBrandPaymentGatewayConfigParam = any;
|
|
440
450
|
type GetMerchantPaymentOptionParam = any;
|
|
441
451
|
type GetPGConfigAggregatorsParam = any;
|
|
442
452
|
type GetPaymentCodeOptionParam = any;
|
|
@@ -52,7 +52,11 @@ const PaymentPlatformModel = require("./PaymentPlatformModel");
|
|
|
52
52
|
* @property {string} [requestHash]
|
|
53
53
|
*/
|
|
54
54
|
|
|
55
|
-
/**
|
|
55
|
+
/**
|
|
56
|
+
* @typedef GetBrandPaymentGatewayConfigParam
|
|
57
|
+
* @property {string} [aggregator] - Aggregator slug
|
|
58
|
+
* @property {string} [configType]
|
|
59
|
+
*/
|
|
56
60
|
|
|
57
61
|
/**
|
|
58
62
|
* @typedef GetEdcDeviceParam
|
|
@@ -286,7 +290,10 @@ class PaymentPlatformApplicationValidator {
|
|
|
286
290
|
|
|
287
291
|
/** @returns {GetBrandPaymentGatewayConfigParam} */
|
|
288
292
|
static getBrandPaymentGatewayConfig() {
|
|
289
|
-
return Joi.object({
|
|
293
|
+
return Joi.object({
|
|
294
|
+
aggregator: Joi.string().allow(""),
|
|
295
|
+
configType: Joi.string().allow(""),
|
|
296
|
+
}).required();
|
|
290
297
|
}
|
|
291
298
|
|
|
292
299
|
/** @returns {GetEdcDeviceParam} */
|
|
@@ -44,6 +44,12 @@ export = PaymentPlatformModel;
|
|
|
44
44
|
* @property {number} status_code - HTTP status code
|
|
45
45
|
* @property {boolean} success - Successful or failure
|
|
46
46
|
*/
|
|
47
|
+
/**
|
|
48
|
+
* @typedef CODChargesLimitsResponse
|
|
49
|
+
* @property {number} [cod_charge] - Cod charges to be applied on order.
|
|
50
|
+
* @property {number} [max_cart_value] - Max allowed cart value for cod order.
|
|
51
|
+
* @property {number} [min_cart_value] - Min allowed cart value for cod order.
|
|
52
|
+
*/
|
|
47
53
|
/**
|
|
48
54
|
* @typedef CODdata
|
|
49
55
|
* @property {boolean} is_active - COD option is active or not
|
|
@@ -444,6 +450,7 @@ export = PaymentPlatformModel;
|
|
|
444
450
|
* @property {string} [card_reference] - Card_reference
|
|
445
451
|
* @property {string} [card_token] - Card_token
|
|
446
452
|
* @property {string} [card_type] - Card_type
|
|
453
|
+
* @property {number} [cod_charges] - Cod charges to be applied on order.
|
|
447
454
|
* @property {number} [cod_limit] - Cod limit
|
|
448
455
|
* @property {number} [cod_limit_per_order] - Cod limit per order
|
|
449
456
|
* @property {string} [code] - Code
|
|
@@ -464,6 +471,7 @@ export = PaymentPlatformModel;
|
|
|
464
471
|
* @property {string} [merchant_code] - Merchant code
|
|
465
472
|
* @property {string} [name] - Name
|
|
466
473
|
* @property {string} [nickname] - Nickname
|
|
474
|
+
* @property {Object} [product_cod_data] - Product cod configurations.
|
|
467
475
|
* @property {number} [remaining_limit] - Remaining limit
|
|
468
476
|
* @property {number} [retry_count] - Retry_count
|
|
469
477
|
* @property {number} [timeout] - Timeout
|
|
@@ -690,6 +698,11 @@ export = PaymentPlatformModel;
|
|
|
690
698
|
* @property {number} [status_code] - HTTP status code
|
|
691
699
|
* @property {boolean} [success] - Successful or failure
|
|
692
700
|
*/
|
|
701
|
+
/**
|
|
702
|
+
* @typedef ProductCODData
|
|
703
|
+
* @property {Object} [cod_charges] - Cod charges and its allowed limits.
|
|
704
|
+
* @property {Object} [items] - Item id with its cod availability.
|
|
705
|
+
*/
|
|
693
706
|
/**
|
|
694
707
|
* @typedef RefundAccountResponse
|
|
695
708
|
* @property {Object} [data] - Refund account data.
|
|
@@ -865,7 +878,7 @@ export = PaymentPlatformModel;
|
|
|
865
878
|
declare class PaymentPlatformModel {
|
|
866
879
|
}
|
|
867
880
|
declare namespace PaymentPlatformModel {
|
|
868
|
-
export { AddBeneficiaryDetailsOTPRequest, AddressDetail, BankDetailsForOTP, CancelOrResendPaymentLinkRequest, CancelPaymentLinkResponse, 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, RefundAccountResponse, RefundSessionDetail, RefundSessionRequestSerializer, RefundSessionResponseSerializer, RepaymentDetailsSerialiserPayAll, RepaymentRequestDetails, RepaymentResponse, ResendOrCancelPaymentRequest, ResendOrCancelPaymentResponse, ResendPaymentLinkResponse, RevokeOAuthToken, RootPaymentMode, SaveSubscriptionSetupIntentRequest, SaveSubscriptionSetupIntentResponse, SetCODForUserRequest, SetCODOptionResponse, StatisticsData, SubscriptionConfigResponse, SubscriptionPaymentMethodResponse, UpdatePayoutRequest, UpdatePayoutResponse, ValidateCustomerRequest, ValidateCustomerResponse };
|
|
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 };
|
|
869
882
|
}
|
|
870
883
|
/** @returns {AddBeneficiaryDetailsOTPRequest} */
|
|
871
884
|
declare function AddBeneficiaryDetailsOTPRequest(): AddBeneficiaryDetailsOTPRequest;
|
|
@@ -986,6 +999,22 @@ type CancelPaymentLinkResponse = {
|
|
|
986
999
|
*/
|
|
987
1000
|
success: boolean;
|
|
988
1001
|
};
|
|
1002
|
+
/** @returns {CODChargesLimitsResponse} */
|
|
1003
|
+
declare function CODChargesLimitsResponse(): CODChargesLimitsResponse;
|
|
1004
|
+
type CODChargesLimitsResponse = {
|
|
1005
|
+
/**
|
|
1006
|
+
* - Cod charges to be applied on order.
|
|
1007
|
+
*/
|
|
1008
|
+
cod_charge?: number;
|
|
1009
|
+
/**
|
|
1010
|
+
* - Max allowed cart value for cod order.
|
|
1011
|
+
*/
|
|
1012
|
+
max_cart_value?: number;
|
|
1013
|
+
/**
|
|
1014
|
+
* - Min allowed cart value for cod order.
|
|
1015
|
+
*/
|
|
1016
|
+
min_cart_value?: number;
|
|
1017
|
+
};
|
|
989
1018
|
/** @returns {CODdata} */
|
|
990
1019
|
declare function CODdata(): CODdata;
|
|
991
1020
|
type CODdata = {
|
|
@@ -2077,6 +2106,10 @@ type PaymentModeList = {
|
|
|
2077
2106
|
* - Card_type
|
|
2078
2107
|
*/
|
|
2079
2108
|
card_type?: string;
|
|
2109
|
+
/**
|
|
2110
|
+
* - Cod charges to be applied on order.
|
|
2111
|
+
*/
|
|
2112
|
+
cod_charges?: number;
|
|
2080
2113
|
/**
|
|
2081
2114
|
* - Cod limit
|
|
2082
2115
|
*/
|
|
@@ -2151,6 +2184,10 @@ type PaymentModeList = {
|
|
|
2151
2184
|
* - Nickname
|
|
2152
2185
|
*/
|
|
2153
2186
|
nickname?: string;
|
|
2187
|
+
/**
|
|
2188
|
+
* - Product cod configurations.
|
|
2189
|
+
*/
|
|
2190
|
+
product_cod_data?: any;
|
|
2154
2191
|
/**
|
|
2155
2192
|
* - Remaining limit
|
|
2156
2193
|
*/
|
|
@@ -2725,6 +2762,18 @@ type PollingPaymentLinkResponse = {
|
|
|
2725
2762
|
*/
|
|
2726
2763
|
success?: boolean;
|
|
2727
2764
|
};
|
|
2765
|
+
/** @returns {ProductCODData} */
|
|
2766
|
+
declare function ProductCODData(): ProductCODData;
|
|
2767
|
+
type ProductCODData = {
|
|
2768
|
+
/**
|
|
2769
|
+
* - Cod charges and its allowed limits.
|
|
2770
|
+
*/
|
|
2771
|
+
cod_charges?: any;
|
|
2772
|
+
/**
|
|
2773
|
+
* - Item id with its cod availability.
|
|
2774
|
+
*/
|
|
2775
|
+
items?: any;
|
|
2776
|
+
};
|
|
2728
2777
|
/** @returns {RefundAccountResponse} */
|
|
2729
2778
|
declare function RefundAccountResponse(): RefundAccountResponse;
|
|
2730
2779
|
type RefundAccountResponse = {
|
|
@@ -50,6 +50,13 @@ const Joi = require("joi");
|
|
|
50
50
|
* @property {boolean} success - Successful or failure
|
|
51
51
|
*/
|
|
52
52
|
|
|
53
|
+
/**
|
|
54
|
+
* @typedef CODChargesLimitsResponse
|
|
55
|
+
* @property {number} [cod_charge] - Cod charges to be applied on order.
|
|
56
|
+
* @property {number} [max_cart_value] - Max allowed cart value for cod order.
|
|
57
|
+
* @property {number} [min_cart_value] - Min allowed cart value for cod order.
|
|
58
|
+
*/
|
|
59
|
+
|
|
53
60
|
/**
|
|
54
61
|
* @typedef CODdata
|
|
55
62
|
* @property {boolean} is_active - COD option is active or not
|
|
@@ -501,6 +508,7 @@ const Joi = require("joi");
|
|
|
501
508
|
* @property {string} [card_reference] - Card_reference
|
|
502
509
|
* @property {string} [card_token] - Card_token
|
|
503
510
|
* @property {string} [card_type] - Card_type
|
|
511
|
+
* @property {number} [cod_charges] - Cod charges to be applied on order.
|
|
504
512
|
* @property {number} [cod_limit] - Cod limit
|
|
505
513
|
* @property {number} [cod_limit_per_order] - Cod limit per order
|
|
506
514
|
* @property {string} [code] - Code
|
|
@@ -521,6 +529,7 @@ const Joi = require("joi");
|
|
|
521
529
|
* @property {string} [merchant_code] - Merchant code
|
|
522
530
|
* @property {string} [name] - Name
|
|
523
531
|
* @property {string} [nickname] - Nickname
|
|
532
|
+
* @property {Object} [product_cod_data] - Product cod configurations.
|
|
524
533
|
* @property {number} [remaining_limit] - Remaining limit
|
|
525
534
|
* @property {number} [retry_count] - Retry_count
|
|
526
535
|
* @property {number} [timeout] - Timeout
|
|
@@ -769,6 +778,12 @@ const Joi = require("joi");
|
|
|
769
778
|
* @property {boolean} [success] - Successful or failure
|
|
770
779
|
*/
|
|
771
780
|
|
|
781
|
+
/**
|
|
782
|
+
* @typedef ProductCODData
|
|
783
|
+
* @property {Object} [cod_charges] - Cod charges and its allowed limits.
|
|
784
|
+
* @property {Object} [items] - Item id with its cod availability.
|
|
785
|
+
*/
|
|
786
|
+
|
|
772
787
|
/**
|
|
773
788
|
* @typedef RefundAccountResponse
|
|
774
789
|
* @property {Object} [data] - Refund account data.
|
|
@@ -1025,6 +1040,15 @@ class PaymentPlatformModel {
|
|
|
1025
1040
|
});
|
|
1026
1041
|
}
|
|
1027
1042
|
|
|
1043
|
+
/** @returns {CODChargesLimitsResponse} */
|
|
1044
|
+
static CODChargesLimitsResponse() {
|
|
1045
|
+
return Joi.object({
|
|
1046
|
+
cod_charge: Joi.number().allow(null),
|
|
1047
|
+
max_cart_value: Joi.number().allow(null),
|
|
1048
|
+
min_cart_value: Joi.number().allow(null),
|
|
1049
|
+
});
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1028
1052
|
/** @returns {CODdata} */
|
|
1029
1053
|
static CODdata() {
|
|
1030
1054
|
return Joi.object({
|
|
@@ -1575,6 +1599,7 @@ class PaymentPlatformModel {
|
|
|
1575
1599
|
card_reference: Joi.string().allow("").allow(null),
|
|
1576
1600
|
card_token: Joi.string().allow("").allow(null),
|
|
1577
1601
|
card_type: Joi.string().allow("").allow(null),
|
|
1602
|
+
cod_charges: Joi.number().allow(null),
|
|
1578
1603
|
cod_limit: Joi.number().allow(null),
|
|
1579
1604
|
cod_limit_per_order: Joi.number().allow(null),
|
|
1580
1605
|
code: Joi.string().allow("").allow(null),
|
|
@@ -1595,6 +1620,7 @@ class PaymentPlatformModel {
|
|
|
1595
1620
|
merchant_code: Joi.string().allow("").allow(null),
|
|
1596
1621
|
name: Joi.string().allow("").allow(null),
|
|
1597
1622
|
nickname: Joi.string().allow("").allow(null),
|
|
1623
|
+
product_cod_data: Joi.any().allow(null),
|
|
1598
1624
|
remaining_limit: Joi.number().allow(null),
|
|
1599
1625
|
retry_count: Joi.number().allow(null),
|
|
1600
1626
|
timeout: Joi.number().allow(null),
|
|
@@ -1878,6 +1904,14 @@ class PaymentPlatformModel {
|
|
|
1878
1904
|
});
|
|
1879
1905
|
}
|
|
1880
1906
|
|
|
1907
|
+
/** @returns {ProductCODData} */
|
|
1908
|
+
static ProductCODData() {
|
|
1909
|
+
return Joi.object({
|
|
1910
|
+
cod_charges: Joi.any().allow(null),
|
|
1911
|
+
items: Joi.any().allow(null),
|
|
1912
|
+
});
|
|
1913
|
+
}
|
|
1914
|
+
|
|
1881
1915
|
/** @returns {RefundAccountResponse} */
|
|
1882
1916
|
static RefundAccountResponse() {
|
|
1883
1917
|
return Joi.object({
|