com.svea.businessobjects.paymentgw.SveaPmtGwBusinessObjectFactory Maven / Gradle / Ivy
The newest version!
package com.svea.businessobjects.paymentgw;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.notima.generic.businessobjects.BasicBusinessObjectFactory;
import org.notima.generic.businessobjects.BusinessPartner;
import org.notima.generic.businessobjects.BusinessPartnerList;
import org.notima.generic.businessobjects.DunningRun;
import org.notima.generic.businessobjects.Invoice;
import org.notima.generic.businessobjects.Order;
import org.notima.generic.businessobjects.PaymentTerm;
import org.notima.generic.businessobjects.PriceList;
import org.notima.generic.businessobjects.Product;
import org.notima.generic.businessobjects.ProductCategory;
import org.notima.generic.businessobjects.Tax;
import org.notima.generic.businessobjects.exception.NoSuchTenantException;
import org.notima.generic.ifacebusinessobjects.FactoringReservation;
import com.svea.webpay.paymentgw.PaymentGwClient;
import com.svea.webpay.paymentgw.entity.Customer;
import com.svea.webpay.paymentgw.entity.Transaction;
public class SveaPmtGwBusinessObjectFactory extends BasicBusinessObjectFactory <
PaymentGwClient,
Object, // Invoice
com.svea.webpay.paymentgw.entity.Transaction, // Order
Object, // Product
com.svea.webpay.paymentgw.entity.Customer, // BusinessPartner
Object // Tenant (UG)
>
{
private PaymentGwClient client = null;
/**
* To initialize this object factory it must be initialized with credentials.
*
* @param cardMerchantId
* @param cardSecretWord
*/
public void init(Integer cardMerchantId, String cardSecretWord) {
client = new PaymentGwClient(cardMerchantId, cardSecretWord);
}
@Override
public String getSystemName() {
return "SveaPaymentGateway";
}
@Override
public BusinessPartnerList