pub struct ListSetupIntent { /* private fields */ }
Expand description
Returns a list of SetupIntents.
Implementations§
Source§impl ListSetupIntent
impl ListSetupIntent
Sourcepub fn attach_to_self(self, attach_to_self: impl Into<bool>) -> Self
pub fn attach_to_self(self, attach_to_self: impl Into<bool>) -> Self
If present, the SetupIntent’s payment method will be attached to the in-context Stripe Account.
It can only be used for this Stripe Account’s own money movement flows like InboundTransfer and OutboundTransfers. It cannot be set to true when setting up a PaymentMethod for a Customer, and defaults to false when attaching a PaymentMethod to a Customer.
Sourcepub fn created(self, created: impl Into<RangeQueryTs>) -> Self
pub fn created(self, created: impl Into<RangeQueryTs>) -> Self
A filter on the list, based on the object created
field.
The value can be a string with an integer Unix timestamp, or it can be a dictionary with a number of different query options.
Sourcepub fn customer(self, customer: impl Into<String>) -> Self
pub fn customer(self, customer: impl Into<String>) -> Self
Only return SetupIntents for the customer specified by this customer ID.
Sourcepub fn ending_before(self, ending_before: impl Into<String>) -> Self
pub fn ending_before(self, ending_before: impl Into<String>) -> Self
A cursor for use in pagination.
ending_before
is an object ID that defines your place in the list.
For instance, if you make a list request and receive 100 objects, starting with obj_bar
, your subsequent call can include ending_before=obj_bar
in order to fetch the previous page of the list.
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 limit(self, limit: impl Into<i64>) -> Self
pub fn limit(self, limit: impl Into<i64>) -> Self
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
Sourcepub fn payment_method(self, payment_method: impl Into<String>) -> Self
pub fn payment_method(self, payment_method: impl Into<String>) -> Self
Only return SetupIntents that associate with the specified payment method.
Sourcepub fn starting_after(self, starting_after: impl Into<String>) -> Self
pub fn starting_after(self, starting_after: impl Into<String>) -> Self
A cursor for use in pagination.
starting_after
is an object ID that defines your place in the list.
For instance, if you make a list request and receive 100 objects, ending with obj_foo
, your subsequent call can include starting_after=obj_foo
in order to fetch the next page of the list.
Source§impl ListSetupIntent
impl ListSetupIntent
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.
pub fn paginate(&self) -> ListPaginator<List<SetupIntent>>
Trait Implementations§
Source§impl Clone for ListSetupIntent
impl Clone for ListSetupIntent
Source§fn clone(&self) -> ListSetupIntent
fn clone(&self) -> ListSetupIntent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more