fixed rail & operation names
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
package model
|
||||
|
||||
import "testing"
|
||||
import (
|
||||
"github.com/tech/sendico/pkg/discovery"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestParseRail(t *testing.T) {
|
||||
cases := []struct {
|
||||
@@ -8,14 +11,14 @@ func TestParseRail(t *testing.T) {
|
||||
input string
|
||||
want Rail
|
||||
}{
|
||||
{name: "crypto", input: "crypto", want: RailCrypto},
|
||||
{name: "settlement canonical", input: "SETTLEMENT", want: RailProviderSettlement},
|
||||
{name: "settlement legacy", input: "provider_settlement", want: RailProviderSettlement},
|
||||
{name: "card canonical", input: "card", want: RailCardPayout},
|
||||
{name: "card legacy", input: "card_payout", want: RailCardPayout},
|
||||
{name: "onramp", input: "fiat_onramp", want: RailFiatOnRamp},
|
||||
{name: "offramp", input: "fiat_offramp", want: RailFiatOffRamp},
|
||||
{name: "unknown", input: "telegram", want: RailUnspecified},
|
||||
{name: "crypto", input: "crypto", want: discovery.RailCrypto},
|
||||
{name: "settlement canonical", input: "SETTLEMENT", want: discovery.RailProviderSettlement},
|
||||
{name: "settlement legacy", input: "provider_settlement", want: discovery.RailProviderSettlement},
|
||||
{name: "card canonical", input: "card", want: discovery.RailCardPayout},
|
||||
{name: "card legacy", input: "card_payout", want: discovery.RailCardPayout},
|
||||
{name: "onramp", input: "fiat_onramp", want: discovery.RailFiatOnRamp},
|
||||
{name: "offramp", input: "fiat_offramp", want: discovery.RailFiatOffRamp},
|
||||
{name: "unknown", input: "telegram", want: discovery.RailUnspecified},
|
||||
}
|
||||
|
||||
for _, tc := range cases {
|
||||
|
||||
Reference in New Issue
Block a user