Index
All Classes and Interfaces|All Packages|Serialized Form
A
- AccountConsumer - Class in com.bank.payment.consumers
-
Consumer for account-related events received from account microservice via RabbitMQ.
- AccountConsumer() - Constructor for class com.bank.payment.consumers.AccountConsumer
- AccountEventDto - Class in com.bank.payment.dtos
-
DTO for update account model information in account microservice.
- AccountEventDto() - Constructor for class com.bank.payment.dtos.AccountEventDto
- AccountEventPublisher - Class in com.bank.payment.publishers
-
Publisher for sending account-related events to RabbitMQ.
- AccountEventPublisher() - Constructor for class com.bank.payment.publishers.AccountEventPublisher
- AccountModel - Class in com.bank.payment.models
-
Represents an account in the payment microservice.
- AccountModel() - Constructor for class com.bank.payment.models.AccountModel
- AccountReceiverNotFoundException - Exception Class in com.bank.payment.exceptions
-
Exception thrown when the account that is supposed to receive a payment is not found.
- AccountReceiverNotFoundException() - Constructor for exception class com.bank.payment.exceptions.AccountReceiverNotFoundException
- AccountRepository - Interface in com.bank.payment.repository
-
Repository interface for
AccountModel
entities. - AccountSenderNotFoundException - Exception Class in com.bank.payment.exceptions
-
Exception thrown when the account that is supposed to send a payment is not found.
- AccountSenderNotFoundException() - Constructor for exception class com.bank.payment.exceptions.AccountSenderNotFoundException
- AccountService - Interface in com.bank.payment.services
-
Interface for AccountService that defines methods for handling account operations.
- AccountServiceImp - Class in com.bank.payment.services.impl
- AccountServiceImp() - Constructor for class com.bank.payment.services.impl.AccountServiceImp
- ActionType - Enum Class in com.bank.payment.enums
-
Enum representing different types of actions that can be performed in the payment microservice.
- amountPaid() - Method in record class com.bank.payment.dtos.ConclusionPaymentDto
-
Returns the value of the
amountPaid
record component. - amountPaid() - Method in record class com.bank.payment.dtos.PaymentAnalyzeDto
-
Returns the value of the
amountPaid
record component. - analyzePayment(Long, String, PaymentAnalyzeDto) - Method in class com.bank.payment.controllers.PaymentController
-
Analyzes a payment before processing, returning a confirmation message.
B
- BRL - Enum constant in enum class com.bank.payment.enums.CurrencyType
C
- com.bank.payment - package com.bank.payment
- com.bank.payment.configs - package com.bank.payment.configs
- com.bank.payment.consumers - package com.bank.payment.consumers
- com.bank.payment.controllers - package com.bank.payment.controllers
- com.bank.payment.dtos - package com.bank.payment.dtos
- com.bank.payment.enums - package com.bank.payment.enums
- com.bank.payment.exceptions - package com.bank.payment.exceptions
- com.bank.payment.models - package com.bank.payment.models
- com.bank.payment.publishers - package com.bank.payment.publishers
- com.bank.payment.repository - package com.bank.payment.repository
- com.bank.payment.services - package com.bank.payment.services
- com.bank.payment.services.impl - package com.bank.payment.services.impl
- COMPLETED - Enum constant in enum class com.bank.payment.enums.PaymentStatus
- ConclusionPaymentDto - Record Class in com.bank.payment.dtos
-
DTO for concluding a payment.
- ConclusionPaymentDto(Long, String, String, BigDecimal) - Constructor for record class com.bank.payment.dtos.ConclusionPaymentDto
-
Creates an instance of a
ConclusionPaymentDto
record class. - convertToPaymentEventDto() - Method in class com.bank.payment.models.PaymentModel
- CREATE - Enum constant in enum class com.bank.payment.enums.ActionType
- CurrencyType - Enum Class in com.bank.payment.enums
-
Enum representing different types of currencies used in the payment microservice.
D
- DECLINED - Enum constant in enum class com.bank.payment.enums.PaymentStatus
- delete(Long) - Method in interface com.bank.payment.services.AccountService
-
Deletes an AccountModel by its ID.
- delete(Long) - Method in class com.bank.payment.services.impl.AccountServiceImp
- delete(Long) - Method in class com.bank.payment.services.impl.PaymentServiceImpl
- delete(Long) - Method in interface com.bank.payment.services.PaymentService
- DELETE - Enum constant in enum class com.bank.payment.enums.ActionType
- deletePayment(Long) - Method in class com.bank.payment.controllers.PaymentController
-
Deletes a payment by its ID.
- directPayment(Long, String, PaymentDto) - Method in class com.bank.payment.controllers.PaymentController
-
Processes a direct payment from the sender to the receiver using Pix without any analysis.
- directPayment(Long, String, PaymentDto) - Method in class com.bank.payment.services.impl.PaymentServiceImpl
- directPayment(Long, String, PaymentDto) - Method in interface com.bank.payment.services.PaymentService
-
Processes a direct payment by performing the necessary checks and sending the Pix transaction.
E
- email() - Method in record class com.bank.payment.dtos.PaymentAnalyzeDto
-
Returns the value of the
email
record component. - equals(Object) - Method in record class com.bank.payment.dtos.ConclusionPaymentDto
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.bank.payment.dtos.PaymentAnalyzeDto
-
Indicates whether some other object is "equal to" this one.
- existsByIdAccountAndPixKey(Long, String) - Method in class com.bank.payment.services.impl.KnownPixServiceImp
- existsByIdAccountAndPixKey(Long, String) - Method in interface com.bank.payment.services.KnownPixService
-
Checks if a known Pix exists by account ID and Pix key.
F
- fanoutExchangeAccount() - Method in class com.bank.payment.configs.RabbitmqConfig
- fanoutExchangePayment() - Method in class com.bank.payment.configs.RabbitmqConfig
- fanoutExchangePaymentReceive() - Method in class com.bank.payment.configs.RabbitmqConfig
- fanoutExchangePaymentSender() - Method in class com.bank.payment.configs.RabbitmqConfig
- findById(Long) - Method in interface com.bank.payment.services.AccountService
-
Finds an AccountModel by its ID.
- findById(Long) - Method in class com.bank.payment.services.impl.AccountServiceImp
- findById(Long) - Method in class com.bank.payment.services.impl.PaymentServiceImpl
- findById(Long) - Method in interface com.bank.payment.services.PaymentService
- findByIdAccountAndPixKey(Long, String) - Method in interface com.bank.payment.repository.KnownPixRepository
-
Finds a known Pix key by account ID and Pix key.
- findByKey(String) - Method in interface com.bank.payment.repository.PixRepository
-
Finds a Pix key by its value.
- findByKey(String) - Method in class com.bank.payment.services.impl.PixServiceImpl
- findByKey(String) - Method in interface com.bank.payment.services.PixService
-
Finds a PixModel by its key.
- findByPixKey(String) - Method in interface com.bank.payment.repository.AccountRepository
-
Finds an account by its Pix table that associated pix key.
- findByPixKey(String) - Method in interface com.bank.payment.services.AccountService
-
Finds an AccountModel by its Pix key.
- findByPixKey(String) - Method in class com.bank.payment.services.impl.AccountServiceImp
- FirstTransferPixException - Exception Class in com.bank.payment.exceptions
-
Exception thrown when a user attempts to make a PIX transfer for the first time to a specific account.
- FirstTransferPixException() - Constructor for exception class com.bank.payment.exceptions.FirstTransferPixException
G
- getOnePayment(Long) - Method in class com.bank.payment.controllers.PaymentController
-
Retrieves a payment by its ID.
H
- handleAccountNotFound(PaymentNotFoundException) - Method in class com.bank.payment.exceptions.RestExceptionHandler
-
Handles PaymentNotFoundException and returns a 404 NOT FOUND response.
- handleAccountReceiverNotFound(AccountReceiverNotFoundException) - Method in class com.bank.payment.exceptions.RestExceptionHandler
-
Handles AccountReceiverNotFoundException and returns a 404 NOT FOUND response.
- handleAccountSenderNotFound(AccountSenderNotFoundException) - Method in class com.bank.payment.exceptions.RestExceptionHandler
-
Handles AccountSenderNotFoundException and returns a 404 NOT FOUND response.
- handleFirstTransferPix(FirstTransferPixException) - Method in class com.bank.payment.exceptions.RestExceptionHandler
-
Handles FirstTransferPixException and returns a 409 CONFLICT response.
- handlePixNotFound(PixNotFoundException) - Method in class com.bank.payment.exceptions.RestExceptionHandler
-
Handles PixNotFoundException and returns a 404 NOT FOUND response.
- handleTransferBalanceToYourself(TransferBalanceToYourselfException) - Method in class com.bank.payment.exceptions.RestExceptionHandler
-
Handles TransferBalanceToYourselfException and returns a 400 BAD REQUEST response.
- handleTransferInsuficientBalance(TransferInsuficientBalanceException) - Method in class com.bank.payment.exceptions.RestExceptionHandler
-
Handles TransferInsuficientBalanceException and returns a 422 UNPROCESSABLE ENTITY response.
- hashCode() - Method in record class com.bank.payment.dtos.ConclusionPaymentDto
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.bank.payment.dtos.PaymentAnalyzeDto
-
Returns a hash code value for this object.
I
- idAccount() - Method in record class com.bank.payment.dtos.ConclusionPaymentDto
-
Returns the value of the
idAccount
record component.
K
- KnownPixDto - Class in com.bank.payment.dtos
-
Represents a known Pix key associated with an account in the payment microservice.
- KnownPixDto() - Constructor for class com.bank.payment.dtos.KnownPixDto
- KnownPixModel - Class in com.bank.payment.models
-
Represents a known Pix key associated with an account in the payment microservice.
- KnownPixModel() - Constructor for class com.bank.payment.models.KnownPixModel
- KnownPixRepository - Interface in com.bank.payment.repository
-
Repository interface for
KnownPixModel
entities. - KnownPixService - Interface in com.bank.payment.services
-
Interface for KnownPixService that defines methods for handling known Pix operations.
- KnownPixServiceImp - Class in com.bank.payment.services.impl
- KnownPixServiceImp() - Constructor for class com.bank.payment.services.impl.KnownPixServiceImp
L
- listenAccountEvent(AccountEventDto) - Method in class com.bank.payment.consumers.AccountConsumer
-
Listens for account events and saves them according to the action type.
- listenPixEvent(PixEventDto) - Method in class com.bank.payment.consumers.PixConsumer
-
Listens for Pix events and saves them according to the action type.
M
- main(String[]) - Static method in class com.bank.payment.PaymentApplication
- messageConverter() - Method in class com.bank.payment.configs.RabbitmqConfig
- MessageHandler - Class in com.bank.payment.exceptions
-
Class to handle messages for exceptions in the payment microservice.
- MessageHandler() - Constructor for class com.bank.payment.exceptions.MessageHandler
P
- PAYMENT - Enum constant in enum class com.bank.payment.enums.ActionType
- PaymentAnalyzeDto - Record Class in com.bank.payment.dtos
-
DTO requested to analyze a payment.
- PaymentAnalyzeDto(String, BigDecimal, String) - Constructor for record class com.bank.payment.dtos.PaymentAnalyzeDto
-
Creates an instance of a
PaymentAnalyzeDto
record class. - PaymentApplication - Class in com.bank.payment
- PaymentApplication() - Constructor for class com.bank.payment.PaymentApplication
- PaymentConsumer - Class in com.bank.payment.consumers
-
Consumer for payment-related events received from auth microservice via RabbitMQ.
- PaymentConsumer() - Constructor for class com.bank.payment.consumers.PaymentConsumer
- PaymentController - Class in com.bank.payment.controllers
-
REST controller for handling payment operations.
- PaymentController() - Constructor for class com.bank.payment.controllers.PaymentController
- paymentDescription() - Method in record class com.bank.payment.dtos.ConclusionPaymentDto
-
Returns the value of the
paymentDescription
record component. - paymentDescription() - Method in record class com.bank.payment.dtos.PaymentAnalyzeDto
-
Returns the value of the
paymentDescription
record component. - PaymentDto - Class in com.bank.payment.dtos
-
DTO for payment information.
- PaymentDto(String, BigDecimal) - Constructor for class com.bank.payment.dtos.PaymentDto
- PaymentEventDto - Class in com.bank.payment.dtos
-
DTO for payment events.
- PaymentEventDto() - Constructor for class com.bank.payment.dtos.PaymentEventDto
- PaymentEventPublisher - Class in com.bank.payment.publishers
-
Publisher for sending payment-related events to account microservice via RabbitMQ.
- PaymentEventPublisher() - Constructor for class com.bank.payment.publishers.PaymentEventPublisher
- PaymentGenerateCodePublisher - Class in com.bank.payment.publishers
-
Publisher for sending email to generate a new confirmation code for payments.
- PaymentGenerateCodePublisher() - Constructor for class com.bank.payment.publishers.PaymentGenerateCodePublisher
- PaymentModel - Class in com.bank.payment.models
-
Represents a payment in the payment microservice.
- PaymentModel() - Constructor for class com.bank.payment.models.PaymentModel
- PaymentNotFoundException - Exception Class in com.bank.payment.exceptions
-
Exception thrown when a payment is not found.
- PaymentNotFoundException() - Constructor for exception class com.bank.payment.exceptions.PaymentNotFoundException
- PaymentReceiverEventPublisher - Class in com.bank.payment.publishers
-
Publisher for sending payment receiver events to account microservice via RabbitMQ.
- PaymentReceiverEventPublisher() - Constructor for class com.bank.payment.publishers.PaymentReceiverEventPublisher
- PaymentRepository - Interface in com.bank.payment.repository
-
Repository interface for
PaymentModel
entities. - PaymentSenderEventPublisher - Class in com.bank.payment.publishers
-
Publisher for sending payment sender events to account microservice via RabbitMQ.
- PaymentSenderEventPublisher() - Constructor for class com.bank.payment.publishers.PaymentSenderEventPublisher
- PaymentService - Interface in com.bank.payment.services
-
Interface for Payment Service that defines methods for handling payment operations.
- PaymentServiceImpl - Class in com.bank.payment.services.impl
- PaymentServiceImpl() - Constructor for class com.bank.payment.services.impl.PaymentServiceImpl
- PaymentStatus - Enum Class in com.bank.payment.enums
-
Enum representing the status of a payment.
- PaymentType - Enum Class in com.bank.payment.enums
-
Enum representing different types of payments.
- PIX - Enum constant in enum class com.bank.payment.enums.PaymentType
- PixConsumer - Class in com.bank.payment.consumers
-
Consumer for Pix-related events received from account microservice via RabbitMQ.
- PixConsumer() - Constructor for class com.bank.payment.consumers.PixConsumer
- PixEventDto - Class in com.bank.payment.dtos
-
Represents a Pix event to be transferred in the account microservice.
- PixEventDto() - Constructor for class com.bank.payment.dtos.PixEventDto
- pixKey() - Method in record class com.bank.payment.dtos.ConclusionPaymentDto
-
Returns the value of the
pixKey
record component. - PixModel - Class in com.bank.payment.models
-
Represents a Pix key in the payment microservice.
- PixModel() - Constructor for class com.bank.payment.models.PixModel
- PixNotFoundException - Exception Class in com.bank.payment.exceptions
-
Exception thrown when a Pix key is not found.
- PixNotFoundException() - Constructor for exception class com.bank.payment.exceptions.PixNotFoundException
- PixRepository - Interface in com.bank.payment.repository
-
Repository interface for
PixModel
entities. - PixService - Interface in com.bank.payment.services
-
Interface for Pix Service that defines methods for handling Pix operations.
- PixServiceImpl - Class in com.bank.payment.services.impl
- PixServiceImpl() - Constructor for class com.bank.payment.services.impl.PixServiceImpl
- publishAccountEvent(AccountEventDto, ActionType) - Method in class com.bank.payment.publishers.AccountEventPublisher
-
Publishes an account event to the account event exchange.
- publishEventNewCodeConfirmation(String) - Method in class com.bank.payment.publishers.PaymentGenerateCodePublisher
-
Publishes an event to request a new confirmation code for the given email.
- publishPaymentEvent(PaymentEventDto) - Method in class com.bank.payment.publishers.PaymentEventPublisher
-
Publishes a payment event to the payment event exchange.
- publishPaymentReceiverEvent(AccountEventDto, ActionType) - Method in class com.bank.payment.publishers.PaymentReceiverEventPublisher
-
Publishes a payment receiver event to the payment receive exchange.
- publishPaymentSenderEvent(AccountEventDto, ActionType) - Method in class com.bank.payment.publishers.PaymentSenderEventPublisher
-
Publishes a payment sender event to the payment sender exchange.
R
- RabbitmqConfig - Class in com.bank.payment.configs
-
Configuration class for RabbitMQ setup in the payment microservice.
- RabbitmqConfig() - Constructor for class com.bank.payment.configs.RabbitmqConfig
- rabbitTemplate() - Method in class com.bank.payment.configs.RabbitmqConfig
- requestNewCodeQueue - Variable in class com.bank.payment.configs.RabbitmqConfig
- requestNewCodeQueue() - Method in class com.bank.payment.configs.RabbitmqConfig
- RestExceptionHandler - Class in com.bank.payment.exceptions
-
Global exception handler for the payment microservice.
- RestExceptionHandler() - Constructor for class com.bank.payment.exceptions.RestExceptionHandler
- reviewPaymentBeforeProcessing(Long, String, PaymentAnalyzeDto) - Method in class com.bank.payment.services.impl.PaymentServiceImpl
- reviewPaymentBeforeProcessing(Long, String, PaymentAnalyzeDto) - Method in interface com.bank.payment.services.PaymentService
-
Analyzes both accounts (sender and receiver) and the Pix key to ensure that the payment can be processed.
S
- save(AccountModel) - Method in interface com.bank.payment.services.AccountService
-
Saves an AccountModel to the database.
- save(AccountModel) - Method in class com.bank.payment.services.impl.AccountServiceImp
- save(KnownPixModel) - Method in class com.bank.payment.services.impl.KnownPixServiceImp
- save(KnownPixModel) - Method in interface com.bank.payment.services.KnownPixService
-
Saves a KnownPixModel to the database.
- save(PixModel) - Method in class com.bank.payment.services.impl.PixServiceImpl
- save(PixModel) - Method in interface com.bank.payment.services.PixService
-
Saves a PixModel to the database.
- savePayment(PaymentModel) - Method in class com.bank.payment.services.impl.PaymentServiceImpl
- savePayment(PaymentModel) - Method in interface com.bank.payment.services.PaymentService
-
Saves a payment model to the database and publishes an event for the payment save and other microservices.
- sendPaymentQueue - Variable in class com.bank.payment.configs.RabbitmqConfig
- sendPaymentQueue() - Method in class com.bank.payment.configs.RabbitmqConfig
- sendPix(ConclusionPaymentDto) - Method in class com.bank.payment.consumers.PaymentConsumer
-
Listens for confirmation of payment and sends the Pix payment.
- sendPix(ConclusionPaymentDto) - Method in class com.bank.payment.services.impl.PaymentServiceImpl
- sendPix(ConclusionPaymentDto) - Method in interface com.bank.payment.services.PaymentService
-
Sends a Pix transactions to the receiver's account after the payment has been analyzed and confirmed.
T
- toAccountEventDto() - Method in class com.bank.payment.models.AccountModel
- toAccountModel() - Method in class com.bank.payment.dtos.AccountEventDto
- toPixModel() - Method in class com.bank.payment.dtos.PixEventDto
- toString() - Method in record class com.bank.payment.dtos.ConclusionPaymentDto
-
Returns a string representation of this record class.
- toString() - Method in record class com.bank.payment.dtos.PaymentAnalyzeDto
-
Returns a string representation of this record class.
- TransferBalanceToYourselfException - Exception Class in com.bank.payment.exceptions
-
Exception thrown when a user attempts to transfer balance to themselves.
- TransferBalanceToYourselfException() - Constructor for exception class com.bank.payment.exceptions.TransferBalanceToYourselfException
- TransferInsuficientBalanceException - Exception Class in com.bank.payment.exceptions
-
Exception thrown when there is insufficient balance to complete a transfer.
- TransferInsuficientBalanceException() - Constructor for exception class com.bank.payment.exceptions.TransferInsuficientBalanceException
U
- UPDATE - Enum constant in enum class com.bank.payment.enums.ActionType
- updateBalanceReceive(AccountModel) - Method in interface com.bank.payment.services.AccountService
-
Updates the balance of the account receiving a payment.
- updateBalanceReceive(AccountModel) - Method in class com.bank.payment.services.impl.AccountServiceImp
- updateBalanceSender(AccountModel) - Method in interface com.bank.payment.services.AccountService
-
Updates the balance of the account sending a payment.
- updateBalanceSender(AccountModel) - Method in class com.bank.payment.services.impl.AccountServiceImp
V
- valueOf(String) - Static method in enum class com.bank.payment.enums.ActionType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.bank.payment.enums.CurrencyType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.bank.payment.enums.PaymentStatus
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.bank.payment.enums.PaymentType
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class com.bank.payment.enums.ActionType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.bank.payment.enums.CurrencyType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.bank.payment.enums.PaymentStatus
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.bank.payment.enums.PaymentType
-
Returns an array containing the constants of this enum class, in the order they are declared.
All Classes and Interfaces|All Packages|Serialized Form