Skip to content

fix(types): add trial_period_days to createCheckoutSession options #663

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: next
Choose a base branch
from

Conversation

ReneFromFactorialBiomechanics

Adds missing trial_period_days field to CommonSessionCreateParams in the client SDK.

This resolves a false-positive TypeScript error when using the createCheckoutSession function with a trial period, even though the backend supports it as of commit e9ee79e (January 2024).

This change improves developer experience by aligning the client-side types with the backend implementation and avoiding misleading IDE or build-time errors.

Adds missing `trial_period_days` field to `CommonSessionCreateParams` in the client SDK.

This resolves a false-positive TypeScript error when using the `createCheckoutSession` function with a trial period, even though the backend supports it as of commit e9ee79e (January 2024).

This change improves developer experience by aligning the client-side types with the backend implementation and avoiding misleading IDE or build-time errors.
@CLAassistant
Copy link

CLAassistant commented May 1, 2025

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

3 participants