Skip to content
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

incorrect type for the --cost-per-month and --setup-fee options #156

Closed
nmasse-itix opened this issue Jun 5, 2019 · 0 comments · Fixed by #162
Closed

incorrect type for the --cost-per-month and --setup-fee options #156

nmasse-itix opened this issue Jun 5, 2019 · 0 comments · Fixed by #162

Comments

@nmasse-itix
Copy link
Contributor

Current behavior

$ 3scale application-plan apply nmasse-redhat beer_catalog_0 test --cost-per-month=3.14
apply: invalid value "3.14" for --cost-per-month option

$ 3scale application-plan apply nmasse-redhat beer_catalog_0 test --setup-fee=3.14
apply: invalid value "3.14" for --setup-fee option

Expected behavior

Costs / fees in application plans are not restricted to integers but can accept cents in addition to dollars/euros (which is possible by editing manually the application plan in the admin portal).

$ 3scale application-plan apply nmasse-redhat beer_catalog_0 test --cost-per-month=3.14
Applied application plan id: 2357356088490; Default: false

$ 3scale application-plan apply nmasse-redhat beer_catalog_0 test --setup-fee=3.14
Applied application plan id: 2357356088490; Default: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant