@delopay/sdk 0.264.0 → 0.266.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/dist/{chunk-2MA2A66Y.js → chunk-T7DDPU7M.js} +39 -1
- package/dist/chunk-T7DDPU7M.js.map +1 -0
- package/dist/index.cjs +38 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +383 -11
- package/dist/index.d.ts +383 -11
- package/dist/index.js +1 -1
- package/dist/internal.cjs +38 -0
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-2MA2A66Y.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1918,6 +1918,23 @@ var Disputes = class {
|
|
|
1918
1918
|
async accept(disputeId) {
|
|
1919
1919
|
return this.request("POST", `/disputes/accept/${encodeURIComponent(disputeId)}`);
|
|
1920
1920
|
}
|
|
1921
|
+
/**
|
|
1922
|
+
* Correct the exchange rate of a dispute the processor reported in another
|
|
1923
|
+
* currency, or record its final settled amount. Until it is settled, the
|
|
1924
|
+
* reserved amount is an estimate and no other dispute on the same payment
|
|
1925
|
+
* attempt can take a new reservation. Signed-in users with the
|
|
1926
|
+
* external-record permission only.
|
|
1927
|
+
*
|
|
1928
|
+
* @param disputeId - The dispute to reconcile.
|
|
1929
|
+
* @param request - `correct_rate` with the processor's rate, or `settle`
|
|
1930
|
+
* with the final amount and a reason.
|
|
1931
|
+
* @returns The updated dispute.
|
|
1932
|
+
*/
|
|
1933
|
+
async reconcile(disputeId, request) {
|
|
1934
|
+
return this.request("POST", `/disputes/${encodeURIComponent(disputeId)}/reconcile`, {
|
|
1935
|
+
body: request
|
|
1936
|
+
});
|
|
1937
|
+
}
|
|
1921
1938
|
/**
|
|
1922
1939
|
* Submit evidence to challenge a dispute.
|
|
1923
1940
|
*
|
|
@@ -7203,6 +7220,27 @@ var CheckoutMethods = class {
|
|
|
7203
7220
|
body
|
|
7204
7221
|
});
|
|
7205
7222
|
}
|
|
7223
|
+
/**
|
|
7224
|
+
* For a buyer in `country` paying `amount` `currency`: which placeable
|
|
7225
|
+
* items they are offered and every reason they are not, asked the way the
|
|
7226
|
+
* hosted checkout asks; and how each smart block of the layout evaluates
|
|
7227
|
+
* for them (`smart_blocks`). `test_mode` asks the Test environment.
|
|
7228
|
+
* `GET /checkout-methods/{profile_id}/availability`
|
|
7229
|
+
*/
|
|
7230
|
+
async availability(merchantId, profileId, params) {
|
|
7231
|
+
const { test_mode, ...order } = params;
|
|
7232
|
+
const query = { merchant_id: merchantId, ...order };
|
|
7233
|
+
if (test_mode) {
|
|
7234
|
+
return this.request(
|
|
7235
|
+
"GET",
|
|
7236
|
+
`/checkout-methods/${encodeURIComponent(profileId)}/test/availability`,
|
|
7237
|
+
{ query }
|
|
7238
|
+
);
|
|
7239
|
+
}
|
|
7240
|
+
return this.request("GET", `/checkout-methods/${encodeURIComponent(profileId)}/availability`, {
|
|
7241
|
+
query
|
|
7242
|
+
});
|
|
7243
|
+
}
|
|
7206
7244
|
/**
|
|
7207
7245
|
* What DeloPay confirms beneath each item the shop can place: the card
|
|
7208
7246
|
* networks the card form's accounts accept, and the methods or coins a
|