n8n-nodes-base
Version:
Base nodes of n8n
56 lines (52 loc) • 1.24 kB
text/typescript
/**
* Chargebee Node - Version 1
* Discriminator: resource=invoice, operation=list
*/
interface Credentials {
chargebeeApi: CredentialReference;
}
/** Return the invoices */
export type ChargebeeV1InvoiceListParams = {
resource: 'invoice';
operation: 'list';
/**
* Max. amount of results to return(< 100).
* @default 10
*/
maxResults?: number | Expression<number>;
/**
* Filter for invoices
* @default {}
*/
filters?: {
/** Invoice Date
*/
date?: Array<{
/** Operation to decide where the data should be mapped to
* @default after
*/
operation?: 'is' | 'is_not' | 'after' | 'before';
/** Query date
*/
value?: string | Expression<string>;
}>;
/** Invoice Amount
*/
total?: Array<{
/** Operation to decide where the data should be mapped to
* @default gt
*/
operation?: 'gte' | 'gt' | 'is' | 'is_not' | 'lte' | 'lt';
/** Query amount
* @default 0
*/
value?: number | Expression<number>;
}>;
};
};
export type ChargebeeV1InvoiceListNode = {
type: 'n8n-nodes-base.chargebee';
version: 1;
credentials?: Credentials;
config: NodeConfig<ChargebeeV1InvoiceListParams>;
};