pub struct FiatClient { /* private fields */ }Expand description
Client for fiat operations
Implementations§
Source§impl FiatClient
impl FiatClient
Sourcepub fn new(client: Client, app_id: String, base_url: String) -> Self
pub fn new(client: Client, app_id: String, base_url: String) -> Self
Create a new client instance
Sourcepub async fn configure_app<'a>(
&'a self,
app_id: &'a str,
body: &'a ConfigureAppForFiatOnOffRampingBody,
) -> Result<ResponseValue<ConfigureAppForFiatOnOffRampingResponse>, Error<()>>
pub async fn configure_app<'a>( &'a self, app_id: &'a str, body: &'a ConfigureAppForFiatOnOffRampingBody, ) -> Result<ResponseValue<ConfigureAppForFiatOnOffRampingResponse>, Error<()>>
Configure app for fiat onramping and offramping
Updates the app configuration for the specified onramp provider. This is used to set up the app for fiat onramping and offramping.
Sends a POST request to /v1/apps/{app_id}/fiat
Sourcepub async fn get_status<'a>(
&'a self,
user_id: &'a str,
body: &'a UserFiatStatusesBody,
) -> Result<ResponseValue<UserFiatStatusesResponse>, Error<()>>
pub async fn get_status<'a>( &'a self, user_id: &'a str, body: &'a UserFiatStatusesBody, ) -> Result<ResponseValue<UserFiatStatusesResponse>, Error<()>>
Get a list of fiat transactions and their statuses
Returns a list of fiat transactions and their statuses
Sends a POST request to /v1/users/{user_id}/fiat/status
Sourcepub async fn get_kyc_link<'a>(
&'a self,
user_id: &'a str,
body: &'a GetUserFiatKycLinkBody,
) -> Result<ResponseValue<GetUserFiatKycLinkResponse>, Error<()>>
pub async fn get_kyc_link<'a>( &'a self, user_id: &'a str, body: &'a GetUserFiatKycLinkBody, ) -> Result<ResponseValue<GetUserFiatKycLinkResponse>, Error<()>>
Get a KYC link for a user
Returns a KYC link for a user
Sends a POST request to /v1/users/{user_id}/fiat/kyc_link
Sourcepub fn accounts(&self) -> FiatAccountsClient
pub fn accounts(&self) -> FiatAccountsClient
Access the accounts subclient
Sourcepub fn kyc(&self) -> FiatKycClient
pub fn kyc(&self) -> FiatKycClient
Access the kyc subclient
Sourcepub fn onramp(&self) -> FiatOnrampClient
pub fn onramp(&self) -> FiatOnrampClient
Access the onramp subclient
Sourcepub fn offramp(&self) -> FiatOfframpClient
pub fn offramp(&self) -> FiatOfframpClient
Access the offramp subclient
Trait Implementations§
Source§impl Clone for FiatClient
impl Clone for FiatClient
Source§fn clone(&self) -> FiatClient
fn clone(&self) -> FiatClient
Returns a duplicate of the value. Read more
1.0.0 · 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 Freeze for FiatClient
impl !RefUnwindSafe for FiatClient
impl Send for FiatClient
impl Sync for FiatClient
impl Unpin for FiatClient
impl !UnwindSafe for FiatClient
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