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 additional Fields?:
| {
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;
}
readonly additional Fields?:
| {
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;
}
Source§readonly additional Fields Json?: string
readonly additional Fields Json?: string
Attributes in JSON form Type options: {"alwaysOpenEditWindow":true}
Source§readonly coupon Type?: "product" | "checkout"
readonly coupon Type?: "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"
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 discount Amount?: number
readonly discount Amount?: number
Discount amount in currency Default: 1 Type options: {"minValue":1}
Source§readonly limit?: number
readonly limit?: number
Max number of results to return Default: 100 Type options: {"minValue":1,"maxValue":500}
Source§readonly payment Id?: string
readonly payment Id?: string
The upcoming subscription payment ID. Choose from the list, or specify an ID using an expression. Type options: {"loadOptionsMethod":"getPayments"}
Source§readonly product Ids?: unknown[]
readonly product Ids?: 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"}
Default: {}