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, coerce_params, coerce_value, field_encodings, new, #to_h

Constructor Details

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

Returns a new instance of ShippingDetails.



1981
1982
1983
1984
1985
# File 'lib/stripe/params/order_create_params.rb', line 1981

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.



1975
1976
1977
# File 'lib/stripe/params/order_create_params.rb', line 1975

def address
  @address
end

#nameObject

The name of the recipient of the order.



1977
1978
1979
# File 'lib/stripe/params/order_create_params.rb', line 1977

def name
  @name
end

#phoneObject

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



1979
1980
1981
# File 'lib/stripe/params/order_create_params.rb', line 1979

def phone
  @phone
end