expo-finance-kit
Version:
Native Expo module for Apple FinanceKit - Access financial data from Apple Card and other accounts
81 lines • 3.16 kB
JavaScript
/**
* Core type definitions for Expo Finance Kit
* Provides comprehensive type safety for Apple FinanceKit integration
*/
// ==================== Accounts ====================
/**
* Account types supported by FinanceKit
*/
export var AccountType;
(function (AccountType) {
AccountType["Asset"] = "asset";
AccountType["Liability"] = "liability";
})(AccountType || (AccountType = {}));
// ==================== Transactions ====================
/**
* Credit/Debit indicator for transactions
*/
export var CreditDebitIndicator;
(function (CreditDebitIndicator) {
CreditDebitIndicator["Credit"] = "credit";
CreditDebitIndicator["Debit"] = "debit";
})(CreditDebitIndicator || (CreditDebitIndicator = {}));
/**
* Transaction status types
*/
export var TransactionStatus;
(function (TransactionStatus) {
TransactionStatus["Authorized"] = "authorized";
TransactionStatus["Booked"] = "booked";
TransactionStatus["Pending"] = "pending";
TransactionStatus["Rejected"] = "rejected";
})(TransactionStatus || (TransactionStatus = {}));
/**
* Comprehensive transaction types matching Apple FinanceKit
*/
export var TransactionType;
(function (TransactionType) {
TransactionType["Adjustment"] = "adjustment";
TransactionType["ATM"] = "atm";
TransactionType["BillPayment"] = "billPayment";
TransactionType["Check"] = "check";
TransactionType["Deposit"] = "deposit";
TransactionType["DirectDebit"] = "directDebit";
TransactionType["DirectDeposit"] = "directDeposit";
TransactionType["Dividend"] = "dividend";
TransactionType["Fee"] = "fee";
TransactionType["Interest"] = "interest";
TransactionType["Loan"] = "loan";
TransactionType["PointOfSale"] = "pointOfSale";
TransactionType["Refund"] = "refund";
TransactionType["StandingOrder"] = "standingOrder";
TransactionType["Transfer"] = "transfer";
TransactionType["Unknown"] = "unknown";
TransactionType["Withdrawal"] = "withdrawal";
})(TransactionType || (TransactionType = {}));
// ==================== Balances ====================
/**
* Balance types available in FinanceKit
*/
export var BalanceType;
(function (BalanceType) {
BalanceType["Available"] = "available";
BalanceType["Booked"] = "booked";
BalanceType["AvailableAndBooked"] = "availableAndBooked";
})(BalanceType || (BalanceType = {}));
// ==================== Error Types ====================
/**
* Custom error codes for FinanceKit operations
*/
export var FinanceKitErrorCode;
(function (FinanceKitErrorCode) {
FinanceKitErrorCode["Unavailable"] = "FINANCEKIT_UNAVAILABLE";
FinanceKitErrorCode["Unauthorized"] = "FINANCEKIT_UNAUTHORIZED";
FinanceKitErrorCode["InvalidAccountId"] = "INVALID_ACCOUNT_ID";
FinanceKitErrorCode["AccountNotFound"] = "ACCOUNT_NOT_FOUND";
FinanceKitErrorCode["InvalidDateRange"] = "INVALID_DATE_RANGE";
FinanceKitErrorCode["RateLimitExceeded"] = "RATE_LIMIT_EXCEEDED";
FinanceKitErrorCode["NetworkError"] = "NETWORK_ERROR";
FinanceKitErrorCode["Unknown"] = "UNKNOWN_ERROR";
})(FinanceKitErrorCode || (FinanceKitErrorCode = {}));
//# sourceMappingURL=ExpoFinanceKit.types.js.map