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.



4575
4576
4577
# File 'generated/google/apis/content_v2/classes.rb', line 4575

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

Instance Attribute Details

#carrierString

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

Returns:

  • (String)


4553
4554
4555
# File 'generated/google/apis/content_v2/classes.rb', line 4553

def carrier
  @carrier
end

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

Line items to ship. Corresponds to the JSON property lineItems



4558
4559
4560
# File 'generated/google/apis/content_v2/classes.rb', line 4558

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)


4563
4564
4565
# File 'generated/google/apis/content_v2/classes.rb', line 4563

def operation_id
  @operation_id
end

#shipment_idString

The ID of the shipment. Corresponds to the JSON property shipmentId

Returns:

  • (String)


4568
4569
4570
# File 'generated/google/apis/content_v2/classes.rb', line 4568

def shipment_id
  @shipment_id
end

#tracking_idString

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

Returns:

  • (String)


4573
4574
4575
# File 'generated/google/apis/content_v2/classes.rb', line 4573

def tracking_id
  @tracking_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4580
4581
4582
4583
4584
4585
4586
# File 'generated/google/apis/content_v2/classes.rb', line 4580

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)
  @tracking_id = args[:tracking_id] if args.key?(:tracking_id)
end