mirror of
https://github.com/aclindsa/ofxgo.git
synced 2024-10-30 05:20:05 -04:00
Rename Response/Request Profile -> Prof
This is more in line with the rest, which match their OFX message set names except for capitalization.
This commit is contained in:
parent
7834d53f9b
commit
42864dace3
@ -146,7 +146,7 @@ func tryProfile(appId, appVer, version string, noindent bool) bool {
|
|||||||
TrnUID: *uid,
|
TrnUID: *uid,
|
||||||
DtProfUp: ofxgo.Date(time.Unix(0, 0)),
|
DtProfUp: ofxgo.Date(time.Unix(0, 0)),
|
||||||
}
|
}
|
||||||
query.Profile = append(query.Profile, &profileRequest)
|
query.Prof = append(query.Prof, &profileRequest)
|
||||||
|
|
||||||
_, err = client.Request(&query)
|
_, err = client.Request(&query)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
|
@ -30,7 +30,7 @@ const (
|
|||||||
SecListRq
|
SecListRq
|
||||||
PresDirRq
|
PresDirRq
|
||||||
PresDlvRq
|
PresDlvRq
|
||||||
ProfileRq
|
ProfRq
|
||||||
ImageRq
|
ImageRq
|
||||||
// Responses
|
// Responses
|
||||||
SignonRs
|
SignonRs
|
||||||
@ -46,7 +46,7 @@ const (
|
|||||||
SecListRs
|
SecListRs
|
||||||
PresDirRs
|
PresDirRs
|
||||||
PresDlvRs
|
PresDlvRs
|
||||||
ProfileRs
|
ProfRs
|
||||||
ImageRs
|
ImageRs
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -78,7 +78,7 @@ func (t messageType) String() string {
|
|||||||
return "PRESDIRMSGSRQV1"
|
return "PRESDIRMSGSRQV1"
|
||||||
case PresDlvRq:
|
case PresDlvRq:
|
||||||
return "PRESDLVMSGSRQV1"
|
return "PRESDLVMSGSRQV1"
|
||||||
case ProfileRq:
|
case ProfRq:
|
||||||
return "PROFMSGSRQV1"
|
return "PROFMSGSRQV1"
|
||||||
case ImageRq:
|
case ImageRq:
|
||||||
return "IMAGEMSGSRQV1"
|
return "IMAGEMSGSRQV1"
|
||||||
@ -108,7 +108,7 @@ func (t messageType) String() string {
|
|||||||
return "PRESDIRMSGSRSV1"
|
return "PRESDIRMSGSRSV1"
|
||||||
case PresDlvRs:
|
case PresDlvRs:
|
||||||
return "PRESDLVMSGSRSV1"
|
return "PRESDLVMSGSRSV1"
|
||||||
case ProfileRs:
|
case ProfRs:
|
||||||
return "PROFMSGSRSV1"
|
return "PROFMSGSRSV1"
|
||||||
case ImageRs:
|
case ImageRs:
|
||||||
return "IMAGEMSGSRSV1"
|
return "IMAGEMSGSRSV1"
|
||||||
|
@ -26,7 +26,7 @@ func (r *ProfileRequest) Valid() (bool, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (r *ProfileRequest) Type() messageType {
|
func (r *ProfileRequest) Type() messageType {
|
||||||
return ProfileRq
|
return ProfRq
|
||||||
}
|
}
|
||||||
|
|
||||||
type SignonInfo struct {
|
type SignonInfo struct {
|
||||||
@ -138,5 +138,5 @@ func (pr *ProfileResponse) Valid() (bool, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (pr *ProfileResponse) Type() messageType {
|
func (pr *ProfileResponse) Type() messageType {
|
||||||
return ProfileRs
|
return ProfRs
|
||||||
}
|
}
|
||||||
|
@ -28,7 +28,7 @@ type Request struct {
|
|||||||
SecList []Message //<SECLISTMSGSETV1>
|
SecList []Message //<SECLISTMSGSETV1>
|
||||||
PresDir []Message //<PRESDIRMSGSETV1>
|
PresDir []Message //<PRESDIRMSGSETV1>
|
||||||
PresDlv []Message //<PRESDLVMSGSETV1>
|
PresDlv []Message //<PRESDLVMSGSETV1>
|
||||||
Profile []Message //<PROFMSGSETV1>
|
Prof []Message //<PROFMSGSETV1>
|
||||||
Image []Message //<IMAGEMSGSETV1>
|
Image []Message //<IMAGEMSGSETV1>
|
||||||
|
|
||||||
indent bool // Whether to indent the marshaled XML
|
indent bool // Whether to indent the marshaled XML
|
||||||
@ -139,7 +139,7 @@ NEWFILEUID:NONE
|
|||||||
{oq.SecList, SecListRq},
|
{oq.SecList, SecListRq},
|
||||||
{oq.PresDir, PresDirRq},
|
{oq.PresDir, PresDirRq},
|
||||||
{oq.PresDlv, PresDlvRq},
|
{oq.PresDlv, PresDlvRq},
|
||||||
{oq.Profile, ProfileRq},
|
{oq.Prof, ProfRq},
|
||||||
{oq.Image, ImageRq},
|
{oq.Image, ImageRq},
|
||||||
}
|
}
|
||||||
for _, set := range messageSets {
|
for _, set := range messageSets {
|
||||||
|
@ -28,7 +28,7 @@ type Response struct {
|
|||||||
SecList []Message //<SECLISTMSGSETV1>
|
SecList []Message //<SECLISTMSGSETV1>
|
||||||
PresDir []Message //<PRESDIRMSGSETV1>
|
PresDir []Message //<PRESDIRMSGSETV1>
|
||||||
PresDlv []Message //<PRESDLVMSGSETV1>
|
PresDlv []Message //<PRESDLVMSGSETV1>
|
||||||
Profile []Message //<PROFMSGSETV1>
|
Prof []Message //<PROFMSGSETV1>
|
||||||
Image []Message //<IMAGEMSGSETV1>
|
Image []Message //<IMAGEMSGSETV1>
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -207,7 +207,7 @@ var responseTypes = map[string]map[string]reflect.Type{
|
|||||||
(&SecurityList{}).Name(): reflect.TypeOf(SecurityList{})},
|
(&SecurityList{}).Name(): reflect.TypeOf(SecurityList{})},
|
||||||
PresDirRs.String(): map[string]reflect.Type{},
|
PresDirRs.String(): map[string]reflect.Type{},
|
||||||
PresDlvRs.String(): map[string]reflect.Type{},
|
PresDlvRs.String(): map[string]reflect.Type{},
|
||||||
ProfileRs.String(): map[string]reflect.Type{
|
ProfRs.String(): map[string]reflect.Type{
|
||||||
(&ProfileResponse{}).Name(): reflect.TypeOf(ProfileResponse{})},
|
(&ProfileResponse{}).Name(): reflect.TypeOf(ProfileResponse{})},
|
||||||
ImageRs.String(): map[string]reflect.Type{},
|
ImageRs.String(): map[string]reflect.Type{},
|
||||||
}
|
}
|
||||||
@ -326,7 +326,7 @@ func ParseResponse(reader io.Reader) (*Response, error) {
|
|||||||
SecListRs.String(): &or.SecList,
|
SecListRs.String(): &or.SecList,
|
||||||
PresDirRs.String(): &or.PresDir,
|
PresDirRs.String(): &or.PresDir,
|
||||||
PresDlvRs.String(): &or.PresDlv,
|
PresDlvRs.String(): &or.PresDlv,
|
||||||
ProfileRs.String(): &or.Profile,
|
ProfRs.String(): &or.Prof,
|
||||||
ImageRs.String(): &or.Image,
|
ImageRs.String(): &or.Image,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user