getAccountCoupons method

Future<PaginatedAccountCoupons> getAccountCoupons({
  1. required String accountId,
  2. String? isAvailable,
  3. String? before,
  4. String? after,
  5. int? perPage,
})

Implementation

Future<PaginatedAccountCoupons> getAccountCoupons({
  required String accountId,
  String? isAvailable,
  String? before,
  String? after,
  int? perPage,
}) async {
  return await invokeMethod<PaginatedAccountCoupons>(
    (j) => PaginatedAccountCoupons.fromJson(j),
    'autogen_getAccountCoupons',
    {
      'env': this.env.index,
      'accessToken': this.accessToken,
      'account_id': accountId,
      'is_available': isAvailable,
      'before': before,
      'after': after,
      'per_page': perPage,
    },
  );
}