pub struct PartialDebitTransactionBodyBuilder { /* private fields */ }
Expand description
Builder for PartialDebitTransactionBody
.
Implementations§
source§impl PartialDebitTransactionBodyBuilder
impl PartialDebitTransactionBodyBuilder
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<PartialDebitTransactionBody, PartialDebitTransactionBodyBuilderError>
pub fn build( &self ) -> Result<PartialDebitTransactionBody, PartialDebitTransactionBodyBuilderError>
Trait Implementations§
source§impl Clone for PartialDebitTransactionBodyBuilder
impl Clone for PartialDebitTransactionBodyBuilder
source§fn clone(&self) -> PartialDebitTransactionBodyBuilder
fn clone(&self) -> PartialDebitTransactionBodyBuilder
Returns a copy 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 RefUnwindSafe for PartialDebitTransactionBodyBuilder
impl Send for PartialDebitTransactionBodyBuilder
impl Sync for PartialDebitTransactionBodyBuilder
impl Unpin for PartialDebitTransactionBodyBuilder
impl UnwindSafe for PartialDebitTransactionBodyBuilder
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