Fully separated payment quotation and orchestration flows
This commit is contained in:
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user