Closed yeybr closed 2 years ago
apply changes from https://github.com/franckverrot/terraform-provider-stripe/pull/49/files
This allows for a 0 price to be set as a price amount in Stripe.
GetOk considers 0 as a null value for integers, because it's unclear whether it was intentionally set or unset. GetOkExists allows us to get whatever value was set, even if it's 0.
apply changes from https://github.com/franckverrot/terraform-provider-stripe/pull/49/files
This allows for a 0 price to be set as a price amount in Stripe.
GetOk considers 0 as a null value for integers, because it's unclear whether it was intentionally set or unset. GetOkExists allows us to get whatever value was set, even if it's 0.