Skip to content

Commit

Permalink
Add get_signed_payment endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
nieznanysprawiciel committed Sep 5, 2024
1 parent acccda4 commit 258d5e0
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 258d5e0

Please sign in to comment.