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.



1652
1653
1654
1655
1656
1657
# File 'lib/stripe/resources/order.rb', line 1652

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.



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

def address
  @address
end

#emailObject

The billing email provided by the customer.



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

def email
  @email
end

#nameObject

The billing name provided by the customer.



1648
1649
1650
# File 'lib/stripe/resources/order.rb', line 1648

def name
  @name
end

#phoneObject

The billing phone number provided by the customer.



1650
1651
1652
# File 'lib/stripe/resources/order.rb', line 1650

def phone
  @phone
end