dodopayments_rust 2.2.2

Rust SDK for Dodo Payments API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::{
    client::DodoPaymentsClient, models::GetPayoutsResponseList, request_builder::RequestBuilder,
};
use reqwest::Method;

pub struct PayoutApi<'client> {
    pub(crate) client: &'client DodoPaymentsClient,
}

impl<'client> PayoutApi<'client> {
    pub fn new(client: &'client DodoPaymentsClient) -> Self {
        Self { client }
    }

    pub fn list(&self) -> RequestBuilder<'client, GetPayoutsResponseList, (), ()> {
        RequestBuilder::new(self.client, Method::GET, "/payouts")
    }
}