diff --git a/src/Shoplo/PaczkaWRuchu/Model/CancelPackRequest.php b/src/Shoplo/PaczkaWRuchu/Model/CancelPackRequest.php new file mode 100644 index 0000000..53697e6 --- /dev/null +++ b/src/Shoplo/PaczkaWRuchu/Model/CancelPackRequest.php @@ -0,0 +1,20 @@ +PackCode = $PackCode; + } +} \ No newline at end of file diff --git a/src/Shoplo/PaczkaWRuchu/Model/CancelPackResponse.php b/src/Shoplo/PaczkaWRuchu/Model/CancelPackResponse.php new file mode 100644 index 0000000..83c833b --- /dev/null +++ b/src/Shoplo/PaczkaWRuchu/Model/CancelPackResponse.php @@ -0,0 +1,17 @@ +setAuthParams($this->partnerId, $this->partnerKey); + + $rsp = $this->PutCustomerPackCanceled($cancelPackRequest); + + $response = null; + if ($rsp->PutCustomerPackCanceledResult && $rsp->PutCustomerPackCanceledResult->any) { + $rspXml = simplexml_load_string($rsp->PutCustomerPackCanceledResult->any); + $response = new CancelPackResponse((array)$rspXml->NewDataSet); + } + + return $response; + } }