Class: Google::Apis::ContentV2_1::OrderShipment

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) ⇒ OrderShipment

Returns a new instance of OrderShipment



4509
4510
4511
# File 'generated/google/apis/content_v2_1/classes.rb', line 4509

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

Instance Attribute Details

#carrierString

The carrier handling the shipment. Acceptable values for US are:

  • "gsx"
  • "ups"
  • "usps"
  • "fedex"
  • "dhl"
  • "ecourier"
  • "cxt"
  • "google"
  • "ontrac"
  • "emsy"
  • "ont"
  • "deliv"
  • "dynamex"
  • "lasership"
  • "mpx"
  • "uds" Acceptable values for FR are:
  • "colissimo"
  • "chronopost" Corresponds to the JSON property carrier

Returns:

  • (String)


4476
4477
4478
# File 'generated/google/apis/content_v2_1/classes.rb', line 4476

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)


4481
4482
4483
# File 'generated/google/apis/content_v2_1/classes.rb', line 4481

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)


4487
4488
4489
# File 'generated/google/apis/content_v2_1/classes.rb', line 4487

def delivery_date
  @delivery_date
end

#idString

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

Returns:

  • (String)


4492
4493
4494
# File 'generated/google/apis/content_v2_1/classes.rb', line 4492

def id
  @id
end

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

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



4497
4498
4499
# File 'generated/google/apis/content_v2_1/classes.rb', line 4497

def line_items
  @line_items
end

#statusString

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

Returns:

  • (String)


4502
4503
4504
# File 'generated/google/apis/content_v2_1/classes.rb', line 4502

def status
  @status
end

#tracking_idString

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

Returns:

  • (String)


4507
4508
4509
# File 'generated/google/apis/content_v2_1/classes.rb', line 4507

def tracking_id
  @tracking_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4514
4515
4516
4517
4518
4519
4520
4521
4522
# File 'generated/google/apis/content_v2_1/classes.rb', line 4514

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