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



1545
1546
1547
1548
1549
# File 'lib/stripe/resources/order.rb', line 1545

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.



1539
1540
1541
# File 'lib/stripe/resources/order.rb', line 1539

def address
  @address
end

#nameObject

The name of the recipient of the order.



1541
1542
1543
# File 'lib/stripe/resources/order.rb', line 1541

def name
  @name
end

#phoneObject

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



1543
1544
1545
# File 'lib/stripe/resources/order.rb', line 1543

def phone
  @phone
end