Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Invoice

import type { Invoice } from "https://googleapis.deno.dev/v1/dfareporting:v4.ts";

Contains information about a single invoice

interface Invoice {
campaign_summaries?: CampaignSummary[];
correctedInvoiceId?: string;
currencyCode?: string;
dueDate?: string;
id?: string;
invoiceType?: "INVOICE_TYPE_UNSPECIFIED" | "INVOICE_TYPE_CREDIT" | "INVOICE_TYPE_INVOICE";
issueDate?: string;
kind?: string;
paymentsAccountId?: string;
paymentsProfileId?: string;
pdfUrl?: string;
purchaseOrderNumber?: string;
replacedInvoiceIds?: string[];
serviceEndDate?: string;
serviceStartDate?: string;
subtotalAmountMicros?: bigint;
totalAmountMicros?: bigint;
totalTaxAmountMicros?: bigint;
}

§Properties

§
campaign_summaries?: CampaignSummary[]
[src]

The list of summarized campaign information associated with this invoice.

§
correctedInvoiceId?: string
[src]

The originally issued invoice that is being adjusted by this invoice, if applicable. May appear on invoice PDF as Reference invoice number.

§
currencyCode?: string
[src]

Invoice currency code in ISO 4217 format.

§
dueDate?: string
[src]

The invoice due date.

§
id?: string
[src]

ID of this invoice.

§
invoiceType?: "INVOICE_TYPE_UNSPECIFIED" | "INVOICE_TYPE_CREDIT" | "INVOICE_TYPE_INVOICE"
[src]

The type of invoice document.

§
issueDate?: string
[src]

The date when the invoice was issued.

§
kind?: string
[src]

Identifies what kind of resource this is. Value: the fixed string "dfareporting#invoice".

§
paymentsAccountId?: string
[src]

The ID of the payments account the invoice belongs to. Appears on the invoice PDF as Billing Account Number.

§
paymentsProfileId?: string
[src]

The ID of the payments profile the invoice belongs to. Appears on the invoice PDF as Billing ID.

§
pdfUrl?: string
[src]

The URL to download a PDF copy of the invoice. Note that 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. The URL will only be usable for 7 days from when the api is called.

§
purchaseOrderNumber?: string
[src]

Purchase order number associated with the invoice.

§
replacedInvoiceIds?: string[]
[src]

The originally issued invoice(s) that is being cancelled by this invoice, if applicable. May appear on invoice PDF as Replaced invoice numbers. Note: There may be multiple replaced invoices due to consolidation of multiple invoices into a single invoice.

§
serviceEndDate?: string
[src]

The invoice service end date.

§
serviceStartDate?: string
[src]

The invoice service start date.

§
subtotalAmountMicros?: bigint
[src]

The pre-tax subtotal amount, in micros of the invoice's currency.

§
totalAmountMicros?: bigint
[src]

The invoice total amount, in micros of the invoice's currency.

§
totalTaxAmountMicros?: bigint
[src]

The sum of all taxes in invoice, in micros of the invoice's currency.