cvsAuthorizeRequest method

Future<CvsAuthorization> cvsAuthorizeRequest({
  1. required String accountId,
  2. required String serviceOptionType,
  3. required int amount,
  4. required String name1,
  5. required String name2,
  6. required String tel,
  7. int? topupQuotaId,
})

Implementation

Future<CvsAuthorization> cvsAuthorizeRequest({
  required String accountId,
  required String serviceOptionType,
  required int amount,
  required String name1,
  required String name2,
  required String tel,
  int? topupQuotaId,
}) async {
  return await invokeMethod<CvsAuthorization>(
    (j) => CvsAuthorization.fromJson(j),
    'cvsAuthorizeRequest',
    {
      'env': this.env.index,
      'accessToken': this.accessToken,
      'account_id': accountId,
      'service_option_type': serviceOptionType,
      'amount': amount,
      'name1': name1,
      'name2': name2,
      'tel': tel,
      'topup_quota_id': topupQuotaId,
    },
  );
}