@delopay/sdk 0.265.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-SW4N2WY4.js → chunk-T7DDPU7M.js} +18 -1
- package/dist/chunk-T7DDPU7M.js.map +1 -0
- package/dist/index.cjs +17 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +100 -1
- package/dist/index.d.ts +100 -1
- package/dist/index.js +1 -1
- package/dist/internal.cjs +17 -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-SW4N2WY4.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
|
*
|