Skip to content

Commit

Permalink
code refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
mayswind committed Oct 30, 2024
1 parent 5006a96 commit d174e99
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions pkg/converters/ofx/ofx_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,13 @@ import (
"github.com/mayswind/ezbookkeeping/pkg/models"
)

const ofxVersion1 = "100"
const ofxVersion2 = "200"
// oFXDeclarationVersion represents the declaration version of open financial exchange (ofx) file
type oFXDeclarationVersion string

const (
ofxVersion1 oFXDeclarationVersion = "100"
ofxVersion2 oFXDeclarationVersion = "200"
)

const ofxDefaultTimezoneOffset = "+00:00"

Expand Down Expand Up @@ -74,11 +79,11 @@ type ofxFile struct {

// ofxFileHeader represents the struct of open financial exchange (ofx) file header
type ofxFileHeader struct {
OFXVersion string
OFXDataVersion string
Security string
OldFileUid string
NewFileUid string
OFXDeclarationVersion oFXDeclarationVersion
OFXDataVersion string
Security string
OldFileUid string
NewFileUid string
}

// ofxBankMessageResponseV1 represents the struct of open financial exchange (ofx) bank message response v1
Expand Down

0 comments on commit d174e99

Please sign in to comment.