Class: Stripe::OrderService::CreateParams::ShippingDetails

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/order_service.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.



1069
1070
1071
1072
1073
# File 'lib/stripe/services/order_service.rb', line 1069

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.



1063
1064
1065
# File 'lib/stripe/services/order_service.rb', line 1063

def address
  @address
end

#nameObject

The name of the recipient of the order.



1065
1066
1067
# File 'lib/stripe/services/order_service.rb', line 1065

def name
  @name
end

#phoneObject

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



1067
1068
1069
# File 'lib/stripe/services/order_service.rb', line 1067

def phone
  @phone
end