setTransactionCurrency method

dynamic setTransactionCurrency(
  1. String? value
)

set transaction currency

value is only No. length of value is 3.

Implementation

setTransactionCurrency(String? value) {
  if (value != null) {
    if (value.length != 3) {
      throw ValueLengthErr(title: "MerchantCategoryCode", length: "3");
    }
    var transactionCurrency = setTLV(value, ID.transactionCurrency);
    this.value =
        this.value.copyWith(transactionCurrency: transactionCurrency);
  }
}