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

Payment

import type { Payment } from "https://googleapis.deno.dev/v1/adsense:v2.ts";

Representation of an unpaid or paid payment. See Payment timelines for AdSense for more information about payments and the YouTube homepage and payments account article for information about dedicated payments accounts for YouTube.

interface Payment {
readonly amount?: string;
readonly date?: Date;
readonly name?: string;
}

§Properties

§
readonly amount?: string
[src]

Output only. The amount of unpaid or paid earnings, as a formatted string, including the currency. E.g. "¥1,235 JPY", "$1,234.57", "£87.65".

§
readonly date?: Date
[src]

Output only. For paid earnings, the date that the payment was credited. For unpaid earnings, this field is empty. Payment dates are always returned in the billing timezone (America/Los_Angeles).

§
readonly name?: string
[src]

Output only. Resource name of the payment. Format: - accounts/{account}/payments/unpaid for unpaid (current) AdSense earnings. - accounts/{account}/payments/youtube-unpaid for unpaid (current) YouTube earnings. - accounts/{account}/payments/yyyy-MM-dd for paid AdSense earnings. - accounts/{account}/payments/youtube-yyyy-MM-dd for paid YouTube earnings.