-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add const values for batch header.service class code #394
Add const values for batch header.service class code #394
Conversation
Constant values for ServiceClassCode
DebitsOnly
CreditsOnly
MixedDebitsandCredits
AutomatedAccountingAdvices
Update Comments
CreditsOnly
Constants for ServiceClassCode
Allow only credits, so error should be returned for DebitsOnly
Codecov Report
@@ Coverage Diff @@
## master #394 +/- ##
=======================================
Coverage 85.17% 85.17%
=======================================
Files 107 107
Lines 6785 6785
=======================================
Hits 5779 5779
Misses 723 723
Partials 283 283
Continue to review full report at Codecov.
|
Update text
advBatchControl.go
Outdated
// ServiceClassCode ACH Mixed Debits and Credits ‘200’ | ||
// ACH Credits Only ‘220’ | ||
// ACH Debits Only ‘225' | ||
// Constant AutomatedAccountingAdvices: 280 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be commented out?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll remove!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since this in adv control, I'll have it be this
// This should be the same as BatchHeader ServiceClassCode for ADV: AutomatedAccountingAdvices.
advBatchControl.go
Outdated
@@ -60,7 +58,8 @@ func (bc *ADVBatchControl) Parse(record string) { | |||
|
|||
// 1-1 Always "8" | |||
bc.recordType = "8" | |||
// 2-4 This is the same as the "Service code" field in previous Batch Header Record | |||
// 2-4 This is the same as the "Service code" field in previous Batch Header Record - | |||
// AutomatedAccountingAdvices: 280 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this comment need to be here? Not sure what it tells me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok I'll remove. No problem!
@@ -49,12 +49,12 @@ func BenchmarkMockADVBatchControl(b *testing.B) { | |||
|
|||
// TestParseADVBatchControl parses a known Batch ControlRecord string. | |||
func testParseADVBatchControl(t testing.TB) { | |||
var line = "822500000100053200010000000000000001050000000000000000000000T-BANK 076401250000001" | |||
var line = "828000000100053200010000000000000001050000000000000000000000T-BANK 076401250000001" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Good catch!
GoDoc update
Code Comment Updates
#391