We are using calcinai XeroPHP framework in our web service. We have 3 different Branding Themes for our contacts and I know all this branding themes ID's.
To assign BrandingTheme to existing contact I see special method in Contact class:
public function setBrandingTheme(BrandingTheme $value)
{
$this->propertyUpdated('BrandingTheme', $value);
$this->_data['BrandingTheme'] = $value;
return $this;
}
As I see I need to pass BrandingTheme object to this method, but I don't see any way how to get or create this object? For example I need to set "Direct Debit" branding theme for contact, and I know that this branding theme have id "7ab6b4da-d5ed-4fdc-b9da-f359aafb63cf" in Xero.
What PHP code I need to use to set this BrandingTheme to contact? How I can get BrandingTheme object to pass to method?