sendToUser method

Future<UserTransaction> sendToUser({
  1. required String userId,
  2. required double amount,
  3. String? receiverTerminalId,
  4. String? senderAccountId,
  5. String? description,
})

Implementation

Future<UserTransaction> sendToUser({
  required String userId,
  required double amount,
  String? receiverTerminalId,
  String? senderAccountId,
  String? description,
}) async {
  return await invokeMethod<UserTransaction>(
    (j) => UserTransaction.fromJson(j),
    'sendToUser',
    {
      'env': this.env.index,
      'accessToken': this.accessToken,
      'userId': userId,
      'amount': amount,
      'receiverTerminalId': receiverTerminalId,
      'senderAccountId': senderAccountId,
      'description': description,
    },
  );
}