Skip to content

Commit

Permalink
Merge branch 'master' into scx1332/update_payments
Browse files Browse the repository at this point in the history
  • Loading branch information
scx1332 authored Sep 11, 2024
2 parents 3264a3c + b5369b7 commit 8dc4cce
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/payment/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,11 @@ impl PaymentApi {
self.client.get(&url).send().json().await
}

pub async fn get_signed_payment(&self, payment_id: &str) -> Result<Signed<Payment>> {
let url = url_format!("payments/{payment_id}");
self.client.get(&url).send().json().await
}

pub async fn driver_status(
&self,
driver: Option<String>,
Expand Down

0 comments on commit 8dc4cce

Please sign in to comment.