Add subscription support (#100)
Co-authored-by: AceDataCloud <office@acedata.cloud>
This commit is contained in:
1 parent
7688a1787e
commit
14b04fe54f
355 files changed
+9161
-7020
No files matched your search
+2
-1
@@ -54,8 +54,9 @@ export interface IPackage {
|
||||
id: string;
|
||||
amount: number;
|
||||
price: number;
|
||||
type?: IPackageType;
|
||||
duration?: number;
|
||||
type?: IPackageType;
|
||||
service?: IService;
|
||||
}
|
||||
|
||||
export enum IApiUnit {
|
||||
|
||||
@@ -17,6 +17,7 @@ export interface IApplication {
|
||||
credentials?: ICredential[];
|
||||
created_at?: string;
|
||||
updated_at?: string;
|
||||
expired_at?: string;
|
||||
}
|
||||
|
||||
export interface IApplicationListResponse {
|
||||
|
||||
+4
-1
@@ -4,7 +4,8 @@ export enum OrderState {
|
||||
PENDING = 'Pending',
|
||||
PAID = 'Paid',
|
||||
EXPIRED = 'Expired',
|
||||
FAILED = 'Failed'
|
||||
FAILED = 'Failed',
|
||||
FINISHED = 'Finished'
|
||||
}
|
||||
|
||||
export interface IOrder {
|
||||
@@ -18,6 +19,8 @@ export interface IOrder {
|
||||
updated_at?: string;
|
||||
application?: IApplication;
|
||||
application_id?: string;
|
||||
application_ids?: string[];
|
||||
package_ids?: string[];
|
||||
wechatpay_url?: string;
|
||||
pay_id?: string;
|
||||
pay_url?: string;
|
||||
|
||||
Reference in new issue
Block a user