@akamai/openapi-ts
    Preparing search index...

    Type Alias PaymentMethod

    Payment Method Response Object.

    type PaymentMethod = {
        created?: string;
        data?:
            | { card_type?: string; expiry?: string; last_four?: string }
            | { card_type?: string; expiry?: string; last_four?: string }
            | { email?: string; paypal_id?: string };
        id?: number;
        is_default?: boolean;
        type?: "credit_card" | "google_pay" | "paypal";
    }
    Index

    Properties

    created?: string

    Read-only When the Payment Method was added to the Account.

    data?:
        | { card_type?: string; expiry?: string; last_four?: string }
        | { card_type?: string; expiry?: string; last_four?: string }
        | { email?: string; paypal_id?: string }

    Type Declaration

    • { card_type?: string; expiry?: string; last_four?: string }
      • Optional Readonlycard_type?: string

        Read-only The type of credit card.

      • Optional Readonlyexpiry?: string

        Read-only The expiration month and year of the credit card.

      • Optional Readonlylast_four?: string

        Read-only The last four digits of the credit card number.

    • { card_type?: string; expiry?: string; last_four?: string }
      • Optional Readonlycard_type?: string

        Read-only The type of credit card.

      • Optional Readonlyexpiry?: string

        Read-only The expiration month and year of the credit card.

      • Optional Readonlylast_four?: string

        Read-only The last four digits of the credit card number.

    • { email?: string; paypal_id?: string }
      • Optional Readonlyemail?: string

        Read-only The email address associated with your PayPal account.

      • Optional Readonlypaypal_id?: string

        Read-only PayPal Merchant ID associated with your PayPal account.

    id?: number

    The unique ID of this Payment Method.

    is_default?: boolean

    Whether this Payment Method is the default method for automatically processing service charges.

    type?: "credit_card" | "google_pay" | "paypal"

    The type of Payment Method.