Class: Google::Apis::ContentV2::ShipmentTrackingInfo

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/content_v2/classes.rb,
lib/google/apis/content_v2/representations.rb,
lib/google/apis/content_v2/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ShipmentTrackingInfo

Returns a new instance of ShipmentTrackingInfo.



10288
10289
10290
# File 'lib/google/apis/content_v2/classes.rb', line 10288

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#carrierString

The shipping carrier that handles the package. Acceptable values are: - " boxtal" - "bpost" - "chronopost" - "colisPrive" - "colissimo" - "cxt " - "deliv" - "dhl" - "dpd" - "dynamex" - "eCourier" - "easypost" - "efw" - "fedex" - "fedexSmartpost" - "geodis" - "gls" - " googleCourier" - "gsx" - "jdLogistics" - "laPoste" - "lasership" - " manual" - "mpx" - "onTrac" - "other" - "tnt" - "uds" - "ups" - " usps" Corresponds to the JSON property carrier

Returns:

  • (String)


10281
10282
10283
# File 'lib/google/apis/content_v2/classes.rb', line 10281

def carrier
  @carrier
end

#tracking_numberString

The tracking number for the package. Corresponds to the JSON property trackingNumber

Returns:

  • (String)


10286
10287
10288
# File 'lib/google/apis/content_v2/classes.rb', line 10286

def tracking_number
  @tracking_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10293
10294
10295
10296
# File 'lib/google/apis/content_v2/classes.rb', line 10293

def update!(**args)
  @carrier = args[:carrier] if args.key?(:carrier)
  @tracking_number = args[:tracking_number] if args.key?(:tracking_number)
end