class Google::Apis::ContentV2::OrdersCustomBatchRequestEntryShipLineItems

Attributes

carrier[RW]

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` @return [String]

line_items[RW]

Line items to ship. Corresponds to the JSON property `lineItems` @return [Array<Google::Apis::ContentV2::OrderShipmentLineItemShipment>]

shipment_group_id[RW]

ID of the shipment group. Required for orders that use the orderinvoices service. Corresponds to the JSON property `shipmentGroupId` @return [String]

shipment_id[RW]

Deprecated. Please use shipmentInfo instead. The ID of the shipment. Corresponds to the JSON property `shipmentId` @return [String]

shipment_infos[RW]

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` @return [Array<Google::Apis::ContentV2::OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo>]

tracking_id[RW]

Deprecated. Please use shipmentInfo instead. The tracking ID for the shipment. Corresponds to the JSON property `trackingId` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/content_v2/classes.rb, line 6876
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/content_v2/classes.rb, line 6881
def update!(**args)
  @carrier = args[:carrier] if args.key?(:carrier)
  @line_items = args[:line_items] if args.key?(:line_items)
  @shipment_group_id = args[:shipment_group_id] if args.key?(:shipment_group_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