aws-sdk-payments 1.1.0

AWS SDK for AWS Payments
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ListFinancialRecords`](crate::operation::list_financial_records::builders::ListFinancialRecordsFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_financial_records::builders::ListFinancialRecordsFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`types(FinancialRecordType)`](crate::operation::list_financial_records::builders::ListFinancialRecordsFluentBuilder::types) / [`set_types(Option<Vec::<FinancialRecordType>>)`](crate::operation::list_financial_records::builders::ListFinancialRecordsFluentBuilder::set_types):<br>required: **true**<br><p>The financial record types to return. The following values are valid:</p> <ul>  <li>   <p><code>INVOICE</code> – An invoice: a bill from Amazon Web Services. Payments and credit memos applied to the invoice settle it.</p></li>  <li>   <p><code>CREDIT_MEMO</code> – A credit memo: a credit issued to your account, for example for a billing correction or a service credit. Applying it to one or more invoices settles it.</p></li> </ul><br>
    ///   - [`settlement_statuses(SettlementStatus)`](crate::operation::list_financial_records::builders::ListFinancialRecordsFluentBuilder::settlement_statuses) / [`set_settlement_statuses(Option<Vec::<SettlementStatus>>)`](crate::operation::list_financial_records::builders::ListFinancialRecordsFluentBuilder::set_settlement_statuses):<br>required: **false**<br><p>The settlement statuses to filter by. <code>OPEN</code> returns records whose <code>status</code> is <code>OUTSTANDING</code> or <code>PROCESSING</code>. <code>CLOSED</code> returns records whose <code>status</code> is <code>SETTLED</code> or <code>CANCELED</code>. When you omit this member, the operation returns records with both settlement statuses.</p><br>
    ///   - [`issued_after(DateTime)`](crate::operation::list_financial_records::builders::ListFinancialRecordsFluentBuilder::issued_after) / [`set_issued_after(Option<DateTime>)`](crate::operation::list_financial_records::builders::ListFinancialRecordsFluentBuilder::set_issued_after):<br>required: **false**<br><p>The earliest date and time to return records for, inclusive. The operation returns the records that were issued at or after this time.</p><br>
    ///   - [`issued_before(DateTime)`](crate::operation::list_financial_records::builders::ListFinancialRecordsFluentBuilder::issued_before) / [`set_issued_before(Option<DateTime>)`](crate::operation::list_financial_records::builders::ListFinancialRecordsFluentBuilder::set_issued_before):<br>required: **false**<br><p>The latest date and time to return records for, exclusive. The operation returns the records that were issued before this time. When you specify both <code>issuedAfter</code> and <code>issuedBefore</code>, <code>issuedBefore</code> must be later than <code>issuedAfter</code>.</p><br>
    ///   - [`sort_by(FinancialRecordSortField)`](crate::operation::list_financial_records::builders::ListFinancialRecordsFluentBuilder::sort_by) / [`set_sort_by(Option<FinancialRecordSortField>)`](crate::operation::list_financial_records::builders::ListFinancialRecordsFluentBuilder::set_sort_by):<br>required: **false**<br><p>The field to sort the results by. The default is <code>ISSUED_AT</code>, the date and time when the record was issued.</p><br>
    ///   - [`sort_order(SortOrder)`](crate::operation::list_financial_records::builders::ListFinancialRecordsFluentBuilder::sort_order) / [`set_sort_order(Option<SortOrder>)`](crate::operation::list_financial_records::builders::ListFinancialRecordsFluentBuilder::set_sort_order):<br>required: **false**<br><p>The order to sort the results in. The default is <code>DESCENDING</code>, which returns the newest records first. <code>ASCENDING</code> returns the oldest records first.</p><br>
    ///   - [`next_token(impl Into<String>)`](crate::operation::list_financial_records::builders::ListFinancialRecordsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_financial_records::builders::ListFinancialRecordsFluentBuilder::set_next_token):<br>required: **false**<br><p>The pagination token from the <code>nextToken</code> of the previous response. Omit it to get the first page. Tokens expire. If the token is malformed or expired, or doesn't match the original request, the request fails with <code>ValidationException</code> and the reason <code>INVALID_PAGINATION_TOKEN</code>. In that case, start again from the first page.</p><br>
    ///   - [`max_results(i32)`](crate::operation::list_financial_records::builders::ListFinancialRecordsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_financial_records::builders::ListFinancialRecordsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results to return in one page. The default is 100. A page can contain fewer results even when more remain. Use <code>nextToken</code> to find out whether more results are available.</p><br>
    /// - On success, responds with [`ListFinancialRecordsOutput`](crate::operation::list_financial_records::ListFinancialRecordsOutput) with field(s):
    ///   - [`financial_record_summaries(Vec::<FinancialRecordSummary>)`](crate::operation::list_financial_records::ListFinancialRecordsOutput::financial_record_summaries): <p>The financial record summaries that match your filters, in the requested order. This list is empty when no record matches.</p>
    ///   - [`next_token(Option<String>)`](crate::operation::list_financial_records::ListFinancialRecordsOutput::next_token): <p>The pagination token that indicates the next set of results to retrieve. This value is absent when there are no more results.</p>
    /// - On failure, responds with [`SdkError<ListFinancialRecordsError>`](crate::operation::list_financial_records::ListFinancialRecordsError)
    pub fn list_financial_records(&self) -> crate::operation::list_financial_records::builders::ListFinancialRecordsFluentBuilder {
        crate::operation::list_financial_records::builders::ListFinancialRecordsFluentBuilder::new(self.handle.clone())
    }
}