double-sided quotation + fixed tests

This commit is contained in:
Stephan D
2025-12-09 17:45:29 +01:00
parent ce59cb1b26
commit 32653e11fc
34 changed files with 358 additions and 86 deletions

View File

@@ -2,14 +2,14 @@ package srequest
import orchestratorv1 "github.com/tech/sendico/pkg/proto/payments/orchestrator/v1"
type QuotePaymentPayload struct {
type QuotePayment struct {
IdempotencyKey string `json:"idempotencyKey"`
Intent *orchestratorv1.PaymentIntent `json:"intent"`
PreviewOnly bool `json:"previewOnly"`
Metadata map[string]string `json:"metadata,omitempty"`
}
type InitiatePaymentPayload struct {
type InitiatePayment struct {
IdempotencyKey string `json:"idempotencyKey"`
Intent *orchestratorv1.PaymentIntent `json:"intent"`
Metadata map[string]string `json:"metadata,omitempty"`