coupon code system eingeführt. coupons werden vom super admin gemanaged. coupons werden mit paddle synchronisiert und dort validiert. plus: einige mobil-optimierungen im tenant admin pwa.
This commit is contained in:
35
resources/js/types/coupon.ts
Normal file
35
resources/js/types/coupon.ts
Normal file
@@ -0,0 +1,35 @@
|
||||
export interface CouponPreviewPricing {
|
||||
currency: string;
|
||||
subtotal: number;
|
||||
discount: number;
|
||||
tax: number;
|
||||
total: number;
|
||||
formatted: {
|
||||
subtotal: string;
|
||||
discount: string;
|
||||
tax: string;
|
||||
total: string;
|
||||
};
|
||||
breakdown?: Array<Record<string, unknown>>;
|
||||
}
|
||||
|
||||
export interface CouponPreviewResponse {
|
||||
coupon: {
|
||||
id: number;
|
||||
code: string;
|
||||
type?: string | null;
|
||||
amount: number;
|
||||
currency?: string | null;
|
||||
description?: string | null;
|
||||
expires_at?: string | null;
|
||||
is_stackable?: boolean;
|
||||
};
|
||||
pricing: CouponPreviewPricing;
|
||||
package: {
|
||||
id: number;
|
||||
name: string;
|
||||
price: number;
|
||||
currency: string;
|
||||
};
|
||||
source?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user