FWV3Client

Struct FWV3Client 

Source
pub struct FWV3Client<'a> { /* private fields */ }

Implementations§

Source§

impl<'a> FWV3Client<'a>

Source

pub fn new( secret_key: &'a str, public_key: &'a str, encryption_key: &'a str, ) -> Self

Source

pub async fn initiate_card_charge( &self, req: CardChargeReq, ) -> Result<ResponseType<<CardChargeReq as ToFwCall<'_>>::ApiResponse>, FWaveError>

Source

pub async fn initiate_bank_transfer( &self, req: BankTransferReq, ) -> Result<ResponseType<<BankTransferReq as ToFwCall<'_>>::ApiResponse>, FWaveError>

Source

pub async fn initiate_ach_payment( &self, req: AchReq, ) -> Result<ResponseType<<AchReq as ToFwCall<'_>>::ApiResponse>, FWaveError>

Source

pub async fn verify_trans_by_id( &self, req: VerifyTransByIdReq, ) -> Result<ResponseType<<VerifyTransByIdReq as ToFwCall<'_>>::ApiResponse>, FWaveError>

Source

pub async fn verify_trans_by_txref( &self, req: VerifyTransByTxRefReq, ) -> Result<ResponseType<<VerifyTransByTxRefReq as ToFwCall<'_>>::ApiResponse>, FWaveError>

Source

pub async fn validate_charge( &self, req: ValidateChargeReq, ) -> Result<ResponseType<<ValidateChargeReq as ToFwCall<'_>>::ApiResponse>, FWaveError>

Source

pub async fn capture_preauth_charge( &self, req: CapturePreAuthChargeReq, ) -> Result<ResponseType<<CapturePreAuthChargeReq as ToFwCall<'_>>::ApiResponse>, FWaveError>

Source

pub async fn void_preauth_charge( &self, req: VoidPreAuthChargeReq, ) -> Result<ResponseType<<VoidPreAuthChargeReq as ToFwCall<'_>>::ApiResponse>, FWaveError>

Source

pub async fn refund_preauth_charge( &self, req: RefundPreAuthChargeReq, ) -> Result<ResponseType<<RefundPreAuthChargeReq as ToFwCall<'_>>::ApiResponse>, FWaveError>

Source

pub async fn get_bulk_virtual_acct_details( &self, req: BulkVirtualAcctDetailsReq, ) -> Result<ResponseType<<BulkVirtualAcctDetailsReq as ToFwCall<'_>>::ApiResponse>, FWaveError>

Source

pub async fn create_virtual_acct_no( &self, req: VirtualAcctCreationReq, ) -> Result<ResponseType<<VirtualAcctCreationReq as ToFwCall<'_>>::ApiResponse>, FWaveError>

Source

pub async fn create_bulk_virtual_acct_no( &self, req: VirtualAcctBulkCreationReq, ) -> Result<ResponseType<<VirtualAcctBulkCreationReq as ToFwCall<'_>>::ApiResponse>, FWaveError>

Source

pub async fn fetch_refunded_transactions( &self, req: FetchRefundedTransReq, ) -> Result<ResponseType<<FetchRefundedTransReq as ToFwCall<'_>>::ApiResponse>, FWaveError>

Source

pub async fn fetch_multi_refunded_transactions( &self, req: FetchMultiRefundedTransReq, ) -> Result<ResponseType<<FetchMultiRefundedTransReq as ToFwCall<'_>>::ApiResponse>, FWaveError>

Source

pub async fn get_transaction( &self, req: GetTransactionsReq, ) -> Result<ResponseType<<GetTransactionsReq as ToFwCall<'_>>::ApiResponse>, FWaveError>

Source

pub async fn query_transaction_fees( &self, req: QueryTransFeesReq, ) -> Result<ResponseType<<QueryTransFeesReq as ToFwCall<'_>>::ApiResponse>, FWaveError>

Source

pub async fn refund_transaction( &self, req: RefundTransactionReq, ) -> Result<ResponseType<<RefundTransactionReq as ToFwCall<'_>>::ApiResponse>, FWaveError>

Source

pub async fn resend_failed_webhook( &self, req: ResendFailedWebhookReq, ) -> Result<ResponseType<<ResendFailedWebhookReq as ToFwCall<'_>>::ApiResponse>, FWaveError>

Source

pub async fn view_trans_imeline( &self, req: ViewTransTimelineReq, ) -> Result<ResponseType<<ViewTransTimelineReq as ToFwCall<'_>>::ApiResponse>, FWaveError>

Source

pub async fn create_payment_plan( &self, req: CreatePlanReq, ) -> Result<ResponseType<<CreatePlanReq as ToFwCall<'_>>::ApiResponse>, FWaveError>

Source

pub async fn get_payment_plan( &self, req: GetPlanReq, ) -> Result<ResponseType<<GetPlanReq as ToFwCall<'_>>::ApiResponse>, FWaveError>

Source

pub async fn get_payment_plans( &self, req: GetPlansReq, ) -> Result<ResponseType<<GetPlansReq as ToFwCall<'_>>::ApiResponse>, FWaveError>

Source

pub async fn cancel_payment_plan( &self, req: CancelPlanReq, ) -> Result<ResponseType<<CancelPlanReq as ToFwCall<'_>>::ApiResponse>, FWaveError>

Source

pub async fn update_payment_plan( &self, req: UpdatePlanReq, ) -> Result<ResponseType<<UpdatePlanReq as ToFwCall<'_>>::ApiResponse>, FWaveError>

Auto Trait Implementations§

§

impl<'a> Freeze for FWV3Client<'a>

§

impl<'a> !RefUnwindSafe for FWV3Client<'a>

§

impl<'a> Send for FWV3Client<'a>

§

impl<'a> Sync for FWV3Client<'a>

§

impl<'a> Unpin for FWV3Client<'a>

§

impl<'a> !UnwindSafe for FWV3Client<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more