Class: Stripe::OrderService::CreateParams::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.



102
103
104
105
106
107
# File 'lib/stripe/services/order_service.rb', line 102

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.



91
92
93
# File 'lib/stripe/services/order_service.rb', line 91

def address
  @address
end

#emailObject

The billing email provided by the customer.



94
95
96
# File 'lib/stripe/services/order_service.rb', line 94

def email
  @email
end

#nameObject

The billing name provided by the customer.



97
98
99
# File 'lib/stripe/services/order_service.rb', line 97

def name
  @name
end

#phoneObject

The billing phone number provided by the customer.



100
101
102
# File 'lib/stripe/services/order_service.rb', line 100

def phone
  @phone
end