@delopay/sdk 0.200.0 → 0.201.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.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' | 'invoices'
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` means the kind is declared and its arm is not built.
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, so a kind this release does not
6777
- * serve is absent from it rather than failing after the form is filled in.
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 describes the binary rather than anything a merchant owns, so
18009
- * it is the same for every caller of one deployment and is safe to cache for
18010
- * the life of a dashboard session.
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' | 'invoices'
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` means the kind is declared and its arm is not built.
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, so a kind this release does not
6777
- * serve is absent from it rather than failing after the form is filled in.
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 describes the binary rather than anything a merchant owns, so
18009
- * it is the same for every caller of one deployment and is safe to cache for
18010
- * the life of a dashboard session.
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
@@ -216,7 +216,7 @@ import {
216
216
  validatePanes,
217
217
  verticalGapValue,
218
218
  visibleCustomFields
219
- } from "./chunk-OJIATYCP.js";
219
+ } from "./chunk-3U2LBZ32.js";
220
220
  export {
221
221
  AIRWALLEX_AUTOFILL_TREATMENTS,
222
222
  AIRWALLEX_CARD_LAYOUTS,
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 describes the binary rather than anything a merchant owns, so
5312
- * it is the same for every caller of one deployment and is safe to cache for
5313
- * the life of a dashboard session.
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");