pub struct FundCashBalanceCustomer { /* private fields */ }
Expand description
Create an incoming testmode bank transfer
Implementations§
Source§impl FundCashBalanceCustomer
impl FundCashBalanceCustomer
Sourcepub fn new(
customer: impl Into<String>,
amount: impl Into<i64>,
currency: impl Into<Currency>,
) -> Self
pub fn new( customer: impl Into<String>, amount: impl Into<i64>, currency: impl Into<Currency>, ) -> Self
Construct a new FundCashBalanceCustomer
.
Sourcepub fn expand(self, expand: impl Into<Vec<String>>) -> Self
pub fn expand(self, expand: impl Into<Vec<String>>) -> Self
Specifies which fields in the response should be expanded.
Sourcepub fn reference(self, reference: impl Into<String>) -> Self
pub fn reference(self, reference: impl Into<String>) -> Self
A description of the test funding. This simulates free-text references supplied by customers when making bank transfers to their cash balance. You can use this to test how Stripe’s reconciliation algorithm applies to different user inputs.
Source§impl FundCashBalanceCustomer
impl FundCashBalanceCustomer
Sourcepub async fn send<C: StripeClient>(
&self,
client: &C,
) -> Result<<Self as StripeRequest>::Output, C::Err>
pub async fn send<C: StripeClient>( &self, client: &C, ) -> Result<<Self as StripeRequest>::Output, C::Err>
Send the request and return the deserialized response.
Sourcepub fn send_blocking<C: StripeBlockingClient>(
&self,
client: &C,
) -> Result<<Self as StripeRequest>::Output, C::Err>
pub fn send_blocking<C: StripeBlockingClient>( &self, client: &C, ) -> Result<<Self as StripeRequest>::Output, C::Err>
Send the request and return the deserialized response, blocking until completion.
Trait Implementations§
Source§impl Clone for FundCashBalanceCustomer
impl Clone for FundCashBalanceCustomer
Source§fn clone(&self) -> FundCashBalanceCustomer
fn clone(&self) -> FundCashBalanceCustomer
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 moreSource§impl Debug for FundCashBalanceCustomer
impl Debug for FundCashBalanceCustomer
Source§impl Serialize for FundCashBalanceCustomer
impl Serialize for FundCashBalanceCustomer
Source§impl StripeRequest for FundCashBalanceCustomer
impl StripeRequest for FundCashBalanceCustomer
Source§type Output = CustomerCashBalanceTransaction
type Output = CustomerCashBalanceTransaction
The data returned from the eventual API call.
Source§fn build(&self) -> RequestBuilder
fn build(&self) -> RequestBuilder
Convert the struct into library-agnostic data that can be used by compatible
clients to make API calls.
Source§fn customize(&self) -> CustomizableStripeRequest<Self::Output>
fn customize(&self) -> CustomizableStripeRequest<Self::Output>
Convert to a builder allowing per-request customization.
Auto Trait Implementations§
impl Freeze for FundCashBalanceCustomer
impl RefUnwindSafe for FundCashBalanceCustomer
impl Send for FundCashBalanceCustomer
impl Sync for FundCashBalanceCustomer
impl Unpin for FundCashBalanceCustomer
impl UnwindSafe for FundCashBalanceCustomer
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