Class: Google::Apis::ContentV2::ShipmentInvoiceLineItemInvoice

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

Returns a new instance of ShipmentInvoiceLineItemInvoice



10098
10099
10100
# File 'generated/google/apis/content_v2/classes.rb', line 10098

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)


10080
10081
10082
# File 'generated/google/apis/content_v2/classes.rb', line 10080

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)


10086
10087
10088
# File 'generated/google/apis/content_v2/classes.rb', line 10086

def product_id
  @product_id
end

#shipment_unit_idsArray<String>

[required] Unit IDs to define specific units within the line item. Corresponds to the JSON property shipmentUnitIds

Returns:

  • (Array<String>)


10091
10092
10093
# File 'generated/google/apis/content_v2/classes.rb', line 10091

def shipment_unit_ids
  @shipment_unit_ids
end

#unit_invoiceGoogle::Apis::ContentV2::UnitInvoice

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



10096
10097
10098
# File 'generated/google/apis/content_v2/classes.rb', line 10096

def unit_invoice
  @unit_invoice
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10103
10104
10105
10106
10107
10108
# File 'generated/google/apis/content_v2/classes.rb', line 10103

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