<?php
/**
 * This file aims to show you how to use this generated package.
 * In addition, the goal is to show which methods are available and the fist needed parameter(s)
 * You have to use an associative array such as:
 * - the key must be a constant beginning with WSDL_ from AbstractSoapClientbase class each generated ServiceType class extends this class
 * - the value must be the corresponding key value (each option matches a {@link http://www.php.net/manual/en/soapclient.soapclient.php} option)
 * $options = array(
 * \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_URL => 'http://www.bosch-tahsilat.com/VendorPayment/VendorPaymentService.svc?wsdl',
 * \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_TRACE => true,
 * \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_LOGIN => 'you_secret_login',
 * \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_PASSWORD => 'you_secret_password',
 * );
 * etc....
 */
require_once __DIR__ . '/vendor/autoload.php';
/**
 * Minimal options
 */
$options = array(
    \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_URL => 'http://www.bosch-tahsilat.com/VendorPayment/VendorPaymentService.svc?wsdl',
    \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_CLASSMAP => ClassMap::get(),
);
/**
 * Samples for Get ServiceType
 */
$get = new \ServiceType\Get($options);
/**
 * Sample call for GetCampaignList operation/method
 */
if ($get->GetCampaignList(new \StructType\GetCampaignList()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetTransactionByOrderReferenceForStatusInquiry operation/method
 */
if ($get->GetTransactionByOrderReferenceForStatusInquiry(new \StructType\GetTransactionByOrderReferenceForStatusInquiry()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetTransactionByOrderReference operation/method
 */
if ($get->GetTransactionByOrderReference(new \StructType\GetTransactionByOrderReference()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetTransactionByClientOrderReference operation/method
 */
if ($get->GetTransactionByClientOrderReference(new \StructType\GetTransactionByClientOrderReference()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetVirtualPosList operation/method
 */
if ($get->GetVirtualPosList(new \StructType\GetVirtualPosList()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetVirtualPosListBinNumber operation/method
 */
if ($get->GetVirtualPosListBinNumber(new \StructType\GetVirtualPosListBinNumber()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetVirtualPosListWithBinInfo operation/method
 */
if ($get->GetVirtualPosListWithBinInfo(new \StructType\GetVirtualPosListWithBinInfo()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for Get3DContentDefaultPos operation/method
 */
if ($get->Get3DContentDefaultPos(new \StructType\Get3DContentDefaultPos()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for Get3DContent operation/method
 */
if ($get->Get3DContent(new \StructType\Get3DContent()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Samples for Process ServiceType
 */
$process = new \ServiceType\Process($options);
/**
 * Sample call for ProcessPayment operation/method
 */
if ($process->ProcessPayment(new \StructType\ProcessPayment()) !== false) {
    print_r($process->getResult());
} else {
    print_r($process->getLastError());
}
/**
 * Samples for Commit ServiceType
 */
$commit = new \ServiceType\Commit($options);
/**
 * Sample call for CommitPayment operation/method
 */
if ($commit->CommitPayment(new \StructType\CommitPayment()) !== false) {
    print_r($commit->getResult());
} else {
    print_r($commit->getLastError());
}
/**
 * Samples for Sale ServiceType
 */
$sale = new \ServiceType\Sale($options);
/**
 * Sample call for SaleDefaultPos operation/method
 */
if ($sale->SaleDefaultPos(new \StructType\SaleDefaultPos()) !== false) {
    print_r($sale->getResult());
} else {
    print_r($sale->getLastError());
}
/**
 * Sample call for Sale operation/method
 */
if ($sale->Sale(new \StructType\Sale()) !== false) {
    print_r($sale->getResult());
} else {
    print_r($sale->getLastError());
}
/**
 * Samples for Send ServiceType
 */
$send = new \ServiceType\Send($options);
/**
 * Sample call for SendFailed3DResultPro operation/method
 */
if ($send->SendFailed3DResultPro(new \StructType\SendFailed3DResultPro()) !== false) {
    print_r($send->getResult());
} else {
    print_r($send->getLastError());
}
/**
 * Sample call for SendApproved3DResultPro operation/method
 */
if ($send->SendApproved3DResultPro(new \StructType\SendApproved3DResultPro()) !== false) {
    print_r($send->getResult());
} else {
    print_r($send->getLastError());
}
/**
 * Sample call for SendFailed3DResult operation/method
 */
if ($send->SendFailed3DResult(new \StructType\SendFailed3DResult()) !== false) {
    print_r($send->getResult());
} else {
    print_r($send->getLastError());
}
/**
 * Sample call for SendApproved3DResult operation/method
 */
if ($send->SendApproved3DResult(new \StructType\SendApproved3DResult()) !== false) {
    print_r($send->getResult());
} else {
    print_r($send->getLastError());
}
/**
 * Samples for Cancel ServiceType
 */
$cancel = new \ServiceType\Cancel($options);
/**
 * Sample call for CancelByReferenceCode operation/method
 */
if ($cancel->CancelByReferenceCode(new \StructType\CancelByReferenceCode()) !== false) {
    print_r($cancel->getResult());
} else {
    print_r($cancel->getLastError());
}
/**
 * Sample call for CancelByClientReferenceCode operation/method
 */
if ($cancel->CancelByClientReferenceCode(new \StructType\CancelByClientReferenceCode()) !== false) {
    print_r($cancel->getResult());
} else {
    print_r($cancel->getLastError());
}
/**
 * Samples for Recurring ServiceType
 */
$recurring = new \ServiceType\Recurring($options);
/**
 * Sample call for RecurringPayment operation/method
 */
if ($recurring->RecurringPayment(new \StructType\RecurringPayment()) !== false) {
    print_r($recurring->getResult());
} else {
    print_r($recurring->getLastError());
}
/**
 * Sample call for RecurringPaymentQuery operation/method
 */
if ($recurring->RecurringPaymentQuery(new \StructType\RecurringPaymentQuery()) !== false) {
    print_r($recurring->getResult());
} else {
    print_r($recurring->getLastError());
}
/**
 * Samples for Save ServiceType
 */
$save = new \ServiceType\Save($options);
/**
 * Sample call for SaveCreditCard operation/method
 */
if ($save->SaveCreditCard(new \StructType\SaveCreditCard()) !== false) {
    print_r($save->getResult());
} else {
    print_r($save->getLastError());
}
