getAccountCoupons method
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,
},
);
}