in client/fixtures/productBuilder/baseProducts.ts [76:142]
export function basePatron(): ProductDetail {
return {
tier: 'guardianpatron',
isPaidTier: true,
selfServiceCancellation: {
isAllowed: true,
shouldDisplayEmail: true,
phoneRegionsToDisplay: ['UK & ROW', 'US', 'AUS'],
},
joinDate: '2025-02-05',
optIn: true,
subscription: {
contactId: "Guardian Patrons don't have a Salesforce contactId",
deliveryAddress: {
addressLine1: 'Kings Place',
addressLine2: '90 York Way',
town: 'London',
postcode: 'N1 9GU',
country: 'United Kingdom',
},
safeToUpdatePaymentMethod: false,
start: '2025-02-05',
end: '2026-02-05',
nextPaymentPrice: 1000,
nextPaymentDate: '2026-02-05',
potentialCancellationDate: '2026-02-05',
lastPaymentDate: '2025-02-05',
chargedThroughDate: '2026-02-05',
renewalDate: '2026-02-05',
anniversaryDate: '2026-02-05',
cancelledAt: false,
subscriptionId: 'patronFromDynamoName',
trialLength: 0,
autoRenew: true,
plan: {
name: 'guardianpatron',
price: 100000,
currency: '£',
currencyISO: 'GBP',
billingPeriod: 'year',
start: '2022-12-23',
end: '2024-12-11',
shouldBeVisible: true,
features: '',
},
currentPlans: [
{
name: null,
start: '2025-02-05',
end: '2026-02-05',
shouldBeVisible: true,
chargedThrough: '2026-02-05',
price: 100000,
currency: '£',
currencyISO: 'GBP',
billingPeriod: 'year',
features: '',
},
],
futurePlans: [],
readerType: 'Direct',
accountId: 'stripeCustomerId_12a6e2a6-0438-4255-95c2-52a10ab99aee',
cancellationEffectiveDate: '2026-02-05',
},
isTestUser: false,
};
}