@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/index.js CHANGED
@@ -250,7 +250,7 @@ import {
250
250
  visibleCustomFields,
251
251
  whopAccentSwatch,
252
252
  whopCardElement
253
- } from "./chunk-2MA2A66Y.js";
253
+ } from "./chunk-T7DDPU7M.js";
254
254
  export {
255
255
  AIRWALLEX_AUTOFILL_TREATMENTS,
256
256
  AIRWALLEX_CARD_LAYOUTS,
package/dist/internal.cjs CHANGED
@@ -1934,6 +1934,23 @@ var Disputes = class {
1934
1934
  async accept(disputeId) {
1935
1935
  return this.request("POST", `/disputes/accept/${encodeURIComponent(disputeId)}`);
1936
1936
  }
1937
+ /**
1938
+ * Correct the exchange rate of a dispute the processor reported in another
1939
+ * currency, or record its final settled amount. Until it is settled, the
1940
+ * reserved amount is an estimate and no other dispute on the same payment
1941
+ * attempt can take a new reservation. Signed-in users with the
1942
+ * external-record permission only.
1943
+ *
1944
+ * @param disputeId - The dispute to reconcile.
1945
+ * @param request - `correct_rate` with the processor's rate, or `settle`
1946
+ * with the final amount and a reason.
1947
+ * @returns The updated dispute.
1948
+ */
1949
+ async reconcile(disputeId, request) {
1950
+ return this.request("POST", `/disputes/${encodeURIComponent(disputeId)}/reconcile`, {
1951
+ body: request
1952
+ });
1953
+ }
1937
1954
  /**
1938
1955
  * Submit evidence to challenge a dispute.
1939
1956
  *
@@ -7219,6 +7236,27 @@ var CheckoutMethods = class {
7219
7236
  body
7220
7237
  });
7221
7238
  }
7239
+ /**
7240
+ * For a buyer in `country` paying `amount` `currency`: which placeable
7241
+ * items they are offered and every reason they are not, asked the way the
7242
+ * hosted checkout asks; and how each smart block of the layout evaluates
7243
+ * for them (`smart_blocks`). `test_mode` asks the Test environment.
7244
+ * `GET /checkout-methods/{profile_id}/availability`
7245
+ */
7246
+ async availability(merchantId, profileId, params) {
7247
+ const { test_mode, ...order } = params;
7248
+ const query = { merchant_id: merchantId, ...order };
7249
+ if (test_mode) {
7250
+ return this.request(
7251
+ "GET",
7252
+ `/checkout-methods/${encodeURIComponent(profileId)}/test/availability`,
7253
+ { query }
7254
+ );
7255
+ }
7256
+ return this.request("GET", `/checkout-methods/${encodeURIComponent(profileId)}/availability`, {
7257
+ query
7258
+ });
7259
+ }
7222
7260
  /**
7223
7261
  * What DeloPay confirms beneath each item the shop can place: the card
7224
7262
  * networks the card form's accounts accept, and the methods or coins a