51 lines
1.7 KiB
Go
51 lines
1.7 KiB
Go
package srequest
|
|
|
|
// PaymentKind mirrors the orchestrator payment kinds without importing generated proto types.
|
|
// Strings keep JSON readable; conversion helpers map these to proto enums.
|
|
type PaymentKind string
|
|
|
|
const (
|
|
PaymentKindUnspecified PaymentKind = "unspecified"
|
|
PaymentKindPayout PaymentKind = "payout"
|
|
PaymentKindInternalTransfer PaymentKind = "internal_transfer"
|
|
PaymentKindFxConversion PaymentKind = "fx_conversion"
|
|
)
|
|
|
|
// SettlementMode matches orchestrator settlement behavior.
|
|
type SettlementMode string
|
|
|
|
const (
|
|
SettlementModeUnspecified SettlementMode = "unspecified"
|
|
SettlementModeFixSource SettlementMode = "fix_source"
|
|
SettlementModeFixReceived SettlementMode = "fix_received"
|
|
)
|
|
|
|
// FXSide mirrors the common FX side enum.
|
|
type FXSide string
|
|
|
|
const (
|
|
FXSideUnspecified FXSide = "unspecified"
|
|
FXSideBuyBaseSellQuote FXSide = "buy_base_sell_quote"
|
|
FXSideSellBaseBuyQuote FXSide = "sell_base_buy_quote"
|
|
)
|
|
|
|
// ChainNetwork mirrors the chain network enum used by managed wallets.
|
|
type ChainNetwork string
|
|
|
|
const (
|
|
ChainNetworkUnspecified ChainNetwork = "unspecified"
|
|
ChainNetworkEthereumMainnet ChainNetwork = "ethereum_mainnet"
|
|
ChainNetworkArbitrumOne ChainNetwork = "arbitrum_one"
|
|
ChainNetworkOtherEVM ChainNetwork = "other_evm"
|
|
)
|
|
|
|
// InsufficientNetPolicy mirrors the fee engine policy override.
|
|
type InsufficientNetPolicy string
|
|
|
|
const (
|
|
InsufficientNetPolicyUnspecified InsufficientNetPolicy = "unspecified"
|
|
InsufficientNetPolicyBlockPosting InsufficientNetPolicy = "block_posting"
|
|
InsufficientNetPolicySweepOrgCash InsufficientNetPolicy = "sweep_org_cash"
|
|
InsufficientNetPolicyInvoiceLater InsufficientNetPolicy = "invoice_later"
|
|
)
|