@delopay/sdk 0.65.0 → 0.66.1

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
@@ -508,6 +508,12 @@ interface RefundResponse {
508
508
  issuer_error_message?: string | null;
509
509
  /** Raw connector response payload (debugging). */
510
510
  raw_connector_response?: string | null;
511
+ /**
512
+ * Whether the refund ran in test mode, inherited from the parent payment's
513
+ * environment (a live payment always refunds live). Null when unknown/legacy
514
+ * (treated as live).
515
+ */
516
+ test_mode?: boolean | null;
511
517
  }
512
518
  interface RefundListParams {
513
519
  payment_id?: string | null;
@@ -520,6 +526,8 @@ interface RefundListParams {
520
526
  connector?: string[] | null;
521
527
  currency?: Currency[] | null;
522
528
  refund_status?: RefundStatus[] | null;
529
+ /** Filter by environment: true = test only, false = live only, omit for all. */
530
+ test_mode?: boolean;
523
531
  }
524
532
  interface RefundListResponse {
525
533
  count: number;
@@ -689,6 +697,11 @@ interface DisputeResponse {
689
697
  updated_at?: string | null;
690
698
  profile_id?: string | null;
691
699
  merchant_connector_id?: string | null;
700
+ /**
701
+ * Whether the dispute is in test mode, inherited from the disputed payment's
702
+ * environment. Null when unknown/legacy (treated as live).
703
+ */
704
+ test_mode?: boolean | null;
692
705
  }
693
706
  interface DisputeListParams {
694
707
  limit?: number | null;
@@ -706,6 +719,8 @@ interface DisputeListParams {
706
719
  start_time?: string | null;
707
720
  /** ISO 8601 creation-time range end; defaults to now. */
708
721
  end_time?: string | null;
722
+ /** Filter by environment: true = test only, false = live only, omit for all. */
723
+ test_mode?: boolean;
709
724
  }
710
725
  interface DisputeEvidenceRequest {
711
726
  cancel_dispute?: boolean | null;
@@ -940,6 +955,16 @@ interface ConnectorWebhookEntry {
940
955
  connector_webhook_id: string;
941
956
  /** Absent for registrations stored before environments were tracked (all live). */
942
957
  environment?: WebhookRegistrationEnvironment;
958
+ /** Callback URL the endpoint is registered to. Present when the list is
959
+ * sourced live from the connector (e.g. Stripe); absent for entries
960
+ * reconstructed from stored registration metadata only. */
961
+ webhook_url?: string;
962
+ /** Endpoint status as the connector reports it (e.g. `enabled`/`disabled`). */
963
+ status?: string;
964
+ /** Events the endpoint is subscribed to at the connector. */
965
+ enabled_events?: string[];
966
+ /** Unix timestamp (seconds) the endpoint was created at the connector. */
967
+ created_at?: number;
943
968
  }
944
969
  interface ConnectorWebhookListResponse {
945
970
  connector: string;
@@ -2634,6 +2659,8 @@ interface CancelSubscriptionRequest {
2634
2659
  interface SubscriptionListParams {
2635
2660
  limit?: number;
2636
2661
  offset?: number;
2662
+ /** Filter by environment: true = test only, false = live only, omit for all. */
2663
+ test_mode?: boolean;
2637
2664
  }
2638
2665
  /** Query for `GET /subscriptions/items`. */
2639
2666
  interface GetSubscriptionItemsParams {
@@ -2668,6 +2695,11 @@ interface SubscriptionResponse {
2668
2695
  customer_id: string;
2669
2696
  payment?: SubscriptionPaymentData | null;
2670
2697
  invoice?: SubscriptionInvoice | null;
2698
+ /**
2699
+ * Whether the subscription runs against a sandbox/test billing connector.
2700
+ * Null for legacy subscriptions (treated as live).
2701
+ */
2702
+ test_mode?: boolean | null;
2671
2703
  }
2672
2704
  /**
2673
2705
  * Returned by `POST /subscriptions` (create + confirm) and
package/dist/index.d.ts CHANGED
@@ -508,6 +508,12 @@ interface RefundResponse {
508
508
  issuer_error_message?: string | null;
509
509
  /** Raw connector response payload (debugging). */
510
510
  raw_connector_response?: string | null;
511
+ /**
512
+ * Whether the refund ran in test mode, inherited from the parent payment's
513
+ * environment (a live payment always refunds live). Null when unknown/legacy
514
+ * (treated as live).
515
+ */
516
+ test_mode?: boolean | null;
511
517
  }
512
518
  interface RefundListParams {
513
519
  payment_id?: string | null;
@@ -520,6 +526,8 @@ interface RefundListParams {
520
526
  connector?: string[] | null;
521
527
  currency?: Currency[] | null;
522
528
  refund_status?: RefundStatus[] | null;
529
+ /** Filter by environment: true = test only, false = live only, omit for all. */
530
+ test_mode?: boolean;
523
531
  }
524
532
  interface RefundListResponse {
525
533
  count: number;
@@ -689,6 +697,11 @@ interface DisputeResponse {
689
697
  updated_at?: string | null;
690
698
  profile_id?: string | null;
691
699
  merchant_connector_id?: string | null;
700
+ /**
701
+ * Whether the dispute is in test mode, inherited from the disputed payment's
702
+ * environment. Null when unknown/legacy (treated as live).
703
+ */
704
+ test_mode?: boolean | null;
692
705
  }
693
706
  interface DisputeListParams {
694
707
  limit?: number | null;
@@ -706,6 +719,8 @@ interface DisputeListParams {
706
719
  start_time?: string | null;
707
720
  /** ISO 8601 creation-time range end; defaults to now. */
708
721
  end_time?: string | null;
722
+ /** Filter by environment: true = test only, false = live only, omit for all. */
723
+ test_mode?: boolean;
709
724
  }
710
725
  interface DisputeEvidenceRequest {
711
726
  cancel_dispute?: boolean | null;
@@ -940,6 +955,16 @@ interface ConnectorWebhookEntry {
940
955
  connector_webhook_id: string;
941
956
  /** Absent for registrations stored before environments were tracked (all live). */
942
957
  environment?: WebhookRegistrationEnvironment;
958
+ /** Callback URL the endpoint is registered to. Present when the list is
959
+ * sourced live from the connector (e.g. Stripe); absent for entries
960
+ * reconstructed from stored registration metadata only. */
961
+ webhook_url?: string;
962
+ /** Endpoint status as the connector reports it (e.g. `enabled`/`disabled`). */
963
+ status?: string;
964
+ /** Events the endpoint is subscribed to at the connector. */
965
+ enabled_events?: string[];
966
+ /** Unix timestamp (seconds) the endpoint was created at the connector. */
967
+ created_at?: number;
943
968
  }
944
969
  interface ConnectorWebhookListResponse {
945
970
  connector: string;
@@ -2634,6 +2659,8 @@ interface CancelSubscriptionRequest {
2634
2659
  interface SubscriptionListParams {
2635
2660
  limit?: number;
2636
2661
  offset?: number;
2662
+ /** Filter by environment: true = test only, false = live only, omit for all. */
2663
+ test_mode?: boolean;
2637
2664
  }
2638
2665
  /** Query for `GET /subscriptions/items`. */
2639
2666
  interface GetSubscriptionItemsParams {
@@ -2668,6 +2695,11 @@ interface SubscriptionResponse {
2668
2695
  customer_id: string;
2669
2696
  payment?: SubscriptionPaymentData | null;
2670
2697
  invoice?: SubscriptionInvoice | null;
2698
+ /**
2699
+ * Whether the subscription runs against a sandbox/test billing connector.
2700
+ * Null for legacy subscriptions (treated as live).
2701
+ */
2702
+ test_mode?: boolean | null;
2671
2703
  }
2672
2704
  /**
2673
2705
  * Returned by `POST /subscriptions` (create + confirm) and
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delopay/sdk",
3
- "version": "0.65.0",
3
+ "version": "0.66.1",
4
4
  "description": "Official Delopay TypeScript SDK",
5
5
  "type": "module",
6
6
  "sideEffects": false,