Solarpay

This commit is contained in:
2025-10-06 00:15:31 +08:00
parent 5fcc2d80a7
commit c85d373479
3 changed files with 146 additions and 0 deletions

View File

@@ -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'

23
app/types/api/order.ts Normal file
View File

@@ -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<string, any>
amount: number
expiredAt: string
payeeWalletId?: string
payeeWallet?: any
transactionId?: string
transaction?: any
}