Halopen output
“"The createSubscription method takes three required arguments — customerId, priceId, and a metadata object — and returns a Subscription instance once the underlying webhook from Stripe has been processed. If the customer does not exist, the method throws CustomerNotFoundError. If the price has been archived, it throws PriceArchivedError. Both errors include the original Stripe error code in their cause property."”
- · Method name (createSubscription) captured exactly with camelCase
- · Argument names preserved verbatim
- · Custom error class names landed correctly
- · Property name (cause) on the error preserved