Class: Stripe::PaymentMethodService::CreateParams::BillingDetails

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/payment_method_service.rb

Defined Under Namespace

Classes: Address

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

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

Returns a new instance of BillingDetails.



138
139
140
141
142
143
# File 'lib/stripe/services/payment_method_service.rb', line 138

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

Instance Attribute Details

#addressObject

Billing address.



130
131
132
# File 'lib/stripe/services/payment_method_service.rb', line 130

def address
  @address
end

#emailObject

Email address.



132
133
134
# File 'lib/stripe/services/payment_method_service.rb', line 132

def email
  @email
end

#nameObject

Full name.



134
135
136
# File 'lib/stripe/services/payment_method_service.rb', line 134

def name
  @name
end

#phoneObject

Billing phone number (including extension).



136
137
138
# File 'lib/stripe/services/payment_method_service.rb', line 136

def phone
  @phone
end