pub struct Client { /* private fields */ }Implementations§
Source§impl Client
impl Client
pub async fn authenticate(&self) -> Result<(), Error>
pub async fn authenticate_billing(&self) -> Result<(), Error>
Source§impl Client
impl Client
pub async fn billing_charge_create( &self, payload: &BillingChargeCreateRequest, ) -> Result<BillingChargeResponse, Error>
pub async fn billing_charge_one_step( &self, payload: &BillingChargeOneStepRequest, ) -> Result<BillingChargeResponse, Error>
pub async fn billing_charge_pay( &self, charge_id: i64, payload: &BillingChargePayRequest, ) -> Result<BillingChargeResponse, Error>
pub async fn billing_charge_get( &self, charge_id: i64, ) -> Result<BillingChargeDetailResponse, Error>
pub async fn billing_notification_get( &self, token: &str, ) -> Result<BillingNotificationResponse, Error>
Source§impl Client
impl Client
pub async fn carnet_create( &self, payload: &CarnetCreateRequest, ) -> Result<CarnetResponse, Error>
pub async fn carnet_get(&self, carnet_id: i64) -> Result<CarnetResponse, Error>
pub async fn carnet_list( &self, begin_date: &str, end_date: &str, ) -> Result<CarnetResponse, Error>
pub async fn carnet_update_metadata( &self, carnet_id: i64, payload: &CarnetMetadataRequest, ) -> Result<CarnetResponse, Error>
pub async fn carnet_update_parcel( &self, carnet_id: i64, parcel: i32, payload: &CarnetParcelRequest, ) -> Result<CarnetResponse, Error>
pub async fn carnet_update_parcels( &self, carnet_id: i64, payload: &CarnetParcelsRequest, ) -> Result<CarnetResponse, Error>
pub async fn carnet_cancel( &self, carnet_id: i64, ) -> Result<CarnetResponse, Error>
pub async fn carnet_cancel_parcel( &self, carnet_id: i64, parcel: i32, ) -> Result<CarnetResponse, Error>
pub async fn carnet_resend( &self, carnet_id: i64, ) -> Result<CarnetResponse, Error>
pub async fn carnet_resend_parcel( &self, carnet_id: i64, parcel: i32, ) -> Result<CarnetResponse, Error>
pub async fn carnet_add_history( &self, carnet_id: i64, payload: &CarnetHistoryRequest, ) -> Result<CarnetResponse, Error>
pub async fn carnet_settle( &self, carnet_id: i64, ) -> Result<CarnetResponse, Error>
pub async fn carnet_settle_parcel( &self, carnet_id: i64, parcel: i32, ) -> Result<CarnetResponse, Error>
Source§impl Client
impl Client
pub async fn cob_create( &self, payload: &CobPayload, ) -> Result<CobResponse, Error>
pub async fn cob_update( &self, txid: &str, payload: &CobPayload, ) -> Result<CobResponse, Error>
pub async fn cob_patch( &self, txid: &str, payload: &CobPayload, ) -> Result<CobResponse, Error>
pub async fn cob_get(&self, txid: &str) -> Result<CobResponse, Error>
pub async fn cob_list( &self, cpf: Option<&str>, status: Option<&str>, limit: Option<i32>, ) -> Result<Vec<CobResponse>, Error>
Source§impl Client
impl Client
pub async fn cobv_create( &self, payload: &CobvPayload, ) -> Result<CobvResponse, Error>
pub async fn cobv_update( &self, txid: &str, payload: &CobvPayload, ) -> Result<CobvResponse, Error>
pub async fn cobv_patch( &self, txid: &str, payload: &CobvPayload, ) -> Result<CobvResponse, Error>
pub async fn cobv_get(&self, txid: &str) -> Result<CobvResponse, Error>
pub async fn cobv_list( &self, cpf: Option<&str>, status: Option<&str>, limit: Option<i32>, ) -> Result<Vec<CobvResponse>, Error>
Source§impl Client
impl Client
pub async fn pix_send( &self, payload: &PixTransactionPayload, ) -> Result<PixTransactionResponse, Error>
pub async fn pix_get_transaction( &self, end_to_end_id: &str, ) -> Result<PixTransactionDetailResponse, Error>
Source§impl Client
impl Client
pub async fn split_create_config( &self, payload: &SplitPayload, ) -> Result<SplitConfigResponse, Error>
pub async fn split_update_config( &self, config_id: &str, payload: &SplitPayload, ) -> Result<SplitConfigResponse, Error>
pub async fn split_get_config( &self, config_id: &str, ) -> Result<SplitConfigResponse, Error>
pub async fn split_link_cob( &self, txid: &str, split_config_id: &str, ) -> Result<SplitLinkResponse, Error>
pub async fn split_get_cob( &self, txid: &str, ) -> Result<SplitConfigResponse, Error>
pub async fn split_unlink_cob( &self, txid: &str, ) -> Result<SplitLinkResponse, Error>
pub async fn split_link_cobv( &self, txid: &str, split_config_id: &str, ) -> Result<SplitLinkResponse, Error>
pub async fn split_get_cobv( &self, txid: &str, ) -> Result<SplitConfigResponse, Error>
pub async fn split_unlink_cobv( &self, txid: &str, ) -> Result<SplitLinkResponse, Error>
Source§impl Client
impl Client
pub async fn webhook_create( &self, payload: &WebhookPayload, ) -> Result<WebhookResponse, Error>
pub async fn webhook_update( &self, webhook_id: &str, payload: &WebhookPayload, ) -> Result<WebhookResponse, Error>
pub async fn webhook_get( &self, webhook_id: &str, ) -> Result<WebhookResponse, Error>
pub async fn webhook_list(&self) -> Result<WebhooksListResponse, Error>
pub async fn webhook_delete(&self, webhook_id: &str) -> Result<(), Error>
Auto Trait Implementations§
impl !Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
impl !UnwindSafe for Client
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