Skip to main content

TypeAlias.AccountAssignment

type AccountAssignment = {
application: string;
balance?: bigint | null;
createdAt: string;
email?: string | null;
id: string;
name?: string | null;
phoneNumber?: string | null;
rewardTier?: | {
application: string;
bgImageUrl?: string | null;
createdAt: string;
currencyToPointRatio: number;
id: string;
name: string;
requiredVisits: number;
updatedAt: string;
}
| null;
updatedAt: string;
};

Pending loyalty assignment created before an account exists.

Pre-seeds loyalty balances, reward tiers, and contact details for accounts that will be created later. Useful for bulk imports or pre-registrations.

Type Declaration

NameType
applicationstring
balance?bigint | null
createdAtstring
email?string | null
idstring
name?string | null
phoneNumber?string | null
rewardTier?| { application: string; bgImageUrl?: string | null; createdAt: string; currencyToPointRatio: number; id: string; name: string; requiredVisits: number; updatedAt: string; } | null
updatedAtstring