@delopay/sdk 0.118.0 → 0.120.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
@@ -527,14 +527,19 @@ interface PaymentAttemptsListResponse {
527
527
  /**
528
528
  * Which entity a status-history event belongs to.
529
529
  *
530
- * `risk` and `checkout` are timeline events with no underlying status change:
531
- * `risk` carries a processor risk signal (early fraud warning, manual review)
532
- * and `checkout` a buyer-side checkout event (native-pane selection, external
533
- * tab opened/blocked, abandonment). For both, `status` holds the event name
534
- * rather than a payment state, and `entity_id` names what it is about (the
535
- * processor's signal id, or the native-pane method key).
536
- */
537
- type PaymentStatusHistoryEntityType = 'payment' | 'attempt' | 'refund' | 'dispute' | 'risk' | 'checkout';
530
+ * `risk`, `checkout` and `routing` are timeline events with no underlying
531
+ * status change: `risk` carries a processor risk signal (early fraud warning,
532
+ * manual review), `checkout` a buyer-side checkout event (native-pane
533
+ * selection, external tab opened/blocked, abandonment), and `routing` a rail
534
+ * handover the payment settled on a different provider than the one that
535
+ * last failed on the same attempt, which happens when a buyer falls back to
536
+ * the card form after a native pane errors. For all three, `status` holds the
537
+ * event name rather than a payment state, and `entity_id` names what it is
538
+ * about (the processor's signal id, the native-pane method key, or the
539
+ * connector the payment moved away from — with `connector` naming the one
540
+ * that settled it).
541
+ */
542
+ type PaymentStatusHistoryEntityType = 'payment' | 'attempt' | 'refund' | 'dispute' | 'risk' | 'checkout' | 'routing';
538
543
  /**
539
544
  * One event on a payment's status timeline: the creation of, or a status
540
545
  * transition on, the payment intent or one of its attempts / refunds /
package/dist/index.d.ts CHANGED
@@ -527,14 +527,19 @@ interface PaymentAttemptsListResponse {
527
527
  /**
528
528
  * Which entity a status-history event belongs to.
529
529
  *
530
- * `risk` and `checkout` are timeline events with no underlying status change:
531
- * `risk` carries a processor risk signal (early fraud warning, manual review)
532
- * and `checkout` a buyer-side checkout event (native-pane selection, external
533
- * tab opened/blocked, abandonment). For both, `status` holds the event name
534
- * rather than a payment state, and `entity_id` names what it is about (the
535
- * processor's signal id, or the native-pane method key).
536
- */
537
- type PaymentStatusHistoryEntityType = 'payment' | 'attempt' | 'refund' | 'dispute' | 'risk' | 'checkout';
530
+ * `risk`, `checkout` and `routing` are timeline events with no underlying
531
+ * status change: `risk` carries a processor risk signal (early fraud warning,
532
+ * manual review), `checkout` a buyer-side checkout event (native-pane
533
+ * selection, external tab opened/blocked, abandonment), and `routing` a rail
534
+ * handover the payment settled on a different provider than the one that
535
+ * last failed on the same attempt, which happens when a buyer falls back to
536
+ * the card form after a native pane errors. For all three, `status` holds the
537
+ * event name rather than a payment state, and `entity_id` names what it is
538
+ * about (the processor's signal id, the native-pane method key, or the
539
+ * connector the payment moved away from — with `connector` naming the one
540
+ * that settled it).
541
+ */
542
+ type PaymentStatusHistoryEntityType = 'payment' | 'attempt' | 'refund' | 'dispute' | 'risk' | 'checkout' | 'routing';
538
543
  /**
539
544
  * One event on a payment's status timeline: the creation of, or a status
540
545
  * transition on, the payment intent or one of its attempts / refunds /
package/dist/internal.cjs CHANGED
@@ -8132,6 +8132,28 @@ var PlatformBilling = class {
8132
8132
  body: params
8133
8133
  });
8134
8134
  }
8135
+ /**
8136
+ * Set the merchant's hard floor — the balance at or below which the
8137
+ * merchant stops being active. A negative value grants a credit line; zero
8138
+ * means no negative balance at all. This moves the suspension line, it does
8139
+ * not remove it. The value and the caller are written to the audit log
8140
+ * before the floor changes, so the change is always attributable.
8141
+ *
8142
+ * Refused (412) for a positive amount, for a floor beyond the maximum
8143
+ * credit line of 10,000,000 minor units, or for an empty `reason`.
8144
+ *
8145
+ * Requires a router that serves the hard-floor admin route; older ones
8146
+ * answer `404`.
8147
+ *
8148
+ * @param merchantId - The merchant account ID.
8149
+ * @param params - The new floor (zero or negative) and the audit reason.
8150
+ * @returns The updated billing profile.
8151
+ */
8152
+ async setHardFloor(merchantId, params) {
8153
+ return this.request("PATCH", `/billing/${encodeURIComponent(merchantId)}/admin/hard-floor`, {
8154
+ body: params
8155
+ });
8156
+ }
8135
8157
  /**
8136
8158
  * Mark a merchant free (not billed), or put it back on the prepaid model.
8137
8159
  * While free, no platform fee is deducted, the payment gate never blocks on