From 4024eec136fab9c73d77aac7ae3d3a24f2b80700 Mon Sep 17 00:00:00 2001 From: ebisrat Date: Wed, 6 Sep 2023 17:23:56 -0400 Subject: [PATCH] feat: adding blank fill const validation for php which is allowed for debt buyers and collections --- pkg/lib/base_segment.go | 4 ++-- pkg/lib/constants.go | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/lib/base_segment.go b/pkg/lib/base_segment.go index ae73728..4d40109 100644 --- a/pkg/lib/base_segment.go +++ b/pkg/lib/base_segment.go @@ -875,7 +875,7 @@ func (r *BaseSegment) ValidatePaymentHistoryProfile() error { PaymentHistoryPast120, PaymentHistoryPast150, PaymentHistoryPast180, PaymentHistoryNoPayment, PaymentHistoryNoPaymentMonth, PaymentHistoryZero, PaymentHistoryCollection, PaymentHistoryForeclosureCompleted, PaymentHistoryVoluntarySurrender, PaymentHistoryRepossession, - PaymentHistoryChargeOff, PaymentHistoryTooNew: + PaymentHistoryChargeOff, PaymentHistoryTooNew, PaymentHistoryNoHistory: continue } return utils.NewErrInvalidValueOfField("payment history profile", "base segment") @@ -1329,7 +1329,7 @@ func (r *PackedBaseSegment) ValidatePaymentHistoryProfile() error { PaymentHistoryPast120, PaymentHistoryPast150, PaymentHistoryPast180, PaymentHistoryNoPayment, PaymentHistoryNoPaymentMonth, PaymentHistoryZero, PaymentHistoryCollection, PaymentHistoryForeclosureCompleted, PaymentHistoryVoluntarySurrender, PaymentHistoryRepossession, - PaymentHistoryChargeOff: + PaymentHistoryChargeOff, PaymentHistoryNoHistory: continue } return utils.NewErrInvalidValueOfField("payment history profile", "packed base segment") diff --git a/pkg/lib/constants.go b/pkg/lib/constants.go index cd05f42..10f2b2f 100644 --- a/pkg/lib/constants.go +++ b/pkg/lib/constants.go @@ -107,6 +107,8 @@ const ( PaymentHistoryChargeOff = 'L' // consecutive payment activity, Too new to rate PaymentHistoryTooNew = 'Z' + // consecutive payment activity, No payment history available prior to this time (collections and debt payer) + PaymentHistoryNoHistory = ' ' // status code that properly identifies the current condition of the account, "DF" AccountStatusDF = "DF" // status code that properly identifies the current condition of the account, "DA"