Interface PaddleNodeParameters

Source
interface PaddleNodeParameters {
    additionalFields?:
        | {
            allowedUses?: number;
            couponCode?: string;
            couponPrefix?: string;
            description?: string;
            expires?: string;
            group?: string;
            numberOfCoupons?: number;
            recurring?: boolean;
        }
        | {
            allowedUses?: number;
            discount?: {
                discountProperties: {
                    currency?: | "ARS"
                    | "AUD"
                    | "BRL"
                    | "CAD"
                    | "CHF"
                    | "CNY"
                    | "CZK"
                    | "DKK"
                    | "EUR"
                    | "GBP"
                    | "HKD"
                    | "HUF"
                    | "INR"
                    | "JPY"
                    | "KRW"
                    | "MXN"
                    | "NOK"
                    | "NZD"
                    | "PLN"
                    | "RUB"
                    | "SEK"
                    | "SGD"
                    | "THB"
                    | "TWD"
                    | "USD"
                    | "ZAR";
                    discountAmount?: number;
                    discountType?: "percentage"
                    | "flat";
                };
            };
            expires?: string;
            newCouponCode?: string;
            newGroup?: string;
            productIds?: string;
            recurring?: boolean;
        }
        | {
            from?: string;
            isOneOffCharge?: boolean;
            isPaid?: boolean;
            plan?: string;
            state?: "active"
            | "paused"
            | "past_due"
            | "trialing";
            subscriptionId?: number;
            to?: string;
        }
        | {
            planId?: string;
            state?: "active"
            | "paused"
            | "past_due"
            | "trialing";
            subscriptionId?: string;
        };
    additionalFieldsJson?: string;
    couponCode?: string;
    couponType?: "product"
    | "checkout";
    currency?:
        | "ARS"
        | "AUD"
        | "BRL"
        | "CAD"
        | "CHF"
        | "CNY"
        | "CZK"
        | "DKK"
        | "EUR"
        | "GBP"
        | "HKD"
        | "HUF"
        | "INR"
        | "JPY"
        | "KRW"
        | "MXN"
        | "NOK"
        | "NZD"
        | "PLN"
        | "RUB"
        | "SEK"
        | "SGD"
        | "THB"
        | "TWD"
        | "USD"
        | "ZAR";
    date?: string;
    discountAmount?: number;
    discountType?: "percentage"
    | "flat";
    group?: string;
    jsonParameters?: boolean;
    limit?: number;
    operation?:
        | "create"
        | "get"
        | "getAll"
        | "update"
        | "reschedule";
    paymentId?: string;
    planId?: string;
    productId?: string;
    productIds?: unknown[];
    resource?: | "user"
    | "product"
    | "payment"
    | "plan"
    | "coupon";
    returnAll?: boolean;
    updateBy?: "group"
    | "couponCode";
}

Properties§

Source§

readonly additionalFields?:
    | {
        allowedUses?: number;
        couponCode?: string;
        couponPrefix?: string;
        description?: string;
        expires?: string;
        group?: string;
        numberOfCoupons?: number;
        recurring?: boolean;
    }
    | {
        allowedUses?: number;
        discount?: {
            discountProperties: {
                currency?: | "ARS"
                | "AUD"
                | "BRL"
                | "CAD"
                | "CHF"
                | "CNY"
                | "CZK"
                | "DKK"
                | "EUR"
                | "GBP"
                | "HKD"
                | "HUF"
                | "INR"
                | "JPY"
                | "KRW"
                | "MXN"
                | "NOK"
                | "NZD"
                | "PLN"
                | "RUB"
                | "SEK"
                | "SGD"
                | "THB"
                | "TWD"
                | "USD"
                | "ZAR";
                discountAmount?: number;
                discountType?: "percentage"
                | "flat";
            };
        };
        expires?: string;
        newCouponCode?: string;
        newGroup?: string;
        productIds?: string;
        recurring?: boolean;
    }
    | {
        from?: string;
        isOneOffCharge?: boolean;
        isPaid?: boolean;
        plan?: string;
        state?: "active"
        | "paused"
        | "past_due"
        | "trialing";
        subscriptionId?: number;
        to?: string;
    }
    | {
        planId?: string;
        state?: "active"
        | "paused"
        | "past_due"
        | "trialing";
        subscriptionId?: string;
    }

Default: {}

Source§

readonly additionalFieldsJson?: string

Attributes in JSON form Type options: {"alwaysOpenEditWindow":true}

Source§

readonly couponCode?: string

Identify the coupon to update

Source§

readonly couponType?: "product" | "checkout"

Either product (valid for specified products or subscription plans) or checkout (valid for any checkout) Default: "checkout"

Source§

readonly currency?:
    | "ARS"
    | "AUD"
    | "BRL"
    | "CAD"
    | "CHF"
    | "CNY"
    | "CZK"
    | "DKK"
    | "EUR"
    | "GBP"
    | "HKD"
    | "HUF"
    | "INR"
    | "JPY"
    | "KRW"
    | "MXN"
    | "NOK"
    | "NZD"
    | "PLN"
    | "RUB"
    | "SEK"
    | "SGD"
    | "THB"
    | "TWD"
    | "USD"
    | "ZAR"

The currency must match the balance currency specified in your account Default: "EUR"

Source§

readonly date?: string

Date you want to move the payment to

Source§

readonly discountAmount?: number

Discount amount in currency Default: 1 Type options: {"minValue":1}

Source§

readonly discountType?: "percentage" | "flat"

Either flat or percentage Default: "flat"

Source§

readonly group?: string

The name of the group of coupons you want to update

Source§

readonly jsonParameters?: boolean

Source§

readonly limit?: number

Max number of results to return Default: 100 Type options: {"minValue":1,"maxValue":500}

Source§

readonly operation?: "create" | "get" | "getAll" | "update" | "reschedule"

Default: "create"

Source§

readonly paymentId?: string

The upcoming subscription payment ID. Choose from the list, or specify an ID using an expression. Type options: {"loadOptionsMethod":"getPayments"}

Source§

readonly planId?: string

Filter: The subscription plan ID

Source§

readonly productId?: string

The specific product/subscription ID

Source§

readonly productIds?: unknown[]

Comma-separated list of product IDs. Required if coupon_type is product. Choose from the list, or specify IDs using an expression. Default: [] Type options: {"loadOptionsMethod":"getProducts"}

Source§

readonly resource?: "user" | "product" | "payment" | "plan" | "coupon"

Default: "coupon"

Source§

readonly returnAll?: boolean

Whether to return all results or only up to a given limit

Source§

readonly updateBy?: "group" | "couponCode"

Either flat or percentage Default: "couponCode"