invoices: expose AMPRecord() method on Payload

This commit is contained in:
Conner Fromknecht committed 2021-03-03 16:26:39 -08:00
1 parent 055db6b9ac
commit 464dff09ac
5 files changed
+24 -2

No files matched your search

+5
View File
@@ -23,6 +23,7 @@ import (
type mockPayload struct {
mpp *record.MPP
amp *record.AMP
customRecords record.CustomSet
}
@@ -30,6 +31,10 @@ func (p *mockPayload) MultiPath() *record.MPP {
return p.mpp
}
func (p *mockPayload) AMPRecord() *record.AMP {
return p.amp
}
func (p *mockPayload) CustomRecords() record.CustomSet {
// This function should always return a map instance, but for mock
// configuration we do accept nil.