@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.
- package/dist/{chunk-OKPNRCCS.js → chunk-NRLTXUV7.js} +36 -3
- package/dist/chunk-NRLTXUV7.js.map +1 -0
- package/dist/index.cjs +35 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +217 -26
- package/dist/index.d.ts +217 -26
- package/dist/index.js +1 -1
- package/dist/internal.cjs +52 -2
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +13 -3
- package/dist/internal.d.ts +13 -3
- package/dist/internal.js +18 -1
- package/dist/internal.js.map +1 -1
- package/package.json +18 -17
- package/dist/chunk-OKPNRCCS.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -4624,6 +4624,31 @@ var Settlement = class {
|
|
|
4624
4624
|
constructor(request) {
|
|
4625
4625
|
this.request = request;
|
|
4626
4626
|
}
|
|
4627
|
+
/**
|
|
4628
|
+
* Read signed refund/dispute processor fees and report availability.
|
|
4629
|
+
* Merchant scope and connector grants apply. Empty movements confirm zero
|
|
4630
|
+
* only when the source is reported and complete.
|
|
4631
|
+
* Supply payment_id without year/month for all history. force_sync reads
|
|
4632
|
+
* provider reports for this page; it requires payment_id and limit <= 20,
|
|
4633
|
+
* and never issues a payment, refund or dispute action.
|
|
4634
|
+
* Omit test_mode for every reporting partition of one payment; period
|
|
4635
|
+
* queries default to live. Each source states its reporting partition.
|
|
4636
|
+
*/
|
|
4637
|
+
async listProcessorCostEvents(params, options) {
|
|
4638
|
+
return this.request("GET", "/settlement/processor-cost-events", {
|
|
4639
|
+
query: {
|
|
4640
|
+
profile_id: params.profile_id,
|
|
4641
|
+
payment_id: params.payment_id,
|
|
4642
|
+
year: params.year,
|
|
4643
|
+
month: params.month,
|
|
4644
|
+
test_mode: params.test_mode,
|
|
4645
|
+
limit: params.limit,
|
|
4646
|
+
offset: params.offset,
|
|
4647
|
+
force_sync: params.force_sync
|
|
4648
|
+
},
|
|
4649
|
+
...options
|
|
4650
|
+
});
|
|
4651
|
+
}
|
|
4627
4652
|
/**
|
|
4628
4653
|
* Per-shop settlement rollup for the host merchant: unpaid totals and the
|
|
4629
4654
|
* running current period, one row per shop.
|
|
@@ -4658,7 +4683,9 @@ var Settlement = class {
|
|
|
4658
4683
|
* **Host-only.** The response is the host's cost base, which a shop owner
|
|
4659
4684
|
* must never see, so a profile-scoped caller is refused with a 403 rather
|
|
4660
4685
|
* than given a redacted shell. Gate the surface on the caller's scope
|
|
4661
|
-
* instead of calling it and handling the failure.
|
|
4686
|
+
* instead of calling it and handling the failure. Connector-restricted
|
|
4687
|
+
* roles cannot read this merchant-wide aggregate; fee-event reads retain
|
|
4688
|
+
* their connector grants.
|
|
4662
4689
|
*
|
|
4663
4690
|
* Two things not to flatten when rendering the result:
|
|
4664
4691
|
* `margin_usd` is absent — not zero — whenever `margin_quality` is
|
|
@@ -7735,12 +7762,18 @@ var CheckoutSession = class {
|
|
|
7735
7762
|
* order that PayPal's buttons or Card Fields attach the buyer's choice to.
|
|
7736
7763
|
* The client secret is attached automatically.
|
|
7737
7764
|
*
|
|
7738
|
-
* For PayPal Card Fields
|
|
7765
|
+
* For PayPal Card Fields pass `payment_method: 'card'` and the
|
|
7739
7766
|
* `merchant_connector_id` the checkout was rendered with; the order id comes
|
|
7740
7767
|
* back in `next_action.next_action_data.order_id` and is what the SDK's
|
|
7741
7768
|
* `createOrder` returns. The confirm that captures it sends the same order
|
|
7742
7769
|
* and account as `payment_method_data.card_reference`.
|
|
7743
7770
|
*
|
|
7771
|
+
* Send a distinct `Idempotency-Key` through `options.headers` for each new
|
|
7772
|
+
* card submission; reuse it only to retry that same session request. The
|
|
7773
|
+
* returned order is bound to this attempt and account. Sessions cannot
|
|
7774
|
+
* replace an order while authentication or money processing is unresolved,
|
|
7775
|
+
* or after authorization/capture; stale or foreign references are refused.
|
|
7776
|
+
*
|
|
7744
7777
|
* `POST /payments/{paymentId}/post-session-tokens` (publishable key)
|
|
7745
7778
|
*/
|
|
7746
7779
|
async postSessionTokens(params, options) {
|