Class: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryShipLineItems

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/content_v2sandbox/classes.rb,
generated/google/apis/content_v2sandbox/representations.rb,
generated/google/apis/content_v2sandbox/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) ⇒ OrdersCustomBatchRequestEntryShipLineItems

Returns a new instance of OrdersCustomBatchRequestEntryShipLineItems



2480
2481
2482
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 2480

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)


2451
2452
2453
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 2451

def carrier
  @carrier
end

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

Line items to ship. Corresponds to the JSON property lineItems



2456
2457
2458
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 2456

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)


2462
2463
2464
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 2462

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)


2467
2468
2469
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 2467

def shipment_id
  @shipment_id
end

#shipment_infosArray<Google::Apis::ContentV2sandbox::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



2473
2474
2475
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 2473

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)


2478
2479
2480
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 2478

def tracking_id
  @tracking_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2485
2486
2487
2488
2489
2490
2491
2492
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 2485

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