getAccountCoupons method

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

Implementation

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