diff --git a/app/pages/orders/[id].vue b/app/pages/orders/[id].vue new file mode 100644 index 0000000..afab17c --- /dev/null +++ b/app/pages/orders/[id].vue @@ -0,0 +1,122 @@ + + + + diff --git a/app/types/api/index.ts b/app/types/api/index.ts index 3aa2c88..8307a78 100644 --- a/app/types/api/index.ts +++ b/app/types/api/index.ts @@ -2,6 +2,7 @@ export type { SnFileMeta, SnAttachment, SnPost } from './post' export type { SnVerification, SnPublisher } from './publisher' export type { SnActivity } from './activity' +export type { SnWalletOrder, OrderStatus } from './order' export type { SnVersion } from './version' export type { SnAccountLink, SnAccountBadge, SnAccountPerkSubscription, SnAccountProfile, SnAccount } from './user' export type { GeoIpLocation, SnAuthChallenge, SnAuthSession, SnAuthFactor, SnAccountConnection } from './geo' diff --git a/app/types/api/order.ts b/app/types/api/order.ts new file mode 100644 index 0000000..329e907 --- /dev/null +++ b/app/types/api/order.ts @@ -0,0 +1,23 @@ +export enum OrderStatus { + Unpaid = 0, + Processing = 1, + Paid = 2, + Failed = 3, + Cancelled = 4 +} + +export interface SnWalletOrder { + id: string + status: OrderStatus + currency: string + remarks?: string + appIdentifier?: string + productIdentifier?: string + meta?: Record + amount: number + expiredAt: string + payeeWalletId?: string + payeeWallet?: any + transactionId?: string + transaction?: any +}