Fully separated payment quotation and orchestration flows

This commit is contained in:
Stephan D
2026-02-11 17:25:44 +01:00
parent 9b8f59e05a
commit e116535926
112 changed files with 3204 additions and 8686 deletions

View File

@@ -0,0 +1,19 @@
package quotation
import (
"github.com/shopspring/decimal"
"github.com/tech/sendico/payments/quotation/internal/service/plan"
"github.com/tech/sendico/payments/storage/model"
)
func sendDirectionForRail(rail model.Rail) plan.SendDirection {
return plan.SendDirectionForRail(rail)
}
func isGatewayEligible(gw *model.GatewayInstanceDescriptor, rail model.Rail, network, currency string, action model.RailOperation, dir plan.SendDirection, amount decimal.Decimal) error {
return plan.IsGatewayEligible(gw, rail, network, currency, action, dir, amount)
}
func parseRailValue(value string) model.Rail {
return plan.ParseRailValue(value)
}