@delopay/sdk 0.158.0 → 0.162.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
@@ -37,6 +37,7 @@ import {
37
37
  Cards,
38
38
  CheckoutMethods,
39
39
  CheckoutSession,
40
+ CostRules,
40
41
  DEFAULT_BADGES,
41
42
  DEFAULT_BADGES_DARK,
42
43
  DEFAULT_BRANDING,
@@ -68,6 +69,7 @@ import {
68
69
  PAYPAL_CARD_LAYOUTS,
69
70
  PAYPAL_LABEL_STYLES,
70
71
  PaypalDisputes,
72
+ ProcessorCosts,
71
73
  RTL_CHECKOUT_LOCALES,
72
74
  Regions,
73
75
  Risk,
@@ -193,7 +195,7 @@ import {
193
195
  validatePanes,
194
196
  verticalGapValue,
195
197
  visibleCustomFields
196
- } from "./chunk-4YLUV3YJ.js";
198
+ } from "./chunk-P2KP3WRS.js";
197
199
  export {
198
200
  AIRWALLEX_AUTOFILL_TREATMENTS,
199
201
  AIRWALLEX_CARD_LAYOUTS,
@@ -233,6 +235,7 @@ export {
233
235
  Cards,
234
236
  CheckoutMethods,
235
237
  CheckoutSession,
238
+ CostRules,
236
239
  DEFAULT_BADGES,
237
240
  DEFAULT_BADGES_DARK,
238
241
  DEFAULT_BRANDING,
@@ -264,6 +267,7 @@ export {
264
267
  PAYPAL_CARD_LAYOUTS,
265
268
  PAYPAL_LABEL_STYLES,
266
269
  PaypalDisputes,
270
+ ProcessorCosts,
267
271
  RTL_CHECKOUT_LOCALES,
268
272
  Regions,
269
273
  Risk,
package/dist/internal.cjs CHANGED
@@ -66,6 +66,7 @@ __export(internal_exports, {
66
66
  Configs: () => Configs,
67
67
  ConnectorRestrictionRules: () => ConnectorRestrictionRules,
68
68
  ConnectorRestrictions: () => ConnectorRestrictions,
69
+ CostRules: () => CostRules,
69
70
  DEFAULT_BADGES: () => DEFAULT_BADGES,
70
71
  DEFAULT_BADGES_DARK: () => DEFAULT_BADGES_DARK,
71
72
  DEFAULT_BRANDING: () => DEFAULT_BRANDING,
@@ -102,6 +103,7 @@ __export(internal_exports, {
102
103
  PaypalDisputes: () => PaypalDisputes,
103
104
  PlatformBilling: () => PlatformBilling,
104
105
  PlatformFees: () => PlatformFees,
106
+ ProcessorCosts: () => ProcessorCosts,
105
107
  RTL_CHECKOUT_LOCALES: () => RTL_CHECKOUT_LOCALES,
106
108
  Regions: () => Regions,
107
109
  Risk: () => Risk,
@@ -2922,8 +2924,9 @@ var Routing = class {
2922
2924
  });
2923
2925
  }
2924
2926
  /**
2925
- * A shop's lifetime per-connector payment caps, each with how much of it is
2926
- * already spent.
2927
+ * A shop's per-connector caps, each with its unit and window and how much of
2928
+ * the current window is spent (`used`) or held by payments in flight
2929
+ * (`reserved`).
2927
2930
  *
2928
2931
  * `GET /routing/connector-caps/{profileId}`
2929
2932
  */
@@ -2948,13 +2951,17 @@ var Routing = class {
2948
2951
  return this.request("GET", `/routing/volume-counters/${encodeURIComponent(profileId)}`);
2949
2952
  }
2950
2953
  /**
2951
- * Replace a shop's per-connector payment caps.
2954
+ * Replace a shop's per-connector caps.
2952
2955
  *
2953
2956
  * Whole-set replacement, not a patch: the list sent becomes the complete set
2954
2957
  * of capped connectors, and an empty list clears them all — which is how
2955
2958
  * acquirer onboarding finishes, the new account ceasing to be a special case.
2959
+ * Re-send every other cap with its `unit`, `window` and `currency` as read:
2960
+ * an amount cap sent back without its `unit` is refused, because it carries a
2961
+ * currency and would otherwise be a payment count.
2956
2962
  *
2957
2963
  * Every account named must belong to this shop; one that does not is refused.
2964
+ * So is an amount cap without a `currency`, and a payment cap with one.
2958
2965
  *
2959
2966
  * `PUT /routing/connector-caps/{profileId}`
2960
2967
  */
@@ -4620,6 +4627,161 @@ var SellToRestrictions = class {
4620
4627
  }
4621
4628
  };
4622
4629
 
4630
+ // src/resources/costRules.ts
4631
+ var CostRules = class {
4632
+ constructor(request) {
4633
+ this.request = request;
4634
+ }
4635
+ /**
4636
+ * Every cost rule of the merchant.
4637
+ * `GET /cost-rules`
4638
+ *
4639
+ * @param merchantId - The merchant account ID.
4640
+ */
4641
+ async list(merchantId) {
4642
+ return this.request("GET", "/cost-rules", { query: { merchant_id: merchantId } });
4643
+ }
4644
+ /**
4645
+ * Record a cost rule.
4646
+ * `POST /cost-rules`
4647
+ *
4648
+ * @param params - The rule.
4649
+ * @param merchantId - The merchant account ID.
4650
+ */
4651
+ async create(params, merchantId) {
4652
+ return this.request("POST", "/cost-rules", {
4653
+ body: params,
4654
+ query: { merchant_id: merchantId }
4655
+ });
4656
+ }
4657
+ /**
4658
+ * Close, deactivate or rename a cost rule.
4659
+ * `PUT /cost-rules/{rule_id}`
4660
+ *
4661
+ * @param ruleId - The rule ID.
4662
+ * @param params - What to change.
4663
+ * @param merchantId - The merchant account ID.
4664
+ */
4665
+ async update(ruleId, params, merchantId) {
4666
+ return this.request("PUT", `/cost-rules/${encodeURIComponent(ruleId)}`, {
4667
+ body: params,
4668
+ query: { merchant_id: merchantId }
4669
+ });
4670
+ }
4671
+ /**
4672
+ * Delete a cost rule.
4673
+ * `DELETE /cost-rules/{rule_id}`
4674
+ *
4675
+ * @param ruleId - The rule ID.
4676
+ * @param merchantId - The merchant account ID.
4677
+ */
4678
+ async delete(ruleId, merchantId) {
4679
+ return this.request("DELETE", `/cost-rules/${encodeURIComponent(ruleId)}`, {
4680
+ query: { merchant_id: merchantId }
4681
+ });
4682
+ }
4683
+ };
4684
+
4685
+ // src/resources/processorCosts.ts
4686
+ var ProcessorCosts = class {
4687
+ constructor(request) {
4688
+ this.request = request;
4689
+ }
4690
+ /**
4691
+ * Every processor cost schedule of the merchant.
4692
+ * `GET /processor-costs`
4693
+ *
4694
+ * @param merchantId - The merchant account ID.
4695
+ */
4696
+ async list(merchantId) {
4697
+ return this.request("GET", "/processor-costs", { query: { merchant_id: merchantId } });
4698
+ }
4699
+ /**
4700
+ * Record a processor cost schedule.
4701
+ * `POST /processor-costs`
4702
+ *
4703
+ * A `shop_id` that is well formed but not a shop of this merchant is
4704
+ * answered `404` and nothing is recorded: a rate scoped to a shop the
4705
+ * merchant does not own would price no attempt, leaving every line it was
4706
+ * meant to price `unavailable` while the screen showed a configured rate.
4707
+ *
4708
+ * @param params - The schedule.
4709
+ * @param merchantId - The merchant account ID.
4710
+ */
4711
+ async create(params, merchantId) {
4712
+ return this.request("POST", "/processor-costs", {
4713
+ body: params,
4714
+ query: { merchant_id: merchantId }
4715
+ });
4716
+ }
4717
+ /**
4718
+ * Record several schedules at once, all or none — copy a price list across
4719
+ * methods or shops.
4720
+ * `POST /processor-costs/bulk`
4721
+ *
4722
+ * 1 to 200 entries. Every entry is validated before anything is stored: an
4723
+ * invalid one is answered `422` naming its index, and nothing is stored.
4724
+ * The answer lists the created schedules in request order.
4725
+ *
4726
+ * @param params - The schedules.
4727
+ * @param merchantId - The merchant account ID.
4728
+ */
4729
+ async bulkCreate(params, merchantId) {
4730
+ return this.request("POST", "/processor-costs/bulk", {
4731
+ body: params,
4732
+ query: { merchant_id: merchantId }
4733
+ });
4734
+ }
4735
+ /**
4736
+ * Close, deactivate or annotate a schedule. The rate is not editable.
4737
+ * `PUT /processor-costs/{schedule_id}`
4738
+ *
4739
+ * @param scheduleId - The schedule ID.
4740
+ * @param params - What to change.
4741
+ * @param merchantId - The merchant account ID.
4742
+ */
4743
+ async update(scheduleId, params, merchantId) {
4744
+ return this.request("PUT", `/processor-costs/${encodeURIComponent(scheduleId)}`, {
4745
+ body: params,
4746
+ query: { merchant_id: merchantId }
4747
+ });
4748
+ }
4749
+ /**
4750
+ * Close a schedule at `effective_from` and open its successor with the same
4751
+ * scope and the same end, in one step: no transaction is priced by both
4752
+ * rates, and none falls between them.
4753
+ * `POST /processor-costs/{schedule_id}/replace`
4754
+ *
4755
+ * Answers the successor schedule. An `effective_from` outside the old
4756
+ * schedule's window, an inactive schedule, or one a concurrent replacement
4757
+ * already moved is answered `400` — retry against the schedule as it now
4758
+ * stands rather than forcing the write.
4759
+ *
4760
+ * @param scheduleId - The schedule to replace.
4761
+ * @param params - The new rate.
4762
+ * @param merchantId - The merchant account ID.
4763
+ */
4764
+ async replace(scheduleId, params, merchantId) {
4765
+ return this.request("POST", `/processor-costs/${encodeURIComponent(scheduleId)}/replace`, {
4766
+ body: params,
4767
+ query: { merchant_id: merchantId }
4768
+ });
4769
+ }
4770
+ /**
4771
+ * Delete a schedule. Restates nothing: every figure it derived is already
4772
+ * stamped on the settlement lines it priced.
4773
+ * `DELETE /processor-costs/{schedule_id}`
4774
+ *
4775
+ * @param scheduleId - The schedule ID.
4776
+ * @param merchantId - The merchant account ID.
4777
+ */
4778
+ async delete(scheduleId, merchantId) {
4779
+ return this.request("DELETE", `/processor-costs/${encodeURIComponent(scheduleId)}`, {
4780
+ query: { merchant_id: merchantId }
4781
+ });
4782
+ }
4783
+ };
4784
+
4623
4785
  // src/resources/checkoutMethods.ts
4624
4786
  var CheckoutMethods = class {
4625
4787
  constructor(request) {
@@ -5540,6 +5702,8 @@ var Delopay = class {
5540
5702
  this.regions = new Regions(request);
5541
5703
  this.availabilityOverrides = new AvailabilityOverrides(request);
5542
5704
  this.sellToRestrictions = new SellToRestrictions(request);
5705
+ this.costRules = new CostRules(request);
5706
+ this.processorCosts = new ProcessorCosts(request);
5543
5707
  this.checkoutMethods = new CheckoutMethods(request);
5544
5708
  this.analytics = new Analytics(request);
5545
5709
  this.analyticsDashboard = new AnalyticsDashboard(request);
@@ -8429,11 +8593,62 @@ var CheckoutSession = class {
8429
8593
  *
8430
8594
  * `GET /payment-link/{merchantId}/{paymentId}/epayouts/methods`
8431
8595
  *
8596
+ * Pass `{ paypalSdk: true }` from a checkout drawing an experimental PayPal
8597
+ * SDK pane to also receive e-Payouts' PayPal client id
8598
+ * (`paypal_client_id`, `paypal_currency`); it is present only when `ppal`
8599
+ * is among the methods.
8600
+ *
8432
8601
  * @param country - Lowercase ISO 3166-1 alpha-2 country code.
8433
8602
  */
8434
8603
  async epayoutsMethods(country, options) {
8604
+ const { paypalSdk, merchantConnectorId, ...extras } = options ?? {};
8435
8605
  return this.client.request("GET", `${this.linkBase}/epayouts/methods`, {
8436
- query: { cc: country },
8606
+ query: paypalSdk ? {
8607
+ cc: country,
8608
+ paypal_sdk: "true",
8609
+ ...merchantConnectorId ? { merchant_connector_id: merchantConnectorId } : {}
8610
+ } : { cc: country },
8611
+ ...extras,
8612
+ headers: this.bearerHeaders(extras.headers)
8613
+ });
8614
+ }
8615
+ /**
8616
+ * The PayPal order for the payment's e-Payouts access code, from the PayPal
8617
+ * SDK's `createOrder` on an experimental PayPal SDK pane — after the payment
8618
+ * was confirmed through that pane, which mints the code.
8619
+ *
8620
+ * The router reads the order off e-Payouts' own PayPal page for the code, so
8621
+ * `amount` and `currency` are what e-Payouts charges for it. Repeated calls
8622
+ * answer the same order, so a cancelled PayPal popup is retried with the same
8623
+ * code. When `captured` is `true` a capture was already reported: create no
8624
+ * order and wait for the payment's status instead.
8625
+ *
8626
+ * `POST /payment-link/{merchantId}/{paymentId}/epayouts/paypal-order`
8627
+ */
8628
+ async epayoutsPaypalOrder(options) {
8629
+ return this.client.request("POST", `${this.linkBase}/epayouts/paypal-order`, {
8630
+ ...options,
8631
+ headers: this.bearerHeaders(options?.headers)
8632
+ });
8633
+ }
8634
+ /**
8635
+ * Report a PayPal order's progress from `onApprove` on an experimental PayPal
8636
+ * SDK pane: the approval, before asking PayPal to capture — and capture only
8637
+ * once the router has it — then the capture PayPal answered, or a decline.
8638
+ * When the approval's answer is lost, do not capture: report `NOT_CAPTURED`
8639
+ * instead, which releases an approval the router may have recorded.
8640
+ *
8641
+ * The router records each on the payment and relays a capture that took money
8642
+ * to e-Payouts the way e-Payouts' own PayPal page does. It does not mark the
8643
+ * payment paid: that happens only on e-Payouts' notification, so poll the
8644
+ * payment's status afterwards. A repeated report is answered, not recorded
8645
+ * twice.
8646
+ *
8647
+ * `POST /payment-link/{merchantId}/{paymentId}/epayouts/paypal-capture`
8648
+ */
8649
+ async epayoutsPaypalCapture(params, options) {
8650
+ return this.client.request("POST", `${this.linkBase}/epayouts/paypal-capture`, {
8651
+ body: params,
8437
8652
  ...options,
8438
8653
  headers: this.bearerHeaders(options?.headers)
8439
8654
  });
@@ -8507,12 +8722,29 @@ var CheckoutSession = class {
8507
8722
  * checkout payload with `card_connector_server_confirm: true`. Stripe refuses
8508
8723
  * a Stripe.js confirm of such an intent.
8509
8724
  *
8510
- * Send the ConfirmationToken the Payment Element (or Express Checkout
8511
- * Element) produced. The router judges the card's issuing country and the
8512
- * buyer's IP country against the shop's sell-to restrictions before Stripe
8513
- * authorises, and a refusal throws a `DelopayError` with code `DE_10`. When
8514
- * the answer's `status` is `requires_action`, run `stripe.handleNextAction`
8515
- * with its `client_secret`, then call this again without a token to finalize.
8725
+ * Send the PaymentMethod `stripe.createPaymentMethod` produced from the
8726
+ * Payment Element (or Express Checkout Element), which needs
8727
+ * `paymentMethodCreation: 'manual'` on the Elements instance. A
8728
+ * ConfirmationToken is refused with `400`: Stripe will not confirm such an
8729
+ * intent with one.
8730
+ *
8731
+ * The router judges the card's issuing country and the buyer's IP country
8732
+ * against the shop's sell-to restrictions before Stripe authorises, and a
8733
+ * refusal throws a `DelopayError` with code `DE_10`. When the answer's
8734
+ * `status` is `requires_action`, run `stripe.handleNextAction` with its
8735
+ * `client_secret` — safe, because the intent is `confirmation_method=manual`
8736
+ * and that secret confirms nothing without the secret key — then call this
8737
+ * again without a payment method to finalize.
8738
+ *
8739
+ * A PaymentMethod rules out what `stripe.createPaymentMethod` cannot
8740
+ * produce: Stripe names Amazon Pay and Klarna in the Express Checkout
8741
+ * Element, which need `stripe.createConfirmationToken` instead. Neither can
8742
+ * be paid through this route, so a caller must not offer them on a
8743
+ * server-confirmed intent — mount the Express Checkout Element with those
8744
+ * methods `'never'`, as DeloPay's own checkout does. The router drops only
8745
+ * the methods its server-side confirm cannot finish at all (BLIK and ACSS
8746
+ * pre-authorized debits) from the card form's mount, so the rest of the
8747
+ * selection still reaches the element and is the caller's to constrain.
8516
8748
  *
8517
8749
  * `POST /payment-link/{merchantId}/{paymentId}/stripe-confirm`
8518
8750
  */
@@ -8523,6 +8755,27 @@ var CheckoutSession = class {
8523
8755
  headers: this.bearerHeaders(options?.headers)
8524
8756
  });
8525
8757
  }
8758
+ /**
8759
+ * Ask whether NomuPay's COPYandPAY widget may submit a card, from the
8760
+ * form's pre-submit hook.
8761
+ *
8762
+ * Only for a checkout stamped `NomupayOppwaCheckoutData.submit_grant`: the
8763
+ * card form sits beside always-shown wallet buttons of another account, and
8764
+ * this answer closes those buttons before it allows the card. `authorized`
8765
+ * is `false` when the payment no longer waits for a payment method, or when
8766
+ * this is not the attempt's live card-form checkout; when a wallet beside it
8767
+ * is already being paid, the route answers an error instead. Submit the
8768
+ * widget only on `true`.
8769
+ *
8770
+ * `POST /payment-link/{merchantId}/{paymentId}/nomupay-card-authorization`
8771
+ */
8772
+ async nomupayCardAuthorization(params, options) {
8773
+ return this.client.request("POST", `${this.linkBase}/nomupay-card-authorization`, {
8774
+ body: params,
8775
+ ...options,
8776
+ headers: this.bearerHeaders(options?.headers)
8777
+ });
8778
+ }
8526
8779
  /**
8527
8780
  * The payment's current state — status polling for redirect/popup rails.
8528
8781
  *
@@ -9371,6 +9624,71 @@ var AdminPortal = class {
9371
9624
  `/admin-portal/accounts/${encodeURIComponent(merchantId)}/sell-to-restrictions`
9372
9625
  );
9373
9626
  }
9627
+ /**
9628
+ * The deployment's replay-masking rules: extra page elements the session
9629
+ * recorder hides on top of the ones it always hides.
9630
+ *
9631
+ * `GET /admin-portal/replay-masking`
9632
+ */
9633
+ async getReplayMasking() {
9634
+ return this.request("GET", "/admin-portal/replay-masking");
9635
+ }
9636
+ /**
9637
+ * Replace the deployment's replay-masking rules. Additive to the recorder's
9638
+ * built-in floor: a rule can widen what a recording leaves out and can never
9639
+ * reveal something the recorder hides unconditionally.
9640
+ *
9641
+ * `PUT /admin-portal/replay-masking`
9642
+ */
9643
+ async updateReplayMasking(params) {
9644
+ return this.request("PUT", "/admin-portal/replay-masking", { body: params });
9645
+ }
9646
+ /**
9647
+ * One merchant's replay-masking rules.
9648
+ *
9649
+ * `GET /admin-portal/accounts/{merchantId}/replay-masking`
9650
+ */
9651
+ async getMerchantReplayMasking(merchantId) {
9652
+ return this.request(
9653
+ "GET",
9654
+ `/admin-portal/accounts/${encodeURIComponent(merchantId)}/replay-masking`
9655
+ );
9656
+ }
9657
+ /**
9658
+ * Replace one merchant's replay-masking rules.
9659
+ *
9660
+ * `PUT /admin-portal/accounts/{merchantId}/replay-masking`
9661
+ */
9662
+ async updateMerchantReplayMasking(merchantId, params) {
9663
+ return this.request(
9664
+ "PUT",
9665
+ `/admin-portal/accounts/${encodeURIComponent(merchantId)}/replay-masking`,
9666
+ { body: params }
9667
+ );
9668
+ }
9669
+ /**
9670
+ * One shop's replay-masking rules.
9671
+ *
9672
+ * `GET /admin-portal/accounts/{merchantId}/business-profile/{profileId}/replay-masking`
9673
+ */
9674
+ async getShopReplayMasking(merchantId, profileId) {
9675
+ return this.request(
9676
+ "GET",
9677
+ `/admin-portal/accounts/${encodeURIComponent(merchantId)}/business-profile/${encodeURIComponent(profileId)}/replay-masking`
9678
+ );
9679
+ }
9680
+ /**
9681
+ * Replace one shop's replay-masking rules.
9682
+ *
9683
+ * `PUT /admin-portal/accounts/{merchantId}/business-profile/{profileId}/replay-masking`
9684
+ */
9685
+ async updateShopReplayMasking(merchantId, profileId, params) {
9686
+ return this.request(
9687
+ "PUT",
9688
+ `/admin-portal/accounts/${encodeURIComponent(merchantId)}/business-profile/${encodeURIComponent(profileId)}/replay-masking`,
9689
+ { body: params }
9690
+ );
9691
+ }
9374
9692
  /**
9375
9693
  * Soft-delete a transaction of ANY merchant. Only payments whose status
9376
9694
  * is in the admin delete policy can be deleted; the action is audited.
@@ -9434,6 +9752,79 @@ var AdminPortal = class {
9434
9752
  }
9435
9753
  );
9436
9754
  }
9755
+ /**
9756
+ * DeloPay's own processor cost schedules — our acquirer contract, which
9757
+ * prices every merchant that has no schedule of its own, except an account
9758
+ * a shop owner brought (that rate is in their contract, not ours, and lives
9759
+ * on the merchant surface).
9760
+ *
9761
+ * Never returned on the merchant surface: these rates are DeloPay's cost
9762
+ * base. The rows carry no merchant.
9763
+ *
9764
+ * `GET /admin-portal/processor-costs`
9765
+ */
9766
+ async listProcessorCostSchedules() {
9767
+ return this.request("GET", "/admin-portal/processor-costs");
9768
+ }
9769
+ /**
9770
+ * Record a DeloPay-wide cost schedule — what a rail charges DeloPay, for
9771
+ * rails that report no fee on the payment itself. A cost derived from one
9772
+ * of these is marked `estimated` on the settlement line, never `reported`.
9773
+ *
9774
+ * `POST /admin-portal/processor-costs`
9775
+ */
9776
+ async createProcessorCostSchedule(params) {
9777
+ return this.request("POST", "/admin-portal/processor-costs", { body: params });
9778
+ }
9779
+ /**
9780
+ * Record several DeloPay-wide schedules at once, all or none — copy a price
9781
+ * list across methods. 1 to 200 entries; an invalid entry is answered `422`
9782
+ * naming its index and nothing is stored. The answer lists them in request
9783
+ * order.
9784
+ *
9785
+ * `POST /admin-portal/processor-costs/bulk`
9786
+ */
9787
+ async bulkCreateProcessorCostSchedules(params) {
9788
+ return this.request("POST", "/admin-portal/processor-costs/bulk", { body: params });
9789
+ }
9790
+ /**
9791
+ * Close a window, deactivate a DeloPay-wide schedule or annotate it. The
9792
+ * rate itself is not editable: it priced transactions that already
9793
+ * happened, and a new rate is a new row.
9794
+ *
9795
+ * `PUT /admin-portal/processor-costs/{scheduleId}`
9796
+ */
9797
+ async updateProcessorCostSchedule(scheduleId, params) {
9798
+ return this.request("PUT", `/admin-portal/processor-costs/${encodeURIComponent(scheduleId)}`, {
9799
+ body: params
9800
+ });
9801
+ }
9802
+ /**
9803
+ * Close a DeloPay-wide schedule at `effective_from` and open its successor
9804
+ * with the same scope and the same end, in one step: no transaction is
9805
+ * priced by both rates, and none falls between them. Answers the successor.
9806
+ *
9807
+ * `POST /admin-portal/processor-costs/{scheduleId}/replace`
9808
+ */
9809
+ async replaceProcessorCostSchedule(scheduleId, params) {
9810
+ return this.request(
9811
+ "POST",
9812
+ `/admin-portal/processor-costs/${encodeURIComponent(scheduleId)}/replace`,
9813
+ { body: params }
9814
+ );
9815
+ }
9816
+ /**
9817
+ * Delete a DeloPay-wide schedule. Restates nothing: every figure it derived
9818
+ * is already stamped on the settlement lines it priced.
9819
+ *
9820
+ * `DELETE /admin-portal/processor-costs/{scheduleId}`
9821
+ */
9822
+ async deleteProcessorCostSchedule(scheduleId) {
9823
+ return this.request(
9824
+ "DELETE",
9825
+ `/admin-portal/processor-costs/${encodeURIComponent(scheduleId)}`
9826
+ );
9827
+ }
9437
9828
  /** Get the connector health polling interval. `GET /admin-portal/connector-health-config` */
9438
9829
  async getConnectorHealthConfig() {
9439
9830
  return this.request("GET", "/admin-portal/connector-health-config");
@@ -10348,6 +10739,7 @@ var DelopayInternal = class extends Delopay {
10348
10739
  Configs,
10349
10740
  ConnectorRestrictionRules,
10350
10741
  ConnectorRestrictions,
10742
+ CostRules,
10351
10743
  DEFAULT_BADGES,
10352
10744
  DEFAULT_BADGES_DARK,
10353
10745
  DEFAULT_BRANDING,
@@ -10384,6 +10776,7 @@ var DelopayInternal = class extends Delopay {
10384
10776
  PaypalDisputes,
10385
10777
  PlatformBilling,
10386
10778
  PlatformFees,
10779
+ ProcessorCosts,
10387
10780
  RTL_CHECKOUT_LOCALES,
10388
10781
  Regions,
10389
10782
  Risk,