@gofynd/fdk-client-javascript 1.3.4-beta.1 → 1.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +18 -1
- package/sdk/application/Catalog/CatalogApplicationModel.js +20 -0
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +23 -9
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +21 -7
- package/sdk/application/User/UserApplicationClient.d.ts +56 -0
- package/sdk/application/User/UserApplicationClient.js +385 -0
- package/sdk/application/User/UserApplicationModel.d.ts +93 -1
- package/sdk/application/User/UserApplicationModel.js +110 -0
- package/sdk/application/User/UserApplicationValidator.d.ts +66 -1
- package/sdk/application/User/UserApplicationValidator.js +68 -0
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +96 -0
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +177 -0
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +139 -0
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +158 -0
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +6 -0
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +33 -0
- package/sdk/partner/PartnerClient.d.ts +2 -0
- package/sdk/partner/PartnerClient.js +3 -0
- package/sdk/partner/index.d.ts +1 -0
- package/sdk/partner/index.js +2 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +4 -16
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +11 -79
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +12 -8
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +7 -9
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +37 -27
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +145 -56
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +22 -11
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +24 -10
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +4 -4
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +4 -8
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +832 -150
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +940 -138
- package/sdk/platform/Order/OrderPlatformClient.d.ts +2 -2
- package/sdk/platform/Order/OrderPlatformClient.js +1 -1
- package/sdk/platform/Order/OrderPlatformModel.d.ts +10 -2
- package/sdk/platform/Order/OrderPlatformModel.js +10 -2
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +4 -4
- package/sdk/platform/Order/OrderPlatformValidator.js +4 -4
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +42 -0
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +241 -0
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +41 -1
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +40 -0
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +72 -1
- package/sdk/platform/Payment/PaymentPlatformModel.js +54 -0
|
@@ -240,7 +240,7 @@ declare class Order {
|
|
|
240
240
|
* will be used as the target for the search operation
|
|
241
241
|
* @param {string} [arg.bagStatus] - Bag_status refers to status of the
|
|
242
242
|
* entity. Filters orders based on the status.
|
|
243
|
-
* @param {
|
|
243
|
+
* @param {number} [arg.timeToDispatch] - Time_to_dispatch refers to
|
|
244
244
|
* estimated SLA time.
|
|
245
245
|
* @param {string} [arg.paymentMethods] -
|
|
246
246
|
* @param {string} [arg.tags] - Tags refers to additional descriptive labels
|
|
@@ -268,7 +268,7 @@ declare class Order {
|
|
|
268
268
|
lane?: string;
|
|
269
269
|
searchType?: string;
|
|
270
270
|
bagStatus?: string;
|
|
271
|
-
timeToDispatch?:
|
|
271
|
+
timeToDispatch?: number;
|
|
272
272
|
paymentMethods?: string;
|
|
273
273
|
tags?: string;
|
|
274
274
|
searchValue?: string;
|
|
@@ -1936,7 +1936,7 @@ class Order {
|
|
|
1936
1936
|
* will be used as the target for the search operation
|
|
1937
1937
|
* @param {string} [arg.bagStatus] - Bag_status refers to status of the
|
|
1938
1938
|
* entity. Filters orders based on the status.
|
|
1939
|
-
* @param {
|
|
1939
|
+
* @param {number} [arg.timeToDispatch] - Time_to_dispatch refers to
|
|
1940
1940
|
* estimated SLA time.
|
|
1941
1941
|
* @param {string} [arg.paymentMethods] -
|
|
1942
1942
|
* @param {string} [arg.tags] - Tags refers to additional descriptive labels
|
|
@@ -1180,7 +1180,7 @@ export = OrderPlatformModel;
|
|
|
1180
1180
|
/**
|
|
1181
1181
|
* @typedef OrderBrandName
|
|
1182
1182
|
* @property {string} [brand_name]
|
|
1183
|
-
* @property {number} company
|
|
1183
|
+
* @property {number} [company]
|
|
1184
1184
|
* @property {string} [created_on]
|
|
1185
1185
|
* @property {number} id
|
|
1186
1186
|
* @property {string} [logo]
|
|
@@ -1879,6 +1879,7 @@ export = OrderPlatformModel;
|
|
|
1879
1879
|
* @property {Formatted} [formatted]
|
|
1880
1880
|
* @property {string} [fulfilment_priority_text]
|
|
1881
1881
|
* @property {boolean} [is_international]
|
|
1882
|
+
* @property {boolean} [is_self_ship]
|
|
1882
1883
|
* @property {LockData} [lock_data]
|
|
1883
1884
|
* @property {string} [order_type]
|
|
1884
1885
|
* @property {string} [packaging_name]
|
|
@@ -1927,12 +1928,14 @@ export = OrderPlatformModel;
|
|
|
1927
1928
|
* @property {string} [dp_sort_key]
|
|
1928
1929
|
* @property {string} [due_date]
|
|
1929
1930
|
* @property {EinvoiceInfo} [einvoice_info]
|
|
1931
|
+
* @property {string} [estimated_delivery_date]
|
|
1930
1932
|
* @property {Object} [ewaybill_info]
|
|
1931
1933
|
* @property {Object} [external]
|
|
1932
1934
|
* @property {Formatted} [formatted]
|
|
1933
1935
|
* @property {string} [forward_affiliate_order_id]
|
|
1934
1936
|
* @property {string} [forward_affiliate_shipment_id]
|
|
1935
1937
|
* @property {string} [fulfilment_priority_text]
|
|
1938
|
+
* @property {boolean} [is_self_ship]
|
|
1936
1939
|
* @property {LockData} [lock_data]
|
|
1937
1940
|
* @property {string} [marketplace_store_id]
|
|
1938
1941
|
* @property {string} [order_type]
|
|
@@ -1951,6 +1954,7 @@ export = OrderPlatformModel;
|
|
|
1951
1954
|
* @property {number} [shipment_weight]
|
|
1952
1955
|
* @property {string} [store_invoice_updated_date]
|
|
1953
1956
|
* @property {ShipmentTimeStamp} [timestamp]
|
|
1957
|
+
* @property {string} [tracking_url]
|
|
1954
1958
|
* @property {number} weight
|
|
1955
1959
|
*/
|
|
1956
1960
|
/**
|
|
@@ -3836,7 +3840,7 @@ type OrderBags = {
|
|
|
3836
3840
|
declare function OrderBrandName(): OrderBrandName;
|
|
3837
3841
|
type OrderBrandName = {
|
|
3838
3842
|
brand_name?: string;
|
|
3839
|
-
company
|
|
3843
|
+
company?: number;
|
|
3840
3844
|
created_on?: string;
|
|
3841
3845
|
id: number;
|
|
3842
3846
|
logo?: string;
|
|
@@ -4661,6 +4665,7 @@ type ShipmentItemMeta = {
|
|
|
4661
4665
|
formatted?: Formatted;
|
|
4662
4666
|
fulfilment_priority_text?: string;
|
|
4663
4667
|
is_international?: boolean;
|
|
4668
|
+
is_self_ship?: boolean;
|
|
4664
4669
|
lock_data?: LockData;
|
|
4665
4670
|
order_type?: string;
|
|
4666
4671
|
packaging_name?: string;
|
|
@@ -4712,12 +4717,14 @@ type ShipmentMeta = {
|
|
|
4712
4717
|
dp_sort_key?: string;
|
|
4713
4718
|
due_date?: string;
|
|
4714
4719
|
einvoice_info?: EinvoiceInfo;
|
|
4720
|
+
estimated_delivery_date?: string;
|
|
4715
4721
|
ewaybill_info?: any;
|
|
4716
4722
|
external?: any;
|
|
4717
4723
|
formatted?: Formatted;
|
|
4718
4724
|
forward_affiliate_order_id?: string;
|
|
4719
4725
|
forward_affiliate_shipment_id?: string;
|
|
4720
4726
|
fulfilment_priority_text?: string;
|
|
4727
|
+
is_self_ship?: boolean;
|
|
4721
4728
|
lock_data?: LockData;
|
|
4722
4729
|
marketplace_store_id?: string;
|
|
4723
4730
|
order_type?: string;
|
|
@@ -4736,6 +4743,7 @@ type ShipmentMeta = {
|
|
|
4736
4743
|
shipment_weight?: number;
|
|
4737
4744
|
store_invoice_updated_date?: string;
|
|
4738
4745
|
timestamp?: ShipmentTimeStamp;
|
|
4746
|
+
tracking_url?: string;
|
|
4739
4747
|
weight: number;
|
|
4740
4748
|
};
|
|
4741
4749
|
/** @returns {ShipmentPayments} */
|
|
@@ -1309,7 +1309,7 @@ const Joi = require("joi");
|
|
|
1309
1309
|
/**
|
|
1310
1310
|
* @typedef OrderBrandName
|
|
1311
1311
|
* @property {string} [brand_name]
|
|
1312
|
-
* @property {number} company
|
|
1312
|
+
* @property {number} [company]
|
|
1313
1313
|
* @property {string} [created_on]
|
|
1314
1314
|
* @property {number} id
|
|
1315
1315
|
* @property {string} [logo]
|
|
@@ -2083,6 +2083,7 @@ const Joi = require("joi");
|
|
|
2083
2083
|
* @property {Formatted} [formatted]
|
|
2084
2084
|
* @property {string} [fulfilment_priority_text]
|
|
2085
2085
|
* @property {boolean} [is_international]
|
|
2086
|
+
* @property {boolean} [is_self_ship]
|
|
2086
2087
|
* @property {LockData} [lock_data]
|
|
2087
2088
|
* @property {string} [order_type]
|
|
2088
2089
|
* @property {string} [packaging_name]
|
|
@@ -2134,12 +2135,14 @@ const Joi = require("joi");
|
|
|
2134
2135
|
* @property {string} [dp_sort_key]
|
|
2135
2136
|
* @property {string} [due_date]
|
|
2136
2137
|
* @property {EinvoiceInfo} [einvoice_info]
|
|
2138
|
+
* @property {string} [estimated_delivery_date]
|
|
2137
2139
|
* @property {Object} [ewaybill_info]
|
|
2138
2140
|
* @property {Object} [external]
|
|
2139
2141
|
* @property {Formatted} [formatted]
|
|
2140
2142
|
* @property {string} [forward_affiliate_order_id]
|
|
2141
2143
|
* @property {string} [forward_affiliate_shipment_id]
|
|
2142
2144
|
* @property {string} [fulfilment_priority_text]
|
|
2145
|
+
* @property {boolean} [is_self_ship]
|
|
2143
2146
|
* @property {LockData} [lock_data]
|
|
2144
2147
|
* @property {string} [marketplace_store_id]
|
|
2145
2148
|
* @property {string} [order_type]
|
|
@@ -2158,6 +2161,7 @@ const Joi = require("joi");
|
|
|
2158
2161
|
* @property {number} [shipment_weight]
|
|
2159
2162
|
* @property {string} [store_invoice_updated_date]
|
|
2160
2163
|
* @property {ShipmentTimeStamp} [timestamp]
|
|
2164
|
+
* @property {string} [tracking_url]
|
|
2161
2165
|
* @property {number} weight
|
|
2162
2166
|
*/
|
|
2163
2167
|
|
|
@@ -4183,7 +4187,7 @@ class OrderPlatformModel {
|
|
|
4183
4187
|
static OrderBrandName() {
|
|
4184
4188
|
return Joi.object({
|
|
4185
4189
|
brand_name: Joi.string().allow("").allow(null),
|
|
4186
|
-
company: Joi.number().allow(null)
|
|
4190
|
+
company: Joi.number().allow(null),
|
|
4187
4191
|
created_on: Joi.string().allow("").allow(null),
|
|
4188
4192
|
id: Joi.number().required(),
|
|
4189
4193
|
logo: Joi.string().allow("").allow(null),
|
|
@@ -5119,6 +5123,7 @@ class OrderPlatformModel {
|
|
|
5119
5123
|
formatted: OrderPlatformModel.Formatted(),
|
|
5120
5124
|
fulfilment_priority_text: Joi.string().allow("").allow(null),
|
|
5121
5125
|
is_international: Joi.boolean().allow(null),
|
|
5126
|
+
is_self_ship: Joi.boolean().allow(null),
|
|
5122
5127
|
lock_data: OrderPlatformModel.LockData(),
|
|
5123
5128
|
order_type: Joi.string().allow("").allow(null),
|
|
5124
5129
|
packaging_name: Joi.string().allow("").allow(null),
|
|
@@ -5176,12 +5181,14 @@ class OrderPlatformModel {
|
|
|
5176
5181
|
dp_sort_key: Joi.string().allow("").allow(null),
|
|
5177
5182
|
due_date: Joi.string().allow("").allow(null),
|
|
5178
5183
|
einvoice_info: OrderPlatformModel.EinvoiceInfo(),
|
|
5184
|
+
estimated_delivery_date: Joi.string().allow("").allow(null),
|
|
5179
5185
|
ewaybill_info: Joi.any().allow(null),
|
|
5180
5186
|
external: Joi.any().allow(null),
|
|
5181
5187
|
formatted: OrderPlatformModel.Formatted(),
|
|
5182
5188
|
forward_affiliate_order_id: Joi.string().allow("").allow(null),
|
|
5183
5189
|
forward_affiliate_shipment_id: Joi.string().allow("").allow(null),
|
|
5184
5190
|
fulfilment_priority_text: Joi.string().allow("").allow(null),
|
|
5191
|
+
is_self_ship: Joi.boolean().allow(null),
|
|
5185
5192
|
lock_data: OrderPlatformModel.LockData(),
|
|
5186
5193
|
marketplace_store_id: Joi.string().allow("").allow(null),
|
|
5187
5194
|
order_type: Joi.string().allow("").allow(null),
|
|
@@ -5200,6 +5207,7 @@ class OrderPlatformModel {
|
|
|
5200
5207
|
shipment_weight: Joi.number().allow(null),
|
|
5201
5208
|
store_invoice_updated_date: Joi.string().allow("").allow(null),
|
|
5202
5209
|
timestamp: OrderPlatformModel.ShipmentTimeStamp(),
|
|
5210
|
+
tracking_url: Joi.string().allow("").allow(null),
|
|
5203
5211
|
weight: Joi.number().required(),
|
|
5204
5212
|
});
|
|
5205
5213
|
}
|
|
@@ -112,7 +112,7 @@ export = OrderPlatformValidator;
|
|
|
112
112
|
* @property {string} [searchType]
|
|
113
113
|
* @property {string} [searchValue]
|
|
114
114
|
* @property {string} [tags]
|
|
115
|
-
* @property {
|
|
115
|
+
* @property {number} [timeToDispatch]
|
|
116
116
|
* @property {string} [paymentMethods]
|
|
117
117
|
* @property {boolean} [myOrders]
|
|
118
118
|
* @property {boolean} [showCrossCompanyData] - Flag to view cross & non-cross
|
|
@@ -131,7 +131,7 @@ export = OrderPlatformValidator;
|
|
|
131
131
|
* be used as the target for the search operation
|
|
132
132
|
* @property {string} [bagStatus] - Bag_status refers to status of the entity.
|
|
133
133
|
* Filters orders based on the status.
|
|
134
|
-
* @property {
|
|
134
|
+
* @property {number} [timeToDispatch] - Time_to_dispatch refers to estimated SLA time.
|
|
135
135
|
* @property {string} [paymentMethods]
|
|
136
136
|
* @property {string} [tags] - Tags refers to additional descriptive labels
|
|
137
137
|
* associated with the order
|
|
@@ -588,7 +588,7 @@ type GetLaneConfigParam = {
|
|
|
588
588
|
searchType?: string;
|
|
589
589
|
searchValue?: string;
|
|
590
590
|
tags?: string;
|
|
591
|
-
timeToDispatch?:
|
|
591
|
+
timeToDispatch?: number;
|
|
592
592
|
paymentMethods?: string;
|
|
593
593
|
myOrders?: boolean;
|
|
594
594
|
/**
|
|
@@ -620,7 +620,7 @@ type GetOrdersParam = {
|
|
|
620
620
|
/**
|
|
621
621
|
* - Time_to_dispatch refers to estimated SLA time.
|
|
622
622
|
*/
|
|
623
|
-
timeToDispatch?:
|
|
623
|
+
timeToDispatch?: number;
|
|
624
624
|
paymentMethods?: string;
|
|
625
625
|
/**
|
|
626
626
|
* - Tags refers to additional descriptive labels
|
|
@@ -134,7 +134,7 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
134
134
|
* @property {string} [searchType]
|
|
135
135
|
* @property {string} [searchValue]
|
|
136
136
|
* @property {string} [tags]
|
|
137
|
-
* @property {
|
|
137
|
+
* @property {number} [timeToDispatch]
|
|
138
138
|
* @property {string} [paymentMethods]
|
|
139
139
|
* @property {boolean} [myOrders]
|
|
140
140
|
* @property {boolean} [showCrossCompanyData] - Flag to view cross & non-cross
|
|
@@ -155,7 +155,7 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
155
155
|
* be used as the target for the search operation
|
|
156
156
|
* @property {string} [bagStatus] - Bag_status refers to status of the entity.
|
|
157
157
|
* Filters orders based on the status.
|
|
158
|
-
* @property {
|
|
158
|
+
* @property {number} [timeToDispatch] - Time_to_dispatch refers to estimated SLA time.
|
|
159
159
|
* @property {string} [paymentMethods]
|
|
160
160
|
* @property {string} [tags] - Tags refers to additional descriptive labels
|
|
161
161
|
* associated with the order
|
|
@@ -505,7 +505,7 @@ class OrderPlatformValidator {
|
|
|
505
505
|
searchType: Joi.string().allow(""),
|
|
506
506
|
searchValue: Joi.string().allow(""),
|
|
507
507
|
tags: Joi.string().allow(""),
|
|
508
|
-
timeToDispatch: Joi.
|
|
508
|
+
timeToDispatch: Joi.number(),
|
|
509
509
|
paymentMethods: Joi.string().allow(""),
|
|
510
510
|
myOrders: Joi.boolean(),
|
|
511
511
|
showCrossCompanyData: Joi.boolean(),
|
|
@@ -526,7 +526,7 @@ class OrderPlatformValidator {
|
|
|
526
526
|
lane: Joi.string().allow(""),
|
|
527
527
|
searchType: Joi.string().allow(""),
|
|
528
528
|
bagStatus: Joi.string().allow(""),
|
|
529
|
-
timeToDispatch: Joi.
|
|
529
|
+
timeToDispatch: Joi.number(),
|
|
530
530
|
paymentMethods: Joi.string().allow(""),
|
|
531
531
|
tags: Joi.string().allow(""),
|
|
532
532
|
searchValue: Joi.string().allow(""),
|
|
@@ -62,6 +62,20 @@ declare class Payment {
|
|
|
62
62
|
* @description: Use this API to confirm payment after payment gateway accepted payment. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/confirmPayment/).
|
|
63
63
|
*/
|
|
64
64
|
confirmPayment({ body, requestHeaders }?: PaymentPlatformApplicationValidator.ConfirmPaymentParam, { responseHeaders }?: object): Promise<PaymentPlatformModel.PaymentConfirmationResponse>;
|
|
65
|
+
/**
|
|
66
|
+
* @param {PaymentPlatformApplicationValidator.CreateMerchantRefundPriorityParam} arg
|
|
67
|
+
* - Arg object
|
|
68
|
+
*
|
|
69
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
70
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
71
|
+
* @returns {Promise<PaymentPlatformModel.RefundPriorityResponseSerializer>}
|
|
72
|
+
* - Success response
|
|
73
|
+
*
|
|
74
|
+
* @name createMerchantRefundPriority
|
|
75
|
+
* @summary: API to create merchant refund priority
|
|
76
|
+
* @description: API to update merchant refund priority - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/createMerchantRefundPriority/).
|
|
77
|
+
*/
|
|
78
|
+
createMerchantRefundPriority({ configType, body, requestHeaders }?: PaymentPlatformApplicationValidator.CreateMerchantRefundPriorityParam, { responseHeaders }?: object): Promise<PaymentPlatformModel.RefundPriorityResponseSerializer>;
|
|
65
79
|
/**
|
|
66
80
|
* @param {PaymentPlatformApplicationValidator.CreatePaymentLinkParam} arg
|
|
67
81
|
* - Arg object
|
|
@@ -171,6 +185,20 @@ declare class Payment {
|
|
|
171
185
|
* @description: This api fetches all the available PGs for merchant and its offline payment mode details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getMerchantPaymentOption/).
|
|
172
186
|
*/
|
|
173
187
|
getMerchantPaymentOption({ requestHeaders }?: any, { responseHeaders }?: object): Promise<PaymentPlatformModel.MerchnatPaymentModeResponse>;
|
|
188
|
+
/**
|
|
189
|
+
* @param {PaymentPlatformApplicationValidator.GetMerchantRefundPriorityParam} arg
|
|
190
|
+
* - Arg object
|
|
191
|
+
*
|
|
192
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
193
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
194
|
+
* @returns {Promise<PaymentPlatformModel.RefundPriorityResponseSerializer>}
|
|
195
|
+
* - Success response
|
|
196
|
+
*
|
|
197
|
+
* @name getMerchantRefundPriority
|
|
198
|
+
* @summary: API to get merchant refund priority
|
|
199
|
+
* @description: API to get merchant refund priority - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getMerchantRefundPriority/).
|
|
200
|
+
*/
|
|
201
|
+
getMerchantRefundPriority({ configType, requestHeaders }?: PaymentPlatformApplicationValidator.GetMerchantRefundPriorityParam, { responseHeaders }?: object): Promise<PaymentPlatformModel.RefundPriorityResponseSerializer>;
|
|
174
202
|
/**
|
|
175
203
|
* @param {PaymentPlatformApplicationValidator.GetPGConfigAggregatorsParam} arg
|
|
176
204
|
* - Arg object
|
|
@@ -438,6 +466,20 @@ declare class Payment {
|
|
|
438
466
|
* @description: Use this API to map new edc device to the terminal - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/updateEdcDevice/).
|
|
439
467
|
*/
|
|
440
468
|
updateEdcDevice({ body, requestHeaders }?: PaymentPlatformApplicationValidator.UpdateEdcDeviceParam, { responseHeaders }?: object): Promise<PaymentPlatformModel.EdcDeviceAddResponse>;
|
|
469
|
+
/**
|
|
470
|
+
* @param {PaymentPlatformApplicationValidator.UpdateMerchantRefundPriorityParam} arg
|
|
471
|
+
* - Arg object
|
|
472
|
+
*
|
|
473
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
474
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
475
|
+
* @returns {Promise<PaymentPlatformModel.RefundPriorityResponseSerializer>}
|
|
476
|
+
* - Success response
|
|
477
|
+
*
|
|
478
|
+
* @name updateMerchantRefundPriority
|
|
479
|
+
* @summary: API to update merchant refund priority
|
|
480
|
+
* @description: API to update merchant refund priority - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/updateMerchantRefundPriority/).
|
|
481
|
+
*/
|
|
482
|
+
updateMerchantRefundPriority({ configType, body, requestHeaders }?: PaymentPlatformApplicationValidator.UpdateMerchantRefundPriorityParam, { responseHeaders }?: object): Promise<PaymentPlatformModel.RefundPriorityResponseSerializer>;
|
|
441
483
|
/**
|
|
442
484
|
* @param {PaymentPlatformApplicationValidator.UpdatePaymentSessionParam} arg
|
|
443
485
|
* - Arg object
|
|
@@ -398,6 +398,87 @@ class Payment {
|
|
|
398
398
|
return response;
|
|
399
399
|
}
|
|
400
400
|
|
|
401
|
+
/**
|
|
402
|
+
* @param {PaymentPlatformApplicationValidator.CreateMerchantRefundPriorityParam} arg
|
|
403
|
+
* - Arg object
|
|
404
|
+
*
|
|
405
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
406
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
407
|
+
* @returns {Promise<PaymentPlatformModel.RefundPriorityResponseSerializer>}
|
|
408
|
+
* - Success response
|
|
409
|
+
*
|
|
410
|
+
* @name createMerchantRefundPriority
|
|
411
|
+
* @summary: API to create merchant refund priority
|
|
412
|
+
* @description: API to update merchant refund priority - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/createMerchantRefundPriority/).
|
|
413
|
+
*/
|
|
414
|
+
async createMerchantRefundPriority(
|
|
415
|
+
{ configType, body, requestHeaders } = { requestHeaders: {} },
|
|
416
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
417
|
+
) {
|
|
418
|
+
const {
|
|
419
|
+
error,
|
|
420
|
+
} = PaymentPlatformApplicationValidator.createMerchantRefundPriority().validate(
|
|
421
|
+
{
|
|
422
|
+
configType,
|
|
423
|
+
body,
|
|
424
|
+
},
|
|
425
|
+
{ abortEarly: false, allowUnknown: true }
|
|
426
|
+
);
|
|
427
|
+
if (error) {
|
|
428
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
// Showing warrnings if extra unknown parameters are found
|
|
432
|
+
const {
|
|
433
|
+
error: warrning,
|
|
434
|
+
} = PaymentPlatformApplicationValidator.createMerchantRefundPriority().validate(
|
|
435
|
+
{
|
|
436
|
+
configType,
|
|
437
|
+
body,
|
|
438
|
+
},
|
|
439
|
+
{ abortEarly: false, allowUnknown: false }
|
|
440
|
+
);
|
|
441
|
+
if (warrning) {
|
|
442
|
+
Logger({
|
|
443
|
+
level: "WARN",
|
|
444
|
+
message: `Parameter Validation warrnings for platform > Payment > createMerchantRefundPriority \n ${warrning}`,
|
|
445
|
+
});
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
const query_params = {};
|
|
449
|
+
|
|
450
|
+
const response = await PlatformAPIClient.execute(
|
|
451
|
+
this.config,
|
|
452
|
+
"post",
|
|
453
|
+
`/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/refund_priority/config/${configType}`,
|
|
454
|
+
query_params,
|
|
455
|
+
body,
|
|
456
|
+
requestHeaders,
|
|
457
|
+
{ responseHeaders }
|
|
458
|
+
);
|
|
459
|
+
|
|
460
|
+
let responseData = response;
|
|
461
|
+
if (responseHeaders) {
|
|
462
|
+
responseData = response[0];
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
const {
|
|
466
|
+
error: res_error,
|
|
467
|
+
} = PaymentPlatformModel.RefundPriorityResponseSerializer().validate(
|
|
468
|
+
responseData,
|
|
469
|
+
{ abortEarly: false, allowUnknown: false }
|
|
470
|
+
);
|
|
471
|
+
|
|
472
|
+
if (res_error) {
|
|
473
|
+
Logger({
|
|
474
|
+
level: "WARN",
|
|
475
|
+
message: `Response Validation Warnnings for platform > Payment > createMerchantRefundPriority \n ${res_error}`,
|
|
476
|
+
});
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
return response;
|
|
480
|
+
}
|
|
481
|
+
|
|
401
482
|
/**
|
|
402
483
|
* @param {PaymentPlatformApplicationValidator.CreatePaymentLinkParam} arg
|
|
403
484
|
* - Arg object
|
|
@@ -1113,6 +1194,85 @@ class Payment {
|
|
|
1113
1194
|
return response;
|
|
1114
1195
|
}
|
|
1115
1196
|
|
|
1197
|
+
/**
|
|
1198
|
+
* @param {PaymentPlatformApplicationValidator.GetMerchantRefundPriorityParam} arg
|
|
1199
|
+
* - Arg object
|
|
1200
|
+
*
|
|
1201
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1202
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1203
|
+
* @returns {Promise<PaymentPlatformModel.RefundPriorityResponseSerializer>}
|
|
1204
|
+
* - Success response
|
|
1205
|
+
*
|
|
1206
|
+
* @name getMerchantRefundPriority
|
|
1207
|
+
* @summary: API to get merchant refund priority
|
|
1208
|
+
* @description: API to get merchant refund priority - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getMerchantRefundPriority/).
|
|
1209
|
+
*/
|
|
1210
|
+
async getMerchantRefundPriority(
|
|
1211
|
+
{ configType, requestHeaders } = { requestHeaders: {} },
|
|
1212
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1213
|
+
) {
|
|
1214
|
+
const {
|
|
1215
|
+
error,
|
|
1216
|
+
} = PaymentPlatformApplicationValidator.getMerchantRefundPriority().validate(
|
|
1217
|
+
{
|
|
1218
|
+
configType,
|
|
1219
|
+
},
|
|
1220
|
+
{ abortEarly: false, allowUnknown: true }
|
|
1221
|
+
);
|
|
1222
|
+
if (error) {
|
|
1223
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1227
|
+
const {
|
|
1228
|
+
error: warrning,
|
|
1229
|
+
} = PaymentPlatformApplicationValidator.getMerchantRefundPriority().validate(
|
|
1230
|
+
{
|
|
1231
|
+
configType,
|
|
1232
|
+
},
|
|
1233
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1234
|
+
);
|
|
1235
|
+
if (warrning) {
|
|
1236
|
+
Logger({
|
|
1237
|
+
level: "WARN",
|
|
1238
|
+
message: `Parameter Validation warrnings for platform > Payment > getMerchantRefundPriority \n ${warrning}`,
|
|
1239
|
+
});
|
|
1240
|
+
}
|
|
1241
|
+
|
|
1242
|
+
const query_params = {};
|
|
1243
|
+
|
|
1244
|
+
const response = await PlatformAPIClient.execute(
|
|
1245
|
+
this.config,
|
|
1246
|
+
"get",
|
|
1247
|
+
`/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/refund_priority/config/${configType}`,
|
|
1248
|
+
query_params,
|
|
1249
|
+
undefined,
|
|
1250
|
+
requestHeaders,
|
|
1251
|
+
{ responseHeaders }
|
|
1252
|
+
);
|
|
1253
|
+
|
|
1254
|
+
let responseData = response;
|
|
1255
|
+
if (responseHeaders) {
|
|
1256
|
+
responseData = response[0];
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1259
|
+
const {
|
|
1260
|
+
error: res_error,
|
|
1261
|
+
} = PaymentPlatformModel.RefundPriorityResponseSerializer().validate(
|
|
1262
|
+
responseData,
|
|
1263
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1264
|
+
);
|
|
1265
|
+
|
|
1266
|
+
if (res_error) {
|
|
1267
|
+
Logger({
|
|
1268
|
+
level: "WARN",
|
|
1269
|
+
message: `Response Validation Warnnings for platform > Payment > getMerchantRefundPriority \n ${res_error}`,
|
|
1270
|
+
});
|
|
1271
|
+
}
|
|
1272
|
+
|
|
1273
|
+
return response;
|
|
1274
|
+
}
|
|
1275
|
+
|
|
1116
1276
|
/**
|
|
1117
1277
|
* @param {PaymentPlatformApplicationValidator.GetPGConfigAggregatorsParam} arg
|
|
1118
1278
|
* - Arg object
|
|
@@ -2848,6 +3008,87 @@ class Payment {
|
|
|
2848
3008
|
return response;
|
|
2849
3009
|
}
|
|
2850
3010
|
|
|
3011
|
+
/**
|
|
3012
|
+
* @param {PaymentPlatformApplicationValidator.UpdateMerchantRefundPriorityParam} arg
|
|
3013
|
+
* - Arg object
|
|
3014
|
+
*
|
|
3015
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3016
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3017
|
+
* @returns {Promise<PaymentPlatformModel.RefundPriorityResponseSerializer>}
|
|
3018
|
+
* - Success response
|
|
3019
|
+
*
|
|
3020
|
+
* @name updateMerchantRefundPriority
|
|
3021
|
+
* @summary: API to update merchant refund priority
|
|
3022
|
+
* @description: API to update merchant refund priority - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/updateMerchantRefundPriority/).
|
|
3023
|
+
*/
|
|
3024
|
+
async updateMerchantRefundPriority(
|
|
3025
|
+
{ configType, body, requestHeaders } = { requestHeaders: {} },
|
|
3026
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
3027
|
+
) {
|
|
3028
|
+
const {
|
|
3029
|
+
error,
|
|
3030
|
+
} = PaymentPlatformApplicationValidator.updateMerchantRefundPriority().validate(
|
|
3031
|
+
{
|
|
3032
|
+
configType,
|
|
3033
|
+
body,
|
|
3034
|
+
},
|
|
3035
|
+
{ abortEarly: false, allowUnknown: true }
|
|
3036
|
+
);
|
|
3037
|
+
if (error) {
|
|
3038
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
3039
|
+
}
|
|
3040
|
+
|
|
3041
|
+
// Showing warrnings if extra unknown parameters are found
|
|
3042
|
+
const {
|
|
3043
|
+
error: warrning,
|
|
3044
|
+
} = PaymentPlatformApplicationValidator.updateMerchantRefundPriority().validate(
|
|
3045
|
+
{
|
|
3046
|
+
configType,
|
|
3047
|
+
body,
|
|
3048
|
+
},
|
|
3049
|
+
{ abortEarly: false, allowUnknown: false }
|
|
3050
|
+
);
|
|
3051
|
+
if (warrning) {
|
|
3052
|
+
Logger({
|
|
3053
|
+
level: "WARN",
|
|
3054
|
+
message: `Parameter Validation warrnings for platform > Payment > updateMerchantRefundPriority \n ${warrning}`,
|
|
3055
|
+
});
|
|
3056
|
+
}
|
|
3057
|
+
|
|
3058
|
+
const query_params = {};
|
|
3059
|
+
|
|
3060
|
+
const response = await PlatformAPIClient.execute(
|
|
3061
|
+
this.config,
|
|
3062
|
+
"put",
|
|
3063
|
+
`/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/refund_priority/config/${configType}`,
|
|
3064
|
+
query_params,
|
|
3065
|
+
body,
|
|
3066
|
+
requestHeaders,
|
|
3067
|
+
{ responseHeaders }
|
|
3068
|
+
);
|
|
3069
|
+
|
|
3070
|
+
let responseData = response;
|
|
3071
|
+
if (responseHeaders) {
|
|
3072
|
+
responseData = response[0];
|
|
3073
|
+
}
|
|
3074
|
+
|
|
3075
|
+
const {
|
|
3076
|
+
error: res_error,
|
|
3077
|
+
} = PaymentPlatformModel.RefundPriorityResponseSerializer().validate(
|
|
3078
|
+
responseData,
|
|
3079
|
+
{ abortEarly: false, allowUnknown: false }
|
|
3080
|
+
);
|
|
3081
|
+
|
|
3082
|
+
if (res_error) {
|
|
3083
|
+
Logger({
|
|
3084
|
+
level: "WARN",
|
|
3085
|
+
message: `Response Validation Warnnings for platform > Payment > updateMerchantRefundPriority \n ${res_error}`,
|
|
3086
|
+
});
|
|
3087
|
+
}
|
|
3088
|
+
|
|
3089
|
+
return response;
|
|
3090
|
+
}
|
|
3091
|
+
|
|
2851
3092
|
/**
|
|
2852
3093
|
* @param {PaymentPlatformApplicationValidator.UpdatePaymentSessionParam} arg
|
|
2853
3094
|
* - Arg object
|