Class: Stripe::PaymentMethodAttachParams

Inherits:
RequestParams show all
Defined in:
lib/stripe/params/payment_method_attach_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(customer: nil, expand: nil) ⇒ PaymentMethodAttachParams

Returns a new instance of PaymentMethodAttachParams.



11
12
13
14
# File 'lib/stripe/params/payment_method_attach_params.rb', line 11

def initialize(customer: nil, expand: nil)
  @customer = customer
  @expand = expand
end

Instance Attribute Details

#customerObject

The ID of the customer to which to attach the PaymentMethod.



7
8
9
# File 'lib/stripe/params/payment_method_attach_params.rb', line 7

def customer
  @customer
end

#expandObject

Specifies which fields in the response should be expanded.



9
10
11
# File 'lib/stripe/params/payment_method_attach_params.rb', line 9

def expand
  @expand
end