Getnet DocsGetnet Docs

Data Models Glossary

This page serves as a reference for the core data classes and enumerations used in the redsys-tpv-business-lib. Understanding these models is essential for interpreting transaction results and configuring the TPV.

Core Data Classes

Transaction

The Transaction object is the central model representing a financial operation. It is returned in the Accepted or Denied states of payments, refunds, and history queries.

PropertyTypeDescription
typeOperationTypeThe type of operation performed (e.g., PAYMENT, REFUND).
resultOperationResultThe final result of the operation (e.g., AUTHORIZED, DENIED).
amountMoney?The amount of the transaction.
tipMoney?The tip amount, if applicable.
cardInfoCardInfoDetails about the card used in the transaction.
operationInfoOperationInfoSpecific identifiers and authorization data from the host.
commerceInfoCommerceInfoInformation about the merchant and terminal.
dccInfoDccInfo?Dynamic Currency Conversion details (only present if DCC was applied).
digitalSignatureBitmap?The signature captured on screen (optional).
thirdDataInfoThirdDataInfo?Optional data for third-party integrations (e.g., invoice numbers).
qrInfoQrInfo?Information if the transaction was made via QR code.
financialInfoFinancialInfo?Deferred payments (Plazox) data.
prnReceiptPrnReceiptInfo?Configuration settings related to receipt printing.
prnIssuerString?Extra information related to card entity.

Money

Represents a monetary value.

PropertyTypeDescription
amountBigDecimalThe numeric value.
currencyCurrencyThe Java Currency instance (e.g., Currency.getInstance("EUR")).

CardInfo

Encapsulates data regarding the payment card.

PropertyTypeDescription
cardString?Masked card number (e.g., ************1234).
cardBrandCardBrand?The detected brand of the card (e.g., VISA).
cardBrandLabelString?The full label of the card brand.
aidString?The EMV Application Identifier.

OperationInfo

Contains the technical details of the transaction execution.

PropertyTypeDescription
identifierStringThe unique internal identifier for the operation.
numberString?The sequential operation number (Ticket number).
dateDate?The date and time the operation occurred.
authorizationNumberString?The authorization code from the bank.
referenceString?The transaction reference.
failedReasonInfoFailedReasonInfo?Contains the error code and description if the operation failed.
tvrString?Terminal Verification Result (EMV tag).
atcString?Application Transaction Counter.
respString?Response code (ISO 8583).

CommerceInfo

Identifies the merchant configuration used for the transaction.

PropertyTypeDescription
fucCodeString?The Merchant ID (FUC).
terminalString?The Terminal Number.

TpvInfo

The result of the initTpv call, containing device and merchant configuration.

PropertyTypeDescription
configTpvConfigConfiguration flags and merchant details.
deviceInfoTpvDeviceInfoHardware-specific information.
virtualTerminalListList<TpvVirtualTerminal>?List of available virtual terminals (multi-terminal mode).

TpvConfig

Details specific configuration flags for the terminal.

PropertyTypeDescription
merchantNameStringThe commercial name of the merchant.
fucStringThe Merchant ID.
terminalStringThe Terminal ID.
currencyIntNumeric currency code (e.g., 978).
showPreauthorizationsBooleantrue if Pre-authorizations are enabled.
noOriginalBooleantrue if “Refund without Original” is enabled.

DccInfo

Details regarding Dynamic Currency Conversion (if applicable).

PropertyTypeDescription
currencyChangeAmountString?Amount in the foreign currency.
currencyCodeStringForeign currency code (e.g., “USD”).
markupFloat?The markup percentage applied.
exchangeRateStringThe applied exchange rate string.

Enumerations

OperationType

Defines the classification of a transaction.

  • PAYMENT
  • REFUND
  • PREAUTH
  • PREAUTH_CONFIRM
  • PREAUTH_REPLACE
  • PREAUTH_CANCEL
  • UNKNOWN

OperationResult

Defines the final status of a transaction.

  • AUTHORIZED
  • DENIED
  • ANNUL
  • PREAUTH_NO_CONFIRM
  • UNKNOWN

CardBrand

Supported card brands and payment methods.

  • VISA
  • MASTERCARD
  • AMERICAN_EXPRESS
  • JCB
  • DINERS (Note: sometimes mapped via other brands)
  • BIZUM
  • ALIPAY
  • WECHAT
  • GOOGLE_PAY
  • APPLE_PAY
  • SAMSUNG_PAY
  • UNKNOWN

ProtocolErrorType

Categories for integration errors returned in RepositoryResult.ProtocolError.

  • MAPPING_DATA: Internal error mapping service data.
  • MAPPING_DOMAIN: Error in the request data format sent by the app.
  • TPV_NOT_INITIALIZED: Operation attempted before initTpv().