mirror of
https://github.com/aclindsa/ofxgo.git
synced 2024-12-26 06:53:21 -05:00
Add transaction UID validation to all messages
This commit is contained in:
parent
8712be5a9d
commit
bc541d881d
@ -29,6 +29,9 @@ func (r *CCStatementRequest) Name() string {
|
||||
// Valid returns (true, nil) if this struct would be valid OFX if marshalled
|
||||
// into XML/SGML
|
||||
func (r *CCStatementRequest) Valid(version ofxVersion) (bool, error) {
|
||||
if ok, err := r.TrnUID.Valid(); !ok {
|
||||
return false, err
|
||||
}
|
||||
// TODO implement
|
||||
return true, nil
|
||||
}
|
||||
@ -74,6 +77,9 @@ func (sr *CCStatementResponse) Name() string {
|
||||
|
||||
// Valid returns (true, nil) if this struct was valid OFX when unmarshalled
|
||||
func (sr *CCStatementResponse) Valid(version ofxVersion) (bool, error) {
|
||||
if ok, err := sr.TrnUID.Valid(); !ok {
|
||||
return false, err
|
||||
}
|
||||
//TODO implement
|
||||
return true, nil
|
||||
}
|
||||
|
@ -35,6 +35,9 @@ func (r *InvStatementRequest) Name() string {
|
||||
// Valid returns (true, nil) if this struct would be valid OFX if marshalled
|
||||
// into XML/SGML
|
||||
func (r *InvStatementRequest) Valid(version ofxVersion) (bool, error) {
|
||||
if ok, err := r.TrnUID.Valid(); !ok {
|
||||
return false, err
|
||||
}
|
||||
// TODO implement
|
||||
return true, nil
|
||||
}
|
||||
@ -1181,6 +1184,9 @@ func (sr *InvStatementResponse) Name() string {
|
||||
|
||||
// Valid returns (true, nil) if this struct was valid OFX when unmarshalled
|
||||
func (sr *InvStatementResponse) Valid(version ofxVersion) (bool, error) {
|
||||
if ok, err := sr.TrnUID.Valid(); !ok {
|
||||
return false, err
|
||||
}
|
||||
//TODO implement
|
||||
return true, nil
|
||||
}
|
||||
|
@ -26,6 +26,9 @@ func (r *ProfileRequest) Name() string {
|
||||
// Valid returns (true, nil) if this struct would be valid OFX if marshalled
|
||||
// into XML/SGML
|
||||
func (r *ProfileRequest) Valid(version ofxVersion) (bool, error) {
|
||||
if ok, err := r.TrnUID.Valid(); !ok {
|
||||
return false, err
|
||||
}
|
||||
// TODO implement
|
||||
r.ClientRouting = "NONE"
|
||||
return true, nil
|
||||
@ -159,6 +162,9 @@ func (pr *ProfileResponse) Name() string {
|
||||
|
||||
// Valid returns (true, nil) if this struct was valid OFX when unmarshalled
|
||||
func (pr *ProfileResponse) Valid(version ofxVersion) (bool, error) {
|
||||
if ok, err := pr.TrnUID.Valid(); !ok {
|
||||
return false, err
|
||||
}
|
||||
//TODO implement
|
||||
return true, nil
|
||||
}
|
||||
|
@ -43,6 +43,9 @@ func (r *SecListRequest) Name() string {
|
||||
// Valid returns (true, nil) if this struct would be valid OFX if marshalled
|
||||
// into XML/SGML
|
||||
func (r *SecListRequest) Valid(version ofxVersion) (bool, error) {
|
||||
if ok, err := r.TrnUID.Valid(); !ok {
|
||||
return false, err
|
||||
}
|
||||
// TODO implement
|
||||
return true, nil
|
||||
}
|
||||
@ -74,6 +77,9 @@ func (r *SecListResponse) Name() string {
|
||||
|
||||
// Valid returns (true, nil) if this struct was valid OFX when unmarshalled
|
||||
func (r *SecListResponse) Valid(version ofxVersion) (bool, error) {
|
||||
if ok, err := r.TrnUID.Valid(); !ok {
|
||||
return false, err
|
||||
}
|
||||
// TODO implement
|
||||
return true, nil
|
||||
}
|
||||
|
@ -24,6 +24,9 @@ func (r *AcctInfoRequest) Name() string {
|
||||
// Valid returns (true, nil) if this struct would be valid OFX if marshalled
|
||||
// into XML/SGML
|
||||
func (r *AcctInfoRequest) Valid(version ofxVersion) (bool, error) {
|
||||
if ok, err := r.TrnUID.Valid(); !ok {
|
||||
return false, err
|
||||
}
|
||||
// TODO implement
|
||||
return true, nil
|
||||
}
|
||||
@ -149,6 +152,9 @@ func (air *AcctInfoResponse) Name() string {
|
||||
|
||||
// Valid returns (true, nil) if this struct was valid OFX when unmarshalled
|
||||
func (air *AcctInfoResponse) Valid(version ofxVersion) (bool, error) {
|
||||
if ok, err := air.TrnUID.Valid(); !ok {
|
||||
return false, err
|
||||
}
|
||||
//TODO implement
|
||||
return true, nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user