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

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

Defined Under Namespace

Classes: Address

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(address: nil, email: nil, name: nil, phone: nil) ⇒ BillingDetails

Returns a new instance of BillingDetails.



173
174
175
176
177
178
# File 'lib/stripe/params/delegated_checkout/requested_session_create_params.rb', line 173

def initialize(address: nil, email: nil, name: nil, phone: nil)
  @address = address
  @email = email
  @name = name
  @phone = phone
end

Instance Attribute Details

#addressObject

The address for the billing details.



165
166
167
# File 'lib/stripe/params/delegated_checkout/requested_session_create_params.rb', line 165

def address
  @address
end

#emailObject

The email for the billing details.



167
168
169
# File 'lib/stripe/params/delegated_checkout/requested_session_create_params.rb', line 167

def email
  @email
end

#nameObject

The name for the billing details.



169
170
171
# File 'lib/stripe/params/delegated_checkout/requested_session_create_params.rb', line 169

def name
  @name
end

#phoneObject

The phone for the billing details.



171
172
173
# File 'lib/stripe/params/delegated_checkout/requested_session_create_params.rb', line 171

def phone
  @phone
end