Skip to content

Commit 1bb5009

Browse files
committed
fix: missing types from account & transactions
1 parent d6658a7 commit 1bb5009

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

src/types/account.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ export type BankData = {
5050
closingBalance: number | null
5151
/** Automatically invested balance */
5252
automaticallyInvestedBalance: number | null
53+
/** Overdraft used limit */
54+
overdraftUsedLimit: number | null
55+
/** Unarranged overdraft amount */
56+
unarrangedOverdraftAmount: number | null
5357
}
5458

5559
export type CreditData = {
@@ -69,4 +73,10 @@ export type CreditData = {
6973
minimumPayment: number | null
7074
/** Maximum credit card limit. */
7175
creditLimit: number | null
76+
/** If the credit card limit is flexible. */
77+
isLimitFlexible: boolean | null
78+
/** Credit card status. */
79+
status: 'ACTIVE' | 'BLOCKED' | 'CANCELLED' | null
80+
/** Credit card holder type. */
81+
holderType: 'MAIN' | 'ADDITIONAL' | null
7282
}

src/types/transaction.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,21 @@ export type TransactionPaymentParticipant = {
3434
routingNumber?: string
3535
}
3636

37+
export type TransactionBoletoMetadataResponse = {
38+
/** Digitable line of the boleto */
39+
digitableLine: string | null
40+
/** Barcode of the boleto */
41+
barcode: string | null
42+
/** Base amount of the boleto */
43+
baseAmount: number | null
44+
/** Penalty amount of the boleto */
45+
penaltyAmount: number | null
46+
/** Interest amount of the boleto */
47+
interestAmount: number | null
48+
/** Discount amount of the boleto */
49+
discountAmount: number | null
50+
}
51+
3752
export type TransactionPaymentData = {
3853
/** The identity of the sender of the transfer */
3954
payer?: TransactionPaymentParticipant
@@ -51,6 +66,8 @@ export type TransactionPaymentData = {
5166
referenceNumber?: string
5267
/** The payer description / motive of the transfer */
5368
reason?: string
69+
/** Additional data related to boleto transaction */
70+
boletoMetadata: TransactionBoletoMetadataResponse | null
5471
}
5572

5673
export type TransactionMerchantData = {
@@ -121,4 +138,6 @@ export type Transaction = {
121138
merchant?: TransactionMerchantData
122139
/** Category ID of the transaction */
123140
categoryId: string | null
141+
/** Operation type of the transaction */
142+
operationType: string | null
124143
}

0 commit comments

Comments
 (0)