pub struct CreateSubaccountBodyBuilder { /* private fields */ }
Expand description
Builder for CreateSubaccountBody
.
Implementations§
Source§impl CreateSubaccountBodyBuilder
impl CreateSubaccountBodyBuilder
Sourcepub fn business_name(&mut self, value: String) -> &mut Self
pub fn business_name(&mut self, value: String) -> &mut Self
Name of business for subaccount
Sourcepub fn settlement_bank(&mut self, value: String) -> &mut Self
pub fn settlement_bank(&mut self, value: String) -> &mut Self
Bank Code for the bank. You can get the list of Bank Codes by calling the List Banks endpoint.
Sourcepub fn account_number(&mut self, value: String) -> &mut Self
pub fn account_number(&mut self, value: String) -> &mut Self
Bank Account Number
Sourcepub fn percentage_charge(&mut self, value: f32) -> &mut Self
pub fn percentage_charge(&mut self, value: f32) -> &mut Self
The default percentage charged when receiving on behalf of this subaccount
Sourcepub fn description(&mut self, value: String) -> &mut Self
pub fn description(&mut self, value: String) -> &mut Self
A description for this subaccount
Sourcepub fn primary_contact_email(&mut self, value: Option<String>) -> &mut Self
pub fn primary_contact_email(&mut self, value: Option<String>) -> &mut Self
A contact email for the subaccount
Sourcepub fn primary_contact_name(&mut self, value: Option<String>) -> &mut Self
pub fn primary_contact_name(&mut self, value: Option<String>) -> &mut Self
A name for the contact person for this subaccount
Sourcepub fn primary_contact_phone(&mut self, value: Option<String>) -> &mut Self
pub fn primary_contact_phone(&mut self, value: Option<String>) -> &mut Self
A phone number to call for this subaccount
Sourcepub fn metadata(&mut self, value: Option<String>) -> &mut Self
pub fn metadata(&mut self, value: Option<String>) -> &mut Self
Stringified JSON object. Add a custom_fields attribute which has an array of objects if you would like the fields to be added to your transaction when displayed on the dashboard. Sample: {“custom_fields”:[{“display_name”:“Cart ID”,“variable_name”: “cart_id”,“value”: “8393”}]}
Sourcepub fn build(
&self,
) -> Result<CreateSubaccountBody, CreateSubaccountBodyBuilderError>
pub fn build( &self, ) -> Result<CreateSubaccountBody, CreateSubaccountBodyBuilderError>
Trait Implementations§
Source§impl Clone for CreateSubaccountBodyBuilder
impl Clone for CreateSubaccountBodyBuilder
Source§fn clone(&self) -> CreateSubaccountBodyBuilder
fn clone(&self) -> CreateSubaccountBodyBuilder
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 CreateSubaccountBodyBuilder
impl RefUnwindSafe for CreateSubaccountBodyBuilder
impl Send for CreateSubaccountBodyBuilder
impl Sync for CreateSubaccountBodyBuilder
impl Unpin for CreateSubaccountBodyBuilder
impl UnwindSafe for CreateSubaccountBodyBuilder
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