Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
@ffdc/api_corporate-accounts
Advanced tools
Here are some helpers for the [Accounts & Balances APIs](https://developer.fusionfabric.cloud/api/corporate-accounteinfo-me-v1-831cb09d-cc10-4772-8ed5-8a6b72ec8e01/docs#operation/getAccountsForCustomerUser) from Corporate Banking
Readme
Here are some helpers for the Accounts & Balances APIs from Corporate Banking
import {
AccountDetail,
AccountType,
AccountStatement,
} from '@ffdc/api_corporate-accounts/interfaces';
When the importing the interfaces from a frontend only application, be sure to preprend by /interfaces
.
configs/graphql-config.service.ts
import { GqlOptionsFactory, GqlModuleOptions } from '@nestjs/graphql';
import { Injectable } from '@nestjs/common';
import { CorporateAccountsModule } from '@ffdc/api_corporate-accounts';
@Injectable()
export class GqlConfigService implements GqlOptionsFactory {
createGqlOptions(): GqlModuleOptions {
const playgroundDevOptions = {
settings: {
'request.credentials': 'include',
},
};
return {
typePaths: ['./node_modules/@ffdc/api_corporate-accounts/**/*.graphql'],
include: [CorporateAccountsModule],
playground:
process.env.NODE_ENV === 'production' ? false : playgroundDevOptions,
};
}
}
app.module.ts
import { Module } from '@nestjs/common';
import { GraphQLModule } from '@nestjs/graphql';
import { CorporateAccountsModule } from '@ffdc/api_corporate-accounts';
import { GqlConfigService } from './configs/graphql-config.service';
@Module({
imports: [
CorporateAccountsModule.forRoot({}),
GraphQLModule.forRootAsync({
useClass: GqlConfigService,
}),
],
})
export class AppModule {}
query {
accounts(
limit: 10
offset: 7
fromDate: "2018-01-03"
toDate: "2020-03-05"
statementLimit: 1
) {
items {
id
number
type
currency
balances {
availableBalance
}
statement {
items {
amount
}
}
}
_meta {
itemCount
}
}
}
query {
accountsBalance(
accountType: CURRENT
equivalentCurrency: "EUR"
fromDate: "2018-01-03"
toDate: "2020-03-05"
) {
items {
id
type
currency
availableBalance
availableBalanceEquivalent
equivalentCurrency
details {
number
country
bankShortName
}
statement {
items {
amount
}
}
}
_meta {
itemCount
}
}
}
query($accountId: ID!) {
account(id: $accountId) {
id
currency
cutomerReference
}
}
query($accountId: ID!) {
accountBalance(id: $accountId) {
id
currency
availableBalance
}
}
query($accountId: ID!) {
accountStatement(
id: $accountId
fromDate: "2018-01-03"
toDate: "2020-03-05"
) {
items {
currency
balance
amount
postingDate
valueDate
transactionType
}
_meta {
itemCount
}
}
}
FAQs
Here are some helpers for the [Accounts & Balances APIs](https://developer.fusionfabric.cloud/api/corporate-accounteinfo-me-v1-831cb09d-cc10-4772-8ed5-8a6b72ec8e01/docs#operation/getAccountsForCustomerUser) from Corporate Banking
The npm package @ffdc/api_corporate-accounts receives a total of 7 weekly downloads. As such, @ffdc/api_corporate-accounts popularity was classified as not popular.
We found that @ffdc/api_corporate-accounts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.