Struct ramp_api::transactions::Transactions [−][src]
pub struct Transactions {
pub client: Client,
}
Fields
client: Client
Implementations
pub async fn get_page(
&self,
department_id: &str,
location_id: &str,
from_date: Option<DateTime<Utc>>,
to_date: Option<DateTime<Utc>>,
merchant_id: &str,
sk_category_id: &str,
order_by_date_desc: bool,
order_by_date_asc: bool,
order_by_amount_desc: bool,
order_by_amount_asc: bool,
state: &str,
min_amount: f64,
max_amount: f64,
start: &str,
page_size: f64,
requires_memo: bool
) -> Result<Vec<Data>>
pub async fn get_page(
&self,
department_id: &str,
location_id: &str,
from_date: Option<DateTime<Utc>>,
to_date: Option<DateTime<Utc>>,
merchant_id: &str,
sk_category_id: &str,
order_by_date_desc: bool,
order_by_date_asc: bool,
order_by_amount_desc: bool,
order_by_amount_asc: bool,
state: &str,
min_amount: f64,
max_amount: f64,
start: &str,
page_size: f64,
requires_memo: bool
) -> Result<Vec<Data>>
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.
pub async fn get_all(
&self,
department_id: &str,
location_id: &str,
from_date: Option<DateTime<Utc>>,
to_date: Option<DateTime<Utc>>,
merchant_id: &str,
sk_category_id: &str,
order_by_date_desc: bool,
order_by_date_asc: bool,
order_by_amount_desc: bool,
order_by_amount_asc: bool,
state: &str,
min_amount: f64,
max_amount: f64,
requires_memo: bool
) -> Result<Vec<Data>>
pub async fn get_all(
&self,
department_id: &str,
location_id: &str,
from_date: Option<DateTime<Utc>>,
to_date: Option<DateTime<Utc>>,
merchant_id: &str,
sk_category_id: &str,
order_by_date_desc: bool,
order_by_date_asc: bool,
order_by_amount_desc: bool,
order_by_amount_asc: bool,
state: &str,
min_amount: f64,
max_amount: f64,
requires_memo: bool
) -> Result<Vec<Data>>
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
impl !RefUnwindSafe for Transactions
impl Send for Transactions
impl Sync for Transactions
impl Unpin for Transactions
impl !UnwindSafe for Transactions
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
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