-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Flatten plan related schemas (#1838)
- Loading branch information
Showing
6 changed files
with
54 additions
and
119 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
type: | ||
- 'object' | ||
- 'null' | ||
description: Set up information of the plan. | ||
required: | ||
- price | ||
properties: | ||
price: | ||
description: |- | ||
Price of setting up the plan. | ||
If your service charges a set up fee, specify it here. | ||
To charge no set up fee, set this value to `0`. | ||
type: number | ||
format: double |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
type: | ||
- 'object' | ||
required: | ||
- price | ||
- period | ||
properties: | ||
price: | ||
description: |- | ||
Price of setting up a trial. | ||
If your service charges a fee for a trial, specify it here. | ||
To charge no trial fee, set this value to `0`. | ||
type: number | ||
format: double | ||
period: | ||
type: object | ||
description: Period information. | ||
required: | ||
- unit | ||
- length | ||
properties: | ||
unit: | ||
description: Unit of time. | ||
type: string | ||
enum: | ||
- day | ||
- week | ||
- month | ||
- year | ||
length: | ||
description: Length of time. | ||
type: integer | ||
minimum: 1 |
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