mirror of
https://github.com/aljazceru/cdk.git
synced 2025-12-19 13:44:55 +01:00
fix: add payment method to quote
This commit is contained in:
@@ -760,13 +760,13 @@ VALUES (:quote_id, :amount, :timestamp);
|
|||||||
(
|
(
|
||||||
id, unit, amount, request, fee_reserve, state,
|
id, unit, amount, request, fee_reserve, state,
|
||||||
expiry, payment_preimage, request_lookup_id,
|
expiry, payment_preimage, request_lookup_id,
|
||||||
created_time, paid_time, options, request_lookup_id_kind
|
created_time, paid_time, options, request_lookup_id_kind, payment_method
|
||||||
)
|
)
|
||||||
VALUES
|
VALUES
|
||||||
(
|
(
|
||||||
:id, :unit, :amount, :request, :fee_reserve, :state,
|
:id, :unit, :amount, :request, :fee_reserve, :state,
|
||||||
:expiry, :payment_preimage, :request_lookup_id,
|
:expiry, :payment_preimage, :request_lookup_id,
|
||||||
:created_time, :paid_time, :options, :request_lookup_id_kind
|
:created_time, :paid_time, :options, :request_lookup_id_kind, :payment_method
|
||||||
)
|
)
|
||||||
"#,
|
"#,
|
||||||
)?
|
)?
|
||||||
@@ -786,6 +786,7 @@ VALUES (:quote_id, :amount, :timestamp);
|
|||||||
quote.options.map(|o| serde_json::to_string(&o).ok()),
|
quote.options.map(|o| serde_json::to_string(&o).ok()),
|
||||||
)
|
)
|
||||||
.bind("request_lookup_id_kind", quote.request_lookup_id.kind())
|
.bind("request_lookup_id_kind", quote.request_lookup_id.kind())
|
||||||
|
.bind("payment_method", quote.payment_method.to_string())
|
||||||
.execute(&self.inner)
|
.execute(&self.inner)
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user