pub struct Transactions {
    pub client: Client,
}

Fields

client: Client

Implementations

List transactions.

This function performs a GET to the /transactions endpoint.

Retrieves all transactions for the business. This endpoint supports filtering and ordering. NOTE: only one ordering param is supported.

Parameters:

  • authorization: &str – The OAuth2 token header.
  • department_id: &str – The OAuth2 token header.
  • location_id: &str – The OAuth2 token header.
  • from_date: chrono::DateTime<chrono::Utc>
  • to_date: chrono::DateTime<chrono::Utc>
  • merchant_id: &str – The OAuth2 token header.
  • sk_category_id: &str – The OAuth2 token header.
  • order_by_date_desc: bool
  • order_by_date_asc: bool
  • order_by_amount_desc: bool
  • order_by_amount_asc: bool
  • state: &str – The OAuth2 token header.
  • min_amount: f64 – The number of results to be returned in each page. The value must be between 2 and 10,000. If not specified, the default will be 1,000.
  • max_amount: f64 – The number of results to be returned in each page. The value must be between 2 and 10,000. If not specified, the default will be 1,000.
  • start: &str – The ID of the last entity of the previous page, used for pagination to get the next page.
  • page_size: f64 – The number of results to be returned in each page. The value must be between 2 and 10,000. If not specified, the default will be 1,000.
  • requires_memo: bool – Filters for transactions which require a memo, but do not have one. This can only be set to true.

List transactions.

This function performs a GET to the /transactions endpoint.

As opposed to get, this function returns all the pages of the request at once.

Retrieves all transactions for the business. This endpoint supports filtering and ordering. NOTE: only one ordering param is supported.

GET a transaction.

This function performs a GET to the /transactions/{id} endpoint.

Parameters:

  • authorization: &str – The OAuth2 token header.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
Attaches the current Context to this type, returning a WithContext wrapper. Read more
Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more