@delopay/sdk 0.65.0 → 0.66.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 +22 -0
- package/dist/index.d.ts +22 -0
- package/package.json +1 -1
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;
|
|
@@ -2634,6 +2649,8 @@ interface CancelSubscriptionRequest {
|
|
|
2634
2649
|
interface SubscriptionListParams {
|
|
2635
2650
|
limit?: number;
|
|
2636
2651
|
offset?: number;
|
|
2652
|
+
/** Filter by environment: true = test only, false = live only, omit for all. */
|
|
2653
|
+
test_mode?: boolean;
|
|
2637
2654
|
}
|
|
2638
2655
|
/** Query for `GET /subscriptions/items`. */
|
|
2639
2656
|
interface GetSubscriptionItemsParams {
|
|
@@ -2668,6 +2685,11 @@ interface SubscriptionResponse {
|
|
|
2668
2685
|
customer_id: string;
|
|
2669
2686
|
payment?: SubscriptionPaymentData | null;
|
|
2670
2687
|
invoice?: SubscriptionInvoice | null;
|
|
2688
|
+
/**
|
|
2689
|
+
* Whether the subscription runs against a sandbox/test billing connector.
|
|
2690
|
+
* Null for legacy subscriptions (treated as live).
|
|
2691
|
+
*/
|
|
2692
|
+
test_mode?: boolean | null;
|
|
2671
2693
|
}
|
|
2672
2694
|
/**
|
|
2673
2695
|
* 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;
|
|
@@ -2634,6 +2649,8 @@ interface CancelSubscriptionRequest {
|
|
|
2634
2649
|
interface SubscriptionListParams {
|
|
2635
2650
|
limit?: number;
|
|
2636
2651
|
offset?: number;
|
|
2652
|
+
/** Filter by environment: true = test only, false = live only, omit for all. */
|
|
2653
|
+
test_mode?: boolean;
|
|
2637
2654
|
}
|
|
2638
2655
|
/** Query for `GET /subscriptions/items`. */
|
|
2639
2656
|
interface GetSubscriptionItemsParams {
|
|
@@ -2668,6 +2685,11 @@ interface SubscriptionResponse {
|
|
|
2668
2685
|
customer_id: string;
|
|
2669
2686
|
payment?: SubscriptionPaymentData | null;
|
|
2670
2687
|
invoice?: SubscriptionInvoice | null;
|
|
2688
|
+
/**
|
|
2689
|
+
* Whether the subscription runs against a sandbox/test billing connector.
|
|
2690
|
+
* Null for legacy subscriptions (treated as live).
|
|
2691
|
+
*/
|
|
2692
|
+
test_mode?: boolean | null;
|
|
2671
2693
|
}
|
|
2672
2694
|
/**
|
|
2673
2695
|
* Returned by `POST /subscriptions` (create + confirm) and
|