Closed TwinMist closed 5 years ago
I did a test of GroupOutgoingCallingPlanRedirectingModifyListRequest
and received an error response from the server. It looks like there's an issue with the handling of abstract classes, in this case the DepartmentKey
class. I'm working on a fix.
thanks for the fix, can you include a example how this should be coded? cheers
What I was using to test:
$departmentKey = (new GroupDepartmentKey())
->setServiceProviderId('Service Provider ID')
->setGroupId('Group ID')
->setName('Department Name');
$permissions = (new OutgoingCallingPlanRedirectingPermissionsModify())
->setGroup(true)
->setLocal(true)
->setTollFree(true)
->setToll(true)
->setInternational(false)
->setOperatorAssisted(false)
->setChargeableDirectoryAssisted(false)
->setSpecialServicesI(false)
->setSpecialServicesII(false)
->setPremiumServicesI(false)
->setPremiumServicesII(false)
->setCasual(false)
->setUrlDialing(false)
->setUnknown(false);
$departmentPermissions = (new OutgoingCallingPlanRedirectingDepartmentPermissionsModify())
->setDepartmentKey($departmentKey)
->setPermissions($permissions);
$request = (new GroupOutgoingCallingPlanRedirectingModifyListRequest())
->setServiceProviderId('Service Provider ID')
->setGroupId('Group ID')
->addDepartmentPermissions($departmentPermissions);
$response = $ocip->groupOutgoingCallingPlanRedirectingModifyListRequest($request);
Hi, how would you include the groupPermissions into the same request thanks
$permissions = (new OutgoingCallingPlanRedirectingPermissionsModify())
->setGroup(true)
->setLocal(true)
->setTollFree(true)
->setToll(true)
->setInternational(false)
->setOperatorAssisted(false)
->setChargeableDirectoryAssisted(false)
->setSpecialServicesI(false)
->setSpecialServicesII(false)
->setPremiumServicesI(false)
->setPremiumServicesII(false)
->setCasual(false)
->setUrlDialing(false)
->setUnknown(false);
$request = (new GroupOutgoingCallingPlanRedirectingModifyListRequest())
->setServiceProviderId('Service Provider ID')
->setGroupId('Group ID')
->setGroupPermissions($permissions);
$response = $ocip->groupOutgoingCallingPlanRedirectingModifyListRequest($request);
Hi Do you have a example how you would change the GroupOutgoingCallingPlanRedirecting. for a department
thanks