<?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 => 'main.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 => 'main.wsdl',
    \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_CLASSMAP => \Straxus\FarfetchSDK\ClassMap::get(),
);
/**
 * Samples for Update ServiceType
 */
$update = new \Straxus\FarfetchSDK\Service\Update($options);
/**
 * Sample call for UpdateBoArtigosRefFar operation/method
 */
if ($update->UpdateBoArtigosRefFar(new \Straxus\FarfetchSDK\Model\UpdateBoArtigosRefFar()) !== false) {
    print_r($update->getResult());
} else {
    print_r($update->getLastError());
}
/**
 * Samples for Get ServiceType
 */
$get = new \Straxus\FarfetchSDK\Service\Get($options);
/**
 * Sample call for GetPossibleDuplicates operation/method
 */
if ($get->GetPossibleDuplicates(new \Straxus\FarfetchSDK\Model\GetPossibleDuplicates()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetBrandRegions operation/method
 */
if ($get->GetBrandRegions(new \Straxus\FarfetchSDK\Model\GetBrandRegions()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetAllStock operation/method
 */
if ($get->GetAllStock(new \Straxus\FarfetchSDK\Model\GetAllStock()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetAllStockWithStoreBarcodes operation/method
 */
if ($get->GetAllStockWithStoreBarcodes(new \Straxus\FarfetchSDK\Model\GetAllStockWithStoreBarcodes()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetBoxName operation/method
 */
if ($get->GetBoxName(new \Straxus\FarfetchSDK\Model\GetBoxName()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetBoxes operation/method
 */
if ($get->GetBoxes(new \Straxus\FarfetchSDK\Model\GetBoxes()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetDefaultCountries operation/method
 */
if ($get->GetDefaultCountries(new \Straxus\FarfetchSDK\Model\GetDefaultCountries()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetList operation/method
 */
if ($get->GetList(new \Straxus\FarfetchSDK\Model\GetList()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetColourTypes operation/method
 */
if ($get->GetColourTypes(new \Straxus\FarfetchSDK\Model\GetColourTypes()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetComposition operation/method
 */
if ($get->GetComposition(new \Straxus\FarfetchSDK\Model\GetComposition()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetMainView operation/method
 */
if ($get->GetMainView(new \Straxus\FarfetchSDK\Model\GetMainView()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetMeasures operation/method
 */
if ($get->GetMeasures(new \Straxus\FarfetchSDK\Model\GetMeasures()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetPropValueNameById operation/method
 */
if ($get->GetPropValueNameById(new \Straxus\FarfetchSDK\Model\GetPropValueNameById()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetPropValueIdByName operation/method
 */
if ($get->GetPropValueIdByName(new \Straxus\FarfetchSDK\Model\GetPropValueIdByName()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetProperty operation/method
 */
if ($get->GetProperty(new \Straxus\FarfetchSDK\Model\GetProperty()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetSizeHelpId operation/method
 */
if ($get->GetSizeHelpId(new \Straxus\FarfetchSDK\Model\GetSizeHelpId()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetSizes operation/method
 */
if ($get->GetSizes(new \Straxus\FarfetchSDK\Model\GetSizes()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetStock operation/method
 */
if ($get->GetStock(new \Straxus\FarfetchSDK\Model\GetStock()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetStoreItems operation/method
 */
if ($get->GetStoreItems(new \Straxus\FarfetchSDK\Model\GetStoreItems()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetStorePrice operation/method
 */
if ($get->GetStorePrice(new \Straxus\FarfetchSDK\Model\GetStorePrice()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetWebsiteDescription operation/method
 */
if ($get->GetWebsiteDescription(new \Straxus\FarfetchSDK\Model\GetWebsiteDescription()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetSKUandDesingerID operation/method
 */
if ($get->GetSKUandDesingerID(new \Straxus\FarfetchSDK\Model\GetSKUandDesingerID()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetParentItemId operation/method
 */
if ($get->GetParentItemId(new \Straxus\FarfetchSDK\Model\GetParentItemId()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetFFItemId operation/method
 */
if ($get->GetFFItemId(new \Straxus\FarfetchSDK\Model\GetFFItemId()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetFFItemUrl operation/method
 */
if ($get->GetFFItemUrl(new \Straxus\FarfetchSDK\Model\GetFFItemUrl()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetGender operation/method
 */
if ($get->GetGender(new \Straxus\FarfetchSDK\Model\GetGender()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetMaterialCategory operation/method
 */
if ($get->GetMaterialCategory(new \Straxus\FarfetchSDK\Model\GetMaterialCategory()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetMaterial operation/method
 */
if ($get->GetMaterial(new \Straxus\FarfetchSDK\Model\GetMaterial()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetCategories operation/method
 */
if ($get->GetCategories(new \Straxus\FarfetchSDK\Model\GetCategories()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetSizeRangesFiltered operation/method
 */
if ($get->GetSizeRangesFiltered(new \Straxus\FarfetchSDK\Model\GetSizeRangesFiltered()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetSlots operation/method
 */
if ($get->GetSlots(new \Straxus\FarfetchSDK\Model\GetSlots()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetOpenSlots operation/method
 */
if ($get->GetOpenSlots(new \Straxus\FarfetchSDK\Model\GetOpenSlots()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetSonId operation/method
 */
if ($get->GetSonId(new \Straxus\FarfetchSDK\Model\GetSonId()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetSonIdForOrderManagement operation/method
 */
if ($get->GetSonIdForOrderManagement(new \Straxus\FarfetchSDK\Model\GetSonIdForOrderManagement()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetDesignerIdsForSeasonBrand operation/method
 */
if ($get->GetDesignerIdsForSeasonBrand(new \Straxus\FarfetchSDK\Model\GetDesignerIdsForSeasonBrand()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetAllPictures operation/method
 */
if ($get->GetAllPictures(new \Straxus\FarfetchSDK\Model\GetAllPictures()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetAllPicturesByBarcode operation/method
 */
if ($get->GetAllPicturesByBarcode(new \Straxus\FarfetchSDK\Model\GetAllPicturesByBarcode()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetAllSizeRangesInUse operation/method
 */
if ($get->GetAllSizeRangesInUse(new \Straxus\FarfetchSDK\Model\GetAllSizeRangesInUse()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetTransportationProperties operation/method
 */
if ($get->GetTransportationProperties(new \Straxus\FarfetchSDK\Model\GetTransportationProperties()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetProductTransportationProperties operation/method
 */
if ($get->GetProductTransportationProperties(new \Straxus\FarfetchSDK\Model\GetProductTransportationProperties()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Samples for Save ServiceType
 */
$save = new \Straxus\FarfetchSDK\Service\Save($options);
/**
 * Sample call for SaveGeoBrandPrices operation/method
 */
if ($save->SaveGeoBrandPrices(new \Straxus\FarfetchSDK\Model\SaveGeoBrandPrices()) !== false) {
    print_r($save->getResult());
} else {
    print_r($save->getLastError());
}
/**
 * Samples for Associate ServiceType
 */
$associate = new \Straxus\FarfetchSDK\Service\Associate($options);
/**
 * Sample call for AssociateToChildProduct operation/method
 */
if ($associate->AssociateToChildProduct(new \Straxus\FarfetchSDK\Model\AssociateToChildProduct()) !== false) {
    print_r($associate->getResult());
} else {
    print_r($associate->getLastError());
}
/**
 * Sample call for AssociateProduct operation/method
 */
if ($associate->AssociateProduct(new \Straxus\FarfetchSDK\Model\AssociateProduct()) !== false) {
    print_r($associate->getResult());
} else {
    print_r($associate->getLastError());
}
/**
 * Sample call for AssociateProductWithVat operation/method
 */
if ($associate->AssociateProductWithVat(new \Straxus\FarfetchSDK\Model\AssociateProductWithVat()) !== false) {
    print_r($associate->getResult());
} else {
    print_r($associate->getLastError());
}
/**
 * Samples for Exist ServiceType
 */
$exist = new \Straxus\FarfetchSDK\Service\Exist($options);
/**
 * Sample call for existSKU operation/method
 */
if ($exist->existSKU(new \Straxus\FarfetchSDK\Model\ExistSKU()) !== false) {
    print_r($exist->getResult());
} else {
    print_r($exist->getLastError());
}
/**
 * Samples for Is ServiceType
 */
$is = new \Straxus\FarfetchSDK\Service\Is($options);
/**
 * Sample call for isBrandVisible operation/method
 */
if ($is->isBrandVisible(new \Straxus\FarfetchSDK\Model\IsBrandVisible()) !== false) {
    print_r($is->getResult());
} else {
    print_r($is->getLastError());
}
/**
 * Sample call for IsBrandSeasonDesignerIdListBound operation/method
 */
if ($is->IsBrandSeasonDesignerIdListBound(new \Straxus\FarfetchSDK\Model\IsBrandSeasonDesignerIdListBound()) !== false) {
    print_r($is->getResult());
} else {
    print_r($is->getLastError());
}
/**
 * Samples for Getnd ServiceType
 */
$getnd = new \Straxus\FarfetchSDK\Service\Getnd($options);
/**
 * Sample call for Get2ndLevelCats operation/method
 */
if ($getnd->Get2ndLevelCats(new \Straxus\FarfetchSDK\Model\Get2ndLevelCats()) !== false) {
    print_r($getnd->getResult());
} else {
    print_r($getnd->getLastError());
}
/**
 * Samples for Search ServiceType
 */
$search = new \Straxus\FarfetchSDK\Service\Search($options);
/**
 * Sample call for SearchSizeScalesForProductCreation operation/method
 */
if ($search->SearchSizeScalesForProductCreation(new \Straxus\FarfetchSDK\Model\SearchSizeScalesForProductCreation()) !== false) {
    print_r($search->getResult());
} else {
    print_r($search->getLastError());
}
/**
 * Samples for Create ServiceType
 */
$create = new \Straxus\FarfetchSDK\Service\Create($options);
/**
 * Sample call for CreateProduct operation/method
 */
if ($create->CreateProduct(new \Straxus\FarfetchSDK\Model\CreateProduct()) !== false) {
    print_r($create->getResult());
} else {
    print_r($create->getLastError());
}
/**
 * Sample call for CreateProductWithUuid operation/method
 */
if ($create->CreateProductWithUuid(new \Straxus\FarfetchSDK\Model\CreateProductWithUuid()) !== false) {
    print_r($create->getResult());
} else {
    print_r($create->getLastError());
}
/**
 * Sample call for CreateProductWithUuidAndVat operation/method
 */
if ($create->CreateProductWithUuidAndVat(new \Straxus\FarfetchSDK\Model\CreateProductWithUuidAndVat()) !== false) {
    print_r($create->getResult());
} else {
    print_r($create->getLastError());
}
/**
 * Samples for Insert ServiceType
 */
$insert = new \Straxus\FarfetchSDK\Service\Insert($options);
/**
 * Sample call for InsertMaterials operation/method
 */
if ($insert->InsertMaterials(new \Straxus\FarfetchSDK\Model\InsertMaterials()) !== false) {
    print_r($insert->getResult());
} else {
    print_r($insert->getLastError());
}
/**
 * Sample call for InsertSizesQuantity operation/method
 */
if ($insert->InsertSizesQuantity(new \Straxus\FarfetchSDK\Model\InsertSizesQuantity()) !== false) {
    print_r($insert->getResult());
} else {
    print_r($insert->getLastError());
}
/**
 * Sample call for InsertStoreBarcode operation/method
 */
if ($insert->InsertStoreBarcode(new \Straxus\FarfetchSDK\Model\InsertStoreBarcode()) !== false) {
    print_r($insert->getResult());
} else {
    print_r($insert->getLastError());
}
/**
 * Samples for Product ServiceType
 */
$product = new \Straxus\FarfetchSDK\Service\Product($options);
/**
 * Sample call for ProductPriceUpdate operation/method
 */
if ($product->ProductPriceUpdate(new \Straxus\FarfetchSDK\Model\ProductPriceUpdate()) !== false) {
    print_r($product->getResult());
} else {
    print_r($product->getLastError());
}
/**
 * Samples for Add ServiceType
 */
$add = new \Straxus\FarfetchSDK\Service\Add($options);
/**
 * Sample call for AddCountryOfOriginToItem operation/method
 */
if ($add->AddCountryOfOriginToItem(new \Straxus\FarfetchSDK\Model\AddCountryOfOriginToItem()) !== false) {
    print_r($add->getResult());
} else {
    print_r($add->getLastError());
}
/**
 * Sample call for AddDesignerIdToBrandSeasonList operation/method
 */
if ($add->AddDesignerIdToBrandSeasonList(new \Straxus\FarfetchSDK\Model\AddDesignerIdToBrandSeasonList()) !== false) {
    print_r($add->getResult());
} else {
    print_r($add->getLastError());
}
/**
 * Samples for Mapp ServiceType
 */
$mapp = new \Straxus\FarfetchSDK\Service\Mapp($options);
/**
 * Sample call for MappDuplicates operation/method
 */
if ($mapp->MappDuplicates(new \Straxus\FarfetchSDK\Model\MappDuplicates()) !== false) {
    print_r($mapp->getResult());
} else {
    print_r($mapp->getLastError());
}
