pub struct CreateSubaccountRequestBuilder { /* private fields */ }
Expand description
Builder for CreateSubaccountRequest
.
Implementations§
Source§impl CreateSubaccountRequestBuilder
impl CreateSubaccountRequestBuilder
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: String) -> &mut Self
pub fn primary_contact_email(&mut self, value: String) -> &mut Self
A contact email for the subaccount
Sourcepub fn primary_contact_name(&mut self, value: String) -> &mut Self
pub fn primary_contact_name(&mut self, value: String) -> &mut Self
A name for the contact person for this subaccount
Sourcepub fn primary_contact_phone(&mut self, value: String) -> &mut Self
pub fn primary_contact_phone(&mut self, value: String) -> &mut Self
A phone number to call for this subaccount
Sourcepub fn metadata(&mut self, value: String) -> &mut Self
pub fn metadata(&mut self, value: 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<CreateSubaccountRequest, CreateSubaccountRequestBuilderError>
pub fn build( &self, ) -> Result<CreateSubaccountRequest, CreateSubaccountRequestBuilderError>
Trait Implementations§
Source§impl Clone for CreateSubaccountRequestBuilder
impl Clone for CreateSubaccountRequestBuilder
Source§fn clone(&self) -> CreateSubaccountRequestBuilder
fn clone(&self) -> CreateSubaccountRequestBuilder
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 CreateSubaccountRequestBuilder
impl RefUnwindSafe for CreateSubaccountRequestBuilder
impl Send for CreateSubaccountRequestBuilder
impl Sync for CreateSubaccountRequestBuilder
impl Unpin for CreateSubaccountRequestBuilder
impl UnwindSafe for CreateSubaccountRequestBuilder
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