createUserTransactionWithJwt method

Future<JwtResult> createUserTransactionWithJwt({
  1. required String data,
  2. String? accountId,
  3. String? couponId,
  4. TransactionStrategy strategy = TransactionStrategy.POINT_PREFERRED,
})

Implementation

Future<JwtResult> createUserTransactionWithJwt({
  required String data,
  String? accountId,
  String? couponId,
  TransactionStrategy strategy = TransactionStrategy.POINT_PREFERRED,
}) async {
  return await invokeMethod<JwtResult>(
    (j) => JwtResult.fromJson(j),
    'createUserTransactionWithJwt',
    {
      'env': this.env.index,
      'accessToken': this.accessToken,
      'data': data,
      'accountId': accountId,
      'couponId': couponId,
      'tx_strategy': strategy.value,
    },
  );
}