@reevit/node 0.3.2 → 0.3.3
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/types.d.ts +17 -0
- package/package.json +1 -1
- package/src/types.ts +18 -0
package/dist/types.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export interface PaymentIntentRequest {
|
|
|
3
3
|
currency: string;
|
|
4
4
|
method: string;
|
|
5
5
|
country: string;
|
|
6
|
+
reference?: string;
|
|
6
7
|
customer_id?: string;
|
|
7
8
|
policy?: FraudPolicyInput;
|
|
8
9
|
metadata?: Record<string, any>;
|
|
@@ -19,6 +20,7 @@ export interface Payment {
|
|
|
19
20
|
connection_id: string;
|
|
20
21
|
provider: string;
|
|
21
22
|
provider_ref_id: string;
|
|
23
|
+
reference?: string;
|
|
22
24
|
method: string;
|
|
23
25
|
status: string;
|
|
24
26
|
amount: number;
|
|
@@ -31,11 +33,20 @@ export interface Payment {
|
|
|
31
33
|
route: PaymentRouteAttempt[];
|
|
32
34
|
created_at: string;
|
|
33
35
|
updated_at: string;
|
|
36
|
+
/** Payment source type (payment_link, api, subscription) */
|
|
37
|
+
source?: PaymentSource;
|
|
38
|
+
/** ID of the source (payment link ID, subscription ID, etc.) */
|
|
39
|
+
source_id?: string;
|
|
40
|
+
/** Human-readable description of the source (e.g., payment link name) */
|
|
41
|
+
source_description?: string;
|
|
34
42
|
}
|
|
43
|
+
/** Payment source type - indicates where the payment originated from */
|
|
44
|
+
export type PaymentSource = 'payment_link' | 'api' | 'subscription';
|
|
35
45
|
export interface PaymentSummary {
|
|
36
46
|
id: string;
|
|
37
47
|
connection_id: string;
|
|
38
48
|
provider: string;
|
|
49
|
+
reference?: string;
|
|
39
50
|
method: string;
|
|
40
51
|
status: string;
|
|
41
52
|
amount: number;
|
|
@@ -46,6 +57,12 @@ export interface PaymentSummary {
|
|
|
46
57
|
customer_id: string;
|
|
47
58
|
metadata: Record<string, any>;
|
|
48
59
|
created_at: string;
|
|
60
|
+
/** Payment source type (payment_link, api, subscription) */
|
|
61
|
+
source?: PaymentSource;
|
|
62
|
+
/** ID of the source (payment link ID, subscription ID, etc.) */
|
|
63
|
+
source_id?: string;
|
|
64
|
+
/** Human-readable description of the source (e.g., payment link name) */
|
|
65
|
+
source_description?: string;
|
|
49
66
|
}
|
|
50
67
|
export interface PaymentRouteAttempt {
|
|
51
68
|
connection_id: string;
|
package/package.json
CHANGED
package/src/types.ts
CHANGED
|
@@ -3,6 +3,7 @@ export interface PaymentIntentRequest {
|
|
|
3
3
|
currency: string;
|
|
4
4
|
method: string;
|
|
5
5
|
country: string;
|
|
6
|
+
reference?: string;
|
|
6
7
|
customer_id?: string;
|
|
7
8
|
policy?: FraudPolicyInput;
|
|
8
9
|
metadata?: Record<string, any>;
|
|
@@ -21,6 +22,7 @@ export interface Payment {
|
|
|
21
22
|
connection_id: string;
|
|
22
23
|
provider: string;
|
|
23
24
|
provider_ref_id: string;
|
|
25
|
+
reference?: string;
|
|
24
26
|
method: string;
|
|
25
27
|
status: string;
|
|
26
28
|
amount: number;
|
|
@@ -33,12 +35,22 @@ export interface Payment {
|
|
|
33
35
|
route: PaymentRouteAttempt[];
|
|
34
36
|
created_at: string;
|
|
35
37
|
updated_at: string;
|
|
38
|
+
/** Payment source type (payment_link, api, subscription) */
|
|
39
|
+
source?: PaymentSource;
|
|
40
|
+
/** ID of the source (payment link ID, subscription ID, etc.) */
|
|
41
|
+
source_id?: string;
|
|
42
|
+
/** Human-readable description of the source (e.g., payment link name) */
|
|
43
|
+
source_description?: string;
|
|
36
44
|
}
|
|
37
45
|
|
|
46
|
+
/** Payment source type - indicates where the payment originated from */
|
|
47
|
+
export type PaymentSource = 'payment_link' | 'api' | 'subscription';
|
|
48
|
+
|
|
38
49
|
export interface PaymentSummary {
|
|
39
50
|
id: string;
|
|
40
51
|
connection_id: string;
|
|
41
52
|
provider: string;
|
|
53
|
+
reference?: string;
|
|
42
54
|
method: string;
|
|
43
55
|
status: string;
|
|
44
56
|
amount: number;
|
|
@@ -49,6 +61,12 @@ export interface PaymentSummary {
|
|
|
49
61
|
customer_id: string;
|
|
50
62
|
metadata: Record<string, any>;
|
|
51
63
|
created_at: string;
|
|
64
|
+
/** Payment source type (payment_link, api, subscription) */
|
|
65
|
+
source?: PaymentSource;
|
|
66
|
+
/** ID of the source (payment link ID, subscription ID, etc.) */
|
|
67
|
+
source_id?: string;
|
|
68
|
+
/** Human-readable description of the source (e.g., payment link name) */
|
|
69
|
+
source_description?: string;
|
|
52
70
|
}
|
|
53
71
|
|
|
54
72
|
export interface PaymentRouteAttempt {
|