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.



1143
1144
1145
1146
1147
1148
# File 'lib/stripe/services/order_service.rb', line 1143

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.



1135
1136
1137
# File 'lib/stripe/services/order_service.rb', line 1135

def address
  @address
end

#emailObject

The billing email provided by the customer.



1137
1138
1139
# File 'lib/stripe/services/order_service.rb', line 1137

def email
  @email
end

#nameObject

The billing name provided by the customer.



1139
1140
1141
# File 'lib/stripe/services/order_service.rb', line 1139

def name
  @name
end

#phoneObject

The billing phone number provided by the customer.



1141
1142
1143
# File 'lib/stripe/services/order_service.rb', line 1141

def phone
  @phone
end