Class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryShipLineItems

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/content_v2/classes.rb,
lib/google/apis/content_v2/representations.rb,
lib/google/apis/content_v2/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OrdersCustomBatchRequestEntryShipLineItems

Returns a new instance of OrdersCustomBatchRequestEntryShipLineItems.



6930
6931
6932
# File 'lib/google/apis/content_v2/classes.rb', line 6930

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)


6901
6902
6903
# File 'lib/google/apis/content_v2/classes.rb', line 6901

def carrier
  @carrier
end

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

Line items to ship. Corresponds to the JSON property lineItems



6906
6907
6908
# File 'lib/google/apis/content_v2/classes.rb', line 6906

def line_items
  @line_items
end

#shipment_group_idString

ID of the shipment group. Required for orders that use the orderinvoices service. Corresponds to the JSON property shipmentGroupId

Returns:

  • (String)


6912
6913
6914
# File 'lib/google/apis/content_v2/classes.rb', line 6912

def shipment_group_id
  @shipment_group_id
end

#shipment_idString

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

Returns:

  • (String)


6917
6918
6919
# File 'lib/google/apis/content_v2/classes.rb', line 6917

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



6923
6924
6925
# File 'lib/google/apis/content_v2/classes.rb', line 6923

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)


6928
6929
6930
# File 'lib/google/apis/content_v2/classes.rb', line 6928

def tracking_id
  @tracking_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6935
6936
6937
6938
6939
6940
6941
6942
# File 'lib/google/apis/content_v2/classes.rb', line 6935

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