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

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



7048
7049
7050
# File 'lib/google/apis/content_v2_1/classes.rb', line 7048

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)


7035
7036
7037
# File 'lib/google/apis/content_v2_1/classes.rb', line 7035

def line_item_id
  @line_item_id
end

#quantityFixnum

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

Returns:

  • (Fixnum)


7040
7041
7042
# File 'lib/google/apis/content_v2_1/classes.rb', line 7040

def quantity
  @quantity
end

#shipment_idString

Required. The shipment ID. This field will be hashed in returned OrderTrackingSignal creation response. Corresponds to the JSON property shipmentId

Returns:

  • (String)


7046
7047
7048
# File 'lib/google/apis/content_v2_1/classes.rb', line 7046

def shipment_id
  @shipment_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7053
7054
7055
7056
7057
# File 'lib/google/apis/content_v2_1/classes.rb', line 7053

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