Class: Stripe::Order::UpdateParams::BillingDetails

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



1643
1644
1645
1646
1647
1648
# File 'lib/stripe/resources/order.rb', line 1643

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

Instance Attribute Details

#addressObject

The billing address provided by the customer.



1635
1636
1637
# File 'lib/stripe/resources/order.rb', line 1635

def address
  @address
end

#emailObject

The billing email provided by the customer.



1637
1638
1639
# File 'lib/stripe/resources/order.rb', line 1637

def email
  @email
end

#nameObject

The billing name provided by the customer.



1639
1640
1641
# File 'lib/stripe/resources/order.rb', line 1639

def name
  @name
end

#phoneObject

The billing phone number provided by the customer.



1641
1642
1643
# File 'lib/stripe/resources/order.rb', line 1641

def phone
  @phone
end