Kaizen
Browse modulesRulesrules/sharedSchemas and constants

Variable: membershipPurchaseContext

const membershipPurchaseContext: {
  line_items: {
     base_price_cents: number;
     household_member: {
        date_of_birth: string;
        household_id: string;
        id: string;
        is_resident: boolean;
        memberships: never[];
     };
     membership_purchase: {
        end_date: string;
        is_renewal: boolean;
        start_date: string;
        tier_id: string;
     };
     membership_tier_id: string;
     module: string;
     pricing_unit: string;
  }[];
  order: {
     pass_processing_fee: boolean;
     payment_method: string;
  };
  timezone: string;
  user: {
     date_of_birth: string;
     household_adult_count: number;
     household_id: string;
     household_member_count: number;
     household_youth_count: number;
     id: string;
     is_resident: boolean;
  };
};

Defined in: shared/rules/fixtures/context.ts:164

Type Declaration

line_items

line_items: {
  base_price_cents: number;
  household_member: {
     date_of_birth: string;
     household_id: string;
     id: string;
     is_resident: boolean;
     memberships: never[];
  };
  membership_purchase: {
     end_date: string;
     is_renewal: boolean;
     start_date: string;
     tier_id: string;
  };
  membership_tier_id: string;
  module: string;
  pricing_unit: string;
}[];

order

order: {
  pass_processing_fee: boolean;
  payment_method: string;
};

order.pass_processing_fee

pass_processing_fee: boolean = true;

order.payment_method

payment_method: string = "credit_card";

timezone

timezone: string = "America/New_York";

user

user: {
  date_of_birth: string;
  household_adult_count: number;
  household_id: string;
  household_member_count: number;
  household_youth_count: number;
  id: string;
  is_resident: boolean;
};

user.date_of_birth

date_of_birth: string = "1956-01-10";

user.household_adult_count

household_adult_count: number = 2;

user.household_id

household_id: string = "household-200";

user.household_member_count

household_member_count: number = 3;

user.household_youth_count

household_youth_count: number = 1;

user.id

id: string = "user-400";

user.is_resident

is_resident: boolean = true;

On this page