1
0
mirror of https://github.com/aclindsa/ofxgo.git synced 2025-06-20 16:08:38 -04:00

Add BasicClient, update Client to be interface

This paves the way for more easily implementing different clients for
different financial institutions
This commit is contained in:
2018-10-02 20:55:25 -04:00
parent 88e5521348
commit 94a77ac754
11 changed files with 45 additions and 31 deletions

View File

@ -126,7 +126,7 @@ func tryProfile(appID, appVer, version string, noindent bool) bool {
fmt.Println("Error creating new OfxVersion enum:", err)
os.Exit(1)
}
var client = ofxgo.Client{
var client = ofxgo.BasicClient{
AppID: appID,
AppVer: appVer,
SpecVersion: ver,

View File

@ -6,13 +6,13 @@ import (
"os"
)
func newRequest() (*ofxgo.Client, *ofxgo.Request) {
func newRequest() (ofxgo.Client, *ofxgo.Request) {
ver, err := ofxgo.NewOfxVersion(ofxVersion)
if err != nil {
fmt.Println("Error creating new OfxVersion enum:", err)
os.Exit(1)
}
var client = ofxgo.Client{
var client = ofxgo.BasicClient{
AppID: appID,
AppVer: appVer,
SpecVersion: ver,