Class: Stripe::OrderService::UpdateParams::ShippingDetails

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, name: nil, phone: nil) ⇒ ShippingDetails

Returns a new instance of ShippingDetails.



2064
2065
2066
2067
2068
# File 'lib/stripe/services/order_service.rb', line 2064

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

Instance Attribute Details

#addressObject

The shipping address for the order.



2058
2059
2060
# File 'lib/stripe/services/order_service.rb', line 2058

def address
  @address
end

#nameObject

The name of the recipient of the order.



2060
2061
2062
# File 'lib/stripe/services/order_service.rb', line 2060

def name
  @name
end

#phoneObject

The phone number (including extension) for the recipient of the order.



2062
2063
2064
# File 'lib/stripe/services/order_service.rb', line 2062

def phone
  @phone
end