-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
923ace5
commit e3166a9
Showing
4 changed files
with
186 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: "subscriptions" | ||
description: | ||
long: "Utilities for working with subscriptions" | ||
short: "Utilities for working with subscriptions" | ||
actions: | ||
create-subscription-products: | ||
variables: | ||
count: | ||
type: INT | ||
default: 10 | ||
description: | ||
short: "Create a lot of subscription products" | ||
description: | ||
short: "Create a number of products" | ||
commands: | ||
- | | ||
{{ range untilStep 0 .count 1 -}}epcc create --skip-alias-processing -s subscription-product --auto-fill | ||
{{ end }} | ||
create-subscription-plans: | ||
variables: | ||
count: | ||
type: INT | ||
default: 10 | ||
description: | ||
short: "Create a lot of subscription plans" | ||
description: | ||
short: "Create a number of orders" | ||
commands: | ||
- | | ||
{{ range untilStep 0 .count 1 -}}epcc create --skip-alias-processing -s subscription-plan status active --auto-fill billing_interval_type day billing_frequency 214 plan_length 1 end_behavior close can_pause true can_resume true can_cancel true fixed_price.USD.amount {{ pseudoRandInt 1 200 }}00 fixed_price.USD.includes_tax true | ||
{{ end }} | ||
create-subscription-offerings: | ||
variables: | ||
count: | ||
type: INT | ||
default: 10 | ||
description: | ||
short: "Create a lot of subscription offerings" | ||
description: | ||
short: "Create a number of offerings" | ||
commands: | ||
- | | ||
{{ range untilStep 0 .count 1 -}}epcc create --skip-alias-processing -s subscription-offering --auto-fill | ||
{{ end }} | ||