@gofynd/fdk-client-javascript 1.3.11-beta.6 → 1.3.11-beta.8
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/Cart/CartApplicationClient.d.ts +1 -1
- package/sdk/application/Cart/CartApplicationClient.js +5 -3
- package/sdk/application/Cart/CartApplicationModel.d.ts +107 -1
- package/sdk/application/Cart/CartApplicationModel.js +74 -0
- package/sdk/application/Cart/CartApplicationValidator.d.ts +4 -0
- package/sdk/application/Cart/CartApplicationValidator.js +4 -0
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +3 -6
- package/sdk/application/Catalog/CatalogApplicationClient.js +7 -20
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2 -2
- package/sdk/application/Catalog/CatalogApplicationModel.js +2 -2
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -14
- package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -6
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +183 -49
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +173 -31
- package/sdk/application/Content/ContentApplicationClient.d.ts +36 -0
- package/sdk/application/Content/ContentApplicationClient.js +246 -0
- package/sdk/application/Content/ContentApplicationModel.d.ts +208 -1
- package/sdk/application/Content/ContentApplicationModel.js +252 -0
- package/sdk/application/Content/ContentApplicationValidator.d.ts +40 -1
- package/sdk/application/Content/ContentApplicationValidator.js +41 -0
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +67 -0
- package/sdk/application/Logistic/LogisticApplicationClient.js +547 -0
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +456 -1
- package/sdk/application/Logistic/LogisticApplicationModel.js +488 -0
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +211 -1
- package/sdk/application/Logistic/LogisticApplicationValidator.js +131 -0
- package/sdk/application/Order/OrderApplicationClient.d.ts +3 -3
- package/sdk/application/Order/OrderApplicationClient.js +32 -8
- package/sdk/application/Order/OrderApplicationModel.d.ts +6 -0
- package/sdk/application/Order/OrderApplicationModel.js +6 -0
- package/sdk/application/Order/OrderApplicationValidator.d.ts +20 -0
- package/sdk/application/Order/OrderApplicationValidator.js +8 -0
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +46 -2
- package/sdk/application/Payment/PaymentApplicationClient.js +341 -10
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +493 -186
- package/sdk/application/Payment/PaymentApplicationModel.js +341 -70
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +59 -14
- package/sdk/application/Payment/PaymentApplicationValidator.js +64 -10
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +34 -1
- package/sdk/application/PosCart/PosCartApplicationModel.js +24 -0
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +1 -1
- package/sdk/application/Theme/ThemeApplicationClient.js +7 -3
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +222 -36
- package/sdk/application/Theme/ThemeApplicationModel.js +322 -26
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +10 -0
- package/sdk/application/Theme/ThemeApplicationValidator.js +4 -0
- package/sdk/application/User/UserApplicationClient.d.ts +33 -0
- package/sdk/application/User/UserApplicationClient.js +239 -0
- package/sdk/application/User/UserApplicationModel.d.ts +28 -13
- package/sdk/application/User/UserApplicationModel.js +36 -12
- package/sdk/application/User/UserApplicationValidator.d.ts +34 -1
- package/sdk/application/User/UserApplicationValidator.js +36 -0
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +125 -0
- package/sdk/partner/Lead/LeadPartnerClient.js +785 -0
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +1127 -0
- package/sdk/partner/Lead/LeadPartnerModel.js +896 -0
- package/sdk/partner/Lead/LeadPartnerValidator.d.ts +12 -0
- package/sdk/partner/Lead/LeadPartnerValidator.js +67 -0
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +155 -0
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +1195 -0
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +372 -0
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +442 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +16 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +123 -0
- package/sdk/partner/PartnerClient.d.ts +6 -0
- package/sdk/partner/PartnerClient.js +9 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -0
- package/sdk/partner/Theme/ThemePartnerClient.js +80 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +100 -43
- package/sdk/partner/Theme/ThemePartnerModel.js +74 -30
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +1 -0
- package/sdk/partner/Theme/ThemePartnerValidator.js +9 -0
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +99 -0
- package/sdk/partner/Webhook/WebhookPartnerClient.js +753 -0
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +566 -0
- package/sdk/partner/Webhook/WebhookPartnerModel.js +583 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +12 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +74 -0
- package/sdk/partner/index.d.ts +3 -0
- package/sdk/partner/index.js +6 -0
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +2 -2
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +11 -1
- package/sdk/platform/Billing/BillingPlatformClient.js +110 -3
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +67 -1
- package/sdk/platform/Billing/BillingPlatformModel.js +78 -0
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +43 -4
- package/sdk/platform/Billing/BillingPlatformValidator.js +29 -2
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +7 -1
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +4 -0
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +4 -0
- package/sdk/platform/Cart/CartPlatformModel.d.ts +100 -5
- package/sdk/platform/Cart/CartPlatformModel.js +71 -4
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +15 -11
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +52 -21
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +27 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +11 -0
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +26 -4
- package/sdk/platform/Catalog/CatalogPlatformClient.js +173 -7
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +304 -1
- package/sdk/platform/Catalog/CatalogPlatformModel.js +335 -0
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +31 -3
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +27 -2
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +138 -36
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +739 -57
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +128 -3
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +111 -1
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +150 -1
- package/sdk/platform/Communication/CommunicationPlatformModel.js +172 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +8 -2
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +32 -4
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +38 -9
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +42 -8
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +14 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +6 -0
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +8 -8
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +4 -4
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +371 -132
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +288 -77
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +2 -2
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +2 -2
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +391 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +3630 -1059
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +342 -1
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +401 -0
- package/sdk/platform/Content/ContentPlatformClient.d.ts +277 -0
- package/sdk/platform/Content/ContentPlatformClient.js +2000 -0
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1094 -1
- package/sdk/platform/Content/ContentPlatformModel.js +1356 -46
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +238 -0
- package/sdk/platform/Content/ContentPlatformValidator.js +310 -0
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformClient.js +2 -2
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +96 -13
- package/sdk/platform/Discount/DiscountPlatformModel.js +104 -12
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +16 -6
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +117 -8
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +55 -4
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +39 -2
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +16 -5
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +18 -4
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +33 -0
- package/sdk/platform/Finance/FinancePlatformClient.js +240 -0
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +151 -5
- package/sdk/platform/Finance/FinancePlatformModel.js +190 -4
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +38 -1
- package/sdk/platform/Finance/FinancePlatformValidator.js +38 -0
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +38 -28
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +137 -56
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +41 -29
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +33 -21
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +12 -3
- package/sdk/platform/Lead/LeadPlatformModel.js +16 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +23 -1
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +178 -1
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +39 -1
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +32 -0
- package/sdk/platform/Order/OrderPlatformClient.d.ts +202 -31
- package/sdk/platform/Order/OrderPlatformClient.js +2010 -586
- package/sdk/platform/Order/OrderPlatformModel.d.ts +1030 -468
- package/sdk/platform/Order/OrderPlatformModel.js +1176 -523
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +318 -35
- package/sdk/platform/Order/OrderPlatformValidator.js +292 -29
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +119 -13
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +749 -39
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +143 -7
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +133 -6
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +1 -1
- package/sdk/platform/Payment/PaymentPlatformClient.js +1 -1
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +996 -134
- package/sdk/platform/Payment/PaymentPlatformModel.js +721 -58
- package/sdk/platform/PlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/PlatformApplicationClient.js +4 -4
- package/sdk/platform/PlatformClient.d.ts +4 -2
- package/sdk/platform/PlatformClient.js +8 -4
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +142 -66
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +645 -147
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +131 -63
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +126 -47
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +217 -105
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +1136 -347
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +912 -313
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1071 -355
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +382 -133
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +266 -102
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +11 -1
- package/sdk/platform/Theme/ThemePlatformClient.js +87 -3
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +333 -47
- package/sdk/platform/Theme/ThemePlatformModel.js +395 -35
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +28 -4
- package/sdk/platform/Theme/ThemePlatformValidator.js +21 -2
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +116 -1
- package/sdk/platform/User/UserPlatformApplicationClient.js +931 -85
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +224 -7
- package/sdk/platform/User/UserPlatformApplicationValidator.js +173 -5
- package/sdk/platform/User/UserPlatformModel.d.ts +344 -7
- package/sdk/platform/User/UserPlatformModel.js +256 -5
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +47 -39
- package/sdk/platform/Webhook/WebhookPlatformClient.js +63 -61
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +264 -156
- package/sdk/platform/Webhook/WebhookPlatformModel.js +276 -153
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +7 -10
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +6 -6
- package/sdk/platform/index.d.ts +1 -1
- package/sdk/platform/index.js +2 -2
- package/sdk/public/Billing/BillingPublicClient.d.ts +23 -0
- package/sdk/public/Billing/BillingPublicClient.js +116 -0
- package/sdk/public/Billing/BillingPublicModel.d.ts +92 -0
- package/sdk/public/Billing/BillingPublicModel.js +96 -0
- package/sdk/public/Billing/BillingPublicValidator.d.ts +18 -0
- package/sdk/public/Billing/BillingPublicValidator.js +19 -0
- package/sdk/public/Content/ContentPublicClient.d.ts +22 -0
- package/sdk/public/Content/ContentPublicClient.js +114 -0
- package/sdk/public/Content/ContentPublicModel.d.ts +53 -0
- package/sdk/public/Content/ContentPublicModel.js +60 -0
- package/sdk/public/Content/ContentPublicValidator.d.ts +18 -0
- package/sdk/public/Content/ContentPublicValidator.js +19 -0
- package/sdk/public/PublicClient.d.ts +4 -0
- package/sdk/public/PublicClient.js +8 -0
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +33 -0
- package/sdk/public/Webhook/WebhookPublicClient.js +242 -0
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +147 -1
- package/sdk/public/Webhook/WebhookPublicModel.js +177 -1
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +23 -1
- package/sdk/public/Webhook/WebhookPublicValidator.js +31 -0
- package/sdk/public/index.d.ts +2 -0
- package/sdk/public/index.js +4 -0
|
@@ -585,6 +585,87 @@ class Payment {
|
|
|
585
585
|
return response;
|
|
586
586
|
}
|
|
587
587
|
|
|
588
|
+
/**
|
|
589
|
+
* @param {PaymentPlatformApplicationValidator.CreatePaymentOrderParam} arg
|
|
590
|
+
* - Arg object
|
|
591
|
+
*
|
|
592
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
593
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
594
|
+
* @returns {Promise<PaymentPlatformModel.PaymentOrderResponse>} - Success response
|
|
595
|
+
* @name createPaymentOrder
|
|
596
|
+
* @summary: Create Order
|
|
597
|
+
* @description: Use this API to create a order and payment on aggregator side - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/createPaymentOrder/).
|
|
598
|
+
*/
|
|
599
|
+
async createPaymentOrder(
|
|
600
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
601
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
602
|
+
) {
|
|
603
|
+
const {
|
|
604
|
+
error,
|
|
605
|
+
} = PaymentPlatformApplicationValidator.createPaymentOrder().validate(
|
|
606
|
+
{
|
|
607
|
+
body,
|
|
608
|
+
},
|
|
609
|
+
{ abortEarly: false, allowUnknown: true }
|
|
610
|
+
);
|
|
611
|
+
if (error) {
|
|
612
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
// Showing warrnings if extra unknown parameters are found
|
|
616
|
+
const {
|
|
617
|
+
error: warrning,
|
|
618
|
+
} = PaymentPlatformApplicationValidator.createPaymentOrder().validate(
|
|
619
|
+
{
|
|
620
|
+
body,
|
|
621
|
+
},
|
|
622
|
+
{ abortEarly: false, allowUnknown: false }
|
|
623
|
+
);
|
|
624
|
+
if (warrning) {
|
|
625
|
+
Logger({
|
|
626
|
+
level: "WARN",
|
|
627
|
+
message: `Parameter Validation warrnings for platform > Payment > createPaymentOrder \n ${warrning}`,
|
|
628
|
+
});
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
const query_params = {};
|
|
632
|
+
|
|
633
|
+
const response = await PlatformAPIClient.execute(
|
|
634
|
+
this.config,
|
|
635
|
+
"post",
|
|
636
|
+
`/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/payment-orders/`,
|
|
637
|
+
query_params,
|
|
638
|
+
body,
|
|
639
|
+
requestHeaders,
|
|
640
|
+
{ responseHeaders }
|
|
641
|
+
);
|
|
642
|
+
|
|
643
|
+
let responseData = response;
|
|
644
|
+
if (responseHeaders) {
|
|
645
|
+
responseData = response[0];
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
const {
|
|
649
|
+
error: res_error,
|
|
650
|
+
} = PaymentPlatformModel.PaymentOrderResponse().validate(responseData, {
|
|
651
|
+
abortEarly: false,
|
|
652
|
+
allowUnknown: true,
|
|
653
|
+
});
|
|
654
|
+
|
|
655
|
+
if (res_error) {
|
|
656
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
657
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
658
|
+
} else {
|
|
659
|
+
Logger({
|
|
660
|
+
level: "WARN",
|
|
661
|
+
message: `Response Validation Warnings for platform > Payment > createPaymentOrder \n ${res_error}`,
|
|
662
|
+
});
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
return response;
|
|
667
|
+
}
|
|
668
|
+
|
|
588
669
|
/**
|
|
589
670
|
* @param {PaymentPlatformApplicationValidator.EdcAggregatorsAndModelListParam} arg
|
|
590
671
|
* - Arg object
|
|
@@ -1086,13 +1167,114 @@ class Payment {
|
|
|
1086
1167
|
return response;
|
|
1087
1168
|
}
|
|
1088
1169
|
|
|
1170
|
+
/**
|
|
1171
|
+
* @param {PaymentPlatformApplicationValidator.GetMerchantAggregatorAppVersionParam} arg
|
|
1172
|
+
* - Arg object
|
|
1173
|
+
*
|
|
1174
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1175
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1176
|
+
* @returns {Promise<PaymentPlatformModel.AggregatorVersionResponse>} -
|
|
1177
|
+
* Success response
|
|
1178
|
+
* @name getMerchantAggregatorAppVersion
|
|
1179
|
+
* @summary: Get app version required for Payment Mode.
|
|
1180
|
+
* @description: This api provide read operations on the app version required for Payment Mode or sub payment mode for an Aggregator. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getMerchantAggregatorAppVersion/).
|
|
1181
|
+
*/
|
|
1182
|
+
async getMerchantAggregatorAppVersion(
|
|
1183
|
+
{
|
|
1184
|
+
aggregatorId,
|
|
1185
|
+
businessUnit,
|
|
1186
|
+
device,
|
|
1187
|
+
paymentModeId,
|
|
1188
|
+
subPaymentMode,
|
|
1189
|
+
requestHeaders,
|
|
1190
|
+
} = { requestHeaders: {} },
|
|
1191
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1192
|
+
) {
|
|
1193
|
+
const {
|
|
1194
|
+
error,
|
|
1195
|
+
} = PaymentPlatformApplicationValidator.getMerchantAggregatorAppVersion().validate(
|
|
1196
|
+
{
|
|
1197
|
+
aggregatorId,
|
|
1198
|
+
businessUnit,
|
|
1199
|
+
device,
|
|
1200
|
+
paymentModeId,
|
|
1201
|
+
subPaymentMode,
|
|
1202
|
+
},
|
|
1203
|
+
{ abortEarly: false, allowUnknown: true }
|
|
1204
|
+
);
|
|
1205
|
+
if (error) {
|
|
1206
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1209
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1210
|
+
const {
|
|
1211
|
+
error: warrning,
|
|
1212
|
+
} = PaymentPlatformApplicationValidator.getMerchantAggregatorAppVersion().validate(
|
|
1213
|
+
{
|
|
1214
|
+
aggregatorId,
|
|
1215
|
+
businessUnit,
|
|
1216
|
+
device,
|
|
1217
|
+
paymentModeId,
|
|
1218
|
+
subPaymentMode,
|
|
1219
|
+
},
|
|
1220
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1221
|
+
);
|
|
1222
|
+
if (warrning) {
|
|
1223
|
+
Logger({
|
|
1224
|
+
level: "WARN",
|
|
1225
|
+
message: `Parameter Validation warrnings for platform > Payment > getMerchantAggregatorAppVersion \n ${warrning}`,
|
|
1226
|
+
});
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
const query_params = {};
|
|
1230
|
+
query_params["business_unit"] = businessUnit;
|
|
1231
|
+
query_params["device"] = device;
|
|
1232
|
+
query_params["payment_mode_id"] = paymentModeId;
|
|
1233
|
+
query_params["sub_payment_mode"] = subPaymentMode;
|
|
1234
|
+
|
|
1235
|
+
const response = await PlatformAPIClient.execute(
|
|
1236
|
+
this.config,
|
|
1237
|
+
"get",
|
|
1238
|
+
`/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/payment/options/aggregators/${aggregatorId}/version`,
|
|
1239
|
+
query_params,
|
|
1240
|
+
undefined,
|
|
1241
|
+
requestHeaders,
|
|
1242
|
+
{ responseHeaders }
|
|
1243
|
+
);
|
|
1244
|
+
|
|
1245
|
+
let responseData = response;
|
|
1246
|
+
if (responseHeaders) {
|
|
1247
|
+
responseData = response[0];
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1250
|
+
const {
|
|
1251
|
+
error: res_error,
|
|
1252
|
+
} = PaymentPlatformModel.AggregatorVersionResponse().validate(
|
|
1253
|
+
responseData,
|
|
1254
|
+
{ abortEarly: false, allowUnknown: true }
|
|
1255
|
+
);
|
|
1256
|
+
|
|
1257
|
+
if (res_error) {
|
|
1258
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1259
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1260
|
+
} else {
|
|
1261
|
+
Logger({
|
|
1262
|
+
level: "WARN",
|
|
1263
|
+
message: `Response Validation Warnings for platform > Payment > getMerchantAggregatorAppVersion \n ${res_error}`,
|
|
1264
|
+
});
|
|
1265
|
+
}
|
|
1266
|
+
}
|
|
1267
|
+
|
|
1268
|
+
return response;
|
|
1269
|
+
}
|
|
1270
|
+
|
|
1089
1271
|
/**
|
|
1090
1272
|
* @param {PaymentPlatformApplicationValidator.GetMerchantAggregatorPaymentModeDetailsParam} arg
|
|
1091
1273
|
* - Arg object
|
|
1092
1274
|
*
|
|
1093
1275
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1094
1276
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1095
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
1277
|
+
* @returns {Promise<PaymentPlatformModel.PlatformPaymentModeResponse>} -
|
|
1096
1278
|
* Success response
|
|
1097
1279
|
* @name getMerchantAggregatorPaymentModeDetails
|
|
1098
1280
|
* @summary: Get Aggregator, payment mode and sub payment mode.
|
|
@@ -1157,7 +1339,7 @@ class Payment {
|
|
|
1157
1339
|
|
|
1158
1340
|
const {
|
|
1159
1341
|
error: res_error,
|
|
1160
|
-
} = PaymentPlatformModel.
|
|
1342
|
+
} = PaymentPlatformModel.PlatformPaymentModeResponse().validate(
|
|
1161
1343
|
responseData,
|
|
1162
1344
|
{ abortEarly: false, allowUnknown: true }
|
|
1163
1345
|
);
|
|
@@ -1182,7 +1364,7 @@ class Payment {
|
|
|
1182
1364
|
*
|
|
1183
1365
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1184
1366
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1185
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
1367
|
+
* @returns {Promise<PaymentPlatformModel.PlatformPaymentModeResponse>} -
|
|
1186
1368
|
* Success response
|
|
1187
1369
|
* @name getMerchantPaymentOption
|
|
1188
1370
|
* @summary: Get Payment modes and COD details.
|
|
@@ -1235,7 +1417,7 @@ class Payment {
|
|
|
1235
1417
|
|
|
1236
1418
|
const {
|
|
1237
1419
|
error: res_error,
|
|
1238
|
-
} = PaymentPlatformModel.
|
|
1420
|
+
} = PaymentPlatformModel.PlatformPaymentModeResponse().validate(
|
|
1239
1421
|
responseData,
|
|
1240
1422
|
{ abortEarly: false, allowUnknown: true }
|
|
1241
1423
|
);
|
|
@@ -1343,7 +1525,7 @@ class Payment {
|
|
|
1343
1525
|
*
|
|
1344
1526
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1345
1527
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1346
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
1528
|
+
* @returns {Promise<PaymentPlatformModel.PlatformPaymentModeResponse>} -
|
|
1347
1529
|
* Success response
|
|
1348
1530
|
* @name getPGConfigAggregators
|
|
1349
1531
|
* @summary: Get Aggregators available to be added as PG.
|
|
@@ -1396,7 +1578,7 @@ class Payment {
|
|
|
1396
1578
|
|
|
1397
1579
|
const {
|
|
1398
1580
|
error: res_error,
|
|
1399
|
-
} = PaymentPlatformModel.
|
|
1581
|
+
} = PaymentPlatformModel.PlatformPaymentModeResponse().validate(
|
|
1400
1582
|
responseData,
|
|
1401
1583
|
{ abortEarly: false, allowUnknown: true }
|
|
1402
1584
|
);
|
|
@@ -1553,7 +1735,265 @@ class Payment {
|
|
|
1553
1735
|
|
|
1554
1736
|
const {
|
|
1555
1737
|
error: res_error,
|
|
1556
|
-
} = PaymentPlatformModel.GetPaymentLinkResponse().validate(responseData, {
|
|
1738
|
+
} = PaymentPlatformModel.GetPaymentLinkResponse().validate(responseData, {
|
|
1739
|
+
abortEarly: false,
|
|
1740
|
+
allowUnknown: true,
|
|
1741
|
+
});
|
|
1742
|
+
|
|
1743
|
+
if (res_error) {
|
|
1744
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1745
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1746
|
+
} else {
|
|
1747
|
+
Logger({
|
|
1748
|
+
level: "WARN",
|
|
1749
|
+
message: `Response Validation Warnings for platform > Payment > getPaymentLink \n ${res_error}`,
|
|
1750
|
+
});
|
|
1751
|
+
}
|
|
1752
|
+
}
|
|
1753
|
+
|
|
1754
|
+
return response;
|
|
1755
|
+
}
|
|
1756
|
+
|
|
1757
|
+
/**
|
|
1758
|
+
* @param {PaymentPlatformApplicationValidator.GetPaymentModeControlRoutesParam} arg
|
|
1759
|
+
* - Arg object
|
|
1760
|
+
*
|
|
1761
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1762
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1763
|
+
* @returns {Promise<PaymentPlatformModel.PlatformPaymentModeResponse>} -
|
|
1764
|
+
* Success response
|
|
1765
|
+
* @name getPaymentModeControlRoutes
|
|
1766
|
+
* @summary: Get details for the given offline / advance payment mode for merchant
|
|
1767
|
+
* @description: Use this API to get details for the given offline / advance payment mode for merchant - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getPaymentModeControlRoutes/).
|
|
1768
|
+
*/
|
|
1769
|
+
async getPaymentModeControlRoutes(
|
|
1770
|
+
{ mode, requestHeaders } = { requestHeaders: {} },
|
|
1771
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1772
|
+
) {
|
|
1773
|
+
const {
|
|
1774
|
+
error,
|
|
1775
|
+
} = PaymentPlatformApplicationValidator.getPaymentModeControlRoutes().validate(
|
|
1776
|
+
{
|
|
1777
|
+
mode,
|
|
1778
|
+
},
|
|
1779
|
+
{ abortEarly: false, allowUnknown: true }
|
|
1780
|
+
);
|
|
1781
|
+
if (error) {
|
|
1782
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
1783
|
+
}
|
|
1784
|
+
|
|
1785
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1786
|
+
const {
|
|
1787
|
+
error: warrning,
|
|
1788
|
+
} = PaymentPlatformApplicationValidator.getPaymentModeControlRoutes().validate(
|
|
1789
|
+
{
|
|
1790
|
+
mode,
|
|
1791
|
+
},
|
|
1792
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1793
|
+
);
|
|
1794
|
+
if (warrning) {
|
|
1795
|
+
Logger({
|
|
1796
|
+
level: "WARN",
|
|
1797
|
+
message: `Parameter Validation warrnings for platform > Payment > getPaymentModeControlRoutes \n ${warrning}`,
|
|
1798
|
+
});
|
|
1799
|
+
}
|
|
1800
|
+
|
|
1801
|
+
const query_params = {};
|
|
1802
|
+
|
|
1803
|
+
const response = await PlatformAPIClient.execute(
|
|
1804
|
+
this.config,
|
|
1805
|
+
"get",
|
|
1806
|
+
`/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/payment/options/modes/${mode}`,
|
|
1807
|
+
query_params,
|
|
1808
|
+
undefined,
|
|
1809
|
+
requestHeaders,
|
|
1810
|
+
{ responseHeaders }
|
|
1811
|
+
);
|
|
1812
|
+
|
|
1813
|
+
let responseData = response;
|
|
1814
|
+
if (responseHeaders) {
|
|
1815
|
+
responseData = response[0];
|
|
1816
|
+
}
|
|
1817
|
+
|
|
1818
|
+
const {
|
|
1819
|
+
error: res_error,
|
|
1820
|
+
} = PaymentPlatformModel.PlatformPaymentModeResponse().validate(
|
|
1821
|
+
responseData,
|
|
1822
|
+
{ abortEarly: false, allowUnknown: true }
|
|
1823
|
+
);
|
|
1824
|
+
|
|
1825
|
+
if (res_error) {
|
|
1826
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1827
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1828
|
+
} else {
|
|
1829
|
+
Logger({
|
|
1830
|
+
level: "WARN",
|
|
1831
|
+
message: `Response Validation Warnings for platform > Payment > getPaymentModeControlRoutes \n ${res_error}`,
|
|
1832
|
+
});
|
|
1833
|
+
}
|
|
1834
|
+
}
|
|
1835
|
+
|
|
1836
|
+
return response;
|
|
1837
|
+
}
|
|
1838
|
+
|
|
1839
|
+
/**
|
|
1840
|
+
* @param {PaymentPlatformApplicationValidator.GetPaymentModeCustomConfigParam} arg
|
|
1841
|
+
* - Arg object
|
|
1842
|
+
*
|
|
1843
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1844
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1845
|
+
* @returns {Promise<PaymentPlatformModel.PaymentCustomConfigResponseSchema>}
|
|
1846
|
+
* - Success response
|
|
1847
|
+
*
|
|
1848
|
+
* @name getPaymentModeCustomConfig
|
|
1849
|
+
* @summary: Get details of advance payment custom configurations of merchant
|
|
1850
|
+
* @description: Use this API to Get details of advance payment custom configurations of merchant - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getPaymentModeCustomConfig/).
|
|
1851
|
+
*/
|
|
1852
|
+
async getPaymentModeCustomConfig(
|
|
1853
|
+
{ mode, requestHeaders } = { requestHeaders: {} },
|
|
1854
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1855
|
+
) {
|
|
1856
|
+
const {
|
|
1857
|
+
error,
|
|
1858
|
+
} = PaymentPlatformApplicationValidator.getPaymentModeCustomConfig().validate(
|
|
1859
|
+
{
|
|
1860
|
+
mode,
|
|
1861
|
+
},
|
|
1862
|
+
{ abortEarly: false, allowUnknown: true }
|
|
1863
|
+
);
|
|
1864
|
+
if (error) {
|
|
1865
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
1866
|
+
}
|
|
1867
|
+
|
|
1868
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1869
|
+
const {
|
|
1870
|
+
error: warrning,
|
|
1871
|
+
} = PaymentPlatformApplicationValidator.getPaymentModeCustomConfig().validate(
|
|
1872
|
+
{
|
|
1873
|
+
mode,
|
|
1874
|
+
},
|
|
1875
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1876
|
+
);
|
|
1877
|
+
if (warrning) {
|
|
1878
|
+
Logger({
|
|
1879
|
+
level: "WARN",
|
|
1880
|
+
message: `Parameter Validation warrnings for platform > Payment > getPaymentModeCustomConfig \n ${warrning}`,
|
|
1881
|
+
});
|
|
1882
|
+
}
|
|
1883
|
+
|
|
1884
|
+
const query_params = {};
|
|
1885
|
+
|
|
1886
|
+
const response = await PlatformAPIClient.execute(
|
|
1887
|
+
this.config,
|
|
1888
|
+
"get",
|
|
1889
|
+
`/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/payment/options/modes/${mode}/custom-config`,
|
|
1890
|
+
query_params,
|
|
1891
|
+
undefined,
|
|
1892
|
+
requestHeaders,
|
|
1893
|
+
{ responseHeaders }
|
|
1894
|
+
);
|
|
1895
|
+
|
|
1896
|
+
let responseData = response;
|
|
1897
|
+
if (responseHeaders) {
|
|
1898
|
+
responseData = response[0];
|
|
1899
|
+
}
|
|
1900
|
+
|
|
1901
|
+
const {
|
|
1902
|
+
error: res_error,
|
|
1903
|
+
} = PaymentPlatformModel.PaymentCustomConfigResponseSchema().validate(
|
|
1904
|
+
responseData,
|
|
1905
|
+
{ abortEarly: false, allowUnknown: true }
|
|
1906
|
+
);
|
|
1907
|
+
|
|
1908
|
+
if (res_error) {
|
|
1909
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1910
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1911
|
+
} else {
|
|
1912
|
+
Logger({
|
|
1913
|
+
level: "WARN",
|
|
1914
|
+
message: `Response Validation Warnings for platform > Payment > getPaymentModeCustomConfig \n ${res_error}`,
|
|
1915
|
+
});
|
|
1916
|
+
}
|
|
1917
|
+
}
|
|
1918
|
+
|
|
1919
|
+
return response;
|
|
1920
|
+
}
|
|
1921
|
+
|
|
1922
|
+
/**
|
|
1923
|
+
* @param {PaymentPlatformApplicationValidator.GetPaymentModeRoutesParam} arg
|
|
1924
|
+
* - Arg object
|
|
1925
|
+
*
|
|
1926
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1927
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1928
|
+
* @returns {Promise<PaymentPlatformModel.PaymentOptionsResponse>} - Success response
|
|
1929
|
+
* @name getPaymentModeRoutes
|
|
1930
|
+
* @summary: Get All Valid Payment Options
|
|
1931
|
+
* @description: Use this API to get Get All Valid Payment Options for making payment - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getPaymentModeRoutes/).
|
|
1932
|
+
*/
|
|
1933
|
+
async getPaymentModeRoutes(
|
|
1934
|
+
{ refresh, requestType, orderId, shipmentId, requestHeaders } = {
|
|
1935
|
+
requestHeaders: {},
|
|
1936
|
+
},
|
|
1937
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1938
|
+
) {
|
|
1939
|
+
const {
|
|
1940
|
+
error,
|
|
1941
|
+
} = PaymentPlatformApplicationValidator.getPaymentModeRoutes().validate(
|
|
1942
|
+
{
|
|
1943
|
+
refresh,
|
|
1944
|
+
requestType,
|
|
1945
|
+
orderId,
|
|
1946
|
+
shipmentId,
|
|
1947
|
+
},
|
|
1948
|
+
{ abortEarly: false, allowUnknown: true }
|
|
1949
|
+
);
|
|
1950
|
+
if (error) {
|
|
1951
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
1952
|
+
}
|
|
1953
|
+
|
|
1954
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1955
|
+
const {
|
|
1956
|
+
error: warrning,
|
|
1957
|
+
} = PaymentPlatformApplicationValidator.getPaymentModeRoutes().validate(
|
|
1958
|
+
{
|
|
1959
|
+
refresh,
|
|
1960
|
+
requestType,
|
|
1961
|
+
orderId,
|
|
1962
|
+
shipmentId,
|
|
1963
|
+
},
|
|
1964
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1965
|
+
);
|
|
1966
|
+
if (warrning) {
|
|
1967
|
+
Logger({
|
|
1968
|
+
level: "WARN",
|
|
1969
|
+
message: `Parameter Validation warrnings for platform > Payment > getPaymentModeRoutes \n ${warrning}`,
|
|
1970
|
+
});
|
|
1971
|
+
}
|
|
1972
|
+
|
|
1973
|
+
const query_params = {};
|
|
1974
|
+
query_params["refresh"] = refresh;
|
|
1975
|
+
query_params["request_type"] = requestType;
|
|
1976
|
+
query_params["order_id"] = orderId;
|
|
1977
|
+
query_params["shipment_id"] = shipmentId;
|
|
1978
|
+
|
|
1979
|
+
const response = await PlatformAPIClient.execute(
|
|
1980
|
+
this.config,
|
|
1981
|
+
"get",
|
|
1982
|
+
`/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/payment/options`,
|
|
1983
|
+
query_params,
|
|
1984
|
+
undefined,
|
|
1985
|
+
requestHeaders,
|
|
1986
|
+
{ responseHeaders }
|
|
1987
|
+
);
|
|
1988
|
+
|
|
1989
|
+
let responseData = response;
|
|
1990
|
+
if (responseHeaders) {
|
|
1991
|
+
responseData = response[0];
|
|
1992
|
+
}
|
|
1993
|
+
|
|
1994
|
+
const {
|
|
1995
|
+
error: res_error,
|
|
1996
|
+
} = PaymentPlatformModel.PaymentOptionsResponse().validate(responseData, {
|
|
1557
1997
|
abortEarly: false,
|
|
1558
1998
|
allowUnknown: true,
|
|
1559
1999
|
});
|
|
@@ -1564,7 +2004,7 @@ class Payment {
|
|
|
1564
2004
|
} else {
|
|
1565
2005
|
Logger({
|
|
1566
2006
|
level: "WARN",
|
|
1567
|
-
message: `Response Validation Warnings for platform > Payment >
|
|
2007
|
+
message: `Response Validation Warnings for platform > Payment > getPaymentModeRoutes \n ${res_error}`,
|
|
1568
2008
|
});
|
|
1569
2009
|
}
|
|
1570
2010
|
}
|
|
@@ -1573,26 +2013,27 @@ class Payment {
|
|
|
1573
2013
|
}
|
|
1574
2014
|
|
|
1575
2015
|
/**
|
|
1576
|
-
* @param {PaymentPlatformApplicationValidator.
|
|
2016
|
+
* @param {PaymentPlatformApplicationValidator.GetPaymentSessionParam} arg
|
|
1577
2017
|
* - Arg object
|
|
1578
2018
|
*
|
|
1579
2019
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1580
2020
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1581
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
1582
|
-
*
|
|
1583
|
-
* @
|
|
1584
|
-
* @
|
|
2021
|
+
* @returns {Promise<PaymentPlatformModel.PaymentSessionSerializer>} -
|
|
2022
|
+
* Success response
|
|
2023
|
+
* @name getPaymentSession
|
|
2024
|
+
* @summary: API to get payment session details
|
|
2025
|
+
* @description: Use this API to fetch the payment session details for given order ID or Transaction ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getPaymentSession/).
|
|
1585
2026
|
*/
|
|
1586
|
-
async
|
|
1587
|
-
{
|
|
2027
|
+
async getPaymentSession(
|
|
2028
|
+
{ gid, lineItem, requestHeaders } = { requestHeaders: {} },
|
|
1588
2029
|
{ responseHeaders } = { responseHeaders: false }
|
|
1589
2030
|
) {
|
|
1590
2031
|
const {
|
|
1591
2032
|
error,
|
|
1592
|
-
} = PaymentPlatformApplicationValidator.
|
|
2033
|
+
} = PaymentPlatformApplicationValidator.getPaymentSession().validate(
|
|
1593
2034
|
{
|
|
1594
|
-
|
|
1595
|
-
|
|
2035
|
+
gid,
|
|
2036
|
+
lineItem,
|
|
1596
2037
|
},
|
|
1597
2038
|
{ abortEarly: false, allowUnknown: true }
|
|
1598
2039
|
);
|
|
@@ -1603,28 +2044,27 @@ class Payment {
|
|
|
1603
2044
|
// Showing warrnings if extra unknown parameters are found
|
|
1604
2045
|
const {
|
|
1605
2046
|
error: warrning,
|
|
1606
|
-
} = PaymentPlatformApplicationValidator.
|
|
2047
|
+
} = PaymentPlatformApplicationValidator.getPaymentSession().validate(
|
|
1607
2048
|
{
|
|
1608
|
-
|
|
1609
|
-
|
|
2049
|
+
gid,
|
|
2050
|
+
lineItem,
|
|
1610
2051
|
},
|
|
1611
2052
|
{ abortEarly: false, allowUnknown: false }
|
|
1612
2053
|
);
|
|
1613
2054
|
if (warrning) {
|
|
1614
2055
|
Logger({
|
|
1615
2056
|
level: "WARN",
|
|
1616
|
-
message: `Parameter Validation warrnings for platform > Payment >
|
|
2057
|
+
message: `Parameter Validation warrnings for platform > Payment > getPaymentSession \n ${warrning}`,
|
|
1617
2058
|
});
|
|
1618
2059
|
}
|
|
1619
2060
|
|
|
1620
2061
|
const query_params = {};
|
|
1621
|
-
query_params["
|
|
1622
|
-
query_params["request_type"] = requestType;
|
|
2062
|
+
query_params["line-item"] = lineItem;
|
|
1623
2063
|
|
|
1624
2064
|
const response = await PlatformAPIClient.execute(
|
|
1625
2065
|
this.config,
|
|
1626
2066
|
"get",
|
|
1627
|
-
`/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/payment/
|
|
2067
|
+
`/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/payment/session/${gid}`,
|
|
1628
2068
|
query_params,
|
|
1629
2069
|
undefined,
|
|
1630
2070
|
requestHeaders,
|
|
@@ -1638,7 +2078,7 @@ class Payment {
|
|
|
1638
2078
|
|
|
1639
2079
|
const {
|
|
1640
2080
|
error: res_error,
|
|
1641
|
-
} = PaymentPlatformModel.
|
|
2081
|
+
} = PaymentPlatformModel.PaymentSessionSerializer().validate(responseData, {
|
|
1642
2082
|
abortEarly: false,
|
|
1643
2083
|
allowUnknown: true,
|
|
1644
2084
|
});
|
|
@@ -1649,7 +2089,7 @@ class Payment {
|
|
|
1649
2089
|
} else {
|
|
1650
2090
|
Logger({
|
|
1651
2091
|
level: "WARN",
|
|
1652
|
-
message: `Response Validation Warnings for platform > Payment >
|
|
2092
|
+
message: `Response Validation Warnings for platform > Payment > getPaymentSession \n ${res_error}`,
|
|
1653
2093
|
});
|
|
1654
2094
|
}
|
|
1655
2095
|
}
|
|
@@ -1663,7 +2103,8 @@ class Payment {
|
|
|
1663
2103
|
*
|
|
1664
2104
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1665
2105
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1666
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
2106
|
+
* @returns {Promise<PaymentPlatformModel.PaymentModeRouteResponse>} -
|
|
2107
|
+
* Success response
|
|
1667
2108
|
* @name getPosPaymentModeRoutes
|
|
1668
2109
|
* @summary: Get All Valid Payment Options
|
|
1669
2110
|
* @description: Use this API to get Get All Valid Payment Options for making payment - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getPosPaymentModeRoutes/).
|
|
@@ -1671,13 +2112,17 @@ class Payment {
|
|
|
1671
2112
|
async getPosPaymentModeRoutes(
|
|
1672
2113
|
{
|
|
1673
2114
|
amount,
|
|
1674
|
-
cartId,
|
|
1675
2115
|
pincode,
|
|
1676
|
-
checkoutMode,
|
|
1677
2116
|
orderType,
|
|
2117
|
+
cartId,
|
|
2118
|
+
checkoutMode,
|
|
1678
2119
|
refresh,
|
|
2120
|
+
orderId,
|
|
1679
2121
|
cardReference,
|
|
1680
2122
|
userDetails,
|
|
2123
|
+
displaySplit,
|
|
2124
|
+
advancePayment,
|
|
2125
|
+
shipmentId,
|
|
1681
2126
|
requestHeaders,
|
|
1682
2127
|
} = { requestHeaders: {} },
|
|
1683
2128
|
{ responseHeaders } = { responseHeaders: false }
|
|
@@ -1687,13 +2132,17 @@ class Payment {
|
|
|
1687
2132
|
} = PaymentPlatformApplicationValidator.getPosPaymentModeRoutes().validate(
|
|
1688
2133
|
{
|
|
1689
2134
|
amount,
|
|
1690
|
-
cartId,
|
|
1691
2135
|
pincode,
|
|
1692
|
-
checkoutMode,
|
|
1693
2136
|
orderType,
|
|
2137
|
+
cartId,
|
|
2138
|
+
checkoutMode,
|
|
1694
2139
|
refresh,
|
|
2140
|
+
orderId,
|
|
1695
2141
|
cardReference,
|
|
1696
2142
|
userDetails,
|
|
2143
|
+
displaySplit,
|
|
2144
|
+
advancePayment,
|
|
2145
|
+
shipmentId,
|
|
1697
2146
|
},
|
|
1698
2147
|
{ abortEarly: false, allowUnknown: true }
|
|
1699
2148
|
);
|
|
@@ -1707,13 +2156,17 @@ class Payment {
|
|
|
1707
2156
|
} = PaymentPlatformApplicationValidator.getPosPaymentModeRoutes().validate(
|
|
1708
2157
|
{
|
|
1709
2158
|
amount,
|
|
1710
|
-
cartId,
|
|
1711
2159
|
pincode,
|
|
1712
|
-
checkoutMode,
|
|
1713
2160
|
orderType,
|
|
2161
|
+
cartId,
|
|
2162
|
+
checkoutMode,
|
|
1714
2163
|
refresh,
|
|
2164
|
+
orderId,
|
|
1715
2165
|
cardReference,
|
|
1716
2166
|
userDetails,
|
|
2167
|
+
displaySplit,
|
|
2168
|
+
advancePayment,
|
|
2169
|
+
shipmentId,
|
|
1717
2170
|
},
|
|
1718
2171
|
{ abortEarly: false, allowUnknown: false }
|
|
1719
2172
|
);
|
|
@@ -1730,9 +2183,13 @@ class Payment {
|
|
|
1730
2183
|
query_params["pincode"] = pincode;
|
|
1731
2184
|
query_params["checkout_mode"] = checkoutMode;
|
|
1732
2185
|
query_params["refresh"] = refresh;
|
|
2186
|
+
query_params["order_id"] = orderId;
|
|
1733
2187
|
query_params["card_reference"] = cardReference;
|
|
1734
2188
|
query_params["order_type"] = orderType;
|
|
1735
2189
|
query_params["user_details"] = userDetails;
|
|
2190
|
+
query_params["display_split"] = displaySplit;
|
|
2191
|
+
query_params["advance_payment"] = advancePayment;
|
|
2192
|
+
query_params["shipment_id"] = shipmentId;
|
|
1736
2193
|
|
|
1737
2194
|
const response = await PlatformAPIClient.execute(
|
|
1738
2195
|
this.config,
|
|
@@ -1751,7 +2208,7 @@ class Payment {
|
|
|
1751
2208
|
|
|
1752
2209
|
const {
|
|
1753
2210
|
error: res_error,
|
|
1754
|
-
} = PaymentPlatformModel.
|
|
2211
|
+
} = PaymentPlatformModel.PaymentModeRouteResponse().validate(responseData, {
|
|
1755
2212
|
abortEarly: false,
|
|
1756
2213
|
allowUnknown: true,
|
|
1757
2214
|
});
|
|
@@ -2270,7 +2727,7 @@ class Payment {
|
|
|
2270
2727
|
*
|
|
2271
2728
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2272
2729
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2273
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
2730
|
+
* @returns {Promise<PaymentPlatformModel.PlatformPaymentModeResponse>} -
|
|
2274
2731
|
* Success response
|
|
2275
2732
|
* @name patchMerchantAggregatorPaymentModeDetails
|
|
2276
2733
|
* @summary: Update Aggregator, payment mode and sub payment mode.
|
|
@@ -2329,7 +2786,7 @@ class Payment {
|
|
|
2329
2786
|
|
|
2330
2787
|
const {
|
|
2331
2788
|
error: res_error,
|
|
2332
|
-
} = PaymentPlatformModel.
|
|
2789
|
+
} = PaymentPlatformModel.PlatformPaymentModeResponse().validate(
|
|
2333
2790
|
responseData,
|
|
2334
2791
|
{ abortEarly: false, allowUnknown: true }
|
|
2335
2792
|
);
|
|
@@ -2354,7 +2811,7 @@ class Payment {
|
|
|
2354
2811
|
*
|
|
2355
2812
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2356
2813
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2357
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
2814
|
+
* @returns {Promise<PaymentPlatformModel.PlatformPaymentModeResponse>} -
|
|
2358
2815
|
* Success response
|
|
2359
2816
|
* @name patchMerchantPaymentOption
|
|
2360
2817
|
* @summary: Update Payment modes and COD details.
|
|
@@ -2411,7 +2868,7 @@ class Payment {
|
|
|
2411
2868
|
|
|
2412
2869
|
const {
|
|
2413
2870
|
error: res_error,
|
|
2414
|
-
} = PaymentPlatformModel.
|
|
2871
|
+
} = PaymentPlatformModel.PlatformPaymentModeResponse().validate(
|
|
2415
2872
|
responseData,
|
|
2416
2873
|
{ abortEarly: false, allowUnknown: true }
|
|
2417
2874
|
);
|
|
@@ -2430,6 +2887,90 @@ class Payment {
|
|
|
2430
2887
|
return response;
|
|
2431
2888
|
}
|
|
2432
2889
|
|
|
2890
|
+
/**
|
|
2891
|
+
* @param {PaymentPlatformApplicationValidator.PatchMerchantPaymentOptionVersionParam} arg
|
|
2892
|
+
* - Arg object
|
|
2893
|
+
*
|
|
2894
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2895
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2896
|
+
* @returns {Promise<PaymentPlatformModel.PlatformPaymentModeResponse>} -
|
|
2897
|
+
* Success response
|
|
2898
|
+
* @name patchMerchantPaymentOptionVersion
|
|
2899
|
+
* @summary: Update app version required for Payment Mode.
|
|
2900
|
+
* @description: This api provide wrote operations on the app version required for Payment Mode or sub payment mode for an Aggregator. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/patchMerchantPaymentOptionVersion/).
|
|
2901
|
+
*/
|
|
2902
|
+
async patchMerchantPaymentOptionVersion(
|
|
2903
|
+
{ aggregatorId, body, requestHeaders } = { requestHeaders: {} },
|
|
2904
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
2905
|
+
) {
|
|
2906
|
+
const {
|
|
2907
|
+
error,
|
|
2908
|
+
} = PaymentPlatformApplicationValidator.patchMerchantPaymentOptionVersion().validate(
|
|
2909
|
+
{
|
|
2910
|
+
aggregatorId,
|
|
2911
|
+
body,
|
|
2912
|
+
},
|
|
2913
|
+
{ abortEarly: false, allowUnknown: true }
|
|
2914
|
+
);
|
|
2915
|
+
if (error) {
|
|
2916
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
2917
|
+
}
|
|
2918
|
+
|
|
2919
|
+
// Showing warrnings if extra unknown parameters are found
|
|
2920
|
+
const {
|
|
2921
|
+
error: warrning,
|
|
2922
|
+
} = PaymentPlatformApplicationValidator.patchMerchantPaymentOptionVersion().validate(
|
|
2923
|
+
{
|
|
2924
|
+
aggregatorId,
|
|
2925
|
+
body,
|
|
2926
|
+
},
|
|
2927
|
+
{ abortEarly: false, allowUnknown: false }
|
|
2928
|
+
);
|
|
2929
|
+
if (warrning) {
|
|
2930
|
+
Logger({
|
|
2931
|
+
level: "WARN",
|
|
2932
|
+
message: `Parameter Validation warrnings for platform > Payment > patchMerchantPaymentOptionVersion \n ${warrning}`,
|
|
2933
|
+
});
|
|
2934
|
+
}
|
|
2935
|
+
|
|
2936
|
+
const query_params = {};
|
|
2937
|
+
|
|
2938
|
+
const response = await PlatformAPIClient.execute(
|
|
2939
|
+
this.config,
|
|
2940
|
+
"patch",
|
|
2941
|
+
`/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/payment/options/aggregators/${aggregatorId}/version`,
|
|
2942
|
+
query_params,
|
|
2943
|
+
body,
|
|
2944
|
+
requestHeaders,
|
|
2945
|
+
{ responseHeaders }
|
|
2946
|
+
);
|
|
2947
|
+
|
|
2948
|
+
let responseData = response;
|
|
2949
|
+
if (responseHeaders) {
|
|
2950
|
+
responseData = response[0];
|
|
2951
|
+
}
|
|
2952
|
+
|
|
2953
|
+
const {
|
|
2954
|
+
error: res_error,
|
|
2955
|
+
} = PaymentPlatformModel.PlatformPaymentModeResponse().validate(
|
|
2956
|
+
responseData,
|
|
2957
|
+
{ abortEarly: false, allowUnknown: true }
|
|
2958
|
+
);
|
|
2959
|
+
|
|
2960
|
+
if (res_error) {
|
|
2961
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2962
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2963
|
+
} else {
|
|
2964
|
+
Logger({
|
|
2965
|
+
level: "WARN",
|
|
2966
|
+
message: `Response Validation Warnings for platform > Payment > patchMerchantPaymentOptionVersion \n ${res_error}`,
|
|
2967
|
+
});
|
|
2968
|
+
}
|
|
2969
|
+
}
|
|
2970
|
+
|
|
2971
|
+
return response;
|
|
2972
|
+
}
|
|
2973
|
+
|
|
2433
2974
|
/**
|
|
2434
2975
|
* @param {PaymentPlatformApplicationValidator.PaymentStatusBulkParam} arg
|
|
2435
2976
|
* - Arg object
|
|
@@ -3000,6 +3541,175 @@ class Payment {
|
|
|
3000
3541
|
return response;
|
|
3001
3542
|
}
|
|
3002
3543
|
|
|
3544
|
+
/**
|
|
3545
|
+
* @param {PaymentPlatformApplicationValidator.SetMerchantModeControlRoutesParam} arg
|
|
3546
|
+
* - Arg object
|
|
3547
|
+
*
|
|
3548
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3549
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3550
|
+
* @returns {Promise<PaymentPlatformModel.PlatformPaymentModeResponse>} -
|
|
3551
|
+
* Success response
|
|
3552
|
+
* @name setMerchantModeControlRoutes
|
|
3553
|
+
* @summary: Update offline payment mode details for the merchant
|
|
3554
|
+
* @description: Use this API to update given offline / advance payment mode details for the merchant - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/setMerchantModeControlRoutes/).
|
|
3555
|
+
*/
|
|
3556
|
+
async setMerchantModeControlRoutes(
|
|
3557
|
+
{ mode, body, requestHeaders } = { requestHeaders: {} },
|
|
3558
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
3559
|
+
) {
|
|
3560
|
+
const {
|
|
3561
|
+
error,
|
|
3562
|
+
} = PaymentPlatformApplicationValidator.setMerchantModeControlRoutes().validate(
|
|
3563
|
+
{
|
|
3564
|
+
mode,
|
|
3565
|
+
body,
|
|
3566
|
+
},
|
|
3567
|
+
{ abortEarly: false, allowUnknown: true }
|
|
3568
|
+
);
|
|
3569
|
+
if (error) {
|
|
3570
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
3571
|
+
}
|
|
3572
|
+
|
|
3573
|
+
// Showing warrnings if extra unknown parameters are found
|
|
3574
|
+
const {
|
|
3575
|
+
error: warrning,
|
|
3576
|
+
} = PaymentPlatformApplicationValidator.setMerchantModeControlRoutes().validate(
|
|
3577
|
+
{
|
|
3578
|
+
mode,
|
|
3579
|
+
body,
|
|
3580
|
+
},
|
|
3581
|
+
{ abortEarly: false, allowUnknown: false }
|
|
3582
|
+
);
|
|
3583
|
+
if (warrning) {
|
|
3584
|
+
Logger({
|
|
3585
|
+
level: "WARN",
|
|
3586
|
+
message: `Parameter Validation warrnings for platform > Payment > setMerchantModeControlRoutes \n ${warrning}`,
|
|
3587
|
+
});
|
|
3588
|
+
}
|
|
3589
|
+
|
|
3590
|
+
const query_params = {};
|
|
3591
|
+
|
|
3592
|
+
const response = await PlatformAPIClient.execute(
|
|
3593
|
+
this.config,
|
|
3594
|
+
"patch",
|
|
3595
|
+
`/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/payment/options/modes/${mode}`,
|
|
3596
|
+
query_params,
|
|
3597
|
+
body,
|
|
3598
|
+
requestHeaders,
|
|
3599
|
+
{ responseHeaders }
|
|
3600
|
+
);
|
|
3601
|
+
|
|
3602
|
+
let responseData = response;
|
|
3603
|
+
if (responseHeaders) {
|
|
3604
|
+
responseData = response[0];
|
|
3605
|
+
}
|
|
3606
|
+
|
|
3607
|
+
const {
|
|
3608
|
+
error: res_error,
|
|
3609
|
+
} = PaymentPlatformModel.PlatformPaymentModeResponse().validate(
|
|
3610
|
+
responseData,
|
|
3611
|
+
{ abortEarly: false, allowUnknown: true }
|
|
3612
|
+
);
|
|
3613
|
+
|
|
3614
|
+
if (res_error) {
|
|
3615
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
3616
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
3617
|
+
} else {
|
|
3618
|
+
Logger({
|
|
3619
|
+
level: "WARN",
|
|
3620
|
+
message: `Response Validation Warnings for platform > Payment > setMerchantModeControlRoutes \n ${res_error}`,
|
|
3621
|
+
});
|
|
3622
|
+
}
|
|
3623
|
+
}
|
|
3624
|
+
|
|
3625
|
+
return response;
|
|
3626
|
+
}
|
|
3627
|
+
|
|
3628
|
+
/**
|
|
3629
|
+
* @param {PaymentPlatformApplicationValidator.SetPaymentModeCustomConfigParam} arg
|
|
3630
|
+
* - Arg object
|
|
3631
|
+
*
|
|
3632
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3633
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3634
|
+
* @returns {Promise<PaymentPlatformModel.PaymentCustomConfigResponseSchema>}
|
|
3635
|
+
* - Success response
|
|
3636
|
+
*
|
|
3637
|
+
* @name setPaymentModeCustomConfig
|
|
3638
|
+
* @summary: Update details of advance payment custom configurations of merchant
|
|
3639
|
+
* @description: Use this API to update given details of advance payment custom configurations of merchant - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/setPaymentModeCustomConfig/).
|
|
3640
|
+
*/
|
|
3641
|
+
async setPaymentModeCustomConfig(
|
|
3642
|
+
{ mode, body, requestHeaders } = { requestHeaders: {} },
|
|
3643
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
3644
|
+
) {
|
|
3645
|
+
const {
|
|
3646
|
+
error,
|
|
3647
|
+
} = PaymentPlatformApplicationValidator.setPaymentModeCustomConfig().validate(
|
|
3648
|
+
{
|
|
3649
|
+
mode,
|
|
3650
|
+
body,
|
|
3651
|
+
},
|
|
3652
|
+
{ abortEarly: false, allowUnknown: true }
|
|
3653
|
+
);
|
|
3654
|
+
if (error) {
|
|
3655
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
3656
|
+
}
|
|
3657
|
+
|
|
3658
|
+
// Showing warrnings if extra unknown parameters are found
|
|
3659
|
+
const {
|
|
3660
|
+
error: warrning,
|
|
3661
|
+
} = PaymentPlatformApplicationValidator.setPaymentModeCustomConfig().validate(
|
|
3662
|
+
{
|
|
3663
|
+
mode,
|
|
3664
|
+
body,
|
|
3665
|
+
},
|
|
3666
|
+
{ abortEarly: false, allowUnknown: false }
|
|
3667
|
+
);
|
|
3668
|
+
if (warrning) {
|
|
3669
|
+
Logger({
|
|
3670
|
+
level: "WARN",
|
|
3671
|
+
message: `Parameter Validation warrnings for platform > Payment > setPaymentModeCustomConfig \n ${warrning}`,
|
|
3672
|
+
});
|
|
3673
|
+
}
|
|
3674
|
+
|
|
3675
|
+
const query_params = {};
|
|
3676
|
+
|
|
3677
|
+
const response = await PlatformAPIClient.execute(
|
|
3678
|
+
this.config,
|
|
3679
|
+
"patch",
|
|
3680
|
+
`/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/payment/options/modes/${mode}/custom-config`,
|
|
3681
|
+
query_params,
|
|
3682
|
+
body,
|
|
3683
|
+
requestHeaders,
|
|
3684
|
+
{ responseHeaders }
|
|
3685
|
+
);
|
|
3686
|
+
|
|
3687
|
+
let responseData = response;
|
|
3688
|
+
if (responseHeaders) {
|
|
3689
|
+
responseData = response[0];
|
|
3690
|
+
}
|
|
3691
|
+
|
|
3692
|
+
const {
|
|
3693
|
+
error: res_error,
|
|
3694
|
+
} = PaymentPlatformModel.PaymentCustomConfigResponseSchema().validate(
|
|
3695
|
+
responseData,
|
|
3696
|
+
{ abortEarly: false, allowUnknown: true }
|
|
3697
|
+
);
|
|
3698
|
+
|
|
3699
|
+
if (res_error) {
|
|
3700
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
3701
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
3702
|
+
} else {
|
|
3703
|
+
Logger({
|
|
3704
|
+
level: "WARN",
|
|
3705
|
+
message: `Response Validation Warnings for platform > Payment > setPaymentModeCustomConfig \n ${res_error}`,
|
|
3706
|
+
});
|
|
3707
|
+
}
|
|
3708
|
+
}
|
|
3709
|
+
|
|
3710
|
+
return response;
|
|
3711
|
+
}
|
|
3712
|
+
|
|
3003
3713
|
/**
|
|
3004
3714
|
* @param {PaymentPlatformApplicationValidator.SetUserCODlimitRoutesParam} arg
|
|
3005
3715
|
* - Arg object
|