Class: Google::Apis::ContentV2_1::OrderTrackingSignalShipmentLineItemMapping
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::OrderTrackingSignalShipmentLineItemMapping
- 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
-
#line_item_id ⇒ String
Required.
-
#quantity ⇒ Fixnum
Required.
-
#shipment_id ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OrderTrackingSignalShipmentLineItemMapping
constructor
A new instance of OrderTrackingSignalShipmentLineItemMapping.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OrderTrackingSignalShipmentLineItemMapping
Returns a new instance of OrderTrackingSignalShipmentLineItemMapping.
6845 6846 6847 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6845 def initialize(**args) update!(**args) end |
Instance Attribute Details
#line_item_id ⇒ String
Required. The line item ID.
Corresponds to the JSON property lineItemId
6832 6833 6834 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6832 def line_item_id @line_item_id end |
#quantity ⇒ Fixnum
Required. The line item quantity in the shipment.
Corresponds to the JSON property quantity
6837 6838 6839 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6837 def quantity @quantity end |
#shipment_id ⇒ String
Required. The shipment ID. This field will be hashed in returned
OrderTrackingSignal creation response.
Corresponds to the JSON property shipmentId
6843 6844 6845 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6843 def shipment_id @shipment_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6850 6851 6852 6853 6854 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6850 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 |