Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Copyright 2010-2013 Ning, Inc.
*
* Ning licenses this file to you under the Apache License, version 2.0
* (the "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*/
package org.killbill.billing.payment.dao;
import java.math.BigDecimal;
import java.util.List;
import java.util.UUID;
import org.joda.time.DateTime;
import org.killbill.billing.callcontext.InternalCallContext;
import org.killbill.billing.callcontext.InternalTenantContext;
import org.killbill.billing.catalog.api.Currency;
import org.killbill.billing.payment.api.TransactionStatus;
import org.killbill.billing.payment.api.TransactionType;
import org.killbill.billing.util.entity.Pagination;
public interface PaymentDao {
public int failOldPendingTransactions(TransactionStatus newTransactionStatus, DateTime createdBeforeDate, InternalCallContext context);
public PaymentAttemptModelDao insertPaymentAttemptWithProperties(PaymentAttemptModelDao attempt, InternalCallContext context);
public void updatePaymentAttempt(UUID paymentAttemptId, UUID transactionId, String state, InternalCallContext context);
public List getPaymentAttemptsByState(String stateName, DateTime createdBeforeDate, InternalTenantContext context);
public List getPaymentAttempts(String paymentExternalKey, InternalTenantContext context);
public List getPaymentAttemptByTransactionExternalKey(String externalKey, InternalTenantContext context);
public List getPaymentTransactionsByExternalKey(String transactionExternalKey, InternalTenantContext context);
public PaymentModelDao getPaymentByExternalKey(String externalKey, InternalTenantContext context);
public Pagination getPayments(String pluginName, Long offset, Long limit, InternalTenantContext context);
public Pagination searchPayments(String searchKey, Long offset, Long limit, InternalTenantContext context);
public PaymentModelDao insertPaymentWithFirstTransaction(PaymentModelDao payment, PaymentTransactionModelDao paymentTransaction, InternalCallContext context);
public PaymentTransactionModelDao updatePaymentWithNewTransaction(UUID paymentId, PaymentTransactionModelDao paymentTransaction, InternalCallContext context);
public void updatePaymentAndTransactionOnCompletion(UUID accountId, UUID paymentId, TransactionType transactionType, String currentPaymentStateName, String lastPaymentSuccessStateName, UUID transactionId,
TransactionStatus paymentStatus, BigDecimal processedAmount, Currency processedCurrency,
String gatewayErrorCode, String gatewayErrorMsg, InternalCallContext context);
public PaymentModelDao getPayment(UUID paymentId, InternalTenantContext context);
public PaymentTransactionModelDao getPaymentTransaction(UUID transactionId, InternalTenantContext context);
public List getPaymentsForAccount(UUID accountId, InternalTenantContext context);
public List getPaymentsByStates(String [] states, DateTime createdBeforeDate, DateTime createdAfterDate, int limit, InternalTenantContext context);
public List getTransactionsForAccount(UUID accountId, InternalTenantContext context);
public List getTransactionsForPayment(UUID paymentId, InternalTenantContext context);
public PaymentAttemptModelDao getPaymentAttempt(UUID attemptId, InternalTenantContext context);
public PaymentMethodModelDao insertPaymentMethod(PaymentMethodModelDao paymentMethod, InternalCallContext context);
public PaymentMethodModelDao getPaymentMethod(UUID paymentMethodId, InternalTenantContext context);
public PaymentMethodModelDao getPaymentMethodByExternalKey(String paymentMethodExternalKey, InternalTenantContext context);
public PaymentMethodModelDao getPaymentMethodIncludedDeleted(UUID paymentMethodId, InternalTenantContext context);
public PaymentMethodModelDao getPaymentMethodByExternalKeyIncludedDeleted(String paymentMethodExternalKey, InternalTenantContext context);
public List getPaymentMethods(UUID accountId, InternalTenantContext context);
public Pagination getPaymentMethods(String pluginName, Long offset, Long limit, InternalTenantContext context);
public Pagination searchPaymentMethods(String searchKey, Long offset, Long limit, InternalTenantContext context);
public void deletedPaymentMethod(UUID paymentMethodId, InternalCallContext context);
public List refreshPaymentMethods(UUID accountId, String pluginName, List paymentMethods, InternalCallContext context);
}