@delopay/sdk 0.209.0 → 0.210.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
@@ -83,7 +83,6 @@ import {
83
83
  Products,
84
84
  RTL_CHECKOUT_LOCALES,
85
85
  Regions,
86
- ReplayRetention,
87
86
  Risk,
88
87
  SECTION_ALIASES,
89
88
  STRIPE_FALLBACK_PANE_CATALOG,
@@ -220,7 +219,7 @@ import {
220
219
  validatePanes,
221
220
  verticalGapValue,
222
221
  visibleCustomFields
223
- } from "./chunk-B4ABMM47.js";
222
+ } from "./chunk-IFP4THPD.js";
224
223
 
225
224
  // src/internal/resources/admin.ts
226
225
  var Admin = class {
@@ -267,14 +266,6 @@ var AdminPortal = class {
267
266
  constructor(request) {
268
267
  this.request = request;
269
268
  }
270
- /** Read scoped risk overrides, effective values and inheritance sources. */
271
- async getRiskSettings(query) {
272
- return this.request("GET", "/admin-portal/risk-settings", { query: { ...query } });
273
- }
274
- /** Replace overrides with revision checking; null values restore inheritance. */
275
- async updateRiskSettings(body) {
276
- return this.request("PUT", "/admin-portal/risk-settings", { body });
277
- }
278
269
  async listCustomers(params) {
279
270
  return this.request("GET", "/admin-portal/customers", {
280
271
  query: params
@@ -611,135 +602,6 @@ var AdminPortal = class {
611
602
  `/admin-portal/accounts/${encodeURIComponent(merchantId)}/sell-to-restrictions`
612
603
  );
613
604
  }
614
- /** Admin setting for one merchant, independent of the merchant's own choice. */
615
- async getMerchantCheckoutBrowserInfo(merchantId) {
616
- return this.request(
617
- "GET",
618
- `/admin-portal/accounts/${encodeURIComponent(merchantId)}/checkout-browser-info`
619
- );
620
- }
621
- /** Replace the admin merchant setting. Any OFF remains final; changes are audited. */
622
- async updateMerchantCheckoutBrowserInfo(merchantId, body) {
623
- return this.request(
624
- "PUT",
625
- `/admin-portal/accounts/${encodeURIComponent(merchantId)}/checkout-browser-info`,
626
- { body }
627
- );
628
- }
629
- /** Platform-wide policy for delivery of the five device fields to one connector. */
630
- async getConnectorCheckoutBrowserInfo(connector) {
631
- return this.request(
632
- "GET",
633
- `/admin-portal/connectors/${encodeURIComponent(connector)}/checkout-browser-info`
634
- );
635
- }
636
- /**
637
- * Store the connector policy. OFF withholds the fields for every merchant
638
- * only on backends with connector-delivery enforcement deployed. Earlier
639
- * backends store this setting without enforcing it; a successful save alone
640
- * is not evidence that delivery is blocked.
641
- */
642
- async updateConnectorCheckoutBrowserInfo(connector, body) {
643
- return this.request(
644
- "PUT",
645
- `/admin-portal/connectors/${encodeURIComponent(connector)}/checkout-browser-info`,
646
- { body }
647
- );
648
- }
649
- /**
650
- * The deployment's replay-masking rules: extra page elements the session
651
- * recorder hides on top of the ones it always hides.
652
- *
653
- * `GET /admin-portal/replay-masking`
654
- */
655
- async getReplayMasking() {
656
- return this.request("GET", "/admin-portal/replay-masking");
657
- }
658
- /**
659
- * Replace the deployment's replay-masking rules. Additive to the recorder's
660
- * built-in floor: a rule can widen what a recording leaves out and can never
661
- * reveal something the recorder hides unconditionally.
662
- *
663
- * `PUT /admin-portal/replay-masking`
664
- */
665
- async updateReplayMasking(params) {
666
- return this.request("PUT", "/admin-portal/replay-masking", { body: params });
667
- }
668
- /**
669
- * One merchant's replay-masking rules.
670
- *
671
- * `GET /admin-portal/accounts/{merchantId}/replay-masking`
672
- */
673
- async getMerchantReplayMasking(merchantId) {
674
- return this.request(
675
- "GET",
676
- `/admin-portal/accounts/${encodeURIComponent(merchantId)}/replay-masking`
677
- );
678
- }
679
- /**
680
- * Replace one merchant's replay-masking rules.
681
- *
682
- * `PUT /admin-portal/accounts/{merchantId}/replay-masking`
683
- */
684
- async updateMerchantReplayMasking(merchantId, params) {
685
- return this.request(
686
- "PUT",
687
- `/admin-portal/accounts/${encodeURIComponent(merchantId)}/replay-masking`,
688
- { body: params }
689
- );
690
- }
691
- /**
692
- * One shop's replay-masking rules.
693
- *
694
- * `GET /admin-portal/accounts/{merchantId}/business-profile/{profileId}/replay-masking`
695
- */
696
- async getShopReplayMasking(merchantId, profileId) {
697
- return this.request(
698
- "GET",
699
- `/admin-portal/accounts/${encodeURIComponent(merchantId)}/business-profile/${encodeURIComponent(profileId)}/replay-masking`
700
- );
701
- }
702
- /**
703
- * Replace one shop's replay-masking rules.
704
- *
705
- * `PUT /admin-portal/accounts/{merchantId}/business-profile/{profileId}/replay-masking`
706
- */
707
- async updateShopReplayMasking(merchantId, profileId, params) {
708
- return this.request(
709
- "PUT",
710
- `/admin-portal/accounts/${encodeURIComponent(merchantId)}/business-profile/${encodeURIComponent(profileId)}/replay-masking`,
711
- { body: params }
712
- );
713
- }
714
- /**
715
- * The deployment's checkout-recording retention level — the outermost of
716
- * the four. A list of zero or one: empty means the global level is unset,
717
- * and a merchant that sets nothing of its own keeps recordings forever.
718
- *
719
- * `GET /admin-portal/replay-retention`
720
- */
721
- async getReplayRetention() {
722
- return this.request("GET", "/admin-portal/replay-retention");
723
- }
724
- /**
725
- * Set the deployment's checkout-recording retention level.
726
- * `retention_days: null` stores an explicit *keep forever*, which a
727
- * merchant, project or shop level can still override.
728
- *
729
- * `PUT /admin-portal/replay-retention`
730
- */
731
- async setReplayRetention(params) {
732
- return this.request("PUT", "/admin-portal/replay-retention", { body: params });
733
- }
734
- /**
735
- * Unset the deployment's retention level. Merchants that set nothing of
736
- * their own are back to recordings being kept forever.
737
- *
738
- * `DELETE /admin-portal/replay-retention`
739
- */
740
- async clearReplayRetention() {
741
- await this.request("DELETE", "/admin-portal/replay-retention");
742
- }
743
605
  /**
744
606
  * Soft-delete a transaction of ANY merchant. Only payments whose status
745
607
  * is in the admin delete policy can be deleted; the action is audited.
@@ -876,94 +738,6 @@ var AdminPortal = class {
876
738
  `/admin-portal/processor-costs/${encodeURIComponent(scheduleId)}`
877
739
  );
878
740
  }
879
- /** Get the connector health polling interval. `GET /admin-portal/connector-health-config` */
880
- async getConnectorHealthConfig() {
881
- return this.request("GET", "/admin-portal/connector-health-config");
882
- }
883
- /** Update the connector health polling interval. `PUT /admin-portal/connector-health-config` */
884
- async updateConnectorHealthConfig(params) {
885
- return this.request("PUT", "/admin-portal/connector-health-config", { body: params });
886
- }
887
- /**
888
- * The global payment auto-close policy.
889
- * `GET /admin-portal/auto-close-config`
890
- */
891
- async getAutoCloseConfig() {
892
- return this.request("GET", "/admin-portal/auto-close-config");
893
- }
894
- /**
895
- * Update the global payment auto-close policy. PATCH semantics — omitted
896
- * fields are left unchanged.
897
- *
898
- * `PUT /admin-portal/auto-close-config`
899
- */
900
- async updateAutoCloseConfig(params) {
901
- return this.request("PUT", "/admin-portal/auto-close-config", { body: params });
902
- }
903
- /**
904
- * One merchant's auto-close override plus the effective values.
905
- * `GET /admin-portal/accounts/{merchantId}/auto-close-config`
906
- */
907
- async getMerchantAutoCloseConfig(merchantId) {
908
- return this.request(
909
- "GET",
910
- `/admin-portal/accounts/${encodeURIComponent(merchantId)}/auto-close-config`
911
- );
912
- }
913
- /**
914
- * Replace one merchant's auto-close override. REPLACE semantics — sending
915
- * both fields as `null` removes the override entirely.
916
- *
917
- * `PUT /admin-portal/accounts/{merchantId}/auto-close-config`
918
- */
919
- async updateMerchantAutoCloseConfig(merchantId, params) {
920
- return this.request(
921
- "PUT",
922
- `/admin-portal/accounts/${encodeURIComponent(merchantId)}/auto-close-config`,
923
- { body: params }
924
- );
925
- }
926
- /**
927
- * The global transaction soft-delete policy (statuses admins may delete,
928
- * plus the deploy-time env ceiling).
929
- *
930
- * `GET /admin-portal/transaction-delete-config`
931
- */
932
- async getTransactionDeleteConfig() {
933
- return this.request("GET", "/admin-portal/transaction-delete-config");
934
- }
935
- /**
936
- * Replace the global deletable-status set. Must be a subset of the env
937
- * ceiling.
938
- *
939
- * `PUT /admin-portal/transaction-delete-config`
940
- */
941
- async updateTransactionDeleteConfig(params) {
942
- return this.request("PUT", "/admin-portal/transaction-delete-config", { body: params });
943
- }
944
- /**
945
- * One merchant's deletable-status override plus the effective set.
946
- * `GET /admin-portal/accounts/{merchantId}/transaction-delete-config`
947
- */
948
- async getMerchantTransactionDeleteConfig(merchantId) {
949
- return this.request(
950
- "GET",
951
- `/admin-portal/accounts/${encodeURIComponent(merchantId)}/transaction-delete-config`
952
- );
953
- }
954
- /**
955
- * Replace one merchant's deletable-status override. `statuses: null`
956
- * removes the override; an empty list forbids deletion entirely.
957
- *
958
- * `PUT /admin-portal/accounts/{merchantId}/transaction-delete-config`
959
- */
960
- async updateMerchantTransactionDeleteConfig(merchantId, params) {
961
- return this.request(
962
- "PUT",
963
- `/admin-portal/accounts/${encodeURIComponent(merchantId)}/transaction-delete-config`,
964
- { body: params }
965
- );
966
- }
967
741
  /**
968
742
  * A merchant's settlement statements. Same shapes as the merchant-facing
969
743
  * `settlement` resource, admin-authenticated.
@@ -1061,33 +835,6 @@ var AdminPortal = class {
1061
835
  { body: params }
1062
836
  );
1063
837
  }
1064
- /**
1065
- * Fetch the global welcome promotional-credit config (amount + message)
1066
- * granted to newly created billing profiles. Internal-admin route.
1067
- */
1068
- async getPromoConfig() {
1069
- return this.request("GET", "/admin-portal/promo-config");
1070
- }
1071
- /** OAuth credentials are encrypted server-side and never returned. */
1072
- async getDashboardOAuthSettings() {
1073
- return this.request("GET", "/admin-portal/dashboard-oauth");
1074
- }
1075
- async updateDashboardOAuthUrls(params) {
1076
- return this.request("PUT", "/admin-portal/dashboard-oauth/urls", { body: params });
1077
- }
1078
- async updateDashboardOAuthProvider(provider, params) {
1079
- return this.request("PUT", `/admin-portal/dashboard-oauth/${encodeURIComponent(provider)}`, {
1080
- body: params
1081
- });
1082
- }
1083
- /**
1084
- * Update the global welcome promotional-credit config. Any subset of
1085
- * `amount` (minor units) / `message` may be supplied; omitted fields are
1086
- * left unchanged. Returns the resulting config. Internal-admin route.
1087
- */
1088
- async updatePromoConfig(params) {
1089
- return this.request("PUT", "/admin-portal/promo-config", { body: params });
1090
- }
1091
838
  };
1092
839
  function transactionListQuery(params) {
1093
840
  if (!params) return void 0;
@@ -1931,7 +1678,6 @@ export {
1931
1678
  Products,
1932
1679
  RTL_CHECKOUT_LOCALES,
1933
1680
  Regions,
1934
- ReplayRetention,
1935
1681
  Risk,
1936
1682
  SECTION_ALIASES,
1937
1683
  STRIPE_FALLBACK_PANE_CATALOG,