This repository has been archived by the owner on Jan 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit adds a Trial field to the Phase object accepted by the API for creating and updating subscriptions and schedules. The new Trial field tell Stripe to count the Phase as a trial phase, which Stripe will honor by counting all features as free during the lifetime of the Phase. This also adds the --trial=<days> flag to the CLI subscribe subcommand for specifying trial periods. If days is negative, then a single phase is scheduled as a trial that never ends. If days is zero, a single non-trial phase is scheduled with the features/plans provided. If days is positive, a trial phase is scheduled ending after the number of days provided, followed by a phase that never ends for the features/plans provided.
- Loading branch information
Showing
11 changed files
with
445 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.