pub struct CancelPaymentSession<'a> { /* private fields */ }Expand description
Builder for [Client::cancel_payment_session]
[`Client::cancel_payment_session`]: super::Client::cancel_payment_sessionImplementations§
Source§impl<'a> CancelPaymentSession<'a>
impl<'a> CancelPaymentSession<'a>
pub fn new(client: &'a Client) -> Self
pub fn payment_session_id<V>(self, value: V) -> Selfwhere
V: TryInto<PaymentSessionId>,
pub fn x_idempotency_key<V>(self, value: V) -> Selfwhere
V: TryInto<CancelPaymentSessionXIdempotencyKey>,
pub fn body<V>(self, value: V) -> Selfwhere
V: TryInto<CancelPaymentSessionRequest>,
<V as TryInto<CancelPaymentSessionRequest>>::Error: Display,
pub fn body_map<F>(self, f: F) -> Self
Sourcepub async fn send(self) -> Result<ResponseValue<PaymentSession>, Error<Error>>
pub async fn send(self) -> Result<ResponseValue<PaymentSession>, Error<Error>>
Sends a POST request to /v2/payment-sessions/{paymentSessionId}/cancel
Trait Implementations§
Source§impl<'a> Clone for CancelPaymentSession<'a>
impl<'a> Clone for CancelPaymentSession<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for CancelPaymentSession<'a>
impl<'a> !UnwindSafe for CancelPaymentSession<'a>
impl<'a> Freeze for CancelPaymentSession<'a>
impl<'a> Send for CancelPaymentSession<'a>
impl<'a> Sync for CancelPaymentSession<'a>
impl<'a> Unpin for CancelPaymentSession<'a>
impl<'a> UnsafeUnpin for CancelPaymentSession<'a>
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