franckverrot / terraform-provider-stripe

A Terraform Provider for Stripe
https://registry.terraform.io/providers/franckverrot/stripe/latest
Mozilla Public License 2.0
242 stars 51 forks source link

DS-1345: support 0 price #58

Closed yeybr closed 2 years ago

yeybr commented 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.