createCvsAuthorization method

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

Implementation

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