refactor: price
This commit is contained in:
@@ -1,3 +1,13 @@
|
||||
export interface EntityId {
|
||||
id: number;
|
||||
}
|
||||
export type PriceType = "subscription" | "payment";
|
||||
export type PriceSubscriptionDuration = "month" | "quarter" | "year";
|
||||
export type Price = {
|
||||
title: string,
|
||||
limit: number,
|
||||
pid: string,
|
||||
desc: string,
|
||||
type: PriceType,
|
||||
sub_dur?: PriceSubscriptionDuration
|
||||
}
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
// call `organization` in backend
|
||||
import { PriceType } from "./common";
|
||||
import { User } from "./user";
|
||||
|
||||
export interface Server {
|
||||
@@ -74,7 +75,7 @@ export interface LicenseMetadata {
|
||||
domain: string | string[];
|
||||
}
|
||||
export interface RenewLicense {
|
||||
mode: "payment" | "subscription",
|
||||
type: PriceType,
|
||||
priceId: string;
|
||||
metadata: LicenseMetadata;
|
||||
cancel_url: string;
|
||||
|
||||
Reference in New Issue
Block a user