BkperApp
Extends
BkperApp
Properties
AccountType
AccountType: typeof AccountType;Inherited from
Bkper.BkperApp.AccountTypeBalanceType
BalanceType: typeof BalanceType;Inherited from
Bkper.BkperApp.BalanceTypeBotResponseType
BotResponseType: typeof BotResponseType;Inherited from
Bkper.BkperApp.BotResponseTypeDecimalSeparator
DecimalSeparator: typeof DecimalSeparator;Inherited from
Bkper.BkperApp.DecimalSeparatorMonth
Month: typeof Month;Inherited from
Bkper.BkperApp.MonthPeriodicity
Periodicity: typeof Periodicity;Inherited from
Bkper.BkperApp.PeriodicityPermission
Permission: typeof Permission;Inherited from
Bkper.BkperApp.PermissionTransactionStatus
TransactionStatus: typeof TransactionStatus;Inherited from
Bkper.BkperApp.TransactionStatusMethods
getBook()
getBook(id): Book;Gets the [[Book]] with the specified bookId from url param.
This is the main Entry Point to start interacting with the bkper-gs library.
Example:
var book = BkperApp.getBook("agtzfmJrcGVyLWhyZHITCxIGTGVkZ2VyGICAgIDggqALDA");book.record("#fuel for my Land Rover 126.50 28/01/2013");Parameters
| Parameter | Type |
|---|---|
id | string |
Returns
Book
Inherited from
Bkper.BkperApp.getBookgetBooks()
getBooks(): Book[];Gets all [[Books]] the user has access.
Returns
Book[]
Inherited from
Bkper.BkperApp.getBooksnewAmount()
newAmount(n): Amount;Create a new [[Amount]] wrapping a given number, or arbitrary-precision math calculations.
Parameters
| Parameter | Type |
|---|---|
n | string | number | Amount |
Returns
Amount
Inherited from
Bkper.BkperApp.newAmountnormalizeName()
normalizeName(name): string;Normalize a name
Parameters
| Parameter | Type |
|---|---|
name | string |
Returns
string
Inherited from
Bkper.BkperApp.normalizeNamesetAgentId()
setAgentId(agentId): void;Sets the agent ID to identify the calling agent for attribution purposes.
This ID is sent via the bkper-agent-id header with each API request,
allowing the server to attribute actions to the correct agent.
Parameters
| Parameter | Type |
|---|---|
agentId | string | null |
Returns
void
Inherited from
Bkper.BkperApp.setAgentIdsetApiKey()
setApiKey(key): void;Sets the API key to identify the agent.
API keys are intended for agent identification only, not for authentication. Learn more
See how to create your api key here.
Parameters
| Parameter | Type |
|---|---|
key | string | null |
Returns
void
Inherited from
Bkper.BkperApp.setApiKeysetOAuthTokenProvider()
setOAuthTokenProvider(tokenProvider): void;Sets the [[OAuthTokenProvider]].
If none set, the default built-in ScriptApp will be used.
Parameters
| Parameter | Type |
|---|---|
tokenProvider | OAuthTokenProvider |
Returns
void
Inherited from
Bkper.BkperApp.setOAuthTokenProvider