mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-20 01:34:24 +08:00
change type name
This commit is contained in:
@@ -144,8 +144,8 @@ type ofxCreditCardTransactionList struct {
|
|||||||
StatementTransactions []*ofxCreditCardStatementTransaction `xml:"STMTTRN"`
|
StatementTransactions []*ofxCreditCardStatementTransaction `xml:"STMTTRN"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ofxBasicStatementTransaction represents the struct of open financial exchange (ofx) basic statement transaction
|
// ofxBaseStatementTransaction represents the struct of open financial exchange (ofx) base statement transaction
|
||||||
type ofxBasicStatementTransaction struct {
|
type ofxBaseStatementTransaction struct {
|
||||||
TransactionId string `xml:"FITID"`
|
TransactionId string `xml:"FITID"`
|
||||||
TransactionType ofxTransactionType `xml:"TRNTYPE"`
|
TransactionType ofxTransactionType `xml:"TRNTYPE"`
|
||||||
PostedDate string `xml:"DTPOSTED"`
|
PostedDate string `xml:"DTPOSTED"`
|
||||||
@@ -159,13 +159,13 @@ type ofxBasicStatementTransaction struct {
|
|||||||
|
|
||||||
// ofxBankStatementTransaction represents the struct of open financial exchange (ofx) bank statement transaction
|
// ofxBankStatementTransaction represents the struct of open financial exchange (ofx) bank statement transaction
|
||||||
type ofxBankStatementTransaction struct {
|
type ofxBankStatementTransaction struct {
|
||||||
ofxBasicStatementTransaction
|
ofxBaseStatementTransaction
|
||||||
AccountTo *ofxCreditCardAccount `xml:"BANKACCTTO"`
|
AccountTo *ofxBankAccount `xml:"BANKACCTTO"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ofxCreditCardStatementTransaction represents the struct of open financial exchange (ofx) credit card statement transaction
|
// ofxCreditCardStatementTransaction represents the struct of open financial exchange (ofx) credit card statement transaction
|
||||||
type ofxCreditCardStatementTransaction struct {
|
type ofxCreditCardStatementTransaction struct {
|
||||||
ofxBasicStatementTransaction
|
ofxBaseStatementTransaction
|
||||||
AccountTo *ofxCreditCardAccount `xml:"CCACCTTO"`
|
AccountTo *ofxCreditCardAccount `xml:"CCACCTTO"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ var ofxTransactionSupportedColumns = map[datatable.TransactionDataTableColumn]bo
|
|||||||
|
|
||||||
// ofxTransactionData defines the structure of open financial exchange (ofx) transaction data
|
// ofxTransactionData defines the structure of open financial exchange (ofx) transaction data
|
||||||
type ofxTransactionData struct {
|
type ofxTransactionData struct {
|
||||||
ofxBasicStatementTransaction
|
ofxBaseStatementTransaction
|
||||||
DefaultCurrency string
|
DefaultCurrency string
|
||||||
FromAccountId string
|
FromAccountId string
|
||||||
ToAccountId string
|
ToAccountId string
|
||||||
@@ -243,10 +243,10 @@ func createNewOFXTransactionDataTable(file *ofxFile) (*ofxTransactionDataTable,
|
|||||||
}
|
}
|
||||||
|
|
||||||
allData = append(allData, &ofxTransactionData{
|
allData = append(allData, &ofxTransactionData{
|
||||||
ofxBasicStatementTransaction: bankTransactions[i].ofxBasicStatementTransaction,
|
ofxBaseStatementTransaction: bankTransactions[i].ofxBaseStatementTransaction,
|
||||||
DefaultCurrency: statement.DefaultCurrency,
|
DefaultCurrency: statement.DefaultCurrency,
|
||||||
FromAccountId: fromAccountId,
|
FromAccountId: fromAccountId,
|
||||||
ToAccountId: toAccountId,
|
ToAccountId: toAccountId,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -271,10 +271,10 @@ func createNewOFXTransactionDataTable(file *ofxFile) (*ofxTransactionDataTable,
|
|||||||
}
|
}
|
||||||
|
|
||||||
allData = append(allData, &ofxTransactionData{
|
allData = append(allData, &ofxTransactionData{
|
||||||
ofxBasicStatementTransaction: bankTransactions[i].ofxBasicStatementTransaction,
|
ofxBaseStatementTransaction: bankTransactions[i].ofxBaseStatementTransaction,
|
||||||
DefaultCurrency: statement.DefaultCurrency,
|
DefaultCurrency: statement.DefaultCurrency,
|
||||||
FromAccountId: fromAccountId,
|
FromAccountId: fromAccountId,
|
||||||
ToAccountId: toAccountId,
|
ToAccountId: toAccountId,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user