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, new, #to_h

Constructor Details

#initialize(address: nil, email: nil, name: nil, phone: nil) ⇒ BillingDetails

Returns a new instance of BillingDetails.



108
109
110
111
112
113
# File 'lib/stripe/params/delegated_checkout/requested_session_create_params.rb', line 108

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.



100
101
102
# File 'lib/stripe/params/delegated_checkout/requested_session_create_params.rb', line 100

def address
  @address
end

#emailObject

The email for the billing details.



102
103
104
# File 'lib/stripe/params/delegated_checkout/requested_session_create_params.rb', line 102

def email
  @email
end

#nameObject

The name for the billing details.



104
105
106
# File 'lib/stripe/params/delegated_checkout/requested_session_create_params.rb', line 104

def name
  @name
end

#phoneObject

The phone for the billing details.



106
107
108
# File 'lib/stripe/params/delegated_checkout/requested_session_create_params.rb', line 106

def phone
  @phone
end