pub struct CaptureIssuingAuthorization { /* private fields */ }Expand description
Capture a test-mode authorization.
Implementations§
Source§impl CaptureIssuingAuthorization
impl CaptureIssuingAuthorization
Sourcepub fn new(authorization: impl Into<String>) -> Self
pub fn new(authorization: impl Into<String>) -> Self
Construct a new CaptureIssuingAuthorization.
Sourcepub fn capture_amount(self, capture_amount: impl Into<i64>) -> Self
pub fn capture_amount(self, capture_amount: impl Into<i64>) -> Self
The amount to capture from the authorization. If not provided, the full amount of the authorization will be captured. This amount is in the authorization currency and in the smallest currency unit.
Whether to close the authorization after capture. Defaults to true. Set to false to enable multi-capture flows.
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 purchase_details(
self,
purchase_details: impl Into<CaptureIssuingAuthorizationPurchaseDetails>,
) -> Self
pub fn purchase_details( self, purchase_details: impl Into<CaptureIssuingAuthorizationPurchaseDetails>, ) -> Self
Additional purchase information that is optionally provided by the merchant.
Source§impl CaptureIssuingAuthorization
impl CaptureIssuingAuthorization
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 CaptureIssuingAuthorization
impl Clone for CaptureIssuingAuthorization
Source§fn clone(&self) -> CaptureIssuingAuthorization
fn clone(&self) -> CaptureIssuingAuthorization
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 Debug for CaptureIssuingAuthorization
impl Debug for CaptureIssuingAuthorization
Source§impl StripeRequest for CaptureIssuingAuthorization
impl StripeRequest for CaptureIssuingAuthorization
Source§type Output = IssuingAuthorization
type Output = IssuingAuthorization
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 CaptureIssuingAuthorization
impl RefUnwindSafe for CaptureIssuingAuthorization
impl Send for CaptureIssuingAuthorization
impl Sync for CaptureIssuingAuthorization
impl Unpin for CaptureIssuingAuthorization
impl UnsafeUnpin for CaptureIssuingAuthorization
impl UnwindSafe for CaptureIssuingAuthorization
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