feat(release): initial release

This commit is contained in:
2024-06-03 17:12:43 +02:00
commit 7512105ff1
15 changed files with 443 additions and 0 deletions

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