pub struct CreateForceCaptureIssuingTransaction { /* private fields */ }Expand description
Allows the user to capture an arbitrary amount, also known as a forced capture.
Implementations§
Source§impl CreateForceCaptureIssuingTransaction
impl CreateForceCaptureIssuingTransaction
Sourcepub fn new(amount: impl Into<i64>, card: impl Into<String>) -> Self
pub fn new(amount: impl Into<i64>, card: impl Into<String>) -> Self
Construct a new CreateForceCaptureIssuingTransaction.
Sourcepub fn currency(self, currency: impl Into<Currency>) -> Self
pub fn currency(self, currency: impl Into<Currency>) -> Self
The currency of the capture. If not provided, defaults to the currency of the card. Three-letter ISO currency code, in lowercase. Must be a supported currency.
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 merchant_data(
self,
merchant_data: impl Into<CreateForceCaptureIssuingTransactionMerchantData>,
) -> Self
pub fn merchant_data( self, merchant_data: impl Into<CreateForceCaptureIssuingTransactionMerchantData>, ) -> Self
Details about the seller (grocery store, e-commerce website, etc.) where the card authorization happened.
Sourcepub fn purchase_details(
self,
purchase_details: impl Into<CreateForceCaptureIssuingTransactionPurchaseDetails>,
) -> Self
pub fn purchase_details( self, purchase_details: impl Into<CreateForceCaptureIssuingTransactionPurchaseDetails>, ) -> Self
Additional purchase information that is optionally provided by the merchant.
Source§impl CreateForceCaptureIssuingTransaction
impl CreateForceCaptureIssuingTransaction
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 CreateForceCaptureIssuingTransaction
impl Clone for CreateForceCaptureIssuingTransaction
Source§fn clone(&self) -> CreateForceCaptureIssuingTransaction
fn clone(&self) -> CreateForceCaptureIssuingTransaction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl StripeRequest for CreateForceCaptureIssuingTransaction
impl StripeRequest for CreateForceCaptureIssuingTransaction
Source§type Output = IssuingTransaction
type Output = IssuingTransaction
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 CreateForceCaptureIssuingTransaction
impl RefUnwindSafe for CreateForceCaptureIssuingTransaction
impl Send for CreateForceCaptureIssuingTransaction
impl Sync for CreateForceCaptureIssuingTransaction
impl Unpin for CreateForceCaptureIssuingTransaction
impl UnsafeUnpin for CreateForceCaptureIssuingTransaction
impl UnwindSafe for CreateForceCaptureIssuingTransaction
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