pub struct ValidateCustomerRequestBuilder { /* private fields */ }
Expand description
Builder for ValidateCustomerRequest
.
Implementations§
Source§impl ValidateCustomerRequestBuilder
impl ValidateCustomerRequestBuilder
Sourcepub fn first_name(&mut self, value: String) -> &mut Self
pub fn first_name(&mut self, value: String) -> &mut Self
Customer’s first name
Sourcepub fn middle_name(&mut self, value: String) -> &mut Self
pub fn middle_name(&mut self, value: String) -> &mut Self
Customer’s middle name
Sourcepub fn identification_type(&mut self, value: IdentificationType) -> &mut Self
pub fn identification_type(&mut self, value: IdentificationType) -> &mut Self
Predefined types of identification. Only bank_code
is supported at the moment
Sourcepub fn country(&mut self, value: String) -> &mut Self
pub fn country(&mut self, value: String) -> &mut Self
2 letter country code of identification issuer
Sourcepub fn account_number(&mut self, value: String) -> &mut Self
pub fn account_number(&mut self, value: String) -> &mut Self
Customer’s bank account number. (required if identification_type
is bank_account
.
Sourcepub fn build(
&self,
) -> Result<ValidateCustomerRequest, ValidateCustomerRequestBuilderError>
pub fn build( &self, ) -> Result<ValidateCustomerRequest, ValidateCustomerRequestBuilderError>
Trait Implementations§
Source§impl Clone for ValidateCustomerRequestBuilder
impl Clone for ValidateCustomerRequestBuilder
Source§fn clone(&self) -> ValidateCustomerRequestBuilder
fn clone(&self) -> ValidateCustomerRequestBuilder
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 ValidateCustomerRequestBuilder
impl RefUnwindSafe for ValidateCustomerRequestBuilder
impl Send for ValidateCustomerRequestBuilder
impl Sync for ValidateCustomerRequestBuilder
impl Unpin for ValidateCustomerRequestBuilder
impl UnwindSafe for ValidateCustomerRequestBuilder
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