Class: Google::Apis::ContentV2_1::OrderTrackingSignalShipmentLineItemMapping

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

Overview

Represents how many items are in the shipment for the given shipment_id and line_item_id.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OrderTrackingSignalShipmentLineItemMapping

Returns a new instance of OrderTrackingSignalShipmentLineItemMapping.



6026
6027
6028
# File 'generated/google/apis/content_v2_1/classes.rb', line 6026

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

Instance Attribute Details

#line_item_idString

Required. The line item ID. Corresponds to the JSON property lineItemId

Returns:

  • (String)


6014
6015
6016
# File 'generated/google/apis/content_v2_1/classes.rb', line 6014

def line_item_id
  @line_item_id
end

#quantityFixnum

Required. The line item quantity in the shipment. Corresponds to the JSON property quantity

Returns:

  • (Fixnum)


6019
6020
6021
# File 'generated/google/apis/content_v2_1/classes.rb', line 6019

def quantity
  @quantity
end

#shipment_idString

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

Returns:

  • (String)


6024
6025
6026
# File 'generated/google/apis/content_v2_1/classes.rb', line 6024

def shipment_id
  @shipment_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6031
6032
6033
6034
6035
# File 'generated/google/apis/content_v2_1/classes.rb', line 6031

def update!(**args)
  @line_item_id = args[:line_item_id] if args.key?(:line_item_id)
  @quantity = args[:quantity] if args.key?(:quantity)
  @shipment_id = args[:shipment_id] if args.key?(:shipment_id)
end