Open adamstegman opened 3 years ago
I'm not familiar with terraform plugins, but looking at https://github.com/franckverrot/terraform-provider-stripe/blob/25ead0465e52a4fe0411a1d3908cdffc7167689b/vendor/github.com/hashicorp/terraform/helper/schema/resource_data.go#L102 it seems like GetOk
incorrectly returns a non-existent value in this case. Maybe GetOkExists
should be used instead, since it does not check the zero-value?
When this fix will be available?
When I try to create a price with a
unit_amount
of0
, orunit_amount_decimal
of0.0
, I get the following error:When I look at Stripe logs, the field is left out of the request entirely:
This is incorrect - an amount of 0 is valid and I can use the API directly to create the price.