@bloque/payments-core 0.1.0 → 0.1.2
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/payment.d.ts +7 -3
- package/dist/types.d.ts +1 -1
- package/package.json +1 -1
package/dist/types/payment.d.ts
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Internal reference types. NOT exported from the @bloque/payments-core barrel.
|
|
3
|
+
* The canonical versions live in @bloque/payments.
|
|
4
|
+
*/
|
|
1
5
|
import type { PaymentSubmitPayload } from './payment-submit';
|
|
2
6
|
export type PaymentMethodType = 'card' | 'pse' | 'cash';
|
|
3
7
|
export interface CreatePaymentParams {
|
|
4
|
-
|
|
8
|
+
paymentUrn: string;
|
|
5
9
|
payment: PaymentSubmitPayload;
|
|
6
10
|
}
|
|
7
11
|
export interface PaymentResponse {
|
|
8
12
|
id: string;
|
|
9
13
|
object: 'payment';
|
|
10
|
-
status: '
|
|
14
|
+
status: 'approved' | 'rejected' | 'pending';
|
|
15
|
+
message: string;
|
|
11
16
|
amount: number;
|
|
12
17
|
currency: string;
|
|
13
18
|
created_at: string;
|
|
14
|
-
updated_at: string;
|
|
15
19
|
}
|
package/dist/types.d.ts
CHANGED