|
My Project
|
Data model representing a financial purchase event. More...
Classes | |
| class | TransactionDeserializer |
| Custom Kafka Deserializer implementation for Transaction objects. | |
| class | TransactionSerializer |
| Custom Kafka Serializer implementation for the Transaction class. | |
Public Member Functions | |
| Transaction () | |
| Default constructor. | |
| String | getUser () |
| Gets the username associated with the transaction. | |
| double | getAmount () |
| Gets the transaction amount. | |
| String | getTransactionLocation () |
| Gets the location where the transaction occurred. | |
| void | setUser (String user) |
| Sets the username for the transaction. | |
| void | setAmount (double amount) |
| Sets the monetary amount for the transaction. | |
| void | setTransactionLocation (String transactionLocation) |
| Sets the location for the transaction. | |
| String | toString () |
| Returns a string representation of the Transaction object. | |
| Transaction (String user, double amount, String transactionLocation) | |
| Constructor to initialize a Transaction with specific data. | |
| String | getUser () |
| Gets the username associated with this transaction. | |
| double | getAmount () |
| Gets the monetary amount of the transaction. | |
| String | getTransactionLocation () |
| Gets the location of the transaction. | |
| String | toString () |
| Provides a string-based representation of the transaction data. | |
| Transaction () | |
| Default constructor. | |
| String | getUser () |
| Gets the username associated with the transaction. | |
| double | getAmount () |
| Gets the transaction amount. | |
| String | getTransactionLocation () |
| Gets the location where the transaction occurred. | |
| void | setUser (String user) |
| Sets the username for the transaction. | |
| void | setAmount (double amount) |
| Sets the monetary amount for the transaction. | |
| void | setTransactionLocation (String transactionLocation) |
| Sets the location for the transaction. | |
| String | toString () |
| Returns a string representation of the Transaction object. | |
| Transaction () | |
| Default constructor. | |
| String | getUser () |
| Gets the username associated with the transaction. | |
| double | getAmount () |
| Gets the transaction amount. | |
| String | getTransactionLocation () |
| Gets the location where the transaction occurred. | |
| void | setUser (String user) |
| Sets the username for the transaction. | |
| void | setAmount (double amount) |
| Sets the monetary amount for the transaction. | |
| void | setTransactionLocation (String transactionLocation) |
| Sets the location for the transaction. | |
| String | toString () |
| Returns a string representation of the Transaction object. | |
Data model representing a financial purchase event.
Data model representing a financial purchase event for the producer service.
This class is shared across all microservices (Banking API, Account Manager, Notification, and Reporting) to represent a credit card transaction.
In the Banking API service, this class is used to model incoming raw transactions. It provides the structure required to perform fraud detection and is then serialized into JSON format to be published to Kafka topics.
| Transaction.Transaction | ( | ) |
Default constructor.
Required by Jackson ObjectMapper for JSON deserialization.
| Transaction.Transaction | ( | String | user, |
| double | amount, | ||
| String | transactionLocation | ||
| ) |
Constructor to initialize a Transaction with specific data.
| user | The customer's username or ID. |
| amount | The cost of the items purchased. |
| transactionLocation | The country where the credit card was used. |
| Transaction.Transaction | ( | ) |
Default constructor.
Required by Jackson ObjectMapper for JSON deserialization.
| Transaction.Transaction | ( | ) |
Default constructor.
Required by Jackson ObjectMapper for JSON deserialization.
| double Transaction.getAmount | ( | ) |
Gets the transaction amount.
| double Transaction.getAmount | ( | ) |
Gets the monetary amount of the transaction.
| double Transaction.getAmount | ( | ) |
Gets the transaction amount.
| double Transaction.getAmount | ( | ) |
Gets the transaction amount.
| String Transaction.getTransactionLocation | ( | ) |
Gets the location where the transaction occurred.
| String Transaction.getTransactionLocation | ( | ) |
Gets the location of the transaction.
| String Transaction.getTransactionLocation | ( | ) |
Gets the location where the transaction occurred.
| String Transaction.getTransactionLocation | ( | ) |
Gets the location where the transaction occurred.
| String Transaction.getUser | ( | ) |
Gets the username associated with the transaction.
| String Transaction.getUser | ( | ) |
Gets the username associated with this transaction.
| String Transaction.getUser | ( | ) |
Gets the username associated with the transaction.
| String Transaction.getUser | ( | ) |
Gets the username associated with the transaction.
| void Transaction.setAmount | ( | double | amount | ) |
Sets the monetary amount for the transaction.
| amount | The value to set. |
| void Transaction.setAmount | ( | double | amount | ) |
Sets the monetary amount for the transaction.
| amount | The value to set. |
| void Transaction.setAmount | ( | double | amount | ) |
Sets the monetary amount for the transaction.
| amount | The value to set. |
| void Transaction.setTransactionLocation | ( | String | transactionLocation | ) |
Sets the location for the transaction.
| transactionLocation | The country/location string. |
| void Transaction.setTransactionLocation | ( | String | transactionLocation | ) |
Sets the location for the transaction.
| transactionLocation | The country/location string. |
| void Transaction.setTransactionLocation | ( | String | transactionLocation | ) |
Sets the location for the transaction.
| transactionLocation | The country/location string. |
| void Transaction.setUser | ( | String | user | ) |
Sets the username for the transaction.
| user | The user ID to set. |
| void Transaction.setUser | ( | String | user | ) |
Sets the username for the transaction.
| user | The user ID to set. |
| void Transaction.setUser | ( | String | user | ) |
Sets the username for the transaction.
| user | The user ID to set. |
| String Transaction.toString | ( | ) |
Returns a string representation of the Transaction object.
| String Transaction.toString | ( | ) |
Provides a string-based representation of the transaction data.
| String Transaction.toString | ( | ) |
Returns a string representation of the Transaction object.
| String Transaction.toString | ( | ) |
Returns a string representation of the Transaction object.