Class: Stripe::OrderService::UpdateParams::BillingDetails

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



1159
1160
1161
1162
1163
1164
# File 'lib/stripe/services/order_service.rb', line 1159

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.



1151
1152
1153
# File 'lib/stripe/services/order_service.rb', line 1151

def address
  @address
end

#emailObject

The billing email provided by the customer.



1153
1154
1155
# File 'lib/stripe/services/order_service.rb', line 1153

def email
  @email
end

#nameObject

The billing name provided by the customer.



1155
1156
1157
# File 'lib/stripe/services/order_service.rb', line 1155

def name
  @name
end

#phoneObject

The billing phone number provided by the customer.



1157
1158
1159
# File 'lib/stripe/services/order_service.rb', line 1157

def phone
  @phone
end