Class: Google::Apis::ContentV2_1::ShipmentTrackingInfo

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ShipmentTrackingInfo

Returns a new instance of ShipmentTrackingInfo.



11110
11111
11112
# File 'generated/google/apis/content_v2_1/classes.rb', line 11110

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)


11103
11104
11105
# File 'generated/google/apis/content_v2_1/classes.rb', line 11103

def carrier
  @carrier
end

#tracking_numberString

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

Returns:

  • (String)


11108
11109
11110
# File 'generated/google/apis/content_v2_1/classes.rb', line 11108

def tracking_number
  @tracking_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11115
11116
11117
11118
# File 'generated/google/apis/content_v2_1/classes.rb', line 11115

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