@bcc-code/payment-client 1.0.6 → 1.0.7
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.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -3
- package/dist/index.mjs +6 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -6,7 +6,7 @@ interface CreatePaymentRequest {
|
|
|
6
6
|
paymentMethodType: string;
|
|
7
7
|
merchantReference?: string;
|
|
8
8
|
returnUrl: string;
|
|
9
|
-
paymentMethodDetails?: Record<string,
|
|
9
|
+
paymentMethodDetails?: Record<string, unknown>;
|
|
10
10
|
person?: PersonInfoRequest;
|
|
11
11
|
lineItems?: LineItemRequest[];
|
|
12
12
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ interface CreatePaymentRequest {
|
|
|
6
6
|
paymentMethodType: string;
|
|
7
7
|
merchantReference?: string;
|
|
8
8
|
returnUrl: string;
|
|
9
|
-
paymentMethodDetails?: Record<string,
|
|
9
|
+
paymentMethodDetails?: Record<string, unknown>;
|
|
10
10
|
person?: PersonInfoRequest;
|
|
11
11
|
lineItems?: LineItemRequest[];
|
|
12
12
|
}
|
package/dist/index.js
CHANGED
|
@@ -64,7 +64,8 @@ var PaymentClient = class {
|
|
|
64
64
|
}
|
|
65
65
|
const response = await fetch(`${this.baseUrl}/api/v1/payments/${paymentId}`, {
|
|
66
66
|
headers: {
|
|
67
|
-
"Authorization": `Bearer ${token}
|
|
67
|
+
"Authorization": `Bearer ${token}`,
|
|
68
|
+
"X-Tenant-ID": this.tenantId
|
|
68
69
|
},
|
|
69
70
|
signal: controller.signal
|
|
70
71
|
});
|
|
@@ -89,7 +90,8 @@ var PaymentClient = class {
|
|
|
89
90
|
`${this.baseUrl}/api/v1/payments/${paymentId}/receipt`,
|
|
90
91
|
{
|
|
91
92
|
headers: {
|
|
92
|
-
"Authorization": `Bearer ${token}
|
|
93
|
+
"Authorization": `Bearer ${token}`,
|
|
94
|
+
"X-Tenant-ID": this.tenantId
|
|
93
95
|
},
|
|
94
96
|
signal: controller.signal
|
|
95
97
|
}
|
|
@@ -115,7 +117,8 @@ var PaymentClient = class {
|
|
|
115
117
|
`${this.baseUrl}/api/v1/payments/stats/total?prefix=${encodeURIComponent(prefix)}`,
|
|
116
118
|
{
|
|
117
119
|
headers: {
|
|
118
|
-
"Authorization": `Bearer ${token}
|
|
120
|
+
"Authorization": `Bearer ${token}`,
|
|
121
|
+
"X-Tenant-ID": this.tenantId
|
|
119
122
|
},
|
|
120
123
|
signal: controller.signal
|
|
121
124
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -38,7 +38,8 @@ var PaymentClient = class {
|
|
|
38
38
|
}
|
|
39
39
|
const response = await fetch(`${this.baseUrl}/api/v1/payments/${paymentId}`, {
|
|
40
40
|
headers: {
|
|
41
|
-
"Authorization": `Bearer ${token}
|
|
41
|
+
"Authorization": `Bearer ${token}`,
|
|
42
|
+
"X-Tenant-ID": this.tenantId
|
|
42
43
|
},
|
|
43
44
|
signal: controller.signal
|
|
44
45
|
});
|
|
@@ -63,7 +64,8 @@ var PaymentClient = class {
|
|
|
63
64
|
`${this.baseUrl}/api/v1/payments/${paymentId}/receipt`,
|
|
64
65
|
{
|
|
65
66
|
headers: {
|
|
66
|
-
"Authorization": `Bearer ${token}
|
|
67
|
+
"Authorization": `Bearer ${token}`,
|
|
68
|
+
"X-Tenant-ID": this.tenantId
|
|
67
69
|
},
|
|
68
70
|
signal: controller.signal
|
|
69
71
|
}
|
|
@@ -89,7 +91,8 @@ var PaymentClient = class {
|
|
|
89
91
|
`${this.baseUrl}/api/v1/payments/stats/total?prefix=${encodeURIComponent(prefix)}`,
|
|
90
92
|
{
|
|
91
93
|
headers: {
|
|
92
|
-
"Authorization": `Bearer ${token}
|
|
94
|
+
"Authorization": `Bearer ${token}`,
|
|
95
|
+
"X-Tenant-ID": this.tenantId
|
|
93
96
|
},
|
|
94
97
|
signal: controller.signal
|
|
95
98
|
}
|