Class: Google::Apis::ContentV2::OrderShipment

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/content_v2/classes.rb,
generated/google/apis/content_v2/representations.rb,
generated/google/apis/content_v2/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) ⇒ OrderShipment

Returns a new instance of OrderShipment.



5353
5354
5355
# File 'generated/google/apis/content_v2/classes.rb', line 5353

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

Instance Attribute Details

#carrierString

The carrier handling the shipment. For supported carriers, Google includes the carrier name and tracking URL in emails to customers. For select supported carriers, Google also automatically updates the shipment status based on the provided shipment ID. Note: You can also use unsupported carriers, but emails to customers will not include the carrier name or tracking URL, and there will be no automatic order status updates. Supported carriers for US are:

  • "ups" (United Parcel Service) automatic status updates
  • "usps" (United States Postal Service) automatic status updates
  • "fedex" (FedEx) automatic status updates
  • "dhl" (DHL eCommerce) automatic status updates (US only)
  • "ontrac" (OnTrac) automatic status updates
  • "dhl express" (DHL Express)
  • "deliv" (Deliv)
  • "dynamex" (TForce)
  • "lasership" (LaserShip)
  • "mpx" (Military Parcel Xpress)
  • "uds" (United Delivery Service)
  • "efw" (Estes Forwarding Worldwide)
  • "jd logistics" (JD Logistics)
  • "yunexpress" (YunExpress)
  • "china post" (China Post)
  • "china ems" (China Post Express Mail Service)
  • "singapore post" (Singapore Post)
  • "pos malaysia" (Pos Malaysia)
  • "postnl" (PostNL)
  • "ptt" (PTT Turkish Post)
  • "eub" (ePacket)
  • "chukou1" (Chukou1 Logistics) Supported carriers for FR are:
  • "la poste" (La Poste) automatic status updates
  • "colissimo" (Colissimo by La Poste) automatic status updates
  • "ups" (United Parcel Service) automatic status updates
  • "chronopost" (Chronopost by La Poste)
  • "gls" (General Logistics Systems France)
  • "dpd" (DPD Group by GeoPost)
  • "bpost" (Belgian Post Group)
  • "colis prive" (Colis PrivĂ©)
  • "boxtal" (Boxtal)
  • "geodis" (GEODIS)
  • "tnt" (TNT)
  • "db schenker" (DB Schenker)
  • "aramex" (Aramex) Corresponds to the JSON property carrier

Returns:

  • (String)


5320
5321
5322
# File 'generated/google/apis/content_v2/classes.rb', line 5320

def carrier
  @carrier
end

#creation_dateString

Date on which the shipment has been created, in ISO 8601 format. Corresponds to the JSON property creationDate

Returns:

  • (String)


5325
5326
5327
# File 'generated/google/apis/content_v2/classes.rb', line 5325

def creation_date
  @creation_date
end

#delivery_dateString

Date on which the shipment has been delivered, in ISO 8601 format. Present only if status is delivered Corresponds to the JSON property deliveryDate

Returns:

  • (String)


5331
5332
5333
# File 'generated/google/apis/content_v2/classes.rb', line 5331

def delivery_date
  @delivery_date
end

#idString

The ID of the shipment. Corresponds to the JSON property id

Returns:

  • (String)


5336
5337
5338
# File 'generated/google/apis/content_v2/classes.rb', line 5336

def id
  @id
end

#line_itemsArray<Google::Apis::ContentV2::OrderShipmentLineItemShipment>

The line items that are shipped. Corresponds to the JSON property lineItems



5341
5342
5343
# File 'generated/google/apis/content_v2/classes.rb', line 5341

def line_items
  @line_items
end

#statusString

The status of the shipment. Corresponds to the JSON property status

Returns:

  • (String)


5346
5347
5348
# File 'generated/google/apis/content_v2/classes.rb', line 5346

def status
  @status
end

#tracking_idString

The tracking ID for the shipment. Corresponds to the JSON property trackingId

Returns:

  • (String)


5351
5352
5353
# File 'generated/google/apis/content_v2/classes.rb', line 5351

def tracking_id
  @tracking_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5358
5359
5360
5361
5362
5363
5364
5365
5366
# File 'generated/google/apis/content_v2/classes.rb', line 5358

def update!(**args)
  @carrier = args[:carrier] if args.key?(:carrier)
  @creation_date = args[:creation_date] if args.key?(:creation_date)
  @delivery_date = args[:delivery_date] if args.key?(:delivery_date)
  @id = args[:id] if args.key?(:id)
  @line_items = args[:line_items] if args.key?(:line_items)
  @status = args[:status] if args.key?(:status)
  @tracking_id = args[:tracking_id] if args.key?(:tracking_id)
end