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.



1498
1499
1500
1501
1502
# File 'lib/stripe/resources/order.rb', line 1498

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.



1492
1493
1494
# File 'lib/stripe/resources/order.rb', line 1492

def address
  @address
end

#nameObject

The name of the recipient of the order.



1494
1495
1496
# File 'lib/stripe/resources/order.rb', line 1494

def name
  @name
end

#phoneObject

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



1496
1497
1498
# File 'lib/stripe/resources/order.rb', line 1496

def phone
  @phone
end