pub struct ProcessSetupIntentTerminalReader { /* private fields */ }Expand description
Initiates a SetupIntent flow on a Reader. See Save directly without charging for more details.
Implementations§
Source§impl ProcessSetupIntentTerminalReader
impl ProcessSetupIntentTerminalReader
Sourcepub fn new(
reader: impl Into<TerminalReaderId>,
allow_redisplay: impl Into<ProcessSetupIntentTerminalReaderAllowRedisplay>,
setup_intent: impl Into<String>,
) -> Self
pub fn new( reader: impl Into<TerminalReaderId>, allow_redisplay: impl Into<ProcessSetupIntentTerminalReaderAllowRedisplay>, setup_intent: impl Into<String>, ) -> Self
Construct a new ProcessSetupIntentTerminalReader.
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 process_config(
self,
process_config: impl Into<ProcessSetupIntentTerminalReaderProcessConfig>,
) -> Self
pub fn process_config( self, process_config: impl Into<ProcessSetupIntentTerminalReaderProcessConfig>, ) -> Self
Configuration overrides for this setup, such as MOTO and customer cancellation settings.
Source§impl ProcessSetupIntentTerminalReader
impl ProcessSetupIntentTerminalReader
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 ProcessSetupIntentTerminalReader
impl Clone for ProcessSetupIntentTerminalReader
Source§fn clone(&self) -> ProcessSetupIntentTerminalReader
fn clone(&self) -> ProcessSetupIntentTerminalReader
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 ProcessSetupIntentTerminalReader
impl StripeRequest for ProcessSetupIntentTerminalReader
Source§type Output = TerminalReader
type Output = TerminalReader
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 ProcessSetupIntentTerminalReader
impl RefUnwindSafe for ProcessSetupIntentTerminalReader
impl Send for ProcessSetupIntentTerminalReader
impl Sync for ProcessSetupIntentTerminalReader
impl Unpin for ProcessSetupIntentTerminalReader
impl UnsafeUnpin for ProcessSetupIntentTerminalReader
impl UnwindSafe for ProcessSetupIntentTerminalReader
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