Class: Stripe::SourceService::UpdateParams::SourceOrder::Shipping
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::SourceService::UpdateParams::SourceOrder::Shipping
- Defined in:
- lib/stripe/services/source_service.rb
Defined Under Namespace
Classes: Address
Instance Attribute Summary collapse
-
#address ⇒ Object
Shipping address.
-
#carrier ⇒ Object
The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.
-
#name ⇒ Object
Recipient name.
-
#phone ⇒ Object
Recipient phone (including extension).
-
#tracking_number ⇒ Object
The tracking number for a physical product, obtained from the delivery service.
Instance Method Summary collapse
-
#initialize(address: nil, carrier: nil, name: nil, phone: nil, tracking_number: nil) ⇒ Shipping
constructor
A new instance of Shipping.
Methods inherited from RequestParams
Constructor Details
permalink #initialize(address: nil, carrier: nil, name: nil, phone: nil, tracking_number: nil) ⇒ Shipping
Returns a new instance of Shipping.
241 242 243 244 245 246 247 |
# File 'lib/stripe/services/source_service.rb', line 241 def initialize(address: nil, carrier: nil, name: nil, phone: nil, tracking_number: nil) @address = address @carrier = carrier @name = name @phone = phone @tracking_number = tracking_number end |
Instance Attribute Details
permalink #address ⇒ Object
Shipping address.
231 232 233 |
# File 'lib/stripe/services/source_service.rb', line 231 def address @address end |
permalink #carrier ⇒ Object
The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.
233 234 235 |
# File 'lib/stripe/services/source_service.rb', line 233 def carrier @carrier end |
permalink #name ⇒ Object
Recipient name.
235 236 237 |
# File 'lib/stripe/services/source_service.rb', line 235 def name @name end |
permalink #phone ⇒ Object
Recipient phone (including extension).
237 238 239 |
# File 'lib/stripe/services/source_service.rb', line 237 def phone @phone end |
permalink #tracking_number ⇒ Object
The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas.
239 240 241 |
# File 'lib/stripe/services/source_service.rb', line 239 def tracking_number @tracking_number end |