Last active
February 2, 2022 12:42
-
-
Save gauravkrp/af47e35458b23389902e28fa5eee5ec8 to your computer and use it in GitHub Desktop.
all enums and constants being used in AA APIs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Lists out all enums and constants being used in AA APIs | |
* Taken from RBI AA Specs at https://swagger-ui.rebit.org.in/?url=https://specifications.rebit.org.in/api_specifications/account_aggregator/AA_1_1_3.yaml#/ | |
* Author: Gaurav | https://github.com/gauravkrp | |
* Last Updated on : 02 Oct, 2021 | |
*/ | |
export const CONSENT_MODE = { | |
VIEW: 'VIEW', | |
STORE: 'STORE', | |
QUERY: 'QUERY', | |
STREAM: 'STREAM' | |
} | |
export const FETCH_TYPE = { | |
ONETIME: 'ONETIME', | |
PERIODIC: 'PERIODIC' | |
} | |
export const CONSENT_TYPE = { | |
PROFILE: 'PROFILE', | |
SUMMARY: 'SUMMARY', | |
TRANSACTIONS: 'TRANSACTIONS' | |
} | |
export const FI_TYPE = { | |
DEPOSIT: 'DEPOSIT', | |
TERM_DEPOSIT: 'TERM_DEPOSIT', | |
RECURRING_DEPOSIT: 'RECURRING_DEPOSIT', | |
CREDIT_CARD: 'CREDIT_CARD', | |
CERTIFICATES_OF_DEPOSIT: 'CD', | |
SYSTEM_INVESTMENT_PLAN: 'SIP', | |
COMMERCIAL_PAPER: 'CP', | |
GOVT_SECURITIES: 'GOVT_SECURITIES', | |
EQUITIES: 'EQUITIES', | |
BONDS: 'BONDS', | |
DEBENTURES: 'DEBENTURES', | |
MUTUAL_FUNDS: 'MUTUAL_FUNDS', | |
EXCHANGE_TRADED_FUNDS: 'ETF', | |
EMPLOYEE_PROVIDENT_FUND: 'EPF', | |
PUBLIC_PROVIDENT_FUND: 'PPF', | |
INDIAN_REPOSITORY_RECEIPTS: 'IDR', | |
COLLECTIVE_INVESTMENT_SCHEMES: 'CIS', | |
ALTERNATIVE_INVESTMENT_FUNDS: 'AIF', | |
INSURANCE_POLICIES: 'INSURANCE_POLICIES', | |
UNIT_LINKED_INSURANCE_PLANS: 'ULIP', | |
NATIONAL_PENSION_SYSTEM: 'NPS', | |
INFRASTRUCTURE_INVESTMENT_TRUSTS: 'INVIT', | |
REAL_ESTATE_INVESTMENT_TRUSTS: 'REIT', | |
OTHER: 'OTHER' | |
} | |
export const DATA_LIFE_UNIT = { | |
MONTH: 'MONTH', | |
YEAR: 'YEAR', | |
DAY: 'DAY', | |
INF: 'INF' | |
} | |
export const FREQUENCY_UNIT = { | |
HOUR: 'HOUR', | |
MONTH: 'MONTH', | |
YEAR: 'YEAR', | |
DAY: 'DAY', | |
INF: 'INF' | |
} | |
export const DATA_FILTER_TYPE = { | |
TRANSACTIONTYPE: 'TRANSACTIONTYPE', | |
TRANSACTIONAMOUNT: 'TRANSACTIONAMOUNT' | |
} | |
export const DATA_FILTER_OPERATOR = { | |
EQUAL_TO: '=', | |
NOT_EQUAL_TO: '!= ', | |
GREATER_THAN: '>', | |
LESS_THAN: '<', | |
GREATER_THAN_EQUAL_TO: '>=', | |
LESS_THAN_EQUAL_TO: '<=', | |
} | |
export const PURPOSE_CODE = { | |
101 : { | |
code: '101', | |
description: 'Wealth management service', | |
refUri: 'https://api.rebit.org.in/aa/purpose/101.xml', | |
category: { | |
code: '01', | |
name: 'Personal Finance' | |
} | |
}, | |
102: { | |
code: '102', | |
description: 'Customer spending patterns, budget or other reportings', | |
refUri: 'https://api.rebit.org.in/aa/purpose/101.xml', | |
category: { | |
code: '01', | |
name: 'Personal Finance' | |
} | |
}, | |
103: { | |
code: '103', | |
description: 'Aggregated statement', | |
refUri: 'https://api.rebit.org.in/aa/purpose/101.xml', | |
category: { | |
code: '02', | |
name: 'Financial Reporting' | |
} | |
}, | |
104: { | |
code: '104', | |
description: 'Explicit consent for monitoring of the accounts', | |
refUri: 'https://api.rebit.org.in/aa/purpose/101.xml', | |
category: { | |
code: '03', | |
name: 'Account Query and Monitoring' | |
} | |
}, | |
105: { | |
code: '105', | |
description: 'Explicit one-time consent for the accounts', | |
refUri: 'https://api.rebit.org.in/aa/purpose/101.xml', | |
category: { | |
code: '03', | |
name: 'Account Query and Monitoring' | |
} | |
} | |
} | |
export const CONSENT_ARTEFACT_STATUS = { | |
READY: 'READY', | |
FAILED: 'FAILED', | |
PENDING: 'PENDING' | |
} | |
export const SIGNED_CONSENT_STATUS = { | |
ACTIVE: 'ACTIVE', | |
PAUSED: 'PAUSED', | |
REVOKED: 'REVOKED', | |
EXPIRED: 'EXPIRED' | |
} | |
export const DATA_CONSUMER_TYPE = { | |
FIU: 'FIU', | |
AA: 'AA', | |
} | |
export const DATA_PROVIDE_TYPE = { | |
FIP: 'FIP', | |
AA: 'AA', | |
} | |
export const CONSENT_NOTIFICATION_STATUS = { | |
ACTIVE: 'ACTIVE', | |
REVOKED: 'REVOKED', | |
PAUSED: 'PAUSED', | |
REJECTED: 'REJECTED' | |
} | |
export const FI_NOTIFICATION_DATA_STATUS = { | |
READY: 'READY', | |
DENIED: 'DENIED', | |
PENDING: 'PENDING', | |
DELIVERED: 'DELIVERED', | |
TIMEOUT: 'TIMEOUT' | |
} | |
export const FI_NOTIFICATION_SESSION_STATUS = { | |
ACTIVE: 'ACTIVE', | |
COMPLETED: 'COMPLETED', | |
EXPIRED: 'EXPIRED', | |
FAILED: 'FAILED' | |
} | |
export const HEART_BEAT_STATUS = { | |
UP: 'UP', | |
DOWN: 'DOWN' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment