pub struct PartialDebitTransactionRequestBuilder { /* private fields */ }
Expand description
Builder for PartialDebitTransactionRequest
.
Implementations§
Source§impl PartialDebitTransactionRequestBuilder
impl PartialDebitTransactionRequestBuilder
Authorization Code
Sourcepub fn currency(&mut self, value: Currency) -> &mut Self
pub fn currency(&mut self, value: Currency) -> &mut Self
Specify the currency you want to debit. Allowed values are NGN or GHS.
Sourcepub fn amount(&mut self, value: String) -> &mut Self
pub fn amount(&mut self, value: String) -> &mut Self
Amount should be in the subunit of the supported currency
Sourcepub fn email(&mut self, value: String) -> &mut Self
pub fn email(&mut self, value: String) -> &mut Self
Customer’s email address (attached to the authorization code)
Sourcepub fn reference(&mut self, value: Option<String>) -> &mut Self
pub fn reference(&mut self, value: Option<String>) -> &mut Self
Unique transaction reference. Only -
, .
, =
and alphanumeric characters allowed.
Sourcepub fn build(
&self,
) -> Result<PartialDebitTransactionRequest, PartialDebitTransactionRequestBuilderError>
pub fn build( &self, ) -> Result<PartialDebitTransactionRequest, PartialDebitTransactionRequestBuilderError>
Trait Implementations§
Source§impl Clone for PartialDebitTransactionRequestBuilder
impl Clone for PartialDebitTransactionRequestBuilder
Source§fn clone(&self) -> PartialDebitTransactionRequestBuilder
fn clone(&self) -> PartialDebitTransactionRequestBuilder
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 PartialDebitTransactionRequestBuilder
impl RefUnwindSafe for PartialDebitTransactionRequestBuilder
impl Send for PartialDebitTransactionRequestBuilder
impl Sync for PartialDebitTransactionRequestBuilder
impl Unpin for PartialDebitTransactionRequestBuilder
impl UnwindSafe for PartialDebitTransactionRequestBuilder
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