@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
|
@@ -1642,6 +1642,23 @@ var Disputes = class {
|
|
|
1642
1642
|
async accept(disputeId) {
|
|
1643
1643
|
return this.request("POST", `/disputes/accept/${encodeURIComponent(disputeId)}`);
|
|
1644
1644
|
}
|
|
1645
|
+
/**
|
|
1646
|
+
* Correct the exchange rate of a dispute the processor reported in another
|
|
1647
|
+
* currency, or record its final settled amount. Until it is settled, the
|
|
1648
|
+
* reserved amount is an estimate and no other dispute on the same payment
|
|
1649
|
+
* attempt can take a new reservation. Signed-in users with the
|
|
1650
|
+
* external-record permission only.
|
|
1651
|
+
*
|
|
1652
|
+
* @param disputeId - The dispute to reconcile.
|
|
1653
|
+
* @param request - `correct_rate` with the processor's rate, or `settle`
|
|
1654
|
+
* with the final amount and a reason.
|
|
1655
|
+
* @returns The updated dispute.
|
|
1656
|
+
*/
|
|
1657
|
+
async reconcile(disputeId, request) {
|
|
1658
|
+
return this.request("POST", `/disputes/${encodeURIComponent(disputeId)}/reconcile`, {
|
|
1659
|
+
body: request
|
|
1660
|
+
});
|
|
1661
|
+
}
|
|
1645
1662
|
/**
|
|
1646
1663
|
* Submit evidence to challenge a dispute.
|
|
1647
1664
|
*
|
|
@@ -6927,6 +6944,27 @@ var CheckoutMethods = class {
|
|
|
6927
6944
|
body
|
|
6928
6945
|
});
|
|
6929
6946
|
}
|
|
6947
|
+
/**
|
|
6948
|
+
* For a buyer in `country` paying `amount` `currency`: which placeable
|
|
6949
|
+
* items they are offered and every reason they are not, asked the way the
|
|
6950
|
+
* hosted checkout asks; and how each smart block of the layout evaluates
|
|
6951
|
+
* for them (`smart_blocks`). `test_mode` asks the Test environment.
|
|
6952
|
+
* `GET /checkout-methods/{profile_id}/availability`
|
|
6953
|
+
*/
|
|
6954
|
+
async availability(merchantId, profileId, params) {
|
|
6955
|
+
const { test_mode, ...order } = params;
|
|
6956
|
+
const query = { merchant_id: merchantId, ...order };
|
|
6957
|
+
if (test_mode) {
|
|
6958
|
+
return this.request(
|
|
6959
|
+
"GET",
|
|
6960
|
+
`/checkout-methods/${encodeURIComponent(profileId)}/test/availability`,
|
|
6961
|
+
{ query }
|
|
6962
|
+
);
|
|
6963
|
+
}
|
|
6964
|
+
return this.request("GET", `/checkout-methods/${encodeURIComponent(profileId)}/availability`, {
|
|
6965
|
+
query
|
|
6966
|
+
});
|
|
6967
|
+
}
|
|
6930
6968
|
/**
|
|
6931
6969
|
* What DeloPay confirms beneath each item the shop can place: the card
|
|
6932
6970
|
* networks the card form's accounts accept, and the methods or coins a
|
|
@@ -13658,4 +13696,4 @@ export {
|
|
|
13658
13696
|
decodeNativePanes,
|
|
13659
13697
|
encodeNativePanes
|
|
13660
13698
|
};
|
|
13661
|
-
//# sourceMappingURL=chunk-
|
|
13699
|
+
//# sourceMappingURL=chunk-T7DDPU7M.js.map
|