Class: Stripe::OrderCreateParams::ShippingDetails

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/order_create_params.rb

Defined Under Namespace

Classes: Address

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

attr_accessor, new, #to_h

Constructor Details

#initialize(address: nil, name: nil, phone: nil) ⇒ ShippingDetails

Returns a new instance of ShippingDetails.



1971
1972
1973
1974
1975
# File 'lib/stripe/params/order_create_params.rb', line 1971

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.



1965
1966
1967
# File 'lib/stripe/params/order_create_params.rb', line 1965

def address
  @address
end

#nameObject

The name of the recipient of the order.



1967
1968
1969
# File 'lib/stripe/params/order_create_params.rb', line 1967

def name
  @name
end

#phoneObject

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



1969
1970
1971
# File 'lib/stripe/params/order_create_params.rb', line 1969

def phone
  @phone
end