in client/fixtures/productBuilder/productBuilder.ts [169:192]
withCurrency(currencyIso: CurrencyIso) {
const { plan, currentPlans, futurePlans } =
this.productToBuild.subscription;
const currencySymbol = convertCurrencyIsoToSymbol(currencyIso);
if (plan) {
plan.currencyISO = currencyIso;
plan.currency = currencySymbol;
}
for (const currentPlan of currentPlans) {
if (isPaidSubscriptionPlan(currentPlan)) {
currentPlan.currency = currencySymbol;
currentPlan.currencyISO = currencyIso;
}
}
for (const futurePlan of futurePlans) {
if (isPaidSubscriptionPlan(futurePlan)) {
futurePlan.currency = currencySymbol;
futurePlan.currencyISO = currencyIso;
}
}
return this;
}