feat: use actual data in billing and usage

This commit is contained in:
Ali BARIN
2023-03-26 19:28:15 +00:00
parent a99609e3da
commit f3a8ab289f
9 changed files with 240 additions and 103 deletions

View File

@@ -339,6 +339,35 @@ export type TPaymentPlan = {
productId: string;
}
export type TSubscription = {
status: string;
monthlyQuota: {
title: string;
action: BillingCardAction;
};
nextBillDate: {
title: string;
action: BillingCardAction;
};
nextBillAmount: {
title: string;
action: BillingCardAction;
};
}
type TBillingCardAction = TBillingTextCardAction | TBillingLinkCardAction;
type TBillingTextCardAction = {
type: 'text';
text: string;
}
type TBillingLinkCardAction = {
type: 'link';
text: string;
src: string;
}
declare module 'axios' {
interface AxiosResponse {
httpError?: IJSONObject;