Class: Google::Apis::ContentV2::ShipmentInvoice

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

Returns a new instance of ShipmentInvoice



10207
10208
10209
# File 'generated/google/apis/content_v2/classes.rb', line 10207

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

Instance Attribute Details

#invoice_summaryGoogle::Apis::ContentV2::InvoiceSummary

[required] Invoice summary. Corresponds to the JSON property invoiceSummary



10193
10194
10195
# File 'generated/google/apis/content_v2/classes.rb', line 10193

def invoice_summary
  @invoice_summary
end

#line_item_invoicesArray<Google::Apis::ContentV2::ShipmentInvoiceLineItemInvoice>

[required] Invoice details per line item. Corresponds to the JSON property lineItemInvoices



10198
10199
10200
# File 'generated/google/apis/content_v2/classes.rb', line 10198

def line_item_invoices
  @line_item_invoices
end

#shipment_group_idString

[required] ID of the shipment group. It is assigned by the merchant in the shipLineItems method and is used to group multiple line items that have the same kind of shipping charges. Corresponds to the JSON property shipmentGroupId

Returns:

  • (String)


10205
10206
10207
# File 'generated/google/apis/content_v2/classes.rb', line 10205

def shipment_group_id
  @shipment_group_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10212
10213
10214
10215
10216
# File 'generated/google/apis/content_v2/classes.rb', line 10212

def update!(**args)
  @invoice_summary = args[:invoice_summary] if args.key?(:invoice_summary)
  @line_item_invoices = args[:line_item_invoices] if args.key?(:line_item_invoices)
  @shipment_group_id = args[:shipment_group_id] if args.key?(:shipment_group_id)
end