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, tax_id: nil) ⇒ BillingDetails

Returns a new instance of BillingDetails.



1093
1094
1095
1096
1097
1098
1099
# File 'lib/stripe/services/payment_intent_service.rb', line 1093

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

Instance Attribute Details

#addressObject

Billing address.



1083
1084
1085
# File 'lib/stripe/services/payment_intent_service.rb', line 1083

def address
  @address
end

#emailObject

Email address.



1085
1086
1087
# File 'lib/stripe/services/payment_intent_service.rb', line 1085

def email
  @email
end

#nameObject

Full name.



1087
1088
1089
# File 'lib/stripe/services/payment_intent_service.rb', line 1087

def name
  @name
end

#phoneObject

Billing phone number (including extension).



1089
1090
1091
# File 'lib/stripe/services/payment_intent_service.rb', line 1089

def phone
  @phone
end

#tax_idObject

Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.



1091
1092
1093
# File 'lib/stripe/services/payment_intent_service.rb', line 1091

def tax_id
  @tax_id
end