class Google::Apis::DisplayvideoV1::Invoice

A single invoice.

Attributes

budget_invoice_grouping_id[RW]

The budget grouping ID for this invoice. This field will only be set if the invoice level of the corresponding billing profile was set to “Budget invoice grouping ID”. Corresponds to the JSON property `budgetInvoiceGroupingId` @return [String]

budget_summaries[RW]

The list of summarized information for each budget associated with this invoice. This field will only be set if the invoice detail level of the corresponding billing profile was set to “Budget level PO”. Corresponds to the JSON property `budgetSummaries` @return [Array<Google::Apis::DisplayvideoV1::BudgetSummary>]

corrected_invoice_id[RW]

The ID of the original invoice being adjusted by this invoice, if applicable. May appear on the invoice PDF as `Reference invoice number`. If replaced_invoice_ids is set, this field will be empty. Corresponds to the JSON property `correctedInvoiceId` @return [String]

currency_code[RW]

The currency used in the invoice in ISO 4217 format. Corresponds to the JSON property `currencyCode` @return [String]

display_name[RW]

The display name of the invoice. Corresponds to the JSON property `displayName` @return [String]

due_date[RW]

Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day value, with a zero year, such as an anniversary * A year on its own, with zero month and day values * A year and month value, with a zero day, such as a credit card expiration date Related types are google.type.TimeOfDay and ` google.protobuf.Timestamp`. Corresponds to the JSON property `dueDate` @return [Google::Apis::DisplayvideoV1::Date]

invoice_id[RW]

The unique ID of the invoice. Corresponds to the JSON property `invoiceId` @return [String]

invoice_type[RW]

The type of invoice document. Corresponds to the JSON property `invoiceType` @return [String]

issue_date[RW]

Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day value, with a zero year, such as an anniversary * A year on its own, with zero month and day values * A year and month value, with a zero day, such as a credit card expiration date Related types are google.type.TimeOfDay and ` google.protobuf.Timestamp`. Corresponds to the JSON property `issueDate` @return [Google::Apis::DisplayvideoV1::Date]

name[RW]

The resource name of the invoice. Corresponds to the JSON property `name` @return [String]

non_budget_micros[RW]

The total amount of costs or adjustments not tied to a particular budget, in micros of the invoice's currency. For example, if currency_code is `USD`, then 1000000 represents one US dollar. Corresponds to the JSON property `nonBudgetMicros` @return [Fixnum]

payments_account_id[RW]

The ID of the payments account the invoice belongs to. Appears on the invoice PDF as `Billing Account Number`. Corresponds to the JSON property `paymentsAccountId` @return [String]

payments_profile_id[RW]

The ID of the payments profile the invoice belongs to. Appears on the invoice PDF as `Billing ID`. Corresponds to the JSON property `paymentsProfileId` @return [String]

pdf_url[RW]

The URL to download a PDF copy of the invoice. This URL is user specific and requires a valid OAuth 2.0 access token to access. The access token must be provided in an `Authorization: Bearer` HTTP header and be authorized for one of the following scopes: * `www.googleapis.com/auth/display-video- mediaplanning` * `www.googleapis.com/auth/display-video` The URL will be valid for 7 days after retrieval of this invoice object or until this invoice is retrieved again. Corresponds to the JSON property `pdfUrl` @return [String]

purchase_order_number[RW]

Purchase order number associated with the invoice. Corresponds to the JSON property `purchaseOrderNumber` @return [String]

replaced_invoice_ids[RW]

The ID(s) of any originally issued invoice that is being cancelled by this invoice, if applicable. Multiple invoices may be listed if those invoices are being consolidated into a single invoice. May appear on invoice PDF as ` Replaced invoice numbers`. If corrected_invoice_id is set, this field will be empty. Corresponds to the JSON property `replacedInvoiceIds` @return [Array<String>]

service_date_range[RW]

A date range. Corresponds to the JSON property `serviceDateRange` @return [Google::Apis::DisplayvideoV1::DateRange]

subtotal_amount_micros[RW]

The pre-tax subtotal amount, in micros of the invoice's currency. For example, if currency_code is `USD`, then 1000000 represents one US dollar. Corresponds to the JSON property `subtotalAmountMicros` @return [Fixnum]

total_amount_micros[RW]

The invoice total amount, in micros of the invoice's currency. For example, if currency_code is `USD`, then 1000000 represents one US dollar. Corresponds to the JSON property `totalAmountMicros` @return [Fixnum]

total_tax_amount_micros[RW]

The sum of all taxes in invoice, in micros of the invoice's currency. For example, if currency_code is `USD`, then 1000000 represents one US dollar. Corresponds to the JSON property `totalTaxAmountMicros` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/displayvideo_v1/classes.rb, line 5788
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/displayvideo_v1/classes.rb, line 5793
def update!(**args)
  @budget_invoice_grouping_id = args[:budget_invoice_grouping_id] if args.key?(:budget_invoice_grouping_id)
  @budget_summaries = args[:budget_summaries] if args.key?(:budget_summaries)
  @corrected_invoice_id = args[:corrected_invoice_id] if args.key?(:corrected_invoice_id)
  @currency_code = args[:currency_code] if args.key?(:currency_code)
  @display_name = args[:display_name] if args.key?(:display_name)
  @due_date = args[:due_date] if args.key?(:due_date)
  @invoice_id = args[:invoice_id] if args.key?(:invoice_id)
  @invoice_type = args[:invoice_type] if args.key?(:invoice_type)
  @issue_date = args[:issue_date] if args.key?(:issue_date)
  @name = args[:name] if args.key?(:name)
  @non_budget_micros = args[:non_budget_micros] if args.key?(:non_budget_micros)
  @payments_account_id = args[:payments_account_id] if args.key?(:payments_account_id)
  @payments_profile_id = args[:payments_profile_id] if args.key?(:payments_profile_id)
  @pdf_url = args[:pdf_url] if args.key?(:pdf_url)
  @purchase_order_number = args[:purchase_order_number] if args.key?(:purchase_order_number)
  @replaced_invoice_ids = args[:replaced_invoice_ids] if args.key?(:replaced_invoice_ids)
  @service_date_range = args[:service_date_range] if args.key?(:service_date_range)
  @subtotal_amount_micros = args[:subtotal_amount_micros] if args.key?(:subtotal_amount_micros)
  @total_amount_micros = args[:total_amount_micros] if args.key?(:total_amount_micros)
  @total_tax_amount_micros = args[:total_tax_amount_micros] if args.key?(:total_tax_amount_micros)
end