pub struct AdjustmentsList<'a> { /* private fields */ }
Implementations§
Source§impl<'a> AdjustmentsList<'a>
impl<'a> AdjustmentsList<'a>
pub fn new(client: &'a Paddle) -> Self
Sourcepub fn action(&mut self, adjustment_action: AdjustmentAction) -> &mut Self
pub fn action(&mut self, adjustment_action: AdjustmentAction) -> &mut Self
Return entities for the specified action.
Sourcepub fn after(&mut self, id: impl Into<AdjustmentID>) -> &mut Self
pub fn after(&mut self, id: impl Into<AdjustmentID>) -> &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 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 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 status(
&mut self,
statuses: impl IntoIterator<Item = AdjustmentStatus>,
) -> &mut Self
pub fn status( &mut self, statuses: impl IntoIterator<Item = AdjustmentStatus>, ) -> &mut Self
Return entities that match the specified status.
Sourcepub fn subscription_ids(
&mut self,
subscription_ids: impl IntoIterator<Item = impl Into<SubscriptionID>>,
) -> &mut Self
pub fn subscription_ids( &mut self, subscription_ids: impl IntoIterator<Item = impl Into<SubscriptionID>>, ) -> &mut Self
Return entities related to the specified subscription.
Sourcepub fn transaction_ids(
&mut self,
transaction_ids: impl IntoIterator<Item = impl Into<TransactionID>>,
) -> &mut Self
pub fn transaction_ids( &mut self, transaction_ids: impl IntoIterator<Item = impl Into<TransactionID>>, ) -> &mut Self
Return entities related to the specified subscription.
Sourcepub fn id(
&mut self,
ids: impl IntoIterator<Item = impl Into<AdjustmentID>>,
) -> &mut Self
pub fn id( &mut self, ids: impl IntoIterator<Item = impl Into<AdjustmentID>>, ) -> &mut Self
Return only the IDs specified.
Sourcepub fn send(&self) -> Paginated<'_, Vec<Adjustment>>
pub fn send(&self) -> Paginated<'_, Vec<Adjustment>>
Returns a paginator for fetching pages of entities from Paddle