Ayesha shirur

Generation

testsTue, 31 Jan 2023

public void processPayment(ConsumerPaymentRequest consumerPaymentRequest) throws PaymentServiceException, IOException { String userId = consumerPaymentRequest.getIdentity().getUserId(); log.info("Consumer Payment validation: {}", consumerPaymentRequest); PaymentRequest paymentRequest = populatePaymentRequest(consumerPaymentRequest); log.info("Payment Request JSON ::" + gson.toJson(paymentRequest)); //validate(consumerPaymentRequest); String payment_id = createPayment(paymentRequest); paymentRequest.setPaymentId(payment_id); log.info("Created payment wit payment id: {}", payment_id); for (MetaData contactDetail : consumerPaymentRequest.getContactDetailList()) { PaymentAuthCreateRequest paymentAuthCreateRequest = populatePaymentAuthCreateRequest(contactDetail, consumerPaymentRequest.getClaimData(), paymentRequest, consumerPaymentRequest.getRepairOrder()); String paId = paymentAuthorizationManagementService.createPaymentAuthorization(paymentAuthCreateRequest); consumerPaymentContactsRepository.save(createConsumerPaymentContactsRecord( contactDetail, userId, paId)); log.info("Created the Payment Auth Entity with paId: {}", paId); ConsumerPaymentMobileRequest consumerPaymentMobileRequest = new ConsumerPaymentMobileRequest(consumerPaymentRequest.getClaimData(), contactDetail, consumerPaymentRequest.getRepairOrder(), payment_id); mobileAppNotifyHelper.invokePushNotification(consumerPaymentMobileRequest, paId, SEND); }

## Getting Started ### Prerequisites - Java 8 - Maven - [JavaCC](https://javacc.org/) - [INSTALL_DIR]/lib/javacc.jar - [INSTALL_DIR]/lib/javacc-maven-plugin.jar - STS or Eclipse (optional) ### Installing 1. Checkout repository 2. Add to your Java project, and reference in your pom.xml 3. Edit `[INSTALL_DIR]/config/config.properties` ## Running the tests To run the tests, you will need to modify the `config.properties` file, and include a `test.java.directory` property that points to a directory where you have Java source files that you want to test. ## Deployment To deploy, modify the `config.properties` file, and include a `deploy.java.directory` property that points to a directory where you have Java source files that you want to deploy. ## Built With * [javacc](https://jav

Questions about programming?Chat with your personal AI assistant