StoneTransactionModel.toError constructor

StoneTransactionModel.toError(
  1. String message
)

Implementation

factory StoneTransactionModel.toError(String message) {
  return StoneTransactionModel(
    actionCode: '',
    aid: '',
    amount: '',
    arcq: '',
    cardBrand: '',
    cardHolderNumber: '',
    date: '',
    entryMode: '',
    idFromBase: 0,
    isBuildResponse: 0,
    manufacture: '',
    result: 999999,
    saleAffiliationKey: '',
    serialNumber: '',
    time: '',
    transactionReference: '',
    typeOfTransactionEnum: '',
    errorMessage: message,
    method: '',
    transactionStatus: '',
    messageFromAuthorize: '',
    message: '',
    authorizationCode: '',
    actionResultMessage: '',
  );
}