pub struct PayinsClient { /* private fields */ }Expand description
Client for payins operations.
Implementations§
Source§impl PayinsClient
impl PayinsClient
pub fn new(client: Client) -> Self
Sourcepub async fn list_payins(
&self,
query: Option<ListPayinsQuery>,
) -> Result<ListPayinsResponse, Error>
pub async fn list_payins( &self, query: Option<ListPayinsQuery>, ) -> Result<ListPayinsResponse, Error>
List payins with optional filtering and pagination.
Sourcepub async fn create_payin(
&self,
body: CreatePayinRequest,
) -> Result<Value, Error>
pub async fn create_payin( &self, body: CreatePayinRequest, ) -> Result<Value, Error>
Deliver stablecoin from the organisation’s provider balance to a wallet on-chain.
Sourcepub async fn get_payin_recipient(
&self,
query: Option<GetPayinRecipientQuery>,
) -> Result<GetPayinRecipientResponse, Error>
pub async fn get_payin_recipient( &self, query: Option<GetPayinRecipientQuery>, ) -> Result<GetPayinRecipientResponse, Error>
Check whether a wallet’s address is registered (and approved) as an payin recipient with the provider.
Sourcepub async fn register_payin_recipient(
&self,
body: RegisterPayinRecipientRequest,
) -> Result<RegisterPayinRecipientResponse, Error>
pub async fn register_payin_recipient( &self, body: RegisterPayinRecipientRequest, ) -> Result<RegisterPayinRecipientResponse, Error>
Register a wallet’s address as an payin recipient with the provider. The registration then needs to be approved on the provider’s side (for Circle Mint: by an administrator in the Mint Console) before payins to that wallet can be created.
Sourcepub async fn get_payin_status(&self, payin_id: String) -> Result<Value, Error>
pub async fn get_payin_status(&self, payin_id: String) -> Result<Value, Error>
Retrieve the current status of an payin by its ID.
Sourcepub async fn list_payin_balances(
&self,
query: Option<ListPayinBalancesQuery>,
) -> Result<ListPayinBalancesResponse, Error>
pub async fn list_payin_balances( &self, query: Option<ListPayinBalancesQuery>, ) -> Result<ListPayinBalancesResponse, Error>
The organisation’s available balance at the payin provider, one entry per currency — the funds payins can deliver on-chain.
Trait Implementations§
Source§impl Clone for PayinsClient
impl Clone for PayinsClient
Source§fn clone(&self) -> PayinsClient
fn clone(&self) -> PayinsClient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for PayinsClient
impl !UnwindSafe for PayinsClient
impl Freeze for PayinsClient
impl Send for PayinsClient
impl Sync for PayinsClient
impl Unpin for PayinsClient
impl UnsafeUnpin for PayinsClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more