Class: Stripe::Order::UpdateParams::ShippingDetails

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



2562
2563
2564
2565
2566
# File 'lib/stripe/resources/order.rb', line 2562

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.



2556
2557
2558
# File 'lib/stripe/resources/order.rb', line 2556

def address
  @address
end

#nameObject

The name of the recipient of the order.



2558
2559
2560
# File 'lib/stripe/resources/order.rb', line 2558

def name
  @name
end

#phoneObject

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



2560
2561
2562
# File 'lib/stripe/resources/order.rb', line 2560

def phone
  @phone
end