updateCheck method

Future<Check> updateCheck({
  1. required String checkId,
  2. double? amount,
  3. String? description,
  4. String? expiresAt,
  5. String? pointExpiresAt,
  6. int? pointExpiresInDays,
})

Implementation

Future<Check> updateCheck({
  required String checkId,
  double? amount,
  String? description,
  String? expiresAt,
  String? pointExpiresAt,
  int? pointExpiresInDays,
}) async {
  return await invokeMethod<Check>(
    (j) => Check.fromJson(j),
    'autogen_updateCheck',
    {
      'env': this.env.index,
      'accessToken': this.accessToken,
      'check_id': checkId,
      'amount': amount,
      'description': description,
      'expires_at': expiresAt,
      'point_expires_at': pointExpiresAt,
      'point_expires_in_days': pointExpiresInDays,
    },
  );
}