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,
|
||||
DtProfUp: ofxgo.Date(time.Unix(0, 0)),
|
||||
}
|
||||
query.Profile = append(query.Profile, &profileRequest)
|
||||
query.Prof = append(query.Prof, &profileRequest)
|
||||
|
||||
_, err = client.Request(&query)
|
||||
if err == nil {
|
||||
|
@ -30,7 +30,7 @@ const (
|
||||
SecListRq
|
||||
PresDirRq
|
||||
PresDlvRq
|
||||
ProfileRq
|
||||
ProfRq
|
||||
ImageRq
|
||||
// Responses
|
||||
SignonRs
|
||||
@ -46,7 +46,7 @@ const (
|
||||
SecListRs
|
||||
PresDirRs
|
||||
PresDlvRs
|
||||
ProfileRs
|
||||
ProfRs
|
||||
ImageRs
|
||||
)
|
||||
|
||||
@ -78,7 +78,7 @@ func (t messageType) String() string {
|
||||
return "PRESDIRMSGSRQV1"
|
||||
case PresDlvRq:
|
||||
return "PRESDLVMSGSRQV1"
|
||||
case ProfileRq:
|
||||
case ProfRq:
|
||||
return "PROFMSGSRQV1"
|
||||
case ImageRq:
|
||||
return "IMAGEMSGSRQV1"
|
||||
@ -108,7 +108,7 @@ func (t messageType) String() string {
|
||||
return "PRESDIRMSGSRSV1"
|
||||
case PresDlvRs:
|
||||
return "PRESDLVMSGSRSV1"
|
||||
case ProfileRs:
|
||||
case ProfRs:
|
||||
return "PROFMSGSRSV1"
|
||||
case ImageRs:
|
||||
return "IMAGEMSGSRSV1"
|
||||
|
@ -26,7 +26,7 @@ func (r *ProfileRequest) Valid() (bool, error) {
|
||||
}
|
||||
|
||||
func (r *ProfileRequest) Type() messageType {
|
||||
return ProfileRq
|
||||
return ProfRq
|
||||
}
|
||||
|
||||
type SignonInfo struct {
|
||||
@ -138,5 +138,5 @@ func (pr *ProfileResponse) Valid() (bool, error) {
|
||||
}
|
||||
|
||||
func (pr *ProfileResponse) Type() messageType {
|
||||
return ProfileRs
|
||||
return ProfRs
|
||||
}
|
||||
|
@ -28,7 +28,7 @@ type Request struct {
|
||||
SecList []Message //<SECLISTMSGSETV1>
|
||||
PresDir []Message //<PRESDIRMSGSETV1>
|
||||
PresDlv []Message //<PRESDLVMSGSETV1>
|
||||
Profile []Message //<PROFMSGSETV1>
|
||||
Prof []Message //<PROFMSGSETV1>
|
||||
Image []Message //<IMAGEMSGSETV1>
|
||||
|
||||
indent bool // Whether to indent the marshaled XML
|
||||
@ -139,7 +139,7 @@ NEWFILEUID:NONE
|
||||
{oq.SecList, SecListRq},
|
||||
{oq.PresDir, PresDirRq},
|
||||
{oq.PresDlv, PresDlvRq},
|
||||
{oq.Profile, ProfileRq},
|
||||
{oq.Prof, ProfRq},
|
||||
{oq.Image, ImageRq},
|
||||
}
|
||||
for _, set := range messageSets {
|
||||
|
@ -28,7 +28,7 @@ type Response struct {
|
||||
SecList []Message //<SECLISTMSGSETV1>
|
||||
PresDir []Message //<PRESDIRMSGSETV1>
|
||||
PresDlv []Message //<PRESDLVMSGSETV1>
|
||||
Profile []Message //<PROFMSGSETV1>
|
||||
Prof []Message //<PROFMSGSETV1>
|
||||
Image []Message //<IMAGEMSGSETV1>
|
||||
}
|
||||
|
||||
@ -207,7 +207,7 @@ var responseTypes = map[string]map[string]reflect.Type{
|
||||
(&SecurityList{}).Name(): reflect.TypeOf(SecurityList{})},
|
||||
PresDirRs.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{})},
|
||||
ImageRs.String(): map[string]reflect.Type{},
|
||||
}
|
||||
@ -326,7 +326,7 @@ func ParseResponse(reader io.Reader) (*Response, error) {
|
||||
SecListRs.String(): &or.SecList,
|
||||
PresDirRs.String(): &or.PresDir,
|
||||
PresDlvRs.String(): &or.PresDlv,
|
||||
ProfileRs.String(): &or.Profile,
|
||||
ProfRs.String(): &or.Prof,
|
||||
ImageRs.String(): &or.Image,
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user