@gofynd/fdk-client-javascript 3.14.0 → 3.16.0
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/Order/OrderApplicationClient.d.ts +11 -1
- package/sdk/application/Order/OrderApplicationClient.js +50 -1
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +0 -20
- package/sdk/application/Payment/PaymentApplicationClient.js +0 -77
- package/sdk/common/Constant.d.ts +13 -4
- package/sdk/common/Constant.js +17 -6
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +2 -2
- package/sdk/partner/Lead/LeadPartnerModel.js +1 -1
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +2 -2
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +1 -1
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +5 -4
- package/sdk/partner/Theme/ThemePartnerModel.js +9 -6
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +2 -2
- package/sdk/partner/Webhook/WebhookPartnerModel.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +2 -2
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +1 -1
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +10 -0
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +95 -0
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +47 -1
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +29 -0
- package/sdk/platform/Cart/CartPlatformModel.d.ts +17 -3
- package/sdk/platform/Cart/CartPlatformModel.js +14 -1
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +13 -16
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +17 -20
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +10 -11
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +2 -2
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1 -1
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +63 -41
- package/sdk/platform/Catalog/CatalogPlatformModel.js +42 -34
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +2 -2
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +2 -2
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +2 -2
- package/sdk/platform/Communication/CommunicationPlatformModel.js +1 -1
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +2 -2
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +1 -1
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +2 -2
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +1 -1
- package/sdk/platform/Content/ContentPlatformModel.d.ts +7 -6
- package/sdk/platform/Content/ContentPlatformModel.js +10 -7
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformModel.js +1 -1
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +2 -2
- package/sdk/platform/Lead/LeadPlatformModel.js +1 -1
- package/sdk/platform/Order/OrderPlatformModel.d.ts +2 -2
- package/sdk/platform/Order/OrderPlatformModel.js +1 -1
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +0 -23
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +0 -161
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +1 -19
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +0 -24
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +1 -159
- package/sdk/platform/Payment/PaymentPlatformModel.js +0 -112
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.js +1 -1
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +67 -49
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +45 -42
- package/sdk/platform/Share/SharePlatformModel.d.ts +2 -2
- package/sdk/platform/Share/SharePlatformModel.js +1 -1
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +5 -4
- package/sdk/platform/Theme/ThemePlatformModel.js +9 -6
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +3 -2
- package/sdk/platform/User/UserPlatformApplicationClient.js +5 -2
- package/sdk/platform/User/UserPlatformApplicationValidator.js +0 -1
- package/sdk/platform/User/UserPlatformModel.d.ts +17 -1
- package/sdk/platform/User/UserPlatformModel.js +15 -0
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +2 -2
- package/sdk/platform/Webhook/WebhookPlatformModel.js +1 -1
|
@@ -51,7 +51,7 @@ const Joi = require("joi");
|
|
|
51
51
|
* @property {boolean} [has_previous] - Indicates whether there is a previous page.
|
|
52
52
|
* @property {boolean} [has_next] - Indicates whether there is a next page.
|
|
53
53
|
* @property {number} [current] - The current page number.
|
|
54
|
-
* @property {string} type - The type of the page,
|
|
54
|
+
* @property {string} type - The type of the page, can be 'cursor' or 'number'.
|
|
55
55
|
* @property {number} [size] - The number of items per page.
|
|
56
56
|
* @property {number} [page_size] - The number of items per page.
|
|
57
57
|
*/
|
|
@@ -2997,7 +2997,7 @@ export = OrderPlatformModel;
|
|
|
2997
2997
|
* @property {boolean} [has_previous] - Indicates whether there is a previous page.
|
|
2998
2998
|
* @property {boolean} [has_next] - Indicates whether there is a next page.
|
|
2999
2999
|
* @property {number} [current] - The current page number.
|
|
3000
|
-
* @property {string} type - The type of the page,
|
|
3000
|
+
* @property {string} type - The type of the page, can be 'cursor' or 'number'.
|
|
3001
3001
|
* @property {number} [size] - The number of items per page.
|
|
3002
3002
|
* @property {number} [page_size] - The number of items per page.
|
|
3003
3003
|
*/
|
|
@@ -11603,7 +11603,7 @@ type Page = {
|
|
|
11603
11603
|
*/
|
|
11604
11604
|
current?: number;
|
|
11605
11605
|
/**
|
|
11606
|
-
* - The type of the page,
|
|
11606
|
+
* - The type of the page, can be 'cursor' or 'number'.
|
|
11607
11607
|
*/
|
|
11608
11608
|
type: string;
|
|
11609
11609
|
/**
|
|
@@ -3266,7 +3266,7 @@ const Joi = require("joi");
|
|
|
3266
3266
|
* @property {boolean} [has_previous] - Indicates whether there is a previous page.
|
|
3267
3267
|
* @property {boolean} [has_next] - Indicates whether there is a next page.
|
|
3268
3268
|
* @property {number} [current] - The current page number.
|
|
3269
|
-
* @property {string} type - The type of the page,
|
|
3269
|
+
* @property {string} type - The type of the page, can be 'cursor' or 'number'.
|
|
3270
3270
|
* @property {number} [size] - The number of items per page.
|
|
3271
3271
|
* @property {number} [page_size] - The number of items per page.
|
|
3272
3272
|
*/
|
|
@@ -315,19 +315,6 @@ declare class Payment {
|
|
|
315
315
|
* @description: Initiates the payment procedure for an order.Upon successful initiation, it returns a details including the success status, aggregator information, payment method, status, merchant order ID aggregator order , polling URL, timeout, virtual ID, Razorpay payment ID, customer ID, and device ID. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/initialisePayment/).
|
|
316
316
|
*/
|
|
317
317
|
initialisePayment({ body, requestHeaders }?: PaymentPlatformApplicationValidator.InitialisePaymentParam, { responseHeaders }?: object): Promise<PaymentPlatformModel.PaymentInitializationDetails>;
|
|
318
|
-
/**
|
|
319
|
-
* @param {PaymentPlatformApplicationValidator.MerchantOnBoardingParam} arg
|
|
320
|
-
* - Arg object
|
|
321
|
-
*
|
|
322
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
323
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
324
|
-
* @returns {Promise<PaymentPlatformModel.MerchantOnBoardingDetails>} -
|
|
325
|
-
* Success response
|
|
326
|
-
* @name merchantOnBoarding
|
|
327
|
-
* @summary: Merchant onboarding for BNPL
|
|
328
|
-
* @description: Initiate the merchant onboarding process for Buy Now Pay Later (BNPL). - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/merchantOnBoarding/).
|
|
329
|
-
*/
|
|
330
|
-
merchantOnBoarding({ body, requestHeaders }?: PaymentPlatformApplicationValidator.MerchantOnBoardingParam, { responseHeaders }?: object): Promise<PaymentPlatformModel.MerchantOnBoardingDetails>;
|
|
331
318
|
/**
|
|
332
319
|
* @param {PaymentPlatformApplicationValidator.OauthGetUrlParam} arg - Arg object
|
|
333
320
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -404,16 +391,6 @@ declare class Payment {
|
|
|
404
391
|
* @description: Periodically checks the status of a payment link to monitor for any updates or changes.retrieve real-time information about the payment link's current status, such as whether it has been processed, cancelled, or expired. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/pollingPaymentLink/).
|
|
405
392
|
*/
|
|
406
393
|
pollingPaymentLink({ paymentLinkId, requestHeaders }?: PaymentPlatformApplicationValidator.PollingPaymentLinkParam, { responseHeaders }?: object): Promise<PaymentPlatformModel.PollingPaymentLinkDetails>;
|
|
407
|
-
/**
|
|
408
|
-
* @param {PaymentPlatformApplicationValidator.RepaymentDetailsParam} arg - Arg object
|
|
409
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
410
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
411
|
-
* @returns {Promise<PaymentPlatformModel.RepaymentDetails>} - Success response
|
|
412
|
-
* @name repaymentDetails
|
|
413
|
-
* @summary: Repayment details for BNPL
|
|
414
|
-
* @description: Retrieve repayment details for Buy Now Pay Later (BNPL) payment - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/repaymentDetails/).
|
|
415
|
-
*/
|
|
416
|
-
repaymentDetails({ body, requestHeaders }?: PaymentPlatformApplicationValidator.RepaymentDetailsParam, { responseHeaders }?: object): Promise<PaymentPlatformModel.RepaymentDetails>;
|
|
417
394
|
/**
|
|
418
395
|
* @param {PaymentPlatformApplicationValidator.ResendOrCancelPaymentParam} arg
|
|
419
396
|
* - Arg object
|
|
@@ -2151,88 +2151,6 @@ class Payment {
|
|
|
2151
2151
|
return response;
|
|
2152
2152
|
}
|
|
2153
2153
|
|
|
2154
|
-
/**
|
|
2155
|
-
* @param {PaymentPlatformApplicationValidator.MerchantOnBoardingParam} arg
|
|
2156
|
-
* - Arg object
|
|
2157
|
-
*
|
|
2158
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2159
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2160
|
-
* @returns {Promise<PaymentPlatformModel.MerchantOnBoardingDetails>} -
|
|
2161
|
-
* Success response
|
|
2162
|
-
* @name merchantOnBoarding
|
|
2163
|
-
* @summary: Merchant onboarding for BNPL
|
|
2164
|
-
* @description: Initiate the merchant onboarding process for Buy Now Pay Later (BNPL). - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/merchantOnBoarding/).
|
|
2165
|
-
*/
|
|
2166
|
-
async merchantOnBoarding(
|
|
2167
|
-
{ body, requestHeaders } = { requestHeaders: {} },
|
|
2168
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
2169
|
-
) {
|
|
2170
|
-
const {
|
|
2171
|
-
error,
|
|
2172
|
-
} = PaymentPlatformApplicationValidator.merchantOnBoarding().validate(
|
|
2173
|
-
{
|
|
2174
|
-
body,
|
|
2175
|
-
},
|
|
2176
|
-
{ abortEarly: false, allowUnknown: true }
|
|
2177
|
-
);
|
|
2178
|
-
if (error) {
|
|
2179
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
2180
|
-
}
|
|
2181
|
-
|
|
2182
|
-
// Showing warrnings if extra unknown parameters are found
|
|
2183
|
-
const {
|
|
2184
|
-
error: warrning,
|
|
2185
|
-
} = PaymentPlatformApplicationValidator.merchantOnBoarding().validate(
|
|
2186
|
-
{
|
|
2187
|
-
body,
|
|
2188
|
-
},
|
|
2189
|
-
{ abortEarly: false, allowUnknown: false }
|
|
2190
|
-
);
|
|
2191
|
-
if (warrning) {
|
|
2192
|
-
Logger({
|
|
2193
|
-
level: "WARN",
|
|
2194
|
-
message: `Parameter Validation warrnings for platform > Payment > merchantOnBoarding \n ${warrning}`,
|
|
2195
|
-
});
|
|
2196
|
-
}
|
|
2197
|
-
|
|
2198
|
-
const query_params = {};
|
|
2199
|
-
|
|
2200
|
-
const response = await PlatformAPIClient.execute(
|
|
2201
|
-
this.config,
|
|
2202
|
-
"post",
|
|
2203
|
-
`/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/merchant-onboarding`,
|
|
2204
|
-
query_params,
|
|
2205
|
-
body,
|
|
2206
|
-
requestHeaders,
|
|
2207
|
-
{ responseHeaders }
|
|
2208
|
-
);
|
|
2209
|
-
|
|
2210
|
-
let responseData = response;
|
|
2211
|
-
if (responseHeaders) {
|
|
2212
|
-
responseData = response[0];
|
|
2213
|
-
}
|
|
2214
|
-
|
|
2215
|
-
const {
|
|
2216
|
-
error: res_error,
|
|
2217
|
-
} = PaymentPlatformModel.MerchantOnBoardingDetails().validate(
|
|
2218
|
-
responseData,
|
|
2219
|
-
{ abortEarly: false, allowUnknown: true }
|
|
2220
|
-
);
|
|
2221
|
-
|
|
2222
|
-
if (res_error) {
|
|
2223
|
-
if (this.config.options.strictResponseCheck === true) {
|
|
2224
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2225
|
-
} else {
|
|
2226
|
-
Logger({
|
|
2227
|
-
level: "WARN",
|
|
2228
|
-
message: `Response Validation Warnings for platform > Payment > merchantOnBoarding \n ${res_error}`,
|
|
2229
|
-
});
|
|
2230
|
-
}
|
|
2231
|
-
}
|
|
2232
|
-
|
|
2233
|
-
return response;
|
|
2234
|
-
}
|
|
2235
|
-
|
|
2236
2154
|
/**
|
|
2237
2155
|
* @param {PaymentPlatformApplicationValidator.OauthGetUrlParam} arg - Arg object
|
|
2238
2156
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -2736,85 +2654,6 @@ class Payment {
|
|
|
2736
2654
|
return response;
|
|
2737
2655
|
}
|
|
2738
2656
|
|
|
2739
|
-
/**
|
|
2740
|
-
* @param {PaymentPlatformApplicationValidator.RepaymentDetailsParam} arg - Arg object
|
|
2741
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2742
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2743
|
-
* @returns {Promise<PaymentPlatformModel.RepaymentDetails>} - Success response
|
|
2744
|
-
* @name repaymentDetails
|
|
2745
|
-
* @summary: Repayment details for BNPL
|
|
2746
|
-
* @description: Retrieve repayment details for Buy Now Pay Later (BNPL) payment - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/repaymentDetails/).
|
|
2747
|
-
*/
|
|
2748
|
-
async repaymentDetails(
|
|
2749
|
-
{ body, requestHeaders } = { requestHeaders: {} },
|
|
2750
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
2751
|
-
) {
|
|
2752
|
-
const {
|
|
2753
|
-
error,
|
|
2754
|
-
} = PaymentPlatformApplicationValidator.repaymentDetails().validate(
|
|
2755
|
-
{
|
|
2756
|
-
body,
|
|
2757
|
-
},
|
|
2758
|
-
{ abortEarly: false, allowUnknown: true }
|
|
2759
|
-
);
|
|
2760
|
-
if (error) {
|
|
2761
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
2762
|
-
}
|
|
2763
|
-
|
|
2764
|
-
// Showing warrnings if extra unknown parameters are found
|
|
2765
|
-
const {
|
|
2766
|
-
error: warrning,
|
|
2767
|
-
} = PaymentPlatformApplicationValidator.repaymentDetails().validate(
|
|
2768
|
-
{
|
|
2769
|
-
body,
|
|
2770
|
-
},
|
|
2771
|
-
{ abortEarly: false, allowUnknown: false }
|
|
2772
|
-
);
|
|
2773
|
-
if (warrning) {
|
|
2774
|
-
Logger({
|
|
2775
|
-
level: "WARN",
|
|
2776
|
-
message: `Parameter Validation warrnings for platform > Payment > repaymentDetails \n ${warrning}`,
|
|
2777
|
-
});
|
|
2778
|
-
}
|
|
2779
|
-
|
|
2780
|
-
const query_params = {};
|
|
2781
|
-
|
|
2782
|
-
const response = await PlatformAPIClient.execute(
|
|
2783
|
-
this.config,
|
|
2784
|
-
"post",
|
|
2785
|
-
`/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/repayment-details`,
|
|
2786
|
-
query_params,
|
|
2787
|
-
body,
|
|
2788
|
-
requestHeaders,
|
|
2789
|
-
{ responseHeaders }
|
|
2790
|
-
);
|
|
2791
|
-
|
|
2792
|
-
let responseData = response;
|
|
2793
|
-
if (responseHeaders) {
|
|
2794
|
-
responseData = response[0];
|
|
2795
|
-
}
|
|
2796
|
-
|
|
2797
|
-
const {
|
|
2798
|
-
error: res_error,
|
|
2799
|
-
} = PaymentPlatformModel.RepaymentDetails().validate(responseData, {
|
|
2800
|
-
abortEarly: false,
|
|
2801
|
-
allowUnknown: true,
|
|
2802
|
-
});
|
|
2803
|
-
|
|
2804
|
-
if (res_error) {
|
|
2805
|
-
if (this.config.options.strictResponseCheck === true) {
|
|
2806
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2807
|
-
} else {
|
|
2808
|
-
Logger({
|
|
2809
|
-
level: "WARN",
|
|
2810
|
-
message: `Response Validation Warnings for platform > Payment > repaymentDetails \n ${res_error}`,
|
|
2811
|
-
});
|
|
2812
|
-
}
|
|
2813
|
-
}
|
|
2814
|
-
|
|
2815
|
-
return response;
|
|
2816
|
-
}
|
|
2817
|
-
|
|
2818
2657
|
/**
|
|
2819
2658
|
* @param {PaymentPlatformApplicationValidator.ResendOrCancelPaymentParam} arg
|
|
2820
2659
|
* - Arg object
|
|
@@ -132,10 +132,6 @@ export = PaymentPlatformApplicationValidator;
|
|
|
132
132
|
* @typedef InitialisePaymentParam
|
|
133
133
|
* @property {PaymentPlatformModel.PaymentInitializationCreation} body
|
|
134
134
|
*/
|
|
135
|
-
/**
|
|
136
|
-
* @typedef MerchantOnBoardingParam
|
|
137
|
-
* @property {PaymentPlatformModel.MerchantOnBoardingCreation} body
|
|
138
|
-
*/
|
|
139
135
|
/**
|
|
140
136
|
* @typedef OauthGetUrlParam
|
|
141
137
|
* @property {string} aggregator - Aggregator
|
|
@@ -164,10 +160,6 @@ export = PaymentPlatformApplicationValidator;
|
|
|
164
160
|
* @typedef PollingPaymentLinkParam
|
|
165
161
|
* @property {string} paymentLinkId
|
|
166
162
|
*/
|
|
167
|
-
/**
|
|
168
|
-
* @typedef RepaymentDetailsParam
|
|
169
|
-
* @property {PaymentPlatformModel.RepaymentDetailsSerialiserPayAll} body
|
|
170
|
-
*/
|
|
171
163
|
/**
|
|
172
164
|
* @typedef ResendOrCancelPaymentParam
|
|
173
165
|
* @property {PaymentPlatformModel.ResendOrCancelPaymentCreation} body
|
|
@@ -278,8 +270,6 @@ declare class PaymentPlatformApplicationValidator {
|
|
|
278
270
|
static getUserOrderBeneficiaries(): GetUserOrderBeneficiariesParam;
|
|
279
271
|
/** @returns {InitialisePaymentParam} */
|
|
280
272
|
static initialisePayment(): InitialisePaymentParam;
|
|
281
|
-
/** @returns {MerchantOnBoardingParam} */
|
|
282
|
-
static merchantOnBoarding(): MerchantOnBoardingParam;
|
|
283
273
|
/** @returns {OauthGetUrlParam} */
|
|
284
274
|
static oauthGetUrl(): OauthGetUrlParam;
|
|
285
275
|
/** @returns {PatchMerchantAggregatorPaymentModeDetailsParam} */
|
|
@@ -292,8 +282,6 @@ declare class PaymentPlatformApplicationValidator {
|
|
|
292
282
|
static paymentStatusBulk(): PaymentStatusBulkParam;
|
|
293
283
|
/** @returns {PollingPaymentLinkParam} */
|
|
294
284
|
static pollingPaymentLink(): PollingPaymentLinkParam;
|
|
295
|
-
/** @returns {RepaymentDetailsParam} */
|
|
296
|
-
static repaymentDetails(): RepaymentDetailsParam;
|
|
297
285
|
/** @returns {ResendOrCancelPaymentParam} */
|
|
298
286
|
static resendOrCancelPayment(): ResendOrCancelPaymentParam;
|
|
299
287
|
/** @returns {ResendPaymentLinkParam} */
|
|
@@ -320,7 +308,7 @@ declare class PaymentPlatformApplicationValidator {
|
|
|
320
308
|
static verifyCustomerForPayment(): VerifyCustomerForPaymentParam;
|
|
321
309
|
}
|
|
322
310
|
declare namespace PaymentPlatformApplicationValidator {
|
|
323
|
-
export { AddRefundBankAccountUsingOTPParam, CancelPaymentLinkParam, CheckAndUpdatePaymentStatusParam, ConfirmPaymentParam, CreateMerchantRefundPriorityParam, CreatePaymentLinkParam, CreatePaymentOrderParam, GetBankAccountDetailsOpenAPIParam, GetBrandPaymentGatewayConfigParam, GetMerchantAggregatorAppVersionParam, GetMerchantAggregatorPaymentModeDetailsParam, GetMerchantPaymentOptionParam, GetMerchantRefundPriorityParam, GetPGConfigAggregatorsParam, GetPaymentCodeOptionParam, GetPaymentLinkParam, GetPaymentModeControlRoutesParam, GetPaymentModeCustomConfigParam, GetPaymentModeRoutesParam, GetPaymentSessionParam, GetPosPaymentModeRoutesParam, GetUserBeneficiariesParam, GetUserCODlimitRoutesParam, GetUserOrderBeneficiariesParam, InitialisePaymentParam,
|
|
311
|
+
export { AddRefundBankAccountUsingOTPParam, CancelPaymentLinkParam, CheckAndUpdatePaymentStatusParam, ConfirmPaymentParam, CreateMerchantRefundPriorityParam, CreatePaymentLinkParam, CreatePaymentOrderParam, GetBankAccountDetailsOpenAPIParam, GetBrandPaymentGatewayConfigParam, GetMerchantAggregatorAppVersionParam, GetMerchantAggregatorPaymentModeDetailsParam, GetMerchantPaymentOptionParam, GetMerchantRefundPriorityParam, GetPGConfigAggregatorsParam, GetPaymentCodeOptionParam, GetPaymentLinkParam, GetPaymentModeControlRoutesParam, GetPaymentModeCustomConfigParam, GetPaymentModeRoutesParam, GetPaymentSessionParam, GetPosPaymentModeRoutesParam, GetUserBeneficiariesParam, GetUserCODlimitRoutesParam, GetUserOrderBeneficiariesParam, InitialisePaymentParam, OauthGetUrlParam, PatchMerchantAggregatorPaymentModeDetailsParam, PatchMerchantPaymentOptionParam, PatchMerchantPaymentOptionVersionParam, PaymentStatusBulkParam, PollingPaymentLinkParam, ResendOrCancelPaymentParam, ResendPaymentLinkParam, RevokeOauthTokenParam, SaveBrandPaymentGatewayConfigParam, SetMerchantModeControlRoutesParam, SetPaymentModeCustomConfigParam, SetUserCODlimitRoutesParam, UpdateMerchantRefundPriorityParam, UpdatePaymentSessionParam, UpdateRefundSessionParam, ValidateCustomerAndCreditSummaryParam, VerifyCustomerForPaymentParam };
|
|
324
312
|
}
|
|
325
313
|
type AddRefundBankAccountUsingOTPParam = {
|
|
326
314
|
body: PaymentPlatformModel.AddBeneficiaryDetailsOTPCreation;
|
|
@@ -505,9 +493,6 @@ type GetUserOrderBeneficiariesParam = {
|
|
|
505
493
|
type InitialisePaymentParam = {
|
|
506
494
|
body: PaymentPlatformModel.PaymentInitializationCreation;
|
|
507
495
|
};
|
|
508
|
-
type MerchantOnBoardingParam = {
|
|
509
|
-
body: PaymentPlatformModel.MerchantOnBoardingCreation;
|
|
510
|
-
};
|
|
511
496
|
type OauthGetUrlParam = {
|
|
512
497
|
/**
|
|
513
498
|
* - Aggregator
|
|
@@ -539,9 +524,6 @@ type PaymentStatusBulkParam = {
|
|
|
539
524
|
type PollingPaymentLinkParam = {
|
|
540
525
|
paymentLinkId: string;
|
|
541
526
|
};
|
|
542
|
-
type RepaymentDetailsParam = {
|
|
543
|
-
body: PaymentPlatformModel.RepaymentDetailsSerialiserPayAll;
|
|
544
|
-
};
|
|
545
527
|
type ResendOrCancelPaymentParam = {
|
|
546
528
|
body: PaymentPlatformModel.ResendOrCancelPaymentCreation;
|
|
547
529
|
};
|
|
@@ -160,11 +160,6 @@ const PaymentPlatformModel = require("./PaymentPlatformModel");
|
|
|
160
160
|
* @property {PaymentPlatformModel.PaymentInitializationCreation} body
|
|
161
161
|
*/
|
|
162
162
|
|
|
163
|
-
/**
|
|
164
|
-
* @typedef MerchantOnBoardingParam
|
|
165
|
-
* @property {PaymentPlatformModel.MerchantOnBoardingCreation} body
|
|
166
|
-
*/
|
|
167
|
-
|
|
168
163
|
/**
|
|
169
164
|
* @typedef OauthGetUrlParam
|
|
170
165
|
* @property {string} aggregator - Aggregator
|
|
@@ -199,11 +194,6 @@ const PaymentPlatformModel = require("./PaymentPlatformModel");
|
|
|
199
194
|
* @property {string} paymentLinkId
|
|
200
195
|
*/
|
|
201
196
|
|
|
202
|
-
/**
|
|
203
|
-
* @typedef RepaymentDetailsParam
|
|
204
|
-
* @property {PaymentPlatformModel.RepaymentDetailsSerialiserPayAll} body
|
|
205
|
-
*/
|
|
206
|
-
|
|
207
197
|
/**
|
|
208
198
|
* @typedef ResendOrCancelPaymentParam
|
|
209
199
|
* @property {PaymentPlatformModel.ResendOrCancelPaymentCreation} body
|
|
@@ -474,13 +464,6 @@ class PaymentPlatformApplicationValidator {
|
|
|
474
464
|
}).required();
|
|
475
465
|
}
|
|
476
466
|
|
|
477
|
-
/** @returns {MerchantOnBoardingParam} */
|
|
478
|
-
static merchantOnBoarding() {
|
|
479
|
-
return Joi.object({
|
|
480
|
-
body: PaymentPlatformModel.MerchantOnBoardingCreation().required(),
|
|
481
|
-
}).required();
|
|
482
|
-
}
|
|
483
|
-
|
|
484
467
|
/** @returns {OauthGetUrlParam} */
|
|
485
468
|
static oauthGetUrl() {
|
|
486
469
|
return Joi.object({
|
|
@@ -527,13 +510,6 @@ class PaymentPlatformApplicationValidator {
|
|
|
527
510
|
}).required();
|
|
528
511
|
}
|
|
529
512
|
|
|
530
|
-
/** @returns {RepaymentDetailsParam} */
|
|
531
|
-
static repaymentDetails() {
|
|
532
|
-
return Joi.object({
|
|
533
|
-
body: PaymentPlatformModel.RepaymentDetailsSerialiserPayAll().required(),
|
|
534
|
-
}).required();
|
|
535
|
-
}
|
|
536
|
-
|
|
537
513
|
/** @returns {ResendOrCancelPaymentParam} */
|
|
538
514
|
static resendOrCancelPayment() {
|
|
539
515
|
return Joi.object({
|
|
@@ -157,17 +157,11 @@ export = PaymentPlatformModel;
|
|
|
157
157
|
* @typedef PaymentFlow
|
|
158
158
|
* @property {AggregatorRoute} [bqr_razorpay]
|
|
159
159
|
* @property {AggregatorRoute} [fynd]
|
|
160
|
-
* @property {AggregatorRoute} [epaylater]
|
|
161
160
|
* @property {AggregatorRoute} [razorpay]
|
|
162
161
|
* @property {AggregatorRoute} [juspay]
|
|
163
|
-
* @property {AggregatorRoute} [ajiodhan]
|
|
164
162
|
* @property {AggregatorRoute} [simpl]
|
|
165
|
-
* @property {AggregatorRoute} [rupifi]
|
|
166
|
-
* @property {AggregatorRoute} [mswipe]
|
|
167
|
-
* @property {AggregatorRoute} [stripe]
|
|
168
163
|
* @property {AggregatorRoute} [ccavenue]
|
|
169
164
|
* @property {AggregatorRoute} [payubiz]
|
|
170
|
-
* @property {AggregatorRoute} [jiopay]
|
|
171
165
|
*/
|
|
172
166
|
/**
|
|
173
167
|
* @typedef PaymentOptionAndFlow
|
|
@@ -598,45 +592,6 @@ export = PaymentPlatformModel;
|
|
|
598
592
|
* @property {string} message - The confirmation message of the token revoke.
|
|
599
593
|
* @property {boolean} success - Response is successful or not
|
|
600
594
|
*/
|
|
601
|
-
/**
|
|
602
|
-
* @typedef RepaymentRequestDetails
|
|
603
|
-
* @property {string} fwd_shipment_id - Purchase Shipment Id
|
|
604
|
-
* @property {string} aggregator - Name of Payment Gateway
|
|
605
|
-
* @property {string} current_status - Status
|
|
606
|
-
* @property {string} merchant_order_id - Merchant's Order Id
|
|
607
|
-
* @property {number} amount - Amount to paid back
|
|
608
|
-
* @property {string} payment_mode - Payment Mode
|
|
609
|
-
* @property {number} outstanding_details_id - Outstanding details ID
|
|
610
|
-
* @property {string} aggregator_transaction_id - Unique Id for the transaction
|
|
611
|
-
* @property {string} aggregator_order_id - Id of payment gateway
|
|
612
|
-
* @property {string} payment_mode_identifier - Payment Mode Id
|
|
613
|
-
*/
|
|
614
|
-
/**
|
|
615
|
-
* @typedef RepaymentDetailsSerialiserPayAll
|
|
616
|
-
* @property {number} total_amount - Total amount
|
|
617
|
-
* @property {string} extension_order_id - Order id created in extension
|
|
618
|
-
* @property {string} aggregator_transaction_id - Unique Id for the transaction
|
|
619
|
-
* @property {string} aggregator_order_id - Id of payment gateway
|
|
620
|
-
* @property {RepaymentRequestDetails[]} [shipment_details]
|
|
621
|
-
*/
|
|
622
|
-
/**
|
|
623
|
-
* @typedef RepaymentDetails
|
|
624
|
-
* @property {Object} data
|
|
625
|
-
* @property {boolean} success - Success/Failure of the transaction
|
|
626
|
-
*/
|
|
627
|
-
/**
|
|
628
|
-
* @typedef MerchantOnBoardingCreation
|
|
629
|
-
* @property {string} credit_line_id - Merchant ID at Ajiodhan's end
|
|
630
|
-
* @property {string} aggregator - Payment aggregator name
|
|
631
|
-
* @property {string} app_id - Application id
|
|
632
|
-
* @property {string} user_id - Deadlock or Grimlock user id
|
|
633
|
-
* @property {string} status - Status
|
|
634
|
-
*/
|
|
635
|
-
/**
|
|
636
|
-
* @typedef MerchantOnBoardingDetails
|
|
637
|
-
* @property {Object} data
|
|
638
|
-
* @property {boolean} success - Success/Failure of the transaction
|
|
639
|
-
*/
|
|
640
595
|
/**
|
|
641
596
|
* @typedef ValidateCustomerCreation
|
|
642
597
|
* @property {string} phone_number - User mobile number without country code.
|
|
@@ -1205,7 +1160,7 @@ export = PaymentPlatformModel;
|
|
|
1205
1160
|
declare class PaymentPlatformModel {
|
|
1206
1161
|
}
|
|
1207
1162
|
declare namespace PaymentPlatformModel {
|
|
1208
|
-
export { PaymentGatewayConfigDetails, ErrorCodeDescription, PaymentGatewayConfig, PaymentGatewayConfigCreation, PaymentGatewayToBeReviewed, ErrorCodeAndDescription, HttpErrorDetails, IntentAppErrorList, ProductCODData, CODChargesLimitsDetails, PaymentModeLogo, IntentApp, PaymentModeList, PaymentConfirmationElement, RootPaymentMode, PaymentOptions, AggregatorRoute, PaymentDefaultSelection, PaymentFlow, PaymentOptionAndFlow, AdvanceObject, SplitObject, AdvancePaymentObject, PaymentModeRouteDetails, PaymentOptionsDetails, PayoutCustomer, PayoutMoreAttributes, PayoutAggregator, Payout, PayoutsDetails, PayoutBankDetails, PayoutCreation, PayoutDetails, UpdatePayoutDetails, UpdatePayoutCreation, DeletePayoutDetails, SubscriptionPaymentMethodDetails, DeleteSubscriptionPaymentMethodDetails, SubscriptionConfigDetails, SaveSubscriptionSetupIntentCreation, SaveSubscriptionSetupIntentDetails, RefundAccountDetails, NotFoundResourceError, BankDetailsForOTP, AddBeneficiaryDetailsOTPCreation, IfscCodeDetails, OrderBeneficiaryDetails, OrderBeneficiaryFetchResults, MultiTenderPaymentMeta, MultiTenderPaymentMethod, PaymentConfirmationCreation, PaymentConfirmationDetails, CODdata, CODLimitConfig, CODPaymentLimitConfig, GetUserBULimitResponseSchema, GetUserCODLimitDetails, SetCODForUserCreation, SetCODOptionDetails, PaymentInitializationCreation, PaymentInitializationDetails, PaymentStatusUpdateCreation, PaymentStatusUpdateDetails, ResendOrCancelPaymentCreation, LinkStatus, ResendOrCancelPaymentDetails, PaymentStatusBulkHandlerCreation, PaymentObjectList, PaymentStatusObject, PaymentStatusBulkHandlerDetails, GetOauthUrlDetails, RevokeOAuthToken,
|
|
1163
|
+
export { PaymentGatewayConfigDetails, ErrorCodeDescription, PaymentGatewayConfig, PaymentGatewayConfigCreation, PaymentGatewayToBeReviewed, ErrorCodeAndDescription, HttpErrorDetails, IntentAppErrorList, ProductCODData, CODChargesLimitsDetails, PaymentModeLogo, IntentApp, PaymentModeList, PaymentConfirmationElement, RootPaymentMode, PaymentOptions, AggregatorRoute, PaymentDefaultSelection, PaymentFlow, PaymentOptionAndFlow, AdvanceObject, SplitObject, AdvancePaymentObject, PaymentModeRouteDetails, PaymentOptionsDetails, PayoutCustomer, PayoutMoreAttributes, PayoutAggregator, Payout, PayoutsDetails, PayoutBankDetails, PayoutCreation, PayoutDetails, UpdatePayoutDetails, UpdatePayoutCreation, DeletePayoutDetails, SubscriptionPaymentMethodDetails, DeleteSubscriptionPaymentMethodDetails, SubscriptionConfigDetails, SaveSubscriptionSetupIntentCreation, SaveSubscriptionSetupIntentDetails, RefundAccountDetails, NotFoundResourceError, BankDetailsForOTP, AddBeneficiaryDetailsOTPCreation, IfscCodeDetails, OrderBeneficiaryDetails, OrderBeneficiaryFetchResults, MultiTenderPaymentMeta, MultiTenderPaymentMethod, PaymentConfirmationCreation, PaymentConfirmationDetails, CODdata, CODLimitConfig, CODPaymentLimitConfig, GetUserBULimitResponseSchema, GetUserCODLimitDetails, SetCODForUserCreation, SetCODOptionDetails, PaymentInitializationCreation, PaymentInitializationDetails, PaymentStatusUpdateCreation, PaymentStatusUpdateDetails, ResendOrCancelPaymentCreation, LinkStatus, ResendOrCancelPaymentDetails, PaymentStatusBulkHandlerCreation, PaymentObjectList, PaymentStatusObject, PaymentStatusBulkHandlerDetails, GetOauthUrlDetails, RevokeOAuthToken, ValidateCustomerCreation, ValidateCustomerDetails, GetPaymentLinkDetails, ErrorDescription, ErrorDetails, CreatePaymentLinkMeta, CreatePaymentLinkCreation, CreatePaymentLinkDetails, PollingPaymentLinkDetails, CancelOrResendPaymentLinkCreation, ResendPaymentLinkDetails, CancelPaymentLinkDetails, Code, PaymentCode, GetPaymentCode, GetPaymentCodeDetails, PlatformPaymentModeDetails, MerchnatPaymentModeCreation, SkuDetails, AppliedOffer, OrderDetail, AddressDetail, ReasonDetail, PaymentSessionDetail, PaymentSessionCreation, PaymentSessionPutDetails, RefundSessionDetail, RefundSessionCreation, RefundSessionDetails, PaymentDetails, CartDetails, RefundDetails, PaymentSessionFetchDetails, RefundSourcesPriority, RefundPriorityDetails, RefundPriorityCreation, MerchantPaymentModeCreation, FromConfig, ToConfig, PlatformPaymentModeCopyConfigCreation, PaymentMethodsMetaOrder, PaymentOrderMethods, PaymentOrderCreation, PaymentOrderData, PaymentOrderDetails, AggregatorVersionItemSchema, AggregatorVersionDetails, AggregatorVersionRequestSchema, PatchAggregatorControl, PaymentModeCustomConfigSchema, PaymentCustomConfigDetailsSchema, PaymentCustomConfigCustomerSchema, PaymentCustomConfigModeSchema, PaymentCustomConfigDetailsRequestSchema, PaymentCustomConfigCustomerRequestSchema, PaymentCustomConfigRequestSchema, PaymentCustomConfigResponseSchema, CustomerValidationSchema, UserCreditSchema, CreditAccountSummary, ValidateCustomerCreditSchema };
|
|
1209
1164
|
}
|
|
1210
1165
|
/** @returns {PaymentGatewayConfigDetails} */
|
|
1211
1166
|
declare function PaymentGatewayConfigDetails(): PaymentGatewayConfigDetails;
|
|
@@ -1633,17 +1588,11 @@ declare function PaymentFlow(): PaymentFlow;
|
|
|
1633
1588
|
type PaymentFlow = {
|
|
1634
1589
|
bqr_razorpay?: AggregatorRoute;
|
|
1635
1590
|
fynd?: AggregatorRoute;
|
|
1636
|
-
epaylater?: AggregatorRoute;
|
|
1637
1591
|
razorpay?: AggregatorRoute;
|
|
1638
1592
|
juspay?: AggregatorRoute;
|
|
1639
|
-
ajiodhan?: AggregatorRoute;
|
|
1640
1593
|
simpl?: AggregatorRoute;
|
|
1641
|
-
rupifi?: AggregatorRoute;
|
|
1642
|
-
mswipe?: AggregatorRoute;
|
|
1643
|
-
stripe?: AggregatorRoute;
|
|
1644
1594
|
ccavenue?: AggregatorRoute;
|
|
1645
1595
|
payubiz?: AggregatorRoute;
|
|
1646
|
-
jiopay?: AggregatorRoute;
|
|
1647
1596
|
};
|
|
1648
1597
|
/** @returns {PaymentOptionAndFlow} */
|
|
1649
1598
|
declare function PaymentOptionAndFlow(): PaymentOptionAndFlow;
|
|
@@ -2760,113 +2709,6 @@ type RevokeOAuthToken = {
|
|
|
2760
2709
|
*/
|
|
2761
2710
|
success: boolean;
|
|
2762
2711
|
};
|
|
2763
|
-
/** @returns {RepaymentRequestDetails} */
|
|
2764
|
-
declare function RepaymentRequestDetails(): RepaymentRequestDetails;
|
|
2765
|
-
type RepaymentRequestDetails = {
|
|
2766
|
-
/**
|
|
2767
|
-
* - Purchase Shipment Id
|
|
2768
|
-
*/
|
|
2769
|
-
fwd_shipment_id: string;
|
|
2770
|
-
/**
|
|
2771
|
-
* - Name of Payment Gateway
|
|
2772
|
-
*/
|
|
2773
|
-
aggregator: string;
|
|
2774
|
-
/**
|
|
2775
|
-
* - Status
|
|
2776
|
-
*/
|
|
2777
|
-
current_status: string;
|
|
2778
|
-
/**
|
|
2779
|
-
* - Merchant's Order Id
|
|
2780
|
-
*/
|
|
2781
|
-
merchant_order_id: string;
|
|
2782
|
-
/**
|
|
2783
|
-
* - Amount to paid back
|
|
2784
|
-
*/
|
|
2785
|
-
amount: number;
|
|
2786
|
-
/**
|
|
2787
|
-
* - Payment Mode
|
|
2788
|
-
*/
|
|
2789
|
-
payment_mode: string;
|
|
2790
|
-
/**
|
|
2791
|
-
* - Outstanding details ID
|
|
2792
|
-
*/
|
|
2793
|
-
outstanding_details_id: number;
|
|
2794
|
-
/**
|
|
2795
|
-
* - Unique Id for the transaction
|
|
2796
|
-
*/
|
|
2797
|
-
aggregator_transaction_id: string;
|
|
2798
|
-
/**
|
|
2799
|
-
* - Id of payment gateway
|
|
2800
|
-
*/
|
|
2801
|
-
aggregator_order_id: string;
|
|
2802
|
-
/**
|
|
2803
|
-
* - Payment Mode Id
|
|
2804
|
-
*/
|
|
2805
|
-
payment_mode_identifier: string;
|
|
2806
|
-
};
|
|
2807
|
-
/** @returns {RepaymentDetailsSerialiserPayAll} */
|
|
2808
|
-
declare function RepaymentDetailsSerialiserPayAll(): RepaymentDetailsSerialiserPayAll;
|
|
2809
|
-
type RepaymentDetailsSerialiserPayAll = {
|
|
2810
|
-
/**
|
|
2811
|
-
* - Total amount
|
|
2812
|
-
*/
|
|
2813
|
-
total_amount: number;
|
|
2814
|
-
/**
|
|
2815
|
-
* - Order id created in extension
|
|
2816
|
-
*/
|
|
2817
|
-
extension_order_id: string;
|
|
2818
|
-
/**
|
|
2819
|
-
* - Unique Id for the transaction
|
|
2820
|
-
*/
|
|
2821
|
-
aggregator_transaction_id: string;
|
|
2822
|
-
/**
|
|
2823
|
-
* - Id of payment gateway
|
|
2824
|
-
*/
|
|
2825
|
-
aggregator_order_id: string;
|
|
2826
|
-
shipment_details?: RepaymentRequestDetails[];
|
|
2827
|
-
};
|
|
2828
|
-
/** @returns {RepaymentDetails} */
|
|
2829
|
-
declare function RepaymentDetails(): RepaymentDetails;
|
|
2830
|
-
type RepaymentDetails = {
|
|
2831
|
-
data: any;
|
|
2832
|
-
/**
|
|
2833
|
-
* - Success/Failure of the transaction
|
|
2834
|
-
*/
|
|
2835
|
-
success: boolean;
|
|
2836
|
-
};
|
|
2837
|
-
/** @returns {MerchantOnBoardingCreation} */
|
|
2838
|
-
declare function MerchantOnBoardingCreation(): MerchantOnBoardingCreation;
|
|
2839
|
-
type MerchantOnBoardingCreation = {
|
|
2840
|
-
/**
|
|
2841
|
-
* - Merchant ID at Ajiodhan's end
|
|
2842
|
-
*/
|
|
2843
|
-
credit_line_id: string;
|
|
2844
|
-
/**
|
|
2845
|
-
* - Payment aggregator name
|
|
2846
|
-
*/
|
|
2847
|
-
aggregator: string;
|
|
2848
|
-
/**
|
|
2849
|
-
* - Application id
|
|
2850
|
-
*/
|
|
2851
|
-
app_id: string;
|
|
2852
|
-
/**
|
|
2853
|
-
* - Deadlock or Grimlock user id
|
|
2854
|
-
*/
|
|
2855
|
-
user_id: string;
|
|
2856
|
-
/**
|
|
2857
|
-
* - Status
|
|
2858
|
-
*/
|
|
2859
|
-
status: string;
|
|
2860
|
-
};
|
|
2861
|
-
/** @returns {MerchantOnBoardingDetails} */
|
|
2862
|
-
declare function MerchantOnBoardingDetails(): MerchantOnBoardingDetails;
|
|
2863
|
-
type MerchantOnBoardingDetails = {
|
|
2864
|
-
data: any;
|
|
2865
|
-
/**
|
|
2866
|
-
* - Success/Failure of the transaction
|
|
2867
|
-
*/
|
|
2868
|
-
success: boolean;
|
|
2869
|
-
};
|
|
2870
2712
|
/** @returns {ValidateCustomerCreation} */
|
|
2871
2713
|
declare function ValidateCustomerCreation(): ValidateCustomerCreation;
|
|
2872
2714
|
type ValidateCustomerCreation = {
|