@delopay/sdk 0.193.0 → 0.200.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/internal.js CHANGED
@@ -217,7 +217,7 @@ import {
217
217
  validatePanes,
218
218
  verticalGapValue,
219
219
  visibleCustomFields
220
- } from "./chunk-72DLUJCI.js";
220
+ } from "./chunk-OJIATYCP.js";
221
221
 
222
222
  // src/internal/resources/admin.ts
223
223
  var Admin = class {
@@ -264,6 +264,14 @@ var AdminPortal = class {
264
264
  constructor(request) {
265
265
  this.request = request;
266
266
  }
267
+ /** Read scoped risk overrides, effective values and inheritance sources. */
268
+ async getRiskSettings(query) {
269
+ return this.request("GET", "/admin-portal/risk-settings", { query: { ...query } });
270
+ }
271
+ /** Replace overrides with revision checking; null values restore inheritance. */
272
+ async updateRiskSettings(body) {
273
+ return this.request("PUT", "/admin-portal/risk-settings", { body });
274
+ }
267
275
  async listCustomers(params) {
268
276
  return this.request("GET", "/admin-portal/customers", {
269
277
  query: params
@@ -1057,6 +1065,18 @@ var AdminPortal = class {
1057
1065
  async getPromoConfig() {
1058
1066
  return this.request("GET", "/admin-portal/promo-config");
1059
1067
  }
1068
+ /** OAuth credentials are encrypted server-side and never returned. */
1069
+ async getDashboardOAuthSettings() {
1070
+ return this.request("GET", "/admin-portal/dashboard-oauth");
1071
+ }
1072
+ async updateDashboardOAuthUrls(params) {
1073
+ return this.request("PUT", "/admin-portal/dashboard-oauth/urls", { body: params });
1074
+ }
1075
+ async updateDashboardOAuthProvider(provider, params) {
1076
+ return this.request("PUT", `/admin-portal/dashboard-oauth/${encodeURIComponent(provider)}`, {
1077
+ body: params
1078
+ });
1079
+ }
1060
1080
  /**
1061
1081
  * Update the global welcome promotional-credit config. Any subset of
1062
1082
  * `amount` (minor units) / `message` may be supplied; omitted fields are
@@ -1716,6 +1736,26 @@ var PlatformFeeRulesManager = class {
1716
1736
  }
1717
1737
  };
1718
1738
 
1739
+ // src/internal/resources/nativeRenewals.ts
1740
+ var NativeRenewals = class {
1741
+ constructor(request, serviceKey) {
1742
+ this.request = request;
1743
+ this.serviceKey = serviceKey;
1744
+ }
1745
+ /** Close the previous renewal payment using the internal service key and its owner context. */
1746
+ async close(paymentId, target, options) {
1747
+ return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/native-renewal-close`, {
1748
+ ...options,
1749
+ headers: {
1750
+ ...options?.headers,
1751
+ "X-Internal-API-Key": this.serviceKey,
1752
+ "X-Merchant-Id": target.merchant_id,
1753
+ "X-Profile-Id": target.profile_id
1754
+ }
1755
+ });
1756
+ }
1757
+ };
1758
+
1719
1759
  // src/internal/client.ts
1720
1760
  var DelopayInternal = class extends Delopay {
1721
1761
  constructor(...args) {
@@ -1733,6 +1773,7 @@ var DelopayInternal = class extends Delopay {
1733
1773
  this.gsm = new Gsm(request);
1734
1774
  this.platformBilling = new PlatformBilling(request);
1735
1775
  this.platformFees = new PlatformFees(request);
1776
+ this.nativeRenewals = new NativeRenewals(request, args[0] ?? "");
1736
1777
  }
1737
1778
  };
1738
1779
  export {
@@ -1818,6 +1859,7 @@ export {
1818
1859
  NOTICE_ICON_PATHS,
1819
1860
  NOTICE_LABEL_MAX_LENGTH,
1820
1861
  NOTICE_SECTIONS,
1862
+ NativeRenewals,
1821
1863
  OperationLimits,
1822
1864
  PANES_MAX,
1823
1865
  PANE_CATEGORY_KEYS,