jongotlin / arbetsgivarintyg
Installs: 5 614
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Type:package
Requires
- php: ^7.2
- ext-soap: *
Requires (Dev)
- wsdl2phpgenerator/wsdl2phpgenerator: dev-ssl
This package is auto-updated.
Last update: 2024-10-24 15:24:13 UTC
README
This package includes (php)-classes for arbetsgivarintyg.nu's Soap-api.
The classes are generated with Wsdl2phpgenerator. If api is updated classes can be re-generated with php generate.php
.
Install with composer
composer require jongotlin/arbetsgivarintyg
Example
$options = [ 'stream_context' => stream_context_create([ 'ssl' => [ 'verify_peer' => false, 'verify_peer_name' => false, 'allow_self_signed' => true, ] ]), ]; $service = new BizTalkServiceInstance($options); $apiAuthentication = new ApiAuthentication('ftgXXXX'); $apiAuthentication->setApiNyckel('xxx'); $salaryBlock = new ApiCertificate_SalaryBlock(); $salaryBlock->setTypAvLon(LoneTyp::Daglon); $salaryBlock->setAr(2020); $salaryBlock->setBelopp(250.0); $apiCertificate = new ApiCertificate(); $apiCertificate->setLon($salaryBlock); $arrayOfApiCertificate = new ArrayOfApiCertificate(); $arrayOfApiCertificate->setApiCertifikat([$apiCertificate]); $importRequest = new ImportRequest(); $importRequest->setArbetsgivarintyg($arrayOfApiCertificate); $importRequest->setAutentisering($apiAuthentication); $arbetsgivarintygServiceRequest = new ArbetsgivarintygServiceRequest($importRequest); $arbetsgivarintygServiceResponse = $service->SaveArbetsgivarintygService($arbetsgivarintygServiceRequest); echo $arbetsgivarintygServiceResponse->getResponse()->getResultCode(); echo $arbetsgivarintygServiceResponse->getResponse()->getResultMessage();