plaid 9.0.1

Plaid client, generated from the OpenAPI spec.
Documentation
use crate::FluentRequest;
use serde::{Serialize, Deserialize};
use httpclient::InMemoryResponseExt;
/**You should use this struct via [`PlaidClient::payment_initiation_recipient_get`].

On request success, this will return a [`PaymentInitiationRecipientGetResponse`].*/
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct PaymentInitiationRecipientGetRequest {
    pub recipient_id: String,
}
impl FluentRequest<'_, PaymentInitiationRecipientGetRequest> {}
impl<'a> ::std::future::IntoFuture
for FluentRequest<'a, PaymentInitiationRecipientGetRequest> {
    type Output = httpclient::InMemoryResult<
        crate::model::PaymentInitiationRecipientGetResponse,
    >;
    type IntoFuture = ::futures::future::BoxFuture<'a, Self::Output>;
    fn into_future(self) -> Self::IntoFuture {
        Box::pin(async move {
            let url = "/payment_initiation/recipient/get";
            let mut r = self.client.client.post(url);
            r = r.json(serde_json::json!({ "recipient_id" : self.params.recipient_id }));
            r = self.client.authenticate(r);
            let res = r.await?;
            res.json().map_err(Into::into)
        })
    }
}
impl crate::PlaidClient {
    /**Get payment recipient

Get details about a payment recipient you have previously created.

See endpoint docs at <https://plaid.com/docs/api/products/payment-initiation/#payment_initiationrecipientget>.*/
    pub fn payment_initiation_recipient_get(
        &self,
        recipient_id: &str,
    ) -> FluentRequest<'_, PaymentInitiationRecipientGetRequest> {
        FluentRequest {
            client: self,
            params: PaymentInitiationRecipientGetRequest {
                recipient_id: recipient_id.to_owned(),
            },
        }
    }
}