lib/stripe/resources/payment_method.rb in stripe-4.24.0 vs lib/stripe/resources/payment_method.rb in stripe-5.0.0
- old
+ new
@@ -4,10 +4,10 @@
class PaymentMethod < APIResource
extend Stripe::APIOperations::Create
extend Stripe::APIOperations::List
include Stripe::APIOperations::Save
- OBJECT_NAME = "payment_method".freeze
+ OBJECT_NAME = "payment_method"
custom_method :attach, http_verb: :post
custom_method :detach, http_verb: :post
def attach(params = {}, opts = {})