@delopay/sdk 0.144.0 → 0.146.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.
@@ -4429,6 +4429,31 @@ var Settlement = class {
4429
4429
  constructor(request) {
4430
4430
  this.request = request;
4431
4431
  }
4432
+ /**
4433
+ * Read signed refund/dispute processor fees and report availability.
4434
+ * Merchant scope and connector grants apply. Empty movements confirm zero
4435
+ * only when the source is reported and complete.
4436
+ * Supply payment_id without year/month for all history. force_sync reads
4437
+ * provider reports for this page; it requires payment_id and limit <= 20,
4438
+ * and never issues a payment, refund or dispute action.
4439
+ * Omit test_mode for every reporting partition of one payment; period
4440
+ * queries default to live. Each source states its reporting partition.
4441
+ */
4442
+ async listProcessorCostEvents(params, options) {
4443
+ return this.request("GET", "/settlement/processor-cost-events", {
4444
+ query: {
4445
+ profile_id: params.profile_id,
4446
+ payment_id: params.payment_id,
4447
+ year: params.year,
4448
+ month: params.month,
4449
+ test_mode: params.test_mode,
4450
+ limit: params.limit,
4451
+ offset: params.offset,
4452
+ force_sync: params.force_sync
4453
+ },
4454
+ ...options
4455
+ });
4456
+ }
4432
4457
  /**
4433
4458
  * Per-shop settlement rollup for the host merchant: unpaid totals and the
4434
4459
  * running current period, one row per shop.
@@ -4463,7 +4488,9 @@ var Settlement = class {
4463
4488
  * **Host-only.** The response is the host's cost base, which a shop owner
4464
4489
  * must never see, so a profile-scoped caller is refused with a 403 rather
4465
4490
  * than given a redacted shell. Gate the surface on the caller's scope
4466
- * instead of calling it and handling the failure.
4491
+ * instead of calling it and handling the failure. Connector-restricted
4492
+ * roles cannot read this merchant-wide aggregate; fee-event reads retain
4493
+ * their connector grants.
4467
4494
  *
4468
4495
  * Two things not to flatten when rendering the result:
4469
4496
  * `margin_usd` is absent — not zero — whenever `margin_quality` is
@@ -7540,12 +7567,18 @@ var CheckoutSession = class {
7540
7567
  * order that PayPal's buttons or Card Fields attach the buyer's choice to.
7541
7568
  * The client secret is attached automatically.
7542
7569
  *
7543
- * For PayPal Card Fields (be#1387) pass `payment_method: 'card'` and the
7570
+ * For PayPal Card Fields pass `payment_method: 'card'` and the
7544
7571
  * `merchant_connector_id` the checkout was rendered with; the order id comes
7545
7572
  * back in `next_action.next_action_data.order_id` and is what the SDK's
7546
7573
  * `createOrder` returns. The confirm that captures it sends the same order
7547
7574
  * and account as `payment_method_data.card_reference`.
7548
7575
  *
7576
+ * Send a distinct `Idempotency-Key` through `options.headers` for each new
7577
+ * card submission; reuse it only to retry that same session request. The
7578
+ * returned order is bound to this attempt and account. Sessions cannot
7579
+ * replace an order while authentication or money processing is unresolved,
7580
+ * or after authorization/capture; stale or foreign references are refused.
7581
+ *
7549
7582
  * `POST /payments/{paymentId}/post-session-tokens` (publishable key)
7550
7583
  */
7551
7584
  async postSessionTokens(params, options) {
@@ -8171,4 +8204,4 @@ export {
8171
8204
  decodeNativePanes,
8172
8205
  encodeNativePanes
8173
8206
  };
8174
- //# sourceMappingURL=chunk-OKPNRCCS.js.map
8207
+ //# sourceMappingURL=chunk-NRLTXUV7.js.map