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.



1487
1488
1489
1490
1491
# File 'lib/stripe/resources/order.rb', line 1487

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.



1481
1482
1483
# File 'lib/stripe/resources/order.rb', line 1481

def address
  @address
end

#nameObject

The name of the recipient of the order.



1483
1484
1485
# File 'lib/stripe/resources/order.rb', line 1483

def name
  @name
end

#phoneObject

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



1485
1486
1487
# File 'lib/stripe/resources/order.rb', line 1485

def phone
  @phone
end