Class: Stripe::DelegatedCheckout::RequestedSessionCreateParams::PaymentMethodData

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/delegated_checkout/requested_session_create_params.rb

Defined Under Namespace

Classes: BillingDetails, Card

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h

Constructor Details

#initialize(billing_details: nil, card: nil, type: nil) ⇒ PaymentMethodData

Returns a new instance of PaymentMethodData.



205
206
207
208
209
# File 'lib/stripe/params/delegated_checkout/requested_session_create_params.rb', line 205

def initialize(billing_details: nil, card: nil, type: nil)
  @billing_details = billing_details
  @card = card
  @type = type
end

Instance Attribute Details

#billing_detailsObject

The billing details for the payment method data.



199
200
201
# File 'lib/stripe/params/delegated_checkout/requested_session_create_params.rb', line 199

def billing_details
  @billing_details
end

#cardObject

The card for the payment method data.



201
202
203
# File 'lib/stripe/params/delegated_checkout/requested_session_create_params.rb', line 201

def card
  @card
end

#typeObject

The type of the payment method data.



203
204
205
# File 'lib/stripe/params/delegated_checkout/requested_session_create_params.rb', line 203

def type
  @type
end