All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cl.transbank.onepay.util.RequestBuilder Maven / Gradle / Ivy

There is a newer version: 5.0.0
Show newest version
package cl.transbank.onepay.util;

import cl.transbank.onepay.Onepay;
import cl.transbank.onepay.exception.SignatureException;
import cl.transbank.onepay.model.Options;
import cl.transbank.onepay.model.ShoppingCart;
import cl.transbank.onepay.net.GetTransactionNumberRequest;
import cl.transbank.onepay.net.NullifyTransactionRequest;
import cl.transbank.onepay.net.SendTransactionRequest;

public interface RequestBuilder {
    SendTransactionRequest buildSendTransactionRequest(ShoppingCart cart, Onepay.Channel channel, String externalUniqueNumber, Options options)
            throws SignatureException;
    GetTransactionNumberRequest buildGetTransactionNumberRequest(String occ, String externalUniqueNumber, Options options)
            throws SignatureException;
    NullifyTransactionRequest buildNullifyTransactionRequest(long amount, String occ, String externalUniqueNumber,
                                                             String authorizationCode, Options options) throws SignatureException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy