amazon_spapi/client_apis/
finances_2024_06_19.rs1use anyhow::Result;
2
3use crate::{
4 apis::fba_inventory_api::get_inventory_summaries,
5 client::{ApiEndpoint, ApiMethod, SpapiClient},
6 models::{
7 self,
8 fba_inventory::{GetInventorySummariesResponse, InventoryItem},
9 },
10};
11
12impl SpapiClient {
13 pub async fn list_transactions(
14 &self,
15 posted_after: String,
16 posted_before: Option<String>,
17 marketplace_id: Option<&str>,
18 transaction_status: Option<&str>,
19 next_token: Option<&str>,
20 ) -> Result<models::finances_2024_06_19::ListTransactionsResponse> {
21 let configuration = self.create_configuration().await?;
22 let _ = self
23 .limiter()
24 .wait("/finances/2024-06-19/listTransactions", 0.5, 10)
25 .await?;
26 let res = crate::apis::finances_2024_06_19::list_transactions(
27 &configuration,
28 posted_after,
29 posted_before,
30 marketplace_id,
31 transaction_status,
32 next_token,
33 )
34 .await;
35 Ok(res?)
36 }
37}