From 2677f32761819038dbd40f639586bac34555a374 Mon Sep 17 00:00:00 2001 From: Remi Jannel Date: Wed, 25 Sep 2019 09:56:29 -0700 Subject: [PATCH] Mark `Customer` on `PaymentMethodDetachParams` as deprecated --- paymentmethod.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/paymentmethod.go b/paymentmethod.go index d835d13cc5..15b7ee98dd 100644 --- a/paymentmethod.go +++ b/paymentmethod.go @@ -77,7 +77,9 @@ type PaymentMethodParams struct { // PaymentMethodAttachParams is the set of parameters that can be used when attaching a // PaymentMethod to a Customer. type PaymentMethodAttachParams struct { - Params `form:"*"` + Params `form:"*"` + // The following parameter is not supported by the API and should not have been added + // TODO: remove in the next major version Customer *string `form:"customer"` }