Class: Google::Apis::ContentV2::OrdersShipLineItemsRequest

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

Returns a new instance of OrdersShipLineItemsRequest



5675
5676
5677
# File 'generated/google/apis/content_v2/classes.rb', line 5675

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

Instance Attribute Details

#carrierString

Deprecated. Please use shipmentInfo instead. The carrier handling the shipment. See shipments[].carrier in the Orders resource representation for a list of acceptable values. Corresponds to the JSON property carrier

Returns:

  • (String)


5647
5648
5649
# File 'generated/google/apis/content_v2/classes.rb', line 5647

def carrier
  @carrier
end

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

Line items to ship. Corresponds to the JSON property lineItems



5652
5653
5654
# File 'generated/google/apis/content_v2/classes.rb', line 5652

def line_items
  @line_items
end

#operation_idString

The ID of the operation. Unique across all operations for a given order. Corresponds to the JSON property operationId

Returns:

  • (String)


5657
5658
5659
# File 'generated/google/apis/content_v2/classes.rb', line 5657

def operation_id
  @operation_id
end

#shipment_idString

Deprecated. Please use shipmentInfo instead. The ID of the shipment. Corresponds to the JSON property shipmentId

Returns:

  • (String)


5662
5663
5664
# File 'generated/google/apis/content_v2/classes.rb', line 5662

def shipment_id
  @shipment_id
end

#shipment_infosArray<Google::Apis::ContentV2::OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo>

Shipment information. This field is repeated because a single line item can be shipped in several packages (and have several tracking IDs). Corresponds to the JSON property shipmentInfos



5668
5669
5670
# File 'generated/google/apis/content_v2/classes.rb', line 5668

def shipment_infos
  @shipment_infos
end

#tracking_idString

Deprecated. Please use shipmentInfo instead. The tracking id for the shipment. Corresponds to the JSON property trackingId

Returns:

  • (String)


5673
5674
5675
# File 'generated/google/apis/content_v2/classes.rb', line 5673

def tracking_id
  @tracking_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5680
5681
5682
5683
5684
5685
5686
5687
# File 'generated/google/apis/content_v2/classes.rb', line 5680

def update!(**args)
  @carrier = args[:carrier] if args.key?(:carrier)
  @line_items = args[:line_items] if args.key?(:line_items)
  @operation_id = args[:operation_id] if args.key?(:operation_id)
  @shipment_id = args[:shipment_id] if args.key?(:shipment_id)
  @shipment_infos = args[:shipment_infos] if args.key?(:shipment_infos)
  @tracking_id = args[:tracking_id] if args.key?(:tracking_id)
end