// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`GetAccountBalance`](crate::operation::get_account_balance::builders::GetAccountBalanceFluentBuilder) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::operation::get_account_balance::builders::GetAccountBalanceFluentBuilder::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`balance_type(BalanceType)`](crate::operation::get_account_balance::builders::GetAccountBalanceFluentBuilder::balance_type) / [`set_balance_type(Option<BalanceType>)`](crate::operation::get_account_balance::builders::GetAccountBalanceFluentBuilder::set_balance_type):<br>required: **true**<br><p>The balance to retrieve. You can specify only one balance type in a single request. Each balance adds up the <code>outstanding</code> balance of the records that have the status <code>OUTSTANDING</code>. A record that is <code>PROCESSING</code>, <code>SETTLED</code>, or <code>CANCELED</code> isn't included, even when part of its amount is outstanding. The following values are valid:</p> <ul> <li> <p><code>INVOICES_DUE</code> – The outstanding balance of your <code>OUTSTANDING</code> invoices that aren't past their due date, where <code>dueStatus</code> is <code>DUE</code>.</p></li> <li> <p><code>INVOICES_PAST_DUE</code> – The outstanding balance of your <code>OUTSTANDING</code> invoices that are past their due date, where <code>dueStatus</code> is <code>PAST_DUE</code>.</p></li> <li> <p><code>OUTSTANDING_CREDIT_MEMOS</code> – The outstanding balance of your <code>OUTSTANDING</code> credit memos: the credit that isn't yet applied to an invoice.</p></li> </ul><br>
/// - [`next_token(impl Into<String>)`](crate::operation::get_account_balance::builders::GetAccountBalanceFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::get_account_balance::builders::GetAccountBalanceFluentBuilder::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::get_account_balance::builders::GetAccountBalanceFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::get_account_balance::builders::GetAccountBalanceFluentBuilder::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 [`GetAccountBalanceOutput`](crate::operation::get_account_balance::GetAccountBalanceOutput) with field(s):
/// - [`account_balances(Vec::<AccountBalance>)`](crate::operation::get_account_balance::GetAccountBalanceOutput::account_balances): <p>The balance, as one amount for each merchant of record and currency. This list is empty when your account has nothing in the requested balance.</p>
/// - [`next_token(Option<String>)`](crate::operation::get_account_balance::GetAccountBalanceOutput::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<GetAccountBalanceError>`](crate::operation::get_account_balance::GetAccountBalanceError)
pub fn get_account_balance(&self) -> crate::operation::get_account_balance::builders::GetAccountBalanceFluentBuilder {
crate::operation::get_account_balance::builders::GetAccountBalanceFluentBuilder::new(self.handle.clone())
}
}