Skip to content

Commit d07bb46

Browse files
Merge pull request #20251 from mozilla/PAY-3543
2 parents 85bb696 + 73a3444 commit d07bb46

5 files changed

Lines changed: 1123 additions & 110 deletions

File tree

libs/payments/cart/src/lib/checkout.error.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,3 +253,17 @@ export class IntentInsufficientFundsError extends IntentFailedHandledError {
253253
this.name = 'IntentInsufficientFundsError';
254254
}
255255
}
256+
257+
export class UnexpectedSubscriptionStatusForTrialError extends CheckoutError {
258+
constructor(cartId: string, subscriptionId: string, actualStatus: string) {
259+
super(
260+
'Expected subscription status to be trialing for free trial checkout',
261+
{
262+
cartId,
263+
subscriptionId,
264+
actualStatus,
265+
}
266+
);
267+
this.name = 'UnexpectedSubscriptionStatusForTrialError';
268+
}
269+
}

0 commit comments

Comments
 (0)