pub struct ApplyCustomerBalancePaymentIntent { /* private fields */ }
Expand description
Manually reconcile the remaining amount for a customer_balance
PaymentIntent.
Implementations§
Source§impl ApplyCustomerBalancePaymentIntent
impl ApplyCustomerBalancePaymentIntent
Sourcepub fn new(intent: impl Into<PaymentIntentId>) -> Self
pub fn new(intent: impl Into<PaymentIntentId>) -> Self
Construct a new ApplyCustomerBalancePaymentIntent
.
Sourcepub fn amount(self, amount: impl Into<i64>) -> Self
pub fn amount(self, amount: impl Into<i64>) -> Self
Amount that you intend to apply to this PaymentIntent from the customer’s cash balance. If the PaymentIntent was created by an Invoice, the full amount of the PaymentIntent is applied regardless of this parameter.
A positive integer representing how much to charge in the smallest currency unit (for example, 100 cents to charge 1 USD or 100 to charge 100 JPY, a zero-decimal currency). The maximum amount is the amount of the PaymentIntent.
When you omit the amount, it defaults to the remaining amount requested on the PaymentIntent.
Sourcepub fn currency(self, currency: impl Into<Currency>) -> Self
pub fn currency(self, currency: impl Into<Currency>) -> Self
Three-letter ISO currency code, in lowercase. Must be a supported currency.
Source§impl ApplyCustomerBalancePaymentIntent
impl ApplyCustomerBalancePaymentIntent
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 ApplyCustomerBalancePaymentIntent
impl Clone for ApplyCustomerBalancePaymentIntent
Source§fn clone(&self) -> ApplyCustomerBalancePaymentIntent
fn clone(&self) -> ApplyCustomerBalancePaymentIntent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more