Class: Google::Apis::ContentV2_1::ShipmentInvoiceLineItemInvoice

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

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) ⇒ ShipmentInvoiceLineItemInvoice

Returns a new instance of ShipmentInvoiceLineItemInvoice.



11052
11053
11054
# File 'generated/google/apis/content_v2_1/classes.rb', line 11052

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

Instance Attribute Details

#line_item_idString

ID of the line item. Either lineItemId or productId must be set. Corresponds to the JSON property lineItemId

Returns:

  • (String)


11031
11032
11033
# File 'generated/google/apis/content_v2_1/classes.rb', line 11031

def line_item_id
  @line_item_id
end

#product_idString

ID of the product. This is the REST ID used in the products service. Either lineItemId or productId must be set. Corresponds to the JSON property productId

Returns:

  • (String)


11037
11038
11039
# File 'generated/google/apis/content_v2_1/classes.rb', line 11037

def product_id
  @product_id
end

#shipment_unit_idsArray<String>

[required] The shipment unit ID is assigned by the merchant and defines individual quantities within a line item. The same ID can be assigned to units that are the same while units that differ must be assigned a different ID (for example: free or promotional units). Corresponds to the JSON property shipmentUnitIds

Returns:

  • (Array<String>)


11045
11046
11047
# File 'generated/google/apis/content_v2_1/classes.rb', line 11045

def shipment_unit_ids
  @shipment_unit_ids
end

#unit_invoiceGoogle::Apis::ContentV2_1::UnitInvoice

[required] Invoice details for a single unit. Corresponds to the JSON property unitInvoice



11050
11051
11052
# File 'generated/google/apis/content_v2_1/classes.rb', line 11050

def unit_invoice
  @unit_invoice
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11057
11058
11059
11060
11061
11062
# File 'generated/google/apis/content_v2_1/classes.rb', line 11057

def update!(**args)
  @line_item_id = args[:line_item_id] if args.key?(:line_item_id)
  @product_id = args[:product_id] if args.key?(:product_id)
  @shipment_unit_ids = args[:shipment_unit_ids] if args.key?(:shipment_unit_ids)
  @unit_invoice = args[:unit_invoice] if args.key?(:unit_invoice)
end