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



4608
4609
4610
# File 'generated/google/apis/content_v2/classes.rb', line 4608

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

Instance Attribute Details

#carrierString

The carrier handling the shipment. Acceptable values are:

  • "gsx"
  • "ups"
  • "usps"
  • "fedex"
  • "dhl"
  • "ecourier"
  • "cxt"
  • "google"
  • "ontrac"
  • "emsy"
  • "ont"
  • "deliv"
  • "dynamex"
  • "lasership"
  • "mpx"
  • "uds" Corresponds to the JSON property carrier

Returns:

  • (String)


4575
4576
4577
# File 'generated/google/apis/content_v2/classes.rb', line 4575

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)


4580
4581
4582
# File 'generated/google/apis/content_v2/classes.rb', line 4580

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)


4586
4587
4588
# File 'generated/google/apis/content_v2/classes.rb', line 4586

def delivery_date
  @delivery_date
end

#idString

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

Returns:

  • (String)


4591
4592
4593
# File 'generated/google/apis/content_v2/classes.rb', line 4591

def id
  @id
end

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

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



4596
4597
4598
# File 'generated/google/apis/content_v2/classes.rb', line 4596

def line_items
  @line_items
end

#statusString

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

Returns:

  • (String)


4601
4602
4603
# File 'generated/google/apis/content_v2/classes.rb', line 4601

def status
  @status
end

#tracking_idString

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

Returns:

  • (String)


4606
4607
4608
# File 'generated/google/apis/content_v2/classes.rb', line 4606

def tracking_id
  @tracking_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4613
4614
4615
4616
4617
4618
4619
4620
4621
# File 'generated/google/apis/content_v2/classes.rb', line 4613

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