feat(release): initial release
This commit is contained in:
22
tests/mocks/services/payments.ts
Normal file
22
tests/mocks/services/payments.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
export abstract class Payments {
|
||||
public abstract create(customerId: string, currency: Currency, amount: number): Promise<Payment>;
|
||||
}
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------------
|
||||
| Types
|
||||
|--------------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
export type Payment = {
|
||||
paymentId: string;
|
||||
customerId: string;
|
||||
provider: string;
|
||||
status: Status;
|
||||
currency: Currency;
|
||||
amount: number;
|
||||
};
|
||||
|
||||
export type Status = "created" | "processing" | "failed" | "processed";
|
||||
|
||||
export type Currency = "usd" | "eur" | "jpy";
|
||||
Reference in New Issue
Block a user