@acceleratxr/core_sdk / TransactionService
Class: TransactionService#
Hierarchy#
-
↳ TransactionService
Index#
Constructors#
Properties#
Methods#
Constructors#
constructor#
+ new TransactionService(apiClient: ApiClient, config: Configuration): TransactionService
Overrides ServiceBase.constructor
Defined in src/services/TransactionService.ts:10
Parameters:#
Name |
Type |
|---|---|
|
|
|
Returns: TransactionService
Properties#
apiClient#
• Protected apiClient: ApiClient
Inherited from ServiceBase.apiClient
Defined in src/ServiceBase.ts:14
The API Client used when making requests to the API backend server.
config#
• Protected config: Configuration
Inherited from ServiceBase.config
Defined in src/ServiceBase.ts:19
The SDK configuration to use.
uuid#
▪ Static uuid: string = “0a5e9979-015d-4bd0-a431-904cdc175903”
Defined in src/services/TransactionService.ts:16
Methods#
count#
▸ count(query?: any): Promise<number>
Defined in src/services/TransactionService.ts:69
Returns the count of transactions
Parameters:#
Name |
Type |
|---|---|
|
any |
Returns: Promise<number>
create#
▸ create(obj: Transaction): Promise<Transaction | undefined>
Defined in src/services/TransactionService.ts:33
Create a new transaction
Parameters:#
Name |
Type |
|---|---|
|
Returns: Promise<Transaction | undefined>
createMany#
▸ createMany(objs: Transaction[]): Promise<Transaction[] | undefined>
Defined in src/services/TransactionService.ts:45
Create a list of new transactions
Parameters:#
Name |
Type |
|---|---|
|
Returns: Promise<Transaction[] | undefined>
delete#
▸ delete(id: string): Promise<void>
Defined in src/services/TransactionService.ts:114
Deletes the transaction
Parameters:#
Name |
Type |
|---|---|
|
string |
Returns: Promise<void>
findAll#
▸ findAll(query?: any): Promise<Transaction[] | undefined>
Defined in src/services/TransactionService.ts:21
Returns all transactions from the system that the user has access to
Parameters:#
Name |
Type |
|---|---|
|
any |
Returns: Promise<Transaction[] | undefined>
findById#
▸ findById(id: string): Promise<Transaction | undefined>
Defined in src/services/TransactionService.ts:88
Returns a single transaction from the system that the user has access to
Parameters:#
Name |
Type |
|---|---|
|
string |
Returns: Promise<Transaction | undefined>
truncate#
▸ truncate(query?: any): Promise<void>
Defined in src/services/TransactionService.ts:57
Removes all transactions from the datastore.
Parameters:#
Name |
Type |
|---|---|
|
any |
Returns: Promise<void>
update#
▸ update(id: string, obj: Transaction): Promise<Transaction | undefined>
Defined in src/services/TransactionService.ts:101
Updates a single transaction
Parameters:#
Name |
Type |
|---|---|
|
string |
|
Returns: Promise<Transaction | undefined>