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

#to_h

Constructor Details

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

Returns a new instance of PaymentMethodData.



140
141
142
143
144
# File 'lib/stripe/params/delegated_checkout/requested_session_create_params.rb', line 140

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.



134
135
136
# File 'lib/stripe/params/delegated_checkout/requested_session_create_params.rb', line 134

def billing_details
  @billing_details
end

#cardObject

The card for the payment method data.



136
137
138
# File 'lib/stripe/params/delegated_checkout/requested_session_create_params.rb', line 136

def card
  @card
end

#typeObject

The type of the payment method data.



138
139
140
# File 'lib/stripe/params/delegated_checkout/requested_session_create_params.rb', line 138

def type
  @type
end