pub struct AuthorizeWalletPaymentSession<'a> { /* private fields */ }Expand description
Builder for [Client::authorize_wallet_payment_session]
[`Client::authorize_wallet_payment_session`]: super::Client::authorize_wallet_payment_sessionImplementations§
Source§impl<'a> AuthorizeWalletPaymentSession<'a>
impl<'a> AuthorizeWalletPaymentSession<'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) -> Self
pub fn body<V>(self, value: V) -> Selfwhere
V: TryInto<WalletAuthorizationRequest>,
<V as TryInto<WalletAuthorizationRequest>>::Error: Display,
pub fn body_map<F>(self, f: F) -> Self
Sourcepub async fn send(self) -> Result<ResponseValue<Authorization>, Error<Error>>
pub async fn send(self) -> Result<ResponseValue<Authorization>, Error<Error>>
Sends a POST request to /v2/payment-sessions/{paymentSessionId}/authorizations/wallet
Trait Implementations§
Source§impl<'a> Clone for AuthorizeWalletPaymentSession<'a>
impl<'a> Clone for AuthorizeWalletPaymentSession<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for AuthorizeWalletPaymentSession<'a>
impl<'a> !UnwindSafe for AuthorizeWalletPaymentSession<'a>
impl<'a> Freeze for AuthorizeWalletPaymentSession<'a>
impl<'a> Send for AuthorizeWalletPaymentSession<'a>
impl<'a> Sync for AuthorizeWalletPaymentSession<'a>
impl<'a> Unpin for AuthorizeWalletPaymentSession<'a>
impl<'a> UnsafeUnpin for AuthorizeWalletPaymentSession<'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