@Override public Void inTransaction(final EntitySqlDaoWrapperFactory<EntitySqlDao> entitySqlDaoWrapperFactory) throws Exception { entitySqlDaoWrapperFactory.become(PaymentSqlDao.class).updatePaymentStatus(paymentId.toString(), processedAmount, processedCurrency, paymentStatus.toString(), context); entitySqlDaoWrapperFactory.become(PaymentAttemptSqlDao.class).updatePaymentAttemptStatus(attemptId.toString(), paymentStatus.toString(), gatewayErrorCode, gatewayErrorMsg, context); return null; } });
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((accountId == null) ? 0 : accountId.hashCode()); result = prime * result + ((amount == null) ? 0 : amount.hashCode()); result = prime * result + ((effectiveDate == null) ? 0 : effectiveDate.hashCode()); result = prime * result + ((invoiceId == null) ? 0 : invoiceId.hashCode()); result = prime * result + ((paymentId == null) ? 0 : paymentId.hashCode()); result = prime * result + ((paymentNumber == null) ? 0 : paymentNumber.hashCode()); result = prime * result + ((status == null) ? 0 : status.hashCode()); return result; }
@Override public Void call() throws Exception { bipDao.invoicePaymentPosted(paymentInfo.getAccountId(), paymentInfo.getPaymentId(), paymentInfo.getStatus().toString(), createCallContext(paymentInfo)); return null; } });
@Override public int hashCode() { int result = super.hashCode(); result = 31 * result + (accountId != null ? accountId.hashCode() : 0); result = 31 * result + (invoiceId != null ? invoiceId.hashCode() : 0); result = 31 * result + (paymentId != null ? paymentId.hashCode() : 0); result = 31 * result + (paymentMethodId != null ? paymentMethodId.hashCode() : 0); result = 31 * result + (processingStatus != null ? processingStatus.hashCode() : 0); result = 31 * result + (effectiveDate != null ? effectiveDate.hashCode() : 0); result = 31 * result + (gatewayErrorCode != null ? gatewayErrorCode.hashCode() : 0); result = 31 * result + (gatewayErrorMsg != null ? gatewayErrorMsg.hashCode() : 0); result = 31 * result + (requestedAmount != null ? requestedAmount.hashCode() : 0); result = 31 * result + (requestedCurrency != null ? requestedCurrency.hashCode() : 0); return result; }
public PaymentJson(final Payment payment, final String bundleExternalKey, final List<RefundJson> refunds, final List<ChargebackJson> chargebacks, @Nullable final List<AuditLog> auditLogs) { this(payment.getAmount(), payment.getPaidAmount(), payment.getAccountId().toString(), payment.getInvoiceId().toString(), payment.getId().toString(), payment.getPaymentNumber().toString(), payment.getPaymentMethodId().toString(), payment.getEffectiveDate(), payment.getEffectiveDate(), payment.getAttempts().size(), payment.getCurrency().toString(), payment.getPaymentStatus().toString(), payment.getAttempts().get(payment.getAttempts().size() - 1).getGatewayErrorCode(), payment.getAttempts().get(payment.getAttempts().size() - 1).getGatewayErrorMsg(), bundleExternalKey, refunds, chargebacks, toAuditLogJson(auditLogs)); }
@Override public int hashCode() { int result = super.hashCode(); result = 31 * result + (accountId != null ? accountId.hashCode() : 0); result = 31 * result + (invoiceId != null ? invoiceId.hashCode() : 0); result = 31 * result + (paymentMethodId != null ? paymentMethodId.hashCode() : 0); result = 31 * result + (amount != null ? amount.hashCode() : 0); result = 31 * result + (currency != null ? currency.hashCode() : 0); result = 31 * result + (processedAmount != null ? processedAmount.hashCode() : 0); result = 31 * result + (processedCurrency != null ? processedCurrency.hashCode() : 0); result = 31 * result + (effectiveDate != null ? effectiveDate.hashCode() : 0); result = 31 * result + (paymentNumber != null ? paymentNumber.hashCode() : 0); result = 31 * result + (paymentStatus != null ? paymentStatus.hashCode() : 0); result = 31 * result + (extFirstPaymentRefId != null ? extFirstPaymentRefId.hashCode() : 0); result = 31 * result + (extSecondPaymentRefId != null ? extSecondPaymentRefId.hashCode() : 0); return result; }
bipDao.invoicePaymentPosted(paymentInfo.getAccountId(), paymentInfo.getId(), paymentInfo.getPaymentStatus().toString(), internalCallContext);
lastPaymentStatus = cur.getPaymentStatus().toString();