outbox for gateways

This commit is contained in:
Stephan D
2026-02-18 01:35:28 +01:00
parent 974caf286c
commit 69531cee73
221 changed files with 12172 additions and 782 deletions

View File

@@ -0,0 +1,11 @@
package shared
import "github.com/tech/sendico/pkg/model/account_role"
func CloneAccountRole(role *account_role.AccountRole) *account_role.AccountRole {
if role == nil {
return nil
}
cloned := *role
return &cloned
}

View File

@@ -0,0 +1,20 @@
package shared
import (
"strings"
"github.com/tech/sendico/payments/storage/model"
)
func NormalizeFundingMode(mode model.FundingMode) model.FundingMode {
switch strings.ToLower(strings.TrimSpace(string(mode))) {
case string(model.FundingModeNone):
return model.FundingModeNone
case string(model.FundingModeBalanceReserve):
return model.FundingModeBalanceReserve
case string(model.FundingModeDepositObserved):
return model.FundingModeDepositObserved
default:
return model.FundingModeUnspecified
}
}