Migrate to V32 Parameter Structs (Pointer-based fields)
masterIn version 32, all fields on parameter structs (those ending in *Params) have been converted to pointers. This allows the library to distinguish between a field being unset (nil) and a field being explicitly set to a zero value.
To set these fields, you must use the provided helper functions instead of passing raw values or taking addresses of literals.
Available helper functions:
stripe.Bool(bool)stripe.Float64(float64)stripe.Int64(int64)stripe.String(string)
Note on zero values: Previously used fields like CouponEmpty or QuantityZero have been removed. To send an empty value, use the corresponding field with the appropriate helper (e.g., stripe.String("") or stripe.Int64(0)).
// Example: Initializing a parameter struct with a zero value
UsageRecord {
Quantity: stripe.Int64(0),
}