@delopay/sdk 0.362.0 → 0.365.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.
@@ -1983,29 +1983,6 @@ var ChargebackPrevention = class {
1983
1983
  async listConnections() {
1984
1984
  return this.request("GET", "/chargeback-prevention/connections");
1985
1985
  }
1986
- /**
1987
- * Connect a provider account. DeloPay checks the key with the provider,
1988
- * registers its webhooks there and starts reading alerts. Dashboard session
1989
- * only.
1990
- */
1991
- async connect(params) {
1992
- return this.request("POST", "/chargeback-prevention/connections", { body: params });
1993
- }
1994
- /** Replace a connection's key; reconnects one whose key was refused. */
1995
- async replaceKey(connectionId, params) {
1996
- return this.request(
1997
- "PUT",
1998
- `/chargeback-prevention/connections/${encodeURIComponent(connectionId)}/key`,
1999
- { body: params }
2000
- );
2001
- }
2002
- /** Stop reading a connection. Its cases are kept. */
2003
- async disconnect(connectionId) {
2004
- return this.request(
2005
- "DELETE",
2006
- `/chargeback-prevention/connections/${encodeURIComponent(connectionId)}`
2007
- );
2008
- }
2009
1986
  /** Read the connection's alerts again as soon as the provider allows. */
2010
1987
  async syncNow(connectionId) {
2011
1988
  return this.request(
@@ -2013,14 +1990,6 @@ var ChargebackPrevention = class {
2013
1990
  `/chargeback-prevention/connections/${encodeURIComponent(connectionId)}/sync`
2014
1991
  );
2015
1992
  }
2016
- /** Set the shops a provider business account sells through; its cases are matched again. */
2017
- async mapAccount(connectionId, providerAccountId, params) {
2018
- return this.request(
2019
- "PUT",
2020
- `/chargeback-prevention/connections/${encodeURIComponent(connectionId)}/accounts/${encodeURIComponent(providerAccountId)}`,
2021
- { body: params }
2022
- );
2023
- }
2024
1993
  /** Cases with what DeloPay's records say happened to each payment. */
2025
1994
  async listCases(params) {
2026
1995
  return this.request("GET", "/chargeback-prevention/cases", {
@@ -8504,6 +8473,19 @@ var CheckoutMethods = class {
8504
8473
  query
8505
8474
  });
8506
8475
  }
8476
+ /**
8477
+ * What DeloPay's connector information says about a country, for any shop:
8478
+ * each provider's method, and whether the provider's list of countries names
8479
+ * it. A method with no list is `unknown`, which is no statement either way.
8480
+ * Nothing here comes from a merchant's accounts, and it is no promise about
8481
+ * what a shop's checkout offers. A role that may not read provider names gets
8482
+ * none. `GET /checkout-methods/coverage`
8483
+ *
8484
+ * @param country The buyer's country, ISO 3166-1 alpha-2.
8485
+ */
8486
+ async coverage(country) {
8487
+ return this.request("GET", "/checkout-methods/coverage", { query: { country } });
8488
+ }
8507
8489
  /**
8508
8490
  * What DeloPay confirms beneath each item the shop can place: the card
8509
8491
  * networks the card form's accounts accept, and the methods or coins a
@@ -16985,4 +16967,4 @@ export {
16985
16967
  decodeNativePanes,
16986
16968
  encodeNativePanes
16987
16969
  };
16988
- //# sourceMappingURL=chunk-RI3ZRID4.js.map
16970
+ //# sourceMappingURL=chunk-DBE6IDBL.js.map