@delopay/sdk 0.200.0 → 0.202.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-OJIATYCP.js → chunk-3U2LBZ32.js} +5 -4
- package/dist/chunk-3U2LBZ32.js.map +1 -0
- package/dist/index.cjs +4 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -7
- package/dist/index.d.ts +16 -7
- package/dist/index.js +1 -1
- package/dist/internal.cjs +4 -3
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +8 -0
- package/dist/internal.d.ts +8 -0
- package/dist/internal.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-OJIATYCP.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -87,7 +87,7 @@ type EventType = ManualTriggerEventType | 'dispute_opened' | 'dispute_expired' |
|
|
|
87
87
|
* which is what to deduplicate on.
|
|
88
88
|
*/
|
|
89
89
|
type SubscriptionLifecycleEventType = 'subscription_created' | 'subscription_active' | 'subscription_past_due' | 'subscription_paused' | 'subscription_resumed' | 'subscription_cancelled' | 'subscription_expired' | 'invoice_payment_failed';
|
|
90
|
-
type EventClass = 'payments' | 'refunds' | 'disputes' | 'mandates' | 'payouts' | 'subscriptions'
|
|
90
|
+
type EventClass = 'payments' | 'refunds' | 'disputes' | 'mandates' | 'payouts' | 'subscriptions'
|
|
91
91
|
/**
|
|
92
92
|
* Assessments DeloPay makes about a shop rather than an object the merchant
|
|
93
93
|
* creates: today only `shop_risk_band_escalated`. A subscription to
|
|
@@ -853,6 +853,13 @@ interface PaymentStatusHistoryResponse {
|
|
|
853
853
|
count: number;
|
|
854
854
|
/** All recorded events, oldest first. */
|
|
855
855
|
events: PaymentStatusHistoryEvent[];
|
|
856
|
+
/**
|
|
857
|
+
* The most recent operator assertion about this payment, when present and
|
|
858
|
+
* visible to this caller. Processor-restricted roles receive no marker.
|
|
859
|
+
* This is separate from processor status events: it records who made an
|
|
860
|
+
* assertion, not who caused the payment's current status.
|
|
861
|
+
*/
|
|
862
|
+
external_record?: ExternalRecordMarker | null;
|
|
856
863
|
}
|
|
857
864
|
/**
|
|
858
865
|
* Why an attempt's candidate list is what it is — one value per code path in
|
|
@@ -6757,7 +6764,8 @@ interface ExternalRecordKindCapability {
|
|
|
6757
6764
|
resource: ExternalRecordResource;
|
|
6758
6765
|
/**
|
|
6759
6766
|
* Whether a transition of an object that already has a row here is served.
|
|
6760
|
-
* `false`
|
|
6767
|
+
* `false` can also mean the arm is disabled for this merchant by rollout or
|
|
6768
|
+
* storage eligibility. Read the current response before offering an action.
|
|
6761
6769
|
*/
|
|
6762
6770
|
transition: boolean;
|
|
6763
6771
|
create: ExternalRecordCreateSupport;
|
|
@@ -6773,8 +6781,8 @@ interface ExternalRecordKindCapability {
|
|
|
6773
6781
|
/**
|
|
6774
6782
|
* What this deployment serves, per kind.
|
|
6775
6783
|
*
|
|
6776
|
-
* Read it before offering the operator a form
|
|
6777
|
-
*
|
|
6784
|
+
* Read it before offering the operator a form. Every declared kind remains
|
|
6785
|
+
* listed; its transition and create fields say what this merchant can use now.
|
|
6778
6786
|
*/
|
|
6779
6787
|
interface ExternalRecordCapabilities {
|
|
6780
6788
|
/**
|
|
@@ -18005,9 +18013,10 @@ declare class ExternalRecords {
|
|
|
18005
18013
|
* same thing is how a caller ends up waiting for something that will never
|
|
18006
18014
|
* be built.
|
|
18007
18015
|
*
|
|
18008
|
-
* The answer
|
|
18009
|
-
* it
|
|
18010
|
-
*
|
|
18016
|
+
* The answer includes the current merchant's rollout and storage eligibility.
|
|
18017
|
+
* Read it for the authenticated merchant when deciding whether to offer an
|
|
18018
|
+
* action; do not reuse another merchant's response or a previous session's
|
|
18019
|
+
* answer after eligibility may have changed.
|
|
18011
18020
|
*/
|
|
18012
18021
|
capabilities(): Promise<ExternalRecordCapabilities>;
|
|
18013
18022
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -87,7 +87,7 @@ type EventType = ManualTriggerEventType | 'dispute_opened' | 'dispute_expired' |
|
|
|
87
87
|
* which is what to deduplicate on.
|
|
88
88
|
*/
|
|
89
89
|
type SubscriptionLifecycleEventType = 'subscription_created' | 'subscription_active' | 'subscription_past_due' | 'subscription_paused' | 'subscription_resumed' | 'subscription_cancelled' | 'subscription_expired' | 'invoice_payment_failed';
|
|
90
|
-
type EventClass = 'payments' | 'refunds' | 'disputes' | 'mandates' | 'payouts' | 'subscriptions'
|
|
90
|
+
type EventClass = 'payments' | 'refunds' | 'disputes' | 'mandates' | 'payouts' | 'subscriptions'
|
|
91
91
|
/**
|
|
92
92
|
* Assessments DeloPay makes about a shop rather than an object the merchant
|
|
93
93
|
* creates: today only `shop_risk_band_escalated`. A subscription to
|
|
@@ -853,6 +853,13 @@ interface PaymentStatusHistoryResponse {
|
|
|
853
853
|
count: number;
|
|
854
854
|
/** All recorded events, oldest first. */
|
|
855
855
|
events: PaymentStatusHistoryEvent[];
|
|
856
|
+
/**
|
|
857
|
+
* The most recent operator assertion about this payment, when present and
|
|
858
|
+
* visible to this caller. Processor-restricted roles receive no marker.
|
|
859
|
+
* This is separate from processor status events: it records who made an
|
|
860
|
+
* assertion, not who caused the payment's current status.
|
|
861
|
+
*/
|
|
862
|
+
external_record?: ExternalRecordMarker | null;
|
|
856
863
|
}
|
|
857
864
|
/**
|
|
858
865
|
* Why an attempt's candidate list is what it is — one value per code path in
|
|
@@ -6757,7 +6764,8 @@ interface ExternalRecordKindCapability {
|
|
|
6757
6764
|
resource: ExternalRecordResource;
|
|
6758
6765
|
/**
|
|
6759
6766
|
* Whether a transition of an object that already has a row here is served.
|
|
6760
|
-
* `false`
|
|
6767
|
+
* `false` can also mean the arm is disabled for this merchant by rollout or
|
|
6768
|
+
* storage eligibility. Read the current response before offering an action.
|
|
6761
6769
|
*/
|
|
6762
6770
|
transition: boolean;
|
|
6763
6771
|
create: ExternalRecordCreateSupport;
|
|
@@ -6773,8 +6781,8 @@ interface ExternalRecordKindCapability {
|
|
|
6773
6781
|
/**
|
|
6774
6782
|
* What this deployment serves, per kind.
|
|
6775
6783
|
*
|
|
6776
|
-
* Read it before offering the operator a form
|
|
6777
|
-
*
|
|
6784
|
+
* Read it before offering the operator a form. Every declared kind remains
|
|
6785
|
+
* listed; its transition and create fields say what this merchant can use now.
|
|
6778
6786
|
*/
|
|
6779
6787
|
interface ExternalRecordCapabilities {
|
|
6780
6788
|
/**
|
|
@@ -18005,9 +18013,10 @@ declare class ExternalRecords {
|
|
|
18005
18013
|
* same thing is how a caller ends up waiting for something that will never
|
|
18006
18014
|
* be built.
|
|
18007
18015
|
*
|
|
18008
|
-
* The answer
|
|
18009
|
-
* it
|
|
18010
|
-
*
|
|
18016
|
+
* The answer includes the current merchant's rollout and storage eligibility.
|
|
18017
|
+
* Read it for the authenticated merchant when deciding whether to offer an
|
|
18018
|
+
* action; do not reuse another merchant's response or a previous session's
|
|
18019
|
+
* answer after eligibility may have changed.
|
|
18011
18020
|
*/
|
|
18012
18021
|
capabilities(): Promise<ExternalRecordCapabilities>;
|
|
18013
18022
|
}
|
package/dist/index.js
CHANGED
package/dist/internal.cjs
CHANGED
|
@@ -5308,9 +5308,10 @@ var ExternalRecords = class {
|
|
|
5308
5308
|
* same thing is how a caller ends up waiting for something that will never
|
|
5309
5309
|
* be built.
|
|
5310
5310
|
*
|
|
5311
|
-
* The answer
|
|
5312
|
-
* it
|
|
5313
|
-
*
|
|
5311
|
+
* The answer includes the current merchant's rollout and storage eligibility.
|
|
5312
|
+
* Read it for the authenticated merchant when deciding whether to offer an
|
|
5313
|
+
* action; do not reuse another merchant's response or a previous session's
|
|
5314
|
+
* answer after eligibility may have changed.
|
|
5314
5315
|
*/
|
|
5315
5316
|
async capabilities() {
|
|
5316
5317
|
return this.request("GET", "/external-records/capabilities");
|