Class: Stripe::PaymentIntentService::ConfirmParams::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.



4889
4890
4891
4892
4893
4894
# File 'lib/stripe/services/payment_intent_service.rb', line 4889

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.



4881
4882
4883
# File 'lib/stripe/services/payment_intent_service.rb', line 4881

def address
  @address
end

#emailObject

Email address.



4883
4884
4885
# File 'lib/stripe/services/payment_intent_service.rb', line 4883

def email
  @email
end

#nameObject

Full name.



4885
4886
4887
# File 'lib/stripe/services/payment_intent_service.rb', line 4885

def name
  @name
end

#phoneObject

Billing phone number (including extension).



4887
4888
4889
# File 'lib/stripe/services/payment_intent_service.rb', line 4887

def phone
  @phone
end