Class: Stripe::PaymentIntentService::CreateParams::PaymentMethodData::BillingDetails

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/payment_intent_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.



895
896
897
898
899
900
# File 'lib/stripe/services/payment_intent_service.rb', line 895

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.



887
888
889
# File 'lib/stripe/services/payment_intent_service.rb', line 887

def address
  @address
end

#emailObject

Email address.



889
890
891
# File 'lib/stripe/services/payment_intent_service.rb', line 889

def email
  @email
end

#nameObject

Full name.



891
892
893
# File 'lib/stripe/services/payment_intent_service.rb', line 891

def name
  @name
end

#phoneObject

Billing phone number (including extension).



893
894
895
# File 'lib/stripe/services/payment_intent_service.rb', line 893

def phone
  @phone
end