@bates-solutions/stripe API Reference - v2.2.1
    Preparing search index...

    Interface ReplacePriceOptions

    Options for PricesService.replace. Anything you omit is copied from the price being replaced.

    interface ReplacePriceOptions {
        currency?: string;
        idempotencyKey?: string;
        metadata?: Record<string, string>;
        nickname?: string;
        recurring?: PriceRecurring;
        unitAmount: number;
    }
    Index
    currency?: string

    New currency (defaults to the old price's currency)

    idempotencyKey?: string

    Idempotency key for the whole replacement (defaults to a generated UUID). Each underlying call uses a key derived from it, so retrying a failed replace with the same key never creates a second new price.

    metadata?: Record<string, string>

    New metadata (defaults to a copy of the old price's metadata)

    nickname?: string

    New nickname (defaults to the old one)

    recurring?: PriceRecurring

    New interval (defaults to the old price's interval, if it was recurring)

    unitAmount: number

    New amount in the smallest currency unit. A non-negative integer.