export function baseMembership()

in client/fixtures/productBuilder/baseProducts.ts [16:74]


export function baseMembership(): ProductDetail {
	return {
		tier: 'Supporter',
		isPaidTier: true,
		selfServiceCancellation: {
			isAllowed: true,
			shouldDisplayEmail: true,
			phoneRegionsToDisplay: ['UK & ROW', 'US', 'AUS'],
		},
		billingCountry: 'United Kingdom',
		joinDate: '2023-04-26',
		optIn: true,
		subscription: {
			contactId: '2',
			safeToUpdatePaymentMethod: true,
			start: '2023-04-26',
			end: '2024-04-26',
			nextPaymentPrice: 700,
			nextPaymentDate: '2023-05-26',
			lastPaymentDate: '2023-04-26',
			potentialCancellationDate: null,
			chargedThroughDate: '2023-05-26',
			renewalDate: '2024-04-26',
			anniversaryDate: '2024-04-26',
			cancelledAt: false,
			subscriptionId: 'A-S00538748',
			trialLength: -1,
			autoRenew: true,
			plan: {
				name: 'Supporter',
				price: 700,
				currency: '£',
				currencyISO: 'GBP',
				billingPeriod: 'month',
				start: '',
				end: '',
				shouldBeVisible: false,
				features: '',
			},
			currentPlans: [
				{
					name: null,
					start: '2023-04-26',
					end: '2024-04-26',
					shouldBeVisible: true,
					chargedThrough: '2023-05-26',
					price: 700,
					currency: '£',
					currencyISO: 'GBP',
					billingPeriod: 'month',
				},
			],
			futurePlans: [],
			readerType: 'Direct',
			accountId: '2',
		},
		isTestUser: false,
	};
}