<?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 => 'https://americasrvwarranty.inlinecrm.com/services/secureWebService.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 => 'https://americasrvwarranty.inlinecrm.com/services/secureWebService.svc?wsdl',
    \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_CLASSMAP => ClassMap::get(),
);
/**
 * Samples for Import ServiceType
 */
$import = new \ServiceType\Import($options);
/**
 * Sample call for ImportLead operation/method
 */
if ($import->ImportLead(new \StructType\ImportLead()) !== false) {
    print_r($import->getResult());
} else {
    print_r($import->getLastError());
}
/**
 * Samples for Get ServiceType
 */
$get = new \ServiceType\Get($options);
/**
 * Sample call for GetVehicleModelsByMake operation/method
 */
if ($get->GetVehicleModelsByMake(new \StructType\GetVehicleModelsByMake()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetVehicleMakes operation/method
 */
if ($get->GetVehicleMakes(new \StructType\GetVehicleMakes()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetVehicleTrimLevelsByModel operation/method
 */
if ($get->GetVehicleTrimLevelsByModel(new \StructType\GetVehicleTrimLevelsByModel()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetPickListValues operation/method
 */
if ($get->GetPickListValues(new \StructType\GetPickListValues()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetEntitiesByTargetDates2 operation/method
 */
if ($get->GetEntitiesByTargetDates2(new \StructType\GetEntitiesByTargetDates2()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetEntitiesByTargetDates operation/method
 */
if ($get->GetEntitiesByTargetDates(new \StructType\GetEntitiesByTargetDates()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetEntityById operation/method
 */
if ($get->GetEntityById(new \StructType\GetEntityById()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetEntityByQuoteId operation/method
 */
if ($get->GetEntityByQuoteId(new \StructType\GetEntityByQuoteId()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetAddressById operation/method
 */
if ($get->GetAddressById(new \StructType\GetAddressById()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetVehicles operation/method
 */
if ($get->GetVehicles(new \StructType\GetVehicles()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetMostRecentCampaignTarget operation/method
 */
if ($get->GetMostRecentCampaignTarget(new \StructType\GetMostRecentCampaignTarget()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetCampaignTargetById operation/method
 */
if ($get->GetCampaignTargetById(new \StructType\GetCampaignTargetById()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetRates1 operation/method
 */
if ($get->GetRates1(new \StructType\GetRates1()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetRates2 operation/method
 */
if ($get->GetRates2(new \StructType\GetRates2()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetRates3 operation/method
 */
if ($get->GetRates3(new \StructType\GetRates3()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetTermsDocId operation/method
 */
if ($get->GetTermsDocId(new \StructType\GetTermsDocId()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetCoverageInfo operation/method
 */
if ($get->GetCoverageInfo(new \StructType\GetCoverageInfo()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetPolicyPayments operation/method
 */
if ($get->GetPolicyPayments(new \StructType\GetPolicyPayments()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetPoliciesByDateRange operation/method
 */
if ($get->GetPoliciesByDateRange(new \StructType\GetPoliciesByDateRange()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetPoliciesByDateRange2 operation/method
 */
if ($get->GetPoliciesByDateRange2(new \StructType\GetPoliciesByDateRange2()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetPoliciesByDateRange3 operation/method
 */
if ($get->GetPoliciesByDateRange3(new \StructType\GetPoliciesByDateRange3()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetQuoteById operation/method
 */
if ($get->GetQuoteById(new \StructType\GetQuoteById()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetPolicyById operation/method
 */
if ($get->GetPolicyById(new \StructType\GetPolicyById()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetNotes operation/method
 */
if ($get->GetNotes(new \StructType\GetNotes()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetDispositions operation/method
 */
if ($get->GetDispositions(new \StructType\GetDispositions()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetRecordQueueEntries operation/method
 */
if ($get->GetRecordQueueEntries(new \StructType\GetRecordQueueEntries()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetAccounts operation/method
 */
if ($get->GetAccounts(new \StructType\GetAccounts()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetLeadSources operation/method
 */
if ($get->GetLeadSources(new \StructType\GetLeadSources()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetCampaigns operation/method
 */
if ($get->GetCampaigns(new \StructType\GetCampaigns()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetUsers operation/method
 */
if ($get->GetUsers(new \StructType\GetUsers()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetUserByUserId operation/method
 */
if ($get->GetUserByUserId(new \StructType\GetUserByUserId()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetPolicyAttachments operation/method
 */
if ($get->GetPolicyAttachments(new \StructType\GetPolicyAttachments()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetAttachment operation/method
 */
if ($get->GetAttachment(new \StructType\GetAttachment()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetAttachmentDocument operation/method
 */
if ($get->GetAttachmentDocument(new \StructType\GetAttachmentDocument()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetWebTabResults operation/method
 */
if ($get->GetWebTabResults(new \StructType\GetWebTabResults()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetQueryReportResults operation/method
 */
if ($get->GetQueryReportResults(new \StructType\GetQueryReportResults()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Samples for Validate ServiceType
 */
$validate = new \ServiceType\Validate($options);
/**
 * Sample call for ValidatePostalCode operation/method
 */
if ($validate->ValidatePostalCode(new \StructType\ValidatePostalCode()) !== false) {
    print_r($validate->getResult());
} else {
    print_r($validate->getLastError());
}
/**
 * Samples for Search ServiceType
 */
$search = new \ServiceType\Search($options);
/**
 * Sample call for SearchEntity operation/method
 */
if ($search->SearchEntity(new \StructType\SearchEntity()) !== false) {
    print_r($search->getResult());
} else {
    print_r($search->getLastError());
}
/**
 * Samples for Update ServiceType
 */
$update = new \ServiceType\Update($options);
/**
 * Sample call for UpdateEntity operation/method
 */
if ($update->UpdateEntity(new \StructType\UpdateEntity()) !== false) {
    print_r($update->getResult());
} else {
    print_r($update->getLastError());
}
/**
 * Sample call for UpdateVehicle operation/method
 */
if ($update->UpdateVehicle(new \StructType\UpdateVehicle()) !== false) {
    print_r($update->getResult());
} else {
    print_r($update->getLastError());
}
/**
 * Sample call for UpdatePolicy operation/method
 */
if ($update->UpdatePolicy(new \StructType\UpdatePolicy()) !== false) {
    print_r($update->getResult());
} else {
    print_r($update->getLastError());
}
/**
 * Samples for Insert ServiceType
 */
$insert = new \ServiceType\Insert($options);
$insert->setSoapHeaderFileName($FileName);
$insert->setSoapHeaderLength($Length);
$insert->setSoapHeaderDescription($description);
$insert->setSoapHeaderPolicyId($policyId);
$insert->setSoapHeaderType($type);
/**
 * Sample call for InsertVehicle operation/method
 */
if ($insert->InsertVehicle(new \StructType\InsertVehicle()) !== false) {
    print_r($insert->getResult());
} else {
    print_r($insert->getLastError());
}
/**
 * Sample call for InsertCampaignTarget operation/method
 */
if ($insert->InsertCampaignTarget(new \StructType\InsertCampaignTarget()) !== false) {
    print_r($insert->getResult());
} else {
    print_r($insert->getLastError());
}
/**
 * Sample call for InsertTargetResponse operation/method
 */
if ($insert->InsertTargetResponse(new \StructType\InsertTargetResponse()) !== false) {
    print_r($insert->getResult());
} else {
    print_r($insert->getLastError());
}
/**
 * Sample call for InsertQuote operation/method
 */
if ($insert->InsertQuote(new \StructType\InsertQuote()) !== false) {
    print_r($insert->getResult());
} else {
    print_r($insert->getLastError());
}
/**
 * Sample call for InsertQuoteAndEntity operation/method
 */
if ($insert->InsertQuoteAndEntity(new \StructType\InsertQuoteAndEntity()) !== false) {
    print_r($insert->getResult());
} else {
    print_r($insert->getLastError());
}
/**
 * Sample call for InsertQuotePayment operation/method
 */
if ($insert->InsertQuotePayment(new \StructType\InsertQuotePayment()) !== false) {
    print_r($insert->getResult());
} else {
    print_r($insert->getLastError());
}
/**
 * Sample call for InsertPolicyPayment operation/method
 */
if ($insert->InsertPolicyPayment(new \StructType\InsertPolicyPayment()) !== false) {
    print_r($insert->getResult());
} else {
    print_r($insert->getLastError());
}
/**
 * Sample call for InsertNote operation/method
 */
if ($insert->InsertNote(new \StructType\InsertNote()) !== false) {
    print_r($insert->getResult());
} else {
    print_r($insert->getLastError());
}
/**
 * Sample call for InsertAttachment operation/method
 */
if ($insert->InsertAttachment(new \StructType\AttachmentFileInfo()) !== false) {
    print_r($insert->getResult());
} else {
    print_r($insert->getLastError());
}
/**
 * Sample call for InsertPhoneCall operation/method
 */
if ($insert->InsertPhoneCall(new \StructType\InsertPhoneCall()) !== false) {
    print_r($insert->getResult());
} else {
    print_r($insert->getLastError());
}
/**
 * Sample call for InsertEntityIntoQueue operation/method
 */
if ($insert->InsertEntityIntoQueue(new \StructType\InsertEntityIntoQueue()) !== false) {
    print_r($insert->getResult());
} else {
    print_r($insert->getLastError());
}
/**
 * Samples for Convert ServiceType
 */
$convert = new \ServiceType\Convert($options);
/**
 * Sample call for ConvertLeadToContact operation/method
 */
if ($convert->ConvertLeadToContact(new \StructType\ConvertLeadToContact()) !== false) {
    print_r($convert->getResult());
} else {
    print_r($convert->getLastError());
}
/**
 * Sample call for ConvertLeadVehicleToContact operation/method
 */
if ($convert->ConvertLeadVehicleToContact(new \StructType\ConvertLeadVehicleToContact()) !== false) {
    print_r($convert->getResult());
} else {
    print_r($convert->getLastError());
}
/**
 * Samples for Sell ServiceType
 */
$sell = new \ServiceType\Sell($options);
/**
 * Sample call for SellQuote operation/method
 */
if ($sell->SellQuote(new \StructType\SellQuote()) !== false) {
    print_r($sell->getResult());
} else {
    print_r($sell->getLastError());
}
/**
 * Samples for Cancel ServiceType
 */
$cancel = new \ServiceType\Cancel($options);
/**
 * Sample call for CancelPolicy operation/method
 */
if ($cancel->CancelPolicy(new \StructType\CancelPolicy()) !== false) {
    print_r($cancel->getResult());
} else {
    print_r($cancel->getLastError());
}
/**
 * Samples for Remove ServiceType
 */
$remove = new \ServiceType\Remove($options);
/**
 * Sample call for RemoveRecordQueueEntry operation/method
 */
if ($remove->RemoveRecordQueueEntry(new \StructType\RemoveRecordQueueEntry()) !== false) {
    print_r($remove->getResult());
} else {
    print_r($remove->getLastError());
}
/**
 * Samples for Decode ServiceType
 */
$decode = new \ServiceType\Decode($options);
/**
 * Sample call for DecodeVin operation/method
 */
if ($decode->DecodeVin(new \StructType\DecodeVin()) !== false) {
    print_r($decode->getResult());
} else {
    print_r($decode->getLastError());
}
