@vulog/aima-promocode
Version:
```bash npm i @vulog/aima-client @vulog/aima-promocode ```
38 lines (37 loc) • 900 B
text/typescript
export type ProductGroup = {
id: string;
name: string;
status: 'ACTIVE' | 'INACTIVE';
};
export type PromoCodeUsage = {
id: number;
walletUsage: 'TRIP' | 'PRODUCTS';
discountCategory: 'CREDITS';
percentage: number;
amount: number;
cappedPercentage: null;
isOneTimeUsage: boolean;
productGroup?: ProductGroup | null;
};
export type PromoCode = {
reference: string;
walletType: string;
status: 'ACTIVE' | 'INACTIVE';
validityDuration: number;
effectiveDate: string;
expiryDate: string;
validityEndDate: string;
description?: string;
id: number;
fleetId: string;
registration: boolean;
maxUses: number;
usages: PromoCodeUsage[];
[key: string]: any;
};
export type ReferralInfo = {
referralUserId: string;
referralCode: string;
referralPromocodeId: number;
refereePromocodeId: number;
};