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 Freeze for PartialDebitTransactionBodyBuilder
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