dodo_payments 0.1.1

This is Unoffical SDK of dodopayments.com
Documentation
use super::*;
use crate::{client::Handle, operations::get_customer_wallets::GetCustomerWalletsResponse};

use std::sync::Arc;

pub struct GetCustomerWalletsBuilder {
    pub(crate) handle: Arc<Handle>,
    pub customer_id: String,
}

impl GetCustomerWalletsBuilder {
    pub fn new(handle: Arc<Handle>, customer_id: String) -> Self {
        Self {
            handle,
            customer_id,
        }
    }

    pub async fn send(self) -> Result<GetCustomerWalletsResponse, crate::errors::Error> {
        Ok(GetCustomerWallets::orchestrate(self.handle, self.customer_id).await?)
    }
}