Bläddra i källkod

fix: add payment method to quote

thesimplekid 2 månader sedan
förälder
incheckning
12452680ac
1 ändrade filer med 3 tillägg och 2 borttagningar
  1. 3 2
      crates/cdk-sql-common/src/mint/mod.rs

+ 3 - 2
crates/cdk-sql-common/src/mint/mod.rs

@@ -760,13 +760,13 @@ VALUES (:quote_id, :amount, :timestamp);
             (
                 id, unit, amount, request, fee_reserve, state,
                 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
             (
                 :id, :unit, :amount, :request, :fee_reserve, :state,
                 :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()),
         )
         .bind("request_lookup_id_kind", quote.request_lookup_id.kind())
+        .bind("payment_method", quote.payment_method.to_string())
         .execute(&self.inner)
         .await?;