Files
inverse/tests/mocks/services/payments.ts

23 lines
587 B
TypeScript

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";