getAccountTopupQuotas method

Future<AccountTopupQuotas> getAccountTopupQuotas({
  1. required String accountId,
  2. String? status,
  3. bool? showExpiredForFixedPeriod,
  4. bool? showStartedQuotas,
  5. bool? isWithinApplicablePeriod,
  6. bool? isUsableAmountLeft,
})

Implementation

Future<AccountTopupQuotas> getAccountTopupQuotas({
  required String accountId,
  String? status,
  bool? showExpiredForFixedPeriod,
  bool? showStartedQuotas,
  bool? isWithinApplicablePeriod,
  bool? isUsableAmountLeft,
}) async {
  return await invokeMethod<AccountTopupQuotas>(
    (j) => AccountTopupQuotas.fromJson(j),
    'getAccountTopupQuotas',
    {
      'env': this.env.index,
      'accessToken': this.accessToken,
      'account_id': accountId,
      'status': status,
      'show_expired_for_fixed_period': showExpiredForFixedPeriod,
      'show_started_quotas': showStartedQuotas,
      'is_within_applicable_period': isWithinApplicablePeriod,
      'is_usable_amount_left': isUsableAmountLeft,
    },
  );
}