xero-node
Version:
Xero NodeJS OAuth 2.0 client for xero-node
57 lines (56 loc) • 1.92 kB
TypeScript
import { CountryCode } from '././countryCode';
import { CurrencyCode } from '././currencyCode';
export declare class FeedConnection {
/**
* GUID used to identify the Account.
*/
'id'?: string;
/**
* This account identifier is generated by the financial institute (FI). This must be unique for your financial institute.
*/
'accountToken'?: string;
/**
* String(40) when AccountType is BANK String(4) when AccountType is CREDITCARD The Account Number is used to match the feed to a Xero Bank Account. The API will create a new Xero Bank Account if a match to an existing Xero Bank Account is not found. Only the last 4 digits must be supplied for Credit Card numbers. Must be included if AccountId is not specified.
*/
'accountNumber'?: string;
/**
* The Account Name will be used for the creation of a new Xero Bank Account if a matching Xero Bank Account is not found.
*/
'accountName'?: string;
/**
* Xero identifier for a bank account in Xero. Must be included if AccountNumber is not specified.
*/
'accountId'?: string;
/**
* High level bank account type - BANK CREDITCARD BANK encompasses all bank account types other than credit cards.
*/
'accountType'?: FeedConnection.AccountTypeEnum;
'currency'?: CurrencyCode;
'country'?: CountryCode;
/**
* the current status of the feed connection
*/
'status'?: FeedConnection.StatusEnum;
'error'?: Error;
static discriminator: string | undefined;
static attributeTypeMap: Array<{
name: string;
baseName: string;
type: string;
}>;
static getAttributeTypeMap(): {
name: string;
baseName: string;
type: string;
}[];
}
export declare namespace FeedConnection {
enum AccountTypeEnum {
BANK,
CREDITCARD
}
enum StatusEnum {
PENDING,
REJECTED
}
}