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.



2311
2312
2313
2314
2315
# File 'lib/stripe/services/order_service.rb', line 2311

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.



2303
2304
2305
# File 'lib/stripe/services/order_service.rb', line 2303

def address
  @address
end

#nameObject

The name of the recipient of the order.



2306
2307
2308
# File 'lib/stripe/services/order_service.rb', line 2306

def name
  @name
end

#phoneObject

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



2309
2310
2311
# File 'lib/stripe/services/order_service.rb', line 2309

def phone
  @phone
end