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

cl.transbank.webpay.wrapper.WSCompleteWebpayServiceWrapper Maven / Gradle / Ivy

There is a newer version: 5.0.0
Show newest version
package cl.transbank.webpay.wrapper;

import cl.transbank.webpay.Webpay;
import cl.transbank.webpay.security.SoapSignature;
import com.transbank.webpay.wswebpay.service.*;

import java.util.List;

public class WSCompleteWebpayServiceWrapper extends ServiceWrapperBase {

    private WSCompleteWebpayService port;

    protected WSCompleteWebpayServiceWrapper(Webpay.Environment environment, SoapSignature signature) throws Exception {
        super(environment, signature);
        this.port = initPort(
                WSCompleteWebpayService.class,
                WSCompleteWebpayServiceImplService.SERVICE,
                WSCompleteWebpayServiceImplService.WSCompleteWebpayServiceImplPort,
                "transbank-ws-complete-webpay-service.wsdl"
        );
    }

    public WsCompleteInitTransactionOutput initCompleteTransaction(WsCompleteInitTransactionInput input){
        return port.initCompleteTransaction(input);
    }

    public WsCompleteQuerySharesOutput queryShare(QueryShare queryShare){
        return port.queryShare(queryShare.getToken(), queryShare.getBuyOrder(), queryShare.getShareNumber());
    }


    @Deprecated
    public WsCompleteAuthorizeOutput autorize(String valor, List input){
        return authorize(valor, input);
    }

    public WsCompleteAuthorizeOutput authorize(String valor, List input){
        return port.authorize(valor, input);
    }


    public void acknowledgeCompleteTransaction(String token){
        port.acknowledgeCompleteTransaction(token);
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy