pub struct SubscriptionsList<'a> { /* private fields */ }
Expand description
Request builder for fetching subscriptions from Paddle API.
Implementations§
Source§impl<'a> SubscriptionsList<'a>
impl<'a> SubscriptionsList<'a>
pub fn new(client: &'a Paddle) -> Self
Sourcepub fn address_ids(
&mut self,
address_ids: impl IntoIterator<Item = impl Into<AddressID>>,
) -> &mut Self
pub fn address_ids( &mut self, address_ids: impl IntoIterator<Item = impl Into<AddressID>>, ) -> &mut Self
Return entities related to the specified addresses.
Sourcepub fn after(&mut self, id: impl Into<SubscriptionID>) -> &mut Self
pub fn after(&mut self, id: impl Into<SubscriptionID>) -> &mut Self
Return entities after the specified Paddle ID when working with paginated endpoints. Used in the meta.pagination.next
URL in responses for list operations.
Sourcepub fn collection_mode(&mut self, mode: CollectionMode) -> &mut Self
pub fn collection_mode(&mut self, mode: CollectionMode) -> &mut Self
Return entities that match the specified collection mode.
Sourcepub fn customer_id(
&mut self,
customer_ids: impl IntoIterator<Item = impl Into<CustomerID>>,
) -> &mut Self
pub fn customer_id( &mut self, customer_ids: impl IntoIterator<Item = impl Into<CustomerID>>, ) -> &mut Self
Return entities related to the specified customers.
Sourcepub fn id(
&mut self,
ids: impl IntoIterator<Item = impl Into<SubscriptionID>>,
) -> &mut Self
pub fn id( &mut self, ids: impl IntoIterator<Item = impl Into<SubscriptionID>>, ) -> &mut Self
Return only the IDs specified.
Sourcepub fn order_by_asc(&mut self, field: &str) -> &mut Self
pub fn order_by_asc(&mut self, field: &str) -> &mut Self
Order returned entities by the specified field. Valid fields for ordering: id
Sourcepub fn order_by_desc(&mut self, field: &str) -> &mut Self
pub fn order_by_desc(&mut self, field: &str) -> &mut Self
Order returned entities by the specified field. Valid fields for ordering: id
Sourcepub fn per_page(&mut self, entities_per_page: usize) -> &mut Self
pub fn per_page(&mut self, entities_per_page: usize) -> &mut Self
Set how many entities are returned per page. Paddle returns the maximum number of results if a number greater than the maximum is requested.
Check meta.pagination.per_page
in the response to see how many were returned.
Default: 50
; Maximum: 200
.
Sourcepub fn price_ids(
&mut self,
price_ids: impl IntoIterator<Item = impl Into<PriceID>>,
) -> &mut Self
pub fn price_ids( &mut self, price_ids: impl IntoIterator<Item = impl Into<PriceID>>, ) -> &mut Self
Return entities related to the specified prices.
Sourcepub fn scheduled_change_action(
&mut self,
actions: impl IntoIterator<Item = ScheduledChangeAction>,
) -> &mut Self
pub fn scheduled_change_action( &mut self, actions: impl IntoIterator<Item = ScheduledChangeAction>, ) -> &mut Self
Return subscriptions that have a scheduled changes.
Sourcepub fn status(
&mut self,
statuses: impl IntoIterator<Item = SubscriptionStatus>,
) -> &mut Self
pub fn status( &mut self, statuses: impl IntoIterator<Item = SubscriptionStatus>, ) -> &mut Self
Return entities that match the specified subscription statuses.
Sourcepub fn send(&self) -> Paginated<'_, Vec<Subscription>>
pub fn send(&self) -> Paginated<'_, Vec<Subscription>>
Returns a paginator for fetching pages of entities from Paddle