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:
Codex Agent
2025-11-09 20:26:50 +01:00
parent f3c44be76d
commit 082b78cd43
80 changed files with 4855 additions and 435 deletions

View 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;
}