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



3708
3709
3710
# File 'generated/google/apis/content_v2/classes.rb', line 3708

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

Instance Attribute Details

#carrierString

The carrier handling the shipment. Corresponds to the JSON property carrier

Returns:

  • (String)


3675
3676
3677
# File 'generated/google/apis/content_v2/classes.rb', line 3675

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)


3680
3681
3682
# File 'generated/google/apis/content_v2/classes.rb', line 3680

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 delievered Corresponds to the JSON property deliveryDate

Returns:

  • (String)


3686
3687
3688
# File 'generated/google/apis/content_v2/classes.rb', line 3686

def delivery_date
  @delivery_date
end

#idString

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

Returns:

  • (String)


3691
3692
3693
# File 'generated/google/apis/content_v2/classes.rb', line 3691

def id
  @id
end

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

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



3696
3697
3698
# File 'generated/google/apis/content_v2/classes.rb', line 3696

def line_items
  @line_items
end

#statusString

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

Returns:

  • (String)


3701
3702
3703
# File 'generated/google/apis/content_v2/classes.rb', line 3701

def status
  @status
end

#tracking_idString

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

Returns:

  • (String)


3706
3707
3708
# File 'generated/google/apis/content_v2/classes.rb', line 3706

def tracking_id
  @tracking_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3713
3714
3715
3716
3717
3718
3719
3720
3721
# File 'generated/google/apis/content_v2/classes.rb', line 3713

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