Version Notes
Version 1.2.0
Download this release
Release Info
| Developer | Speedy JSC |
| Extension | Speedy_Shipping |
| Version | 1.2.0 |
| Comparing to | |
| See all releases | |
Code changes from version 1.1.5 to 1.2.0
- app/code/community/Speedy/Speedyshipping/Block/Adminhtml/Billoflading.php +0 -0
- app/code/community/Speedy/Speedyshipping/Block/Adminhtml/Requestcourier/Grid.php +0 -0
- app/code/community/Speedy/Speedyshipping/Block/Adminhtml/Requestcourier/Renderer/Cancelbutton.php +0 -0
- app/code/community/Speedy/Speedyshipping/Block/Adminhtml/Requestcourier/Renderer/Created.php +0 -0
- app/code/community/Speedy/Speedyshipping/Block/Adminhtml/Requestcourier/Renderer/Datecreated.php +0 -0
- app/code/community/Speedy/Speedyshipping/Block/Adminhtml/Requestcourier/Renderer/Requestbutton.php +0 -0
- app/code/community/Speedy/Speedyshipping/Block/Adminhtml/Requestcourier/Renderer/Viewbol.php +0 -0
- app/code/community/Speedy/Speedyshipping/Block/Adminhtml/Requestcourier/Renderer/Vieworder.php +0 -0
- app/code/community/Speedy/Speedyshipping/Block/Adminhtml/Requestcourier/Requestcontainer.php +0 -0
- app/code/community/Speedy/Speedyshipping/Block/Adminhtml/Sales/Order/Create/Billing/Address.php +0 -0
- app/code/community/Speedy/Speedyshipping/Block/Adminhtml/Sales/Order/Create/Shipping/Address.php +0 -0
- app/code/community/Speedy/Speedyshipping/Block/Adminhtml/Sales/Order/Create/Shipping/Form.php +0 -0
- app/code/community/Speedy/Speedyshipping/Block/Adminhtml/Sales/Order/Create/Speedy/Form.php +0 -0
- app/code/community/Speedy/Speedyshipping/Block/Adminhtml/Sales/Order/Create/Totals.php +0 -0
- app/code/community/Speedy/Speedyshipping/Block/Adminhtml/System/Config/Form/Testbutton.php +0 -0
- app/code/community/Speedy/Speedyshipping/Block/Customer/Address/Edit.php +0 -0
- app/code/community/Speedy/Speedyshipping/Block/Onepage/Billing/Billing.php +0 -0
- app/code/community/Speedy/Speedyshipping/Block/Onepage/Paymentinfo.php +0 -0
- app/code/community/Speedy/Speedyshipping/Block/Onepage/Pickupform.php +0 -0
- app/code/community/Speedy/Speedyshipping/Block/Onepage/Shipping/Method/Available.php +0 -0
- app/code/community/Speedy/Speedyshipping/Block/Onepage/Shipping/Shipping.php +0 -0
- app/code/community/Speedy/Speedyshipping/Helper/Data.php +0 -0
- app/code/community/Speedy/Speedyshipping/Helper/Exceptionmap.php +0 -0
- app/code/community/Speedy/Speedyshipping/Helper/Transliterate.php +0 -0
- app/code/community/Speedy/Speedyshipping/Helper/Validate/Address.php +0 -0
- app/code/community/Speedy/Speedyshipping/Model/Autocomplete/Address.php +0 -0
- app/code/community/Speedy/Speedyshipping/Model/Carrier/Receiverdata/Receiverdata.php +0 -0
- app/code/community/Speedy/Speedyshipping/Model/Carrier/Senderdata/Senderdata.php +0 -0
- app/code/community/Speedy/Speedyshipping/Model/Carrier/Shippingmethod.php +13 -1
- app/code/community/Speedy/Speedyshipping/Model/Carrier/Source/Calculation.php +0 -0
- app/code/community/Speedy/Speedyshipping/Model/Carrier/Source/Deferreddays.php +0 -0
- app/code/community/Speedy/Speedyshipping/Model/Carrier/Source/Method.php +0 -0
- app/code/community/Speedy/Speedyshipping/Model/Carrier/Source/Office.php +0 -0
- app/code/community/Speedy/Speedyshipping/Model/Carrier/Source/Takingoffset.php +0 -0
- app/code/community/Speedy/Speedyshipping/Model/Observer.php +0 -0
- app/code/community/Speedy/Speedyshipping/Model/Rate/Result.php +0 -0
- app/code/community/Speedy/Speedyshipping/Model/Resource/Saveorder.php +0 -0
- app/code/community/Speedy/Speedyshipping/Model/Resource/Saveorder/Collection.php +0 -0
- app/code/community/Speedy/Speedyshipping/Model/Resource/Setup.php +0 -0
- app/code/community/Speedy/Speedyshipping/Model/Sales/Quote/Address/Rate.php +0 -0
- app/code/community/Speedy/Speedyshipping/Model/Saveorder.php +0 -0
- app/code/community/Speedy/Speedyshipping/controllers/AddressController.php +0 -0
- app/code/community/Speedy/Speedyshipping/controllers/Adminhtml/AddressController.php +0 -0
- app/code/community/Speedy/Speedyshipping/controllers/Adminhtml/CheckcredentialsController.php +0 -0
- app/code/community/Speedy/Speedyshipping/controllers/Adminhtml/PrintController.php +0 -0
- app/code/community/Speedy/Speedyshipping/etc/adminhtml.xml +0 -0
- app/code/community/Speedy/Speedyshipping/etc/config.xml +1 -1
- app/code/community/Speedy/Speedyshipping/etc/jstranslator.xml +0 -0
- app/code/community/Speedy/Speedyshipping/sql/speedyshippingmodule_setup/mysql4-install-1.0.3.php +0 -0
- app/code/community/Speedy/Speedyshipping/sql/speedyshippingmodule_setup/mysql4-upgrade-1.0.7-1.0.8.php +0 -0
- app/code/community/Speedy/Speedyshipping/sql/speedyshippingmodule_setup/mysql4-upgrade-1.0.8-1.0.9.php +0 -0
- app/design/adminhtml/default/default/layout/speedy_shipping.xml +0 -0
- app/design/adminhtml/default/default/template/speedy_speedyshipping/billoflading.phtml +0 -0
- app/design/adminhtml/default/default/template/speedy_speedyshipping/customer/edit/tab/addresses.phtml +0 -0
- app/design/adminhtml/default/default/template/speedy_speedyshipping/pickupform.phtml +0 -0
- app/design/adminhtml/default/default/template/speedy_speedyshipping/sales/order/create/billing/method/paymentInfo.phtml +0 -0
- app/design/adminhtml/default/default/template/speedy_speedyshipping/sales/order/create/form/address.phtml +0 -0
- app/design/adminhtml/default/default/template/speedy_speedyshipping/sales/order/create/shipping/method/form.phtml +0 -0
- app/design/adminhtml/default/default/template/speedy_speedyshipping/sales/order/create/totals.phtml +0 -0
- app/design/adminhtml/default/default/template/speedy_speedyshipping/system/config/testbutton.phtml +0 -0
- app/design/frontend/base/default/layout/speedy_shipping.xml +0 -0
- app/design/frontend/base/default/template/speedy_speedyshipping/checkout/onepage/billing.phtml +0 -0
- app/design/frontend/base/default/template/speedy_speedyshipping/checkout/onepage/payment_method/paymentInfo.phtml +0 -0
- app/design/frontend/base/default/template/speedy_speedyshipping/checkout/onepage/shipping.phtml +0 -0
- app/design/frontend/base/default/template/speedy_speedyshipping/checkout/onepage/shipping_method/available.phtml +0 -0
- app/design/frontend/base/default/template/speedy_speedyshipping/checkout/onepage/shipping_method/pickupform.phtml +0 -0
- app/design/frontend/base/default/template/speedy_speedyshipping/checkout/onepage/shipping_method/shipping_method.phtml +0 -0
- app/design/frontend/base/default/template/speedy_speedyshipping/customer/address/edit.phtml +0 -0
- app/etc/modules/Speedyshipping.xml +1 -1
- app/locale/bg_BG/speedyTranslate.csv +0 -0
- app/locale/en_US/speedyTranslate.csv +0 -0
- lib/SpeedyEPS/util/Util.class.php +0 -0
- lib/SpeedyEPS/ver01/AddrNomen.class.php +0 -0
- lib/SpeedyEPS/ver01/ClientException.class.php +0 -0
- lib/SpeedyEPS/ver01/ComplementaryServiceAllowance.class.php +0 -0
- lib/SpeedyEPS/ver01/EPSFacade.class.php +984 -773
- lib/SpeedyEPS/ver01/EPSInterface.class.php +703 -544
- lib/SpeedyEPS/ver01/FixedDiscountCardId.class.php +0 -0
- lib/SpeedyEPS/ver01/ParamAddress.class.php +614 -405
- lib/SpeedyEPS/ver01/ParamAddressSearch.class.php +32 -7
- lib/SpeedyEPS/ver01/ParamBarcodeInfo.class.php +0 -0
- lib/SpeedyEPS/ver01/ParamCalculation.class.php +937 -646
- lib/SpeedyEPS/ver01/ParamClientData.class.php +216 -216
- lib/SpeedyEPS/ver01/ParamClientSearch.class.php +0 -0
- lib/SpeedyEPS/ver01/ParamFilterCountry.class.php +138 -0
- lib/SpeedyEPS/ver01/ParamFilterSite.class.php +185 -135
- lib/SpeedyEPS/ver01/ParamLanguage.class.php +0 -0
- lib/SpeedyEPS/ver01/ParamOptionsBeforePayment.class.php +66 -0
- lib/SpeedyEPS/ver01/ParamOrder.class.php +0 -0
- lib/SpeedyEPS/ver01/ParamPDF.class.php +0 -0
- lib/SpeedyEPS/ver01/ParamPackings.class.php +66 -0
- lib/SpeedyEPS/ver01/ParamParcel.class.php +165 -140
- lib/SpeedyEPS/ver01/ParamParcelInfo.class.php +170 -87
- lib/SpeedyEPS/ver01/ParamPhoneNumber.class.php +0 -0
- lib/SpeedyEPS/ver01/ParamPicking.class.php +1232 -999
- lib/SpeedyEPS/ver01/ParamReturnServiceRequest.class.php +67 -0
- lib/SpeedyEPS/ver01/ParamReturnShipmentRequest.class.php +114 -0
- lib/SpeedyEPS/ver01/ParamSearchByRefNum.class.php +0 -0
- lib/SpeedyEPS/ver01/ParamSearchSecondaryPickings.class.php +81 -0
- lib/SpeedyEPS/ver01/ResultAddress.class.php +377 -313
- lib/SpeedyEPS/ver01/ResultAddressEx.class.php +380 -318
- lib/SpeedyEPS/ver01/ResultAddressSearch.class.php +0 -0
- lib/SpeedyEPS/ver01/ResultAddressString.class.php +62 -0
- lib/SpeedyEPS/ver01/ResultAmounts.class.php +590 -515
- lib/SpeedyEPS/ver01/ResultBOL.class.php +0 -0
- lib/SpeedyEPS/ver01/ResultCalculation.class.php +0 -0
- lib/SpeedyEPS/ver01/ResultCalculationMS.class.php +0 -0
- lib/SpeedyEPS/ver01/ResultClientData.class.php +0 -0
- lib/SpeedyEPS/ver01/ResultCommonObject.class.php +0 -0
- lib/SpeedyEPS/ver01/ResultCountry.class.php +157 -0
- lib/SpeedyEPS/ver01/ResultCourierService.class.php +0 -0
- lib/SpeedyEPS/ver01/ResultCourierServiceExt.class.php +0 -0
- lib/SpeedyEPS/ver01/ResultLogin.class.php +0 -0
- lib/SpeedyEPS/ver01/ResultMinMaxReal.class.php +0 -0
- lib/SpeedyEPS/ver01/ResultOffice.class.php +0 -0
- lib/SpeedyEPS/ver01/ResultOfficeEx.class.php +201 -136
- lib/SpeedyEPS/ver01/ResultOrderPickingInfo.class.php +0 -0
- lib/SpeedyEPS/ver01/ResultParcelInfo.class.php +0 -0
- lib/SpeedyEPS/ver01/ResultPhoneNumber.class.php +0 -0
- lib/SpeedyEPS/ver01/ResultPickingInfo.class.php +102 -0
- lib/SpeedyEPS/ver01/ResultQuarter.class.php +0 -0
- lib/SpeedyEPS/ver01/ResultSite.class.php +231 -129
- lib/SpeedyEPS/ver01/ResultSiteEx.class.php +0 -0
- lib/SpeedyEPS/ver01/ResultSpecialDeliveryRequirement.class.php +60 -60
- lib/SpeedyEPS/ver01/ResultState.class.php +76 -0
- lib/SpeedyEPS/ver01/ResultStreet.class.php +0 -0
- lib/SpeedyEPS/ver01/ResultTrackPicking.class.php +34 -0
- lib/SpeedyEPS/ver01/ResultTrackPickingEx.class.php +34 -1
- lib/SpeedyEPS/ver01/ResultWorkingTime.class.php +79 -0
- lib/SpeedyEPS/ver01/ServerException.class.php +0 -0
- lib/SpeedyEPS/ver01/Size.class.php +11 -0
- lib/SpeedyEPS/ver01/ValueAddress.class.php +1 -1
- lib/SpeedyEPS/ver01/soap/EPSSOAPInterfaceImpl.class.php +1413 -1077
- package.xml +6 -6
- skin/adminhtml/default/default/speedy/css/hideEditAddress.css +0 -0
- skin/adminhtml/default/default/speedy/css/images/animated-overlay.gif +0 -0
- skin/adminhtml/default/default/speedy/css/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
- skin/adminhtml/default/default/speedy/css/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
- skin/adminhtml/default/default/speedy/css/images/ui-bg_flat_10_000000_40x100.png +0 -0
- skin/adminhtml/default/default/speedy/css/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
- skin/adminhtml/default/default/speedy/css/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
- skin/adminhtml/default/default/speedy/css/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- skin/adminhtml/default/default/speedy/css/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
- skin/adminhtml/default/default/speedy/css/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
- skin/adminhtml/default/default/speedy/css/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
- skin/adminhtml/default/default/speedy/css/images/ui-icons_222222_256x240.png +0 -0
- skin/adminhtml/default/default/speedy/css/images/ui-icons_228ef1_256x240.png +0 -0
- skin/adminhtml/default/default/speedy/css/images/ui-icons_ef8c08_256x240.png +0 -0
- skin/adminhtml/default/default/speedy/css/images/ui-icons_ffd27a_256x240.png +0 -0
- skin/adminhtml/default/default/speedy/css/images/ui-icons_ffffff_256x240.png +0 -0
- skin/adminhtml/default/default/speedy/css/jquery-ui-1.10.2.custom.min.css +0 -0
- skin/adminhtml/default/default/speedy/css/jquery.autocomplete.css +0 -0
- skin/adminhtml/default/default/speedy/images/indicator.gif +0 -0
- skin/adminhtml/default/default/speedy/js/jquery-1.9.1.min.js +0 -0
- skin/adminhtml/default/default/speedy/js/jquery-ui-1.10.2.custom.min.js +0 -0
- skin/adminhtml/default/default/speedy/js/noconflict.js +0 -0
- skin/adminhtml/default/default/speedy/js/office_pickup.js +0 -0
- skin/adminhtml/default/default/speedy/js/validateAddress.js +0 -0
- skin/frontend/base/default/speedy/css/images/animated-overlay.gif +0 -0
- skin/frontend/base/default/speedy/css/images/images/animated-overlay.gif +0 -0
- skin/frontend/base/default/speedy/css/images/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
- skin/frontend/base/default/speedy/css/images/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
- skin/frontend/base/default/speedy/css/images/images/ui-bg_flat_10_000000_40x100.png +0 -0
- skin/frontend/base/default/speedy/css/images/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
- skin/frontend/base/default/speedy/css/images/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
- skin/frontend/base/default/speedy/css/images/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- skin/frontend/base/default/speedy/css/images/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
- skin/frontend/base/default/speedy/css/images/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
- skin/frontend/base/default/speedy/css/images/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
- skin/frontend/base/default/speedy/css/images/images/ui-icons_222222_256x240.png +0 -0
- skin/frontend/base/default/speedy/css/images/images/ui-icons_228ef1_256x240.png +0 -0
- skin/frontend/base/default/speedy/css/images/images/ui-icons_ef8c08_256x240.png +0 -0
- skin/frontend/base/default/speedy/css/images/images/ui-icons_ffd27a_256x240.png +0 -0
- skin/frontend/base/default/speedy/css/images/images/ui-icons_ffffff_256x240.png +0 -0
- skin/frontend/base/default/speedy/css/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
- skin/frontend/base/default/speedy/css/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
- skin/frontend/base/default/speedy/css/images/ui-bg_flat_10_000000_40x100.png +0 -0
- skin/frontend/base/default/speedy/css/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
- skin/frontend/base/default/speedy/css/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
- skin/frontend/base/default/speedy/css/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- skin/frontend/base/default/speedy/css/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
- skin/frontend/base/default/speedy/css/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
- skin/frontend/base/default/speedy/css/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
- skin/frontend/base/default/speedy/css/images/ui-icons_222222_256x240.png +0 -0
- skin/frontend/base/default/speedy/css/images/ui-icons_228ef1_256x240.png +0 -0
- skin/frontend/base/default/speedy/css/images/ui-icons_ef8c08_256x240.png +0 -0
- skin/frontend/base/default/speedy/css/images/ui-icons_ffd27a_256x240.png +0 -0
- skin/frontend/base/default/speedy/css/images/ui-icons_ffffff_256x240.png +0 -0
- skin/frontend/base/default/speedy/css/jquery-ui-1.10.2.custom.min.css +0 -0
- skin/frontend/base/default/speedy/css/jquery-ui-1.10.3.custom.min.css +0 -0
- skin/frontend/base/default/speedy/css/jquery.autocomplete.css +0 -0
- skin/frontend/base/default/speedy/images/indicator.gif +0 -0
- skin/frontend/base/default/speedy/js/jquery-1.9.1.min.js +0 -0
- skin/frontend/base/default/speedy/js/jquery-ui-1.10.3.custom.min.js +0 -0
- skin/frontend/base/default/speedy/js/noconflict.js +0 -0
- skin/frontend/base/default/speedy/js/office_pickup.js +0 -0
app/code/community/Speedy/Speedyshipping/Block/Adminhtml/Billoflading.php
CHANGED
|
File without changes
|
app/code/community/Speedy/Speedyshipping/Block/Adminhtml/Requestcourier/Grid.php
CHANGED
|
File without changes
|
app/code/community/Speedy/Speedyshipping/Block/Adminhtml/Requestcourier/Renderer/Cancelbutton.php
CHANGED
|
File without changes
|
app/code/community/Speedy/Speedyshipping/Block/Adminhtml/Requestcourier/Renderer/Created.php
CHANGED
|
File without changes
|
app/code/community/Speedy/Speedyshipping/Block/Adminhtml/Requestcourier/Renderer/Datecreated.php
CHANGED
|
File without changes
|
app/code/community/Speedy/Speedyshipping/Block/Adminhtml/Requestcourier/Renderer/Requestbutton.php
CHANGED
|
File without changes
|
app/code/community/Speedy/Speedyshipping/Block/Adminhtml/Requestcourier/Renderer/Viewbol.php
CHANGED
|
File without changes
|
app/code/community/Speedy/Speedyshipping/Block/Adminhtml/Requestcourier/Renderer/Vieworder.php
CHANGED
|
File without changes
|
app/code/community/Speedy/Speedyshipping/Block/Adminhtml/Requestcourier/Requestcontainer.php
CHANGED
|
File without changes
|
app/code/community/Speedy/Speedyshipping/Block/Adminhtml/Sales/Order/Create/Billing/Address.php
CHANGED
|
File without changes
|
app/code/community/Speedy/Speedyshipping/Block/Adminhtml/Sales/Order/Create/Shipping/Address.php
CHANGED
|
File without changes
|
app/code/community/Speedy/Speedyshipping/Block/Adminhtml/Sales/Order/Create/Shipping/Form.php
CHANGED
|
File without changes
|
app/code/community/Speedy/Speedyshipping/Block/Adminhtml/Sales/Order/Create/Speedy/Form.php
CHANGED
|
File without changes
|
app/code/community/Speedy/Speedyshipping/Block/Adminhtml/Sales/Order/Create/Totals.php
CHANGED
|
File without changes
|
app/code/community/Speedy/Speedyshipping/Block/Adminhtml/System/Config/Form/Testbutton.php
CHANGED
|
File without changes
|
app/code/community/Speedy/Speedyshipping/Block/Customer/Address/Edit.php
CHANGED
|
File without changes
|
app/code/community/Speedy/Speedyshipping/Block/Onepage/Billing/Billing.php
CHANGED
|
File without changes
|
app/code/community/Speedy/Speedyshipping/Block/Onepage/Paymentinfo.php
CHANGED
|
File without changes
|
app/code/community/Speedy/Speedyshipping/Block/Onepage/Pickupform.php
CHANGED
|
File without changes
|
app/code/community/Speedy/Speedyshipping/Block/Onepage/Shipping/Method/Available.php
CHANGED
|
File without changes
|
app/code/community/Speedy/Speedyshipping/Block/Onepage/Shipping/Shipping.php
CHANGED
|
File without changes
|
app/code/community/Speedy/Speedyshipping/Helper/Data.php
CHANGED
|
File without changes
|
app/code/community/Speedy/Speedyshipping/Helper/Exceptionmap.php
CHANGED
|
File without changes
|
app/code/community/Speedy/Speedyshipping/Helper/Transliterate.php
CHANGED
|
File without changes
|
app/code/community/Speedy/Speedyshipping/Helper/Validate/Address.php
CHANGED
|
File without changes
|
app/code/community/Speedy/Speedyshipping/Model/Autocomplete/Address.php
CHANGED
|
File without changes
|
app/code/community/Speedy/Speedyshipping/Model/Carrier/Receiverdata/Receiverdata.php
CHANGED
|
File without changes
|
app/code/community/Speedy/Speedyshipping/Model/Carrier/Senderdata/Senderdata.php
CHANGED
|
File without changes
|
app/code/community/Speedy/Speedyshipping/Model/Carrier/Shippingmethod.php
CHANGED
|
@@ -1177,7 +1177,9 @@ class Speedy_Speedyshipping_Model_Carrier_Shippingmethod extends Mage_Shipping_M
|
|
| 1177 |
Â
$paramCalculation->setFragile($this->_pickingData->fragile);
|
| 1178 |
Â
}
|
| 1179 |
Â
|
| 1180 |
-
|
|
Â
|
|
|
Â
|
|
| 1181 |
Â
|
| 1182 |
Â
$paramCalculation->setPayerType($this->_pickingData->payerType);
|
| 1183 |
Â
|
|
@@ -1185,6 +1187,16 @@ class Speedy_Speedyshipping_Model_Carrier_Shippingmethod extends Mage_Shipping_M
|
|
| 1185 |
Â
|
| 1186 |
Â
$paramCalculation->setTakingDate($this->_pickingData->takingDate);
|
| 1187 |
Â
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
| 1188 |
Â
|
| 1189 |
Â
/*
|
| 1190 |
Â
if (count($methods) == 1) {
|
| 1177 |
Â
$paramCalculation->setFragile($this->_pickingData->fragile);
|
| 1178 |
Â
}
|
| 1179 |
Â
|
| 1180 |
+
if (!($this->_pickingData->takeFromOfficeId)) {
|
| 1181 |
+
$paramCalculation->setReceiverSiteId($this->_receiverData->address->siteID);
|
| 1182 |
+
}
|
| 1183 |
Â
|
| 1184 |
Â
$paramCalculation->setPayerType($this->_pickingData->payerType);
|
| 1185 |
Â
|
| 1187 |
Â
|
| 1188 |
Â
$paramCalculation->setTakingDate($this->_pickingData->takingDate);
|
| 1189 |
Â
|
| 1190 |
+
if (Mage::getStoreConfig('carriers/speedyshippingmodule/bring_to_office') && Mage::getStoreConfig('carriers/speedyshippingmodule/choose_office')) {
|
| 1191 |
+
$paramCalculation->setWillBringToOfficeId(Mage::getStoreConfig('carriers/speedyshippingmodule/choose_office'));
|
| 1192 |
+
}
|
| 1193 |
+
|
| 1194 |
+
if ($this->_pickingData->takeFromOfficeId) {
|
| 1195 |
+
$paramCalculation->setOfficeToBeCalledId($this->_pickingData->takeFromOfficeId);
|
| 1196 |
+
} else {
|
| 1197 |
+
$paramCalculation->setOfficeToBeCalledId(null);
|
| 1198 |
+
}
|
| 1199 |
+
|
| 1200 |
Â
|
| 1201 |
Â
/*
|
| 1202 |
Â
if (count($methods) == 1) {
|
app/code/community/Speedy/Speedyshipping/Model/Carrier/Source/Calculation.php
CHANGED
|
File without changes
|
app/code/community/Speedy/Speedyshipping/Model/Carrier/Source/Deferreddays.php
CHANGED
|
File without changes
|
app/code/community/Speedy/Speedyshipping/Model/Carrier/Source/Method.php
CHANGED
|
File without changes
|
app/code/community/Speedy/Speedyshipping/Model/Carrier/Source/Office.php
CHANGED
|
File without changes
|
app/code/community/Speedy/Speedyshipping/Model/Carrier/Source/Takingoffset.php
CHANGED
|
File without changes
|
app/code/community/Speedy/Speedyshipping/Model/Observer.php
CHANGED
|
File without changes
|
app/code/community/Speedy/Speedyshipping/Model/Rate/Result.php
CHANGED
|
File without changes
|
app/code/community/Speedy/Speedyshipping/Model/Resource/Saveorder.php
CHANGED
|
File without changes
|
app/code/community/Speedy/Speedyshipping/Model/Resource/Saveorder/Collection.php
CHANGED
|
File without changes
|
app/code/community/Speedy/Speedyshipping/Model/Resource/Setup.php
CHANGED
|
File without changes
|
app/code/community/Speedy/Speedyshipping/Model/Sales/Quote/Address/Rate.php
CHANGED
|
File without changes
|
app/code/community/Speedy/Speedyshipping/Model/Saveorder.php
CHANGED
|
File without changes
|
app/code/community/Speedy/Speedyshipping/controllers/AddressController.php
CHANGED
|
File without changes
|
app/code/community/Speedy/Speedyshipping/controllers/Adminhtml/AddressController.php
CHANGED
|
File without changes
|
app/code/community/Speedy/Speedyshipping/controllers/Adminhtml/CheckcredentialsController.php
CHANGED
|
File without changes
|
app/code/community/Speedy/Speedyshipping/controllers/Adminhtml/PrintController.php
CHANGED
|
File without changes
|
app/code/community/Speedy/Speedyshipping/etc/adminhtml.xml
CHANGED
|
File without changes
|
app/code/community/Speedy/Speedyshipping/etc/config.xml
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
Â
<config>
|
| 3 |
Â
<modules>
|
| 4 |
Â
<Speedy_Speedyshipping>
|
| 5 |
-
<version>1.
|
| 6 |
Â
<depends>
|
| 7 |
Â
<Mage_Payment />
|
| 8 |
Â
<Mage_Shipping />
|
| 2 |
Â
<config>
|
| 3 |
Â
<modules>
|
| 4 |
Â
<Speedy_Speedyshipping>
|
| 5 |
+
<version>1.2.0</version>
|
| 6 |
Â
<depends>
|
| 7 |
Â
<Mage_Payment />
|
| 8 |
Â
<Mage_Shipping />
|
app/code/community/Speedy/Speedyshipping/etc/jstranslator.xml
CHANGED
|
File without changes
|
app/code/community/Speedy/Speedyshipping/sql/speedyshippingmodule_setup/mysql4-install-1.0.3.php
CHANGED
|
File without changes
|
app/code/community/Speedy/Speedyshipping/sql/speedyshippingmodule_setup/mysql4-upgrade-1.0.7-1.0.8.php
CHANGED
|
File without changes
|
app/code/community/Speedy/Speedyshipping/sql/speedyshippingmodule_setup/mysql4-upgrade-1.0.8-1.0.9.php
CHANGED
|
File without changes
|
app/design/adminhtml/default/default/layout/speedy_shipping.xml
CHANGED
|
File without changes
|
app/design/adminhtml/default/default/template/speedy_speedyshipping/billoflading.phtml
CHANGED
|
File without changes
|
app/design/adminhtml/default/default/template/speedy_speedyshipping/customer/edit/tab/addresses.phtml
CHANGED
|
File without changes
|
app/design/adminhtml/default/default/template/speedy_speedyshipping/pickupform.phtml
CHANGED
|
File without changes
|
app/design/adminhtml/default/default/template/speedy_speedyshipping/sales/order/create/billing/method/paymentInfo.phtml
CHANGED
|
File without changes
|
app/design/adminhtml/default/default/template/speedy_speedyshipping/sales/order/create/form/address.phtml
CHANGED
|
File without changes
|
app/design/adminhtml/default/default/template/speedy_speedyshipping/sales/order/create/shipping/method/form.phtml
CHANGED
|
File without changes
|
app/design/adminhtml/default/default/template/speedy_speedyshipping/sales/order/create/totals.phtml
CHANGED
|
File without changes
|
app/design/adminhtml/default/default/template/speedy_speedyshipping/system/config/testbutton.phtml
CHANGED
|
File without changes
|
app/design/frontend/base/default/layout/speedy_shipping.xml
CHANGED
|
File without changes
|
app/design/frontend/base/default/template/speedy_speedyshipping/checkout/onepage/billing.phtml
CHANGED
|
File without changes
|
app/design/frontend/base/default/template/speedy_speedyshipping/checkout/onepage/payment_method/paymentInfo.phtml
CHANGED
|
File without changes
|
app/design/frontend/base/default/template/speedy_speedyshipping/checkout/onepage/shipping.phtml
CHANGED
|
File without changes
|
app/design/frontend/base/default/template/speedy_speedyshipping/checkout/onepage/shipping_method/available.phtml
CHANGED
|
File without changes
|
app/design/frontend/base/default/template/speedy_speedyshipping/checkout/onepage/shipping_method/pickupform.phtml
CHANGED
|
File without changes
|
app/design/frontend/base/default/template/speedy_speedyshipping/checkout/onepage/shipping_method/shipping_method.phtml
CHANGED
|
File without changes
|
app/design/frontend/base/default/template/speedy_speedyshipping/customer/address/edit.phtml
CHANGED
|
File without changes
|
app/etc/modules/Speedyshipping.xml
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
Â
<Speedy_Speedyshipping>
|
| 4 |
Â
<active>true</active>
|
| 5 |
Â
<codePool>community</codePool>
|
| 6 |
-
<version>1.
|
| 7 |
Â
</Speedy_Speedyshipping>
|
| 8 |
Â
</modules>
|
| 9 |
Â
</config>
|
| 3 |
Â
<Speedy_Speedyshipping>
|
| 4 |
Â
<active>true</active>
|
| 5 |
Â
<codePool>community</codePool>
|
| 6 |
+
<version>1.2.0</version>
|
| 7 |
Â
</Speedy_Speedyshipping>
|
| 8 |
Â
</modules>
|
| 9 |
Â
</config>
|
app/locale/bg_BG/speedyTranslate.csv
CHANGED
|
File without changes
|
app/locale/en_US/speedyTranslate.csv
CHANGED
|
File without changes
|
lib/SpeedyEPS/util/Util.class.php
CHANGED
|
File without changes
|
lib/SpeedyEPS/ver01/AddrNomen.class.php
CHANGED
|
File without changes
|
lib/SpeedyEPS/ver01/ClientException.class.php
CHANGED
|
File without changes
|
lib/SpeedyEPS/ver01/ComplementaryServiceAllowance.class.php
CHANGED
|
File without changes
|
lib/SpeedyEPS/ver01/EPSFacade.class.php
CHANGED
|
@@ -1,774 +1,985 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
|
| 3 |
-
require_once 'ClientException.class.php';
|
| 4 |
-
require_once 'EPSInterface.class.php';
|
| 5 |
-
|
| 6 |
-
/**
|
| 7 |
-
* Speedy EPS Service
|
| 8 |
-
*/
|
| 9 |
-
class EPSFacade {
|
| 10 |
-
|
| 11 |
-
/**
|
| 12 |
-
* EPS Interface implementation
|
| 13 |
-
* @since 1.0
|
| 14 |
-
* @var EPSInterface
|
| 15 |
-
*/
|
| 16 |
-
private $_epsInterfaceImpl;
|
| 17 |
-
|
| 18 |
-
/**
|
| 19 |
-
* User name
|
| 20 |
-
* @since 1.0
|
| 21 |
-
* @var string
|
| 22 |
-
*/
|
| 23 |
-
private $_username;
|
| 24 |
-
|
| 25 |
-
/**
|
| 26 |
-
* User password
|
| 27 |
-
* @since 1.0
|
| 28 |
-
* @var string
|
| 29 |
-
*/
|
| 30 |
-
private $_password;
|
| 31 |
-
|
| 32 |
-
/**
|
| 33 |
-
* Result of login Speedy web service method clall
|
| 34 |
-
* @since 1.0
|
| 35 |
-
* @var ResultLogin
|
| 36 |
-
*/
|
| 37 |
-
private $_resultLogin;
|
| 38 |
-
|
| 39 |
-
/**
|
| 40 |
-
* Constructs new instance of EPS Facade
|
| 41 |
-
* @since 1.0
|
| 42 |
-
* @param EPSInterface $epsInterfaceImpl EPS interface implementation
|
| 43 |
-
* @param string $username User name
|
| 44 |
-
* @param string $password User password
|
| 45 |
-
*/
|
| 46 |
-
function __construct($epsInterfaceImpl, $username, $password) {
|
| 47 |
-
$this->_epsInterfaceImpl = $epsInterfaceImpl;
|
| 48 |
-
$this->_username = $username;
|
| 49 |
-
$this->_password = $password;
|
| 50 |
-
}
|
| 51 |
-
|
| 52 |
-
/**
|
| 53 |
-
* Check session state before calling a business web service method
|
| 54 |
-
* @since 1.0
|
| 55 |
-
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 56 |
-
*/
|
| 57 |
-
private function checkStateBeforeCall() {
|
| 58 |
-
if (!isset($this->_epsInterfaceImpl)) {
|
| 59 |
-
throw new ClientException("EPS Interface implementation is not set");
|
| 60 |
-
}
|
| 61 |
-
}
|
| 62 |
-
|
| 63 |
-
/**
|
| 64 |
-
* Set EPS interface implementation
|
| 65 |
-
* @since 1.0
|
| 66 |
-
* @param EPSInterface $epsInterfaceImpl
|
| 67 |
-
*/
|
| 68 |
-
public function setEPSInterfaceImpl($epsInterfaceImpl) {
|
| 69 |
-
$this->_epsInterfaceImpl = $epsInterfaceImpl;
|
| 70 |
-
}
|
| 71 |
-
|
| 72 |
-
/**
|
| 73 |
-
* Return EPS interface implementation
|
| 74 |
-
* @since 1.0
|
| 75 |
-
* @return EPSInterface
|
| 76 |
-
*/
|
| 77 |
-
public function getEPSInterfaceImpl() {
|
| 78 |
-
return $this->_epsInterfaceImpl;
|
| 79 |
-
}
|
| 80 |
-
|
| 81 |
-
/**
|
| 82 |
-
* Set user name
|
| 83 |
-
* @since 1.0
|
| 84 |
-
* @param string $username
|
| 85 |
-
*/
|
| 86 |
-
public function setUsername($username) {
|
| 87 |
-
$this->_username = $username;
|
| 88 |
-
}
|
| 89 |
-
|
| 90 |
-
/**
|
| 91 |
-
* Return user name
|
| 92 |
-
* @since 1.0
|
| 93 |
-
* @return string User name
|
| 94 |
-
*/
|
| 95 |
-
public function getUsername() {
|
| 96 |
-
return $this->_username;
|
| 97 |
-
}
|
| 98 |
-
|
| 99 |
-
/**
|
| 100 |
-
* Set user password
|
| 101 |
-
* @since 1.0
|
| 102 |
-
* @param string $password
|
| 103 |
-
*/
|
| 104 |
-
public function setPassword($password) {
|
| 105 |
-
$this->_password = $password;
|
| 106 |
-
}
|
| 107 |
-
|
| 108 |
-
/**
|
| 109 |
-
* Return user password
|
| 110 |
-
* @since 1.0
|
| 111 |
-
* @return string User password
|
| 112 |
-
*/
|
| 113 |
-
public function getPassword() {
|
| 114 |
-
return $this->_password;
|
| 115 |
-
}
|
| 116 |
-
|
| 117 |
-
/**
|
| 118 |
-
* Return result login.
|
| 119 |
-
* Optionally tries to open new session in case it is not active
|
| 120 |
-
* @since 1.0
|
| 121 |
-
* @param boolean $openNewIfNotActive Whether to try to open new connection. Default is true
|
| 122 |
-
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 123 |
-
* @throws ServerException Thrown in case communication with server has failed
|
| 124 |
-
* @return ResultLogin
|
| 125 |
-
*/
|
| 126 |
-
public function getResultLogin($openNewIfNotActive=true) {
|
| 127 |
-
if ($openNewIfNotActive && !$this->isSessionActive(true)) {
|
| 128 |
-
$this->_resultLogin = $this->login();
|
| 129 |
-
}
|
| 130 |
-
return $this->_resultLogin;
|
| 131 |
-
}
|
| 132 |
-
|
| 133 |
-
/**
|
| 134 |
-
*
|
| 135 |
-
* @
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
*
|
| 178 |
-
*
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
|
| 189 |
-
|
| 190 |
-
|
| 191 |
-
|
| 192 |
-
*
|
| 193 |
-
*
|
| 194 |
-
* @
|
| 195 |
-
|
| 196 |
-
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
|
| 202 |
-
|
| 203 |
-
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
*
|
| 207 |
-
* @
|
| 208 |
-
* @
|
| 209 |
-
* @
|
| 210 |
-
|
| 211 |
-
|
| 212 |
-
|
| 213 |
-
|
| 214 |
-
|
| 215 |
-
|
| 216 |
-
|
| 217 |
-
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
*
|
| 222 |
-
* @
|
| 223 |
-
* @param
|
| 224 |
-
* @param integer $
|
| 225 |
-
* @param
|
| 226 |
-
* @param
|
| 227 |
-
* @
|
| 228 |
-
* @
|
| 229 |
-
|
| 230 |
-
|
| 231 |
-
|
| 232 |
-
|
| 233 |
-
|
| 234 |
-
|
| 235 |
-
|
| 236 |
-
|
| 237 |
-
|
| 238 |
-
|
| 239 |
-
|
| 240 |
-
|
| 241 |
-
|
| 242 |
-
*
|
| 243 |
-
*
|
| 244 |
-
*
|
| 245 |
-
*
|
| 246 |
-
*
|
| 247 |
-
*
|
| 248 |
-
*
|
| 249 |
-
* @
|
| 250 |
-
* @param
|
| 251 |
-
* @
|
| 252 |
-
* @
|
| 253 |
-
* @
|
| 254 |
-
|
| 255 |
-
|
| 256 |
-
|
| 257 |
-
|
| 258 |
-
|
| 259 |
-
|
| 260 |
-
|
| 261 |
-
|
| 262 |
-
|
| 263 |
-
|
| 264 |
-
|
| 265 |
-
|
| 266 |
-
|
| 267 |
-
|
| 268 |
-
|
| 269 |
-
|
| 270 |
-
|
| 271 |
-
|
| 272 |
-
|
| 273 |
-
|
| 274 |
-
|
| 275 |
-
|
| 276 |
-
*
|
| 277 |
-
*
|
| 278 |
-
*
|
| 279 |
-
*
|
| 280 |
-
*
|
| 281 |
-
* @
|
| 282 |
-
|
| 283 |
-
|
| 284 |
-
|
| 285 |
-
|
| 286 |
-
|
| 287 |
-
|
| 288 |
-
|
| 289 |
-
|
| 290 |
-
|
| 291 |
-
|
| 292 |
-
|
| 293 |
-
*
|
| 294 |
-
*
|
| 295 |
-
|
| 296 |
-
|
| 297 |
-
|
| 298 |
-
|
| 299 |
-
|
| 300 |
-
|
| 301 |
-
|
| 302 |
-
*
|
| 303 |
-
|
| 304 |
-
|
| 305 |
-
|
| 306 |
-
|
| 307 |
-
|
| 308 |
-
|
| 309 |
-
|
| 310 |
-
|
| 311 |
-
|
| 312 |
-
|
| 313 |
-
|
| 314 |
-
*
|
| 315 |
-
* @
|
| 316 |
-
|
| 317 |
-
|
| 318 |
-
|
| 319 |
-
|
| 320 |
-
|
| 321 |
-
|
| 322 |
-
|
| 323 |
-
|
| 324 |
-
|
| 325 |
-
|
| 326 |
-
*
|
| 327 |
-
*
|
| 328 |
-
* @
|
| 329 |
-
|
| 330 |
-
|
| 331 |
-
|
| 332 |
-
|
| 333 |
-
|
| 334 |
-
|
| 335 |
-
|
| 336 |
-
|
| 337 |
-
|
| 338 |
-
|
| 339 |
-
|
| 340 |
-
|
| 341 |
-
*
|
| 342 |
-
|
| 343 |
-
|
| 344 |
-
|
| 345 |
-
|
| 346 |
-
|
| 347 |
-
|
| 348 |
-
|
| 349 |
-
|
| 350 |
-
|
| 351 |
-
|
| 352 |
-
|
| 353 |
-
|
| 354 |
-
|
| 355 |
-
|
| 356 |
-
|
| 357 |
-
|
| 358 |
-
|
| 359 |
-
|
| 360 |
-
|
| 361 |
-
|
| 362 |
-
*
|
| 363 |
-
*
|
| 364 |
-
|
| 365 |
-
|
| 366 |
-
|
| 367 |
-
|
| 368 |
-
|
| 369 |
-
|
| 370 |
-
|
| 371 |
-
|
| 372 |
-
|
| 373 |
-
|
| 374 |
-
|
| 375 |
-
|
| 376 |
-
|
| 377 |
-
|
| 378 |
-
*
|
| 379 |
-
|
| 380 |
-
|
| 381 |
-
|
| 382 |
-
|
| 383 |
-
|
| 384 |
-
|
| 385 |
-
|
| 386 |
-
*
|
| 387 |
-
|
| 388 |
-
|
| 389 |
-
|
| 390 |
-
|
| 391 |
-
|
| 392 |
-
|
| 393 |
-
|
| 394 |
-
|
| 395 |
-
|
| 396 |
-
|
| 397 |
-
|
| 398 |
-
|
| 399 |
-
|
| 400 |
-
|
| 401 |
-
*
|
| 402 |
-
*
|
| 403 |
-
|
| 404 |
-
|
| 405 |
-
|
| 406 |
-
|
| 407 |
-
|
| 408 |
-
|
| 409 |
-
|
| 410 |
-
|
| 411 |
-
|
| 412 |
-
|
| 413 |
-
|
| 414 |
-
|
| 415 |
-
|
| 416 |
-
*
|
| 417 |
-
*
|
| 418 |
-
*
|
| 419 |
-
|
| 420 |
-
|
| 421 |
-
|
| 422 |
-
|
| 423 |
-
|
| 424 |
-
|
| 425 |
-
|
| 426 |
-
*
|
| 427 |
-
*
|
| 428 |
-
* @
|
| 429 |
-
|
| 430 |
-
|
| 431 |
-
|
| 432 |
-
|
| 433 |
-
|
| 434 |
-
|
| 435 |
-
|
| 436 |
-
|
| 437 |
-
|
| 438 |
-
|
| 439 |
-
|
| 440 |
-
|
| 441 |
-
*
|
| 442 |
-
*
|
| 443 |
-
*
|
| 444 |
-
|
| 445 |
-
|
| 446 |
-
|
| 447 |
-
|
| 448 |
-
|
| 449 |
-
|
| 450 |
-
|
| 451 |
-
|
| 452 |
-
|
| 453 |
-
|
| 454 |
-
|
| 455 |
-
|
| 456 |
-
*
|
| 457 |
-
|
| 458 |
-
|
| 459 |
-
|
| 460 |
-
|
| 461 |
-
|
| 462 |
-
|
| 463 |
-
|
| 464 |
-
*
|
| 465 |
-
* @
|
| 466 |
-
* @param
|
| 467 |
-
* @param
|
| 468 |
-
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 469 |
-
* @throws ServerException Thrown in case communication with server has failed
|
| 470 |
-
* @return array List of
|
| 471 |
-
*/
|
| 472 |
-
public function
|
| 473 |
-
$
|
| 474 |
-
|
| 475 |
-
|
| 476 |
-
|
| 477 |
-
|
| 478 |
-
|
| 479 |
-
|
| 480 |
-
|
| 481 |
-
|
| 482 |
-
|
| 483 |
-
*
|
| 484 |
-
* @
|
| 485 |
-
|
| 486 |
-
|
| 487 |
-
|
| 488 |
-
|
| 489 |
-
|
| 490 |
-
|
| 491 |
-
|
| 492 |
-
|
| 493 |
-
|
| 494 |
-
|
| 495 |
-
|
| 496 |
-
*
|
| 497 |
-
* @
|
| 498 |
-
|
| 499 |
-
|
| 500 |
-
|
| 501 |
-
|
| 502 |
-
|
| 503 |
-
|
| 504 |
-
|
| 505 |
-
|
| 506 |
-
|
| 507 |
-
|
| 508 |
-
|
| 509 |
-
*
|
| 510 |
-
*
|
| 511 |
-
* @
|
| 512 |
-
* @param
|
| 513 |
-
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 514 |
-
* @throws ServerException Thrown in case communication with server has failed
|
| 515 |
-
* @return array
|
| 516 |
-
*/
|
| 517 |
-
public function
|
| 518 |
-
$this->checkStateBeforeCall();
|
| 519 |
-
return $this->_epsInterfaceImpl->
|
| 520 |
-
}
|
| 521 |
-
|
| 522 |
-
/**
|
| 523 |
-
*
|
| 524 |
-
*
|
| 525 |
-
* @
|
| 526 |
-
* @
|
| 527 |
-
* @
|
| 528 |
-
* @
|
| 529 |
-
* @
|
| 530 |
-
|
| 531 |
-
|
| 532 |
-
|
| 533 |
-
|
| 534 |
-
|
| 535 |
-
|
| 536 |
-
|
| 537 |
-
|
| 538 |
-
|
| 539 |
-
*
|
| 540 |
-
* @
|
| 541 |
-
* @
|
| 542 |
-
* @
|
| 543 |
-
|
| 544 |
-
|
| 545 |
-
|
| 546 |
-
|
| 547 |
-
|
| 548 |
-
|
| 549 |
-
|
| 550 |
-
|
| 551 |
-
|
| 552 |
-
|
| 553 |
-
*
|
| 554 |
-
*
|
| 555 |
-
*
|
| 556 |
-
* @
|
| 557 |
-
* @
|
| 558 |
-
* @throws
|
| 559 |
-
|
| 560 |
-
|
| 561 |
-
|
| 562 |
-
|
| 563 |
-
|
| 564 |
-
|
| 565 |
-
|
| 566 |
-
|
| 567 |
-
|
| 568 |
-
*
|
| 569 |
-
*
|
| 570 |
-
* @
|
| 571 |
-
* @
|
| 572 |
-
* @
|
| 573 |
-
|
| 574 |
-
|
| 575 |
-
|
| 576 |
-
|
| 577 |
-
|
| 578 |
-
|
| 579 |
-
|
| 580 |
-
|
| 581 |
-
|
| 582 |
-
|
| 583 |
-
|
| 584 |
-
*
|
| 585 |
-
* @
|
| 586 |
-
* @
|
| 587 |
-
|
| 588 |
-
|
| 589 |
-
|
| 590 |
-
|
| 591 |
-
|
| 592 |
-
|
| 593 |
-
|
| 594 |
-
|
| 595 |
-
|
| 596 |
-
|
| 597 |
-
|
| 598 |
-
*
|
| 599 |
-
*
|
| 600 |
-
* @
|
| 601 |
-
|
| 602 |
-
|
| 603 |
-
|
| 604 |
-
|
| 605 |
-
|
| 606 |
-
|
| 607 |
-
|
| 608 |
-
|
| 609 |
-
|
| 610 |
-
|
| 611 |
-
|
| 612 |
-
*
|
| 613 |
-
*
|
| 614 |
-
* @
|
| 615 |
-
* @
|
| 616 |
-
|
| 617 |
-
|
| 618 |
-
|
| 619 |
-
|
| 620 |
-
|
| 621 |
-
|
| 622 |
-
|
| 623 |
-
|
| 624 |
-
|
| 625 |
-
|
| 626 |
-
*
|
| 627 |
-
*
|
| 628 |
-
* @
|
| 629 |
-
|
| 630 |
-
|
| 631 |
-
|
| 632 |
-
|
| 633 |
-
|
| 634 |
-
|
| 635 |
-
|
| 636 |
-
|
| 637 |
-
|
| 638 |
-
|
| 639 |
-
|
| 640 |
-
*
|
| 641 |
-
*
|
| 642 |
-
* @
|
| 643 |
-
|
| 644 |
-
|
| 645 |
-
|
| 646 |
-
|
| 647 |
-
|
| 648 |
-
|
| 649 |
-
|
| 650 |
-
|
| 651 |
-
|
| 652 |
-
|
| 653 |
-
|
| 654 |
-
*
|
| 655 |
-
*
|
| 656 |
-
*
|
| 657 |
-
|
| 658 |
-
|
| 659 |
-
|
| 660 |
-
|
| 661 |
-
|
| 662 |
-
|
| 663 |
-
|
| 664 |
-
|
| 665 |
-
|
| 666 |
-
|
| 667 |
-
|
| 668 |
-
|
| 669 |
-
*
|
| 670 |
-
* @
|
| 671 |
-
|
| 672 |
-
|
| 673 |
-
|
| 674 |
-
|
| 675 |
-
|
| 676 |
-
|
| 677 |
-
|
| 678 |
-
|
| 679 |
-
|
| 680 |
-
|
| 681 |
-
|
| 682 |
-
*
|
| 683 |
-
* @
|
| 684 |
-
|
| 685 |
-
|
| 686 |
-
|
| 687 |
-
|
| 688 |
-
|
| 689 |
-
|
| 690 |
-
|
| 691 |
-
|
| 692 |
-
|
| 693 |
-
|
| 694 |
-
|
| 695 |
-
|
| 696 |
-
*
|
| 697 |
-
* @
|
| 698 |
-
|
| 699 |
-
|
| 700 |
-
|
| 701 |
-
|
| 702 |
-
|
| 703 |
-
|
| 704 |
-
|
| 705 |
-
|
| 706 |
-
|
| 707 |
-
|
| 708 |
-
|
| 709 |
-
|
| 710 |
-
*
|
| 711 |
-
* @
|
| 712 |
-
* @
|
| 713 |
-
|
| 714 |
-
|
| 715 |
-
|
| 716 |
-
|
| 717 |
-
|
| 718 |
-
|
| 719 |
-
|
| 720 |
-
|
| 721 |
-
|
| 722 |
-
|
| 723 |
-
|
| 724 |
-
*
|
| 725 |
-
* @since 2.
|
| 726 |
-
|
| 727 |
-
|
| 728 |
-
|
| 729 |
-
|
| 730 |
-
|
| 731 |
-
|
| 732 |
-
|
| 733 |
-
|
| 734 |
-
|
| 735 |
-
|
| 736 |
-
|
| 737 |
-
|
| 738 |
-
*
|
| 739 |
-
* @
|
| 740 |
-
* @
|
| 741 |
-
* @
|
| 742 |
-
* @
|
| 743 |
-
|
| 744 |
-
|
| 745 |
-
|
| 746 |
-
|
| 747 |
-
|
| 748 |
-
|
| 749 |
-
|
| 750 |
-
|
| 751 |
-
*
|
| 752 |
-
* @
|
| 753 |
-
* @
|
| 754 |
-
|
| 755 |
-
|
| 756 |
-
|
| 757 |
-
|
| 758 |
-
|
| 759 |
-
|
| 760 |
-
|
| 761 |
-
|
| 762 |
-
|
| 763 |
-
|
| 764 |
-
|
| 765 |
-
*
|
| 766 |
-
*
|
| 767 |
-
*
|
| 768 |
-
|
| 769 |
-
|
| 770 |
-
|
| 771 |
-
|
| 772 |
-
|
| 773 |
-
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
| 774 |
Â
?>
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
require_once 'ClientException.class.php';
|
| 4 |
+
require_once 'EPSInterface.class.php';
|
| 5 |
+
|
| 6 |
+
/**
|
| 7 |
+
* Speedy EPS Service
|
| 8 |
+
*/
|
| 9 |
+
class EPSFacade {
|
| 10 |
+
|
| 11 |
+
/**
|
| 12 |
+
* EPS Interface implementation
|
| 13 |
+
* @since 1.0
|
| 14 |
+
* @var EPSInterface
|
| 15 |
+
*/
|
| 16 |
+
private $_epsInterfaceImpl;
|
| 17 |
+
|
| 18 |
+
/**
|
| 19 |
+
* User name
|
| 20 |
+
* @since 1.0
|
| 21 |
+
* @var string
|
| 22 |
+
*/
|
| 23 |
+
private $_username;
|
| 24 |
+
|
| 25 |
+
/**
|
| 26 |
+
* User password
|
| 27 |
+
* @since 1.0
|
| 28 |
+
* @var string
|
| 29 |
+
*/
|
| 30 |
+
private $_password;
|
| 31 |
+
|
| 32 |
+
/**
|
| 33 |
+
* Result of login Speedy web service method clall
|
| 34 |
+
* @since 1.0
|
| 35 |
+
* @var ResultLogin
|
| 36 |
+
*/
|
| 37 |
+
private $_resultLogin;
|
| 38 |
+
|
| 39 |
+
/**
|
| 40 |
+
* Constructs new instance of EPS Facade
|
| 41 |
+
* @since 1.0
|
| 42 |
+
* @param EPSInterface $epsInterfaceImpl EPS interface implementation
|
| 43 |
+
* @param string $username User name
|
| 44 |
+
* @param string $password User password
|
| 45 |
+
*/
|
| 46 |
+
function __construct($epsInterfaceImpl, $username, $password) {
|
| 47 |
+
$this->_epsInterfaceImpl = $epsInterfaceImpl;
|
| 48 |
+
$this->_username = $username;
|
| 49 |
+
$this->_password = $password;
|
| 50 |
+
}
|
| 51 |
+
|
| 52 |
+
/**
|
| 53 |
+
* Check session state before calling a business web service method
|
| 54 |
+
* @since 1.0
|
| 55 |
+
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 56 |
+
*/
|
| 57 |
+
private function checkStateBeforeCall() {
|
| 58 |
+
if (!isset($this->_epsInterfaceImpl)) {
|
| 59 |
+
throw new ClientException("EPS Interface implementation is not set");
|
| 60 |
+
}
|
| 61 |
+
}
|
| 62 |
+
|
| 63 |
+
/**
|
| 64 |
+
* Set EPS interface implementation
|
| 65 |
+
* @since 1.0
|
| 66 |
+
* @param EPSInterface $epsInterfaceImpl
|
| 67 |
+
*/
|
| 68 |
+
public function setEPSInterfaceImpl($epsInterfaceImpl) {
|
| 69 |
+
$this->_epsInterfaceImpl = $epsInterfaceImpl;
|
| 70 |
+
}
|
| 71 |
+
|
| 72 |
+
/**
|
| 73 |
+
* Return EPS interface implementation
|
| 74 |
+
* @since 1.0
|
| 75 |
+
* @return EPSInterface
|
| 76 |
+
*/
|
| 77 |
+
public function getEPSInterfaceImpl() {
|
| 78 |
+
return $this->_epsInterfaceImpl;
|
| 79 |
+
}
|
| 80 |
+
|
| 81 |
+
/**
|
| 82 |
+
* Set user name
|
| 83 |
+
* @since 1.0
|
| 84 |
+
* @param string $username
|
| 85 |
+
*/
|
| 86 |
+
public function setUsername($username) {
|
| 87 |
+
$this->_username = $username;
|
| 88 |
+
}
|
| 89 |
+
|
| 90 |
+
/**
|
| 91 |
+
* Return user name
|
| 92 |
+
* @since 1.0
|
| 93 |
+
* @return string User name
|
| 94 |
+
*/
|
| 95 |
+
public function getUsername() {
|
| 96 |
+
return $this->_username;
|
| 97 |
+
}
|
| 98 |
+
|
| 99 |
+
/**
|
| 100 |
+
* Set user password
|
| 101 |
+
* @since 1.0
|
| 102 |
+
* @param string $password
|
| 103 |
+
*/
|
| 104 |
+
public function setPassword($password) {
|
| 105 |
+
$this->_password = $password;
|
| 106 |
+
}
|
| 107 |
+
|
| 108 |
+
/**
|
| 109 |
+
* Return user password
|
| 110 |
+
* @since 1.0
|
| 111 |
+
* @return string User password
|
| 112 |
+
*/
|
| 113 |
+
public function getPassword() {
|
| 114 |
+
return $this->_password;
|
| 115 |
+
}
|
| 116 |
+
|
| 117 |
+
/**
|
| 118 |
+
* Return result login.
|
| 119 |
+
* Optionally tries to open new session in case it is not active
|
| 120 |
+
* @since 1.0
|
| 121 |
+
* @param boolean $openNewIfNotActive Whether to try to open new connection. Default is true
|
| 122 |
+
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 123 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 124 |
+
* @return ResultLogin
|
| 125 |
+
*/
|
| 126 |
+
public function getResultLogin($openNewIfNotActive=true) {
|
| 127 |
+
if ($openNewIfNotActive && !$this->isSessionActive(true)) {
|
| 128 |
+
$this->_resultLogin = $this->login();
|
| 129 |
+
}
|
| 130 |
+
return $this->_resultLogin;
|
| 131 |
+
}
|
| 132 |
+
|
| 133 |
+
/**
|
| 134 |
+
* Set result login.
|
| 135 |
+
* @param ResultLogin $resultLogin Previuos session result login
|
| 136 |
+
*/
|
| 137 |
+
public function setResultLogin($resultLogin) {
|
| 138 |
+
$this->_resultLogin = $resultLogin;
|
| 139 |
+
}
|
| 140 |
+
|
| 141 |
+
/**
|
| 142 |
+
* Login web service method
|
| 143 |
+
* @since 1.0
|
| 144 |
+
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 145 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 146 |
+
* @return ResultLogin Result of login
|
| 147 |
+
*/
|
| 148 |
+
public function login() {
|
| 149 |
+
$this->checkStateBeforeCall();
|
| 150 |
+
$this->_resultLogin = $this->_epsInterfaceImpl->login($this->_username, $this->_password);
|
| 151 |
+
return $this->_resultLogin;
|
| 152 |
+
}
|
| 153 |
+
|
| 154 |
+
/**
|
| 155 |
+
* Returns flag whether the session is active
|
| 156 |
+
* @since 1.0
|
| 157 |
+
* @param boolean $refreshSession In case the session is active, this parameter specifies if the session should be automatically refreshed
|
| 158 |
+
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 159 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 160 |
+
* @return boolean Session active flag
|
| 161 |
+
*/
|
| 162 |
+
public function isSessionActive($refreshSession) {
|
| 163 |
+
$this->checkStateBeforeCall();
|
| 164 |
+
if (isset($this->_resultLogin)) {
|
| 165 |
+
return $this->_epsInterfaceImpl->isSessionActive($this->_resultLogin->getSessionId(), $refreshSession);
|
| 166 |
+
} else {
|
| 167 |
+
return false;
|
| 168 |
+
}
|
| 169 |
+
}
|
| 170 |
+
|
| 171 |
+
/**
|
| 172 |
+
* Returns the list of courier services valid on this date
|
| 173 |
+
* @since 1.0
|
| 174 |
+
* @param date $date
|
| 175 |
+
* @param ParamLanguage $language (added in 2.5.0)
|
| 176 |
+
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 177 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 178 |
+
* @return array List of ResultCourierService instances
|
| 179 |
+
*/
|
| 180 |
+
public function listServices($date, $language = null) {
|
| 181 |
+
$this->checkStateBeforeCall();
|
| 182 |
+
return $this->_epsInterfaceImpl->listServices($this->getResultLogin(true)->getSessionId(), $date, $language);
|
| 183 |
+
}
|
| 184 |
+
|
| 185 |
+
/**
|
| 186 |
+
* Returns a list of sites matching the search criteria.
|
| 187 |
+
* The result is limited to 10 records
|
| 188 |
+
* @since 1.0
|
| 189 |
+
* @param string $type Type of site
|
| 190 |
+
* @param string $name Site name or part of it
|
| 191 |
+
* @param ParamLanguage $language BG or EN. If set to null the server defaults to BG (added in 2.3.0)
|
| 192 |
+
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 193 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 194 |
+
* @return array List of ResultSite instances
|
| 195 |
+
*/
|
| 196 |
+
public function listSites($type, $name, $language = null) {
|
| 197 |
+
$this->checkStateBeforeCall();
|
| 198 |
+
return $this->_epsInterfaceImpl->listSites($this->getResultLogin(true)->getSessionId(), $type, $name, $language);
|
| 199 |
+
}
|
| 200 |
+
|
| 201 |
+
/**
|
| 202 |
+
* Returns a list of sites. The method aims to find the closest matches.
|
| 203 |
+
* The result is limited to 10 records
|
| 204 |
+
* @since 1.0
|
| 205 |
+
* @param ParamFilterSite $paramFilterSite
|
| 206 |
+
* @param ParamLanguage $language BG or EN. If set to null the server defaults to BG (added in 2.3.0)
|
| 207 |
+
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 208 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 209 |
+
* @return array List of ResultSiteEx instances
|
| 210 |
+
*/
|
| 211 |
+
public function listSitesEx($paramFilterSite, $language = null) {
|
| 212 |
+
$this->checkStateBeforeCall();
|
| 213 |
+
return $this->_epsInterfaceImpl->listSitesEx($this->getResultLogin(true)->getSessionId(), $paramFilterSite, $language);
|
| 214 |
+
}
|
| 215 |
+
|
| 216 |
+
/**
|
| 217 |
+
* Returns the list of courier services valid on this date and sites.
|
| 218 |
+
* @since 1.0
|
| 219 |
+
* @param datetime $date
|
| 220 |
+
* @param integer $senderSiteId Signed 64-bit integer sender's site ID;
|
| 221 |
+
* @param integer $receiverSiteId Signed 64-bit integer receiver's site ID;
|
| 222 |
+
* @param integer $senderCountryId Signed 64-bit integer sender's country ID (added in 2.5.0);
|
| 223 |
+
* @param string $senderPostCode sender's post code (added in 2.5.0);
|
| 224 |
+
* @param integer $receiverCountryId Signed 64-bit integer receiver's country ID (added in 2.5.0);
|
| 225 |
+
* @param string $receiverPostCode receiver's post code (added in 2.5.0);
|
| 226 |
+
* @param ParamLanguage $language language (added in 2.5.0)
|
| 227 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 228 |
+
* @return array List of ResultCourierServiceExt instances
|
| 229 |
+
*/
|
| 230 |
+
public function listServicesForSites(
|
| 231 |
+
$date, $senderSiteId, $receiverSiteId,
|
| 232 |
+
$senderCountryId = null, $senderPostCode = null, $receiverCountryId = null, $receiverPostCode = null, $language = null
|
| 233 |
+
) {
|
| 234 |
+
$this->checkStateBeforeCall();
|
| 235 |
+
return $this->_epsInterfaceImpl->listServicesForSites(
|
| 236 |
+
$this->getResultLogin(true)->getSessionId(), $date, $senderSiteId, $receiverSiteId,
|
| 237 |
+
$senderCountryId, $senderPostCode, $receiverCountryId, $receiverPostCode, $language
|
| 238 |
+
);
|
| 239 |
+
}
|
| 240 |
+
|
| 241 |
+
/**
|
| 242 |
+
* Returns the min/max weight allowed for the given shipment parameters
|
| 243 |
+
* @since 2.5.0
|
| 244 |
+
* @param integer $serviceTypeId Signed 64-bit ID of the courier service
|
| 245 |
+
* @param integer $senderSiteId Signed 64-bit Sender's site ID
|
| 246 |
+
* @param integer $receiverSiteId Signed 64-bit Receiver's site ID
|
| 247 |
+
* @param date $date
|
| 248 |
+
* @param boolean $documents Specifies if the shipment consists of documents
|
| 249 |
+
* @param integer $senderCountryId Signed 64-bit Sender's country ID (added in 2.5.0)
|
| 250 |
+
* @param string $senderPostCode Sender's post code (added in 2.5.0)
|
| 251 |
+
* @param integer $receiverCountryId Signed 64-bit Receiver's country ID (added in 2.5.0)
|
| 252 |
+
* @param string $receiverPostCode Receiver's post code (added in 2.5.0)
|
| 253 |
+
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 254 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 255 |
+
* @return ResultMinMaxReal
|
| 256 |
+
*/
|
| 257 |
+
public function getWeightInterval(
|
| 258 |
+
$serviceTypeId, $senderSiteId, $receiverSiteId, $date, $documents,
|
| 259 |
+
$senderCountryId = null, $senderPostCode = null, $receiverCountryId = null, $receiverPostCode = null
|
| 260 |
+
) {
|
| 261 |
+
$this->checkStateBeforeCall();
|
| 262 |
+
return $this->_epsInterfaceImpl->getWeightInterval(
|
| 263 |
+
$this->getResultLogin(true)->getSessionId(), $serviceTypeId, $senderSiteId, $receiverSiteId, $date, $documents,
|
| 264 |
+
$senderCountryId, $senderPostCode, $receiverCountryId, $receiverPostCode
|
| 265 |
+
);
|
| 266 |
+
}
|
| 267 |
+
|
| 268 |
+
/**
|
| 269 |
+
* Returns CSV-formatted data (depending on the nomenType value).
|
| 270 |
+
* Column numbers can change in the future so it's recommended to address the data using the column names in the header row.
|
| 271 |
+
* The data for some nomenTypes requires a payed license (additional licensing contract) and permissions (access rights).
|
| 272 |
+
* To obtain such license please contact our IT department or your Speedy key account manager.
|
| 273 |
+
* Type 1 - returns a list of all countries
|
| 274 |
+
* Type 50 - returns a list of all states
|
| 275 |
+
* Type 100 - returns a list of all sites.
|
| 276 |
+
* Type 300 - returns a list of all streets (requires a license).
|
| 277 |
+
* Type 400 - returns a list of all quarters (requires a license).
|
| 278 |
+
* Type 500 - returns a list of all common objects (requires a license).
|
| 279 |
+
* Type 700 - returns a list of all block names (requires a license).
|
| 280 |
+
* Type 800 - returns a list of all post codes (requires a license). * @since 1.0
|
| 281 |
+
* @param integer $nomenType Signed 32-bit The type of address nomenclature
|
| 282 |
+
* @param integer $countryId Signed 64-bit (added in 2.5.0)
|
| 283 |
+
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 284 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 285 |
+
* @return string CSV formatted
|
| 286 |
+
*/
|
| 287 |
+
public function getAddressNomenclature($nomenType, $countryId = null) {
|
| 288 |
+
$this->checkStateBeforeCall();
|
| 289 |
+
return $this->_epsInterfaceImpl->getAddressNomenclature($this->getResultLogin(true)->getSessionId(), $nomenType, $countryId);
|
| 290 |
+
}
|
| 291 |
+
|
| 292 |
+
/**
|
| 293 |
+
* Returns a list of all sites.
|
| 294 |
+
* Note: This method is relatively slow (because of the size of its response). You shouldn't call it more than several times a day.
|
| 295 |
+
* The methods is designed to provide data which should be locally stored/cached by client apps.
|
| 296 |
+
* The address-related nomenclature data is updated only several times a year.
|
| 297 |
+
* @param ParamLanguage $language BG or EN. If set to null the server defaults to BG (added in 2.3.0)
|
| 298 |
+
* @param integer $countryId signed 64-bit Country id (added in 2.5.0)
|
| 299 |
+
* @since 1.0
|
| 300 |
+
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 301 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 302 |
+
* @return array List of ResultSite instances
|
| 303 |
+
*/
|
| 304 |
+
public function listAllSites($language = null, $countryId = null) {
|
| 305 |
+
$this->checkStateBeforeCall();
|
| 306 |
+
return $this->_epsInterfaceImpl->listAllSites($this->getResultLogin(true)->getSessionId(), $language, $countryId);
|
| 307 |
+
}
|
| 308 |
+
|
| 309 |
+
/**
|
| 310 |
+
* Returns a site by ID
|
| 311 |
+
* @since 1.0
|
| 312 |
+
* @param integer $siteId Signed 64-bit Site ID
|
| 313 |
+
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 314 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 315 |
+
* @return ResultSite
|
| 316 |
+
*/
|
| 317 |
+
public function getSiteById($siteId) {
|
| 318 |
+
$this->checkStateBeforeCall();
|
| 319 |
+
return $this->_epsInterfaceImpl->getSiteById($this->getResultLogin(true)->getSessionId(), $siteId);
|
| 320 |
+
}
|
| 321 |
+
|
| 322 |
+
/**
|
| 323 |
+
* Returns sites having either full or partial address nomenclature (streets, quarters etc.).
|
| 324 |
+
* @since 1.0
|
| 325 |
+
* @param AddrNomen $addrNomen Only values FULL and PARTIAL are allowed
|
| 326 |
+
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 327 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 328 |
+
* @return array List of ResultSite
|
| 329 |
+
*/
|
| 330 |
+
public function getSitesByAddrNomenType($addrNomen) {
|
| 331 |
+
$this->checkStateBeforeCall();
|
| 332 |
+
return $this->_epsInterfaceImpl->getSitesByAddrNomenType($this->getResultLogin(true)->getSessionId(), $addrNomen);
|
| 333 |
+
}
|
| 334 |
+
|
| 335 |
+
/**
|
| 336 |
+
* Returns a list of the most common types of streets.
|
| 337 |
+
* @since 1.0
|
| 338 |
+
* @param ParamLanguage $language BG or EN. If set to null the server defaults to BG (added in 2.3.0)
|
| 339 |
+
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 340 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 341 |
+
* @return array string List of the most common types of streets
|
| 342 |
+
*/
|
| 343 |
+
public function listStreetTypes($language = null) {
|
| 344 |
+
$this->checkStateBeforeCall();
|
| 345 |
+
return $this->_epsInterfaceImpl->listStreetTypes($this->getResultLogin(true)->getSessionId(), $language);
|
| 346 |
+
}
|
| 347 |
+
|
| 348 |
+
/**
|
| 349 |
+
* Returns a list of the most common types of quarters (districts).
|
| 350 |
+
* @since 1.0
|
| 351 |
+
* @param ParamLanguage $language BG or EN. If set to null the server defaults to BG (added in 2.3.0)
|
| 352 |
+
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 353 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 354 |
+
* @return array string List of the most common types of quarters (districts).
|
| 355 |
+
*/
|
| 356 |
+
public function listQuarterTypes($language = null) {
|
| 357 |
+
$this->checkStateBeforeCall();
|
| 358 |
+
return $this->_epsInterfaceImpl->listQuarterTypes($this->getResultLogin(true)->getSessionId(), $language);
|
| 359 |
+
}
|
| 360 |
+
|
| 361 |
+
/**
|
| 362 |
+
* Returns a list of streets matching the search criteria
|
| 363 |
+
* The list is limited to 10 records.
|
| 364 |
+
* @since 1.0
|
| 365 |
+
* @param string $name Street name (or part of it)
|
| 366 |
+
* @param integer $siteId Signed 64-bit Site ID
|
| 367 |
+
* @param ParamLanguage $language BG or EN. If set to null the server defaults to BG (added in 2.3.0)
|
| 368 |
+
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 369 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 370 |
+
* @return array ResultStreet List of streets
|
| 371 |
+
*/
|
| 372 |
+
public function listStreets($name, $siteId, $language = null) {
|
| 373 |
+
$this->checkStateBeforeCall();
|
| 374 |
+
return $this->_epsInterfaceImpl->listStreets($this->getResultLogin(true)->getSessionId(), $name, $siteId, $language);
|
| 375 |
+
}
|
| 376 |
+
|
| 377 |
+
/**
|
| 378 |
+
* Returns a list of quarters matching the search criteria
|
| 379 |
+
* The list is limited to 10 records.
|
| 380 |
+
* @since 1.0
|
| 381 |
+
* @param string $name Quarter name (or part of it)
|
| 382 |
+
* @param integer $siteId Signed 64-bit Site ID
|
| 383 |
+
* @param ParamLanguage $language BG or EN. If set to null the server defaults to BG (added in 2.3.0)
|
| 384 |
+
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 385 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 386 |
+
* @return array ResultQuarter List of quarters
|
| 387 |
+
*/
|
| 388 |
+
public function listQuarters($name, $siteId, $language = null) {
|
| 389 |
+
$this->checkStateBeforeCall();
|
| 390 |
+
return $this->_epsInterfaceImpl->listQuarters($this->getResultLogin(true)->getSessionId(), $name, $siteId, $language);
|
| 391 |
+
}
|
| 392 |
+
|
| 393 |
+
/**
|
| 394 |
+
* Returns a list of common objects matching the search criteria.
|
| 395 |
+
* The list is limited to 10 records.
|
| 396 |
+
* @since 1.0
|
| 397 |
+
* @param string $name Common object name (or part of it)
|
| 398 |
+
* @param integer $siteId Signed 64-bit Site ID
|
| 399 |
+
* @param ParamLanguage $language BG or EN. If set to null the server defaults to BG (added in 2.3.0)
|
| 400 |
+
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 401 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 402 |
+
* @return array ResultCommonObject List of common objects
|
| 403 |
+
*/
|
| 404 |
+
public function listCommonObjects($name, $siteId, $language = null) {
|
| 405 |
+
$this->checkStateBeforeCall();
|
| 406 |
+
return $this->_epsInterfaceImpl->listCommonObjects($this->getResultLogin(true)->getSessionId(), $name, $siteId, $language);
|
| 407 |
+
}
|
| 408 |
+
|
| 409 |
+
/**
|
| 410 |
+
* Returns a list of blocks matching the search criteria.
|
| 411 |
+
* The list is limited to 10 records.
|
| 412 |
+
* @since 1.0
|
| 413 |
+
* @param string $name Block name (or part of it)
|
| 414 |
+
* @param integer $siteId Signed 64-bit Site ID
|
| 415 |
+
* @param ParamLanguage $language BG or EN. If set to null the server defaults to BG (added in 2.3.0)
|
| 416 |
+
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 417 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 418 |
+
* @return array string List of blocks
|
| 419 |
+
*/
|
| 420 |
+
public function listBlocks($name, $siteId, $language = null) {
|
| 421 |
+
$this->checkStateBeforeCall();
|
| 422 |
+
return $this->_epsInterfaceImpl->listBlocks($this->getResultLogin(true)->getSessionId(), $name, $siteId, $language);
|
| 423 |
+
}
|
| 424 |
+
|
| 425 |
+
/**
|
| 426 |
+
* Returns a list of Speedy offices matching the search criteria
|
| 427 |
+
* The list is limited to 10 records.
|
| 428 |
+
* @since 1.0
|
| 429 |
+
* @param string $name Office name (or part of it);
|
| 430 |
+
* @param integer $siteId Signed 64-bit Site ID
|
| 431 |
+
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 432 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 433 |
+
* @return array ResultOffice List of offices
|
| 434 |
+
*/
|
| 435 |
+
public function listOffices($name, $siteId) {
|
| 436 |
+
$this->checkStateBeforeCall();
|
| 437 |
+
return $this->_epsInterfaceImpl->listOffices($this->getResultLogin(true)->getSessionId(), $name, $siteId);
|
| 438 |
+
}
|
| 439 |
+
|
| 440 |
+
/**
|
| 441 |
+
* Returns data for client by ID.
|
| 442 |
+
* Allowed values for clientId are only the ones of members of the user's contract and the predefined partners
|
| 443 |
+
* in the WebClients application.
|
| 444 |
+
* @since 1.0
|
| 445 |
+
* @param integer $clientId Signed 64-bit integer – Client/Partner ID
|
| 446 |
+
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 447 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 448 |
+
* @return ResultClientData
|
| 449 |
+
*/
|
| 450 |
+
public function getClientById($clientId) {
|
| 451 |
+
$this->checkStateBeforeCall();
|
| 452 |
+
return $this->_epsInterfaceImpl->getClientById($this->getResultLogin(true)->getSessionId(), $clientId);
|
| 453 |
+
}
|
| 454 |
+
|
| 455 |
+
/**
|
| 456 |
+
* Returns the dates when the shipment can be ordered for pick-up.
|
| 457 |
+
* The "time" component represents the deadline for creating an order
|
| 458 |
+
* (or the deadline for delivering the shipment to a Speedy office when senderOfficeId is set).
|
| 459 |
+
* (This method could be used for the "takingDate" property of ParamPicking or ParamCalculation.)
|
| 460 |
+
* Note: Either senderSiteId or senderOfficeId should be set, or neither of them. Both parameters having "not null" values is not allowed.
|
| 461 |
+
* @since 2.5.0
|
| 462 |
+
* @param integer $serviceTypeId
|
| 463 |
+
* @param integer $senderSiteId Signed 64-bit – Sender's site ID
|
| 464 |
+
* @param integer $senderOfficeId Signed 64-bit – If the sender intends to deliver the shipment to a Speedy office, the office ID could be set as a filter
|
| 465 |
+
* @param date $minDate - When the "time" component is set then this date is to be included in the result list only if the time is not after the working time of Speedy;
|
| 466 |
+
* @param integer $senderCountryId Signed 64-bit Sender's country id (added in 2.5.0)
|
| 467 |
+
* @param string $senderPostCode Sender's post code (added in 2.5.0)
|
| 468 |
+
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 469 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 470 |
+
* @return array List of dates
|
| 471 |
+
*/
|
| 472 |
+
public function getAllowedDaysForTaking(
|
| 473 |
+
$serviceTypeId, $senderSiteId, $senderOfficeId, $minDate, $senderCountryId = null, $senderPostCode = null
|
| 474 |
+
) {
|
| 475 |
+
$this->checkStateBeforeCall();
|
| 476 |
+
return $this->_epsInterfaceImpl->getAllowedDaysForTaking(
|
| 477 |
+
$this->getResultLogin(true)->getSessionId(), $serviceTypeId, $senderSiteId, $senderOfficeId, $minDate,
|
| 478 |
+
$senderCountryId, $senderPostCode
|
| 479 |
+
);
|
| 480 |
+
}
|
| 481 |
+
|
| 482 |
+
/**
|
| 483 |
+
* Returns a list of addresses matching the search criteria.
|
| 484 |
+
* @since 1.0
|
| 485 |
+
* @param ParamAddressSearch $address Search criteria (filter)
|
| 486 |
+
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 487 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 488 |
+
* @return array List of ResultAddressSearch
|
| 489 |
+
*/
|
| 490 |
+
public function addressSearch($address) {
|
| 491 |
+
$this->checkStateBeforeCall();
|
| 492 |
+
return $this->_epsInterfaceImpl->addressSearch($this->getResultLogin(true)->getSessionId(), $address);
|
| 493 |
+
}
|
| 494 |
+
|
| 495 |
+
/**
|
| 496 |
+
* Calculate method
|
| 497 |
+
* @since 1.0
|
| 498 |
+
* @param ParamCalculation $calculation
|
| 499 |
+
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 500 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 501 |
+
* @return ResultCalculation
|
| 502 |
+
*/
|
| 503 |
+
public function calculate($calculation) {
|
| 504 |
+
$this->checkStateBeforeCall();
|
| 505 |
+
return $this->_epsInterfaceImpl->calculate($this->getResultLogin(true)->getSessionId(), $calculation);
|
| 506 |
+
}
|
| 507 |
+
|
| 508 |
+
/**
|
| 509 |
+
* This method could be used for preliminary check-up of shipment's price for a range of courier services.
|
| 510 |
+
* @since 1.0
|
| 511 |
+
* @param ParamCalculation $calculation Data needed to perform the calculation;
|
| 512 |
+
* @param array $serviceTypeIds List<signed 64-bit integer> – A list of courier service IDs for which price needs to be calculated
|
| 513 |
+
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 514 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 515 |
+
* @return array List of ResultCalculationMS
|
| 516 |
+
*/
|
| 517 |
+
public function calculateMultipleServices($calculation, $serviceTypeIds) {
|
| 518 |
+
$this->checkStateBeforeCall();
|
| 519 |
+
return $this->_epsInterfaceImpl->calculateMultipleServices($this->getResultLogin(true)->getSessionId(), $calculation, $serviceTypeIds);
|
| 520 |
+
}
|
| 521 |
+
|
| 522 |
+
/**
|
| 523 |
+
* This is an alternative method for shipment price calculation where the parameter is of type ParamPicking.
|
| 524 |
+
* Clients are encouraged to use the method that best fits their needs.
|
| 525 |
+
* @since 1.0
|
| 526 |
+
* @param ParamPicking $picking
|
| 527 |
+
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 528 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 529 |
+
* @return ResultCalculation
|
| 530 |
+
*/
|
| 531 |
+
public function calculatePicking($picking) {
|
| 532 |
+
$this->checkStateBeforeCall();
|
| 533 |
+
return $this->_epsInterfaceImpl->calculatePicking($this->getResultLogin(true)->getSessionId(), $picking);
|
| 534 |
+
}
|
| 535 |
+
|
| 536 |
+
/**
|
| 537 |
+
* The method used to create BOL.
|
| 538 |
+
* @since 1.0
|
| 539 |
+
* @param ParamPicking $picking
|
| 540 |
+
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 541 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 542 |
+
* @return ResultBOL
|
| 543 |
+
*/
|
| 544 |
+
public function createBillOfLading($picking) {
|
| 545 |
+
$this->checkStateBeforeCall();
|
| 546 |
+
return $this->_epsInterfaceImpl->createBillOfLading($this->getResultLogin(true)->getSessionId(), $picking);
|
| 547 |
+
}
|
| 548 |
+
|
| 549 |
+
/**
|
| 550 |
+
* Used for creating PDF documents to be printed (BOLs, labels etc.)
|
| 551 |
+
* Examples:
|
| 552 |
+
* •Bill of Lading;
|
| 553 |
+
* •Bill of Lading with "cash on delivery";
|
| 554 |
+
* •Custom travel label (type 20);
|
| 555 |
+
* •Custom travel label (type 20) with "cash on delivery".
|
| 556 |
+
* @since 1.0
|
| 557 |
+
* @param ParamPDF $params
|
| 558 |
+
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 559 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 560 |
+
* @return array bytes
|
| 561 |
+
*/
|
| 562 |
+
public function createPDF($params) {
|
| 563 |
+
$this->checkStateBeforeCall();
|
| 564 |
+
return $this->_epsInterfaceImpl->createPDF($this->getResultLogin(true)->getSessionId(), $params);
|
| 565 |
+
}
|
| 566 |
+
|
| 567 |
+
/**
|
| 568 |
+
* Creates PDF document for BOL.
|
| 569 |
+
* The method is deprecated, "createPDF" should be used instead.
|
| 570 |
+
* @deprecated The method is deprecated, "createPDF" should be used instead.
|
| 571 |
+
* @since 1.0
|
| 572 |
+
* @param integer $billOfLading Signed 64-bit
|
| 573 |
+
* @param boolean $includeAutoPrintJS Specifies if embedded JavaScript code for direct printing to be generated
|
| 574 |
+
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 575 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 576 |
+
* @return array of bytes
|
| 577 |
+
*/
|
| 578 |
+
public function createBillOfLadingPDF($billOfLading, $includeAutoPrintJS) {
|
| 579 |
+
$this->checkStateBeforeCall();
|
| 580 |
+
return $this->_epsInterfaceImpl->createBillOfLadingPDF($this->getResultLogin(true)->getSessionId(), $billOfLading, $includeAutoPrintJS);
|
| 581 |
+
}
|
| 582 |
+
|
| 583 |
+
/**
|
| 584 |
+
* Creates PDF document of "type I". The method is deprecated, "createPDF" should be used instead.
|
| 585 |
+
* @deprecated The method is deprecated, "createPDF" should be used instead.
|
| 586 |
+
* @since 1.0
|
| 587 |
+
* @param integer $parcelId Signed 64-bit Parcel ID
|
| 588 |
+
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 589 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 590 |
+
* @return array of bytes
|
| 591 |
+
*/
|
| 592 |
+
public function createCustomTravelLabelPDFType1($parcelId) {
|
| 593 |
+
$this->checkStateBeforeCall();
|
| 594 |
+
return $this->_epsInterfaceImpl->createCustomTravelLabelPDFType1($this->getResultLogin(true)->getSessionId(), $parcelId);
|
| 595 |
+
}
|
| 596 |
+
|
| 597 |
+
/**
|
| 598 |
+
* Used to cancel BOL.
|
| 599 |
+
* Only allowed when the shipment is neither ordered nor picked up by Speedy.
|
| 600 |
+
* @since 1.0
|
| 601 |
+
* @param integer $billOfLading Signed 64-bit
|
| 602 |
+
* @param string $cancelComment
|
| 603 |
+
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 604 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 605 |
+
*/
|
| 606 |
+
public function invalidatePicking($billOfLading, $cancelComment=null) {
|
| 607 |
+
$this->checkStateBeforeCall();
|
| 608 |
+
return $this->_epsInterfaceImpl->invalidatePicking($this->getResultLogin(true)->getSessionId(), $billOfLading, $cancelComment);
|
| 609 |
+
}
|
| 610 |
+
|
| 611 |
+
/**
|
| 612 |
+
* This method is used to update BOL.
|
| 613 |
+
* Only allowed if BOL was created with pendingShipmentDescription = true.
|
| 614 |
+
* @since 1.0
|
| 615 |
+
* @param ParamPicking $picking Data for the shipment (BOL)
|
| 616 |
+
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 617 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 618 |
+
* @return ResultBOL
|
| 619 |
+
*/
|
| 620 |
+
public function updateBillOfLading($picking) {
|
| 621 |
+
$this->checkStateBeforeCall();
|
| 622 |
+
return $this->_epsInterfaceImpl->updateBillOfLading($this->getResultLogin(true)->getSessionId(), $picking);
|
| 623 |
+
}
|
| 624 |
+
|
| 625 |
+
/**
|
| 626 |
+
* This method is used to add parcel to an existing BOL
|
| 627 |
+
* (only allowed if BOL was created with pendingParcelsDescription = true).
|
| 628 |
+
* @since 1.0
|
| 629 |
+
* @param ParamParcel $parcel Parcel data
|
| 630 |
+
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 631 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 632 |
+
* @return integer Signed 64-bit parcel's ID
|
| 633 |
+
*/
|
| 634 |
+
public function addParcel($parcel) {
|
| 635 |
+
$this->checkStateBeforeCall();
|
| 636 |
+
return $this->_epsInterfaceImpl->addParcel($this->getResultLogin(true)->getSessionId(), $parcel);
|
| 637 |
+
}
|
| 638 |
+
|
| 639 |
+
/**
|
| 640 |
+
* Makes BOL "fully created".
|
| 641 |
+
* Only applies to BOLs created with pendingParcelsDescription = true.
|
| 642 |
+
* @since 1.0
|
| 643 |
+
* @param integer $billOfLading Signed 64-bit
|
| 644 |
+
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 645 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 646 |
+
* @return ResultBOL
|
| 647 |
+
*/
|
| 648 |
+
public function finalizeBillOfLadingCreation($billOfLading) {
|
| 649 |
+
$this->checkStateBeforeCall();
|
| 650 |
+
return $this->_epsInterfaceImpl->finalizeBillOfLadingCreation($this->getResultLogin(true)->getSessionId(), $billOfLading);
|
| 651 |
+
}
|
| 652 |
+
|
| 653 |
+
/**
|
| 654 |
+
* Creates an order for shipments pick-up (i.e. a visit by courier of Speedy).
|
| 655 |
+
* The retuned list contains objects corresponding to each BOL (one object per BOL).
|
| 656 |
+
* When the validation errors list of at least one of the objects is not empty, that means the order has not been created.
|
| 657 |
+
* @since 1.0
|
| 658 |
+
* @param ParamOrder $order Order details
|
| 659 |
+
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 660 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 661 |
+
* @return array List of ResultOrderPickingInfo
|
| 662 |
+
*/
|
| 663 |
+
public function createOrder($order) {
|
| 664 |
+
$this->checkStateBeforeCall();
|
| 665 |
+
return $this->_epsInterfaceImpl->createOrder($this->getResultLogin(true)->getSessionId(), $order);
|
| 666 |
+
}
|
| 667 |
+
|
| 668 |
+
/**
|
| 669 |
+
* Returns a list with all parcels of a shipment.
|
| 670 |
+
* @since 1.0
|
| 671 |
+
* @param integer $billOfLading Signed 64-bit
|
| 672 |
+
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 673 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 674 |
+
* @return array List of ResultParcelInfo
|
| 675 |
+
*/
|
| 676 |
+
public function getPickingParcels($billOfLading) {
|
| 677 |
+
$this->checkStateBeforeCall();
|
| 678 |
+
return $this->_epsInterfaceImpl->getPickingParcels($this->getResultLogin(true)->getSessionId(), $billOfLading);
|
| 679 |
+
}
|
| 680 |
+
|
| 681 |
+
/**
|
| 682 |
+
* This method can be used to track the state/history of a shipment.
|
| 683 |
+
* @deprecated Use trackPickingEx instead
|
| 684 |
+
* @since 1.0
|
| 685 |
+
* @param integer $billOfLading Signed 64-bit
|
| 686 |
+
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 687 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 688 |
+
* @return array List of ResultTrackPicking
|
| 689 |
+
*/
|
| 690 |
+
public function trackPicking($billOfLading) {
|
| 691 |
+
$this->checkStateBeforeCall();
|
| 692 |
+
return $this->_epsInterfaceImpl->trackPicking($this->getResultLogin(true)->getSessionId(), $billOfLading);
|
| 693 |
+
}
|
| 694 |
+
|
| 695 |
+
/**
|
| 696 |
+
* This method can be used to track the state/history of a shipment.
|
| 697 |
+
* @since 1.2
|
| 698 |
+
* @param integer $billOfLading Signed 64-bit
|
| 699 |
+
* @param ParamLanguage $language BG or EN. If set to null the server defaults to BG
|
| 700 |
+
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 701 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 702 |
+
* @return array List of ResultTrackPickingEx
|
| 703 |
+
*/
|
| 704 |
+
public function trackPickingEx($billOfLading, $language) {
|
| 705 |
+
$this->checkStateBeforeCall();
|
| 706 |
+
return $this->_epsInterfaceImpl->trackPickingEx($this->getResultLogin(true)->getSessionId(), $billOfLading, $language);
|
| 707 |
+
}
|
| 708 |
+
|
| 709 |
+
/**
|
| 710 |
+
* This method can be used to track the state/history of a shipment.
|
| 711 |
+
* @since 1.4
|
| 712 |
+
* @param integer $parcelId Signed 64-bit
|
| 713 |
+
* @param ParamLanguage $language BG or EN. If set to null the server defaults to BG
|
| 714 |
+
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 715 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 716 |
+
* @return array List of ResultTrackPickingEx
|
| 717 |
+
*/
|
| 718 |
+
public function trackParcel($parcelId, $language) {
|
| 719 |
+
$this->checkStateBeforeCall();
|
| 720 |
+
return $this->_epsInterfaceImpl->trackParcel($this->getResultLogin(true)->getSessionId(), $parcelId, $language);
|
| 721 |
+
}
|
| 722 |
+
|
| 723 |
+
/**
|
| 724 |
+
* This method can be used to track the state/history of a shipment parcel.
|
| 725 |
+
* @since 2.8.0
|
| 726 |
+
* @param List of integer (Signed 64-bit) $barcodes
|
| 727 |
+
* @param ParamLanguage $language BG or EN. If set to null the server defaults to BG
|
| 728 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 729 |
+
* @return array List of ResultTrackPickingEx
|
| 730 |
+
*/
|
| 731 |
+
public function trackParcelMultiple($barcodes, $language) {
|
| 732 |
+
$this->checkStateBeforeCall();
|
| 733 |
+
return $this->_epsInterfaceImpl->trackParcelMultiple($this->getResultLogin(true)->getSessionId(), $barcodes, $language);
|
| 734 |
+
}
|
| 735 |
+
|
| 736 |
+
|
| 737 |
+
/**
|
| 738 |
+
* Search BOLs by reference codes (ref1 and/or ref2).
|
| 739 |
+
* @since 1.0
|
| 740 |
+
* @param ParamSearchByRefNum $params
|
| 741 |
+
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 742 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 743 |
+
* @return array List of BOLs found (signed 64-bit integers)
|
| 744 |
+
*/
|
| 745 |
+
public function searchPickingsByRefNumber($params) {
|
| 746 |
+
$this->checkStateBeforeCall();
|
| 747 |
+
return $this->_epsInterfaceImpl->searchPickingsByRefNumber($this->getResultLogin(true)->getSessionId(), $params);
|
| 748 |
+
}
|
| 749 |
+
|
| 750 |
+
/**
|
| 751 |
+
* Get microregion id for provided GPS coordinates
|
| 752 |
+
* @since 1.5
|
| 753 |
+
* @param signed 64-bit treal $coordX
|
| 754 |
+
* @param signed 64-bit treal $coordY
|
| 755 |
+
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 756 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 757 |
+
* @return Mocregion id (signed 64-bit integer)
|
| 758 |
+
*/
|
| 759 |
+
public function getMicroregionId($coordX, $coordY) {
|
| 760 |
+
$this->checkStateBeforeCall();
|
| 761 |
+
return $this->_epsInterfaceImpl->getMicroregionId($this->getResultLogin(true)->getSessionId(), $coordX, $coordY);
|
| 762 |
+
}
|
| 763 |
+
|
| 764 |
+
/**
|
| 765 |
+
* Returns data for clients by specified client ID or other search criteria.
|
| 766 |
+
* If client ID is specified the behaviour of this method is the same as getClientById.
|
| 767 |
+
* Otherwise, the search returns results that satisfy search criteria
|
| 768 |
+
* @since 1.6
|
| 769 |
+
* @param ParamClientSearch $clientQuery
|
| 770 |
+
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 771 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 772 |
+
* @return array List of ResultClientData
|
| 773 |
+
*/
|
| 774 |
+
public function searchClients($clientQuery) {
|
| 775 |
+
$this->checkStateBeforeCall();
|
| 776 |
+
return $this->_epsInterfaceImpl->searchClients($this->getResultLogin(true)->getSessionId(), $clientQuery);
|
| 777 |
+
}
|
| 778 |
+
|
| 779 |
+
|
| 780 |
+
/**
|
| 781 |
+
* Returns list with available special delivery requirements for logged user
|
| 782 |
+
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 783 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 784 |
+
* @return array List of ResultSpecialDeliveryRequirement
|
| 785 |
+
* @since 2.1.0
|
| 786 |
+
*/
|
| 787 |
+
public function listSpecialDeliveryRequirements() {
|
| 788 |
+
$this->checkStateBeforeCall();
|
| 789 |
+
return $this->_epsInterfaceImpl->listSpecialDeliveryRequirements($this->getResultLogin(true)->getSessionId());
|
| 790 |
+
}
|
| 791 |
+
|
| 792 |
+
/**
|
| 793 |
+
* Validates address and returns validation result
|
| 794 |
+
* - validationMode = 0 (default) - Extended validation w/o GIS info (address uniqueness is not verified);
|
| 795 |
+
* - validationMode = 1 (NOT IMPLEMENTED YET - reserved for future implementation) Extended validation with GIS info (address uniqueness is verified);
|
| 796 |
+
* - validationMode = 2 - basic validation (the same as address validation in createBillOfLading)
|
| 797 |
+
* @param ParamAddress $address
|
| 798 |
+
* @param integer $validationMode signed 32 bit
|
| 799 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 800 |
+
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 801 |
+
* @throws PickingValidationException Thrown in case address validation has failed
|
| 802 |
+
* @return boolean Validation result flag
|
| 803 |
+
* @since 2.2.0
|
| 804 |
+
*/
|
| 805 |
+
public function validateAddress($address, $validationMode) {
|
| 806 |
+
$this->checkStateBeforeCall();
|
| 807 |
+
return $this->_epsInterfaceImpl->validateAddress($this->getResultLogin(true)->getSessionId(), $address, $validationMode);
|
| 808 |
+
}
|
| 809 |
+
|
| 810 |
+
/**
|
| 811 |
+
* Returns all client objects ( including logged user's ) having the same contract as logged client's contract.
|
| 812 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 813 |
+
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 814 |
+
* @return List of ResultClientData
|
| 815 |
+
* @since 2.2.0
|
| 816 |
+
*/
|
| 817 |
+
public function listContractClients() {
|
| 818 |
+
$this->checkStateBeforeCall();
|
| 819 |
+
return $this->_epsInterfaceImpl->listContractClients($this->getResultLogin(true)->getSessionId());
|
| 820 |
+
}
|
| 821 |
+
|
| 822 |
+
/**
|
| 823 |
+
* Returns a list of Speedy offices matching the search criteria
|
| 824 |
+
* The list is limited to 10 records.
|
| 825 |
+
* @since 2.2.0
|
| 826 |
+
* @param string $name Office name (or part of it);
|
| 827 |
+
* @param integer $siteId Signed 64-bit Site ID
|
| 828 |
+
* @param ParamLanguage $language BG or EN. If set to null the server defaults to BG (added in 2.3.0)
|
| 829 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 830 |
+
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 831 |
+
* @return array ResultOfficeEx List of offices
|
| 832 |
+
*/
|
| 833 |
+
public function listOfficesEx($name, $siteId, $language = null) {
|
| 834 |
+
$this->checkStateBeforeCall();
|
| 835 |
+
return $this->_epsInterfaceImpl->listOfficesEx($this->getResultLogin(true)->getSessionId(), $name, $siteId, $language);
|
| 836 |
+
}
|
| 837 |
+
|
| 838 |
+
/**
|
| 839 |
+
* Returns deserialized address from serialized string address
|
| 840 |
+
* @param string $address Serialized address
|
| 841 |
+
* @return ParamAddress Deserliazed address
|
| 842 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 843 |
+
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 844 |
+
* @since 2.3.0
|
| 845 |
+
*/
|
| 846 |
+
public function deserializeAddress($address) {
|
| 847 |
+
$this->checkStateBeforeCall();
|
| 848 |
+
return $this->_epsInterfaceImpl->deserializeAddress($this->getResultLogin(true)->getSessionId(), $address);
|
| 849 |
+
}
|
| 850 |
+
|
| 851 |
+
/**
|
| 852 |
+
* Returns deserialized address from serialized string address
|
| 853 |
+
* @param ParamAddress $address Address
|
| 854 |
+
* @return Serialized string address
|
| 855 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 856 |
+
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 857 |
+
* @since 2.3.0
|
| 858 |
+
*/
|
| 859 |
+
public function serializeAddress($address) {
|
| 860 |
+
$this->checkStateBeforeCall();
|
| 861 |
+
return $this->_epsInterfaceImpl->serializeAddress($this->getResultLogin(true)->getSessionId(), $address);
|
| 862 |
+
}
|
| 863 |
+
|
| 864 |
+
/**
|
| 865 |
+
* Make address text representations - city address, local address, full address
|
| 866 |
+
* @param ParamAddress $address Base address
|
| 867 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 868 |
+
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 869 |
+
* @return ResultAddressString
|
| 870 |
+
*/
|
| 871 |
+
public function makeAddressString($address) {
|
| 872 |
+
$this->checkStateBeforeCall();
|
| 873 |
+
return $this->_epsInterfaceImpl->makeAddressString($this->getResultLogin(true)->getSessionId(), $address);
|
| 874 |
+
}
|
| 875 |
+
|
| 876 |
+
/**
|
| 877 |
+
* Get list of additional user parameters
|
| 878 |
+
* @param date $date Effective date. If null is provided then current date is applied
|
| 879 |
+
* @return array signed 32-bit integers - List of additional user parameters
|
| 880 |
+
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 881 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 882 |
+
*/
|
| 883 |
+
public function getAdditionalUserParams($date) {
|
| 884 |
+
$this->checkStateBeforeCall();
|
| 885 |
+
return $this->_epsInterfaceImpl->getAdditionalUserParams($this->getResultLogin(true)->getSessionId(), $date);
|
| 886 |
+
}
|
| 887 |
+
|
| 888 |
+
/**
|
| 889 |
+
* Returns a list of countries matching the search criteria.
|
| 890 |
+
* The result is limited to 10 records
|
| 891 |
+
* @param string $name Country name or part of it
|
| 892 |
+
* @param ParamLanguage $language Language
|
| 893 |
+
* @return array of ResultCountry
|
| 894 |
+
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 895 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 896 |
+
* @since 2.5.0
|
| 897 |
+
*/
|
| 898 |
+
public function listCountries($name, $language = null) {
|
| 899 |
+
$this->checkStateBeforeCall();
|
| 900 |
+
return $this->_epsInterfaceImpl->listCountries($this->getResultLogin(true)->getSessionId(), $name, $language);
|
| 901 |
+
}
|
| 902 |
+
|
| 903 |
+
/**
|
| 904 |
+
* Returns a list of countries matching the search criteria.
|
| 905 |
+
* The result is limited to 10 records
|
| 906 |
+
* @param ParamFilterCountry $filter Country search filter
|
| 907 |
+
* @param ParamLanguage $language Language
|
| 908 |
+
* @return array of ResultCountry
|
| 909 |
+
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 910 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 911 |
+
* @since 2.5.0
|
| 912 |
+
*/
|
| 913 |
+
public function listCountriesEx($filter, $language = null) {
|
| 914 |
+
$this->checkStateBeforeCall();
|
| 915 |
+
return $this->_epsInterfaceImpl->listCountriesEx($this->getResultLogin(true)->getSessionId(), $filter, $language);
|
| 916 |
+
}
|
| 917 |
+
|
| 918 |
+
/**
|
| 919 |
+
* Returns a list of country states matching the search criteria.
|
| 920 |
+
* The result is limited to 10 records
|
| 921 |
+
* @param integer $countryId signed 64-bit Country id
|
| 922 |
+
* @param string $name Country state name or part of it
|
| 923 |
+
* @return array of ResultState
|
| 924 |
+
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 925 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 926 |
+
* @since 2.5.0
|
| 927 |
+
*/
|
| 928 |
+
public function listStates($countryId, $name) {
|
| 929 |
+
$this->checkStateBeforeCall();
|
| 930 |
+
return $this->_epsInterfaceImpl->listStates($this->getResultLogin(true)->getSessionId(), $countryId, $name);
|
| 931 |
+
}
|
| 932 |
+
|
| 933 |
+
/**
|
| 934 |
+
* Returns a country state by id
|
| 935 |
+
* @param string $stateId Country state id
|
| 936 |
+
* @return ResultState Country state
|
| 937 |
+
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 938 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 939 |
+
* @since 2.5.0
|
| 940 |
+
*/
|
| 941 |
+
public function getStateById($stateId) {
|
| 942 |
+
$this->checkStateBeforeCall();
|
| 943 |
+
return $this->_epsInterfaceImpl->getStateById($this->getResultLogin(true)->getSessionId(), $stateId);
|
| 944 |
+
}
|
| 945 |
+
|
| 946 |
+
/**
|
| 947 |
+
* Validates post code
|
| 948 |
+
* @param integer $countryId signed 64-bit Country id
|
| 949 |
+
* @param string $postCode Post code
|
| 950 |
+
* @return True or false regarding the post code validation result
|
| 951 |
+
* @throws ClientException Thrown in case EPS interface implementation is not set
|
| 952 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 953 |
+
* @since 2.5.0
|
| 954 |
+
*/
|
| 955 |
+
public function validatePostCode($countryId, $postCode) {
|
| 956 |
+
$this->checkStateBeforeCall();
|
| 957 |
+
return $this->_epsInterfaceImpl->validatePostCode($this->getResultLogin(true)->getSessionId(), $countryId, $postCode);
|
| 958 |
+
}
|
| 959 |
+
|
| 960 |
+
/**
|
| 961 |
+
* This method can be used to get delivery info for a shipment.
|
| 962 |
+
* Returns null if no info is available
|
| 963 |
+
* @since 2.6.0
|
| 964 |
+
* @param billOfLading Signed 64-bit
|
| 965 |
+
* @param language Language
|
| 966 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 967 |
+
* @return ResultTrackPickingEx
|
| 968 |
+
*/
|
| 969 |
+
public function getPickingDeliveryInfo($billOfLading, $language) {
|
| 970 |
+
$this->checkStateBeforeCall();
|
| 971 |
+
return $this->_epsInterfaceImpl->getPickingDeliveryInfo($this->getResultLogin(true)->getSessionId(), $billOfLading, $language);
|
| 972 |
+
}
|
| 973 |
+
|
| 974 |
+
/**
|
| 975 |
+
* Returns a list with all not canceled pickings, which are secondary to the picking with the specified billOfLading.
|
| 976 |
+
* @since 2.6.0
|
| 977 |
+
* @param paramSearchSecondaryPickings ParamSearchSecondaryPickings
|
| 978 |
+
* @return List of ResultPickingInfo
|
| 979 |
+
*/
|
| 980 |
+
public function searchSecondaryPickings($paramSearchSecondaryPickings) {
|
| 981 |
+
$this->checkStateBeforeCall();
|
| 982 |
+
return $this->_epsInterfaceImpl->searchSecondaryPickings($this->getResultLogin(true)->getSessionId(), $paramSearchSecondaryPickings);
|
| 983 |
+
}
|
| 984 |
+
}
|
| 985 |
Â
?>
|
lib/SpeedyEPS/ver01/EPSInterface.class.php
CHANGED
|
@@ -1,545 +1,704 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
|
| 3 |
-
require_once 'ServerException.class.php';
|
| 4 |
-
require_once '
|
| 5 |
-
require_once '
|
| 6 |
-
require_once '
|
| 7 |
-
require_once '
|
| 8 |
-
require_once '
|
| 9 |
-
require_once '
|
| 10 |
-
require_once '
|
| 11 |
-
require_once '
|
| 12 |
-
require_once '
|
| 13 |
-
require_once '
|
| 14 |
-
require_once '
|
| 15 |
-
require_once '
|
| 16 |
-
require_once '
|
| 17 |
-
require_once '
|
| 18 |
-
require_once '
|
| 19 |
-
require_once '
|
| 20 |
-
require_once '
|
| 21 |
-
require_once '
|
| 22 |
-
require_once '
|
| 23 |
-
require_once '
|
| 24 |
-
require_once '
|
| 25 |
-
require_once '
|
| 26 |
-
require_once '
|
| 27 |
-
require_once '
|
| 28 |
-
require_once '
|
| 29 |
-
require_once '
|
| 30 |
-
require_once '
|
| 31 |
-
require_once '
|
| 32 |
-
require_once '
|
| 33 |
-
require_once '
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
*
|
| 53 |
-
* @
|
| 54 |
-
* @
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
*
|
| 63 |
-
* @
|
| 64 |
-
* @
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
*
|
| 73 |
-
* @
|
| 74 |
-
* @
|
| 75 |
-
* @
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
*
|
| 85 |
-
*
|
| 86 |
-
* @
|
| 87 |
-
* @param string $
|
| 88 |
-
* @param
|
| 89 |
-
* @param string $
|
| 90 |
-
* @
|
| 91 |
-
* @
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
*
|
| 101 |
-
*
|
| 102 |
-
*
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
*
|
| 108 |
-
* @
|
| 109 |
-
* @
|
| 110 |
-
* @
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
*
|
| 116 |
-
*
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
*
|
| 122 |
-
*
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
*
|
| 128 |
-
*
|
| 129 |
-
*
|
| 130 |
-
* @
|
| 131 |
-
* @param
|
| 132 |
-
* @param integer $
|
| 133 |
-
* @
|
| 134 |
-
* @
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
*
|
| 140 |
-
*
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
*
|
| 152 |
-
*
|
| 153 |
-
*
|
| 154 |
-
*
|
| 155 |
-
*
|
| 156 |
-
*
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
*
|
| 162 |
-
* @
|
| 163 |
-
* @param
|
| 164 |
-
* @
|
| 165 |
-
* @
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
*
|
| 172 |
-
*
|
| 173 |
-
*
|
| 174 |
-
* @
|
| 175 |
-
* @
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
*
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
|
| 189 |
-
*
|
| 190 |
-
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
*
|
| 195 |
-
* @
|
| 196 |
-
* @
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
|
| 202 |
-
|
| 203 |
-
|
| 204 |
-
*
|
| 205 |
-
* @
|
| 206 |
-
* @param
|
| 207 |
-
* @throws ServerException Thrown in case communication with server has failed
|
| 208 |
-
* @return array
|
| 209 |
-
*/
|
| 210 |
-
public function
|
| 211 |
-
|
| 212 |
-
/**
|
| 213 |
-
* Returns a list of common
|
| 214 |
-
*
|
| 215 |
-
* @
|
| 216 |
-
* @param
|
| 217 |
-
* @
|
| 218 |
-
* @
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
|
| 224 |
-
|
| 225 |
-
*
|
| 226 |
-
*
|
| 227 |
-
* @
|
| 228 |
-
* @param
|
| 229 |
-
* @param
|
| 230 |
-
* @
|
| 231 |
-
* @
|
| 232 |
-
|
| 233 |
-
|
| 234 |
-
|
| 235 |
-
|
| 236 |
-
|
| 237 |
-
*
|
| 238 |
-
*
|
| 239 |
-
* @
|
| 240 |
-
* @param string $
|
| 241 |
-
* @param
|
| 242 |
-
* @param
|
| 243 |
-
* @throws ServerException Thrown in case communication with server has failed
|
| 244 |
-
* @return array
|
| 245 |
-
*/
|
| 246 |
-
public function
|
| 247 |
-
|
| 248 |
-
/**
|
| 249 |
-
* Returns
|
| 250 |
-
*
|
| 251 |
-
*
|
| 252 |
-
* @
|
| 253 |
-
* @param string $
|
| 254 |
-
* @param integer $
|
| 255 |
-
* @
|
| 256 |
-
* @
|
| 257 |
-
|
| 258 |
-
|
| 259 |
-
|
| 260 |
-
|
| 261 |
-
|
| 262 |
-
*
|
| 263 |
-
*
|
| 264 |
-
*
|
| 265 |
-
*
|
| 266 |
-
* @
|
| 267 |
-
* @param
|
| 268 |
-
* @param
|
| 269 |
-
* @
|
| 270 |
-
* @
|
| 271 |
-
|
| 272 |
-
|
| 273 |
-
|
| 274 |
-
|
| 275 |
-
|
| 276 |
-
|
| 277 |
-
|
| 278 |
-
*
|
| 279 |
-
* @
|
| 280 |
-
* @param
|
| 281 |
-
* @
|
| 282 |
-
* @
|
| 283 |
-
|
| 284 |
-
|
| 285 |
-
|
| 286 |
-
|
| 287 |
-
|
| 288 |
-
*
|
| 289 |
-
*
|
| 290 |
-
* @
|
| 291 |
-
* @param
|
| 292 |
-
* @
|
| 293 |
-
* @
|
| 294 |
-
|
| 295 |
-
|
| 296 |
-
|
| 297 |
-
|
| 298 |
-
|
| 299 |
-
*
|
| 300 |
-
*
|
| 301 |
-
*
|
| 302 |
-
*
|
| 303 |
-
*
|
| 304 |
-
* @
|
| 305 |
-
* @
|
| 306 |
-
|
| 307 |
-
|
| 308 |
-
|
| 309 |
-
|
| 310 |
-
*
|
| 311 |
-
*
|
| 312 |
-
* @
|
| 313 |
-
* @
|
| 314 |
-
|
| 315 |
-
|
| 316 |
-
|
| 317 |
-
|
| 318 |
-
|
| 319 |
-
|
| 320 |
-
|
| 321 |
-
*
|
| 322 |
-
* @
|
| 323 |
-
* @param
|
| 324 |
-
* @
|
| 325 |
-
* @
|
| 326 |
-
|
| 327 |
-
|
| 328 |
-
|
| 329 |
-
|
| 330 |
-
|
| 331 |
-
*
|
| 332 |
-
*
|
| 333 |
-
*
|
| 334 |
-
*
|
| 335 |
-
*
|
| 336 |
-
|
| 337 |
-
|
| 338 |
-
|
| 339 |
-
|
| 340 |
-
*
|
| 341 |
-
*
|
| 342 |
-
|
| 343 |
-
|
| 344 |
-
|
| 345 |
-
|
| 346 |
-
*
|
| 347 |
-
*
|
| 348 |
-
|
| 349 |
-
|
| 350 |
-
|
| 351 |
-
|
| 352 |
-
*
|
| 353 |
-
*
|
| 354 |
-
* @
|
| 355 |
-
|
| 356 |
-
|
| 357 |
-
|
| 358 |
-
|
| 359 |
-
|
| 360 |
-
|
| 361 |
-
|
| 362 |
-
|
| 363 |
-
*
|
| 364 |
-
* @
|
| 365 |
-
* @
|
| 366 |
-
|
| 367 |
-
|
| 368 |
-
|
| 369 |
-
|
| 370 |
-
|
| 371 |
-
|
| 372 |
-
|
| 373 |
-
*
|
| 374 |
-
*
|
| 375 |
-
*
|
| 376 |
-
|
| 377 |
-
|
| 378 |
-
|
| 379 |
-
|
| 380 |
-
*
|
| 381 |
-
*
|
| 382 |
-
* @
|
| 383 |
-
* @
|
| 384 |
-
|
| 385 |
-
|
| 386 |
-
|
| 387 |
-
|
| 388 |
-
|
| 389 |
-
|
| 390 |
-
|
| 391 |
-
*
|
| 392 |
-
*
|
| 393 |
-
* @
|
| 394 |
-
* @param
|
| 395 |
-
* @
|
| 396 |
-
* @
|
| 397 |
-
|
| 398 |
-
|
| 399 |
-
|
| 400 |
-
|
| 401 |
-
|
| 402 |
-
*
|
| 403 |
-
*
|
| 404 |
-
* @
|
| 405 |
-
* @param
|
| 406 |
-
* @
|
| 407 |
-
* @
|
| 408 |
-
|
| 409 |
-
|
| 410 |
-
|
| 411 |
-
|
| 412 |
-
|
| 413 |
-
*
|
| 414 |
-
*
|
| 415 |
-
*
|
| 416 |
-
* @
|
| 417 |
-
* @param string $
|
| 418 |
-
* @
|
| 419 |
-
|
| 420 |
-
|
| 421 |
-
|
| 422 |
-
|
| 423 |
-
|
| 424 |
-
|
| 425 |
-
*
|
| 426 |
-
* @
|
| 427 |
-
* @param
|
| 428 |
-
* @
|
| 429 |
-
* @
|
| 430 |
-
|
| 431 |
-
|
| 432 |
-
|
| 433 |
-
|
| 434 |
-
|
| 435 |
-
*
|
| 436 |
-
* @
|
| 437 |
-
* @
|
| 438 |
-
* @param
|
| 439 |
-
* @
|
| 440 |
-
* @
|
| 441 |
-
|
| 442 |
-
|
| 443 |
-
|
| 444 |
-
|
| 445 |
-
|
| 446 |
-
*
|
| 447 |
-
* @since 1.
|
| 448 |
-
* @param string $sessionId
|
| 449 |
-
* @param integer $billOfLading Signed 64-bit
|
| 450 |
-
* @
|
| 451 |
-
* @
|
| 452 |
-
|
| 453 |
-
|
| 454 |
-
|
| 455 |
-
|
| 456 |
-
|
| 457 |
-
*
|
| 458 |
-
*
|
| 459 |
-
* @
|
| 460 |
-
* @param
|
| 461 |
-
* @param
|
| 462 |
-
* @throws ServerException Thrown in case communication with server has failed
|
| 463 |
-
* @return array List of
|
| 464 |
-
|
| 465 |
-
public function
|
| 466 |
-
|
| 467 |
-
/**
|
| 468 |
-
*
|
| 469 |
-
* @since 1.0
|
| 470 |
-
* @param string $sessionId
|
| 471 |
-
* @param
|
| 472 |
-
* @throws ServerException Thrown in case communication with server has failed
|
| 473 |
-
* @return array List of
|
| 474 |
-
*/
|
| 475 |
-
public function
|
| 476 |
-
|
| 477 |
-
/**
|
| 478 |
-
*
|
| 479 |
-
* @
|
| 480 |
-
* @
|
| 481 |
-
* @param
|
| 482 |
-
* @param
|
| 483 |
-
* @throws ServerException Thrown in case communication with server has failed
|
| 484 |
-
* @return
|
| 485 |
-
|
| 486 |
-
public function
|
| 487 |
-
|
| 488 |
-
/**
|
| 489 |
-
*
|
| 490 |
-
*
|
| 491 |
-
*
|
| 492 |
-
* @
|
| 493 |
-
* @param
|
| 494 |
-
* @
|
| 495 |
-
* @
|
| 496 |
-
|
| 497 |
-
|
| 498 |
-
|
| 499 |
-
|
| 500 |
-
|
| 501 |
-
*
|
| 502 |
-
* @param string $sessionId
|
| 503 |
-
* @
|
| 504 |
-
* @
|
| 505 |
-
* @
|
| 506 |
-
|
| 507 |
-
|
| 508 |
-
|
| 509 |
-
|
| 510 |
-
|
| 511 |
-
*
|
| 512 |
-
*
|
| 513 |
-
*
|
| 514 |
-
* @param
|
| 515 |
-
* @param
|
| 516 |
-
* @
|
| 517 |
-
* @
|
| 518 |
-
|
| 519 |
-
|
| 520 |
-
|
| 521 |
-
|
| 522 |
-
|
| 523 |
-
|
| 524 |
-
|
| 525 |
-
*
|
| 526 |
-
* @
|
| 527 |
-
* @
|
| 528 |
-
|
| 529 |
-
|
| 530 |
-
|
| 531 |
-
|
| 532 |
-
|
| 533 |
-
|
| 534 |
-
*
|
| 535 |
-
*
|
| 536 |
-
* @
|
| 537 |
-
* @
|
| 538 |
-
* @
|
| 539 |
-
|
| 540 |
-
|
| 541 |
-
|
| 542 |
-
|
| 543 |
-
|
| 544 |
-
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
| 545 |
Â
?>
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
require_once 'ServerException.class.php';
|
| 4 |
+
require_once 'ResultAddressString.class.php';
|
| 5 |
+
require_once 'ResultLogin.class.php';
|
| 6 |
+
require_once 'ResultSite.class.php';
|
| 7 |
+
require_once 'ResultSiteEx.class.php';
|
| 8 |
+
require_once 'ResultCourierService.class.php';
|
| 9 |
+
require_once 'ResultCourierServiceExt.class.php';
|
| 10 |
+
require_once 'ResultMinMaxReal.class.php';
|
| 11 |
+
require_once 'ResultStreet.class.php';
|
| 12 |
+
require_once 'ResultQuarter.class.php';
|
| 13 |
+
require_once 'ResultCommonObject.class.php';
|
| 14 |
+
require_once 'ResultOffice.class.php';
|
| 15 |
+
require_once 'ResultOfficeEx.class.php';
|
| 16 |
+
require_once 'ResultClientData.class.php';
|
| 17 |
+
require_once 'ResultAddressSearch.class.php';
|
| 18 |
+
require_once 'ResultCalculation.class.php';
|
| 19 |
+
require_once 'ResultCalculationMS.class.php';
|
| 20 |
+
require_once 'ResultBOL.class.php';
|
| 21 |
+
require_once 'ResultOrderPickingInfo.class.php';
|
| 22 |
+
require_once 'ResultTrackPicking.class.php';
|
| 23 |
+
require_once 'ResultTrackPickingEx.class.php';
|
| 24 |
+
require_once 'ResultSpecialDeliveryRequirement.class.php';
|
| 25 |
+
require_once 'ResultCountry.class.php';
|
| 26 |
+
require_once 'ResultState.class.php';
|
| 27 |
+
require_once 'ResultPickingInfo.class.php';
|
| 28 |
+
require_once 'ParamCalculation.class.php';
|
| 29 |
+
require_once 'ParamFilterSite.class.php';
|
| 30 |
+
require_once 'ParamAddress.class.php';
|
| 31 |
+
require_once 'ParamAddressSearch.class.php';
|
| 32 |
+
require_once 'ParamFilterCountry.class.php';
|
| 33 |
+
require_once 'ParamLanguage.class.php';
|
| 34 |
+
require_once 'ParamPicking.class.php';
|
| 35 |
+
require_once 'ParamPDF.class.php';
|
| 36 |
+
require_once 'ParamParcel.class.php';
|
| 37 |
+
require_once 'ParamOrder.class.php';
|
| 38 |
+
require_once 'ParamSearchByRefNum.class.php';
|
| 39 |
+
require_once 'ParamClientSearch.class.php';
|
| 40 |
+
require_once 'ParamSearchSecondaryPickings.class.php';
|
| 41 |
+
|
| 42 |
+
/**
|
| 43 |
+
* Speedy EPS Service Interface.
|
| 44 |
+
* This interface should be implemented by all specific protocol class implementations (SOAP, REST, etc.)
|
| 45 |
+
*/
|
| 46 |
+
interface EPSInterface {
|
| 47 |
+
|
| 48 |
+
/**
|
| 49 |
+
* Login web service method
|
| 50 |
+
* @since 1.0
|
| 51 |
+
* @param string $username User name
|
| 52 |
+
* @param string $password User password
|
| 53 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 54 |
+
* @return ResultLogin Result of login
|
| 55 |
+
*/
|
| 56 |
+
public function login($username, $password);
|
| 57 |
+
|
| 58 |
+
/**
|
| 59 |
+
* Returns whether the session is active
|
| 60 |
+
* @since 1.0
|
| 61 |
+
* @param string $sessionId The session ID to be tested
|
| 62 |
+
* @param boolean $refreshSession In case the session is active, this parameter specifies if the session should be automatically refreshed
|
| 63 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 64 |
+
* @return boolean Session active flag
|
| 65 |
+
*/
|
| 66 |
+
public function isSessionActive($sessionId, $refreshSession);
|
| 67 |
+
|
| 68 |
+
/**
|
| 69 |
+
* Returns the list of courier services valid on this date
|
| 70 |
+
* @since 1.0
|
| 71 |
+
* @param string $sessionId
|
| 72 |
+
* @param date $date
|
| 73 |
+
* @param ParamLanguage $language Language (added in 2.5.0)
|
| 74 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 75 |
+
* @return array List of ResultCourierService instances
|
| 76 |
+
*/
|
| 77 |
+
public function listServices($sessionId, $date, $language);
|
| 78 |
+
|
| 79 |
+
/**
|
| 80 |
+
* Returns the list of courier services valid on this date and sites.
|
| 81 |
+
* @since 1.0
|
| 82 |
+
* @param string $sessionId
|
| 83 |
+
* @param datetime $date
|
| 84 |
+
* @param integer $senderSiteId Signed 64-bit integer sender's site ID;
|
| 85 |
+
* @param integer $receiverSiteId Signed 64-bit integer receiver's site ID;
|
| 86 |
+
* @param integer $senderCountryId Signed 64-bit integer sender's country ID (added in 2.5.0);
|
| 87 |
+
* @param string $senderPostCode sender's post code (added in 2.5.0);
|
| 88 |
+
* @param integer $receiverCountryId Signed 64-bit integer receiver's country ID (added in 2.5.0);
|
| 89 |
+
* @param string $receiverPostCode receiver's post code (added in 2.5.0);
|
| 90 |
+
* @param ParamLanguage $language language (added in 2.5.0)
|
| 91 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 92 |
+
* @return array List of ResultCourierServiceExt instances
|
| 93 |
+
*/
|
| 94 |
+
public function listServicesForSites(
|
| 95 |
+
$sessionId, $date, $senderSiteId, $receiverSiteId,
|
| 96 |
+
$senderCountryId, $senderPostCode, $receiverCountryId, $receiverPostCode, $language
|
| 97 |
+
);
|
| 98 |
+
|
| 99 |
+
/**
|
| 100 |
+
* Returns a list of sites matching the search criteria.
|
| 101 |
+
* The result is limited to 10 records
|
| 102 |
+
* The method is deprecated starting from 2.5.0, "listSitesEx" should be used instead.
|
| 103 |
+
* @deprecated The method is deprecated, "createPDF" should be used instead.
|
| 104 |
+
* @since 1.0
|
| 105 |
+
* @param string $sessionId
|
| 106 |
+
* @param string $type
|
| 107 |
+
* @param string $name
|
| 108 |
+
* @param ParamLanguage $paramLanguage
|
| 109 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 110 |
+
* @return array List of ResultSite instances
|
| 111 |
+
*/
|
| 112 |
+
public function listSites($sessionId, $type, $name, $paramLanguage);
|
| 113 |
+
|
| 114 |
+
/**
|
| 115 |
+
* Returns a list of sites. The method aims to find the closest matches.
|
| 116 |
+
* The result is limited to 10 records
|
| 117 |
+
* @since 1.0
|
| 118 |
+
* @param string $sessionId
|
| 119 |
+
* @param ParamFilterSite $paramFilterSite
|
| 120 |
+
* @param ParamLanguage $language
|
| 121 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 122 |
+
* @return array List of ResultSiteEx instances
|
| 123 |
+
*/
|
| 124 |
+
public function listSitesEx($sessionId, $paramFilterSite, $language);
|
| 125 |
+
|
| 126 |
+
/**
|
| 127 |
+
* Returns the min/max weight allowed for the given shipment parameters
|
| 128 |
+
* @since 1.0
|
| 129 |
+
* @param string $sessionId
|
| 130 |
+
* @param integer $serviceTypeId Signed 64-bit ID of the courier service
|
| 131 |
+
* @param integer $senderSiteId Signed 64-bit Sender's site ID
|
| 132 |
+
* @param integer $receiverSiteId Signed 64-bit Receiver's site ID
|
| 133 |
+
* @param date $date
|
| 134 |
+
* @param boolean $documents Specifies if the shipment consists of documents
|
| 135 |
+
* @param integer $senderCountryId Signed 64-bit Sender's country ID (added in 2.5.0)
|
| 136 |
+
* @param string $senderPostCode Sender's post code (added in 2.5.0)
|
| 137 |
+
* @param integer $receiverCountryId Signed 64-bit Receiver's country ID (added in 2.5.0)
|
| 138 |
+
* @param string $receiverPostCode Receiver's post code (added in 2.5.0)
|
| 139 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 140 |
+
* @return ResultMinMaxReal
|
| 141 |
+
*/
|
| 142 |
+
public function getWeightInterval(
|
| 143 |
+
$sessionId, $serviceTypeId, $senderSiteId, $receiverSiteId, $date, $documents,
|
| 144 |
+
$senderCountryId, $senderPostCode, $receiverCountryId, $receiverPostCode
|
| 145 |
+
);
|
| 146 |
+
|
| 147 |
+
/**
|
| 148 |
+
* Returns CSV-formatted data (depending on the nomenType value).
|
| 149 |
+
* Column numbers can change in the future so it's recommended to address the data using the column names in the header row.
|
| 150 |
+
* The data for some nomenTypes requires a payed license (additional licensing contract) and permissions (access rights).
|
| 151 |
+
* To obtain such license please contact our IT department or your Speedy key account manager.
|
| 152 |
+
* Type 1 - returns a list of all countries
|
| 153 |
+
* Type 50 - returns a list of all states
|
| 154 |
+
* Type 100 - returns a list of all sites.
|
| 155 |
+
* Type 300 - returns a list of all streets (requires a license).
|
| 156 |
+
* Type 400 - returns a list of all quarters (requires a license).
|
| 157 |
+
* Type 500 - returns a list of all common objects (requires a license).
|
| 158 |
+
* Type 700 - returns a list of all block names (requires a license).
|
| 159 |
+
* Type 800 - returns a list of all post codes (requires a license).
|
| 160 |
+
* @since 1.0
|
| 161 |
+
* @param string $sessionId
|
| 162 |
+
* @param integer $nomenType Signed 32-bit The type of address nomenclature
|
| 163 |
+
* @param integer $countryId Signed 64-bit Country id (added in 2.5.0)
|
| 164 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 165 |
+
* @return string CSV formatted
|
| 166 |
+
*/
|
| 167 |
+
public function getAddressNomenclature($sessionId, $nomenType, $countryId);
|
| 168 |
+
|
| 169 |
+
/**
|
| 170 |
+
* Returns a list of all sites.
|
| 171 |
+
* Note: This method is relatively slow (because of the size of its response). You shouldn't call it more than several times a day.
|
| 172 |
+
* The methods is designed to provide data which should be locally stored/cached by client apps.
|
| 173 |
+
* The address-related nomenclature data is updated only several times a year.
|
| 174 |
+
* @since 1.0
|
| 175 |
+
* @param string $sessionId
|
| 176 |
+
* @param ParamLanguage $paramLanguage Language
|
| 177 |
+
* @param integer $countryId signed 64-bit Country id (added in 2.5.0)
|
| 178 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 179 |
+
* @return array List of ResultSite instances
|
| 180 |
+
*/
|
| 181 |
+
public function listAllSites($sessionId, $paramLanguage, $countryId);
|
| 182 |
+
|
| 183 |
+
/**
|
| 184 |
+
* Returns a site by ID
|
| 185 |
+
* @since 1.0
|
| 186 |
+
* @param string $sessionId
|
| 187 |
+
* @param integer $siteId Signed 64-bit Site ID
|
| 188 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 189 |
+
* @return ResultSite
|
| 190 |
+
*/
|
| 191 |
+
public function getSiteById($sessionId, $siteId);
|
| 192 |
+
|
| 193 |
+
/**
|
| 194 |
+
* Returns sites having either full or partial address nomenclature (streets, quarters etc.).
|
| 195 |
+
* @since 1.0
|
| 196 |
+
* @param string $sessionId
|
| 197 |
+
* @param AddrNomen $addrNomen Only values FULL and PARTIAL are allowed
|
| 198 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 199 |
+
* @return List of ResultSite
|
| 200 |
+
*/
|
| 201 |
+
public function getSitesByAddrNomenType($sessionId, $addrNomen);
|
| 202 |
+
|
| 203 |
+
/**
|
| 204 |
+
* Returns a list of the most common types of streets.
|
| 205 |
+
* @since 1.0
|
| 206 |
+
* @param string $sessionId
|
| 207 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 208 |
+
* @return array string List of the most common types of streets
|
| 209 |
+
*/
|
| 210 |
+
public function listStreetTypes($sessionId, $language);
|
| 211 |
+
|
| 212 |
+
/**
|
| 213 |
+
* Returns a list of the most common types of quarters (districts).
|
| 214 |
+
* @since 1.0
|
| 215 |
+
* @param string $sessionId
|
| 216 |
+
* @param ParamLanguage $language
|
| 217 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 218 |
+
* @return array string List of the most common types of quarters (districts).
|
| 219 |
+
*/
|
| 220 |
+
public function listQuarterTypes($sessionId, $language);
|
| 221 |
+
|
| 222 |
+
/**
|
| 223 |
+
* Returns a list of streets matching the search criteria
|
| 224 |
+
* The list is limited to 10 records.
|
| 225 |
+
* @since 1.0
|
| 226 |
+
* @param string $sessionId
|
| 227 |
+
* @param string $name Street name (or part of it)
|
| 228 |
+
* @param integer $siteId Signed 64-bit Site ID
|
| 229 |
+
* @param ParamLanguage $language Language
|
| 230 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 231 |
+
* @return array ResultStreet List of streets
|
| 232 |
+
*/
|
| 233 |
+
public function listStreets($sessionId, $name, $siteId, $language);
|
| 234 |
+
|
| 235 |
+
/**
|
| 236 |
+
* Returns a list of quarters matching the search criteria
|
| 237 |
+
* The list is limited to 10 records.
|
| 238 |
+
* @since 1.0
|
| 239 |
+
* @param string $sessionId
|
| 240 |
+
* @param string $name Quarter name (or part of it)
|
| 241 |
+
* @param integer $siteId Signed 64-bit Site ID
|
| 242 |
+
* @param ParamLanguage $language Language
|
| 243 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 244 |
+
* @return array ResultQuarter List of streets
|
| 245 |
+
*/
|
| 246 |
+
public function listQuarters($sessionId, $name, $siteId, $language);
|
| 247 |
+
|
| 248 |
+
/**
|
| 249 |
+
* Returns a list of common objects matching the search criteria.
|
| 250 |
+
* The list is limited to 10 records.
|
| 251 |
+
* @since 1.0
|
| 252 |
+
* @param string $sessionId
|
| 253 |
+
* @param string $name Common object name (or part of it)
|
| 254 |
+
* @param integer $siteId Signed 64-bit Site ID
|
| 255 |
+
* @param ParamLanguage $language Language
|
| 256 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 257 |
+
* @return array ResultCommonObject List of common objects
|
| 258 |
+
*/
|
| 259 |
+
public function listCommonObjects($sessionId, $name, $siteId, $language);
|
| 260 |
+
|
| 261 |
+
/**
|
| 262 |
+
* Returns a list of blocks matching the search criteria.
|
| 263 |
+
* The list is limited to 10 records.
|
| 264 |
+
* @since 1.0
|
| 265 |
+
* @param string $sessionId
|
| 266 |
+
* @param string $name Block name (or part of it)
|
| 267 |
+
* @param integer $siteId Signed 64-bit Site ID
|
| 268 |
+
* @param ParamLanguage $language Language
|
| 269 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 270 |
+
* @return array string List of blocks
|
| 271 |
+
*/
|
| 272 |
+
public function listBlocks($sessionId, $name, $siteId, $language);
|
| 273 |
+
|
| 274 |
+
/**
|
| 275 |
+
* Returns a list of Speedy offices matching the search criteria
|
| 276 |
+
* The list is limited to 10 records.
|
| 277 |
+
* @since 1.0
|
| 278 |
+
* @param string $sessionId
|
| 279 |
+
* @param string $name Office name (or part of it);
|
| 280 |
+
* @param integer $siteId Signed 64-bit Site ID
|
| 281 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 282 |
+
* @return array ResultOffice List of offices
|
| 283 |
+
*/
|
| 284 |
+
public function listOffices($sessionId, $name, $siteId);
|
| 285 |
+
|
| 286 |
+
/**
|
| 287 |
+
* Returns data for client by ID.
|
| 288 |
+
* Allowed values for clientId are only the ones of members of the user's contract and the predefined partners
|
| 289 |
+
* in the WebClients application.
|
| 290 |
+
* @since 1.0
|
| 291 |
+
* @param string $sessionId
|
| 292 |
+
* @param integer $clientId Signed 64-bit integer – Client/Partner ID
|
| 293 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 294 |
+
* @return ResultClientData
|
| 295 |
+
*/
|
| 296 |
+
public function getClientById($sessionId, $clientId);
|
| 297 |
+
|
| 298 |
+
/**
|
| 299 |
+
* Returns the dates when the shipment can be ordered for pick-up.
|
| 300 |
+
* The "time" component represents the deadline for creating an order
|
| 301 |
+
* (or the deadline for delivering the shipment to a Speedy office when senderOfficeId is set).
|
| 302 |
+
* (This method could be used for the "takingDate" property of ParamPicking or ParamCalculation.)
|
| 303 |
+
* Note: Either senderSiteId or senderOfficeId should be set, or neither of them. Both parameters having "not null" values is not allowed.
|
| 304 |
+
* @since 1.0
|
| 305 |
+
* @param string $sessionId
|
| 306 |
+
* @param integer $serviceTypeId
|
| 307 |
+
* @param integer $senderSiteId Signed 64-bit – Sender's site ID
|
| 308 |
+
* @param integer $senderOfficeId Signed 64-bit – If the sender intends to deliver the shipment to a Speedy office, the office ID could be set as a filter
|
| 309 |
+
* @param date $minDate - When the "time" component is set then this date is to be included in the result list only if the time is not after the working time of Speedy;
|
| 310 |
+
* @param integer $senderCountryId Signed 64-bit Sender's country id (added in 2.5.0)
|
| 311 |
+
* @param string $senderPostCode Sender's post code (added in 2.5.0)
|
| 312 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 313 |
+
* @return array List of dates
|
| 314 |
+
*/
|
| 315 |
+
public function getAllowedDaysForTaking(
|
| 316 |
+
$sessionId, $serviceTypeId, $senderSiteId, $senderOfficeId, $minDate, $senderCountryId, $senderPostCode
|
| 317 |
+
);
|
| 318 |
+
|
| 319 |
+
/**
|
| 320 |
+
* Returns a list of addresses matching the search criteria.
|
| 321 |
+
* @since 1.0
|
| 322 |
+
* @param string $sessionId
|
| 323 |
+
* @param ParamAddressSearch $address Search criteria (filter)
|
| 324 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 325 |
+
* @return array List of ResultAddressSearch
|
| 326 |
+
*/
|
| 327 |
+
public function addressSearch($sessionId, $address);
|
| 328 |
+
|
| 329 |
+
/**
|
| 330 |
+
* Calculate method
|
| 331 |
+
* @since 1.0
|
| 332 |
+
* @param string $sessionId Session ID
|
| 333 |
+
* @param ParamCalculation $paramCalculation
|
| 334 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 335 |
+
* @return ResultCalculation
|
| 336 |
+
*/
|
| 337 |
+
public function calculate($sessionId, $calculation);
|
| 338 |
+
|
| 339 |
+
/**
|
| 340 |
+
* This method could be used for preliminary check-up of shipment's price for a range of courier services.
|
| 341 |
+
* Service type ID field of $calculation structure is overriden by this method to required value (0) before call.
|
| 342 |
+
* @since 1.0
|
| 343 |
+
* @param string $sessionId
|
| 344 |
+
* @param ParamCalculation $calculation Data needed to perform the calculation;
|
| 345 |
+
* @param array $serviceTypeIds List<signed 64-bit integer> – A list of courier service IDs for which price needs to be calculated
|
| 346 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 347 |
+
* @return array List of ResultCalculationMS
|
| 348 |
+
*/
|
| 349 |
+
public function calculateMultipleServices($sessionId, $calculation, $serviceTypeIds);
|
| 350 |
+
|
| 351 |
+
/**
|
| 352 |
+
* This is an alternative method for shipment price calculation where the parameter is of type ParamPicking.
|
| 353 |
+
* Clients are encouraged to use the method that best fits their needs.
|
| 354 |
+
* @since 1.0
|
| 355 |
+
* @param string $sessionId
|
| 356 |
+
* @param ParamPicking $picking
|
| 357 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 358 |
+
* @return ResultCalculation
|
| 359 |
+
*/
|
| 360 |
+
public function calculatePicking($sessionId, $picking);
|
| 361 |
+
|
| 362 |
+
/**
|
| 363 |
+
* The method used to create BOL.
|
| 364 |
+
* @since 1.0
|
| 365 |
+
* @param string $sessionId
|
| 366 |
+
* @param ParamPicking $picking Data for the shipment (BOL)
|
| 367 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 368 |
+
* @return ResultBOL
|
| 369 |
+
*/
|
| 370 |
+
public function createBillOfLading($sessionId, $picking);
|
| 371 |
+
|
| 372 |
+
/**
|
| 373 |
+
* Used for creating PDF documents to be printed (BOLs, labels etc.)
|
| 374 |
+
* Examples:
|
| 375 |
+
* •Bill of Lading;
|
| 376 |
+
* •Bill of Lading with "cash on delivery";
|
| 377 |
+
* •Custom travel label (type 20);
|
| 378 |
+
* •Custom travel label (type 20) with "cash on delivery".
|
| 379 |
+
* @since 1.0
|
| 380 |
+
* @param string $sessionId
|
| 381 |
+
* @param ParamPDF $params
|
| 382 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 383 |
+
* @return array bytes
|
| 384 |
+
*/
|
| 385 |
+
public function createPDF($sessionId, $params);
|
| 386 |
+
|
| 387 |
+
/**
|
| 388 |
+
* Creates PDF document for BOL.
|
| 389 |
+
* The method is deprecated, "createPDF" should be used instead.
|
| 390 |
+
* @deprecated The method is deprecated, "createPDF" should be used instead.
|
| 391 |
+
* @since 1.0
|
| 392 |
+
* @param string $sessionId
|
| 393 |
+
* @param integer $billOfLading Signed 64-bit
|
| 394 |
+
* @param boolean $includeAutoPrintJS Specifies if embedded JavaScript code for direct printing to be generated
|
| 395 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 396 |
+
* @return array of bytes
|
| 397 |
+
*/
|
| 398 |
+
public function createBillOfLadingPDF($sessionId, $billOfLading, $includeAutoPrintJS);
|
| 399 |
+
|
| 400 |
+
/**
|
| 401 |
+
* Creates PDF document of "type I". The method is deprecated, "createPDF" should be used instead.
|
| 402 |
+
* @deprecated The method is deprecated, "createPDF" should be used instead.
|
| 403 |
+
* @since 1.0
|
| 404 |
+
* @param string $sessionId
|
| 405 |
+
* @param integer $parcelId Signed 64-bit Parcel ID
|
| 406 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 407 |
+
* @return array of bytes
|
| 408 |
+
*/
|
| 409 |
+
public function createCustomTravelLabelPDFType1($sessionId, $parcelId);
|
| 410 |
+
|
| 411 |
+
/**
|
| 412 |
+
* Used to cancel BOL.
|
| 413 |
+
* Only allowed when the shipment is neither ordered nor picked up by Speedy.
|
| 414 |
+
* @since 1.0
|
| 415 |
+
* @param string $sessionId
|
| 416 |
+
* @param integer $billOfLading Signed 64-bit
|
| 417 |
+
* @param string $cancelComment Cancel comment
|
| 418 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 419 |
+
*/
|
| 420 |
+
public function invalidatePicking($sessionId, $billOfLading, $cancelComment);
|
| 421 |
+
|
| 422 |
+
/**
|
| 423 |
+
* This method is used to update BOL.
|
| 424 |
+
* Only allowed if BOL was created with pendingShipmentDescription = true.
|
| 425 |
+
* @since 1.0
|
| 426 |
+
* @param string $sessionId
|
| 427 |
+
* @param ParamPicking $picking Data for the shipment (BOL)
|
| 428 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 429 |
+
* @return ResultBOL
|
| 430 |
+
*/
|
| 431 |
+
public function updateBillOfLading($sessionId, $picking);
|
| 432 |
+
|
| 433 |
+
/**
|
| 434 |
+
* This method is used to add parcel to an existing BOL
|
| 435 |
+
* (only allowed if BOL was created with pendingParcelsDescription = true).
|
| 436 |
+
* @since 1.0
|
| 437 |
+
* @param string $sessionId
|
| 438 |
+
* @param ParamParcel $parcel Parcel data
|
| 439 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 440 |
+
* @return integer Signed 64-bit parcel's ID
|
| 441 |
+
*/
|
| 442 |
+
public function addParcel($sessionId, $parcel);
|
| 443 |
+
|
| 444 |
+
/**
|
| 445 |
+
* Makes BOL "fully created".
|
| 446 |
+
* Only applies to BOLs created with pendingParcelsDescription = true.
|
| 447 |
+
* @since 1.0
|
| 448 |
+
* @param string $sessionId
|
| 449 |
+
* @param integer $billOfLading Signed 64-bit
|
| 450 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 451 |
+
* @return ResultBOL
|
| 452 |
+
*/
|
| 453 |
+
public function finalizeBillOfLadingCreation($sessionId, $billOfLading);
|
| 454 |
+
|
| 455 |
+
/**
|
| 456 |
+
* Creates an order for shipments pick-up (i.e. a visit by courier of Speedy).
|
| 457 |
+
* The returned list contains objects corresponding to each BOL (one object per BOL).
|
| 458 |
+
* When the validation errors list of at least one of the objects is not empty, that means the order has not been created.
|
| 459 |
+
* @since 1.0
|
| 460 |
+
* @param string $sessionId
|
| 461 |
+
* @param ParamOrder $order Order details
|
| 462 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 463 |
+
* @return array List of ResultOrderPickingInfo
|
| 464 |
+
*/
|
| 465 |
+
public function createOrder($sessionId, $order);
|
| 466 |
+
|
| 467 |
+
/**
|
| 468 |
+
* Returns a list with all parcels of a shipment.
|
| 469 |
+
* @since 1.0
|
| 470 |
+
* @param string $sessionId
|
| 471 |
+
* @param integer $billOfLading Signed 64-bit
|
| 472 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 473 |
+
* @return array List of ResultParcelInfo
|
| 474 |
+
*/
|
| 475 |
+
public function getPickingParcels($sessionId, $billOfLading);
|
| 476 |
+
|
| 477 |
+
/**
|
| 478 |
+
* This method can be used to track the state/history of a shipment.
|
| 479 |
+
* @deprecated Use trackPickingEx instead
|
| 480 |
+
* @since 1.0
|
| 481 |
+
* @param string $sessionId
|
| 482 |
+
* @param integer $billOfLading Signed 64-bit
|
| 483 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 484 |
+
* @return array List of ResultTrackPicking
|
| 485 |
+
*/
|
| 486 |
+
public function trackPicking($sessionId, $billOfLading);
|
| 487 |
+
|
| 488 |
+
/**
|
| 489 |
+
* This method can be used to track the state/history of a shipment.
|
| 490 |
+
* @since 1.2
|
| 491 |
+
* @param string $sessionId
|
| 492 |
+
* @param integer $billOfLading Signed 64-bit
|
| 493 |
+
* @param ParamLanguage $language BG or EN. If set to null the server defaults to BG
|
| 494 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 495 |
+
* @return array List of ResultTrackPickingEx
|
| 496 |
+
*/
|
| 497 |
+
public function trackPickingEx($sessionId, $billOfLading, $language);
|
| 498 |
+
|
| 499 |
+
/**
|
| 500 |
+
* This method can be used to track the state/history of a shipment parcel.
|
| 501 |
+
* @since 1.4
|
| 502 |
+
* @param string $sessionId
|
| 503 |
+
* @param integer $parcelId Signed 64-bit
|
| 504 |
+
* @param ParamLanguage $language BG or EN. If set to null the server defaults to BG
|
| 505 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 506 |
+
* @return array List of ResultTrackPickingEx
|
| 507 |
+
*/
|
| 508 |
+
public function trackParcel($sessionId, $parcelId, $language);
|
| 509 |
+
|
| 510 |
+
/**
|
| 511 |
+
* This method can be used to track the state/history of a shipment parcel.
|
| 512 |
+
* @since 2.8.0
|
| 513 |
+
* @param string $sessionId
|
| 514 |
+
* @param List of integer (Signed 64-bit) $barcodes
|
| 515 |
+
* @param ParamLanguage $language BG or EN. If set to null the server defaults to BG
|
| 516 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 517 |
+
* @return array List of ResultTrackPickingEx
|
| 518 |
+
*/
|
| 519 |
+
public function trackParcelMultiple($sessionId, $barcodes, $language);
|
| 520 |
+
|
| 521 |
+
/**
|
| 522 |
+
* Search BOLs by reference codes (ref1 and/or ref2).
|
| 523 |
+
* @since 1.0
|
| 524 |
+
* @param string $sessionId
|
| 525 |
+
* @param ParamSearchByRefNum $params
|
| 526 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 527 |
+
* @return array List of BOLs found (signed 64-bit integers)
|
| 528 |
+
*/
|
| 529 |
+
public function searchPickingsByRefNumber($sessionId, $params);
|
| 530 |
+
|
| 531 |
+
/**
|
| 532 |
+
* Get microregion id for provided GPS corrdinates
|
| 533 |
+
* @since 1.5
|
| 534 |
+
* @param string $sessionId
|
| 535 |
+
* @param signed 64-bit treal $coordX
|
| 536 |
+
* @param signed 64-bit treal $coordY
|
| 537 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 538 |
+
* @return Mocregion id (signed 64-bit integer)
|
| 539 |
+
*/
|
| 540 |
+
public function getMicroregionId($sessionId, $coordX, $coordY);
|
| 541 |
+
|
| 542 |
+
/**
|
| 543 |
+
* Returns data for clients by specified client ID or other search criteria.
|
| 544 |
+
* If client ID is specified the behaviour of this method is the same as getClientById.
|
| 545 |
+
* Otherwise, the search returns results that satisfy search criteria
|
| 546 |
+
* @since 1.6
|
| 547 |
+
* @param string $sessionId
|
| 548 |
+
* @param ParamClientSearch $clientQuery
|
| 549 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 550 |
+
* @return array List of ResultClientData
|
| 551 |
+
*/
|
| 552 |
+
public function searchClients($sessionId, $clientQuery);
|
| 553 |
+
|
| 554 |
+
/**
|
| 555 |
+
* Returns list with available special delivery requirements for logged user
|
| 556 |
+
* @param string $sessionId
|
| 557 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 558 |
+
* @return array List of ResultSpecialDeliveryRequirement
|
| 559 |
+
* @since 2.1.0
|
| 560 |
+
*/
|
| 561 |
+
public function listSpecialDeliveryRequirements($sessionId);
|
| 562 |
+
|
| 563 |
+
/**
|
| 564 |
+
* Validates address and returns validation result
|
| 565 |
+
* - validationMode = 0 (default) - Extended validation w/o GIS info (address uniqueness is not verified);
|
| 566 |
+
* - validationMode = 1 (NOT IMPLEMENTED YET - reserved for future implementation) Extended validation with GIS info (address uniqueness is verified);
|
| 567 |
+
* - validationMode = 2 - basic validation (the same as address validation in createBillOfLading)
|
| 568 |
+
* @param string $sessionId
|
| 569 |
+
* @param ParamAddress $address
|
| 570 |
+
* @param integer $validationMode signed 32 bit
|
| 571 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 572 |
+
* @throws PickingValidationException Thrown in case address validation has failed
|
| 573 |
+
* @return boolean Validation result flag
|
| 574 |
+
* @since 2.2.0
|
| 575 |
+
*/
|
| 576 |
+
public function validateAddress($sessionId, $address, $validationMode);
|
| 577 |
+
|
| 578 |
+
/**
|
| 579 |
+
* Returns all client objects ( including logged user's ) having the same contract as logged client's contract.
|
| 580 |
+
* @param string $sessionId
|
| 581 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 582 |
+
* @return List of ResultClientData
|
| 583 |
+
* @since 2.2.0
|
| 584 |
+
*/
|
| 585 |
+
public function listContractClients($sessionId);
|
| 586 |
+
|
| 587 |
+
/**
|
| 588 |
+
* Returns a list of Speedy offices matching the search criteria
|
| 589 |
+
* The list is limited to 10 records.
|
| 590 |
+
* @since 2.2.0
|
| 591 |
+
* @param string $sessionId
|
| 592 |
+
* @param string $name Office name (or part of it);
|
| 593 |
+
* @param integer $siteId Signed 64-bit Site ID
|
| 594 |
+
* @param ParamLanguage $language Language
|
| 595 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 596 |
+
* @return array ResultOfficeEx List of offices
|
| 597 |
+
*/
|
| 598 |
+
public function listOfficesEx($sessionId, $name, $siteId, $language);
|
| 599 |
+
|
| 600 |
+
/**
|
| 601 |
+
* Returns deserialized address from serialized string address
|
| 602 |
+
* @param string $sessionId
|
| 603 |
+
* @param string $address Serialized address
|
| 604 |
+
* @return ParamAddress Deserliazed address
|
| 605 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 606 |
+
* @since 2.3.0
|
| 607 |
+
*/
|
| 608 |
+
public function deserializeAddress($sessionId, $address);
|
| 609 |
+
|
| 610 |
+
/**
|
| 611 |
+
* Returns deserialized address from serialized string address
|
| 612 |
+
* @param string $sessionId
|
| 613 |
+
* @param ParamAddress $address Address
|
| 614 |
+
* @return Serialized string address
|
| 615 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 616 |
+
* @since 2.3.0
|
| 617 |
+
*/
|
| 618 |
+
public function serializeAddress($sessionId, $address);
|
| 619 |
+
|
| 620 |
+
/**
|
| 621 |
+
* Make address text representations - city address, local address, full address
|
| 622 |
+
* @param string $sessionId
|
| 623 |
+
* @param ParamAddress $address Base address
|
| 624 |
+
* @return ResultAddressString
|
| 625 |
+
* @since 2.3.0
|
| 626 |
+
*/
|
| 627 |
+
public function makeAddressString($sessionId, $address);
|
| 628 |
+
|
| 629 |
+
/**
|
| 630 |
+
* Get list of additional user paramters
|
| 631 |
+
* @param string $sessionId
|
| 632 |
+
* @param date $date Effective date. If null is provided then current date is applied
|
| 633 |
+
* @return array signed 32-bit integers - List of additional user parameters
|
| 634 |
+
* @since 2.3.0
|
| 635 |
+
*/
|
| 636 |
+
public function getAdditionalUserParams($sessionId, $date);
|
| 637 |
+
|
| 638 |
+
/**
|
| 639 |
+
* Returns a list of countries matching the search criteria.
|
| 640 |
+
* The result is limited to 10 records
|
| 641 |
+
* @param string $sessionId
|
| 642 |
+
* @param string $name Country name or part of it
|
| 643 |
+
* @param ParamLanguage $language Language
|
| 644 |
+
* @return array of ResultCountry
|
| 645 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 646 |
+
* @since 2.5.0
|
| 647 |
+
*/
|
| 648 |
+
public function listCountries($sessionId, $name, $language);
|
| 649 |
+
|
| 650 |
+
/**
|
| 651 |
+
* Returns a list of countries matching the search criteria.
|
| 652 |
+
* The result is limited to 10 records
|
| 653 |
+
* @param string $sessionId
|
| 654 |
+
* @param ParamFilterCountry $filter Country search filter
|
| 655 |
+
* @param ParamLanguage $language Language
|
| 656 |
+
* @return array of ResultCountry
|
| 657 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 658 |
+
* @since 2.5.0
|
| 659 |
+
*/
|
| 660 |
+
public function listCountriesEx($sessionId, $filter, $language);
|
| 661 |
+
|
| 662 |
+
/**
|
| 663 |
+
* Returns a list of country states matching the search criteria.
|
| 664 |
+
* The result is limited to 10 records
|
| 665 |
+
* @param string $sessionId
|
| 666 |
+
* @param integer $countryId signed 64-bit Country id
|
| 667 |
+
* @param string $name Country state name or part of it
|
| 668 |
+
* @return array of ResultState
|
| 669 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 670 |
+
* @since 2.5.0
|
| 671 |
+
*/
|
| 672 |
+
public function listStates($sessionId, $countryId, $name);
|
| 673 |
+
|
| 674 |
+
/**
|
| 675 |
+
* Returns a country state by id
|
| 676 |
+
* @param string $sessionId
|
| 677 |
+
* @param string $stateId Country state id
|
| 678 |
+
* @return ResultState Country state
|
| 679 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 680 |
+
* @since 2.5.0
|
| 681 |
+
*/
|
| 682 |
+
public function getStateById($sessionId, $stateId);
|
| 683 |
+
|
| 684 |
+
/**
|
| 685 |
+
* Validates post code
|
| 686 |
+
* @param string $sessionId
|
| 687 |
+
* @param integer $countryId signed 64-bit Country id
|
| 688 |
+
* @param string $postCode Post code
|
| 689 |
+
* @return True or false regarding the post code validation result
|
| 690 |
+
* @throws ServerException Thrown in case communication with server has failed
|
| 691 |
+
* @since 2.5.0
|
| 692 |
+
*/
|
| 693 |
+
public function validatePostCode($sessionId, $countryId, $postCode);
|
| 694 |
+
|
| 695 |
+
/**
|
| 696 |
+
* Returns a list with all not canceled pickings, which are secondary to the picking with the specified billOfLading.
|
| 697 |
+
* @param string $sessionId
|
| 698 |
+
* @param ParamSearchSecondaryPickings $paramSearchSecondaryPickings
|
| 699 |
+
* @return List of ResultPickingInfo Information about secondary pickings
|
| 700 |
+
* @since 2.6.0
|
| 701 |
+
*/
|
| 702 |
+
public function searchSecondaryPickings($sessionId, $paramSearchSecondaryPickings);
|
| 703 |
+
}
|
| 704 |
Â
?>
|
lib/SpeedyEPS/ver01/FixedDiscountCardId.class.php
CHANGED
|
File without changes
|
lib/SpeedyEPS/ver01/ParamAddress.class.php
CHANGED
|
@@ -1,406 +1,615 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
/**
|
| 3 |
-
* Instances of this class are used as parameters on web service method calls for picking calculation and registration
|
| 4 |
-
*
|
| 5 |
-
* When address is required (i.e. when clientId is null), at least one of the following rules must be met:
|
| 6 |
-
* •not empty street (ID or Type&Name) and (streetNo or blockNo);
|
| 7 |
-
* •not empty quarter (ID or Type&Name) and (streetNo or blockNo);
|
| 8 |
-
* •not empty common object;
|
| 9 |
-
* •not empty addressNote.
|
| 10 |
-
*/
|
| 11 |
-
class ParamAddress {
|
| 12 |
-
|
| 13 |
-
/**
|
| 14 |
-
* Site ID
|
| 15 |
-
* MANDATORY: YES
|
| 16 |
-
* @var integer Signed 64-bit
|
| 17 |
-
*/
|
| 18 |
-
private $_siteId;
|
| 19 |
-
|
| 20 |
-
/**
|
| 21 |
-
* Street name. Max size is 50 symbols.
|
| 22 |
-
* MANDATORY: NO
|
| 23 |
-
* @var string
|
| 24 |
-
*/
|
| 25 |
-
private $_streetName;
|
| 26 |
-
|
| 27 |
-
/**
|
| 28 |
-
* Street type. Max size is 15 symbols.
|
| 29 |
-
* MANDATORY: NO
|
| 30 |
-
* @var string
|
| 31 |
-
*/
|
| 32 |
-
private $_streetType;
|
| 33 |
-
|
| 34 |
-
/**
|
| 35 |
-
* Street ID
|
| 36 |
-
* MANDATORY: NO
|
| 37 |
-
* @var integer Signed 64-bit
|
| 38 |
-
*/
|
| 39 |
-
private $_streetId;
|
| 40 |
-
|
| 41 |
-
/**
|
| 42 |
-
* Quarter name. Max size is 50 symbols.
|
| 43 |
-
* MANDATORY: NO
|
| 44 |
-
* @var string
|
| 45 |
-
*/
|
| 46 |
-
private $_quarterName;
|
| 47 |
-
|
| 48 |
-
/**
|
| 49 |
-
* Quarter type. Max size is 15 symbols.
|
| 50 |
-
* MANDATORY: NO
|
| 51 |
-
* @var string
|
| 52 |
-
*/
|
| 53 |
-
private $_quarterType;
|
| 54 |
-
|
| 55 |
-
/**
|
| 56 |
-
* Quarter ID
|
| 57 |
-
* MANDATORY: NO
|
| 58 |
-
* @var long Signed 64-bit
|
| 59 |
-
*/
|
| 60 |
-
private $_quarterId;
|
| 61 |
-
|
| 62 |
-
/**
|
| 63 |
-
* Street No. Max size is 10 symbols.
|
| 64 |
-
* MANDATORY: NO
|
| 65 |
-
* @var string
|
| 66 |
-
*/
|
| 67 |
-
private $_streetNo;
|
| 68 |
-
|
| 69 |
-
/**
|
| 70 |
-
* Block No. Max size is 32 symbols.
|
| 71 |
-
* MANDATORY: NO
|
| 72 |
-
* @var string
|
| 73 |
-
*/
|
| 74 |
-
private $_blockNo;
|
| 75 |
-
|
| 76 |
-
/**
|
| 77 |
-
* Entrance No. Max size is 10 symbols.
|
| 78 |
-
* MANDATORY: NO
|
| 79 |
-
* @var string
|
| 80 |
-
*/
|
| 81 |
-
private $_entranceNo;
|
| 82 |
-
|
| 83 |
-
/**
|
| 84 |
-
* Floor No. Max size is 10 symbols.
|
| 85 |
-
* MANDATORY: NO
|
| 86 |
-
* @var string
|
| 87 |
-
*/
|
| 88 |
-
private $_floorNo;
|
| 89 |
-
|
| 90 |
-
/**
|
| 91 |
-
* Appartment No. Max size is 10 symbols.
|
| 92 |
-
* MANDATORY: NO
|
| 93 |
-
* @var string
|
| 94 |
-
*/
|
| 95 |
-
private $_apartmentNo;
|
| 96 |
-
|
| 97 |
-
/**
|
| 98 |
-
* Address note. Max size is 200 symbols.
|
| 99 |
-
* MANDATORY: NO
|
| 100 |
-
* @var string
|
| 101 |
-
*/
|
| 102 |
-
private $_addressNote;
|
| 103 |
-
|
| 104 |
-
/**
|
| 105 |
-
* Common object ID
|
| 106 |
-
* MANDATORY: NO
|
| 107 |
-
* @var integer Signed 64-bit
|
| 108 |
-
*/
|
| 109 |
-
private $_commonObjectId;
|
| 110 |
-
|
| 111 |
-
/**
|
| 112 |
-
* GIS coordinates - X
|
| 113 |
-
* MANDATORY: NO
|
| 114 |
-
* @var double Signed 64-bit
|
| 115 |
-
*/
|
| 116 |
-
private $_coordX;
|
| 117 |
-
|
| 118 |
-
/**
|
| 119 |
-
* GIS coordinates - Y
|
| 120 |
-
* MANDATORY: NO
|
| 121 |
-
* @var double Signed 64-bit
|
| 122 |
-
*/
|
| 123 |
-
private $_coordY;
|
| 124 |
-
|
| 125 |
-
/**
|
| 126 |
-
*
|
| 127 |
-
*
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
/**
|
| 134 |
-
*
|
| 135 |
-
*
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
/**
|
| 142 |
-
*
|
| 143 |
-
*
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
/**
|
| 150 |
-
*
|
| 151 |
-
*
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
/**
|
| 158 |
-
*
|
| 159 |
-
*
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
/**
|
| 166 |
-
*
|
| 167 |
-
*
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
/**
|
| 174 |
-
*
|
| 175 |
-
*
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
/**
|
| 182 |
-
*
|
| 183 |
-
* @
|
| 184 |
-
*/
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
|
| 189 |
-
|
| 190 |
-
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
|
| 195 |
-
|
| 196 |
-
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
|
| 202 |
-
|
| 203 |
-
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
|
| 207 |
-
|
| 208 |
-
|
| 209 |
-
|
| 210 |
-
|
| 211 |
-
|
| 212 |
-
|
| 213 |
-
|
| 214 |
-
|
| 215 |
-
*
|
| 216 |
-
|
| 217 |
-
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
*
|
| 224 |
-
|
| 225 |
-
|
| 226 |
-
|
| 227 |
-
|
| 228 |
-
|
| 229 |
-
|
| 230 |
-
|
| 231 |
-
*
|
| 232 |
-
|
| 233 |
-
|
| 234 |
-
|
| 235 |
-
|
| 236 |
-
|
| 237 |
-
|
| 238 |
-
|
| 239 |
-
*
|
| 240 |
-
|
| 241 |
-
|
| 242 |
-
|
| 243 |
-
|
| 244 |
-
|
| 245 |
-
|
| 246 |
-
|
| 247 |
-
*
|
| 248 |
-
|
| 249 |
-
|
| 250 |
-
|
| 251 |
-
|
| 252 |
-
|
| 253 |
-
|
| 254 |
-
|
| 255 |
-
*
|
| 256 |
-
|
| 257 |
-
|
| 258 |
-
|
| 259 |
-
|
| 260 |
-
|
| 261 |
-
|
| 262 |
-
|
| 263 |
-
*
|
| 264 |
-
|
| 265 |
-
|
| 266 |
-
|
| 267 |
-
|
| 268 |
-
|
| 269 |
-
|
| 270 |
-
|
| 271 |
-
*
|
| 272 |
-
|
| 273 |
-
|
| 274 |
-
|
| 275 |
-
|
| 276 |
-
|
| 277 |
-
|
| 278 |
-
|
| 279 |
-
*
|
| 280 |
-
|
| 281 |
-
|
| 282 |
-
|
| 283 |
-
|
| 284 |
-
|
| 285 |
-
|
| 286 |
-
|
| 287 |
-
*
|
| 288 |
-
|
| 289 |
-
|
| 290 |
-
|
| 291 |
-
|
| 292 |
-
|
| 293 |
-
|
| 294 |
-
|
| 295 |
-
*
|
| 296 |
-
|
| 297 |
-
|
| 298 |
-
|
| 299 |
-
|
| 300 |
-
|
| 301 |
-
|
| 302 |
-
|
| 303 |
-
*
|
| 304 |
-
|
| 305 |
-
|
| 306 |
-
|
| 307 |
-
|
| 308 |
-
|
| 309 |
-
|
| 310 |
-
|
| 311 |
-
*
|
| 312 |
-
|
| 313 |
-
|
| 314 |
-
|
| 315 |
-
|
| 316 |
-
|
| 317 |
-
|
| 318 |
-
|
| 319 |
-
*
|
| 320 |
-
|
| 321 |
-
|
| 322 |
-
|
| 323 |
-
|
| 324 |
-
|
| 325 |
-
|
| 326 |
-
|
| 327 |
-
*
|
| 328 |
-
|
| 329 |
-
|
| 330 |
-
|
| 331 |
-
|
| 332 |
-
|
| 333 |
-
|
| 334 |
-
|
| 335 |
-
*
|
| 336 |
-
|
| 337 |
-
|
| 338 |
-
|
| 339 |
-
|
| 340 |
-
|
| 341 |
-
|
| 342 |
-
|
| 343 |
-
*
|
| 344 |
-
|
| 345 |
-
|
| 346 |
-
|
| 347 |
-
|
| 348 |
-
|
| 349 |
-
|
| 350 |
-
|
| 351 |
-
*
|
| 352 |
-
|
| 353 |
-
|
| 354 |
-
|
| 355 |
-
|
| 356 |
-
|
| 357 |
-
|
| 358 |
-
|
| 359 |
-
*
|
| 360 |
-
|
| 361 |
-
|
| 362 |
-
|
| 363 |
-
|
| 364 |
-
|
| 365 |
-
|
| 366 |
-
|
| 367 |
-
*
|
| 368 |
-
|
| 369 |
-
|
| 370 |
-
|
| 371 |
-
|
| 372 |
-
|
| 373 |
-
|
| 374 |
-
|
| 375 |
-
*
|
| 376 |
-
|
| 377 |
-
|
| 378 |
-
|
| 379 |
-
|
| 380 |
-
|
| 381 |
-
|
| 382 |
-
|
| 383 |
-
*
|
| 384 |
-
|
| 385 |
-
|
| 386 |
-
|
| 387 |
-
|
| 388 |
-
|
| 389 |
-
|
| 390 |
-
|
| 391 |
-
|
| 392 |
-
|
| 393 |
-
|
| 394 |
-
|
| 395 |
-
$
|
| 396 |
-
|
| 397 |
-
|
| 398 |
-
|
| 399 |
-
|
| 400 |
-
|
| 401 |
-
|
| 402 |
-
|
| 403 |
-
return $
|
| 404 |
-
}
|
| 405 |
-
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
| 406 |
Â
?>
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Instances of this class are used as parameters on web service method calls for picking calculation and registration
|
| 4 |
+
*
|
| 5 |
+
* When address is required (i.e. when clientId is null), at least one of the following rules must be met:
|
| 6 |
+
* •not empty street (ID or Type&Name) and (streetNo or blockNo);
|
| 7 |
+
* •not empty quarter (ID or Type&Name) and (streetNo or blockNo);
|
| 8 |
+
* •not empty common object;
|
| 9 |
+
* •not empty addressNote.
|
| 10 |
+
*/
|
| 11 |
+
class ParamAddress {
|
| 12 |
+
|
| 13 |
+
/**
|
| 14 |
+
* Site ID
|
| 15 |
+
* MANDATORY: YES
|
| 16 |
+
* @var integer Signed 64-bit
|
| 17 |
+
*/
|
| 18 |
+
private $_siteId;
|
| 19 |
+
|
| 20 |
+
/**
|
| 21 |
+
* Street name. Max size is 50 symbols.
|
| 22 |
+
* MANDATORY: NO
|
| 23 |
+
* @var string
|
| 24 |
+
*/
|
| 25 |
+
private $_streetName;
|
| 26 |
+
|
| 27 |
+
/**
|
| 28 |
+
* Street type. Max size is 15 symbols.
|
| 29 |
+
* MANDATORY: NO
|
| 30 |
+
* @var string
|
| 31 |
+
*/
|
| 32 |
+
private $_streetType;
|
| 33 |
+
|
| 34 |
+
/**
|
| 35 |
+
* Street ID
|
| 36 |
+
* MANDATORY: NO
|
| 37 |
+
* @var integer Signed 64-bit
|
| 38 |
+
*/
|
| 39 |
+
private $_streetId;
|
| 40 |
+
|
| 41 |
+
/**
|
| 42 |
+
* Quarter name. Max size is 50 symbols.
|
| 43 |
+
* MANDATORY: NO
|
| 44 |
+
* @var string
|
| 45 |
+
*/
|
| 46 |
+
private $_quarterName;
|
| 47 |
+
|
| 48 |
+
/**
|
| 49 |
+
* Quarter type. Max size is 15 symbols.
|
| 50 |
+
* MANDATORY: NO
|
| 51 |
+
* @var string
|
| 52 |
+
*/
|
| 53 |
+
private $_quarterType;
|
| 54 |
+
|
| 55 |
+
/**
|
| 56 |
+
* Quarter ID
|
| 57 |
+
* MANDATORY: NO
|
| 58 |
+
* @var long Signed 64-bit
|
| 59 |
+
*/
|
| 60 |
+
private $_quarterId;
|
| 61 |
+
|
| 62 |
+
/**
|
| 63 |
+
* Street No. Max size is 10 symbols.
|
| 64 |
+
* MANDATORY: NO
|
| 65 |
+
* @var string
|
| 66 |
+
*/
|
| 67 |
+
private $_streetNo;
|
| 68 |
+
|
| 69 |
+
/**
|
| 70 |
+
* Block No. Max size is 32 symbols.
|
| 71 |
+
* MANDATORY: NO
|
| 72 |
+
* @var string
|
| 73 |
+
*/
|
| 74 |
+
private $_blockNo;
|
| 75 |
+
|
| 76 |
+
/**
|
| 77 |
+
* Entrance No. Max size is 10 symbols.
|
| 78 |
+
* MANDATORY: NO
|
| 79 |
+
* @var string
|
| 80 |
+
*/
|
| 81 |
+
private $_entranceNo;
|
| 82 |
+
|
| 83 |
+
/**
|
| 84 |
+
* Floor No. Max size is 10 symbols.
|
| 85 |
+
* MANDATORY: NO
|
| 86 |
+
* @var string
|
| 87 |
+
*/
|
| 88 |
+
private $_floorNo;
|
| 89 |
+
|
| 90 |
+
/**
|
| 91 |
+
* Appartment No. Max size is 10 symbols.
|
| 92 |
+
* MANDATORY: NO
|
| 93 |
+
* @var string
|
| 94 |
+
*/
|
| 95 |
+
private $_apartmentNo;
|
| 96 |
+
|
| 97 |
+
/**
|
| 98 |
+
* Address note. Max size is 200 symbols.
|
| 99 |
+
* MANDATORY: NO
|
| 100 |
+
* @var string
|
| 101 |
+
*/
|
| 102 |
+
private $_addressNote;
|
| 103 |
+
|
| 104 |
+
/**
|
| 105 |
+
* Common object ID
|
| 106 |
+
* MANDATORY: NO
|
| 107 |
+
* @var integer Signed 64-bit
|
| 108 |
+
*/
|
| 109 |
+
private $_commonObjectId;
|
| 110 |
+
|
| 111 |
+
/**
|
| 112 |
+
* GIS coordinates - X
|
| 113 |
+
* MANDATORY: NO
|
| 114 |
+
* @var double Signed 64-bit
|
| 115 |
+
*/
|
| 116 |
+
private $_coordX;
|
| 117 |
+
|
| 118 |
+
/**
|
| 119 |
+
* GIS coordinates - Y
|
| 120 |
+
* MANDATORY: NO
|
| 121 |
+
* @var double Signed 64-bit
|
| 122 |
+
*/
|
| 123 |
+
private $_coordY;
|
| 124 |
+
|
| 125 |
+
/**
|
| 126 |
+
* Serialized address
|
| 127 |
+
* MANDATORY: NO
|
| 128 |
+
* @var string
|
| 129 |
+
* @since 2.3.0
|
| 130 |
+
*/
|
| 131 |
+
protected $_serializedAddress;
|
| 132 |
+
|
| 133 |
+
/**
|
| 134 |
+
* Country id. Defaults to Bulgaria if not specified
|
| 135 |
+
* MANDATORY: NO
|
| 136 |
+
* @var integer Signed 64-bit
|
| 137 |
+
* @since 2.5.0
|
| 138 |
+
*/
|
| 139 |
+
private $_countryId;
|
| 140 |
+
|
| 141 |
+
/**
|
| 142 |
+
* Address line 1
|
| 143 |
+
* MANDATORY: YES In case the country is not Bulgaria, otherwise NO
|
| 144 |
+
* @var string
|
| 145 |
+
* @since 2.5.0
|
| 146 |
+
*/
|
| 147 |
+
private $_frnAddressLine1;
|
| 148 |
+
|
| 149 |
+
/**
|
| 150 |
+
* Address line 2
|
| 151 |
+
* MANDATORY: NO
|
| 152 |
+
* @var string
|
| 153 |
+
* @since 2.5.0
|
| 154 |
+
*/
|
| 155 |
+
private $_frnAddressLine2;
|
| 156 |
+
|
| 157 |
+
/**
|
| 158 |
+
* Post code
|
| 159 |
+
* MANDATORY: According to internal nomenclature support for country
|
| 160 |
+
* @var string
|
| 161 |
+
* @since 2.5.0
|
| 162 |
+
*/
|
| 163 |
+
private $_postCode;
|
| 164 |
+
|
| 165 |
+
/**
|
| 166 |
+
* Site name
|
| 167 |
+
* MANDATORY: NO
|
| 168 |
+
* @var string
|
| 169 |
+
* @since 2.5.0
|
| 170 |
+
*/
|
| 171 |
+
private $_siteName;
|
| 172 |
+
|
| 173 |
+
/**
|
| 174 |
+
* State id
|
| 175 |
+
* MANDATORY: According to internal nomenclature support for country
|
| 176 |
+
* @var string
|
| 177 |
+
* @since 2.5.0
|
| 178 |
+
*/
|
| 179 |
+
private $_stateId;
|
| 180 |
+
|
| 181 |
+
/**
|
| 182 |
+
* Constructs new instance of ParamAddress
|
| 183 |
+
* @param stdClass $stdClassParamAddress
|
| 184 |
+
*/
|
| 185 |
+
function __construct($stdClassParamAddress = null) {
|
| 186 |
+
|
| 187 |
+
if ($stdClassParamAddress != null) {
|
| 188 |
+
$this->_siteId = isset($stdClassParamAddress->siteId) ? $stdClassParamAddress->siteId : null;
|
| 189 |
+
$this->_streetName = isset($stdClassParamAddress->streetName) ? $stdClassParamAddress->streetName : null;
|
| 190 |
+
$this->_streetType = isset($stdClassParamAddress->streetType) ? $stdClassParamAddress->streetType : null;
|
| 191 |
+
$this->_streetId = isset($stdClassParamAddress->streetId) ? $stdClassParamAddress->streetId : null;
|
| 192 |
+
$this->_quarterName = isset($stdClassParamAddress->quarterName) ? $stdClassParamAddress->quarterName : null;
|
| 193 |
+
$this->_quarterType = isset($stdClassParamAddress->quarterType) ? $stdClassParamAddress->quarterType : null;
|
| 194 |
+
$this->_quarterId = isset($stdClassParamAddress->quarterId) ? $stdClassParamAddress->quarterId : null;
|
| 195 |
+
$this->_streetNo = isset($stdClassParamAddress->streetNo) ? $stdClassParamAddress->streetNo : null;
|
| 196 |
+
$this->_blockNo = isset($stdClassParamAddress->blockNo) ? $stdClassParamAddress->blockNo : null;
|
| 197 |
+
$this->_entranceNo = isset($stdClassParamAddress->entranceNo) ? $stdClassParamAddress->entranceNo : null;
|
| 198 |
+
$this->_floorNo = isset($stdClassParamAddress->floorNo) ? $stdClassParamAddress->floorNo : null;
|
| 199 |
+
$this->_apartmentNo = isset($stdClassParamAddress->apartmentNo) ? $stdClassParamAddress->apartmentNo : null;
|
| 200 |
+
$this->_addressNote = isset($stdClassParamAddress->addressNote) ? $stdClassParamAddress->addressNote : null;
|
| 201 |
+
$this->_commonObjectId = isset($stdClassParamAddress->commonObjectId) ? $stdClassParamAddress->commonObjectId : null;
|
| 202 |
+
$this->_coordX = isset($stdClassParamAddress->coordX) ? $stdClassParamAddress->coordX : null;
|
| 203 |
+
$this->_coordY = isset($stdClassParamAddress->coordY) ? $stdClassParamAddress->coordY : null;
|
| 204 |
+
$this->_serializedAddress = isset($stdClassParamAddress->serializedAddress) ? $stdClassParamAddress->serializedAddress : null;
|
| 205 |
+
$this->_countryId = isset($stdClassParamAddress->countryId) ? $stdClassParamAddress->countryId : null;
|
| 206 |
+
$this->_frnAddressLine1 = isset($stdClassParamAddress->frnAddressLine1) ? $stdClassParamAddress->frnAddressLine1 : null;
|
| 207 |
+
$this->_frnAddressLine2 = isset($stdClassParamAddress->frnAddressLine2) ? $stdClassParamAddress->frnAddressLine2 : null;
|
| 208 |
+
$this->_postCode = isset($stdClassParamAddress->postCode) ? $stdClassParamAddress->postCode : null;
|
| 209 |
+
$this->_siteName = isset($stdClassParamAddress->siteName) ? $stdClassParamAddress->siteName : null;
|
| 210 |
+
$this->_stateId = isset($stdClassParamAddress->stateId) ? $stdClassParamAddress->stateId : null;
|
| 211 |
+
}
|
| 212 |
+
}
|
| 213 |
+
|
| 214 |
+
/**
|
| 215 |
+
* Set site ID
|
| 216 |
+
* @param integer $siteId Signed 64-bit
|
| 217 |
+
*/
|
| 218 |
+
public function setSiteId($siteId) {
|
| 219 |
+
$this->_siteId = $siteId;
|
| 220 |
+
}
|
| 221 |
+
|
| 222 |
+
/**
|
| 223 |
+
* Get site ID
|
| 224 |
+
* @return integer Signed 64-bit
|
| 225 |
+
*/
|
| 226 |
+
public function getSiteId() {
|
| 227 |
+
return $this->_siteId;
|
| 228 |
+
}
|
| 229 |
+
|
| 230 |
+
/**
|
| 231 |
+
* Set street name. Max size is 50 symbols.
|
| 232 |
+
* @param string $streetName
|
| 233 |
+
*/
|
| 234 |
+
public function setStreetName($streetName) {
|
| 235 |
+
$this->_streetName = $streetName;
|
| 236 |
+
}
|
| 237 |
+
|
| 238 |
+
/**
|
| 239 |
+
* Get street name
|
| 240 |
+
* @return string
|
| 241 |
+
*/
|
| 242 |
+
public function getStreetName() {
|
| 243 |
+
return $this->_streetName;
|
| 244 |
+
}
|
| 245 |
+
|
| 246 |
+
/**
|
| 247 |
+
* Set street type. Max size is 15 symbols.
|
| 248 |
+
* @param string $streetType
|
| 249 |
+
*/
|
| 250 |
+
public function setStreetType($streetType) {
|
| 251 |
+
$this->_streetType = $streetType;
|
| 252 |
+
}
|
| 253 |
+
|
| 254 |
+
/**
|
| 255 |
+
* Get street type
|
| 256 |
+
* @return string
|
| 257 |
+
*/
|
| 258 |
+
public function getStreetType() {
|
| 259 |
+
return $this->_streetType;
|
| 260 |
+
}
|
| 261 |
+
|
| 262 |
+
/**
|
| 263 |
+
* Set street ID
|
| 264 |
+
* @param integer $streetId Signed 64-bit
|
| 265 |
+
*/
|
| 266 |
+
public function setStreetId($streetId) {
|
| 267 |
+
$this->_streetId = $streetId;
|
| 268 |
+
}
|
| 269 |
+
|
| 270 |
+
/**
|
| 271 |
+
* Get street ID
|
| 272 |
+
* @return integer Signed 64-bit
|
| 273 |
+
*/
|
| 274 |
+
public function getStreetId() {
|
| 275 |
+
return $this->_streetId;
|
| 276 |
+
}
|
| 277 |
+
|
| 278 |
+
/**
|
| 279 |
+
* Set quarter name. Max size is 50 symbols.
|
| 280 |
+
* @param string $quarterName
|
| 281 |
+
*/
|
| 282 |
+
public function setQuarterName($quarterName) {
|
| 283 |
+
$this->_quarterName = $quarterName;
|
| 284 |
+
}
|
| 285 |
+
|
| 286 |
+
/**
|
| 287 |
+
* Get quarter name
|
| 288 |
+
* @return string
|
| 289 |
+
*/
|
| 290 |
+
public function getQuarterName() {
|
| 291 |
+
return $this->_quarterName;
|
| 292 |
+
}
|
| 293 |
+
|
| 294 |
+
/**
|
| 295 |
+
* Set quarter type. Max size is 15 symbols.
|
| 296 |
+
* @param string $quarterType
|
| 297 |
+
*/
|
| 298 |
+
public function setQuarterType($quarterType) {
|
| 299 |
+
$this->_quarterType = $quarterType;
|
| 300 |
+
}
|
| 301 |
+
|
| 302 |
+
/**
|
| 303 |
+
* Get quarter type
|
| 304 |
+
* @return string
|
| 305 |
+
*/
|
| 306 |
+
public function getQuarterType() {
|
| 307 |
+
return $this->_quarterType;
|
| 308 |
+
}
|
| 309 |
+
|
| 310 |
+
/**
|
| 311 |
+
* Set quarter ID.
|
| 312 |
+
* @param integer $quarterId Signed 64-bit
|
| 313 |
+
*/
|
| 314 |
+
public function setQuarterId($quarterId) {
|
| 315 |
+
$this->_quarterId = $quarterId;
|
| 316 |
+
}
|
| 317 |
+
|
| 318 |
+
/**
|
| 319 |
+
* Get quarter ID
|
| 320 |
+
* @return integer Signed 64-bit
|
| 321 |
+
*/
|
| 322 |
+
public function getQuarterId() {
|
| 323 |
+
return $this->_quarterId;
|
| 324 |
+
}
|
| 325 |
+
|
| 326 |
+
/**
|
| 327 |
+
* Set street No. Max size is 10 symbols.
|
| 328 |
+
* @param string $streetNo
|
| 329 |
+
*/
|
| 330 |
+
public function setStreetNo($streetNo) {
|
| 331 |
+
$this->_streetNo = $streetNo;
|
| 332 |
+
}
|
| 333 |
+
|
| 334 |
+
/**
|
| 335 |
+
* Get street No
|
| 336 |
+
* @return string
|
| 337 |
+
*/
|
| 338 |
+
public function getStreetNo() {
|
| 339 |
+
return $this->_streetNo;
|
| 340 |
+
}
|
| 341 |
+
|
| 342 |
+
/**
|
| 343 |
+
* Set block No. Max size is 32 symbols.
|
| 344 |
+
* @param string $blockNo
|
| 345 |
+
*/
|
| 346 |
+
public function setBlockNo($blockNo) {
|
| 347 |
+
$this->_blockNo = $blockNo;
|
| 348 |
+
}
|
| 349 |
+
|
| 350 |
+
/**
|
| 351 |
+
* Get block No
|
| 352 |
+
* @return string
|
| 353 |
+
*/
|
| 354 |
+
public function getBlockNo() {
|
| 355 |
+
return $this->_blockNo;
|
| 356 |
+
}
|
| 357 |
+
|
| 358 |
+
/**
|
| 359 |
+
* Set entrance No. Max size is 10 symbols.
|
| 360 |
+
* @param string $entranceNo
|
| 361 |
+
*/
|
| 362 |
+
public function setEntranceNo($entranceNo) {
|
| 363 |
+
$this->_entranceNo = $entranceNo;
|
| 364 |
+
}
|
| 365 |
+
|
| 366 |
+
/**
|
| 367 |
+
* Get entrance No
|
| 368 |
+
* @return string
|
| 369 |
+
*/
|
| 370 |
+
public function getEntranceNo() {
|
| 371 |
+
return $this->_entranceNo;
|
| 372 |
+
}
|
| 373 |
+
|
| 374 |
+
/**
|
| 375 |
+
* Set floor No. Max size is 10 symbols.
|
| 376 |
+
* @param string $floorNo
|
| 377 |
+
*/
|
| 378 |
+
public function setFloorNo($floorNo) {
|
| 379 |
+
$this->_floorNo = $floorNo;
|
| 380 |
+
}
|
| 381 |
+
|
| 382 |
+
/**
|
| 383 |
+
* Get floor No
|
| 384 |
+
* @return string
|
| 385 |
+
*/
|
| 386 |
+
public function getFloorNo() {
|
| 387 |
+
return $this->_floorNo;
|
| 388 |
+
}
|
| 389 |
+
|
| 390 |
+
/**
|
| 391 |
+
* Set appartment No. Max size is 10 symbols.
|
| 392 |
+
* @param string $apartmentNo
|
| 393 |
+
*/
|
| 394 |
+
public function setApartmentNo($apartmentNo) {
|
| 395 |
+
$this->_apartmentNo = $apartmentNo;
|
| 396 |
+
}
|
| 397 |
+
|
| 398 |
+
/**
|
| 399 |
+
* Get appartment No
|
| 400 |
+
* @return string
|
| 401 |
+
*/
|
| 402 |
+
public function getApartmentNo() {
|
| 403 |
+
return $this->_apartmentNo;
|
| 404 |
+
}
|
| 405 |
+
|
| 406 |
+
/**
|
| 407 |
+
* Set address note. Max size is 200 symbols.
|
| 408 |
+
* @param string $addressNote
|
| 409 |
+
*/
|
| 410 |
+
public function setAddressNote($addressNote) {
|
| 411 |
+
$this->_addressNote = $addressNote;
|
| 412 |
+
}
|
| 413 |
+
|
| 414 |
+
/**
|
| 415 |
+
* Get address note
|
| 416 |
+
* @return string
|
| 417 |
+
*/
|
| 418 |
+
public function getAddressNote() {
|
| 419 |
+
return $this->_addressNote;
|
| 420 |
+
}
|
| 421 |
+
|
| 422 |
+
/**
|
| 423 |
+
* Set common object ID.
|
| 424 |
+
* @param integer $commonObjectId Signed 64-bit
|
| 425 |
+
*/
|
| 426 |
+
public function setCommonObjectId($commonObjectId) {
|
| 427 |
+
$this->_commonObjectId = $commonObjectId;
|
| 428 |
+
}
|
| 429 |
+
|
| 430 |
+
/**
|
| 431 |
+
* Get common object ID
|
| 432 |
+
* @return integer Signed 64-bit
|
| 433 |
+
*/
|
| 434 |
+
public function getCommonObjectId() {
|
| 435 |
+
return $this->_commonObjectId;
|
| 436 |
+
}
|
| 437 |
+
|
| 438 |
+
/**
|
| 439 |
+
* Set GIS coordinate - X.
|
| 440 |
+
* @param double $coordX Signed 64-bit
|
| 441 |
+
*/
|
| 442 |
+
public function setCoordX($coordX) {
|
| 443 |
+
$this->_coordX = $coordX;
|
| 444 |
+
}
|
| 445 |
+
|
| 446 |
+
/**
|
| 447 |
+
* Get GIS coordinate - X
|
| 448 |
+
* @return double Signed 64-bit
|
| 449 |
+
*/
|
| 450 |
+
public function getCoordX() {
|
| 451 |
+
return $this->_coordX;
|
| 452 |
+
}
|
| 453 |
+
|
| 454 |
+
/**
|
| 455 |
+
* Set GIS coordinate - Y.
|
| 456 |
+
* @param double $coordY Signed 64-bit
|
| 457 |
+
*/
|
| 458 |
+
public function setCoordY($coordY) {
|
| 459 |
+
$this->_coordY = $coordY;
|
| 460 |
+
}
|
| 461 |
+
|
| 462 |
+
/**
|
| 463 |
+
* Get GIS coordinate - Y
|
| 464 |
+
* @return double Signed 64-bit
|
| 465 |
+
*/
|
| 466 |
+
public function getCoordY() {
|
| 467 |
+
return $this->_coordY;
|
| 468 |
+
}
|
| 469 |
+
|
| 470 |
+
|
| 471 |
+
/**
|
| 472 |
+
* Set JSON serialized address
|
| 473 |
+
* @param string $serializedAddress JSON serialized address
|
| 474 |
+
*/
|
| 475 |
+
public function setSerializedAddress($serializedAddress) {
|
| 476 |
+
$this->_serializedAddress = $serializedAddress;
|
| 477 |
+
}
|
| 478 |
+
|
| 479 |
+
/**
|
| 480 |
+
* Get JSON serialized address
|
| 481 |
+
* @return string JSON serialized address
|
| 482 |
+
*/
|
| 483 |
+
public function getSerializedAddress() {
|
| 484 |
+
return $this->_serializedAddress;
|
| 485 |
+
}
|
| 486 |
+
|
| 487 |
+
/**
|
| 488 |
+
* Set country id
|
| 489 |
+
* @param integer signed 64-bit $countryId Country id
|
| 490 |
+
*/
|
| 491 |
+
public function setCountryId($countryId) {
|
| 492 |
+
$this->_countryId = $countryId;
|
| 493 |
+
}
|
| 494 |
+
|
| 495 |
+
/**
|
| 496 |
+
* Get country id
|
| 497 |
+
* @return integer signed 64-bit country id
|
| 498 |
+
*/
|
| 499 |
+
public function getCountryId() {
|
| 500 |
+
return $this->_countryId;
|
| 501 |
+
}
|
| 502 |
+
|
| 503 |
+
/**
|
| 504 |
+
* Set foreign address line 1
|
| 505 |
+
* @param string $frnAddressLine1 Foreign address line 1
|
| 506 |
+
*/
|
| 507 |
+
public function setFrnAddressLine1($frnAddressLine1) {
|
| 508 |
+
$this->_frnAddressLine1 = $frnAddressLine1;
|
| 509 |
+
}
|
| 510 |
+
|
| 511 |
+
/**
|
| 512 |
+
* Get foreign address line 1
|
| 513 |
+
* @return string Foreign address line 1
|
| 514 |
+
*/
|
| 515 |
+
public function getFrnAddressLine1() {
|
| 516 |
+
return $this->_frnAddressLine1;
|
| 517 |
+
}
|
| 518 |
+
|
| 519 |
+
/**
|
| 520 |
+
* Set foreign address line 2
|
| 521 |
+
* @param string $frnAddressLine2 Foreign address line 2
|
| 522 |
+
*/
|
| 523 |
+
public function setFrnAddressLine2($frnAddressLine2) {
|
| 524 |
+
$this->_frnAddressLine2 = $frnAddressLine2;
|
| 525 |
+
}
|
| 526 |
+
|
| 527 |
+
/**
|
| 528 |
+
* Get foreign address line 2
|
| 529 |
+
* @return string Foreign address line 2
|
| 530 |
+
*/
|
| 531 |
+
public function getFrnAddressLine2() {
|
| 532 |
+
return $this->_frnAddressLine2;
|
| 533 |
+
}
|
| 534 |
+
|
| 535 |
+
/**
|
| 536 |
+
* Set post code
|
| 537 |
+
* @param string $postCode Post code
|
| 538 |
+
*/
|
| 539 |
+
public function setPostCode($postCode) {
|
| 540 |
+
$this->_postCode = $postCode;
|
| 541 |
+
}
|
| 542 |
+
|
| 543 |
+
/**
|
| 544 |
+
* Get post code
|
| 545 |
+
* @return string Post code
|
| 546 |
+
*/
|
| 547 |
+
public function getPostCode() {
|
| 548 |
+
return $this->_postCode;
|
| 549 |
+
}
|
| 550 |
+
|
| 551 |
+
/**
|
| 552 |
+
* Set site name
|
| 553 |
+
* @param string $siteName Site name
|
| 554 |
+
*/
|
| 555 |
+
public function setSiteName($siteName) {
|
| 556 |
+
$this->_siteName = $siteName;
|
| 557 |
+
}
|
| 558 |
+
|
| 559 |
+
/**
|
| 560 |
+
* Get site name
|
| 561 |
+
* @return string Site name
|
| 562 |
+
*/
|
| 563 |
+
public function getSiteName() {
|
| 564 |
+
return $this->_siteName;
|
| 565 |
+
}
|
| 566 |
+
|
| 567 |
+
/**
|
| 568 |
+
* Set state id
|
| 569 |
+
* @param string $stateId State id
|
| 570 |
+
*/
|
| 571 |
+
public function setStateId($stateId) {
|
| 572 |
+
$this->_stateId = $stateId;
|
| 573 |
+
}
|
| 574 |
+
|
| 575 |
+
/**
|
| 576 |
+
* Get state id
|
| 577 |
+
* @return string State id
|
| 578 |
+
*/
|
| 579 |
+
public function getStateId() {
|
| 580 |
+
return $this->_stateId;
|
| 581 |
+
}
|
| 582 |
+
|
| 583 |
+
/**
|
| 584 |
+
* Return standard class from this class
|
| 585 |
+
* @return stdClass
|
| 586 |
+
*/
|
| 587 |
+
public function toStdClass() {
|
| 588 |
+
$stdClass = new stdClass();
|
| 589 |
+
$stdClass->siteId = $this->_siteId;
|
| 590 |
+
$stdClass->streetName = $this->_streetName;
|
| 591 |
+
$stdClass->streetType = $this->_streetType;
|
| 592 |
+
$stdClass->streetId = $this->_streetId;
|
| 593 |
+
$stdClass->quarterName = $this->_quarterName;
|
| 594 |
+
$stdClass->quarterType = $this->_quarterType;
|
| 595 |
+
$stdClass->quarterId = $this->_quarterId;
|
| 596 |
+
$stdClass->streetNo = $this->_streetNo;
|
| 597 |
+
$stdClass->blockNo = $this->_blockNo;
|
| 598 |
+
$stdClass->entranceNo = $this->_entranceNo;
|
| 599 |
+
$stdClass->floorNo = $this->_floorNo;
|
| 600 |
+
$stdClass->apartmentNo = $this->_apartmentNo;
|
| 601 |
+
$stdClass->addressNote = $this->_addressNote;
|
| 602 |
+
$stdClass->commonObjectId = $this->_commonObjectId;
|
| 603 |
+
$stdClass->coordX = $this->_coordX;
|
| 604 |
+
$stdClass->coordY = $this->_coordY;
|
| 605 |
+
$stdClass->serializedAddress = $this->_serializedAddress;
|
| 606 |
+
$stdClass->countryId = $this->_countryId;
|
| 607 |
+
$stdClass->frnAddressLine1 = $this->_frnAddressLine1;
|
| 608 |
+
$stdClass->frnAddressLine2 = $this->_frnAddressLine2;
|
| 609 |
+
$stdClass->postCode = $this->_postCode;
|
| 610 |
+
$stdClass->siteName = $this->_siteName;
|
| 611 |
+
$stdClass->stateId = $this->_stateId;
|
| 612 |
+
return $stdClass;
|
| 613 |
+
}
|
| 614 |
+
}
|
| 615 |
Â
?>
|
lib/SpeedyEPS/ver01/ParamAddressSearch.class.php
CHANGED
|
@@ -52,6 +52,14 @@ class ParamAddressSearch {
|
|
| 52 |
Â
* @var string
|
| 53 |
Â
*/
|
| 54 |
Â
private $_entranceNo;
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
| 55 |
Â
|
| 56 |
Â
/**
|
| 57 |
Â
* Set site ID
|
|
@@ -164,6 +172,22 @@ class ParamAddressSearch {
|
|
| 164 |
Â
public function getEntranceNo() {
|
| 165 |
Â
return $this->_entranceNo;
|
| 166 |
Â
}
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
| 167 |
Â
|
| 168 |
Â
/**
|
| 169 |
Â
* Return standard class from this class
|
|
@@ -171,13 +195,14 @@ class ParamAddressSearch {
|
|
| 171 |
Â
*/
|
| 172 |
Â
public function toStdClass() {
|
| 173 |
Â
$stdClass = new stdClass();
|
| 174 |
-
$stdClass->siteId
|
| 175 |
-
$stdClass->quarterId
|
| 176 |
-
$stdClass->streetId
|
| 177 |
-
$stdClass->commonObjectId
|
| 178 |
-
$stdClass->blockNo
|
| 179 |
-
$stdClass->streetNo
|
| 180 |
-
$stdClass->entranceNo
|
|
Â
|
|
| 181 |
Â
return $stdClass;
|
| 182 |
Â
}
|
| 183 |
Â
}
|
| 52 |
Â
* @var string
|
| 53 |
Â
*/
|
| 54 |
Â
private $_entranceNo;
|
| 55 |
+
|
| 56 |
+
/**
|
| 57 |
+
* Return city center if no address option
|
| 58 |
+
* MANDATORY: NO
|
| 59 |
+
* @var boolean
|
| 60 |
+
* @since 2.6.0
|
| 61 |
+
*/
|
| 62 |
+
private $_returnCityCenterIfNoAddress;
|
| 63 |
Â
|
| 64 |
Â
/**
|
| 65 |
Â
* Set site ID
|
| 172 |
Â
public function getEntranceNo() {
|
| 173 |
Â
return $this->_entranceNo;
|
| 174 |
Â
}
|
| 175 |
+
|
| 176 |
+
/**
|
| 177 |
+
* Set return city center if no address option flag
|
| 178 |
+
* @param boolean $returnCityCenterIfNoAddress
|
| 179 |
+
*/
|
| 180 |
+
public function setReturnCityCenterIfNoAddress($returnCityCenterIfNoAddress) {
|
| 181 |
+
$this->_returnCityCenterIfNoAddress = $returnCityCenterIfNoAddress;
|
| 182 |
+
}
|
| 183 |
+
|
| 184 |
+
/**
|
| 185 |
+
* Get return city center if no address option flag
|
| 186 |
+
* @return boolean
|
| 187 |
+
*/
|
| 188 |
+
public function isReturnCityCenterIfNoAddress() {
|
| 189 |
+
return $this->_returnCityCenterIfNoAddress;
|
| 190 |
+
}
|
| 191 |
Â
|
| 192 |
Â
/**
|
| 193 |
Â
* Return standard class from this class
|
| 195 |
Â
*/
|
| 196 |
Â
public function toStdClass() {
|
| 197 |
Â
$stdClass = new stdClass();
|
| 198 |
+
$stdClass->siteId = $this->_siteId;
|
| 199 |
+
$stdClass->quarterId = $this->_quarterId;
|
| 200 |
+
$stdClass->streetId = $this->_streetId;
|
| 201 |
+
$stdClass->commonObjectId = $this->_commonObjectId;
|
| 202 |
+
$stdClass->blockNo = $this->_blockNo;
|
| 203 |
+
$stdClass->streetNo = $this->_streetNo;
|
| 204 |
+
$stdClass->entranceNo = $this->_entranceNo;
|
| 205 |
+
$stdClass->returnCityCenterIfNoAddress = $this->_returnCityCenterIfNoAddress;
|
| 206 |
Â
return $stdClass;
|
| 207 |
Â
}
|
| 208 |
Â
}
|
lib/SpeedyEPS/ver01/ParamBarcodeInfo.class.php
CHANGED
|
File without changes
|
lib/SpeedyEPS/ver01/ParamCalculation.class.php
CHANGED
|
@@ -1,647 +1,938 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
|
| 3 |
-
/**
|
| 4 |
-
* This class represents ParamCalculation type
|
| 5 |
-
*/
|
| 6 |
-
class ParamCalculation {
|
| 7 |
-
|
| 8 |
-
/**
|
| 9 |
-
* Payer type: sender
|
| 10 |
-
* @var integer Signed 32-bit
|
| 11 |
-
*/
|
| 12 |
-
const PAYER_TYPE_SENDER = 0;
|
| 13 |
-
|
| 14 |
-
/**
|
| 15 |
-
* Payer type: receiver
|
| 16 |
-
* @var integer Signed 32-bit
|
| 17 |
-
*/
|
| 18 |
-
const PAYER_TYPE_RECEIVER = 1;
|
| 19 |
-
|
| 20 |
-
/**
|
| 21 |
-
* Payer type: third party
|
| 22 |
-
* @var integer Signed 32-bit
|
| 23 |
-
*/
|
| 24 |
-
const PAYER_TYPE_THIRD_PARTY = 2;
|
| 25 |
-
|
| 26 |
-
/**
|
| 27 |
-
* Service type ID to set when this structire is used for multiple service calculations
|
| 28 |
-
* @var integer Signed 64-bit
|
| 29 |
-
*/
|
| 30 |
-
const CALCULATE_MULTUPLE_SERVICES_SERVICE_TYPE_ID = 0;
|
| 31 |
-
|
| 32 |
-
/**
|
| 33 |
-
* The date for shipment pick-up (the "time" component is ignored). Default value is "today".
|
| 34 |
-
* MANDATORY: NO
|
| 35 |
-
* @access private
|
| 36 |
-
* @var date
|
| 37 |
-
*/
|
| 38 |
-
private $_takingDate;
|
| 39 |
-
|
| 40 |
-
/**
|
| 41 |
-
* If set to true, the "takingDate" field is not just to be validated, but the first allowed (following)
|
| 42 |
-
* date will be used instead (in compliance with the pick-up schedule etc.).
|
| 43 |
-
* MANDATORY: NO
|
| 44 |
-
* @access private
|
| 45 |
-
* @var boolean
|
| 46 |
-
*/
|
| 47 |
-
private $_autoAdjustTakingDate;
|
| 48 |
-
|
| 49 |
-
/**
|
| 50 |
-
* Courier service type ID
|
| 51 |
-
* MANDATORY: YES
|
| 52 |
-
* @access private
|
| 53 |
-
* @var integer Signed 64-bit
|
| 54 |
-
*/
|
| 55 |
-
private $_serviceTypeId;
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
* Specifies
|
| 59 |
-
*
|
| 60 |
-
*
|
| 61 |
-
*
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
*
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
*
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
*
|
| 84 |
-
*
|
| 85 |
-
*
|
| 86 |
-
*
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
*
|
| 94 |
-
*
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
*
|
| 103 |
-
*
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
*
|
| 112 |
-
*
|
| 113 |
-
* @
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
*
|
| 120 |
-
*
|
| 121 |
-
*
|
| 122 |
-
* @
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
*
|
| 129 |
-
*
|
| 130 |
-
*
|
| 131 |
-
* @
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
*
|
| 138 |
-
*
|
| 139 |
-
* @
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
*
|
| 146 |
-
* MANDATORY: YES
|
| 147 |
-
* @access private
|
| 148 |
-
* @var
|
| 149 |
-
*/
|
| 150 |
-
private $
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
*
|
| 154 |
-
*
|
| 155 |
-
*
|
| 156 |
-
* @var
|
| 157 |
-
*/
|
| 158 |
-
private $
|
| 159 |
-
|
| 160 |
-
/**
|
| 161 |
-
*
|
| 162 |
-
*
|
| 163 |
-
* MANDATORY:
|
| 164 |
-
* @access private
|
| 165 |
-
* @var
|
| 166 |
-
*/
|
| 167 |
-
private $
|
| 168 |
-
|
| 169 |
-
/**
|
| 170 |
-
*
|
| 171 |
-
*
|
| 172 |
-
*
|
| 173 |
-
* @
|
| 174 |
-
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
*
|
| 180 |
-
*
|
| 181 |
-
*
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
*
|
| 189 |
-
*
|
| 190 |
-
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
|
| 195 |
-
|
| 196 |
-
|
| 197 |
-
*
|
| 198 |
-
*
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
|
| 202 |
-
|
| 203 |
-
|
| 204 |
-
|
| 205 |
-
*
|
| 206 |
-
*
|
| 207 |
-
* @
|
| 208 |
-
|
| 209 |
-
|
| 210 |
-
|
| 211 |
-
|
| 212 |
-
|
| 213 |
-
*
|
| 214 |
-
*
|
| 215 |
-
*
|
| 216 |
-
* @
|
| 217 |
-
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
*
|
| 223 |
-
* MANDATORY: NO
|
| 224 |
-
* @access private
|
| 225 |
-
* @var integer Signed 64-bit
|
| 226 |
-
*/
|
| 227 |
-
private $
|
| 228 |
-
|
| 229 |
-
/**
|
| 230 |
-
*
|
| 231 |
-
*
|
| 232 |
-
* @
|
| 233 |
-
|
| 234 |
-
|
| 235 |
-
|
| 236 |
-
|
| 237 |
-
|
| 238 |
-
|
| 239 |
-
*
|
| 240 |
-
* @
|
| 241 |
-
|
| 242 |
-
|
| 243 |
-
|
| 244 |
-
|
| 245 |
-
|
| 246 |
-
|
| 247 |
-
*
|
| 248 |
-
*
|
| 249 |
-
*
|
| 250 |
-
* @
|
| 251 |
-
*/
|
| 252 |
-
|
| 253 |
-
|
| 254 |
-
|
| 255 |
-
|
| 256 |
-
|
| 257 |
-
*
|
| 258 |
-
* @
|
| 259 |
-
*/
|
| 260 |
-
|
| 261 |
-
|
| 262 |
-
|
| 263 |
-
|
| 264 |
-
|
| 265 |
-
*
|
| 266 |
-
* @
|
| 267 |
-
*/
|
| 268 |
-
|
| 269 |
-
|
| 270 |
-
|
| 271 |
-
|
| 272 |
-
|
| 273 |
-
*
|
| 274 |
-
* @
|
| 275 |
-
*/
|
| 276 |
-
|
| 277 |
-
|
| 278 |
-
|
| 279 |
-
|
| 280 |
-
|
| 281 |
-
*
|
| 282 |
-
*
|
| 283 |
-
|
| 284 |
-
|
| 285 |
-
|
| 286 |
-
|
| 287 |
-
|
| 288 |
-
|
| 289 |
-
|
| 290 |
-
*
|
| 291 |
-
|
| 292 |
-
|
| 293 |
-
|
| 294 |
-
|
| 295 |
-
|
| 296 |
-
|
| 297 |
-
|
| 298 |
-
*
|
| 299 |
-
|
| 300 |
-
|
| 301 |
-
|
| 302 |
-
|
| 303 |
-
|
| 304 |
-
|
| 305 |
-
|
| 306 |
-
*
|
| 307 |
-
|
| 308 |
-
|
| 309 |
-
|
| 310 |
-
|
| 311 |
-
|
| 312 |
-
|
| 313 |
-
|
| 314 |
-
*
|
| 315 |
-
|
| 316 |
-
|
| 317 |
-
|
| 318 |
-
|
| 319 |
-
|
| 320 |
-
|
| 321 |
-
|
| 322 |
-
|
| 323 |
-
|
| 324 |
-
|
| 325 |
-
|
| 326 |
-
|
| 327 |
-
|
| 328 |
-
|
| 329 |
-
|
| 330 |
-
|
| 331 |
-
|
| 332 |
-
|
| 333 |
-
|
| 334 |
-
|
| 335 |
-
|
| 336 |
-
|
| 337 |
-
|
| 338 |
-
|
| 339 |
-
|
| 340 |
-
|
| 341 |
-
|
| 342 |
-
|
| 343 |
-
|
| 344 |
-
|
| 345 |
-
|
| 346 |
-
|
| 347 |
-
|
| 348 |
-
|
| 349 |
-
|
| 350 |
-
|
| 351 |
-
|
| 352 |
-
|
| 353 |
-
|
| 354 |
-
|
| 355 |
-
|
| 356 |
-
|
| 357 |
-
|
| 358 |
-
|
| 359 |
-
|
| 360 |
-
|
| 361 |
-
|
| 362 |
-
|
| 363 |
-
|
| 364 |
-
|
| 365 |
-
|
| 366 |
-
|
| 367 |
-
|
| 368 |
-
|
| 369 |
-
|
| 370 |
-
|
| 371 |
-
|
| 372 |
-
|
| 373 |
-
|
| 374 |
-
|
| 375 |
-
*
|
| 376 |
-
* @
|
| 377 |
-
*/
|
| 378 |
-
public function
|
| 379 |
-
|
| 380 |
-
}
|
| 381 |
-
|
| 382 |
-
/**
|
| 383 |
-
*
|
| 384 |
-
*
|
| 385 |
-
|
| 386 |
-
|
| 387 |
-
|
| 388 |
-
|
| 389 |
-
|
| 390 |
-
|
| 391 |
-
|
| 392 |
-
|
| 393 |
-
|
| 394 |
-
|
| 395 |
-
|
| 396 |
-
|
| 397 |
-
|
| 398 |
-
|
| 399 |
-
|
| 400 |
-
|
| 401 |
-
|
| 402 |
-
|
| 403 |
-
|
| 404 |
-
|
| 405 |
-
|
| 406 |
-
|
| 407 |
-
|
| 408 |
-
|
| 409 |
-
|
| 410 |
-
|
| 411 |
-
|
| 412 |
-
|
| 413 |
-
|
| 414 |
-
|
| 415 |
-
|
| 416 |
-
*
|
| 417 |
-
*
|
| 418 |
-
* @
|
| 419 |
-
*/
|
| 420 |
-
public function
|
| 421 |
-
$this->
|
| 422 |
-
}
|
| 423 |
-
|
| 424 |
-
/**
|
| 425 |
-
* Get
|
| 426 |
-
*
|
| 427 |
-
|
| 428 |
-
|
| 429 |
-
|
| 430 |
-
|
| 431 |
-
|
| 432 |
-
|
| 433 |
-
|
| 434 |
-
|
| 435 |
-
|
| 436 |
-
|
| 437 |
-
|
| 438 |
-
|
| 439 |
-
|
| 440 |
-
|
| 441 |
-
|
| 442 |
-
|
| 443 |
-
|
| 444 |
-
|
| 445 |
-
|
| 446 |
-
|
| 447 |
-
|
| 448 |
-
|
| 449 |
-
|
| 450 |
-
|
| 451 |
-
|
| 452 |
-
|
| 453 |
-
|
| 454 |
-
|
| 455 |
-
|
| 456 |
-
|
| 457 |
-
|
| 458 |
-
|
| 459 |
-
|
| 460 |
-
|
| 461 |
-
|
| 462 |
-
|
| 463 |
-
|
| 464 |
-
|
| 465 |
-
|
| 466 |
-
|
| 467 |
-
|
| 468 |
-
|
| 469 |
-
|
| 470 |
-
|
| 471 |
-
|
| 472 |
-
|
| 473 |
-
*
|
| 474 |
-
|
| 475 |
-
|
| 476 |
-
|
| 477 |
-
|
| 478 |
-
|
| 479 |
-
|
| 480 |
-
|
| 481 |
-
*
|
| 482 |
-
|
| 483 |
-
|
| 484 |
-
|
| 485 |
-
|
| 486 |
-
|
| 487 |
-
|
| 488 |
-
|
| 489 |
-
|
| 490 |
-
*
|
| 491 |
-
|
| 492 |
-
|
| 493 |
-
|
| 494 |
-
|
| 495 |
-
|
| 496 |
-
|
| 497 |
-
|
| 498 |
-
*
|
| 499 |
-
|
| 500 |
-
|
| 501 |
-
|
| 502 |
-
|
| 503 |
-
|
| 504 |
-
|
| 505 |
-
|
| 506 |
-
|
| 507 |
-
*
|
| 508 |
-
|
| 509 |
-
|
| 510 |
-
|
| 511 |
-
|
| 512 |
-
|
| 513 |
-
|
| 514 |
-
|
| 515 |
-
*
|
| 516 |
-
|
| 517 |
-
|
| 518 |
-
|
| 519 |
-
|
| 520 |
-
|
| 521 |
-
|
| 522 |
-
|
| 523 |
-
|
| 524 |
-
|
| 525 |
-
|
| 526 |
-
|
| 527 |
-
|
| 528 |
-
|
| 529 |
-
|
| 530 |
-
|
| 531 |
-
|
| 532 |
-
|
| 533 |
-
|
| 534 |
-
|
| 535 |
-
|
| 536 |
-
|
| 537 |
-
|
| 538 |
-
|
| 539 |
-
|
| 540 |
-
|
| 541 |
-
|
| 542 |
-
|
| 543 |
-
|
| 544 |
-
|
| 545 |
-
|
| 546 |
-
|
| 547 |
-
|
| 548 |
-
|
| 549 |
-
|
| 550 |
-
|
| 551 |
-
|
| 552 |
-
|
| 553 |
-
|
| 554 |
-
|
| 555 |
-
|
| 556 |
-
|
| 557 |
-
*
|
| 558 |
-
|
| 559 |
-
|
| 560 |
-
|
| 561 |
-
|
| 562 |
-
|
| 563 |
-
|
| 564 |
-
|
| 565 |
-
*
|
| 566 |
-
|
| 567 |
-
|
| 568 |
-
|
| 569 |
-
|
| 570 |
-
|
| 571 |
-
|
| 572 |
-
|
| 573 |
-
|
| 574 |
-
|
| 575 |
-
|
| 576 |
-
|
| 577 |
-
|
| 578 |
-
|
| 579 |
-
|
| 580 |
-
|
| 581 |
-
|
| 582 |
-
|
| 583 |
-
|
| 584 |
-
|
| 585 |
-
|
| 586 |
-
|
| 587 |
-
|
| 588 |
-
|
| 589 |
-
|
| 590 |
-
|
| 591 |
-
|
| 592 |
-
|
| 593 |
-
|
| 594 |
-
|
| 595 |
-
|
| 596 |
-
|
| 597 |
-
|
| 598 |
-
|
| 599 |
-
|
| 600 |
-
|
| 601 |
-
|
| 602 |
-
|
| 603 |
-
|
| 604 |
-
|
| 605 |
-
|
| 606 |
-
|
| 607 |
-
|
| 608 |
-
|
| 609 |
-
|
| 610 |
-
|
| 611 |
-
|
| 612 |
-
|
| 613 |
-
|
| 614 |
-
|
| 615 |
-
|
| 616 |
-
|
| 617 |
-
|
| 618 |
-
|
| 619 |
-
|
| 620 |
-
|
| 621 |
-
|
| 622 |
-
|
| 623 |
-
|
| 624 |
-
|
| 625 |
-
$
|
| 626 |
-
|
| 627 |
-
|
| 628 |
-
|
| 629 |
-
|
| 630 |
-
|
| 631 |
-
|
| 632 |
-
|
| 633 |
-
|
| 634 |
-
|
| 635 |
-
|
| 636 |
-
|
| 637 |
-
|
| 638 |
-
|
| 639 |
-
|
| 640 |
-
|
| 641 |
-
|
| 642 |
-
$
|
| 643 |
-
|
| 644 |
-
|
| 645 |
-
|
| 646 |
-
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
| 647 |
Â
?>
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* This class represents ParamCalculation type
|
| 5 |
+
*/
|
| 6 |
+
class ParamCalculation {
|
| 7 |
+
|
| 8 |
+
/**
|
| 9 |
+
* Payer type: sender
|
| 10 |
+
* @var integer Signed 32-bit
|
| 11 |
+
*/
|
| 12 |
+
const PAYER_TYPE_SENDER = 0;
|
| 13 |
+
|
| 14 |
+
/**
|
| 15 |
+
* Payer type: receiver
|
| 16 |
+
* @var integer Signed 32-bit
|
| 17 |
+
*/
|
| 18 |
+
const PAYER_TYPE_RECEIVER = 1;
|
| 19 |
+
|
| 20 |
+
/**
|
| 21 |
+
* Payer type: third party
|
| 22 |
+
* @var integer Signed 32-bit
|
| 23 |
+
*/
|
| 24 |
+
const PAYER_TYPE_THIRD_PARTY = 2;
|
| 25 |
+
|
| 26 |
+
/**
|
| 27 |
+
* Service type ID to set when this structire is used for multiple service calculations
|
| 28 |
+
* @var integer Signed 64-bit
|
| 29 |
+
*/
|
| 30 |
+
const CALCULATE_MULTUPLE_SERVICES_SERVICE_TYPE_ID = 0;
|
| 31 |
+
|
| 32 |
+
/**
|
| 33 |
+
* The date for shipment pick-up (the "time" component is ignored). Default value is "today".
|
| 34 |
+
* MANDATORY: NO
|
| 35 |
+
* @access private
|
| 36 |
+
* @var date
|
| 37 |
+
*/
|
| 38 |
+
private $_takingDate;
|
| 39 |
+
|
| 40 |
+
/**
|
| 41 |
+
* If set to true, the "takingDate" field is not just to be validated, but the first allowed (following)
|
| 42 |
+
* date will be used instead (in compliance with the pick-up schedule etc.).
|
| 43 |
+
* MANDATORY: NO
|
| 44 |
+
* @access private
|
| 45 |
+
* @var boolean
|
| 46 |
+
*/
|
| 47 |
+
private $_autoAdjustTakingDate;
|
| 48 |
+
|
| 49 |
+
/**
|
| 50 |
+
* Courier service type ID
|
| 51 |
+
* MANDATORY: YES
|
| 52 |
+
* @access private
|
| 53 |
+
* @var integer Signed 64-bit
|
| 54 |
+
*/
|
| 55 |
+
private $_serviceTypeId;
|
| 56 |
+
|
| 57 |
+
/**
|
| 58 |
+
* Specifies the specific Speedy office, where the sender intends to deliver the shipment by him/herself.
|
| 59 |
+
* If willBringToOfficeId is provided, willBringToOffice flag is considered "true" and the picking "from office", regardless the value provided.
|
| 60 |
+
* If willBringToOfficeId is not provied (null) and willBringToOffice flag is "true", willBringToOfficeId is automatically set with default value configured for caller user profile.
|
| 61 |
+
* The default willBringToOfficeId value could be managed using profile configuration page in client's Speedy web site.
|
| 62 |
+
* If willBringToOfficeId is set to 0, broughtToOffice flag is considered "false".
|
| 63 |
+
* MANDATORY: NO
|
| 64 |
+
* @access private
|
| 65 |
+
* @var integer signed 64-bit
|
| 66 |
+
* @since 2.8.0
|
| 67 |
+
*/
|
| 68 |
+
private $_willBringToOfficeId;
|
| 69 |
+
|
| 70 |
+
/**
|
| 71 |
+
* Specifies if the sender intends to deliver the shipment to a Speedy office by him/herself instead of ordering a visit by courier
|
| 72 |
+
* MANDATORY: YES
|
| 73 |
+
* @access private
|
| 74 |
+
* @var boolean
|
| 75 |
+
*/
|
| 76 |
+
private $_broughtToOffice;
|
| 77 |
+
|
| 78 |
+
/**
|
| 79 |
+
* ID of an office "to be called".
|
| 80 |
+
* Non-null and non-zero value indicates this picking as "to office". Otherwise "to address" is considered.
|
| 81 |
+
* If officeToBeCalledId is provided (non-null and non-zero), toBeCalled flag is considered "true".
|
| 82 |
+
* If officeToBeCalledId is set to 0, toBeCalled flag is considered "false".
|
| 83 |
+
* MANDATORY: NO
|
| 84 |
+
* @access private
|
| 85 |
+
* @var integer signed 64-bit
|
| 86 |
+
* @since 2.8.0
|
| 87 |
+
*/
|
| 88 |
+
private $_officeToBeCalledId;
|
| 89 |
+
|
| 90 |
+
/**
|
| 91 |
+
* Specifies if the shipment is "to be called"
|
| 92 |
+
* MANDATORY: YES
|
| 93 |
+
* @access private
|
| 94 |
+
* @var boolean
|
| 95 |
+
*/
|
| 96 |
+
private $_toBeCalled;
|
| 97 |
+
|
| 98 |
+
/**
|
| 99 |
+
* Fixed time for delivery ("HHmm" format, i.e., the number "1315" means "13:15", "830" means "8:30" etc.).
|
| 100 |
+
* Depending on the courier service, this property could be required, allowed or banned
|
| 101 |
+
* MANDATORY: NO
|
| 102 |
+
* @access private
|
| 103 |
+
* @var integer Signed 16-bit
|
| 104 |
+
*/
|
| 105 |
+
private $_fixedTimeDelivery;
|
| 106 |
+
|
| 107 |
+
/**
|
| 108 |
+
* In some rare cases users might prefer the delivery to be deferred by a day or two.
|
| 109 |
+
* This parameter allows users to specify by how many (working) days they would like to postpone the shipment delivery.
|
| 110 |
+
* Max value is 2.
|
| 111 |
+
* MANDATORY: NO
|
| 112 |
+
* @access private
|
| 113 |
+
* @var integer Signed 32-bit
|
| 114 |
+
*/
|
| 115 |
+
private $_deferredDeliveryWorkDays;
|
| 116 |
+
|
| 117 |
+
/**
|
| 118 |
+
* Shipment insurance value (if the shipment is insured).
|
| 119 |
+
* The limit of this value depends on user's permissions and Speedy's current policy.
|
| 120 |
+
* MANDATORY: NO
|
| 121 |
+
* @access private
|
| 122 |
+
* @var integer Signed 64-bit
|
| 123 |
+
*/
|
| 124 |
+
private $_amountInsuranceBase;
|
| 125 |
+
|
| 126 |
+
/**
|
| 127 |
+
* Cash-on-Delivery (COD) amount
|
| 128 |
+
* The limit of this value depends on user's permissions and Speedy's current policy.
|
| 129 |
+
* MANDATORY: NO
|
| 130 |
+
* @access private
|
| 131 |
+
* @var integer Signed 64-bit
|
| 132 |
+
*/
|
| 133 |
+
private $_amountCodBase;
|
| 134 |
+
|
| 135 |
+
/**
|
| 136 |
+
* Specifies if the COD value is to be paid to a third party. Allowed only if the shipment has payerType = 2 (third party).
|
| 137 |
+
* MANDATORY: NO
|
| 138 |
+
* @access private
|
| 139 |
+
* @var boolean
|
| 140 |
+
*/
|
| 141 |
+
private $_payCodToThirdParty;
|
| 142 |
+
|
| 143 |
+
/**
|
| 144 |
+
* Parcels count.
|
| 145 |
+
* Max 999.
|
| 146 |
+
* MANDATORY: YES
|
| 147 |
+
* @access private
|
| 148 |
+
* @var integer Signed 32-bit
|
| 149 |
+
*/
|
| 150 |
+
private $_parcelsCount;
|
| 151 |
+
|
| 152 |
+
/**
|
| 153 |
+
* Data for parcels with explicit/fixed IDs (from the second one onward)
|
| 154 |
+
* The list has maximum lenght 998
|
| 155 |
+
* MANDATORY: NO
|
| 156 |
+
* @var array List of ParamParcelInfo
|
| 157 |
+
*/
|
| 158 |
+
private $_parcels;
|
| 159 |
+
|
| 160 |
+
/**
|
| 161 |
+
* Declared weight (the greater of "volume" and "real" weight values).
|
| 162 |
+
* Max 100.00
|
| 163 |
+
* MANDATORY: YES
|
| 164 |
+
* @access private
|
| 165 |
+
* @var double Signed 64-bit
|
| 166 |
+
*/
|
| 167 |
+
private $_weightDeclared;
|
| 168 |
+
|
| 169 |
+
/**
|
| 170 |
+
* Specifies whether the shipment consists of documents
|
| 171 |
+
* MANDATORY: YES
|
| 172 |
+
* @access private
|
| 173 |
+
* @var boolean
|
| 174 |
+
*/
|
| 175 |
+
private $_documents;
|
| 176 |
+
|
| 177 |
+
/**
|
| 178 |
+
* Specifies whether the shipment is fragile - necessary when the price of insurance is being calculated
|
| 179 |
+
* MANDATORY: YES
|
| 180 |
+
* @access private
|
| 181 |
+
* @var boolean
|
| 182 |
+
*/
|
| 183 |
+
private $_fragile;
|
| 184 |
+
|
| 185 |
+
/**
|
| 186 |
+
* Specifies whether the shipment is palletized
|
| 187 |
+
* MANDATORY: YES
|
| 188 |
+
* @access private
|
| 189 |
+
* @var boolean
|
| 190 |
+
*/
|
| 191 |
+
private $_palletized;
|
| 192 |
+
|
| 193 |
+
/**
|
| 194 |
+
* Sender's ID.
|
| 195 |
+
* Either senderId or senderSiteId must be set
|
| 196 |
+
* MANDATORY: NO
|
| 197 |
+
* @access private
|
| 198 |
+
* @var integer Signed 64-bit
|
| 199 |
+
*/
|
| 200 |
+
private $_senderId;
|
| 201 |
+
|
| 202 |
+
/**
|
| 203 |
+
* Sender's site ID.
|
| 204 |
+
* Either senderId or senderSiteId must be set
|
| 205 |
+
* MANDATORY: NO
|
| 206 |
+
* @access private
|
| 207 |
+
* @var integer Signed 64-bit
|
| 208 |
+
*/
|
| 209 |
+
private $_senderSiteId;
|
| 210 |
+
|
| 211 |
+
/**
|
| 212 |
+
* Receiver's ID.
|
| 213 |
+
* Either receiverId or receiverSiteId must be set
|
| 214 |
+
* MANDATORY: NO
|
| 215 |
+
* @access private
|
| 216 |
+
* @var integer Signed 64-bit
|
| 217 |
+
*/
|
| 218 |
+
private $_receiverId;
|
| 219 |
+
|
| 220 |
+
/**
|
| 221 |
+
* Receiver's site ID
|
| 222 |
+
* Either receiverId or receiverSiteId must be set
|
| 223 |
+
* MANDATORY: NO
|
| 224 |
+
* @access private
|
| 225 |
+
* @var integer Signed 64-bit
|
| 226 |
+
*/
|
| 227 |
+
private $_receiverSiteId;
|
| 228 |
+
|
| 229 |
+
/**
|
| 230 |
+
* Payer type (0=sender, 1=receiver or 2=third party)
|
| 231 |
+
* MANDATORY: YES
|
| 232 |
+
* @access private
|
| 233 |
+
* @var integer Signed 32-bit
|
| 234 |
+
*/
|
| 235 |
+
private $_payerType;
|
| 236 |
+
|
| 237 |
+
/**
|
| 238 |
+
* Payer ID. Must be set <=> payer is "third party".
|
| 239 |
+
* MANDATORY: NO
|
| 240 |
+
* @access private
|
| 241 |
+
* @var integer Signed 64-bit
|
| 242 |
+
*/
|
| 243 |
+
private $_payerRefId;
|
| 244 |
+
|
| 245 |
+
/**
|
| 246 |
+
* Insurance payer type (0=sender, 1=reciever or 2=third party).
|
| 247 |
+
* Must be set <=> shipment is insured (i.e. amountInsuranceBase > 0).
|
| 248 |
+
* MANDATORY: NO
|
| 249 |
+
* @access private
|
| 250 |
+
* @var integer Signed 32-bit
|
| 251 |
+
*/
|
| 252 |
+
private $_payerTypeInsurance;
|
| 253 |
+
|
| 254 |
+
/**
|
| 255 |
+
* Packings payer type (0=sender, 1=reciever or 2=third party)
|
| 256 |
+
* MANDATORY: NO. If not set, the payer of the packings' surcharge will be the same as the one indicated by payerType.
|
| 257 |
+
* @var integer Signed 32-bit
|
| 258 |
+
* @since 2.3.0
|
| 259 |
+
*/
|
| 260 |
+
private $_payerTypePackings;
|
| 261 |
+
|
| 262 |
+
/**
|
| 263 |
+
* Insurance payer ID. Must be set <=> shipment has insurance (i.e. amountInsuranceBase > 0) and it is payed by a "third party".
|
| 264 |
+
* MANDATORY: NO
|
| 265 |
+
* @access private
|
| 266 |
+
* @var integer Signed 64-bit
|
| 267 |
+
*/
|
| 268 |
+
private $_payerRefInsuranceId;
|
| 269 |
+
|
| 270 |
+
/**
|
| 271 |
+
* Packings payer id
|
| 272 |
+
* MANDATORY: Must be set <=> payerTypePackings is "third party".
|
| 273 |
+
* @var integer Signed 64-bit
|
| 274 |
+
* @since 2.3.0
|
| 275 |
+
*/
|
| 276 |
+
protected $_payerRefPackingsId;
|
| 277 |
+
|
| 278 |
+
/**
|
| 279 |
+
* Special delivery id
|
| 280 |
+
* MANDATORY: NO
|
| 281 |
+
* @var signed 32-bit integer
|
| 282 |
+
* @since 2.3.0
|
| 283 |
+
*/
|
| 284 |
+
protected $_specialDeliveryId;
|
| 285 |
+
|
| 286 |
+
/**
|
| 287 |
+
* Receiver's country ID
|
| 288 |
+
* MANDATORY: NO. Defaults to Bulgaria when not specified
|
| 289 |
+
* @var integer Signed 64-bit
|
| 290 |
+
* @since 2.5.0
|
| 291 |
+
*/
|
| 292 |
+
private $_receiverCountryId;
|
| 293 |
+
|
| 294 |
+
/**
|
| 295 |
+
* Receiver's post code
|
| 296 |
+
* MANDATORY: According to internal nomenclature support
|
| 297 |
+
* @var string
|
| 298 |
+
* @since 2.5.0
|
| 299 |
+
*/
|
| 300 |
+
private $_receiverPostCode;
|
| 301 |
+
|
| 302 |
+
/**
|
| 303 |
+
* Sender's country ID
|
| 304 |
+
* MANDATORY: NO. Defaults to Bulgaria when not specified
|
| 305 |
+
* @var integer Signed 64-bit
|
| 306 |
+
* @since 2.5.0
|
| 307 |
+
*/
|
| 308 |
+
private $_senderCountryId;
|
| 309 |
+
|
| 310 |
+
/**
|
| 311 |
+
* Sender's post code
|
| 312 |
+
* MANDATORY: According to internal nomenclature support
|
| 313 |
+
* @var string
|
| 314 |
+
* @since 2.5.0
|
| 315 |
+
*/
|
| 316 |
+
private $_senderPostCode;
|
| 317 |
+
|
| 318 |
+
/**
|
| 319 |
+
* Set the date for shipment pick-up (the "time" component is ignored).
|
| 320 |
+
* Server defaults this value to "today" if it is not set
|
| 321 |
+
* @param date $takingDate
|
| 322 |
+
*/
|
| 323 |
+
public function setTakingDate($takingDate) {
|
| 324 |
+
$this->_takingDate = $takingDate;
|
| 325 |
+
}
|
| 326 |
+
|
| 327 |
+
/**
|
| 328 |
+
* Get date for shipment pick-up (the "time" component is ignored).
|
| 329 |
+
* @return date Taking date
|
| 330 |
+
*/
|
| 331 |
+
public function getTakingDate() {
|
| 332 |
+
return $this->_takingDate;
|
| 333 |
+
}
|
| 334 |
+
|
| 335 |
+
/**
|
| 336 |
+
* Set flag to auto-adjist or not taking date.
|
| 337 |
+
* If set to true, the "takingDate" field is not just to be validated, but the first allowed (following)
|
| 338 |
+
* date will be used instead (in compliance with the pick-up schedule etc.).
|
| 339 |
+
* @param boolean $autoAdjustTakingDate
|
| 340 |
+
*/
|
| 341 |
+
public function setAutoAdjustTakingDate($autoAdjustTakingDate) {
|
| 342 |
+
$this->_autoAdjustTakingDate = $autoAdjustTakingDate;
|
| 343 |
+
}
|
| 344 |
+
|
| 345 |
+
/**
|
| 346 |
+
* Get flag for taking date auto-adjustment
|
| 347 |
+
* @return boolean Auto-adjust taking date flag
|
| 348 |
+
*/
|
| 349 |
+
public function isAutoAdjustTakingDate() {
|
| 350 |
+
return $this->_autoAdjustTakingDate;
|
| 351 |
+
}
|
| 352 |
+
|
| 353 |
+
/**
|
| 354 |
+
* Set courier service type ID from.
|
| 355 |
+
* @param integer $serviceTypeId Signed 64-bit value from Speedy service nomenclature
|
| 356 |
+
*/
|
| 357 |
+
public function setServiceTypeId($serviceTypeId) {
|
| 358 |
+
$this->_serviceTypeId = $serviceTypeId;
|
| 359 |
+
}
|
| 360 |
+
|
| 361 |
+
/**
|
| 362 |
+
* Get courier service type ID from nomenclature.
|
| 363 |
+
* @return integer Courier service type ID - signed 64-bit value from Speedy service nomenclature
|
| 364 |
+
*/
|
| 365 |
+
public function getServiceTypeId() {
|
| 366 |
+
return $this->_serviceTypeId;
|
| 367 |
+
}
|
| 368 |
+
|
| 369 |
+
/**
|
| 370 |
+
* Set the specific Speedy office, where the sender intends to deliver the shipment by him/herself.
|
| 371 |
+
* If willBringToOfficeId is provided, willBringToOffice flag is considered "true" and the picking "from office", regardless the value provided.
|
| 372 |
+
* If willBringToOfficeId is not provied (null) and willBringToOffice flag is "true", willBringToOfficeId is automatically set with default value configured for caller user profile.
|
| 373 |
+
* The default willBringToOfficeId value could be managed using profile configuration page in client's Speedy web site.
|
| 374 |
+
* If willBringToOfficeId is set to 0, broughtToOffice flag is considered "false".
|
| 375 |
+
* @param integer signed 64-bit $willBringToOfficeId Bring-to-office id
|
| 376 |
+
* @since 2.8.0
|
| 377 |
+
*/
|
| 378 |
+
public function setWillBringToOfficeId($willBringToOfficeId) {
|
| 379 |
+
$this->_willBringToOfficeId = $willBringToOfficeId;
|
| 380 |
+
}
|
| 381 |
+
|
| 382 |
+
/**
|
| 383 |
+
* Get the specific Speedy office, where the sender intends to deliver the shipment by him/herself.
|
| 384 |
+
* If willBringToOfficeId is provided, willBringToOffice flag is considered "true" and the picking "from office", regardless the value provided.
|
| 385 |
+
* If willBringToOfficeId is not provied (null) and willBringToOffice flag is "true", willBringToOfficeId is automatically set with default value configured for caller user profile.
|
| 386 |
+
* The default willBringToOfficeId value could be managed using profile configuration page in client's Speedy web site.
|
| 387 |
+
* If willBringToOfficeId is set to 0, broughtToOffice flag is considered "false".
|
| 388 |
+
* @return integer signed 64-bit Bring-to-office id
|
| 389 |
+
* @since 2.8.0
|
| 390 |
+
*/
|
| 391 |
+
public function getWillBringToOfficeId() {
|
| 392 |
+
return $this->_willBringToOfficeId;
|
| 393 |
+
}
|
| 394 |
+
|
| 395 |
+
/**
|
| 396 |
+
* Set flag for brought-to-office
|
| 397 |
+
* This flag specifies if the sender intends to deliver the shipment to a Speedy office by him/herself instead of ordering a visit by courier
|
| 398 |
+
* @param boolean $broughtToOffice Brought-to-office flag
|
| 399 |
+
*/
|
| 400 |
+
public function setBroughtToOffice($broughtToOffice) {
|
| 401 |
+
$this->_broughtToOffice = $broughtToOffice;
|
| 402 |
+
}
|
| 403 |
+
|
| 404 |
+
/**
|
| 405 |
+
* Get flag for brought-to-office
|
| 406 |
+
* @return boolean Brought-to-office flag
|
| 407 |
+
*/
|
| 408 |
+
public function isBroughtToOffice() {
|
| 409 |
+
return $this->_broughtToOffice;
|
| 410 |
+
}
|
| 411 |
+
|
| 412 |
+
/**
|
| 413 |
+
* Set ID of the office "to be called".
|
| 414 |
+
* Non-null and non-zero value indicates this picking as "to office". Otherwise "to address" is considered.
|
| 415 |
+
* If officeToBeCalledId is provided (non-null and non-zero), toBeCalled flag is considered "true".
|
| 416 |
+
* If officeToBeCalledId is set to 0, toBeCalled flag is considered "false".
|
| 417 |
+
* @param integer signed 64-bit $officeToBeCalledId Office-to-be-called id
|
| 418 |
+
* @since 2.8.0
|
| 419 |
+
*/
|
| 420 |
+
public function setOfficeToBeCalledId($officeToBeCalledId) {
|
| 421 |
+
$this->_officeToBeCalledId = $officeToBeCalledId;
|
| 422 |
+
}
|
| 423 |
+
|
| 424 |
+
/**
|
| 425 |
+
* Get ID of the office "to be called".
|
| 426 |
+
* Non-null and non-zero value indicates this picking as "to office". Otherwise "to address" is considered.
|
| 427 |
+
* If officeToBeCalledId is provided (non-null and non-zero), toBeCalled flag is considered "true".
|
| 428 |
+
* If officeToBeCalledId is set to 0, toBeCalled flag is considered "false".
|
| 429 |
+
* @return integer signed 64-bit Office-to-be-called id
|
| 430 |
+
* @since 2.8.0
|
| 431 |
+
*/
|
| 432 |
+
public function getOfficeToBeCalledId() {
|
| 433 |
+
return $this->_officeToBeCalledId;
|
| 434 |
+
}
|
| 435 |
+
|
| 436 |
+
/**
|
| 437 |
+
* Set flag for to-be-called. Specifies if the shipment is "to be called"
|
| 438 |
+
* @param boolean $toBeCalled Brought-to-office flag
|
| 439 |
+
*/
|
| 440 |
+
public function setToBeCalled($toBeCalled) {
|
| 441 |
+
$this->_toBeCalled = $toBeCalled;
|
| 442 |
+
}
|
| 443 |
+
|
| 444 |
+
/**
|
| 445 |
+
* Get flag for to-be-called
|
| 446 |
+
* @return boolean To-be-called flag
|
| 447 |
+
*/
|
| 448 |
+
public function isToBeCalled() {
|
| 449 |
+
return $this->_toBeCalled;
|
| 450 |
+
}
|
| 451 |
+
|
| 452 |
+
/**
|
| 453 |
+
* Set fixed time for delivery ("HHmm" format, i.e., the number "1315" means "13:15", "830" means "8:30" etc.).
|
| 454 |
+
* Depending on the courier service, this property could be required, allowed or banned
|
| 455 |
+
* @param integer $fixedTimeDelivery Signed 16-bit
|
| 456 |
+
*/
|
| 457 |
+
public function setFixedTimeDelivery($fixedTimeDelivery) {
|
| 458 |
+
$this->_fixedTimeDelivery = $fixedTimeDelivery;
|
| 459 |
+
}
|
| 460 |
+
|
| 461 |
+
/**
|
| 462 |
+
* Get fixed time for delivery ("HHmm" format, i.e., the number "1315" means "13:15", "830" means "8:30" etc.).
|
| 463 |
+
* @return integer Fixed time for delivery - signed 16-bit
|
| 464 |
+
*/
|
| 465 |
+
public function getFixedTimeDelivery() {
|
| 466 |
+
return $this->_fixedTimeDelivery;
|
| 467 |
+
}
|
| 468 |
+
|
| 469 |
+
/**
|
| 470 |
+
* Set deferred delivery work days.
|
| 471 |
+
* This parameter allows users to specify by how many (working) days they would like to postpone the shipment delivery.
|
| 472 |
+
* Max value is 2.
|
| 473 |
+
* @param integer $deferredDeliveryWorkDays Signed 32-bit
|
| 474 |
+
*/
|
| 475 |
+
public function setDeferredDeliveryWorkDays($deferredDeliveryWorkDays) {
|
| 476 |
+
$this->_deferredDeliveryWorkDays = $deferredDeliveryWorkDays;
|
| 477 |
+
}
|
| 478 |
+
|
| 479 |
+
/**
|
| 480 |
+
* Get deferred delivery work days.
|
| 481 |
+
* @return integer Deferred delivery work days - signed 32-bit
|
| 482 |
+
*/
|
| 483 |
+
public function getDeferredDeliveryWorkDays() {
|
| 484 |
+
return $this->_deferredDeliveryWorkDays;
|
| 485 |
+
}
|
| 486 |
+
|
| 487 |
+
/**
|
| 488 |
+
* Set shipment insurance value (if the shipment is insured).
|
| 489 |
+
* The limit of this value depends on user's permissions and Speedy's current policy.
|
| 490 |
+
* @param integer $amountInsuranceBase Signed 64-bit
|
| 491 |
+
*/
|
| 492 |
+
public function setAmountInsuranceBase($amountInsuranceBase) {
|
| 493 |
+
$this->_amountInsuranceBase = $amountInsuranceBase;
|
| 494 |
+
}
|
| 495 |
+
|
| 496 |
+
/**
|
| 497 |
+
* Get shipment insurance value
|
| 498 |
+
* @return integer Shipment insurance value - signed 64-bit
|
| 499 |
+
*/
|
| 500 |
+
public function getAmountInsuranceBase() {
|
| 501 |
+
return $this->_amountInsuranceBase;
|
| 502 |
+
}
|
| 503 |
+
|
| 504 |
+
/**
|
| 505 |
+
* Set cash-on-Delivery (COD) amount.
|
| 506 |
+
* The limit of this value depends on user's permissions and Speedy's current policy.
|
| 507 |
+
* @param integer $amountCodBase Signed 64-bit
|
| 508 |
+
*/
|
| 509 |
+
public function setAmountCodBase($amountCodBase) {
|
| 510 |
+
$this->_amountCodBase = $amountCodBase;
|
| 511 |
+
}
|
| 512 |
+
|
| 513 |
+
/**
|
| 514 |
+
* Get cash-on-Delivery (COD) amount.
|
| 515 |
+
* @return integer Cash-on-Delivery (COD) amount - signed 64-bit
|
| 516 |
+
*/
|
| 517 |
+
public function getAmountCodBase() {
|
| 518 |
+
return $this->_amountCodBase;
|
| 519 |
+
}
|
| 520 |
+
|
| 521 |
+
/**
|
| 522 |
+
* Set flag, if the COD value is to be paid to a third party. Allowed only if the shipment has payerType = 2 (third party).
|
| 523 |
+
* @param boolean $payCodToThirdParty
|
| 524 |
+
*/
|
| 525 |
+
public function setPayCodToThirdParty($payCodToThirdParty) {
|
| 526 |
+
$this->_payCodToThirdParty = $payCodToThirdParty;
|
| 527 |
+
}
|
| 528 |
+
|
| 529 |
+
/**
|
| 530 |
+
* Get flag for COD value to be paid to a third party
|
| 531 |
+
* @return boolean Flag for cash-on-Delivery (COD) to third party
|
| 532 |
+
*/
|
| 533 |
+
public function isPayCodToThirdParty() {
|
| 534 |
+
return $this->_payCodToThirdParty;
|
| 535 |
+
}
|
| 536 |
+
|
| 537 |
+
/**
|
| 538 |
+
* Set parcels count.
|
| 539 |
+
* Max 999.
|
| 540 |
+
* @param integer $parcelsCount Parcels count - signed 32-bit
|
| 541 |
+
*/
|
| 542 |
+
public function setParcelsCount($parcelsCount) {
|
| 543 |
+
$this->_parcelsCount = $parcelsCount;
|
| 544 |
+
}
|
| 545 |
+
|
| 546 |
+
/**
|
| 547 |
+
* Get parcels count.
|
| 548 |
+
* @return integer Parcels count - signed 32-bit
|
| 549 |
+
*/
|
| 550 |
+
public function getParcelsCount() {
|
| 551 |
+
return $this->_parcelsCount;
|
| 552 |
+
}
|
| 553 |
+
|
| 554 |
+
/**
|
| 555 |
+
* Set declared weight (the greater of "volume" and "real" weight values).
|
| 556 |
+
* Max 100.00
|
| 557 |
+
* @param double $weightDeclared Declared weight - signed 64-bit
|
| 558 |
+
*/
|
| 559 |
+
public function setWeightDeclared($weightDeclared) {
|
| 560 |
+
$this->_weightDeclared = $weightDeclared;
|
| 561 |
+
}
|
| 562 |
+
|
| 563 |
+
/**
|
| 564 |
+
* Get declared weight
|
| 565 |
+
* @return double Declared weight - signed 64-bit
|
| 566 |
+
*/
|
| 567 |
+
public function getWeightDeclared() {
|
| 568 |
+
return $this->_weightDeclared;
|
| 569 |
+
}
|
| 570 |
+
|
| 571 |
+
/**
|
| 572 |
+
* Set flag whether the shipment consists of documents
|
| 573 |
+
* @param boolean $documents Documents flag
|
| 574 |
+
*/
|
| 575 |
+
public function setDocuments($documents) {
|
| 576 |
+
$this->_documents = $documents;
|
| 577 |
+
}
|
| 578 |
+
|
| 579 |
+
/**
|
| 580 |
+
* Get flag whether the shipment consists of documents
|
| 581 |
+
* @return boolean Documents flag
|
| 582 |
+
*/
|
| 583 |
+
public function isDocuments() {
|
| 584 |
+
return $this->_documents;
|
| 585 |
+
}
|
| 586 |
+
|
| 587 |
+
/**
|
| 588 |
+
* Set flag whether the shipment is fragile - necessary when the price of insurance is being calculated
|
| 589 |
+
* @param boolean $fragile Fragile flag
|
| 590 |
+
*/
|
| 591 |
+
public function setFragile($fragile) {
|
| 592 |
+
$this->_fragile = $fragile;
|
| 593 |
+
}
|
| 594 |
+
|
| 595 |
+
/**
|
| 596 |
+
* Get flag whether the shipment is fragile
|
| 597 |
+
* @return boolean Fragile flag
|
| 598 |
+
*/
|
| 599 |
+
public function isFragile() {
|
| 600 |
+
return $this->_fragile;
|
| 601 |
+
}
|
| 602 |
+
|
| 603 |
+
/**
|
| 604 |
+
* Set flag whether the shipment is for pallets
|
| 605 |
+
* @param boolean $palletized Palletized flag
|
| 606 |
+
*/
|
| 607 |
+
public function setPalletized($palletized) {
|
| 608 |
+
$this->_palletized = $palletized;
|
| 609 |
+
}
|
| 610 |
+
|
| 611 |
+
/**
|
| 612 |
+
* Get flag whether the shipment is for pallets
|
| 613 |
+
* @return boolean Palletized flag
|
| 614 |
+
*/
|
| 615 |
+
public function isPalletized() {
|
| 616 |
+
return $this->_palletized;
|
| 617 |
+
}
|
| 618 |
+
|
| 619 |
+
/**
|
| 620 |
+
* Set sender's ID. From Speedy client nomenclature.
|
| 621 |
+
* Either senderId or senderSiteId must be set
|
| 622 |
+
* @param integer $senderId Signed 64-bit
|
| 623 |
+
*/
|
| 624 |
+
public function setSenderId($senderId) {
|
| 625 |
+
$this->_senderId = $senderId;
|
| 626 |
+
}
|
| 627 |
+
|
| 628 |
+
/**
|
| 629 |
+
* Get sender's ID. From Speedy client nomenclature.
|
| 630 |
+
* @return integer Sender's ID - signed 64-bit
|
| 631 |
+
*/
|
| 632 |
+
public function getSenderId() {
|
| 633 |
+
return $this->_senderId;
|
| 634 |
+
}
|
| 635 |
+
|
| 636 |
+
/**
|
| 637 |
+
* Set sender's site ID. From Speedy site nomenclature.
|
| 638 |
+
* Either senderId or senderSiteId must be set
|
| 639 |
+
* @param integer $senderSiteId Signed 64-bit
|
| 640 |
+
*/
|
| 641 |
+
public function setSenderSiteId($senderSiteId) {
|
| 642 |
+
$this->_senderSiteId = $senderSiteId;
|
| 643 |
+
}
|
| 644 |
+
|
| 645 |
+
/**
|
| 646 |
+
* Get sender's site ID. From Speedy site nomenclature.
|
| 647 |
+
* @return integer Sender's site ID - signed 64-bit
|
| 648 |
+
*/
|
| 649 |
+
public function getSenderSiteId() {
|
| 650 |
+
return $this->_senderSiteId;
|
| 651 |
+
}
|
| 652 |
+
|
| 653 |
+
/**
|
| 654 |
+
* Receiver's ID. From Speedy client nomenclature.
|
| 655 |
+
* Either receiverId or receiverSiteId must be set
|
| 656 |
+
* @param integer $receiverId Signed 64-bit
|
| 657 |
+
*/
|
| 658 |
+
public function setReceiverId($receiverId) {
|
| 659 |
+
$this->_receiverId = $receiverId;
|
| 660 |
+
}
|
| 661 |
+
|
| 662 |
+
/**
|
| 663 |
+
* Get receiver's ID. From Speedy client nomenclature.
|
| 664 |
+
* @return integer Receiver's ID - signed 64-bit
|
| 665 |
+
*/
|
| 666 |
+
public function getReceiverId() {
|
| 667 |
+
return $this->_receiverId;
|
| 668 |
+
}
|
| 669 |
+
|
| 670 |
+
/**
|
| 671 |
+
* Set receiver's site ID. From Speedy site nomenclature.
|
| 672 |
+
* Either receiverId or receiverSiteId must be set
|
| 673 |
+
* @param integer $receiverSiteId Signed 64-bit
|
| 674 |
+
*/
|
| 675 |
+
public function setReceiverSiteId($receiverSiteId) {
|
| 676 |
+
$this->_receiverSiteId = $receiverSiteId;
|
| 677 |
+
}
|
| 678 |
+
|
| 679 |
+
/**
|
| 680 |
+
* Get receiver's site ID. From Speedy site nomenclature.
|
| 681 |
+
* @return integer Receiver's site ID - signed 64-bit
|
| 682 |
+
*/
|
| 683 |
+
public function getReceiverSiteId() {
|
| 684 |
+
return $this->_receiverSiteId;
|
| 685 |
+
}
|
| 686 |
+
|
| 687 |
+
/**
|
| 688 |
+
* Set payer type (0=sender, 1=receiver or 2=third party)
|
| 689 |
+
* @param integer $payerType Signed 32-bit
|
| 690 |
+
*/
|
| 691 |
+
public function setPayerType($payerType) {
|
| 692 |
+
$this->_payerType = $payerType;
|
| 693 |
+
}
|
| 694 |
+
|
| 695 |
+
/**
|
| 696 |
+
* Get payer type (0=sender, 1=receiver or 2=third party)
|
| 697 |
+
* @return integer Payer type - signed 32-bit
|
| 698 |
+
*/
|
| 699 |
+
public function getPayerType() {
|
| 700 |
+
return $this->_payerType;
|
| 701 |
+
}
|
| 702 |
+
|
| 703 |
+
/**
|
| 704 |
+
* Set payer ID from Speedy client nomenclature.
|
| 705 |
+
* Must be set <=> payer is "third party".
|
| 706 |
+
* @param integer $payerRefId Signed 64-bit
|
| 707 |
+
*/
|
| 708 |
+
public function setPayerRefId($payerRefId) {
|
| 709 |
+
$this->_payerRefId = $payerRefId;
|
| 710 |
+
}
|
| 711 |
+
|
| 712 |
+
/**
|
| 713 |
+
* Get payer ID from Speedy client nomenclature.
|
| 714 |
+
* @return integer Payer ID - signed 64-bit
|
| 715 |
+
*/
|
| 716 |
+
public function getPayerRefId() {
|
| 717 |
+
return $this->_payerRefId;
|
| 718 |
+
}
|
| 719 |
+
|
| 720 |
+
/**
|
| 721 |
+
* Set insurance payer type (0=sender, 1=reciever or 2=third party).
|
| 722 |
+
* Must be set <=> shipment is insured (i.e. amountInsuranceBase > 0).
|
| 723 |
+
* @param integer $payerTypeInsurance Signed 32-bit
|
| 724 |
+
*/
|
| 725 |
+
public function setPayerTypeInsurance($payerTypeInsurance) {
|
| 726 |
+
$this->_payerTypeInsurance = $payerTypeInsurance;
|
| 727 |
+
}
|
| 728 |
+
|
| 729 |
+
/**
|
| 730 |
+
* Get insurance payer type (0=sender, 1=reciever or 2=third party).
|
| 731 |
+
* @return integer Insurance payer type - signed 32-bit
|
| 732 |
+
*/
|
| 733 |
+
public function getPayerTypeInsurance() {
|
| 734 |
+
return $this->_payerTypeInsurance;
|
| 735 |
+
}
|
| 736 |
+
|
| 737 |
+
|
| 738 |
+
/**
|
| 739 |
+
* Set packings payer type (0=sender, 1=reciever or 2=third party).
|
| 740 |
+
* Must be set <=> shipment is insured (i.e. amountInsuranceBase > 0).
|
| 741 |
+
* @param integer $payerTypePackings Signed 32-bit
|
| 742 |
+
*/
|
| 743 |
+
public function setPayerTypePackings($payerTypePackings) {
|
| 744 |
+
$this->_payerTypePackings = $payerTypePackings;
|
| 745 |
+
}
|
| 746 |
+
|
| 747 |
+
/**
|
| 748 |
+
* Get packings payer type (0=sender, 1=reciever or 2=third party).
|
| 749 |
+
* @return integer Insurance payer type - signed 32-bit
|
| 750 |
+
*/
|
| 751 |
+
public function getPayerTypePackings() {
|
| 752 |
+
return $this->_payerTypePackings;
|
| 753 |
+
}
|
| 754 |
+
|
| 755 |
+
/**
|
| 756 |
+
* Set insurance payer ID from Speedy client nomenclature.
|
| 757 |
+
* Must be set <=> shipment has insurance (i.e. amountInsuranceBase > 0) and it is payed by a "third party".
|
| 758 |
+
* @param integer $payerRefInsuranceId Signed 64-bit
|
| 759 |
+
*/
|
| 760 |
+
public function setPayerRefInsuranceId($payerRefInsuranceId) {
|
| 761 |
+
$this->_payerRefInsuranceId = $payerRefInsuranceId;
|
| 762 |
+
}
|
| 763 |
+
|
| 764 |
+
/**
|
| 765 |
+
* Get insurance payer ID from Speedy client nomenclature.
|
| 766 |
+
* @return integer Insurance payer ID - signed 64-bit
|
| 767 |
+
*/
|
| 768 |
+
public function getPayerRefInsuranceId() {
|
| 769 |
+
return $this->_payerRefInsuranceId;
|
| 770 |
+
}
|
| 771 |
+
|
| 772 |
+
/**
|
| 773 |
+
* Set packings payer ID
|
| 774 |
+
* @param integer $payerRefPackingsId Signed 64-bit
|
| 775 |
+
*/
|
| 776 |
+
public function setPayerRefPackingsId($payerRefPackingsId) {
|
| 777 |
+
$this->_payerRefPackingsId = $payerRefPackingsId;
|
| 778 |
+
}
|
| 779 |
+
|
| 780 |
+
/**
|
| 781 |
+
* Get packings payer ID
|
| 782 |
+
* @return integer Signed 64-bit
|
| 783 |
+
*/
|
| 784 |
+
public function getPayerRefPackingsId() {
|
| 785 |
+
return $this->_payerRefPackingsId;
|
| 786 |
+
}
|
| 787 |
+
|
| 788 |
+
/**
|
| 789 |
+
* Gets the special delivery id
|
| 790 |
+
* @return signed 32-bit integer special delivery id
|
| 791 |
+
*/
|
| 792 |
+
public function getSpecialDeliveryId() {
|
| 793 |
+
return $this->_specialDeliveryId;
|
| 794 |
+
}
|
| 795 |
+
|
| 796 |
+
/**
|
| 797 |
+
* Sets the special delivery id
|
| 798 |
+
* @param signed 32-bit integer $specialDeliveryId Special delivery id
|
| 799 |
+
*/
|
| 800 |
+
public function setSpecialDeliveryId($specialDeliveryId) {
|
| 801 |
+
$this->_specialDeliveryId = $specialDeliveryId;
|
| 802 |
+
}
|
| 803 |
+
|
| 804 |
+
/**
|
| 805 |
+
* Set the receiver country id
|
| 806 |
+
* @param integer signed 64-bit $receiverCountryId
|
| 807 |
+
*/
|
| 808 |
+
public function setReceiverCountryId($receiverCountryId) {
|
| 809 |
+
$this->_receiverCountryId = $receiverCountryId;
|
| 810 |
+
}
|
| 811 |
+
|
| 812 |
+
/**
|
| 813 |
+
* Get receiver country id.
|
| 814 |
+
* @return integer signed 64-bit Receiver country id
|
| 815 |
+
*/
|
| 816 |
+
public function getReceiverCountryId() {
|
| 817 |
+
return $this->_receiverCountryId;
|
| 818 |
+
}
|
| 819 |
+
|
| 820 |
+
/**
|
| 821 |
+
* Set the receiver post code
|
| 822 |
+
* @param string $receiverPostCode
|
| 823 |
+
*/
|
| 824 |
+
public function setReceiverPostCode($receiverPostCode) {
|
| 825 |
+
$this->_receiverPostCode = $receiverPostCode;
|
| 826 |
+
}
|
| 827 |
+
|
| 828 |
+
/**
|
| 829 |
+
* Get receiver post code
|
| 830 |
+
* @return string Receiver post code
|
| 831 |
+
*/
|
| 832 |
+
public function getReceiverPostCode() {
|
| 833 |
+
return $this->_receiverPostCode;
|
| 834 |
+
}
|
| 835 |
+
|
| 836 |
+
/**
|
| 837 |
+
* Set the sender country id
|
| 838 |
+
* @param integer signed 64-bit $senderCountryId
|
| 839 |
+
*/
|
| 840 |
+
public function setSenderCountryId($senderCountryId) {
|
| 841 |
+
$this->_senderCountryId = $senderCountryId;
|
| 842 |
+
}
|
| 843 |
+
|
| 844 |
+
/**
|
| 845 |
+
* Get sender country id.
|
| 846 |
+
* @return integer signed 64-bit Sender country id
|
| 847 |
+
*/
|
| 848 |
+
public function getSenderCountryId() {
|
| 849 |
+
return $this->_senderCountryId;
|
| 850 |
+
}
|
| 851 |
+
|
| 852 |
+
/**
|
| 853 |
+
* Set the sender post code
|
| 854 |
+
* @param string $senderPostCode
|
| 855 |
+
*/
|
| 856 |
+
public function setSenderPostCode($senderPostCode) {
|
| 857 |
+
$this->_senderPostCode = $senderPostCode;
|
| 858 |
+
}
|
| 859 |
+
|
| 860 |
+
/**
|
| 861 |
+
* Get sender post code
|
| 862 |
+
* @return string Sender post code
|
| 863 |
+
*/
|
| 864 |
+
public function getSenderPostCode() {
|
| 865 |
+
return $this->_senderPostCode;
|
| 866 |
+
}
|
| 867 |
+
|
| 868 |
+
/**
|
| 869 |
+
* Set data for parcels with explicit/fixed IDs (from the second one onward)
|
| 870 |
+
* @param array $parcels List of ParamParcelInfo
|
| 871 |
+
*/
|
| 872 |
+
public function setParcels($parcels) {
|
| 873 |
+
$this->_parcels = $parcels;
|
| 874 |
+
}
|
| 875 |
+
|
| 876 |
+
/**
|
| 877 |
+
* Get data for parcels with explicit/fixed IDs (from the second one onward)
|
| 878 |
+
* @return array List of ParamParcelInfo
|
| 879 |
+
*/
|
| 880 |
+
public function getParcels() {
|
| 881 |
+
return $this->_parcels;
|
| 882 |
+
}
|
| 883 |
+
|
| 884 |
+
/**
|
| 885 |
+
* Return standard class from this class
|
| 886 |
+
* @return stdClass
|
| 887 |
+
*/
|
| 888 |
+
public function toStdClass() {
|
| 889 |
+
$stdClass = new stdClass();
|
| 890 |
+
$stdClass->takingDate = $this->_takingDate;
|
| 891 |
+
$stdClass->autoAdjustTakingDate = $this->_autoAdjustTakingDate;
|
| 892 |
+
$stdClass->serviceTypeId = $this->_serviceTypeId;
|
| 893 |
+
$stdClass->willBringToOfficeId = $this->_willBringToOfficeId;
|
| 894 |
+
$stdClass->broughtToOffice = $this->_broughtToOffice;
|
| 895 |
+
$stdClass->officeToBeCalledId = $this->_officeToBeCalledId;
|
| 896 |
+
$stdClass->toBeCalled = $this->_toBeCalled;
|
| 897 |
+
$stdClass->fixedTimeDelivery = $this->_fixedTimeDelivery;
|
| 898 |
+
$stdClass->deferredDeliveryWorkDays = $this->_deferredDeliveryWorkDays;
|
| 899 |
+
$stdClass->amountInsuranceBase = $this->_amountInsuranceBase;
|
| 900 |
+
$stdClass->amountCodBase = $this->_amountCodBase;
|
| 901 |
+
$stdClass->payCodToThirdParty = $this->_payCodToThirdParty;
|
| 902 |
+
$stdClass->parcelsCount = $this->_parcelsCount;
|
| 903 |
+
$stdClass->weightDeclared = $this->_weightDeclared;
|
| 904 |
+
$stdClass->documents = $this->_documents;
|
| 905 |
+
$stdClass->fragile = $this->_fragile;
|
| 906 |
+
$stdClass->palletized = $this->_palletized;
|
| 907 |
+
$stdClass->senderId = $this->_senderId;
|
| 908 |
+
$stdClass->senderSiteId = $this->_senderSiteId;
|
| 909 |
+
$stdClass->receiverId = $this->_receiverId;
|
| 910 |
+
$stdClass->receiverSiteId = $this->_receiverSiteId;
|
| 911 |
+
$stdClass->payerType = $this->_payerType;
|
| 912 |
+
$stdClass->payerRefId = $this->_payerRefId;
|
| 913 |
+
$stdClass->payerTypeInsurance = $this->_payerTypeInsurance;
|
| 914 |
+
$stdClass->payerTypePackings = $this->_payerTypePackings;
|
| 915 |
+
$stdClass->payerRefInsuranceId = $this->_payerRefInsuranceId;
|
| 916 |
+
$stdClass->payerRefPackingsId = $this->_payerRefPackingsId;
|
| 917 |
+
$stdClass->specialDeliveryId = $this->_specialDeliveryId;
|
| 918 |
+
$stdClass->receiverCountryId = $this->_receiverCountryId;
|
| 919 |
+
$stdClass->receiverPostCode = $this->_receiverPostCode;
|
| 920 |
+
$stdClass->senderCountryId = $this->_senderCountryId;
|
| 921 |
+
$stdClass->senderPostCode = $this->_senderPostCode;
|
| 922 |
+
|
| 923 |
+
$arrStdClassParamParcelInfo = array();
|
| 924 |
+
if (isset($this->_parcels)) {
|
| 925 |
+
if (is_array($this->_parcels)) {
|
| 926 |
+
for($i = 0; $i < count($this->_parcels); $i++) {
|
| 927 |
+
$arrStdClassParamParcelInfo[$i] = $this->_parcels[$i]->toStdClass();
|
| 928 |
+
}
|
| 929 |
+
} else {
|
| 930 |
+
$arrStdClassParamParcelInfo[0] = $this->_parcels->toStdClass();
|
| 931 |
+
}
|
| 932 |
+
}
|
| 933 |
+
$stdClass->parcels = $arrStdClassParamParcelInfo;
|
| 934 |
+
|
| 935 |
+
return $stdClass;
|
| 936 |
+
}
|
| 937 |
+
}
|
| 938 |
Â
?>
|
lib/SpeedyEPS/ver01/ParamClientData.class.php
CHANGED
|
@@ -1,217 +1,217 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
|
| 3 |
-
require_once 'ParamAddress.class.php';
|
| 4 |
-
require_once 'ParamPhoneNumber.class.php';
|
| 5 |
-
|
| 6 |
-
/**
|
| 7 |
-
* Instances of this class are used as a parameter for speedy web service method calls for picking calculation and registration
|
| 8 |
-
*/
|
| 9 |
-
class ParamClientData {
|
| 10 |
-
|
| 11 |
-
/**
|
| 12 |
-
* Client/Partner ID
|
| 13 |
-
* MANDATORY: NO
|
| 14 |
-
* @var integer Signed 64-bit
|
| 15 |
-
*/
|
| 16 |
-
private $_clientId;
|
| 17 |
-
|
| 18 |
-
/**
|
| 19 |
-
* Name of the client (company or private person).
|
| 20 |
-
* Maximum size is 60 symbols.
|
| 21 |
-
* MANDATORY: Must be set <=> clientId is null.
|
| 22 |
-
* @var string
|
| 23 |
-
*/
|
| 24 |
-
private $_partnerName;
|
| 25 |
-
|
| 26 |
-
/**
|
| 27 |
-
* Company department/office.
|
| 28 |
-
* Maximum size is 60 symbols.
|
| 29 |
-
* MANDATORY: Allowed <=> clientId is null.
|
| 30 |
-
* @var string
|
| 31 |
-
*/
|
| 32 |
-
private $_objectName;
|
| 33 |
-
|
| 34 |
-
/**
|
| 35 |
-
* Address details
|
| 36 |
-
* MANDATORY: Required when clientId is null
|
| 37 |
-
* @var ParamAddress
|
| 38 |
-
*/
|
| 39 |
-
private $_address;
|
| 40 |
-
|
| 41 |
-
/**
|
| 42 |
-
* Contact name.
|
| 43 |
-
* Maximum size is 60 symbols.
|
| 44 |
-
* MANDATORY: NO
|
| 45 |
-
* @var string
|
| 46 |
-
*/
|
| 47 |
-
private $_contactName;
|
| 48 |
-
|
| 49 |
-
/**
|
| 50 |
-
* Phone numbers.
|
| 51 |
-
* This list contains maximum 3 phone numbers.
|
| 52 |
-
* MANDATORY: Sender's phone number is always required.
|
| 53 |
-
* Receiver's phone number is required if the shipment is to be delivered on a half-working day or
|
| 54 |
-
* the shipment needs to be delivered the day it has been picked up.
|
| 55 |
-
* ("Required" means at least one valid phone number must be set.)
|
| 56 |
-
* @var array List of ParamPhoneNumber
|
| 57 |
-
*/
|
| 58 |
-
private $_phones;
|
| 59 |
-
|
| 60 |
-
/**
|
| 61 |
-
* Email
|
| 62 |
-
* Maximum size is 256 symbols.
|
| 63 |
-
* MANDATORY: NO
|
| 64 |
-
* @var string
|
| 65 |
-
*
|
| 66 |
-
* @since 2.1.0
|
| 67 |
-
*/
|
| 68 |
-
private $_email;
|
| 69 |
-
|
| 70 |
-
/**
|
| 71 |
-
* Set client/partner ID
|
| 72 |
-
* @param integer $clientId Signed 64-bit
|
| 73 |
-
*/
|
| 74 |
-
public function setClientId($clientId) {
|
| 75 |
-
$this->_clientId = $clientId;
|
| 76 |
-
}
|
| 77 |
-
|
| 78 |
-
/**
|
| 79 |
-
* Get client/partner ID
|
| 80 |
-
* @return integer Signed 64-bit
|
| 81 |
-
*/
|
| 82 |
-
public function getClientId() {
|
| 83 |
-
return $this->_clientId;
|
| 84 |
-
}
|
| 85 |
-
|
| 86 |
-
/**
|
| 87 |
-
* Set name of the client (company or private person).
|
| 88 |
-
* Maximum size is 60 symbols.
|
| 89 |
-
* @param string $partnerName
|
| 90 |
-
*/
|
| 91 |
-
public function setPartnerName($partnerName) {
|
| 92 |
-
$this->_partnerName = $partnerName;
|
| 93 |
-
}
|
| 94 |
-
|
| 95 |
-
/**
|
| 96 |
-
* Get name of the client (company or private person).
|
| 97 |
-
* @return string
|
| 98 |
-
*/
|
| 99 |
-
public function getPartnerName() {
|
| 100 |
-
return $this->_partnerName;
|
| 101 |
-
}
|
| 102 |
-
|
| 103 |
-
/**
|
| 104 |
-
* Set company department/office.
|
| 105 |
-
* Maximum size is 60 symbols.
|
| 106 |
-
* @param string $objectName
|
| 107 |
-
*/
|
| 108 |
-
public function setObjectName($objectName) {
|
| 109 |
-
$this->_objectName = $objectName;
|
| 110 |
-
}
|
| 111 |
-
|
| 112 |
-
/**
|
| 113 |
-
* Get company department/office.
|
| 114 |
-
* @return string
|
| 115 |
-
*/
|
| 116 |
-
public function getObjectName() {
|
| 117 |
-
return $this->_objectName;
|
| 118 |
-
}
|
| 119 |
-
|
| 120 |
-
/**
|
| 121 |
-
* Set address details
|
| 122 |
-
* @param ParamAddress $address
|
| 123 |
-
*/
|
| 124 |
-
public function setAddress($address) {
|
| 125 |
-
$this->_address = $address;
|
| 126 |
-
}
|
| 127 |
-
|
| 128 |
-
/**
|
| 129 |
-
* Get address details
|
| 130 |
-
* @return ParamAddress
|
| 131 |
-
*/
|
| 132 |
-
public function getAddress() {
|
| 133 |
-
return $this->_address;
|
| 134 |
-
}
|
| 135 |
-
|
| 136 |
-
/**
|
| 137 |
-
* Set contact name. Maximum size is 60 symbols.
|
| 138 |
-
* @param string $contactName
|
| 139 |
-
*/
|
| 140 |
-
public function setContactName($contactName) {
|
| 141 |
-
$this->_contactName = $contactName;
|
| 142 |
-
}
|
| 143 |
-
|
| 144 |
-
/**
|
| 145 |
-
* Get contact name.
|
| 146 |
-
* @return string
|
| 147 |
-
*/
|
| 148 |
-
public function getContactName() {
|
| 149 |
-
return $this->_contactName;
|
| 150 |
-
}
|
| 151 |
-
|
| 152 |
-
/**
|
| 153 |
-
* Set phone numbers. This list contains maximum 3 phone numbers.
|
| 154 |
-
* Sender's phone number is always required. Receiver's phone number is required if the shipment is to be delivered on a half-working day or
|
| 155 |
-
* the shipment needs to be delivered the day it has been picked up.
|
| 156 |
-
* ("Required" means at least one valid phone number must be set.)
|
| 157 |
-
* @param array $phones List of ParamPhoneNumber
|
| 158 |
-
*/
|
| 159 |
-
public function setPhones($phones) {
|
| 160 |
-
$this->_phones = $phones;
|
| 161 |
-
}
|
| 162 |
-
|
| 163 |
-
/**
|
| 164 |
-
* Get phone numbers.
|
| 165 |
-
* @return array List of ParamPhoneNumber
|
| 166 |
-
*/
|
| 167 |
-
public function getPhones() {
|
| 168 |
-
return $this->_phones;
|
| 169 |
-
}
|
| 170 |
-
|
| 171 |
-
/**
|
| 172 |
-
* Set email
|
| 173 |
-
* @param string $email Email address to set
|
| 174 |
-
* @since 2.1.0
|
| 175 |
-
*/
|
| 176 |
-
public function setEmail($email) {
|
| 177 |
-
$this->_email = $email;
|
| 178 |
-
}
|
| 179 |
-
|
| 180 |
-
/**
|
| 181 |
-
* Get email
|
| 182 |
-
* @return string Email address
|
| 183 |
-
* @since 2.1.0
|
| 184 |
-
*/
|
| 185 |
-
public function getEmail() {
|
| 186 |
-
return $this->_email;
|
| 187 |
-
}
|
| 188 |
-
|
| 189 |
-
/**
|
| 190 |
-
* Return standard class from this class
|
| 191 |
-
* @return stdClass
|
| 192 |
-
*/
|
| 193 |
-
public function toStdClass() {
|
| 194 |
-
$stdClass = new stdClass();
|
| 195 |
-
$stdClass->clientId = $this->_clientId;
|
| 196 |
-
$stdClass->partnerName = $this->_partnerName;
|
| 197 |
-
$stdClass->objectName = $this->_objectName;
|
| 198 |
-
if (isset($this->_address)) {
|
| 199 |
-
$stdClass->address = $this->_address->toStdClass();
|
| 200 |
-
}
|
| 201 |
-
$stdClass->contactName = $this->_contactName;
|
| 202 |
-
$arrStdClassParamPhoneNumber = array();
|
| 203 |
-
if (isset($this->_phones)) {
|
| 204 |
-
if (is_array($this->_phones)) {
|
| 205 |
-
for($i = 0; $i < count($this->_phones); $i++) {
|
| 206 |
-
$arrStdClassParamPhoneNumber[$i] = $this->_phones[$i]->toStdClass();
|
| 207 |
-
}
|
| 208 |
-
} else {
|
| 209 |
-
$arrStdClassParamPhoneNumber[0] = $this->_phones->toStdClass();
|
| 210 |
-
}
|
| 211 |
-
}
|
| 212 |
-
$stdClass->phones = $arrStdClassParamPhoneNumber;
|
| 213 |
-
$stdClass->email = $this->_email;
|
| 214 |
-
return $stdClass;
|
| 215 |
-
}
|
| 216 |
-
}
|
| 217 |
Â
?>
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
require_once 'ParamAddress.class.php';
|
| 4 |
+
require_once 'ParamPhoneNumber.class.php';
|
| 5 |
+
|
| 6 |
+
/**
|
| 7 |
+
* Instances of this class are used as a parameter for speedy web service method calls for picking calculation and registration
|
| 8 |
+
*/
|
| 9 |
+
class ParamClientData {
|
| 10 |
+
|
| 11 |
+
/**
|
| 12 |
+
* Client/Partner ID
|
| 13 |
+
* MANDATORY: NO
|
| 14 |
+
* @var integer Signed 64-bit
|
| 15 |
+
*/
|
| 16 |
+
private $_clientId;
|
| 17 |
+
|
| 18 |
+
/**
|
| 19 |
+
* Name of the client (company or private person).
|
| 20 |
+
* Maximum size is 60 symbols.
|
| 21 |
+
* MANDATORY: Must be set <=> clientId is null.
|
| 22 |
+
* @var string
|
| 23 |
+
*/
|
| 24 |
+
private $_partnerName;
|
| 25 |
+
|
| 26 |
+
/**
|
| 27 |
+
* Company department/office.
|
| 28 |
+
* Maximum size is 60 symbols.
|
| 29 |
+
* MANDATORY: Allowed <=> clientId is null.
|
| 30 |
+
* @var string
|
| 31 |
+
*/
|
| 32 |
+
private $_objectName;
|
| 33 |
+
|
| 34 |
+
/**
|
| 35 |
+
* Address details
|
| 36 |
+
* MANDATORY: Required when clientId is null
|
| 37 |
+
* @var ParamAddress
|
| 38 |
+
*/
|
| 39 |
+
private $_address;
|
| 40 |
+
|
| 41 |
+
/**
|
| 42 |
+
* Contact name.
|
| 43 |
+
* Maximum size is 60 symbols.
|
| 44 |
+
* MANDATORY: NO
|
| 45 |
+
* @var string
|
| 46 |
+
*/
|
| 47 |
+
private $_contactName;
|
| 48 |
+
|
| 49 |
+
/**
|
| 50 |
+
* Phone numbers.
|
| 51 |
+
* This list contains maximum 3 phone numbers.
|
| 52 |
+
* MANDATORY: Sender's phone number is always required.
|
| 53 |
+
* Receiver's phone number is required if the shipment is to be delivered on a half-working day or
|
| 54 |
+
* the shipment needs to be delivered the day it has been picked up.
|
| 55 |
+
* ("Required" means at least one valid phone number must be set.)
|
| 56 |
+
* @var array List of ParamPhoneNumber
|
| 57 |
+
*/
|
| 58 |
+
private $_phones;
|
| 59 |
+
|
| 60 |
+
/**
|
| 61 |
+
* Email
|
| 62 |
+
* Maximum size is 256 symbols.
|
| 63 |
+
* MANDATORY: NO
|
| 64 |
+
* @var string
|
| 65 |
+
*
|
| 66 |
+
* @since 2.1.0
|
| 67 |
+
*/
|
| 68 |
+
private $_email;
|
| 69 |
+
|
| 70 |
+
/**
|
| 71 |
+
* Set client/partner ID
|
| 72 |
+
* @param integer $clientId Signed 64-bit
|
| 73 |
+
*/
|
| 74 |
+
public function setClientId($clientId) {
|
| 75 |
+
$this->_clientId = $clientId;
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
/**
|
| 79 |
+
* Get client/partner ID
|
| 80 |
+
* @return integer Signed 64-bit
|
| 81 |
+
*/
|
| 82 |
+
public function getClientId() {
|
| 83 |
+
return $this->_clientId;
|
| 84 |
+
}
|
| 85 |
+
|
| 86 |
+
/**
|
| 87 |
+
* Set name of the client (company or private person).
|
| 88 |
+
* Maximum size is 60 symbols.
|
| 89 |
+
* @param string $partnerName
|
| 90 |
+
*/
|
| 91 |
+
public function setPartnerName($partnerName) {
|
| 92 |
+
$this->_partnerName = $partnerName;
|
| 93 |
+
}
|
| 94 |
+
|
| 95 |
+
/**
|
| 96 |
+
* Get name of the client (company or private person).
|
| 97 |
+
* @return string
|
| 98 |
+
*/
|
| 99 |
+
public function getPartnerName() {
|
| 100 |
+
return $this->_partnerName;
|
| 101 |
+
}
|
| 102 |
+
|
| 103 |
+
/**
|
| 104 |
+
* Set company department/office.
|
| 105 |
+
* Maximum size is 60 symbols.
|
| 106 |
+
* @param string $objectName
|
| 107 |
+
*/
|
| 108 |
+
public function setObjectName($objectName) {
|
| 109 |
+
$this->_objectName = $objectName;
|
| 110 |
+
}
|
| 111 |
+
|
| 112 |
+
/**
|
| 113 |
+
* Get company department/office.
|
| 114 |
+
* @return string
|
| 115 |
+
*/
|
| 116 |
+
public function getObjectName() {
|
| 117 |
+
return $this->_objectName;
|
| 118 |
+
}
|
| 119 |
+
|
| 120 |
+
/**
|
| 121 |
+
* Set address details
|
| 122 |
+
* @param ParamAddress $address
|
| 123 |
+
*/
|
| 124 |
+
public function setAddress($address) {
|
| 125 |
+
$this->_address = $address;
|
| 126 |
+
}
|
| 127 |
+
|
| 128 |
+
/**
|
| 129 |
+
* Get address details
|
| 130 |
+
* @return ParamAddress
|
| 131 |
+
*/
|
| 132 |
+
public function getAddress() {
|
| 133 |
+
return $this->_address;
|
| 134 |
+
}
|
| 135 |
+
|
| 136 |
+
/**
|
| 137 |
+
* Set contact name. Maximum size is 60 symbols.
|
| 138 |
+
* @param string $contactName
|
| 139 |
+
*/
|
| 140 |
+
public function setContactName($contactName) {
|
| 141 |
+
$this->_contactName = $contactName;
|
| 142 |
+
}
|
| 143 |
+
|
| 144 |
+
/**
|
| 145 |
+
* Get contact name.
|
| 146 |
+
* @return string
|
| 147 |
+
*/
|
| 148 |
+
public function getContactName() {
|
| 149 |
+
return $this->_contactName;
|
| 150 |
+
}
|
| 151 |
+
|
| 152 |
+
/**
|
| 153 |
+
* Set phone numbers. This list contains maximum 3 phone numbers.
|
| 154 |
+
* Sender's phone number is always required. Receiver's phone number is required if the shipment is to be delivered on a half-working day or
|
| 155 |
+
* the shipment needs to be delivered the day it has been picked up.
|
| 156 |
+
* ("Required" means at least one valid phone number must be set.)
|
| 157 |
+
* @param array $phones List of ParamPhoneNumber
|
| 158 |
+
*/
|
| 159 |
+
public function setPhones($phones) {
|
| 160 |
+
$this->_phones = $phones;
|
| 161 |
+
}
|
| 162 |
+
|
| 163 |
+
/**
|
| 164 |
+
* Get phone numbers.
|
| 165 |
+
* @return array List of ParamPhoneNumber
|
| 166 |
+
*/
|
| 167 |
+
public function getPhones() {
|
| 168 |
+
return $this->_phones;
|
| 169 |
+
}
|
| 170 |
+
|
| 171 |
+
/**
|
| 172 |
+
* Set email
|
| 173 |
+
* @param string $email Email address to set
|
| 174 |
+
* @since 2.1.0
|
| 175 |
+
*/
|
| 176 |
+
public function setEmail($email) {
|
| 177 |
+
$this->_email = $email;
|
| 178 |
+
}
|
| 179 |
+
|
| 180 |
+
/**
|
| 181 |
+
* Get email
|
| 182 |
+
* @return string Email address
|
| 183 |
+
* @since 2.1.0
|
| 184 |
+
*/
|
| 185 |
+
public function getEmail() {
|
| 186 |
+
return $this->_email;
|
| 187 |
+
}
|
| 188 |
+
|
| 189 |
+
/**
|
| 190 |
+
* Return standard class from this class
|
| 191 |
+
* @return stdClass
|
| 192 |
+
*/
|
| 193 |
+
public function toStdClass() {
|
| 194 |
+
$stdClass = new stdClass();
|
| 195 |
+
$stdClass->clientId = $this->_clientId;
|
| 196 |
+
$stdClass->partnerName = $this->_partnerName;
|
| 197 |
+
$stdClass->objectName = $this->_objectName;
|
| 198 |
+
if (isset($this->_address)) {
|
| 199 |
+
$stdClass->address = $this->_address->toStdClass();
|
| 200 |
+
}
|
| 201 |
+
$stdClass->contactName = $this->_contactName;
|
| 202 |
+
$arrStdClassParamPhoneNumber = array();
|
| 203 |
+
if (isset($this->_phones)) {
|
| 204 |
+
if (is_array($this->_phones)) {
|
| 205 |
+
for($i = 0; $i < count($this->_phones); $i++) {
|
| 206 |
+
$arrStdClassParamPhoneNumber[$i] = $this->_phones[$i]->toStdClass();
|
| 207 |
+
}
|
| 208 |
+
} else {
|
| 209 |
+
$arrStdClassParamPhoneNumber[0] = $this->_phones->toStdClass();
|
| 210 |
+
}
|
| 211 |
+
}
|
| 212 |
+
$stdClass->phones = $arrStdClassParamPhoneNumber;
|
| 213 |
+
$stdClass->email = $this->_email;
|
| 214 |
+
return $stdClass;
|
| 215 |
+
}
|
| 216 |
+
}
|
| 217 |
Â
?>
|
lib/SpeedyEPS/ver01/ParamClientSearch.class.php
CHANGED
|
File without changes
|
lib/SpeedyEPS/ver01/ParamFilterCountry.class.php
ADDED
|
@@ -0,0 +1,138 @@
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* Instances of this class are passed as a parameter of Speedy web service calls to filter country searches
|
| 5 |
+
* @since 2.5.0
|
| 6 |
+
*/
|
| 7 |
+
class ParamFilterCountry {
|
| 8 |
+
|
| 9 |
+
/**
|
| 10 |
+
* Country id
|
| 11 |
+
* MANDATORY: NO
|
| 12 |
+
* @var integer Signed 64-bit
|
| 13 |
+
*/
|
| 14 |
+
private $_countryId;
|
| 15 |
+
|
| 16 |
+
/**
|
| 17 |
+
* ISO alpha2 country code
|
| 18 |
+
* MANDATORY: NO
|
| 19 |
+
* @var string
|
| 20 |
+
*/
|
| 21 |
+
private $_isoAlpha2;
|
| 22 |
+
|
| 23 |
+
/**
|
| 24 |
+
* ISO alpha 3 country code
|
| 25 |
+
* MANDATORY: NO
|
| 26 |
+
* @var string
|
| 27 |
+
*/
|
| 28 |
+
private $_isoAlpha3;
|
| 29 |
+
|
| 30 |
+
/**
|
| 31 |
+
* Country name
|
| 32 |
+
* MANDATORY: NO
|
| 33 |
+
* @var string
|
| 34 |
+
*/
|
| 35 |
+
private $_name;
|
| 36 |
+
|
| 37 |
+
/**
|
| 38 |
+
* Search string
|
| 39 |
+
* MANDATORY: NO
|
| 40 |
+
* @var string
|
| 41 |
+
*/
|
| 42 |
+
private $_searchString;
|
| 43 |
+
|
| 44 |
+
/**
|
| 45 |
+
* Gets the country id
|
| 46 |
+
* @return signed integer 64-bit Country Id
|
| 47 |
+
*/
|
| 48 |
+
public function getCountryId() {
|
| 49 |
+
return $this->_countryId;
|
| 50 |
+
}
|
| 51 |
+
|
| 52 |
+
/**
|
| 53 |
+
* Sets the country id
|
| 54 |
+
* @param signed integer 64-bit $countryId Country id
|
| 55 |
+
*/
|
| 56 |
+
public function setCountryId($countryId) {
|
| 57 |
+
$this->_countryId = $countryId;
|
| 58 |
+
}
|
| 59 |
+
|
| 60 |
+
/**
|
| 61 |
+
* Gets the ISO alpha2 code
|
| 62 |
+
* @return string ISO alpha2 code
|
| 63 |
+
*/
|
| 64 |
+
public function getIsoAlpha2() {
|
| 65 |
+
return $this->_isoAlpha2;
|
| 66 |
+
}
|
| 67 |
+
|
| 68 |
+
/**
|
| 69 |
+
* Sets the ISO alpha2 code
|
| 70 |
+
* @param string $isoAlpha2 ISO alpha2 code
|
| 71 |
+
*/
|
| 72 |
+
public function setIsoAlpha2($isoAlpha2) {
|
| 73 |
+
$this->_isoAlpha2 = $isoAlpha2;
|
| 74 |
+
}
|
| 75 |
+
|
| 76 |
+
/**
|
| 77 |
+
* Gets the ISO alpha3 code
|
| 78 |
+
* @return string ISO alpha3 code
|
| 79 |
+
*/
|
| 80 |
+
public function getIsoAlpha3() {
|
| 81 |
+
return $this->_isoAlpha3;
|
| 82 |
+
}
|
| 83 |
+
|
| 84 |
+
/**
|
| 85 |
+
* Sets the ISO alpha3 code
|
| 86 |
+
* @param string $isoAlpha3 ISO alpha3 code
|
| 87 |
+
*/
|
| 88 |
+
public function setIsoAlpha3($isoAlpha3) {
|
| 89 |
+
$this->_isoAlpha3 = $isoAlpha3;
|
| 90 |
+
}
|
| 91 |
+
|
| 92 |
+
/**
|
| 93 |
+
* Gets the country name
|
| 94 |
+
* @return string Country name
|
| 95 |
+
*/
|
| 96 |
+
public function getName() {
|
| 97 |
+
return $this->_name;
|
| 98 |
+
}
|
| 99 |
+
|
| 100 |
+
/**
|
| 101 |
+
* Sets the country name
|
| 102 |
+
* @param string name Country name
|
| 103 |
+
*/
|
| 104 |
+
public function setName($name) {
|
| 105 |
+
$this->_name = $name;
|
| 106 |
+
}
|
| 107 |
+
|
| 108 |
+
/**
|
| 109 |
+
* Gets the search string
|
| 110 |
+
* @return string Search string
|
| 111 |
+
*/
|
| 112 |
+
public function getSearchString() {
|
| 113 |
+
return $this->_searchString;
|
| 114 |
+
}
|
| 115 |
+
|
| 116 |
+
/**
|
| 117 |
+
* Sets the search string
|
| 118 |
+
* @param string searchString Search string
|
| 119 |
+
*/
|
| 120 |
+
public function setSearchString($searchString) {
|
| 121 |
+
$this->_searchString = $searchString;
|
| 122 |
+
}
|
| 123 |
+
|
| 124 |
+
/**
|
| 125 |
+
* Return standard class from this class
|
| 126 |
+
* @return stdClass
|
| 127 |
+
*/
|
| 128 |
+
public function toStdClass() {
|
| 129 |
+
$stdClass = new stdClass();
|
| 130 |
+
$stdClass->countryId = $this->_countryId;
|
| 131 |
+
$stdClass->isoAlpha2 = $this->_isoAlpha2;
|
| 132 |
+
$stdClass->isoAlpha3 = $this->_isoAlpha3;
|
| 133 |
+
$stdClass->name = $this->_name;
|
| 134 |
+
$stdClass->searchString = $this->_searchString;
|
| 135 |
+
return $stdClass;
|
| 136 |
+
}
|
| 137 |
+
}
|
| 138 |
+
?>
|
lib/SpeedyEPS/ver01/ParamFilterSite.class.php
CHANGED
|
@@ -1,136 +1,186 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
/**
|
| 3 |
-
* Instances of this class are used as a parameter to filter Speedy web service site quiery
|
| 4 |
-
*/
|
| 5 |
-
class ParamFilterSite {
|
| 6 |
-
|
| 7 |
-
/**
|
| 8 |
-
* Post code
|
| 9 |
-
* MANDATORY: NO
|
| 10 |
-
* @var string
|
| 11 |
-
*/
|
| 12 |
-
private $_postCode;
|
| 13 |
-
|
| 14 |
-
/**
|
| 15 |
-
* Site name
|
| 16 |
-
* MANDATORY: NO
|
| 17 |
-
* @var string
|
| 18 |
-
*/
|
| 19 |
-
private $_name;
|
| 20 |
-
|
| 21 |
-
/**
|
| 22 |
-
* Site type
|
| 23 |
-
* MANDATORY: NO
|
| 24 |
-
* @var string
|
| 25 |
-
*/
|
| 26 |
-
private $_type;
|
| 27 |
-
|
| 28 |
-
/**
|
| 29 |
-
* Site municipality name
|
| 30 |
-
* MANDATORY: NO
|
| 31 |
-
* @var string
|
| 32 |
-
*/
|
| 33 |
-
private $_municipality;
|
| 34 |
-
|
| 35 |
-
/**
|
| 36 |
-
* Site region name
|
| 37 |
-
* MANDATORY: NO
|
| 38 |
-
* @var string
|
| 39 |
-
*/
|
| 40 |
-
private $_region;
|
| 41 |
-
|
| 42 |
-
/**
|
| 43 |
-
*
|
| 44 |
-
*
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
/**
|
| 51 |
-
*
|
| 52 |
-
*
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
/**
|
| 59 |
-
* Set
|
| 60 |
-
* @param string $
|
| 61 |
-
*/
|
| 62 |
-
public function
|
| 63 |
-
$this->
|
| 64 |
-
}
|
| 65 |
-
|
| 66 |
-
/**
|
| 67 |
-
* Get
|
| 68 |
-
* @return string
|
| 69 |
-
*/
|
| 70 |
-
public function
|
| 71 |
-
return $this->
|
| 72 |
-
}
|
| 73 |
-
|
| 74 |
-
/**
|
| 75 |
-
* Set site
|
| 76 |
-
* @param string $
|
| 77 |
-
*/
|
| 78 |
-
public function
|
| 79 |
-
$this->
|
| 80 |
-
}
|
| 81 |
-
|
| 82 |
-
/**
|
| 83 |
-
* Get site
|
| 84 |
-
* @return string Site
|
| 85 |
-
*/
|
| 86 |
-
public function
|
| 87 |
-
return $this->
|
| 88 |
-
}
|
| 89 |
-
|
| 90 |
-
/**
|
| 91 |
-
* Set site
|
| 92 |
-
* @param string $
|
| 93 |
-
*/
|
| 94 |
-
public function
|
| 95 |
-
$this->
|
| 96 |
-
}
|
| 97 |
-
|
| 98 |
-
/**
|
| 99 |
-
* Get site
|
| 100 |
-
* @return string Site
|
| 101 |
-
*/
|
| 102 |
-
public function
|
| 103 |
-
return $this->
|
| 104 |
-
}
|
| 105 |
-
|
| 106 |
-
/**
|
| 107 |
-
* Set site
|
| 108 |
-
* @param string $
|
| 109 |
-
*/
|
| 110 |
-
public function
|
| 111 |
-
$this->
|
| 112 |
-
}
|
| 113 |
-
|
| 114 |
-
/**
|
| 115 |
-
* Get site
|
| 116 |
-
* @return string Site municipality
|
| 117 |
-
*/
|
| 118 |
-
public function
|
| 119 |
-
return $this->
|
| 120 |
-
}
|
| 121 |
-
|
| 122 |
-
/**
|
| 123 |
-
*
|
| 124 |
-
* @
|
| 125 |
-
*/
|
| 126 |
-
public function
|
| 127 |
-
$
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
| 136 |
Â
?>
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Instances of this class are used as a parameter to filter Speedy web service site quiery
|
| 4 |
+
*/
|
| 5 |
+
class ParamFilterSite {
|
| 6 |
+
|
| 7 |
+
/**
|
| 8 |
+
* Post code
|
| 9 |
+
* MANDATORY: NO
|
| 10 |
+
* @var string
|
| 11 |
+
*/
|
| 12 |
+
private $_postCode;
|
| 13 |
+
|
| 14 |
+
/**
|
| 15 |
+
* Site name
|
| 16 |
+
* MANDATORY: NO
|
| 17 |
+
* @var string
|
| 18 |
+
*/
|
| 19 |
+
private $_name;
|
| 20 |
+
|
| 21 |
+
/**
|
| 22 |
+
* Site type
|
| 23 |
+
* MANDATORY: NO
|
| 24 |
+
* @var string
|
| 25 |
+
*/
|
| 26 |
+
private $_type;
|
| 27 |
+
|
| 28 |
+
/**
|
| 29 |
+
* Site municipality name
|
| 30 |
+
* MANDATORY: NO
|
| 31 |
+
* @var string
|
| 32 |
+
*/
|
| 33 |
+
private $_municipality;
|
| 34 |
+
|
| 35 |
+
/**
|
| 36 |
+
* Site region name
|
| 37 |
+
* MANDATORY: NO
|
| 38 |
+
* @var string
|
| 39 |
+
*/
|
| 40 |
+
private $_region;
|
| 41 |
+
|
| 42 |
+
/**
|
| 43 |
+
* Country id
|
| 44 |
+
* MANDATORY: NO
|
| 45 |
+
* @var integer signed 64-bit
|
| 46 |
+
* @since 2.5.0
|
| 47 |
+
*/
|
| 48 |
+
private $_countryId;
|
| 49 |
+
|
| 50 |
+
/**
|
| 51 |
+
* Search string
|
| 52 |
+
* MANDATORY: NO
|
| 53 |
+
* @var string Search string
|
| 54 |
+
* @since 2.5.0
|
| 55 |
+
*/
|
| 56 |
+
private $_searchString;
|
| 57 |
+
|
| 58 |
+
/**
|
| 59 |
+
* Set post code
|
| 60 |
+
* @param string $postCode
|
| 61 |
+
*/
|
| 62 |
+
public function setPostCode($postCode) {
|
| 63 |
+
$this->_postCode = $postCode;
|
| 64 |
+
}
|
| 65 |
+
|
| 66 |
+
/**
|
| 67 |
+
* Get post code
|
| 68 |
+
* @return string Post code
|
| 69 |
+
*/
|
| 70 |
+
public function getPostCode() {
|
| 71 |
+
return $this->_postCode;
|
| 72 |
+
}
|
| 73 |
+
|
| 74 |
+
/**
|
| 75 |
+
* Set site name
|
| 76 |
+
* @param string $name
|
| 77 |
+
*/
|
| 78 |
+
public function setName($name) {
|
| 79 |
+
$this->_name = $name;
|
| 80 |
+
}
|
| 81 |
+
|
| 82 |
+
/**
|
| 83 |
+
* Get site name
|
| 84 |
+
* @return string Site code
|
| 85 |
+
*/
|
| 86 |
+
public function getName() {
|
| 87 |
+
return $this->_name;
|
| 88 |
+
}
|
| 89 |
+
|
| 90 |
+
/**
|
| 91 |
+
* Set site type
|
| 92 |
+
* @param string $type
|
| 93 |
+
*/
|
| 94 |
+
public function setType($type) {
|
| 95 |
+
$this->_type = $type;
|
| 96 |
+
}
|
| 97 |
+
|
| 98 |
+
/**
|
| 99 |
+
* Get site type
|
| 100 |
+
* @return string Site type
|
| 101 |
+
*/
|
| 102 |
+
public function getType() {
|
| 103 |
+
return $this->_type;
|
| 104 |
+
}
|
| 105 |
+
|
| 106 |
+
/**
|
| 107 |
+
* Set site municipaity
|
| 108 |
+
* @param string $municipality
|
| 109 |
+
*/
|
| 110 |
+
public function setMunicipality($municipality) {
|
| 111 |
+
$this->_municipality = $municipality;
|
| 112 |
+
}
|
| 113 |
+
|
| 114 |
+
/**
|
| 115 |
+
* Get site municipaity
|
| 116 |
+
* @return string Site municipality
|
| 117 |
+
*/
|
| 118 |
+
public function getMunicipality() {
|
| 119 |
+
return $this->_municipality;
|
| 120 |
+
}
|
| 121 |
+
|
| 122 |
+
/**
|
| 123 |
+
* Set site region
|
| 124 |
+
* @param string $region
|
| 125 |
+
*/
|
| 126 |
+
public function setRegion($region) {
|
| 127 |
+
$this->_region = $region;
|
| 128 |
+
}
|
| 129 |
+
|
| 130 |
+
/**
|
| 131 |
+
* Get site region
|
| 132 |
+
* @return string Site municipality
|
| 133 |
+
*/
|
| 134 |
+
public function getRegion() {
|
| 135 |
+
return $this->_region;
|
| 136 |
+
}
|
| 137 |
+
|
| 138 |
+
/**
|
| 139 |
+
* Set country id
|
| 140 |
+
* @param integer signed 64-bit $countryId
|
| 141 |
+
*/
|
| 142 |
+
public function setCountryId($countryId) {
|
| 143 |
+
$this->_countryId = $countryId;
|
| 144 |
+
}
|
| 145 |
+
|
| 146 |
+
/**
|
| 147 |
+
* Get country id
|
| 148 |
+
* @return integer signed 64-bit Country id
|
| 149 |
+
*/
|
| 150 |
+
public function getCountryId() {
|
| 151 |
+
return $this->_countryId;
|
| 152 |
+
}
|
| 153 |
+
|
| 154 |
+
/**
|
| 155 |
+
* Set search string
|
| 156 |
+
* @param string $searchString
|
| 157 |
+
*/
|
| 158 |
+
public function setSearchString($searchString) {
|
| 159 |
+
$this->_searchString = $searchString;
|
| 160 |
+
}
|
| 161 |
+
|
| 162 |
+
/**
|
| 163 |
+
* Get search string
|
| 164 |
+
* @return string Search string
|
| 165 |
+
*/
|
| 166 |
+
public function getSearchString() {
|
| 167 |
+
return $this->_searchString;
|
| 168 |
+
}
|
| 169 |
+
|
| 170 |
+
/**
|
| 171 |
+
* Return standard class from this class
|
| 172 |
+
* @return stdClass
|
| 173 |
+
*/
|
| 174 |
+
public function toStdClass() {
|
| 175 |
+
$stdClass = new stdClass();
|
| 176 |
+
$stdClass->postCode = $this->_postCode;
|
| 177 |
+
$stdClass->name = $this->_name;
|
| 178 |
+
$stdClass->type = $this->_type;
|
| 179 |
+
$stdClass->municipality = $this->_municipality;
|
| 180 |
+
$stdClass->region = $this->_region;
|
| 181 |
+
$stdClass->searchString = $this->_searchString;
|
| 182 |
+
$stdClass->countryId = $this->_countryId;
|
| 183 |
+
return $stdClass;
|
| 184 |
+
}
|
| 185 |
+
}
|
| 186 |
Â
?>
|
lib/SpeedyEPS/ver01/ParamLanguage.class.php
CHANGED
|
File without changes
|
lib/SpeedyEPS/ver01/ParamOptionsBeforePayment.class.php
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* Instances of this class are used as parameters to specify picking options before payment
|
| 5 |
+
* @since 2.3.0
|
| 6 |
+
*/
|
| 7 |
+
class ParamOptionsBeforePayment {
|
| 8 |
+
|
| 9 |
+
/**
|
| 10 |
+
* Open before payment option
|
| 11 |
+
* MANDATORY: NO
|
| 12 |
+
* @var boolean Flag
|
| 13 |
+
*/
|
| 14 |
+
private $_open;
|
| 15 |
+
|
| 16 |
+
/**
|
| 17 |
+
* Test before payment option
|
| 18 |
+
* MANDATORY: NO
|
| 19 |
+
* @var boolean Flag
|
| 20 |
+
*/
|
| 21 |
+
private $_test;
|
| 22 |
+
|
| 23 |
+
/**
|
| 24 |
+
* Set open option before payment flag
|
| 25 |
+
* @param boolean $open Open option before payment flag
|
| 26 |
+
*/
|
| 27 |
+
public function setOpen($open) {
|
| 28 |
+
$this->_open = $open;
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
/**
|
| 32 |
+
* Get open option before payment flag
|
| 33 |
+
* @return boolean Open option before payment flag
|
| 34 |
+
*/
|
| 35 |
+
public function isOpen() {
|
| 36 |
+
return $this->_open;
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
/**
|
| 40 |
+
* Set test option before payment flag
|
| 41 |
+
* @param boolean $test Test option before payment flag
|
| 42 |
+
*/
|
| 43 |
+
public function setTest($test) {
|
| 44 |
+
$this->_test = $test;
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
/**
|
| 48 |
+
* Get test option before payment flag
|
| 49 |
+
* @return boolean test option before payment flag
|
| 50 |
+
*/
|
| 51 |
+
public function isTest() {
|
| 52 |
+
return $this->_test;
|
| 53 |
+
}
|
| 54 |
+
|
| 55 |
+
/**
|
| 56 |
+
* Return standard class from this class
|
| 57 |
+
* @return stdClass
|
| 58 |
+
*/
|
| 59 |
+
public function toStdClass() {
|
| 60 |
+
$stdClass = new stdClass();
|
| 61 |
+
$stdClass->open = $this->_open;
|
| 62 |
+
$stdClass->test = $this->_test;
|
| 63 |
+
return $stdClass;
|
| 64 |
+
}
|
| 65 |
+
}
|
| 66 |
+
?>
|
lib/SpeedyEPS/ver01/ParamOrder.class.php
CHANGED
|
File without changes
|
lib/SpeedyEPS/ver01/ParamPDF.class.php
CHANGED
|
File without changes
|
lib/SpeedyEPS/ver01/ParamPackings.class.php
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* Instances of this class are used as parameters to specify packing type and quantity
|
| 5 |
+
* @since 2.3.0
|
| 6 |
+
*/
|
| 7 |
+
class ParamPackings {
|
| 8 |
+
|
| 9 |
+
/**
|
| 10 |
+
* The number of packings
|
| 11 |
+
* MANDATORY: YES
|
| 12 |
+
* @var signed 32-bit integer
|
| 13 |
+
*/
|
| 14 |
+
protected $_count;
|
| 15 |
+
|
| 16 |
+
/**
|
| 17 |
+
* Packing id
|
| 18 |
+
* MANDATORY: YES
|
| 19 |
+
* @var signed 64-bit integer
|
| 20 |
+
*/
|
| 21 |
+
protected $_packingId;
|
| 22 |
+
|
| 23 |
+
/**
|
| 24 |
+
* Set the number of packings
|
| 25 |
+
* @param signed 32-bit integer $count The number of packings
|
| 26 |
+
*/
|
| 27 |
+
public function setCount($count) {
|
| 28 |
+
$this->_count = $count;
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
/**
|
| 32 |
+
* Get the number of packings
|
| 33 |
+
* @return signed 32-bit integer The number of packings
|
| 34 |
+
*/
|
| 35 |
+
public function getCount() {
|
| 36 |
+
return $this->_count;
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
/**
|
| 40 |
+
* Set the packing id
|
| 41 |
+
* @param signed 32-bit integer $packingId The packing id
|
| 42 |
+
*/
|
| 43 |
+
public function setPackingId($packingId) {
|
| 44 |
+
$this->_packingId = $packingId;
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
/**
|
| 48 |
+
* Get the packing id
|
| 49 |
+
* @return signed 32-bit integer The packing id
|
| 50 |
+
*/
|
| 51 |
+
public function getPackingId() {
|
| 52 |
+
return $this->_packingId;
|
| 53 |
+
}
|
| 54 |
+
|
| 55 |
+
/**
|
| 56 |
+
* Return standard class from this class
|
| 57 |
+
* @return stdClass
|
| 58 |
+
*/
|
| 59 |
+
public function toStdClass() {
|
| 60 |
+
$stdClass = new stdClass();
|
| 61 |
+
$stdClass->count = $this->_count;
|
| 62 |
+
$stdClass->packingId = $this->_packingId;
|
| 63 |
+
return $stdClass;
|
| 64 |
+
}
|
| 65 |
+
}
|
| 66 |
+
?>
|
lib/SpeedyEPS/ver01/ParamParcel.class.php
CHANGED
|
@@ -1,141 +1,166 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
|
| 3 |
-
require_once 'Size.class.php';
|
| 4 |
-
|
| 5 |
-
/**
|
| 6 |
-
* Inctances of this class are used as a paremeter to add parcels to pickings
|
| 7 |
-
*/
|
| 8 |
-
class ParamParcel {
|
| 9 |
-
|
| 10 |
-
/**
|
| 11 |
-
* The BOL to which the parcel is to be added
|
| 12 |
-
* MANDATORY: YES
|
| 13 |
-
* @var integer signed 64-bit
|
| 14 |
-
*/
|
| 15 |
-
private $_billOfLading;
|
| 16 |
-
|
| 17 |
-
/**
|
| 18 |
-
* Parcel ID (if empty, the server will generate one)
|
| 19 |
-
* MANDATORY: NO
|
| 20 |
-
* @var integer signed 64-bit
|
| 21 |
-
*/
|
| 22 |
-
private $_parcelId;
|
| 23 |
-
|
| 24 |
-
/**
|
| 25 |
-
* Packing ID
|
| 26 |
-
* MANDATORY: NO
|
| 27 |
-
* @var integer Signed 64-bit
|
| 28 |
-
*/
|
| 29 |
-
private $_packId;
|
| 30 |
-
|
| 31 |
-
/**
|
| 32 |
-
* Real weight (kg)
|
| 33 |
-
* MANDATORY: YES
|
| 34 |
-
* @var double Signed 64-bit
|
| 35 |
-
*/
|
| 36 |
-
private $_weight;
|
| 37 |
-
|
| 38 |
-
/**
|
| 39 |
-
* Parcel size
|
| 40 |
-
* MANDATORY: NO
|
| 41 |
-
* @var Size
|
| 42 |
-
*/
|
| 43 |
-
private $_size;
|
| 44 |
-
|
| 45 |
-
/**
|
| 46 |
-
*
|
| 47 |
-
*
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
/**
|
| 54 |
-
*
|
| 55 |
-
* @
|
| 56 |
-
*/
|
| 57 |
-
public function
|
| 58 |
-
|
| 59 |
-
}
|
| 60 |
-
|
| 61 |
-
/**
|
| 62 |
-
*
|
| 63 |
-
* @
|
| 64 |
-
*/
|
| 65 |
-
public function
|
| 66 |
-
$this->
|
| 67 |
-
}
|
| 68 |
-
|
| 69 |
-
/**
|
| 70 |
-
*
|
| 71 |
-
* @
|
| 72 |
-
*/
|
| 73 |
-
public function
|
| 74 |
-
|
| 75 |
-
}
|
| 76 |
-
|
| 77 |
-
/**
|
| 78 |
-
*
|
| 79 |
-
* @
|
| 80 |
-
*/
|
| 81 |
-
public function
|
| 82 |
-
$this->
|
| 83 |
-
}
|
| 84 |
-
|
| 85 |
-
/**
|
| 86 |
-
*
|
| 87 |
-
* @
|
| 88 |
-
*/
|
| 89 |
-
public function
|
| 90 |
-
|
| 91 |
-
}
|
| 92 |
-
|
| 93 |
-
/**
|
| 94 |
-
*
|
| 95 |
-
* @
|
| 96 |
-
*/
|
| 97 |
-
public function
|
| 98 |
-
$this->
|
| 99 |
-
}
|
| 100 |
-
|
| 101 |
-
/**
|
| 102 |
-
*
|
| 103 |
-
* @
|
| 104 |
-
*/
|
| 105 |
-
public function
|
| 106 |
-
|
| 107 |
-
}
|
| 108 |
-
|
| 109 |
-
/**
|
| 110 |
-
*
|
| 111 |
-
* @
|
| 112 |
-
*/
|
| 113 |
-
public function
|
| 114 |
-
$this->
|
| 115 |
-
}
|
| 116 |
-
|
| 117 |
-
/**
|
| 118 |
-
*
|
| 119 |
-
* @
|
| 120 |
-
*/
|
| 121 |
-
public function
|
| 122 |
-
|
| 123 |
-
}
|
| 124 |
-
|
| 125 |
-
/**
|
| 126 |
-
*
|
| 127 |
-
* @return
|
| 128 |
-
*/
|
| 129 |
-
public function
|
| 130 |
-
$
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
}
|
| 140 |
-
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
| 141 |
Â
?>
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
require_once 'Size.class.php';
|
| 4 |
+
|
| 5 |
+
/**
|
| 6 |
+
* Inctances of this class are used as a paremeter to add parcels to pickings
|
| 7 |
+
*/
|
| 8 |
+
class ParamParcel {
|
| 9 |
+
|
| 10 |
+
/**
|
| 11 |
+
* The BOL to which the parcel is to be added
|
| 12 |
+
* MANDATORY: YES
|
| 13 |
+
* @var integer signed 64-bit
|
| 14 |
+
*/
|
| 15 |
+
private $_billOfLading;
|
| 16 |
+
|
| 17 |
+
/**
|
| 18 |
+
* Parcel ID (if empty, the server will generate one)
|
| 19 |
+
* MANDATORY: NO
|
| 20 |
+
* @var integer signed 64-bit
|
| 21 |
+
*/
|
| 22 |
+
private $_parcelId;
|
| 23 |
+
|
| 24 |
+
/**
|
| 25 |
+
* Packing ID
|
| 26 |
+
* MANDATORY: NO
|
| 27 |
+
* @var integer Signed 64-bit
|
| 28 |
+
*/
|
| 29 |
+
private $_packId;
|
| 30 |
+
|
| 31 |
+
/**
|
| 32 |
+
* Real weight (kg)
|
| 33 |
+
* MANDATORY: YES
|
| 34 |
+
* @var double Signed 64-bit
|
| 35 |
+
*/
|
| 36 |
+
private $_weight;
|
| 37 |
+
|
| 38 |
+
/**
|
| 39 |
+
* Parcel size
|
| 40 |
+
* MANDATORY: NO
|
| 41 |
+
* @var Size
|
| 42 |
+
*/
|
| 43 |
+
private $_size;
|
| 44 |
+
|
| 45 |
+
/**
|
| 46 |
+
* Foreign parcel number
|
| 47 |
+
* MANDATORY: NO
|
| 48 |
+
* @var string
|
| 49 |
+
* @since 2.5.0
|
| 50 |
+
*/
|
| 51 |
+
private $_foreignParcelNumber;
|
| 52 |
+
|
| 53 |
+
/**
|
| 54 |
+
* Set BOL number
|
| 55 |
+
* @param integer $billOfLading Signed 64-bit
|
| 56 |
+
*/
|
| 57 |
+
public function setBillOfLading($billOfLading) {
|
| 58 |
+
$this->_billOfLading = $billOfLading;
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
/**
|
| 62 |
+
* Get BOL number
|
| 63 |
+
* @return integer Signed 64-bit
|
| 64 |
+
*/
|
| 65 |
+
public function getBillOfLading() {
|
| 66 |
+
return $this->_billOfLading;
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
/**
|
| 70 |
+
* Set parcel ID (if empty, the server will generate one)
|
| 71 |
+
* @param integer $parcelId Signed 64-bit
|
| 72 |
+
*/
|
| 73 |
+
public function setParcelId($parcelId) {
|
| 74 |
+
$this->_parcelId = $parcelId;
|
| 75 |
+
}
|
| 76 |
+
|
| 77 |
+
/**
|
| 78 |
+
* Get parcel ID
|
| 79 |
+
* @return integer Signed 64-bit
|
| 80 |
+
*/
|
| 81 |
+
public function getParcelId() {
|
| 82 |
+
return $this->_parcelId;
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
/**
|
| 86 |
+
* Set packing ID
|
| 87 |
+
* @param integer $packId Signed 64-bit
|
| 88 |
+
*/
|
| 89 |
+
public function setPackId($packId) {
|
| 90 |
+
$this->_packId = $packId;
|
| 91 |
+
}
|
| 92 |
+
|
| 93 |
+
/**
|
| 94 |
+
* Get packing ID
|
| 95 |
+
* @return integer Signed 64-bit
|
| 96 |
+
*/
|
| 97 |
+
public function getPackId() {
|
| 98 |
+
return $this->_packId;
|
| 99 |
+
}
|
| 100 |
+
|
| 101 |
+
/**
|
| 102 |
+
* Set real weight
|
| 103 |
+
* @param double $weight Signed 64-bit
|
| 104 |
+
*/
|
| 105 |
+
public function setWeight($weight) {
|
| 106 |
+
$this->_weight = $weight;
|
| 107 |
+
}
|
| 108 |
+
|
| 109 |
+
/**
|
| 110 |
+
* Get real weight
|
| 111 |
+
* @return double Signed 64-bit
|
| 112 |
+
*/
|
| 113 |
+
public function getWeight() {
|
| 114 |
+
return $this->_weight;
|
| 115 |
+
}
|
| 116 |
+
|
| 117 |
+
/**
|
| 118 |
+
* Set parcel size
|
| 119 |
+
* @param Size $size
|
| 120 |
+
*/
|
| 121 |
+
public function setSize($size) {
|
| 122 |
+
$this->_size = $size;
|
| 123 |
+
}
|
| 124 |
+
|
| 125 |
+
/**
|
| 126 |
+
* Get parcel size
|
| 127 |
+
* @return Size
|
| 128 |
+
*/
|
| 129 |
+
public function getSize() {
|
| 130 |
+
return $this->_size;
|
| 131 |
+
}
|
| 132 |
+
|
| 133 |
+
/**
|
| 134 |
+
* Set foreign parcel number
|
| 135 |
+
* @param string $foreignParcelNumber
|
| 136 |
+
*/
|
| 137 |
+
public function setForeignParcelNumber($foreignParcelNumber) {
|
| 138 |
+
$this->_foreignParcelNumber = $foreignParcelNumber;
|
| 139 |
+
}
|
| 140 |
+
|
| 141 |
+
/**
|
| 142 |
+
* Get foreign parcel number
|
| 143 |
+
* @return string
|
| 144 |
+
*/
|
| 145 |
+
public function getForeignParcelNumber() {
|
| 146 |
+
return $this->_foreignParcelNumber;
|
| 147 |
+
}
|
| 148 |
+
|
| 149 |
+
/**
|
| 150 |
+
* Return standard class from this class
|
| 151 |
+
* @return stdClass
|
| 152 |
+
*/
|
| 153 |
+
public function toStdClass() {
|
| 154 |
+
$stdClass = new stdClass();
|
| 155 |
+
$stdClass->billOfLading = $this->_billOfLading;
|
| 156 |
+
$stdClass->parcelId = $this->_parcelId;
|
| 157 |
+
$stdClass->packId = $this->_packId;
|
| 158 |
+
$stdClass->weight = $this->_weight;
|
| 159 |
+
if (isset($this->_size)) {
|
| 160 |
+
$stdClass->size = $this->_size->toStdClass();
|
| 161 |
+
}
|
| 162 |
+
$stdClass->foreignParcelNumber = $this->_foreignParcelNumber;
|
| 163 |
+
return $stdClass;
|
| 164 |
+
}
|
| 165 |
+
}
|
| 166 |
Â
?>
|
lib/SpeedyEPS/ver01/ParamParcelInfo.class.php
CHANGED
|
@@ -1,88 +1,171 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
*
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
*
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
*
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
*
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
*
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
| 88 |
Â
?>
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
require_once 'Size.class.php';
|
| 4 |
+
|
| 5 |
+
/**
|
| 6 |
+
* Instances of this class are used as parameters in web service calls for picking calculation and registration
|
| 7 |
+
*/
|
| 8 |
+
class ParamParcelInfo {
|
| 9 |
+
|
| 10 |
+
/**
|
| 11 |
+
* Parcel's serial number (2, 3, ...)
|
| 12 |
+
* MANDATORY: YES
|
| 13 |
+
* @var integer Signed 32-bit
|
| 14 |
+
*/
|
| 15 |
+
private $_seqNo;
|
| 16 |
+
|
| 17 |
+
/**
|
| 18 |
+
* Parcel ID
|
| 19 |
+
* MANDATORY: YES
|
| 20 |
+
* @var integer Signed 64-bit
|
| 21 |
+
*/
|
| 22 |
+
private $_parcelId;
|
| 23 |
+
|
| 24 |
+
/**
|
| 25 |
+
* Packing ID
|
| 26 |
+
* MANDATORY: NO
|
| 27 |
+
* @var integer Signed 64-bit
|
| 28 |
+
*/
|
| 29 |
+
private $_packId;
|
| 30 |
+
|
| 31 |
+
/**
|
| 32 |
+
* Parcel size
|
| 33 |
+
* MANDATORY: if pallet service is specified
|
| 34 |
+
* @since 2.3.0
|
| 35 |
+
*/
|
| 36 |
+
private $_size;
|
| 37 |
+
|
| 38 |
+
/**
|
| 39 |
+
* Parcel weight
|
| 40 |
+
* MANDATORY: if pallet service is specified
|
| 41 |
+
* @since 2.3.0
|
| 42 |
+
*/
|
| 43 |
+
private $_weight;
|
| 44 |
+
|
| 45 |
+
/**
|
| 46 |
+
* Foreign parcel number
|
| 47 |
+
* MANDATORY: NO
|
| 48 |
+
* @var string
|
| 49 |
+
* @since 2.5.0
|
| 50 |
+
*/
|
| 51 |
+
private $_foreignParcelNumber;
|
| 52 |
+
|
| 53 |
+
/**
|
| 54 |
+
* Set parcel's serial number (2, 3, ...)
|
| 55 |
+
* @param integer $seqNo Signed 32-bit
|
| 56 |
+
*/
|
| 57 |
+
public function setSeqNo($seqNo) {
|
| 58 |
+
$this->_seqNo = $seqNo;
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
/**
|
| 62 |
+
* Get parcel's serial number
|
| 63 |
+
* @return integer Signed 32-bit
|
| 64 |
+
*/
|
| 65 |
+
public function getSeqNo() {
|
| 66 |
+
return $this->_seqNo;
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
/**
|
| 70 |
+
* Set parcel ID
|
| 71 |
+
* @param integer $parcelId Signed 64-bit
|
| 72 |
+
*/
|
| 73 |
+
public function setParcelId($parcelId) {
|
| 74 |
+
$this->_parcelId = $parcelId;
|
| 75 |
+
}
|
| 76 |
+
|
| 77 |
+
/**
|
| 78 |
+
* Get parcel ID
|
| 79 |
+
* @return integer Signed 64-bit
|
| 80 |
+
*/
|
| 81 |
+
public function getParcelId() {
|
| 82 |
+
return $this->_parcelId;
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
/**
|
| 86 |
+
* Set packing ID
|
| 87 |
+
* @param integer $packId Signed 64-bit
|
| 88 |
+
*/
|
| 89 |
+
public function setPackId($packId) {
|
| 90 |
+
$this->_packId = $packId;
|
| 91 |
+
}
|
| 92 |
+
|
| 93 |
+
/**
|
| 94 |
+
* Get packing ID
|
| 95 |
+
* @return integer Signed 64-bit
|
| 96 |
+
*/
|
| 97 |
+
public function getPackId() {
|
| 98 |
+
return $this->_packId;
|
| 99 |
+
}
|
| 100 |
+
|
| 101 |
+
/**
|
| 102 |
+
* Gets the parcel's size
|
| 103 |
+
* @return Parcel's size
|
| 104 |
+
* @since 2.3.0
|
| 105 |
+
*/
|
| 106 |
+
public function getSize() {
|
| 107 |
+
return $this->_size;
|
| 108 |
+
}
|
| 109 |
+
|
| 110 |
+
/**
|
| 111 |
+
* Sets parcel's size
|
| 112 |
+
* @param Size $size Parcel's size
|
| 113 |
+
* @since 2.3.0
|
| 114 |
+
*/
|
| 115 |
+
public function setSize($size) {
|
| 116 |
+
$this->_size = $size;
|
| 117 |
+
}
|
| 118 |
+
|
| 119 |
+
/**
|
| 120 |
+
* Gets the parcel's weight
|
| 121 |
+
* @return Parcel's weight
|
| 122 |
+
* @since 2.3.0
|
| 123 |
+
*/
|
| 124 |
+
public function getWeight() {
|
| 125 |
+
return $this->_weight;
|
| 126 |
+
}
|
| 127 |
+
|
| 128 |
+
/**
|
| 129 |
+
* Sets parcel's weight
|
| 130 |
+
* @param double $weight Parcel's weight
|
| 131 |
+
* @since 2.3.0
|
| 132 |
+
*/
|
| 133 |
+
public function setWeight($weight) {
|
| 134 |
+
$this->_weight = $weight;
|
| 135 |
+
}
|
| 136 |
+
|
| 137 |
+
/**
|
| 138 |
+
* Set foreign parcel number
|
| 139 |
+
* @param string $foreignParcelNumber
|
| 140 |
+
*/
|
| 141 |
+
public function setForeignParcelNumber($foreignParcelNumber) {
|
| 142 |
+
$this->_foreignParcelNumber = $foreignParcelNumber;
|
| 143 |
+
}
|
| 144 |
+
|
| 145 |
+
/**
|
| 146 |
+
* Get foreign parcel number
|
| 147 |
+
* @return string
|
| 148 |
+
*/
|
| 149 |
+
public function getForeignParcelNumber() {
|
| 150 |
+
return $this->_foreignParcelNumber;
|
| 151 |
+
}
|
| 152 |
+
|
| 153 |
+
/**
|
| 154 |
+
* Return standard class from this class
|
| 155 |
+
* @return stdClass
|
| 156 |
+
*/
|
| 157 |
+
public function toStdClass() {
|
| 158 |
+
$stdClass = new stdClass();
|
| 159 |
+
$stdClass->seqNo = $this->_seqNo;
|
| 160 |
+
$stdClass->parcelId = $this->_parcelId;
|
| 161 |
+
$stdClass->packId = $this->_packId;
|
| 162 |
+
$stdClass->size = $this->_size;
|
| 163 |
+
if (isset($this->_size)) {
|
| 164 |
+
$stdClass->size = $this->_size->toStdClass();
|
| 165 |
+
}
|
| 166 |
+
$stdClass->weight = $this->_weight;
|
| 167 |
+
$stdClass->foreignParcelNumber = $this->_foreignParcelNumber;
|
| 168 |
+
return $stdClass;
|
| 169 |
+
}
|
| 170 |
+
}
|
| 171 |
Â
?>
|
lib/SpeedyEPS/ver01/ParamPhoneNumber.class.php
CHANGED
|
File without changes
|
lib/SpeedyEPS/ver01/ParamPicking.class.php
CHANGED
|
@@ -1,1000 +1,1233 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
|
| 3 |
-
require_once 'Size.class.php';
|
| 4 |
-
require_once 'ParamClientData.class.php';
|
| 5 |
-
require_once 'FixedDiscountCardId.class.php';
|
| 6 |
-
require_once 'ParamParcelInfo.class.php';
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
*
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
*
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
*
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
*
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
*
|
| 86 |
-
*
|
| 87 |
-
* @var
|
| 88 |
-
*/
|
| 89 |
-
private $
|
| 90 |
-
|
| 91 |
-
/**
|
| 92 |
-
*
|
| 93 |
-
*
|
| 94 |
-
*
|
| 95 |
-
* @
|
| 96 |
-
*/
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
/**
|
| 100 |
-
*
|
| 101 |
-
*
|
| 102 |
-
*
|
| 103 |
-
*
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
*
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
*
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
*
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
*
|
| 138 |
-
*
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
*
|
| 146 |
-
*
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
*
|
| 153 |
-
*
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
*
|
| 160 |
-
*
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
*
|
| 167 |
-
* MANDATORY: YES
|
| 168 |
-
* @var
|
| 169 |
-
*/
|
| 170 |
-
private $
|
| 171 |
-
|
| 172 |
-
/**
|
| 173 |
-
*
|
| 174 |
-
* MANDATORY: YES
|
| 175 |
-
* @var
|
| 176 |
-
*/
|
| 177 |
-
private $
|
| 178 |
-
|
| 179 |
-
/**
|
| 180 |
-
*
|
| 181 |
-
* MANDATORY: YES
|
| 182 |
-
* @var
|
| 183 |
-
*/
|
| 184 |
-
private $
|
| 185 |
-
|
| 186 |
-
/**
|
| 187 |
-
* Data for
|
| 188 |
-
* MANDATORY:
|
| 189 |
-
* @var
|
| 190 |
-
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
|
| 195 |
-
*
|
| 196 |
-
*
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
|
| 202 |
-
*
|
| 203 |
-
*
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
|
| 207 |
-
|
| 208 |
-
|
| 209 |
-
*
|
| 210 |
-
*
|
| 211 |
-
|
| 212 |
-
|
| 213 |
-
|
| 214 |
-
|
| 215 |
-
|
| 216 |
-
*
|
| 217 |
-
*
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
*
|
| 224 |
-
*
|
| 225 |
-
|
| 226 |
-
|
| 227 |
-
|
| 228 |
-
|
| 229 |
-
|
| 230 |
-
*
|
| 231 |
-
*
|
| 232 |
-
|
| 233 |
-
|
| 234 |
-
|
| 235 |
-
|
| 236 |
-
|
| 237 |
-
*
|
| 238 |
-
*
|
| 239 |
-
|
| 240 |
-
|
| 241 |
-
|
| 242 |
-
|
| 243 |
-
|
| 244 |
-
*
|
| 245 |
-
*
|
| 246 |
-
*
|
| 247 |
-
|
| 248 |
-
|
| 249 |
-
|
| 250 |
-
|
| 251 |
-
|
| 252 |
-
*
|
| 253 |
-
*
|
| 254 |
-
|
| 255 |
-
|
| 256 |
-
|
| 257 |
-
|
| 258 |
-
|
| 259 |
-
|
| 260 |
-
*
|
| 261 |
-
*
|
| 262 |
-
|
| 263 |
-
|
| 264 |
-
|
| 265 |
-
|
| 266 |
-
|
| 267 |
-
|
| 268 |
-
*
|
| 269 |
-
|
| 270 |
-
|
| 271 |
-
|
| 272 |
-
|
| 273 |
-
|
| 274 |
-
|
| 275 |
-
|
| 276 |
-
*
|
| 277 |
-
|
| 278 |
-
|
| 279 |
-
|
| 280 |
-
|
| 281 |
-
|
| 282 |
-
|
| 283 |
-
|
| 284 |
-
|
| 285 |
-
|
| 286 |
-
|
| 287 |
-
|
| 288 |
-
*
|
| 289 |
-
|
| 290 |
-
|
| 291 |
-
|
| 292 |
-
|
| 293 |
-
|
| 294 |
-
|
| 295 |
-
*
|
| 296 |
-
|
| 297 |
-
|
| 298 |
-
|
| 299 |
-
|
| 300 |
-
|
| 301 |
-
|
| 302 |
-
|
| 303 |
-
|
| 304 |
-
|
| 305 |
-
|
| 306 |
-
|
| 307 |
-
*
|
| 308 |
-
|
| 309 |
-
|
| 310 |
-
|
| 311 |
-
|
| 312 |
-
|
| 313 |
-
|
| 314 |
-
|
| 315 |
-
*
|
| 316 |
-
|
| 317 |
-
|
| 318 |
-
|
| 319 |
-
|
| 320 |
-
|
| 321 |
-
|
| 322 |
-
|
| 323 |
-
*
|
| 324 |
-
|
| 325 |
-
|
| 326 |
-
|
| 327 |
-
|
| 328 |
-
|
| 329 |
-
|
| 330 |
-
|
| 331 |
-
*
|
| 332 |
-
|
| 333 |
-
|
| 334 |
-
|
| 335 |
-
|
| 336 |
-
|
| 337 |
-
|
| 338 |
-
|
| 339 |
-
*
|
| 340 |
-
* @
|
| 341 |
-
*/
|
| 342 |
-
|
| 343 |
-
|
| 344 |
-
|
| 345 |
-
|
| 346 |
-
|
| 347 |
-
*
|
| 348 |
-
|
| 349 |
-
|
| 350 |
-
|
| 351 |
-
|
| 352 |
-
|
| 353 |
-
|
| 354 |
-
|
| 355 |
-
|
| 356 |
-
|
| 357 |
-
|
| 358 |
-
|
| 359 |
-
|
| 360 |
-
|
| 361 |
-
|
| 362 |
-
|
| 363 |
-
|
| 364 |
-
|
| 365 |
-
|
| 366 |
-
|
| 367 |
-
|
| 368 |
-
|
| 369 |
-
|
| 370 |
-
|
| 371 |
-
|
| 372 |
-
|
| 373 |
-
|
| 374 |
-
|
| 375 |
-
|
| 376 |
-
|
| 377 |
-
|
| 378 |
-
|
| 379 |
-
|
| 380 |
-
|
| 381 |
-
|
| 382 |
-
|
| 383 |
-
|
| 384 |
-
|
| 385 |
-
|
| 386 |
-
|
| 387 |
-
|
| 388 |
-
|
| 389 |
-
|
| 390 |
-
|
| 391 |
-
|
| 392 |
-
|
| 393 |
-
|
| 394 |
-
|
| 395 |
-
|
| 396 |
-
|
| 397 |
-
|
| 398 |
-
|
| 399 |
-
|
| 400 |
-
|
| 401 |
-
|
| 402 |
-
|
| 403 |
-
|
| 404 |
-
|
| 405 |
-
|
| 406 |
-
|
| 407 |
-
|
| 408 |
-
|
| 409 |
-
|
| 410 |
-
|
| 411 |
-
|
| 412 |
-
|
| 413 |
-
|
| 414 |
-
|
| 415 |
-
|
| 416 |
-
|
| 417 |
-
|
| 418 |
-
|
| 419 |
-
|
| 420 |
-
|
| 421 |
-
|
| 422 |
-
|
| 423 |
-
|
| 424 |
-
|
| 425 |
-
|
| 426 |
-
|
| 427 |
-
|
| 428 |
-
|
| 429 |
-
|
| 430 |
-
|
| 431 |
-
|
| 432 |
-
|
| 433 |
-
|
| 434 |
-
|
| 435 |
-
|
| 436 |
-
|
| 437 |
-
|
| 438 |
-
|
| 439 |
-
|
| 440 |
-
|
| 441 |
-
|
| 442 |
-
|
| 443 |
-
|
| 444 |
-
|
| 445 |
-
|
| 446 |
-
|
| 447 |
-
|
| 448 |
-
|
| 449 |
-
|
| 450 |
-
|
| 451 |
-
|
| 452 |
-
|
| 453 |
-
|
| 454 |
-
|
| 455 |
-
|
| 456 |
-
|
| 457 |
-
|
| 458 |
-
|
| 459 |
-
|
| 460 |
-
|
| 461 |
-
|
| 462 |
-
|
| 463 |
-
|
| 464 |
-
|
| 465 |
-
|
| 466 |
-
|
| 467 |
-
|
| 468 |
-
|
| 469 |
-
|
| 470 |
-
|
| 471 |
-
|
| 472 |
-
|
| 473 |
-
|
| 474 |
-
|
| 475 |
-
|
| 476 |
-
|
| 477 |
-
|
| 478 |
-
|
| 479 |
-
|
| 480 |
-
|
| 481 |
-
|
| 482 |
-
|
| 483 |
-
|
| 484 |
-
|
| 485 |
-
|
| 486 |
-
|
| 487 |
-
|
| 488 |
-
|
| 489 |
-
|
| 490 |
-
|
| 491 |
-
|
| 492 |
-
|
| 493 |
-
|
| 494 |
-
|
| 495 |
-
|
| 496 |
-
|
| 497 |
-
|
| 498 |
-
|
| 499 |
-
|
| 500 |
-
|
| 501 |
-
|
| 502 |
-
|
| 503 |
-
|
| 504 |
-
|
| 505 |
-
|
| 506 |
-
|
| 507 |
-
|
| 508 |
-
|
| 509 |
-
|
| 510 |
-
|
| 511 |
-
|
| 512 |
-
|
| 513 |
-
|
| 514 |
-
|
| 515 |
-
|
| 516 |
-
|
| 517 |
-
|
| 518 |
-
|
| 519 |
-
|
| 520 |
-
|
| 521 |
-
|
| 522 |
-
|
| 523 |
-
|
| 524 |
-
|
| 525 |
-
|
| 526 |
-
|
| 527 |
-
|
| 528 |
-
|
| 529 |
-
|
| 530 |
-
|
| 531 |
-
|
| 532 |
-
|
| 533 |
-
|
| 534 |
-
|
| 535 |
-
|
| 536 |
-
|
| 537 |
-
|
| 538 |
-
|
| 539 |
-
|
| 540 |
-
|
| 541 |
-
|
| 542 |
-
|
| 543 |
-
|
| 544 |
-
|
| 545 |
-
|
| 546 |
-
|
| 547 |
-
|
| 548 |
-
|
| 549 |
-
|
| 550 |
-
|
| 551 |
-
|
| 552 |
-
|
| 553 |
-
|
| 554 |
-
|
| 555 |
-
|
| 556 |
-
|
| 557 |
-
|
| 558 |
-
|
| 559 |
-
|
| 560 |
-
|
| 561 |
-
|
| 562 |
-
|
| 563 |
-
|
| 564 |
-
|
| 565 |
-
|
| 566 |
-
|
| 567 |
-
|
| 568 |
-
|
| 569 |
-
|
| 570 |
-
|
| 571 |
-
|
| 572 |
-
|
| 573 |
-
|
| 574 |
-
|
| 575 |
-
|
| 576 |
-
|
| 577 |
-
|
| 578 |
-
|
| 579 |
-
|
| 580 |
-
|
| 581 |
-
|
| 582 |
-
|
| 583 |
-
|
| 584 |
-
|
| 585 |
-
|
| 586 |
-
|
| 587 |
-
|
| 588 |
-
|
| 589 |
-
|
| 590 |
-
|
| 591 |
-
|
| 592 |
-
|
| 593 |
-
|
| 594 |
-
|
| 595 |
-
|
| 596 |
-
|
| 597 |
-
|
| 598 |
-
|
| 599 |
-
|
| 600 |
-
|
| 601 |
-
|
| 602 |
-
|
| 603 |
-
|
| 604 |
-
|
| 605 |
-
|
| 606 |
-
|
| 607 |
-
|
| 608 |
-
|
| 609 |
-
|
| 610 |
-
|
| 611 |
-
|
| 612 |
-
|
| 613 |
-
|
| 614 |
-
|
| 615 |
-
|
| 616 |
-
|
| 617 |
-
|
| 618 |
-
|
| 619 |
-
|
| 620 |
-
|
| 621 |
-
|
| 622 |
-
|
| 623 |
-
|
| 624 |
-
|
| 625 |
-
|
| 626 |
-
|
| 627 |
-
|
| 628 |
-
|
| 629 |
-
|
| 630 |
-
|
| 631 |
-
|
| 632 |
-
|
| 633 |
-
|
| 634 |
-
|
| 635 |
-
|
| 636 |
-
|
| 637 |
-
|
| 638 |
-
|
| 639 |
-
|
| 640 |
-
|
| 641 |
-
|
| 642 |
-
|
| 643 |
-
|
| 644 |
-
|
| 645 |
-
|
| 646 |
-
|
| 647 |
-
|
| 648 |
-
|
| 649 |
-
|
| 650 |
-
|
| 651 |
-
|
| 652 |
-
|
| 653 |
-
|
| 654 |
-
|
| 655 |
-
|
| 656 |
-
|
| 657 |
-
|
| 658 |
-
|
| 659 |
-
|
| 660 |
-
|
| 661 |
-
|
| 662 |
-
|
| 663 |
-
|
| 664 |
-
|
| 665 |
-
|
| 666 |
-
|
| 667 |
-
|
| 668 |
-
|
| 669 |
-
|
| 670 |
-
|
| 671 |
-
|
| 672 |
-
|
| 673 |
-
|
| 674 |
-
|
| 675 |
-
|
| 676 |
-
|
| 677 |
-
|
| 678 |
-
|
| 679 |
-
|
| 680 |
-
|
| 681 |
-
|
| 682 |
-
|
| 683 |
-
|
| 684 |
-
|
| 685 |
-
|
| 686 |
-
|
| 687 |
-
|
| 688 |
-
|
| 689 |
-
|
| 690 |
-
|
| 691 |
-
|
| 692 |
-
|
| 693 |
-
|
| 694 |
-
|
| 695 |
-
|
| 696 |
-
|
| 697 |
-
|
| 698 |
-
|
| 699 |
-
|
| 700 |
-
|
| 701 |
-
|
| 702 |
-
|
| 703 |
-
|
| 704 |
-
|
| 705 |
-
|
| 706 |
-
|
| 707 |
-
|
| 708 |
-
|
| 709 |
-
|
| 710 |
-
|
| 711 |
-
|
| 712 |
-
|
| 713 |
-
|
| 714 |
-
|
| 715 |
-
|
| 716 |
-
|
| 717 |
-
|
| 718 |
-
|
| 719 |
-
|
| 720 |
-
|
| 721 |
-
|
| 722 |
-
|
| 723 |
-
|
| 724 |
-
|
| 725 |
-
|
| 726 |
-
|
| 727 |
-
|
| 728 |
-
|
| 729 |
-
|
| 730 |
-
|
| 731 |
-
|
| 732 |
-
|
| 733 |
-
|
| 734 |
-
|
| 735 |
-
|
| 736 |
-
|
| 737 |
-
|
| 738 |
-
|
| 739 |
-
|
| 740 |
-
|
| 741 |
-
|
| 742 |
-
|
| 743 |
-
|
| 744 |
-
|
| 745 |
-
|
| 746 |
-
|
| 747 |
-
|
| 748 |
-
|
| 749 |
-
|
| 750 |
-
|
| 751 |
-
|
| 752 |
-
|
| 753 |
-
|
| 754 |
-
|
| 755 |
-
|
| 756 |
-
|
| 757 |
-
|
| 758 |
-
|
| 759 |
-
|
| 760 |
-
|
| 761 |
-
|
| 762 |
-
|
| 763 |
-
|
| 764 |
-
|
| 765 |
-
|
| 766 |
-
|
| 767 |
-
|
| 768 |
-
|
| 769 |
-
|
| 770 |
-
|
| 771 |
-
|
| 772 |
-
|
| 773 |
-
|
| 774 |
-
|
| 775 |
-
|
| 776 |
-
|
| 777 |
-
|
| 778 |
-
|
| 779 |
-
|
| 780 |
-
|
| 781 |
-
|
| 782 |
-
|
| 783 |
-
|
| 784 |
-
|
| 785 |
-
|
| 786 |
-
|
| 787 |
-
|
| 788 |
-
|
| 789 |
-
|
| 790 |
-
|
| 791 |
-
|
| 792 |
-
|
| 793 |
-
|
| 794 |
-
|
| 795 |
-
|
| 796 |
-
|
| 797 |
-
|
| 798 |
-
|
| 799 |
-
|
| 800 |
-
|
| 801 |
-
|
| 802 |
-
|
| 803 |
-
|
| 804 |
-
|
| 805 |
-
|
| 806 |
-
|
| 807 |
-
|
| 808 |
-
|
| 809 |
-
|
| 810 |
-
|
| 811 |
-
|
| 812 |
-
|
| 813 |
-
|
| 814 |
-
|
| 815 |
-
|
| 816 |
-
|
| 817 |
-
|
| 818 |
-
|
| 819 |
-
|
| 820 |
-
|
| 821 |
-
|
| 822 |
-
|
| 823 |
-
|
| 824 |
-
|
| 825 |
-
|
| 826 |
-
|
| 827 |
-
|
| 828 |
-
|
| 829 |
-
|
| 830 |
-
|
| 831 |
-
|
| 832 |
-
|
| 833 |
-
|
| 834 |
-
|
| 835 |
-
|
| 836 |
-
|
| 837 |
-
|
| 838 |
-
|
| 839 |
-
|
| 840 |
-
|
| 841 |
-
|
| 842 |
-
|
| 843 |
-
|
| 844 |
-
|
| 845 |
-
|
| 846 |
-
|
| 847 |
-
|
| 848 |
-
|
| 849 |
-
|
| 850 |
-
|
| 851 |
-
|
| 852 |
-
|
| 853 |
-
|
| 854 |
-
|
| 855 |
-
|
| 856 |
-
|
| 857 |
-
|
| 858 |
-
|
| 859 |
-
|
| 860 |
-
|
| 861 |
-
|
| 862 |
-
|
| 863 |
-
|
| 864 |
-
|
| 865 |
-
|
| 866 |
-
|
| 867 |
-
|
| 868 |
-
|
| 869 |
-
|
| 870 |
-
|
| 871 |
-
|
| 872 |
-
|
| 873 |
-
|
| 874 |
-
|
| 875 |
-
|
| 876 |
-
|
| 877 |
-
|
| 878 |
-
|
| 879 |
-
|
| 880 |
-
|
| 881 |
-
|
| 882 |
-
|
| 883 |
-
|
| 884 |
-
|
| 885 |
-
|
| 886 |
-
|
| 887 |
-
|
| 888 |
-
|
| 889 |
-
|
| 890 |
-
|
| 891 |
-
|
| 892 |
-
|
| 893 |
-
|
| 894 |
-
|
| 895 |
-
|
| 896 |
-
|
| 897 |
-
|
| 898 |
-
|
| 899 |
-
|
| 900 |
-
|
| 901 |
-
|
| 902 |
-
|
| 903 |
-
|
| 904 |
-
|
| 905 |
-
|
| 906 |
-
|
| 907 |
-
|
| 908 |
-
|
| 909 |
-
|
| 910 |
-
|
| 911 |
-
|
| 912 |
-
|
| 913 |
-
|
| 914 |
-
|
| 915 |
-
|
| 916 |
-
|
| 917 |
-
|
| 918 |
-
|
| 919 |
-
|
| 920 |
-
|
| 921 |
-
|
| 922 |
-
|
| 923 |
-
|
| 924 |
-
|
| 925 |
-
|
| 926 |
-
|
| 927 |
-
|
| 928 |
-
|
| 929 |
-
|
| 930 |
-
|
| 931 |
-
|
| 932 |
-
|
| 933 |
-
|
| 934 |
-
|
| 935 |
-
|
| 936 |
-
|
| 937 |
-
|
| 938 |
-
|
| 939 |
-
|
| 940 |
-
|
| 941 |
-
|
| 942 |
-
|
| 943 |
-
$
|
| 944 |
-
|
| 945 |
-
|
| 946 |
-
|
| 947 |
-
|
| 948 |
-
|
| 949 |
-
|
| 950 |
-
|
| 951 |
-
|
| 952 |
-
|
| 953 |
-
|
| 954 |
-
|
| 955 |
-
|
| 956 |
-
|
| 957 |
-
|
| 958 |
-
|
| 959 |
-
$
|
| 960 |
-
|
| 961 |
-
|
| 962 |
-
|
| 963 |
-
|
| 964 |
-
|
| 965 |
-
|
| 966 |
-
|
| 967 |
-
|
| 968 |
-
|
| 969 |
-
|
| 970 |
-
|
| 971 |
-
|
| 972 |
-
|
| 973 |
-
|
| 974 |
-
|
| 975 |
-
|
| 976 |
-
|
| 977 |
-
|
| 978 |
-
|
| 979 |
-
|
| 980 |
-
|
| 981 |
-
|
| 982 |
-
|
| 983 |
-
|
| 984 |
-
|
| 985 |
-
|
| 986 |
-
|
| 987 |
-
|
| 988 |
-
|
| 989 |
-
|
| 990 |
-
|
| 991 |
-
|
| 992 |
-
|
| 993 |
-
$
|
| 994 |
-
|
| 995 |
-
|
| 996 |
-
|
| 997 |
-
|
| 998 |
-
|
| 999 |
-
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
| 1000 |
Â
?>
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
require_once 'Size.class.php';
|
| 4 |
+
require_once 'ParamClientData.class.php';
|
| 5 |
+
require_once 'FixedDiscountCardId.class.php';
|
| 6 |
+
require_once 'ParamParcelInfo.class.php';
|
| 7 |
+
require_once 'ParamOptionsBeforePayment.class.php';
|
| 8 |
+
require_once 'ParamPackings.class.php';
|
| 9 |
+
require_once 'ParamReturnServiceRequest.class.php';
|
| 10 |
+
require_once 'ParamReturnShipmentRequest.class.php';
|
| 11 |
+
|
| 12 |
+
/**
|
| 13 |
+
* Instances of this class are passed as a parameter of Speedy web service calls for calclualation and registration
|
| 14 |
+
* @since 1.0
|
| 15 |
+
*/
|
| 16 |
+
class ParamPicking {
|
| 17 |
+
|
| 18 |
+
/**
|
| 19 |
+
* BOL number
|
| 20 |
+
* MANDATORY: Only for updateBillOfLading. Null otherwise
|
| 21 |
+
* @var integer Signed 64-bit
|
| 22 |
+
*/
|
| 23 |
+
private $_billOfLading;
|
| 24 |
+
|
| 25 |
+
/**
|
| 26 |
+
* The date for shipment pick-up (the "time" component is ignored). Default value is "today".
|
| 27 |
+
* MANDATORY: NO
|
| 28 |
+
* @var date
|
| 29 |
+
*/
|
| 30 |
+
private $_takingDate;
|
| 31 |
+
|
| 32 |
+
/**
|
| 33 |
+
* Courier service type ID
|
| 34 |
+
* MANDATORY: YES
|
| 35 |
+
* @var integer Signed 64-bit
|
| 36 |
+
*/
|
| 37 |
+
private $_serviceTypeId;
|
| 38 |
+
|
| 39 |
+
/**
|
| 40 |
+
* ID of an office "to be called"
|
| 41 |
+
* MANDATORY: Only for "to be called" pickings
|
| 42 |
+
* @var integer Signed 64-bit
|
| 43 |
+
*/
|
| 44 |
+
private $_officeToBeCalledId;
|
| 45 |
+
|
| 46 |
+
/**
|
| 47 |
+
* Options before payment
|
| 48 |
+
* MANDATORY: NO
|
| 49 |
+
* @var ParamOptionsBeforePayment
|
| 50 |
+
* @since 2.3.0
|
| 51 |
+
*/
|
| 52 |
+
protected $_optionsBeforePayment;
|
| 53 |
+
|
| 54 |
+
/**
|
| 55 |
+
* Fixed time for delivery ("HHmm" format, i.e., the number "1315" means "13:15", "830" means "8:30" etc.)
|
| 56 |
+
* MANDATORY: Depending on the courier service, this property could be required, allowed or banned
|
| 57 |
+
* @var integer Signed 16-bit
|
| 58 |
+
*/
|
| 59 |
+
private $_fixedTimeDelivery;
|
| 60 |
+
|
| 61 |
+
/**
|
| 62 |
+
* In some rare cases users might prefer the delivery to be deferred by a day or two.
|
| 63 |
+
* This parameter allows users to specify by how many (working) days they would like to postpone the shipment delivery.
|
| 64 |
+
* Max 2 days
|
| 65 |
+
* MANDATORY: No
|
| 66 |
+
* @var integer Signed 32-bit
|
| 67 |
+
*/
|
| 68 |
+
private $_deferredDeliveryWorkDays;
|
| 69 |
+
|
| 70 |
+
/**
|
| 71 |
+
* Specifies if the shipment has a "request for return documents"
|
| 72 |
+
* MANDATORY: YES
|
| 73 |
+
* @var boolean
|
| 74 |
+
*/
|
| 75 |
+
private $_backDocumentsRequest;
|
| 76 |
+
|
| 77 |
+
/**
|
| 78 |
+
* Specifies if the shipment has a "request for return receipt"
|
| 79 |
+
* MANDATORY: YES
|
| 80 |
+
* @var boolean
|
| 81 |
+
*/
|
| 82 |
+
private $_backReceiptRequest;
|
| 83 |
+
|
| 84 |
+
/**
|
| 85 |
+
* Specifies if the sender intends to deliver the shipment to a Speedy office by him/herself instead of ordering a visit by courier
|
| 86 |
+
* MANDATORY: YES
|
| 87 |
+
* @var boolean
|
| 88 |
+
*/
|
| 89 |
+
private $_willBringToOffice;
|
| 90 |
+
|
| 91 |
+
/**
|
| 92 |
+
* Special delivery id
|
| 93 |
+
* MANDATORY: NO
|
| 94 |
+
* @var signed 32-bit integer
|
| 95 |
+
* @since 2.3.0
|
| 96 |
+
*/
|
| 97 |
+
protected $_specialDeliveryId;
|
| 98 |
+
|
| 99 |
+
/**
|
| 100 |
+
* Specifies the specific Speedy office, where the sender intends to deliver the shipment by him/herself.
|
| 101 |
+
* If willBringToOfficeId is provided, willBringToOffice flag is considered "true", regardless the value provided.
|
| 102 |
+
* If willBringToOfficeId is not provied (0 or null) and willBringToOffice flag is "true",
|
| 103 |
+
* willBringToOfficeId is automatically set with default value configured for caller user profile.
|
| 104 |
+
* The default willBringToOfficeId value could be managed using profile configuration page in client's Speedy web site.
|
| 105 |
+
* MANDATORY: NO
|
| 106 |
+
* @since 1.3
|
| 107 |
+
* @var integer Signed 64-bit
|
| 108 |
+
*/
|
| 109 |
+
private $_willBringToOfficeId;
|
| 110 |
+
|
| 111 |
+
/**
|
| 112 |
+
* Shipment insurance value (if the shipment is insured).
|
| 113 |
+
* The value is limited depending on user's permissions and Speedy's current policy
|
| 114 |
+
* MANDATORY: NO
|
| 115 |
+
* @var double Signed 64-bit
|
| 116 |
+
*/
|
| 117 |
+
private $_amountInsuranceBase;
|
| 118 |
+
|
| 119 |
+
/**
|
| 120 |
+
* Cash-on-Delivery (COD) amount.
|
| 121 |
+
* The value is limited depending on user's permissions and Speedy's current policy
|
| 122 |
+
* MANDATORY: NO
|
| 123 |
+
* @var double Signed 64-bit
|
| 124 |
+
*/
|
| 125 |
+
private $_amountCodBase;
|
| 126 |
+
|
| 127 |
+
/**
|
| 128 |
+
* Specifies if the COD value is to be paid to a third party. Allowed only if the shipment has payerType = 2 (third party).
|
| 129 |
+
* MANDATORY: NO
|
| 130 |
+
* @var boolean
|
| 131 |
+
*/
|
| 132 |
+
private $_payCodToThirdParty;
|
| 133 |
+
|
| 134 |
+
/**
|
| 135 |
+
* Return money-transfer request amount
|
| 136 |
+
* The value is limited depending on user's permissions and Speedy's current policy
|
| 137 |
+
* MANDATORY: NO
|
| 138 |
+
* @var double Signed 64-bit
|
| 139 |
+
*/
|
| 140 |
+
private $_retMoneyTransferReqAmount;
|
| 141 |
+
|
| 142 |
+
/**
|
| 143 |
+
* Return third party payer flag
|
| 144 |
+
* MANDATORY: NO
|
| 145 |
+
* @var boolean
|
| 146 |
+
* @since 2.3.0
|
| 147 |
+
*/
|
| 148 |
+
protected $_retThirdPartyPayer;
|
| 149 |
+
|
| 150 |
+
/**
|
| 151 |
+
* Parcels count. Maximum value is 999.
|
| 152 |
+
* MANDATORY: YES
|
| 153 |
+
* @var integer Signed 32-bit
|
| 154 |
+
*/
|
| 155 |
+
private $_parcelsCount;
|
| 156 |
+
|
| 157 |
+
/**
|
| 158 |
+
* Size of shipment
|
| 159 |
+
* MANDATORY: NO
|
| 160 |
+
* @var Size
|
| 161 |
+
*/
|
| 162 |
+
private $_size;
|
| 163 |
+
|
| 164 |
+
/**
|
| 165 |
+
* Declared weight (the greater of "volume" and "real" weight values).
|
| 166 |
+
* Maximum value is 100.00
|
| 167 |
+
* MANDATORY: YES
|
| 168 |
+
* @var double Signed 64-bit
|
| 169 |
+
*/
|
| 170 |
+
private $_weightDeclared;
|
| 171 |
+
|
| 172 |
+
/**
|
| 173 |
+
* Contents. Max text size - 50 symbols
|
| 174 |
+
* MANDATORY: YES
|
| 175 |
+
* @var string
|
| 176 |
+
*/
|
| 177 |
+
private $_contents;
|
| 178 |
+
|
| 179 |
+
/**
|
| 180 |
+
* Packing
|
| 181 |
+
* MANDATORY: YES
|
| 182 |
+
* @var string
|
| 183 |
+
*/
|
| 184 |
+
private $_packing;
|
| 185 |
+
|
| 186 |
+
/**
|
| 187 |
+
* Data for packings. For internal use only
|
| 188 |
+
* MANDATORY: NO
|
| 189 |
+
* @var ParamPackings
|
| 190 |
+
* @since 2.3.0
|
| 191 |
+
*/
|
| 192 |
+
private $_packings;
|
| 193 |
+
|
| 194 |
+
/**
|
| 195 |
+
* Packing ID (number)
|
| 196 |
+
* MANDATORY: NO
|
| 197 |
+
* @var integer Signed 64-bit
|
| 198 |
+
*/
|
| 199 |
+
private $_packId;
|
| 200 |
+
|
| 201 |
+
/**
|
| 202 |
+
* Specifies whether the shipment consists of documents
|
| 203 |
+
* MANDATORY: YES
|
| 204 |
+
* @var boolean
|
| 205 |
+
*/
|
| 206 |
+
private $_documents;
|
| 207 |
+
|
| 208 |
+
/**
|
| 209 |
+
* Specifies whether the shipment is fragile - necessary when the price of insurance is being calculated
|
| 210 |
+
* MANDATORY: YES
|
| 211 |
+
* @var boolean
|
| 212 |
+
*/
|
| 213 |
+
private $_fragile;
|
| 214 |
+
|
| 215 |
+
/**
|
| 216 |
+
* Specifies whether the shipment is palletized
|
| 217 |
+
* MANDATORY: YES
|
| 218 |
+
* @var boolean
|
| 219 |
+
*/
|
| 220 |
+
private $_palletized;
|
| 221 |
+
|
| 222 |
+
/**
|
| 223 |
+
* Data for the sender
|
| 224 |
+
* MANDATORY: YES
|
| 225 |
+
* @var ParamClientData
|
| 226 |
+
*/
|
| 227 |
+
private $_sender;
|
| 228 |
+
|
| 229 |
+
/**
|
| 230 |
+
* Data for the receiver
|
| 231 |
+
* MANDATORY: YES
|
| 232 |
+
* @var ParamClientData
|
| 233 |
+
*/
|
| 234 |
+
private $_receiver;
|
| 235 |
+
|
| 236 |
+
/**
|
| 237 |
+
* Payer type (0=sender, 1=receiver or 2=third party)
|
| 238 |
+
* MANDATORY: YES
|
| 239 |
+
* @var integer Signed 32-bit
|
| 240 |
+
*/
|
| 241 |
+
private $_payerType;
|
| 242 |
+
|
| 243 |
+
/**
|
| 244 |
+
* Payer ID.
|
| 245 |
+
* MANDATORY: Must be set <=> payer is "third party".
|
| 246 |
+
* @var integer Signed 64-bit
|
| 247 |
+
*/
|
| 248 |
+
private $_payerRefId;
|
| 249 |
+
|
| 250 |
+
/**
|
| 251 |
+
* Insurance payer type (0=sender, 1=reciever or 2=third party)
|
| 252 |
+
* MANDATORY: Must be set <=> shipment is insured (i.e. amountInsuranceBase > 0).
|
| 253 |
+
* @var integer Signed 32-bit
|
| 254 |
+
*/
|
| 255 |
+
private $_payerTypeInsurance;
|
| 256 |
+
|
| 257 |
+
/**
|
| 258 |
+
* Packings payer type (0=sender, 1=reciever or 2=third party)
|
| 259 |
+
* MANDATORY: No.If not set, the payer of the packings' surcharge will be the same as the one indicated by payerType.
|
| 260 |
+
* @var integer Signed 32-bit
|
| 261 |
+
* @since 2.3.0
|
| 262 |
+
*/
|
| 263 |
+
protected $_payerTypePackings;
|
| 264 |
+
|
| 265 |
+
/**
|
| 266 |
+
* Insurance payer ID
|
| 267 |
+
* MANDATORY: Must be set <=> shipment has insurance (i.e. amountInsuranceBase > 0) and it is payed by a "third party".
|
| 268 |
+
* @var integer Signed 64-bit
|
| 269 |
+
*/
|
| 270 |
+
private $_payerRefInsuranceId;
|
| 271 |
+
|
| 272 |
+
/**
|
| 273 |
+
* Packings payer ID
|
| 274 |
+
* MANDATORY: Must be set <=> payerTypePackings is "third party".
|
| 275 |
+
* @var integer Signed 64-bit
|
| 276 |
+
* @since 2.3.0
|
| 277 |
+
*/
|
| 278 |
+
protected $_payerRefPackingsId;
|
| 279 |
+
|
| 280 |
+
/**
|
| 281 |
+
* Client's note
|
| 282 |
+
* MANDATORY: NO
|
| 283 |
+
* @var string
|
| 284 |
+
*/
|
| 285 |
+
private $_noteClient;
|
| 286 |
+
|
| 287 |
+
/**
|
| 288 |
+
* Card/Coupon/Voucher number for fixed discount
|
| 289 |
+
* MANDATORY: NO
|
| 290 |
+
* @var FixedDiscountCardId
|
| 291 |
+
*/
|
| 292 |
+
private $_discCalc;
|
| 293 |
+
|
| 294 |
+
/**
|
| 295 |
+
* ID of the client who is to receive the return receipt and/or the return documents.
|
| 296 |
+
* If payer is "third party" then this client has to be payer's contract member.
|
| 297 |
+
* Otherwise the client has to be sender's contract member.
|
| 298 |
+
* MANDATORY: NO
|
| 299 |
+
* @var integer Signed 64-bit
|
| 300 |
+
*/
|
| 301 |
+
private $_retToClientId;
|
| 302 |
+
|
| 303 |
+
/**
|
| 304 |
+
* An optional reference code.
|
| 305 |
+
* Maximum 30 symbols
|
| 306 |
+
* MANDATORY: NO
|
| 307 |
+
* @var string
|
| 308 |
+
*/
|
| 309 |
+
private $_ref1;
|
| 310 |
+
|
| 311 |
+
/**
|
| 312 |
+
* An optional reference code.
|
| 313 |
+
* Maximum 30 symbols
|
| 314 |
+
* MANDATORY: NO
|
| 315 |
+
* @var string
|
| 316 |
+
*/
|
| 317 |
+
private $_ref2;
|
| 318 |
+
|
| 319 |
+
/**
|
| 320 |
+
* An optional value used to identify user's client software.
|
| 321 |
+
* Please verify the allowed values with Speedy's IT Department.
|
| 322 |
+
* MANDATORY: NO
|
| 323 |
+
* @var integer Signed 64-bit
|
| 324 |
+
*/
|
| 325 |
+
private $_clientSystemId;
|
| 326 |
+
|
| 327 |
+
/**
|
| 328 |
+
* Data for parcels with explicit/fixed IDs (from the second one onward)
|
| 329 |
+
* The list has maximum lenght 998
|
| 330 |
+
* MANDATORY: NO
|
| 331 |
+
* @var array List of ParamParcelInfo
|
| 332 |
+
*/
|
| 333 |
+
private $_parcels;
|
| 334 |
+
|
| 335 |
+
/**
|
| 336 |
+
* When parcelsCount > 1 and no explicit data has been set in the parcels property during the creation,
|
| 337 |
+
* then parcels will be created automatically by default.
|
| 338 |
+
* This parameter allows users to control this behaviour.
|
| 339 |
+
* MANDATORY: NO
|
| 340 |
+
* @var boolean
|
| 341 |
+
*/
|
| 342 |
+
private $_skipAutomaticParcelsCreation;
|
| 343 |
+
|
| 344 |
+
/**
|
| 345 |
+
* Specifies if the service/system should allow parcels to be added to the shipment at a later stage.
|
| 346 |
+
* MANDATORY: NO
|
| 347 |
+
* @var boolean
|
| 348 |
+
*/
|
| 349 |
+
private $_pendingParcelsDescription;
|
| 350 |
+
|
| 351 |
+
/**
|
| 352 |
+
* Specifies if the service/system should allow BOL's modification at a later stage.
|
| 353 |
+
* MANDATORY: NO
|
| 354 |
+
* @var boolean
|
| 355 |
+
*/
|
| 356 |
+
private $_pendingShipmentDescription;
|
| 357 |
+
|
| 358 |
+
/**
|
| 359 |
+
* Return service request
|
| 360 |
+
* MANDATORY: NO
|
| 361 |
+
* @var array of ParamReturnServiceRequest
|
| 362 |
+
* since 2.5.0
|
| 363 |
+
*/
|
| 364 |
+
private $_retServicesRequest;
|
| 365 |
+
|
| 366 |
+
/**
|
| 367 |
+
* Return shipment request
|
| 368 |
+
* MANDATORY: NO
|
| 369 |
+
* @var ParamReturnShipmentRequest
|
| 370 |
+
* since 2.5.0
|
| 371 |
+
*/
|
| 372 |
+
private $_retShipmentRequest;
|
| 373 |
+
|
| 374 |
+
/**
|
| 375 |
+
* Set BOL number
|
| 376 |
+
* @param integer $billOfLading Signed 64-bit
|
| 377 |
+
*/
|
| 378 |
+
public function setBillOfLading($billOfLading) {
|
| 379 |
+
$this->_billOfLading = $billOfLading;
|
| 380 |
+
}
|
| 381 |
+
|
| 382 |
+
/**
|
| 383 |
+
* Get BOL number
|
| 384 |
+
* @return integer Signed 64-bit
|
| 385 |
+
*/
|
| 386 |
+
public function getBillOfLading() {
|
| 387 |
+
return $this->_billOfLading;
|
| 388 |
+
}
|
| 389 |
+
|
| 390 |
+
/**
|
| 391 |
+
* Set date for shipment pick-up (the "time" component is ignored).
|
| 392 |
+
* @param date $takingDate
|
| 393 |
+
*/
|
| 394 |
+
public function setTakingDate($takingDate) {
|
| 395 |
+
$this->_takingDate = $takingDate;
|
| 396 |
+
}
|
| 397 |
+
|
| 398 |
+
/**
|
| 399 |
+
* Get BOL number
|
| 400 |
+
* @return date
|
| 401 |
+
*/
|
| 402 |
+
public function getTakingDate() {
|
| 403 |
+
return $this->_takingDate;
|
| 404 |
+
}
|
| 405 |
+
|
| 406 |
+
/**
|
| 407 |
+
* Set courier service type ID
|
| 408 |
+
* @param integer $serviceTypeId Signed 64-bit
|
| 409 |
+
*/
|
| 410 |
+
public function setServiceTypeId($serviceTypeId) {
|
| 411 |
+
$this->_serviceTypeId = $serviceTypeId;
|
| 412 |
+
}
|
| 413 |
+
|
| 414 |
+
/**
|
| 415 |
+
* Get courier service type ID
|
| 416 |
+
* @return integer Signed 64-bit
|
| 417 |
+
*/
|
| 418 |
+
public function getServiceTypeId() {
|
| 419 |
+
return $this->_serviceTypeId;
|
| 420 |
+
}
|
| 421 |
+
|
| 422 |
+
/**
|
| 423 |
+
* Set ID of an office "to be called"
|
| 424 |
+
* @param integer $officeToBeCalledId Signed 64-bit
|
| 425 |
+
*/
|
| 426 |
+
public function setOfficeToBeCalledId($officeToBeCalledId) {
|
| 427 |
+
$this->_officeToBeCalledId = $officeToBeCalledId;
|
| 428 |
+
}
|
| 429 |
+
|
| 430 |
+
/**
|
| 431 |
+
* Get ID of an office "to be called"
|
| 432 |
+
* @return integer Signed 64-bit
|
| 433 |
+
*/
|
| 434 |
+
public function getOfficeToBeCalledId() {
|
| 435 |
+
return $this->_officeToBeCalledId;
|
| 436 |
+
}
|
| 437 |
+
|
| 438 |
+
/**
|
| 439 |
+
* Set options before payment
|
| 440 |
+
* @param ParamOptionsBeforePayment $optionsBeforePayment
|
| 441 |
+
*/
|
| 442 |
+
public function setOptionsBeforePayment($optionsBeforePayment) {
|
| 443 |
+
$this->_optionsBeforePayment = $optionsBeforePayment;
|
| 444 |
+
}
|
| 445 |
+
|
| 446 |
+
/**
|
| 447 |
+
* Get options before payment
|
| 448 |
+
* @return integer Signed 64-bit
|
| 449 |
+
*/
|
| 450 |
+
public function getOptionsBeforePayment() {
|
| 451 |
+
return $this->_optionsBeforePayment;
|
| 452 |
+
}
|
| 453 |
+
|
| 454 |
+
/**
|
| 455 |
+
* Set fixed time for delivery ("HHmm" format, i.e., the number "1315" means "13:15", "830" means "8:30" etc.)
|
| 456 |
+
* @param integer $fixedTimeDelivery Signed 16-bit
|
| 457 |
+
*/
|
| 458 |
+
public function setFixedTimeDelivery($fixedTimeDelivery) {
|
| 459 |
+
$this->_fixedTimeDelivery = $fixedTimeDelivery;
|
| 460 |
+
}
|
| 461 |
+
|
| 462 |
+
/**
|
| 463 |
+
* Get fixed time for delivery
|
| 464 |
+
* @return integer Signed 16-bit
|
| 465 |
+
*/
|
| 466 |
+
public function getFixedTimeDelivery() {
|
| 467 |
+
return $this->_fixedTimeDelivery;
|
| 468 |
+
}
|
| 469 |
+
|
| 470 |
+
/**
|
| 471 |
+
* Set working days to postpone the shipment delivery. Allowe values are 1 or 2
|
| 472 |
+
* @param integer $deferredDeliveryWorkDays Signed 32-bit
|
| 473 |
+
*/
|
| 474 |
+
public function setDeferredDeliveryWorkDays($deferredDeliveryWorkDays) {
|
| 475 |
+
$this->_deferredDeliveryWorkDays = $deferredDeliveryWorkDays;
|
| 476 |
+
}
|
| 477 |
+
|
| 478 |
+
/**
|
| 479 |
+
* Get working days to postpone the shipment delivery
|
| 480 |
+
* @return integer Signed 32-bit
|
| 481 |
+
*/
|
| 482 |
+
public function getDeferredDeliveryWorkDays() {
|
| 483 |
+
return $this->_deferredDeliveryWorkDays;
|
| 484 |
+
}
|
| 485 |
+
|
| 486 |
+
/**
|
| 487 |
+
* Set "request for return documents" flag for shipment
|
| 488 |
+
* @param boolean $backDocumentsRequest
|
| 489 |
+
*/
|
| 490 |
+
public function setBackDocumentsRequest($backDocumentsRequest) {
|
| 491 |
+
$this->_backDocumentsRequest = $backDocumentsRequest;
|
| 492 |
+
}
|
| 493 |
+
|
| 494 |
+
/**
|
| 495 |
+
* Check "request for return documents" flag for shipment
|
| 496 |
+
* @return boolean
|
| 497 |
+
*/
|
| 498 |
+
public function isBackDocumentsRequest() {
|
| 499 |
+
return $this->_backDocumentsRequest;
|
| 500 |
+
}
|
| 501 |
+
|
| 502 |
+
/**
|
| 503 |
+
* Set "request for return receipt" flag for shipment
|
| 504 |
+
* @param boolean $backReceiptRequest
|
| 505 |
+
*/
|
| 506 |
+
public function setBackReceiptRequest($backReceiptRequest) {
|
| 507 |
+
$this->_backReceiptRequest = $backReceiptRequest;
|
| 508 |
+
}
|
| 509 |
+
|
| 510 |
+
/**
|
| 511 |
+
* Check "request for return receipt" flag for shipment
|
| 512 |
+
* @return boolean
|
| 513 |
+
*/
|
| 514 |
+
public function isBackReceiptRequest() {
|
| 515 |
+
return $this->_backReceiptRequest;
|
| 516 |
+
}
|
| 517 |
+
|
| 518 |
+
/**
|
| 519 |
+
* Set "bring to office" flag for shipment
|
| 520 |
+
* @param boolean $willBringToOffice
|
| 521 |
+
*/
|
| 522 |
+
public function setWillBringToOffice($willBringToOffice) {
|
| 523 |
+
$this->_willBringToOffice = $willBringToOffice;
|
| 524 |
+
}
|
| 525 |
+
|
| 526 |
+
/**
|
| 527 |
+
* Check "bring to office" flag for shipment
|
| 528 |
+
* @return boolean
|
| 529 |
+
*/
|
| 530 |
+
public function getWillBringToOffice() {
|
| 531 |
+
return $this->_willBringToOffice;
|
| 532 |
+
}
|
| 533 |
+
|
| 534 |
+
/**
|
| 535 |
+
* Set "bring to office" id
|
| 536 |
+
* @since 1.3
|
| 537 |
+
* @param Signed 64-bit $willBringToOfficeId
|
| 538 |
+
*/
|
| 539 |
+
public function setWillBringToOfficeId($willBringToOfficeId) {
|
| 540 |
+
$this->_willBringToOfficeId = $willBringToOfficeId;
|
| 541 |
+
}
|
| 542 |
+
|
| 543 |
+
/**
|
| 544 |
+
* Get "bring to office" id
|
| 545 |
+
* @since 1.3
|
| 546 |
+
* @return Signed 64-bit
|
| 547 |
+
*/
|
| 548 |
+
public function getWillBringToOfficeId() {
|
| 549 |
+
return $this->_willBringToOfficeId;
|
| 550 |
+
}
|
| 551 |
+
|
| 552 |
+
/**
|
| 553 |
+
* Gets the special delivery id
|
| 554 |
+
* @return signed 32-bit integer special delivery id
|
| 555 |
+
*/
|
| 556 |
+
public function getSpecialDeliveryId() {
|
| 557 |
+
return $this->_specialDeliveryId;
|
| 558 |
+
}
|
| 559 |
+
|
| 560 |
+
/**
|
| 561 |
+
* Sets the special delivery id
|
| 562 |
+
* @param signed 32-bit integer $specialDeliveryId Special delivery id
|
| 563 |
+
*/
|
| 564 |
+
public function setSpecialDeliveryId($specialDeliveryId) {
|
| 565 |
+
$this->_specialDeliveryId = $specialDeliveryId;
|
| 566 |
+
}
|
| 567 |
+
|
| 568 |
+
/**
|
| 569 |
+
* Set shipment insurance value (if the shipment is insured).
|
| 570 |
+
* @param double $amountInsuranceBase Signed 64-bit
|
| 571 |
+
*/
|
| 572 |
+
public function setAmountInsuranceBase($amountInsuranceBase) {
|
| 573 |
+
$this->_amountInsuranceBase = $amountInsuranceBase;
|
| 574 |
+
}
|
| 575 |
+
|
| 576 |
+
/**
|
| 577 |
+
* Get shipment insurance value
|
| 578 |
+
* @return double Signed 64-bit
|
| 579 |
+
*/
|
| 580 |
+
public function getAmountInsuranceBase() {
|
| 581 |
+
return $this->_amountInsuranceBase;
|
| 582 |
+
}
|
| 583 |
+
|
| 584 |
+
/**
|
| 585 |
+
* Set cash-on-Delivery (COD) amount.
|
| 586 |
+
* @param double $amountCodBase Signed 64-bit
|
| 587 |
+
*/
|
| 588 |
+
public function setAmountCodBase($amountCodBase) {
|
| 589 |
+
$this->_amountCodBase = $amountCodBase;
|
| 590 |
+
}
|
| 591 |
+
|
| 592 |
+
/**
|
| 593 |
+
* Get cash-on-Delivery (COD) amount.
|
| 594 |
+
* @return double Signed 64-bit
|
| 595 |
+
*/
|
| 596 |
+
public function getAmountCodBase() {
|
| 597 |
+
return $this->_amountCodBase;
|
| 598 |
+
}
|
| 599 |
+
|
| 600 |
+
/**
|
| 601 |
+
* Set flag for COD value to be paid to a third party. Allowed only if the shipment has payerType = 2 (third party).
|
| 602 |
+
* @param boolean $payCodToThirdParty
|
| 603 |
+
*/
|
| 604 |
+
public function setPayCodToThirdParty($payCodToThirdParty) {
|
| 605 |
+
$this->_payCodToThirdParty = $payCodToThirdParty;
|
| 606 |
+
}
|
| 607 |
+
|
| 608 |
+
/**
|
| 609 |
+
* Check flag for COD value to be paid to a third party
|
| 610 |
+
* @return boolean
|
| 611 |
+
*/
|
| 612 |
+
public function isPayCodToThirdParty() {
|
| 613 |
+
return $this->_payCodToThirdParty;
|
| 614 |
+
}
|
| 615 |
+
|
| 616 |
+
/**
|
| 617 |
+
* Set return money-transfer request amount
|
| 618 |
+
* @param double $retMoneyTransferReqAmount Signed 64-bit
|
| 619 |
+
*/
|
| 620 |
+
public function setRetMoneyTransferReqAmount($retMoneyTransferReqAmount) {
|
| 621 |
+
$this->_retMoneyTransferReqAmount = $retMoneyTransferReqAmount;
|
| 622 |
+
}
|
| 623 |
+
|
| 624 |
+
/**
|
| 625 |
+
* Get return money-transfer request amount
|
| 626 |
+
* @return double Signed 64-bit
|
| 627 |
+
*/
|
| 628 |
+
public function getRetMoneyTransferReqAmount() {
|
| 629 |
+
return $this->_retMoneyTransferReqAmount;
|
| 630 |
+
}
|
| 631 |
+
|
| 632 |
+
/**
|
| 633 |
+
* Set return picking third party payer flag
|
| 634 |
+
* @param boolean $retThirdPartyPayer return picking third party payer flag
|
| 635 |
+
*/
|
| 636 |
+
public function setRetThirdPartyPayer($retThirdPartyPayer) {
|
| 637 |
+
$this->_retThirdPartyPayer = $retThirdPartyPayer;
|
| 638 |
+
}
|
| 639 |
+
|
| 640 |
+
/**
|
| 641 |
+
* Gets return picking third party payer flag
|
| 642 |
+
* @return boolean Picking third party payer flag
|
| 643 |
+
*/
|
| 644 |
+
public function isRetThirdPartyPayer() {
|
| 645 |
+
return $this->_retThirdPartyPayer;
|
| 646 |
+
}
|
| 647 |
+
|
| 648 |
+
/**
|
| 649 |
+
* Set parcels count. Maximum value is 999
|
| 650 |
+
* @param integer $parcelsCount Signed 32-bit
|
| 651 |
+
*/
|
| 652 |
+
public function setParcelsCount($parcelsCount) {
|
| 653 |
+
$this->_parcelsCount = $parcelsCount;
|
| 654 |
+
}
|
| 655 |
+
|
| 656 |
+
/**
|
| 657 |
+
* Get parcels count
|
| 658 |
+
* @return integer Signed 32-bit
|
| 659 |
+
*/
|
| 660 |
+
public function getParcelsCount() {
|
| 661 |
+
return $this->_parcelsCount;
|
| 662 |
+
}
|
| 663 |
+
|
| 664 |
+
/**
|
| 665 |
+
* Set size of shipment
|
| 666 |
+
* @param Size $size
|
| 667 |
+
*/
|
| 668 |
+
public function setSize($size) {
|
| 669 |
+
$this->_size = $size;
|
| 670 |
+
}
|
| 671 |
+
|
| 672 |
+
/**
|
| 673 |
+
* Get size of shipment
|
| 674 |
+
* @return Size
|
| 675 |
+
*/
|
| 676 |
+
public function getSize() {
|
| 677 |
+
return $this->_size;
|
| 678 |
+
}
|
| 679 |
+
|
| 680 |
+
/**
|
| 681 |
+
* Set declared weight (the greater of "volume" and "real" weight values). Maximum value is 100.00
|
| 682 |
+
* @param double $weightDeclared Signed 64-bit
|
| 683 |
+
*/
|
| 684 |
+
public function setWeightDeclared($weightDeclared) {
|
| 685 |
+
$this->_weightDeclared = $weightDeclared;
|
| 686 |
+
}
|
| 687 |
+
|
| 688 |
+
/**
|
| 689 |
+
* Get declared weight
|
| 690 |
+
* @return double Signed 64-bit
|
| 691 |
+
*/
|
| 692 |
+
public function getWeightDeclared() {
|
| 693 |
+
return $this->_weightDeclared;
|
| 694 |
+
}
|
| 695 |
+
|
| 696 |
+
/**
|
| 697 |
+
* Set contents. Max text size - 50 symbols
|
| 698 |
+
* @param string $contents
|
| 699 |
+
*/
|
| 700 |
+
public function setContents($contents) {
|
| 701 |
+
$this->_contents = $contents;
|
| 702 |
+
}
|
| 703 |
+
|
| 704 |
+
/**
|
| 705 |
+
* Get contents.
|
| 706 |
+
* @return string
|
| 707 |
+
*/
|
| 708 |
+
public function getContents() {
|
| 709 |
+
return $this->_contents;
|
| 710 |
+
}
|
| 711 |
+
|
| 712 |
+
/**
|
| 713 |
+
* Set contents. Max text size - 50 symbols
|
| 714 |
+
* @param string $packing
|
| 715 |
+
*/
|
| 716 |
+
public function setPacking($packing) {
|
| 717 |
+
$this->_packing = $packing;
|
| 718 |
+
}
|
| 719 |
+
|
| 720 |
+
/**
|
| 721 |
+
* Get contents.
|
| 722 |
+
* @return string
|
| 723 |
+
*/
|
| 724 |
+
public function getPacking() {
|
| 725 |
+
return $this->_packing;
|
| 726 |
+
}
|
| 727 |
+
|
| 728 |
+
/**
|
| 729 |
+
* Set packings
|
| 730 |
+
* @param Array of ParamPackings $packings
|
| 731 |
+
*/
|
| 732 |
+
public function setPackings($packings) {
|
| 733 |
+
$this->_packings = $packings;
|
| 734 |
+
}
|
| 735 |
+
|
| 736 |
+
/**
|
| 737 |
+
* Get packings.
|
| 738 |
+
* @return Array of ParamPackings
|
| 739 |
+
*/
|
| 740 |
+
public function getPackings() {
|
| 741 |
+
return $this->_packings;
|
| 742 |
+
}
|
| 743 |
+
|
| 744 |
+
|
| 745 |
+
/**
|
| 746 |
+
* Set packing ID (number)
|
| 747 |
+
* @param integer $packId Signed 64-bit
|
| 748 |
+
*/
|
| 749 |
+
public function setPackId($packId) {
|
| 750 |
+
$this->_packId = $packId;
|
| 751 |
+
}
|
| 752 |
+
|
| 753 |
+
/**
|
| 754 |
+
* Get packing ID (number).
|
| 755 |
+
* @return integer Signed 64-bit
|
| 756 |
+
*/
|
| 757 |
+
public function getPackId() {
|
| 758 |
+
return $this->_packId;
|
| 759 |
+
}
|
| 760 |
+
|
| 761 |
+
/**
|
| 762 |
+
* Set flag whether shipment consists of documents
|
| 763 |
+
* @param boolean $documents
|
| 764 |
+
*/
|
| 765 |
+
public function setDocuments($documents) {
|
| 766 |
+
$this->_documents = $documents;
|
| 767 |
+
}
|
| 768 |
+
|
| 769 |
+
/**
|
| 770 |
+
* Check whether shipment consists if documents
|
| 771 |
+
* @return boolean
|
| 772 |
+
*/
|
| 773 |
+
public function isDocuments() {
|
| 774 |
+
return $this->_documents;
|
| 775 |
+
}
|
| 776 |
+
|
| 777 |
+
/**
|
| 778 |
+
* Set flag whether shipment is fragile - necessary when the price of insurance is being calculated
|
| 779 |
+
* @param boolean $fragile
|
| 780 |
+
*/
|
| 781 |
+
public function setFragile($fragile) {
|
| 782 |
+
$this->_fragile = $fragile;
|
| 783 |
+
}
|
| 784 |
+
|
| 785 |
+
/**
|
| 786 |
+
* Check whether shipment is fragile
|
| 787 |
+
* @return boolean
|
| 788 |
+
*/
|
| 789 |
+
public function isFragile() {
|
| 790 |
+
return $this->_fragile;
|
| 791 |
+
}
|
| 792 |
+
|
| 793 |
+
/**
|
| 794 |
+
* Set flag whether shipment is palletized
|
| 795 |
+
* @param boolean $palletized
|
| 796 |
+
*/
|
| 797 |
+
public function setPalletized($palletized) {
|
| 798 |
+
$this->_palletized = $palletized;
|
| 799 |
+
}
|
| 800 |
+
|
| 801 |
+
/**
|
| 802 |
+
* Check whether shipment is palletized
|
| 803 |
+
* @return boolean
|
| 804 |
+
*/
|
| 805 |
+
public function isPalletized() {
|
| 806 |
+
return $this->_palletized;
|
| 807 |
+
}
|
| 808 |
+
|
| 809 |
+
/**
|
| 810 |
+
* Set data for the sender
|
| 811 |
+
* @param ParamClientData $sender
|
| 812 |
+
*/
|
| 813 |
+
public function setSender($sender) {
|
| 814 |
+
$this->_sender = $sender;
|
| 815 |
+
}
|
| 816 |
+
|
| 817 |
+
/**
|
| 818 |
+
* Get data for the sender
|
| 819 |
+
* @return ParamClientData
|
| 820 |
+
*/
|
| 821 |
+
public function getSender() {
|
| 822 |
+
return $this->_sender;
|
| 823 |
+
}
|
| 824 |
+
|
| 825 |
+
/**
|
| 826 |
+
* Set data for the receiver
|
| 827 |
+
* @param ParamClientData $receiver
|
| 828 |
+
*/
|
| 829 |
+
public function setReceiver($receiver) {
|
| 830 |
+
$this->_receiver = $receiver;
|
| 831 |
+
}
|
| 832 |
+
|
| 833 |
+
/**
|
| 834 |
+
* Get data for the receiver
|
| 835 |
+
* @return ParamClientData
|
| 836 |
+
*/
|
| 837 |
+
public function getReceiver() {
|
| 838 |
+
return $this->_receiver;
|
| 839 |
+
}
|
| 840 |
+
|
| 841 |
+
/**
|
| 842 |
+
* Set payer type (0=sender, 1=receiver or 2=third party)
|
| 843 |
+
* @param integer $payerType Signed 32-bit
|
| 844 |
+
*/
|
| 845 |
+
public function setPayerType($payerType) {
|
| 846 |
+
$this->_payerType = $payerType;
|
| 847 |
+
}
|
| 848 |
+
|
| 849 |
+
/**
|
| 850 |
+
* Get payer type (0=sender, 1=receiver or 2=third party)
|
| 851 |
+
* @return integer Signed 32-bit
|
| 852 |
+
*/
|
| 853 |
+
public function getPayerType() {
|
| 854 |
+
return $this->_payerType;
|
| 855 |
+
}
|
| 856 |
+
|
| 857 |
+
/**
|
| 858 |
+
* Set payer ID
|
| 859 |
+
* @param integer $payerRefId Signed 64-bit
|
| 860 |
+
*/
|
| 861 |
+
public function setPayerRefId($payerRefId) {
|
| 862 |
+
$this->_payerRefId = $payerRefId;
|
| 863 |
+
}
|
| 864 |
+
|
| 865 |
+
/**
|
| 866 |
+
* Get payer ID
|
| 867 |
+
* @return integer Signed 64-bit
|
| 868 |
+
*/
|
| 869 |
+
public function getPayerRefId() {
|
| 870 |
+
return $this->_payerRefId;
|
| 871 |
+
}
|
| 872 |
+
|
| 873 |
+
/**
|
| 874 |
+
* Set insurance payer type (0=sender, 1=reciever or 2=third party)
|
| 875 |
+
* @param integer $payerTypeInsurance Signed 32-bit
|
| 876 |
+
*/
|
| 877 |
+
public function setPayerTypeInsurance($payerTypeInsurance) {
|
| 878 |
+
$this->_payerTypeInsurance = $payerTypeInsurance;
|
| 879 |
+
}
|
| 880 |
+
|
| 881 |
+
/**
|
| 882 |
+
* Get insurance payer type
|
| 883 |
+
* @return integer Signed 32-bit
|
| 884 |
+
*/
|
| 885 |
+
public function getPayerTypeInsurance() {
|
| 886 |
+
return $this->_payerTypeInsurance;
|
| 887 |
+
}
|
| 888 |
+
|
| 889 |
+
/**
|
| 890 |
+
* Set packings payer type (0=sender, 1=reciever or 2=third party)
|
| 891 |
+
* @param integer $payerTypePackings Signed 32-bit
|
| 892 |
+
*/
|
| 893 |
+
public function setPayerTypePackings($payerTypePackings) {
|
| 894 |
+
$this->_payerTypePackings = $payerTypePackings;
|
| 895 |
+
}
|
| 896 |
+
|
| 897 |
+
/**
|
| 898 |
+
* Get packings payer type
|
| 899 |
+
* @return integer Signed 32-bit
|
| 900 |
+
*/
|
| 901 |
+
public function getPayerTypePackings() {
|
| 902 |
+
return $this->_payerTypePackings;
|
| 903 |
+
}
|
| 904 |
+
|
| 905 |
+
/**
|
| 906 |
+
* Set insurance payer ID
|
| 907 |
+
* @param integer $payerRefInsuranceId Signed 64-bit
|
| 908 |
+
*/
|
| 909 |
+
public function setPayerRefInsuranceId($payerRefInsuranceId) {
|
| 910 |
+
$this->_payerRefInsuranceId = $payerRefInsuranceId;
|
| 911 |
+
}
|
| 912 |
+
|
| 913 |
+
/**
|
| 914 |
+
* Get insurance payer ID
|
| 915 |
+
* @return integer Signed 64-bit
|
| 916 |
+
*/
|
| 917 |
+
public function getPayerRefInsuranceId() {
|
| 918 |
+
return $this->_payerRefInsuranceId;
|
| 919 |
+
}
|
| 920 |
+
|
| 921 |
+
|
| 922 |
+
/**
|
| 923 |
+
* Set packings payer ID
|
| 924 |
+
* @param integer $payerRefPackingsId Signed 64-bit
|
| 925 |
+
*/
|
| 926 |
+
public function setPayerRefPackingsId($payerRefPackingsId) {
|
| 927 |
+
$this->_payerRefPackingsId = $payerRefPackingsId;
|
| 928 |
+
}
|
| 929 |
+
|
| 930 |
+
/**
|
| 931 |
+
* Get packings payer ID
|
| 932 |
+
* @return integer Signed 64-bit
|
| 933 |
+
*/
|
| 934 |
+
public function getPayerRefPackingsId() {
|
| 935 |
+
return $this->_payerRefPackingsId;
|
| 936 |
+
}
|
| 937 |
+
|
| 938 |
+
/**
|
| 939 |
+
* Set client's note
|
| 940 |
+
* @param string $noteClient
|
| 941 |
+
*/
|
| 942 |
+
public function setNoteClient($noteClient) {
|
| 943 |
+
$this->_noteClient = $noteClient;
|
| 944 |
+
}
|
| 945 |
+
|
| 946 |
+
/**
|
| 947 |
+
* Get client's note
|
| 948 |
+
* @return string
|
| 949 |
+
*/
|
| 950 |
+
public function getNoteClient() {
|
| 951 |
+
return $this->_noteClient;
|
| 952 |
+
}
|
| 953 |
+
|
| 954 |
+
/**
|
| 955 |
+
* Set card/coupon/voucher number for fixed discount
|
| 956 |
+
* @param FixedDiscountCardId $discCalc
|
| 957 |
+
*/
|
| 958 |
+
public function setDiscCalc($discCalc) {
|
| 959 |
+
$this->_discCalc = $discCalc;
|
| 960 |
+
}
|
| 961 |
+
|
| 962 |
+
/**
|
| 963 |
+
* Get card/coupon/voucher number for fixed discount
|
| 964 |
+
* @return FixedDiscountCardId
|
| 965 |
+
*/
|
| 966 |
+
public function getDiscCalc() {
|
| 967 |
+
return $this->_discCalc;
|
| 968 |
+
}
|
| 969 |
+
|
| 970 |
+
/**
|
| 971 |
+
* Set ID of the client who is to receive the return receipt and/or the return documents.
|
| 972 |
+
* If payer is "third party" then this client has to be payer's contract member.
|
| 973 |
+
* Otherwise the client has to be sender's contract member.
|
| 974 |
+
* @param integer $retToClientId Signed 64-bit
|
| 975 |
+
*/
|
| 976 |
+
public function setRetToClientId($retToClientId) {
|
| 977 |
+
$this->_retToClientId = $retToClientId;
|
| 978 |
+
}
|
| 979 |
+
|
| 980 |
+
/**
|
| 981 |
+
* Get ID of the client who is to receive the return receipt and/or the return documents.
|
| 982 |
+
* @return integer Signed 64-bit
|
| 983 |
+
*/
|
| 984 |
+
public function getRetToClientId() {
|
| 985 |
+
return $this->_retToClientId;
|
| 986 |
+
}
|
| 987 |
+
|
| 988 |
+
/**
|
| 989 |
+
* Set optional reference code. Maximum 30 symbols.
|
| 990 |
+
* @param string $ref1
|
| 991 |
+
*/
|
| 992 |
+
public function setRef1($ref1) {
|
| 993 |
+
$this->_ref1 = $ref1;
|
| 994 |
+
}
|
| 995 |
+
|
| 996 |
+
/**
|
| 997 |
+
* Get optional reference code. Maximum 30 symbols.
|
| 998 |
+
* @return string
|
| 999 |
+
*/
|
| 1000 |
+
public function getRef1() {
|
| 1001 |
+
return $this->_ref1;
|
| 1002 |
+
}
|
| 1003 |
+
|
| 1004 |
+
/**
|
| 1005 |
+
* Set optional reference code 2. Maximum 30 symbols.
|
| 1006 |
+
* @param string $ref2
|
| 1007 |
+
*/
|
| 1008 |
+
public function setRef2($ref2) {
|
| 1009 |
+
$this->_ref2 = $ref2;
|
| 1010 |
+
}
|
| 1011 |
+
|
| 1012 |
+
/**
|
| 1013 |
+
* Get optional reference code 2. Maximum 30 symbols.
|
| 1014 |
+
* @return string
|
| 1015 |
+
*/
|
| 1016 |
+
public function getRef2() {
|
| 1017 |
+
return $this->_ref2;
|
| 1018 |
+
}
|
| 1019 |
+
|
| 1020 |
+
/**
|
| 1021 |
+
* Set optional value used to identify user's client software.
|
| 1022 |
+
* @param integer $clientSystemId Signed 64-bit
|
| 1023 |
+
*/
|
| 1024 |
+
public function setClientSystemId($clientSystemId) {
|
| 1025 |
+
$this->_clientSystemId = $clientSystemId;
|
| 1026 |
+
}
|
| 1027 |
+
|
| 1028 |
+
/**
|
| 1029 |
+
* Get optional value used to identify user's client software.
|
| 1030 |
+
* @return integer Signed 64-bit
|
| 1031 |
+
*/
|
| 1032 |
+
public function getClientSystemId() {
|
| 1033 |
+
return $this->_clientSystemId;
|
| 1034 |
+
}
|
| 1035 |
+
|
| 1036 |
+
/**
|
| 1037 |
+
* Set data for parcels with explicit/fixed IDs (from the second one onward)
|
| 1038 |
+
* @param array $parcels List of ParamParcelInfo
|
| 1039 |
+
*/
|
| 1040 |
+
public function setParcels($parcels) {
|
| 1041 |
+
$this->_parcels = $parcels;
|
| 1042 |
+
}
|
| 1043 |
+
|
| 1044 |
+
/**
|
| 1045 |
+
* Get data for parcels with explicit/fixed IDs (from the second one onward)
|
| 1046 |
+
* @return array List of ParamParcelInfo
|
| 1047 |
+
*/
|
| 1048 |
+
public function getParcels() {
|
| 1049 |
+
return $this->_parcels;
|
| 1050 |
+
}
|
| 1051 |
+
|
| 1052 |
+
/**
|
| 1053 |
+
* Set flag to set or not explicit data on processing parcels with sequence number > 1
|
| 1054 |
+
* @param boolean $skipAutomaticParcelsCreation
|
| 1055 |
+
*/
|
| 1056 |
+
public function setSkipAutomaticParcelsCreation($skipAutomaticParcelsCreation) {
|
| 1057 |
+
$this->_skipAutomaticParcelsCreation = $skipAutomaticParcelsCreation;
|
| 1058 |
+
}
|
| 1059 |
+
|
| 1060 |
+
/**
|
| 1061 |
+
* Check flag to set or not explicit data on processing parcels with sequence number > 1
|
| 1062 |
+
* @return boolean
|
| 1063 |
+
*/
|
| 1064 |
+
public function isSkipAutomaticParcelsCreation() {
|
| 1065 |
+
return $this->_skipAutomaticParcelsCreation;
|
| 1066 |
+
}
|
| 1067 |
+
|
| 1068 |
+
/**
|
| 1069 |
+
* Set flag service/system to allow parcels to be added to the shipment at a later stage
|
| 1070 |
+
* @param boolean $pendingParcelsDescription
|
| 1071 |
+
*/
|
| 1072 |
+
public function setPendingParcelsDescription($pendingParcelsDescription) {
|
| 1073 |
+
$this->_pendingParcelsDescription = $pendingParcelsDescription;
|
| 1074 |
+
}
|
| 1075 |
+
|
| 1076 |
+
/**
|
| 1077 |
+
* Check whether service/system to allow parcels to be added to the shipment at a later stage
|
| 1078 |
+
* @return boolean
|
| 1079 |
+
*/
|
| 1080 |
+
public function isPendingParcelsDescription() {
|
| 1081 |
+
return $this->_pendingParcelsDescription;
|
| 1082 |
+
}
|
| 1083 |
+
|
| 1084 |
+
/**
|
| 1085 |
+
* Set flag the service/system to allow BOL's modification at a later stage.
|
| 1086 |
+
* @param boolean $pendingShipmentDescription
|
| 1087 |
+
*/
|
| 1088 |
+
public function setPendingShipmentDescription($pendingShipmentDescription) {
|
| 1089 |
+
$this->_pendingShipmentDescription = $pendingShipmentDescription;
|
| 1090 |
+
}
|
| 1091 |
+
|
| 1092 |
+
/**
|
| 1093 |
+
* Check whether the service/system should allow BOL's modification at a later stage.
|
| 1094 |
+
* @return boolean
|
| 1095 |
+
*/
|
| 1096 |
+
public function isPendingShipmentDescription() {
|
| 1097 |
+
return $this->_pendingShipmentDescription;
|
| 1098 |
+
}
|
| 1099 |
+
|
| 1100 |
+
/**
|
| 1101 |
+
* Get return service request list
|
| 1102 |
+
* @return array of ParamReturnServiceRequest
|
| 1103 |
+
*/
|
| 1104 |
+
public function getRetServicesRequest() {
|
| 1105 |
+
return $this->_retServicesRequest;
|
| 1106 |
+
}
|
| 1107 |
+
|
| 1108 |
+
/**
|
| 1109 |
+
* Set return service request list
|
| 1110 |
+
* @param array of ParamReturnServiceRequest
|
| 1111 |
+
*/
|
| 1112 |
+
public function setRetServicesRequest($retServicesRequest) {
|
| 1113 |
+
$this->_retServicesRequest = $retServicesRequest;
|
| 1114 |
+
}
|
| 1115 |
+
|
| 1116 |
+
/**
|
| 1117 |
+
* Get return service request list
|
| 1118 |
+
* @return ParamReturnShipmentRequest
|
| 1119 |
+
*/
|
| 1120 |
+
public function getRetShipmentRequest() {
|
| 1121 |
+
return $this->_retShipmentRequest;
|
| 1122 |
+
}
|
| 1123 |
+
|
| 1124 |
+
/**
|
| 1125 |
+
* Set return shipment request
|
| 1126 |
+
* @param ParamReturnShipmentRequest $retShipmentRequest
|
| 1127 |
+
*/
|
| 1128 |
+
public function setRetShipmentRequest($retShipmentRequest) {
|
| 1129 |
+
$this->_retShipmentRequest = $retShipmentRequest;
|
| 1130 |
+
}
|
| 1131 |
+
|
| 1132 |
+
/**
|
| 1133 |
+
* Return standard class from this class
|
| 1134 |
+
* @return stdClass
|
| 1135 |
+
*/
|
| 1136 |
+
public function toStdClass() {
|
| 1137 |
+
$stdClass = new stdClass();
|
| 1138 |
+
$stdClass->billOfLading = $this->_billOfLading;
|
| 1139 |
+
$stdClass->takingDate = $this->_takingDate;
|
| 1140 |
+
$stdClass->serviceTypeId = $this->_serviceTypeId;
|
| 1141 |
+
$stdClass->officeToBeCalledId = $this->_officeToBeCalledId;
|
| 1142 |
+
if (isset($this->_optionsBeforePayment)) {
|
| 1143 |
+
$stdClass->optionsBeforePayment = $this->_optionsBeforePayment->toStdClass();
|
| 1144 |
+
}
|
| 1145 |
+
|
| 1146 |
+
$stdClass->fixedTimeDelivery = $this->_fixedTimeDelivery;
|
| 1147 |
+
$stdClass->deferredDeliveryWorkDays = $this->_deferredDeliveryWorkDays;
|
| 1148 |
+
$stdClass->backDocumentsRequest = $this->_backDocumentsRequest;
|
| 1149 |
+
$stdClass->backReceiptRequest = $this->_backReceiptRequest;
|
| 1150 |
+
$stdClass->willBringToOffice = $this->_willBringToOffice;
|
| 1151 |
+
$stdClass->willBringToOfficeId = $this->_willBringToOfficeId;
|
| 1152 |
+
$stdClass->specialDeliveryId = $this->_specialDeliveryId;
|
| 1153 |
+
$stdClass->amountInsuranceBase = $this->_amountInsuranceBase;
|
| 1154 |
+
$stdClass->amountCodBase = $this->_amountCodBase;
|
| 1155 |
+
$stdClass->payCodToThirdParty = $this->_payCodToThirdParty;
|
| 1156 |
+
$stdClass->retMoneyTransferReqAmount = $this->_retMoneyTransferReqAmount;
|
| 1157 |
+
$stdClass->retThirdPartyPayer = $this->_retThirdPartyPayer;
|
| 1158 |
+
$stdClass->parcelsCount = $this->_parcelsCount;
|
| 1159 |
+
if (isset($this->_size)) {
|
| 1160 |
+
$stdClass->size = $this->_size->toStdClass();
|
| 1161 |
+
}
|
| 1162 |
+
$stdClass->weightDeclared = $this->_weightDeclared;
|
| 1163 |
+
$stdClass->contents = $this->_contents;
|
| 1164 |
+
$stdClass->packing = $this->_packing;
|
| 1165 |
+
|
| 1166 |
+
$arrStdClassParamPackings = array();
|
| 1167 |
+
if (isset($this->_packings)) {
|
| 1168 |
+
if (is_array($this->_packings)) {
|
| 1169 |
+
for($i = 0; $i < count($this->_packings); $i++) {
|
| 1170 |
+
$arrStdClassParamPackings[$i] = $this->_packings[$i]->toStdClass();
|
| 1171 |
+
}
|
| 1172 |
+
} else {
|
| 1173 |
+
$arrStdClassParamPackings[0] = $this->_packings->toStdClass();
|
| 1174 |
+
}
|
| 1175 |
+
}
|
| 1176 |
+
$stdClass->packings = $arrStdClassParamPackings;
|
| 1177 |
+
|
| 1178 |
+
$stdClass->packId = $this->_packId;
|
| 1179 |
+
$stdClass->documents = $this->_documents;
|
| 1180 |
+
$stdClass->fragile = $this->_fragile;
|
| 1181 |
+
$stdClass->palletized = $this->_palletized;
|
| 1182 |
+
if (isset($this->_sender)) {
|
| 1183 |
+
$stdClass->sender = $this->_sender->toStdClass();
|
| 1184 |
+
}
|
| 1185 |
+
if (isset($this->_receiver)) {
|
| 1186 |
+
$stdClass->receiver = $this->_receiver->toStdClass();
|
| 1187 |
+
}
|
| 1188 |
+
$stdClass->payerType = $this->_payerType;
|
| 1189 |
+
$stdClass->payerRefId = $this->_payerRefId;
|
| 1190 |
+
$stdClass->payerTypeInsurance = $this->_payerTypeInsurance;
|
| 1191 |
+
$stdClass->payerTypePackings = $this->_payerTypePackings;
|
| 1192 |
+
$stdClass->payerRefInsuranceId = $this->_payerRefInsuranceId;
|
| 1193 |
+
$stdClass->payerRefPackingsId = $this->_payerRefPackingsId;
|
| 1194 |
+
$stdClass->noteClient = $this->_noteClient;
|
| 1195 |
+
if (isset($this->_discCalc)) {
|
| 1196 |
+
$stdClass->discCalc = $this->_discCalc->toStdClass();
|
| 1197 |
+
}
|
| 1198 |
+
$stdClass->retToClientId = $this->_retToClientId;
|
| 1199 |
+
$stdClass->ref1 = $this->_ref1;
|
| 1200 |
+
$stdClass->ref2 = $this->_ref2;
|
| 1201 |
+
$stdClass->clientSystemId = $this->_clientSystemId;
|
| 1202 |
+
$arrStdClassParamParcelInfo = array();
|
| 1203 |
+
if (isset($this->_parcels)) {
|
| 1204 |
+
if (is_array($this->_parcels)) {
|
| 1205 |
+
for($i = 0; $i < count($this->_parcels); $i++) {
|
| 1206 |
+
$arrStdClassParamParcelInfo[$i] = $this->_parcels[$i]->toStdClass();
|
| 1207 |
+
}
|
| 1208 |
+
} else {
|
| 1209 |
+
$arrStdClassParamParcelInfo[0] = $this->_parcels->toStdClass();
|
| 1210 |
+
}
|
| 1211 |
+
}
|
| 1212 |
+
$stdClass->parcels = $arrStdClassParamParcelInfo;
|
| 1213 |
+
$stdClass->skipAutomaticParcelsCreation = $this->_skipAutomaticParcelsCreation;
|
| 1214 |
+
$stdClass->pendingParcelsDescription = $this->_pendingParcelsDescription;
|
| 1215 |
+
$stdClass->pendingShipmentDescription = $this->_pendingShipmentDescription;
|
| 1216 |
+
$arrStdClassParamReturnServiceRequest = array();
|
| 1217 |
+
if (isset($this->_retServicesRequest)) {
|
| 1218 |
+
if (is_array($this->_retServicesRequest)) {
|
| 1219 |
+
for($i = 0; $i < count($this->_retServicesRequest); $i++) {
|
| 1220 |
+
$arrStdClassParamReturnServiceRequest[$i] = $this->_retServicesRequest[$i]->toStdClass();
|
| 1221 |
+
}
|
| 1222 |
+
} else {
|
| 1223 |
+
$arrStdClassParamReturnServiceRequest[0] = $this->_retServicesRequest->toStdClass();
|
| 1224 |
+
}
|
| 1225 |
+
}
|
| 1226 |
+
$stdClass->retServicesRequest = $arrStdClassParamReturnServiceRequest;
|
| 1227 |
+
if (isset($this->_retShipmentRequest)) {
|
| 1228 |
+
$stdClass->retShipmentRequest = $this->_retShipmentRequest->toStdClass();
|
| 1229 |
+
}
|
| 1230 |
+
return $stdClass;
|
| 1231 |
+
}
|
| 1232 |
+
}
|
| 1233 |
Â
?>
|
lib/SpeedyEPS/ver01/ParamReturnServiceRequest.class.php
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* Instances of this class are passed as a parameter of Speedy web service calls to specify return service requests
|
| 5 |
+
* @since 2.5.0
|
| 6 |
+
*/
|
| 7 |
+
class ParamReturnServiceRequest {
|
| 8 |
+
|
| 9 |
+
/**
|
| 10 |
+
* Number of parcels
|
| 11 |
+
* MANDATORY: Only for updateBillOfLading. Null otherwise
|
| 12 |
+
* @var integer signed 32-bit integer
|
| 13 |
+
*/
|
| 14 |
+
private $_parcelsCount;
|
| 15 |
+
|
| 16 |
+
/**
|
| 17 |
+
* Service type id
|
| 18 |
+
* According to return service configuration and limited to the number of parcels of original bill of lading. Minimum 1
|
| 19 |
+
* MANDATORY
|
| 20 |
+
* @var integer Signed 64-bit
|
| 21 |
+
*/
|
| 22 |
+
private $_serviceTypeId;
|
| 23 |
+
|
| 24 |
+
/**
|
| 25 |
+
* Get courier service type ID
|
| 26 |
+
* @return integer Signed 64-bit
|
| 27 |
+
*/
|
| 28 |
+
public function getServiceTypeId() {
|
| 29 |
+
return $this->_serviceTypeId;
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
/**
|
| 33 |
+
* Set courier service type ID
|
| 34 |
+
* @param integer $serviceTypeId Signed 64-bit
|
| 35 |
+
*/
|
| 36 |
+
public function setServiceTypeId($serviceTypeId) {
|
| 37 |
+
$this->_serviceTypeId = $serviceTypeId;
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
/**
|
| 41 |
+
* Get parcels count
|
| 42 |
+
* @return integer Signed 32-bit
|
| 43 |
+
*/
|
| 44 |
+
public function getParcelsCount() {
|
| 45 |
+
return $this->_parcelsCount;
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
+
/**
|
| 49 |
+
* Set parcels count
|
| 50 |
+
* @param integer $parcelsCount Signed 32-bit
|
| 51 |
+
*/
|
| 52 |
+
public function setParcelsCount($parcelsCount) {
|
| 53 |
+
$this->_parcelsCount = $parcelsCount;
|
| 54 |
+
}
|
| 55 |
+
|
| 56 |
+
/**
|
| 57 |
+
* Return standard class from this class
|
| 58 |
+
* @return stdClass
|
| 59 |
+
*/
|
| 60 |
+
public function toStdClass() {
|
| 61 |
+
$stdClass = new stdClass();
|
| 62 |
+
$stdClass->parcelsCount = $this->_parcelsCount;
|
| 63 |
+
$stdClass->serviceTypeId = $this->_serviceTypeId;
|
| 64 |
+
return $stdClass;
|
| 65 |
+
}
|
| 66 |
+
}
|
| 67 |
+
?>
|
lib/SpeedyEPS/ver01/ParamReturnShipmentRequest.class.php
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* Instances of this class are passed as a parameter of Speedy web service calls to specify return shipment requests
|
| 5 |
+
* @since 2.5.0
|
| 6 |
+
*/
|
| 7 |
+
class ParamReturnShipmentRequest {
|
| 8 |
+
|
| 9 |
+
/**
|
| 10 |
+
* Insurance base amount
|
| 11 |
+
* MANDATORY: NO
|
| 12 |
+
* @var double Signed 64-bit
|
| 13 |
+
*/
|
| 14 |
+
private $_amountInsuranceBase;
|
| 15 |
+
|
| 16 |
+
/**
|
| 17 |
+
* Fragile flag
|
| 18 |
+
* MANDATORY: NO
|
| 19 |
+
* @var boolean
|
| 20 |
+
*/
|
| 21 |
+
private $_fragile;
|
| 22 |
+
|
| 23 |
+
/**
|
| 24 |
+
* Number of parcels
|
| 25 |
+
* MANDATORY: YES
|
| 26 |
+
* @var integer Signed 32-bit
|
| 27 |
+
*/
|
| 28 |
+
private $_parcelsCount;
|
| 29 |
+
|
| 30 |
+
/**
|
| 31 |
+
* Service type id
|
| 32 |
+
* MANDATORY: YES
|
| 33 |
+
* @var integer Signed 64-bit
|
| 34 |
+
*/
|
| 35 |
+
private $_serviceTypeId;
|
| 36 |
+
|
| 37 |
+
/**
|
| 38 |
+
* Gets insurance base amount
|
| 39 |
+
* @return double signed 64-bit Insurance base amount
|
| 40 |
+
*/
|
| 41 |
+
public function getAmountInsuranceBase() {
|
| 42 |
+
return $this->_amountInsuranceBase;
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
/**
|
| 46 |
+
* Sets the insurance base amount
|
| 47 |
+
* @param double signed 64-bit $amountInsuranceBase Insurance base amount
|
| 48 |
+
*/
|
| 49 |
+
public function setAmountInsuranceBase($amountInsuranceBase) {
|
| 50 |
+
$this->_amountInsuranceBase = $amountInsuranceBase;
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
/**
|
| 54 |
+
* Gets fragile flag
|
| 55 |
+
* @return boolean Fragile flag
|
| 56 |
+
*/
|
| 57 |
+
public function isFragile() {
|
| 58 |
+
return $this->_fragile;
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
/**
|
| 62 |
+
* Sets fragile flag
|
| 63 |
+
* @param boolean $fragile Fragile flag
|
| 64 |
+
*/
|
| 65 |
+
public function setFragile($fragile) {
|
| 66 |
+
$this->_fragile = $fragile;
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
/**
|
| 70 |
+
* Get courier service type ID
|
| 71 |
+
* @return integer Signed 64-bit
|
| 72 |
+
*/
|
| 73 |
+
public function getServiceTypeId() {
|
| 74 |
+
return $this->_serviceTypeId;
|
| 75 |
+
}
|
| 76 |
+
|
| 77 |
+
/**
|
| 78 |
+
* Set courier service type ID
|
| 79 |
+
* @param integer $serviceTypeId Signed 64-bit
|
| 80 |
+
*/
|
| 81 |
+
public function setServiceTypeId($serviceTypeId) {
|
| 82 |
+
$this->_serviceTypeId = $serviceTypeId;
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
/**
|
| 86 |
+
* Get parcels count
|
| 87 |
+
* @return integer Signed 32-bit
|
| 88 |
+
*/
|
| 89 |
+
public function getParcelsCount() {
|
| 90 |
+
return $this->_parcelsCount;
|
| 91 |
+
}
|
| 92 |
+
|
| 93 |
+
/**
|
| 94 |
+
* Set parcels count
|
| 95 |
+
* @param integer $parcelsCount Signed 32-bit
|
| 96 |
+
*/
|
| 97 |
+
public function setParcelsCount($parcelsCount) {
|
| 98 |
+
$this->_parcelsCount = $parcelsCount;
|
| 99 |
+
}
|
| 100 |
+
|
| 101 |
+
/**
|
| 102 |
+
* Return standard class from this class
|
| 103 |
+
* @return stdClass
|
| 104 |
+
*/
|
| 105 |
+
public function toStdClass() {
|
| 106 |
+
$stdClass = new stdClass();
|
| 107 |
+
$stdClass->amountInsuranceBase = $this->_amountInsuranceBase;
|
| 108 |
+
$stdClass->fragile = $this->_fragile;
|
| 109 |
+
$stdClass->parcelsCount = $this->_parcelsCount;
|
| 110 |
+
$stdClass->serviceTypeId = $this->_serviceTypeId;
|
| 111 |
+
return $stdClass;
|
| 112 |
+
}
|
| 113 |
+
}
|
| 114 |
+
?>
|
lib/SpeedyEPS/ver01/ParamSearchByRefNum.class.php
CHANGED
|
File without changes
|
lib/SpeedyEPS/ver01/ParamSearchSecondaryPickings.class.php
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Instances of this class are used as parameters for searchSecondaryPickings method
|
| 4 |
+
*/
|
| 5 |
+
class ParamSearchSecondaryPickings {
|
| 6 |
+
|
| 7 |
+
/**
|
| 8 |
+
* BOL of the primary shipment
|
| 9 |
+
* MANDATORY: YES
|
| 10 |
+
* @var integer signed 64-bit
|
| 11 |
+
*/
|
| 12 |
+
private $_billOfLading;
|
| 13 |
+
|
| 14 |
+
/**
|
| 15 |
+
* Filters the list for shipments of the specified type only. Not used if null.
|
| 16 |
+
* 1 = PICKING_TYPE_RETURN_SHIPMENT - return documents/receipt/service/shipment
|
| 17 |
+
* 2 = PICKING_TYPE_STORAGE_PAYMENT - warehouse charges
|
| 18 |
+
* 3 = PICKING_TYPE_REDIRECT - redirect shipment
|
| 19 |
+
* 4 = PICKING_TYPE_SEND_BACK - return to sender
|
| 20 |
+
* 5 = PICKING_TYPE_MONEY_TRANSFER - money transfer
|
| 21 |
+
* 6 = PICKING_TYPE_TRANSPORT_DAMAGED - damaged shipment transport
|
| 22 |
+
* MANDATORY: NO
|
| 23 |
+
* @var integer Signed 32-bit
|
| 24 |
+
*/
|
| 25 |
+
private $_secondaryPickingType;
|
| 26 |
+
|
| 27 |
+
/**
|
| 28 |
+
* Set BOL number
|
| 29 |
+
* @param integer signed 64-bit $billOfLading
|
| 30 |
+
*/
|
| 31 |
+
public function setBillOfLading($billOfLading) {
|
| 32 |
+
$this->_billOfLading = $billOfLading;
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
/**
|
| 36 |
+
* Get BOL number
|
| 37 |
+
* @return integer signed 64-bit
|
| 38 |
+
*/
|
| 39 |
+
public function getBillOfLading() {
|
| 40 |
+
return $this->_billOfLading;
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
/**
|
| 44 |
+
* Set search type
|
| 45 |
+
* 1 = PICKING_TYPE_RETURN_SHIPMENT - return documents/receipt/service/shipment
|
| 46 |
+
* 2 = PICKING_TYPE_STORAGE_PAYMENT - warehouse charges
|
| 47 |
+
* 3 = PICKING_TYPE_REDIRECT - redirect shipment
|
| 48 |
+
* 4 = PICKING_TYPE_SEND_BACK - return to sender
|
| 49 |
+
* 5 = PICKING_TYPE_MONEY_TRANSFER - money transfer
|
| 50 |
+
* 6 = PICKING_TYPE_TRANSPORT_DAMAGED - damaged shipment transport
|
| 51 |
+
* @param integer $secondaryPickingType Signed 32-bit
|
| 52 |
+
*/
|
| 53 |
+
public function setSecondaryPickingType($secondaryPickingType) {
|
| 54 |
+
$this->_secondaryPickingType = $secondaryPickingType;
|
| 55 |
+
}
|
| 56 |
+
|
| 57 |
+
/**
|
| 58 |
+
* Get search type
|
| 59 |
+
* 1 = PICKING_TYPE_RETURN_SHIPMENT - return documents/receipt/service/shipment
|
| 60 |
+
* 2 = PICKING_TYPE_STORAGE_PAYMENT - warehouse charges
|
| 61 |
+
* 3 = PICKING_TYPE_REDIRECT - redirect shipment
|
| 62 |
+
* 4 = PICKING_TYPE_SEND_BACK - return to sender
|
| 63 |
+
* 5 = PICKING_TYPE_MONEY_TRANSFER - money transfer
|
| 64 |
+
* 6 = PICKING_TYPE_TRANSPORT_DAMAGED - damaged shipment transport
|
| 65 |
+
*/
|
| 66 |
+
public function getSecondaryPickingType() {
|
| 67 |
+
return $this->_secondaryPickingType;
|
| 68 |
+
}
|
| 69 |
+
|
| 70 |
+
/**
|
| 71 |
+
* Return standard class from this class
|
| 72 |
+
* @return stdClass
|
| 73 |
+
*/
|
| 74 |
+
public function toStdClass() {
|
| 75 |
+
$stdClass = new stdClass();
|
| 76 |
+
$stdClass->billOfLading = $this->_billOfLading;
|
| 77 |
+
$stdClass->secondaryPickingType = $this->_secondaryPickingType;
|
| 78 |
+
return $stdClass;
|
| 79 |
+
}
|
| 80 |
+
}
|
| 81 |
+
?>
|
lib/SpeedyEPS/ver01/ResultAddress.class.php
CHANGED
|
@@ -1,314 +1,378 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
/**
|
| 3 |
-
* Instances of this class are returned as a result of web service method calls for clients
|
| 4 |
-
*/
|
| 5 |
-
class ResultAddress {
|
| 6 |
-
|
| 7 |
-
/**
|
| 8 |
-
* Site ID
|
| 9 |
-
* @var integer Signed 64-bit
|
| 10 |
-
*/
|
| 11 |
-
private $_siteId;
|
| 12 |
-
|
| 13 |
-
/**
|
| 14 |
-
* Site name
|
| 15 |
-
* @var string
|
| 16 |
-
*/
|
| 17 |
-
private $_siteName;
|
| 18 |
-
|
| 19 |
-
/**
|
| 20 |
-
* Site type
|
| 21 |
-
* @var string
|
| 22 |
-
*/
|
| 23 |
-
private $_siteType;
|
| 24 |
-
|
| 25 |
-
/**
|
| 26 |
-
* Municpality name
|
| 27 |
-
* @var string
|
| 28 |
-
*/
|
| 29 |
-
private $_municipalityName;
|
| 30 |
-
|
| 31 |
-
/**
|
| 32 |
-
* Region name
|
| 33 |
-
* @var string
|
| 34 |
-
*/
|
| 35 |
-
private $_regionName;
|
| 36 |
-
|
| 37 |
-
/**
|
| 38 |
-
* Post code
|
| 39 |
-
* @var string
|
| 40 |
-
*/
|
| 41 |
-
private $_postCode;
|
| 42 |
-
|
| 43 |
-
/**
|
| 44 |
-
* Street name
|
| 45 |
-
* @var string
|
| 46 |
-
*/
|
| 47 |
-
private $_streetName;
|
| 48 |
-
|
| 49 |
-
/**
|
| 50 |
-
* Street type
|
| 51 |
-
* @var string
|
| 52 |
-
*/
|
| 53 |
-
private $_streetType;
|
| 54 |
-
|
| 55 |
-
/**
|
| 56 |
-
* Street ID
|
| 57 |
-
* @var integer Signed 64-bit
|
| 58 |
-
*/
|
| 59 |
-
private $_streetId;
|
| 60 |
-
|
| 61 |
-
/**
|
| 62 |
-
* Quarter name
|
| 63 |
-
* @var string
|
| 64 |
-
*/
|
| 65 |
-
private $_quarterName;
|
| 66 |
-
|
| 67 |
-
/**
|
| 68 |
-
* Quarter type
|
| 69 |
-
* @var string
|
| 70 |
-
*/
|
| 71 |
-
private $_quarterType;
|
| 72 |
-
|
| 73 |
-
/**
|
| 74 |
-
* Quarter ID
|
| 75 |
-
* @var long Signed 64-bit
|
| 76 |
-
*/
|
| 77 |
-
private $_quarterId;
|
| 78 |
-
|
| 79 |
-
/**
|
| 80 |
-
* Street No
|
| 81 |
-
* @var string
|
| 82 |
-
*/
|
| 83 |
-
private $_streetNo;
|
| 84 |
-
|
| 85 |
-
/**
|
| 86 |
-
* Block No
|
| 87 |
-
* @var string
|
| 88 |
-
*/
|
| 89 |
-
private $_blockNo;
|
| 90 |
-
|
| 91 |
-
/**
|
| 92 |
-
* Entrance No
|
| 93 |
-
* @var string
|
| 94 |
-
*/
|
| 95 |
-
private $_entranceNo;
|
| 96 |
-
|
| 97 |
-
/**
|
| 98 |
-
* Floor No
|
| 99 |
-
* @var string
|
| 100 |
-
*/
|
| 101 |
-
private $_floorNo;
|
| 102 |
-
|
| 103 |
-
/**
|
| 104 |
-
* Appartment No
|
| 105 |
-
* @var string
|
| 106 |
-
*/
|
| 107 |
-
private $_apartmentNo;
|
| 108 |
-
|
| 109 |
-
/**
|
| 110 |
-
* Address note
|
| 111 |
-
* @var string
|
| 112 |
-
*/
|
| 113 |
-
private $_addressNote;
|
| 114 |
-
|
| 115 |
-
/**
|
| 116 |
-
* Common object ID
|
| 117 |
-
* @var integer Signed 64-bit
|
| 118 |
-
*/
|
| 119 |
-
private $_commonObjectId;
|
| 120 |
-
|
| 121 |
-
/**
|
| 122 |
-
* Common object name
|
| 123 |
-
* @var string
|
| 124 |
-
*/
|
| 125 |
-
private $_commonObjectName;
|
| 126 |
-
|
| 127 |
-
/**
|
| 128 |
-
*
|
| 129 |
-
* @
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
*
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
}
|
| 185 |
-
|
| 186 |
-
/**
|
| 187 |
-
* Get
|
| 188 |
-
* @return
|
| 189 |
-
*/
|
| 190 |
-
public function
|
| 191 |
-
return $this->
|
| 192 |
-
}
|
| 193 |
-
|
| 194 |
-
/**
|
| 195 |
-
* Get
|
| 196 |
-
* @return string
|
| 197 |
-
*/
|
| 198 |
-
public function
|
| 199 |
-
return $this->
|
| 200 |
-
}
|
| 201 |
-
|
| 202 |
-
/**
|
| 203 |
-
* Get
|
| 204 |
-
* @return string
|
| 205 |
-
*/
|
| 206 |
-
public function
|
| 207 |
-
return $this->
|
| 208 |
-
}
|
| 209 |
-
|
| 210 |
-
/**
|
| 211 |
-
* Get
|
| 212 |
-
* @return string
|
| 213 |
-
*/
|
| 214 |
-
public function
|
| 215 |
-
return $this->
|
| 216 |
-
}
|
| 217 |
-
|
| 218 |
-
/**
|
| 219 |
-
* Get
|
| 220 |
-
* @return
|
| 221 |
-
*/
|
| 222 |
-
public function
|
| 223 |
-
return $this->
|
| 224 |
-
}
|
| 225 |
-
|
| 226 |
-
/**
|
| 227 |
-
* Get
|
| 228 |
-
* @return string
|
| 229 |
-
*/
|
| 230 |
-
public function
|
| 231 |
-
return $this->
|
| 232 |
-
}
|
| 233 |
-
|
| 234 |
-
/**
|
| 235 |
-
* Get
|
| 236 |
-
* @return string
|
| 237 |
-
*/
|
| 238 |
-
public function
|
| 239 |
-
return $this->
|
| 240 |
-
}
|
| 241 |
-
|
| 242 |
-
/**
|
| 243 |
-
* Get
|
| 244 |
-
* @return
|
| 245 |
-
*/
|
| 246 |
-
public function
|
| 247 |
-
return $this->
|
| 248 |
-
}
|
| 249 |
-
|
| 250 |
-
/**
|
| 251 |
-
* Get street
|
| 252 |
-
* @return
|
| 253 |
-
*/
|
| 254 |
-
public function
|
| 255 |
-
return $this->
|
| 256 |
-
}
|
| 257 |
-
|
| 258 |
-
/**
|
| 259 |
-
* Get
|
| 260 |
-
* @return string
|
| 261 |
-
*/
|
| 262 |
-
public function
|
| 263 |
-
return $this->
|
| 264 |
-
}
|
| 265 |
-
|
| 266 |
-
/**
|
| 267 |
-
* Get
|
| 268 |
-
* @return string
|
| 269 |
-
*/
|
| 270 |
-
public function
|
| 271 |
-
return $this->
|
| 272 |
-
}
|
| 273 |
-
|
| 274 |
-
/**
|
| 275 |
-
* Get
|
| 276 |
-
* @return
|
| 277 |
-
*/
|
| 278 |
-
public function
|
| 279 |
-
return $this->
|
| 280 |
-
}
|
| 281 |
-
|
| 282 |
-
/**
|
| 283 |
-
* Get
|
| 284 |
-
* @return string
|
| 285 |
-
*/
|
| 286 |
-
public function
|
| 287 |
-
return $this->
|
| 288 |
-
}
|
| 289 |
-
|
| 290 |
-
/**
|
| 291 |
-
* Get
|
| 292 |
-
* @return string
|
| 293 |
-
*/
|
| 294 |
-
public function
|
| 295 |
-
return $this->
|
| 296 |
-
}
|
| 297 |
-
|
| 298 |
-
/**
|
| 299 |
-
* Get
|
| 300 |
-
* @return
|
| 301 |
-
*/
|
| 302 |
-
public function
|
| 303 |
-
return $this->
|
| 304 |
-
}
|
| 305 |
-
|
| 306 |
-
/**
|
| 307 |
-
* Get
|
| 308 |
-
* @return string
|
| 309 |
-
*/
|
| 310 |
-
public function
|
| 311 |
-
return $this->
|
| 312 |
-
}
|
| 313 |
-
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
| 314 |
Â
?>
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Instances of this class are returned as a result of web service method calls for clients
|
| 4 |
+
*/
|
| 5 |
+
class ResultAddress {
|
| 6 |
+
|
| 7 |
+
/**
|
| 8 |
+
* Site ID
|
| 9 |
+
* @var integer Signed 64-bit
|
| 10 |
+
*/
|
| 11 |
+
private $_siteId;
|
| 12 |
+
|
| 13 |
+
/**
|
| 14 |
+
* Site name
|
| 15 |
+
* @var string
|
| 16 |
+
*/
|
| 17 |
+
private $_siteName;
|
| 18 |
+
|
| 19 |
+
/**
|
| 20 |
+
* Site type
|
| 21 |
+
* @var string
|
| 22 |
+
*/
|
| 23 |
+
private $_siteType;
|
| 24 |
+
|
| 25 |
+
/**
|
| 26 |
+
* Municpality name
|
| 27 |
+
* @var string
|
| 28 |
+
*/
|
| 29 |
+
private $_municipalityName;
|
| 30 |
+
|
| 31 |
+
/**
|
| 32 |
+
* Region name
|
| 33 |
+
* @var string
|
| 34 |
+
*/
|
| 35 |
+
private $_regionName;
|
| 36 |
+
|
| 37 |
+
/**
|
| 38 |
+
* Post code
|
| 39 |
+
* @var string
|
| 40 |
+
*/
|
| 41 |
+
private $_postCode;
|
| 42 |
+
|
| 43 |
+
/**
|
| 44 |
+
* Street name
|
| 45 |
+
* @var string
|
| 46 |
+
*/
|
| 47 |
+
private $_streetName;
|
| 48 |
+
|
| 49 |
+
/**
|
| 50 |
+
* Street type
|
| 51 |
+
* @var string
|
| 52 |
+
*/
|
| 53 |
+
private $_streetType;
|
| 54 |
+
|
| 55 |
+
/**
|
| 56 |
+
* Street ID
|
| 57 |
+
* @var integer Signed 64-bit
|
| 58 |
+
*/
|
| 59 |
+
private $_streetId;
|
| 60 |
+
|
| 61 |
+
/**
|
| 62 |
+
* Quarter name
|
| 63 |
+
* @var string
|
| 64 |
+
*/
|
| 65 |
+
private $_quarterName;
|
| 66 |
+
|
| 67 |
+
/**
|
| 68 |
+
* Quarter type
|
| 69 |
+
* @var string
|
| 70 |
+
*/
|
| 71 |
+
private $_quarterType;
|
| 72 |
+
|
| 73 |
+
/**
|
| 74 |
+
* Quarter ID
|
| 75 |
+
* @var long Signed 64-bit
|
| 76 |
+
*/
|
| 77 |
+
private $_quarterId;
|
| 78 |
+
|
| 79 |
+
/**
|
| 80 |
+
* Street No
|
| 81 |
+
* @var string
|
| 82 |
+
*/
|
| 83 |
+
private $_streetNo;
|
| 84 |
+
|
| 85 |
+
/**
|
| 86 |
+
* Block No
|
| 87 |
+
* @var string
|
| 88 |
+
*/
|
| 89 |
+
private $_blockNo;
|
| 90 |
+
|
| 91 |
+
/**
|
| 92 |
+
* Entrance No
|
| 93 |
+
* @var string
|
| 94 |
+
*/
|
| 95 |
+
private $_entranceNo;
|
| 96 |
+
|
| 97 |
+
/**
|
| 98 |
+
* Floor No
|
| 99 |
+
* @var string
|
| 100 |
+
*/
|
| 101 |
+
private $_floorNo;
|
| 102 |
+
|
| 103 |
+
/**
|
| 104 |
+
* Appartment No
|
| 105 |
+
* @var string
|
| 106 |
+
*/
|
| 107 |
+
private $_apartmentNo;
|
| 108 |
+
|
| 109 |
+
/**
|
| 110 |
+
* Address note
|
| 111 |
+
* @var string
|
| 112 |
+
*/
|
| 113 |
+
private $_addressNote;
|
| 114 |
+
|
| 115 |
+
/**
|
| 116 |
+
* Common object ID
|
| 117 |
+
* @var integer Signed 64-bit
|
| 118 |
+
*/
|
| 119 |
+
private $_commonObjectId;
|
| 120 |
+
|
| 121 |
+
/**
|
| 122 |
+
* Common object name
|
| 123 |
+
* @var string
|
| 124 |
+
*/
|
| 125 |
+
private $_commonObjectName;
|
| 126 |
+
|
| 127 |
+
/**
|
| 128 |
+
* Country id
|
| 129 |
+
* @var integer signed 64-bit
|
| 130 |
+
* @since 2.5.0
|
| 131 |
+
*/
|
| 132 |
+
private $_countryId;
|
| 133 |
+
|
| 134 |
+
/**
|
| 135 |
+
* Foreign address line 1
|
| 136 |
+
* @var string
|
| 137 |
+
* @since 2.5.0
|
| 138 |
+
*/
|
| 139 |
+
private $_frnAddressLine1;
|
| 140 |
+
|
| 141 |
+
/**
|
| 142 |
+
* Foreign address line 2
|
| 143 |
+
* @var string
|
| 144 |
+
* @since 2.5.0
|
| 145 |
+
*/
|
| 146 |
+
private $_frnAddressLine2;
|
| 147 |
+
|
| 148 |
+
/**
|
| 149 |
+
* State id
|
| 150 |
+
* @var string
|
| 151 |
+
* @since 2.5.0
|
| 152 |
+
*/
|
| 153 |
+
private $_stateId;
|
| 154 |
+
|
| 155 |
+
/**
|
| 156 |
+
* Constructs new instance of ResultAddress
|
| 157 |
+
* @param stdClass $stdClassResultAddress
|
| 158 |
+
*/
|
| 159 |
+
function __construct($stdClassResultAddress) {
|
| 160 |
+
$this->_siteId = isset($stdClassResultAddress->siteId) ? $stdClassResultAddress->siteId : null;
|
| 161 |
+
$this->_siteName = isset($stdClassResultAddress->siteName) ? $stdClassResultAddress->siteName : null;
|
| 162 |
+
$this->_siteType = isset($stdClassResultAddress->siteType) ? $stdClassResultAddress->siteType : null;
|
| 163 |
+
$this->_municipalityName = isset($stdClassResultAddress->municipalityName) ? $stdClassResultAddress->municipalityName : null;
|
| 164 |
+
$this->_regionName = isset($stdClassResultAddress->regionName) ? $stdClassResultAddress->regionName : null;
|
| 165 |
+
$this->_postCode = isset($stdClassResultAddress->postCode) ? $stdClassResultAddress->postCode : null;
|
| 166 |
+
$this->_streetName = isset($stdClassResultAddress->streetName) ? $stdClassResultAddress->streetName : null;
|
| 167 |
+
$this->_streetType = isset($stdClassResultAddress->streetType) ? $stdClassResultAddress->streetType : null;
|
| 168 |
+
$this->_streetId = isset($stdClassResultAddress->streetId) ? $stdClassResultAddress->streetId : null;
|
| 169 |
+
$this->_quarterName = isset($stdClassResultAddress->quarterName) ? $stdClassResultAddress->quarterName : null;
|
| 170 |
+
$this->_quarterType = isset($stdClassResultAddress->quarterType) ? $stdClassResultAddress->quarterType : null;
|
| 171 |
+
$this->_quarterId = isset($stdClassResultAddress->quarterId) ? $stdClassResultAddress->quarterId : null;
|
| 172 |
+
$this->_streetNo = isset($stdClassResultAddress->streetNo) ? $stdClassResultAddress->streetNo : null;
|
| 173 |
+
$this->_blockNo = isset($stdClassResultAddress->blockNo) ? $stdClassResultAddress->blockNo : null;
|
| 174 |
+
$this->_entranceNo = isset($stdClassResultAddress->entranceNo) ? $stdClassResultAddress->entranceNo : null;
|
| 175 |
+
$this->_floorNo = isset($stdClassResultAddress->floorNo) ? $stdClassResultAddress->floorNo : null;
|
| 176 |
+
$this->_apartmentNo = isset($stdClassResultAddress->apartmentNo) ? $stdClassResultAddress->apartmentNo : null;
|
| 177 |
+
$this->_addressNote = isset($stdClassResultAddress->addressNote) ? $stdClassResultAddress->addressNote : null;
|
| 178 |
+
$this->_commonObjectId = isset($stdClassResultAddress->commonObjectId) ? $stdClassResultAddress->commonObjectId : null;
|
| 179 |
+
$this->_commonObjectName = isset($stdClassResultAddress->commonObjectName) ? $stdClassResultAddress->commonObjectName : null;
|
| 180 |
+
$this->_countryId = isset($stdClassResultAddress->countryId) ? $stdClassResultAddress->countryId : null;
|
| 181 |
+
$this->_frnAddressLine1 = isset($stdClassResultAddress->frnAddressLine1) ? $stdClassResultAddress->frnAddressLine1 : null;
|
| 182 |
+
$this->_frnAddressLine2 = isset($stdClassResultAddress->frnAddressLine2) ? $stdClassResultAddress->frnAddressLine2 : null;
|
| 183 |
+
$this->_stateId = isset($stdClassResultAddress->stateId) ? $stdClassResultAddress->stateId : null;
|
| 184 |
+
}
|
| 185 |
+
|
| 186 |
+
/**
|
| 187 |
+
* Get site ID
|
| 188 |
+
* @return integer Signed 64-bit
|
| 189 |
+
*/
|
| 190 |
+
public function getSiteId() {
|
| 191 |
+
return $this->_siteId;
|
| 192 |
+
}
|
| 193 |
+
|
| 194 |
+
/**
|
| 195 |
+
* Get site name
|
| 196 |
+
* @return string
|
| 197 |
+
*/
|
| 198 |
+
public function getSiteName() {
|
| 199 |
+
return $this->_siteName;
|
| 200 |
+
}
|
| 201 |
+
|
| 202 |
+
/**
|
| 203 |
+
* Get site type
|
| 204 |
+
* @return string
|
| 205 |
+
*/
|
| 206 |
+
public function getSiteType() {
|
| 207 |
+
return $this->_siteType;
|
| 208 |
+
}
|
| 209 |
+
|
| 210 |
+
/**
|
| 211 |
+
* Get municipality name
|
| 212 |
+
* @return string
|
| 213 |
+
*/
|
| 214 |
+
public function getMunicipalityName() {
|
| 215 |
+
return $this->_municipalityName;
|
| 216 |
+
}
|
| 217 |
+
|
| 218 |
+
/**
|
| 219 |
+
* Get region name
|
| 220 |
+
* @return string
|
| 221 |
+
*/
|
| 222 |
+
public function getRegionName() {
|
| 223 |
+
return $this->_regionName;
|
| 224 |
+
}
|
| 225 |
+
|
| 226 |
+
/**
|
| 227 |
+
* Get post code
|
| 228 |
+
* @return string
|
| 229 |
+
*/
|
| 230 |
+
public function getPostCode() {
|
| 231 |
+
return $this->_postCode;
|
| 232 |
+
}
|
| 233 |
+
|
| 234 |
+
/**
|
| 235 |
+
* Get street name
|
| 236 |
+
* @return string
|
| 237 |
+
*/
|
| 238 |
+
public function getStreetName() {
|
| 239 |
+
return $this->_streetName;
|
| 240 |
+
}
|
| 241 |
+
|
| 242 |
+
/**
|
| 243 |
+
* Get street type
|
| 244 |
+
* @return string
|
| 245 |
+
*/
|
| 246 |
+
public function getStreetType() {
|
| 247 |
+
return $this->_streetType;
|
| 248 |
+
}
|
| 249 |
+
|
| 250 |
+
/**
|
| 251 |
+
* Get street ID
|
| 252 |
+
* @return integer Signed 64-bit
|
| 253 |
+
*/
|
| 254 |
+
public function getStreetId() {
|
| 255 |
+
return $this->_streetId;
|
| 256 |
+
}
|
| 257 |
+
|
| 258 |
+
/**
|
| 259 |
+
* Get quarter name
|
| 260 |
+
* @return string
|
| 261 |
+
*/
|
| 262 |
+
public function getQuarterName() {
|
| 263 |
+
return $this->_quarterName;
|
| 264 |
+
}
|
| 265 |
+
|
| 266 |
+
/**
|
| 267 |
+
* Get quarter type
|
| 268 |
+
* @return string
|
| 269 |
+
*/
|
| 270 |
+
public function getQuarterType() {
|
| 271 |
+
return $this->_quarterType;
|
| 272 |
+
}
|
| 273 |
+
|
| 274 |
+
/**
|
| 275 |
+
* Get quarter ID
|
| 276 |
+
* @return integer Signed 64-bit
|
| 277 |
+
*/
|
| 278 |
+
public function getQuarterId() {
|
| 279 |
+
return $this->_quarterId;
|
| 280 |
+
}
|
| 281 |
+
|
| 282 |
+
/**
|
| 283 |
+
* Get street No
|
| 284 |
+
* @return string
|
| 285 |
+
*/
|
| 286 |
+
public function getStreetNo() {
|
| 287 |
+
return $this->_streetNo;
|
| 288 |
+
}
|
| 289 |
+
|
| 290 |
+
/**
|
| 291 |
+
* Get block No
|
| 292 |
+
* @return string
|
| 293 |
+
*/
|
| 294 |
+
public function getBlockNo() {
|
| 295 |
+
return $this->_blockNo;
|
| 296 |
+
}
|
| 297 |
+
|
| 298 |
+
/**
|
| 299 |
+
* Get entrance No
|
| 300 |
+
* @return string
|
| 301 |
+
*/
|
| 302 |
+
public function getEntranceNo() {
|
| 303 |
+
return $this->_entranceNo;
|
| 304 |
+
}
|
| 305 |
+
|
| 306 |
+
/**
|
| 307 |
+
* Get floor No
|
| 308 |
+
* @return string
|
| 309 |
+
*/
|
| 310 |
+
public function getFloorNo() {
|
| 311 |
+
return $this->_floorNo;
|
| 312 |
+
}
|
| 313 |
+
|
| 314 |
+
/**
|
| 315 |
+
* Get appartment No
|
| 316 |
+
* @return string
|
| 317 |
+
*/
|
| 318 |
+
public function getApartmentNo() {
|
| 319 |
+
return $this->_apartmentNo;
|
| 320 |
+
}
|
| 321 |
+
|
| 322 |
+
/**
|
| 323 |
+
* Get address note
|
| 324 |
+
* @return string
|
| 325 |
+
*/
|
| 326 |
+
public function getAddressNote() {
|
| 327 |
+
return $this->_addressNote;
|
| 328 |
+
}
|
| 329 |
+
|
| 330 |
+
/**
|
| 331 |
+
* Get common object ID
|
| 332 |
+
* @return integer Signed 64-bit Common object id
|
| 333 |
+
*/
|
| 334 |
+
public function getCommonObjectId() {
|
| 335 |
+
return $this->_commonObjectId;
|
| 336 |
+
}
|
| 337 |
+
|
| 338 |
+
/**
|
| 339 |
+
* Get common object name
|
| 340 |
+
* @return string Common object name
|
| 341 |
+
*/
|
| 342 |
+
public function getCommonObjectName() {
|
| 343 |
+
return $this->_commonObjectName;
|
| 344 |
+
}
|
| 345 |
+
|
| 346 |
+
/**
|
| 347 |
+
* Get country id
|
| 348 |
+
* @return string Country id
|
| 349 |
+
*/
|
| 350 |
+
public function getCountryId() {
|
| 351 |
+
return $this->_countryId;
|
| 352 |
+
}
|
| 353 |
+
|
| 354 |
+
/**
|
| 355 |
+
* Get foreign address line 1
|
| 356 |
+
* @return string Foreign address line 1
|
| 357 |
+
*/
|
| 358 |
+
public function getFrnAddressLine1() {
|
| 359 |
+
return $this->_frnAddressLine1;
|
| 360 |
+
}
|
| 361 |
+
|
| 362 |
+
/**
|
| 363 |
+
* Get foreign address line 2
|
| 364 |
+
* @return string Foreign address line 2
|
| 365 |
+
*/
|
| 366 |
+
public function getFrnAddressLine2() {
|
| 367 |
+
return $this->_frnAddressLine2;
|
| 368 |
+
}
|
| 369 |
+
|
| 370 |
+
/**
|
| 371 |
+
* Get state id
|
| 372 |
+
* @return string State id
|
| 373 |
+
*/
|
| 374 |
+
public function getStateId() {
|
| 375 |
+
return $this->_stateId;
|
| 376 |
+
}
|
| 377 |
+
}
|
| 378 |
Â
?>
|
lib/SpeedyEPS/ver01/ResultAddressEx.class.php
CHANGED
|
@@ -1,319 +1,381 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
|
| 3 |
-
require_once 'ResultSite.class.php';
|
| 4 |
-
|
| 5 |
-
/**
|
| 6 |
-
* Instances of this class are returned as a result of web service method calls for clients
|
| 7 |
-
*/
|
| 8 |
-
class ResultAddressEx {
|
| 9 |
-
|
| 10 |
-
/**
|
| 11 |
-
* Result site
|
| 12 |
-
* @var ResultSite result site
|
| 13 |
-
*/
|
| 14 |
-
private $_resultSite;
|
| 15 |
-
|
| 16 |
-
/**
|
| 17 |
-
* Post code
|
| 18 |
-
* @var string
|
| 19 |
-
*/
|
| 20 |
-
private $_postCode;
|
| 21 |
-
|
| 22 |
-
/**
|
| 23 |
-
* Street name
|
| 24 |
-
* @var string
|
| 25 |
-
*/
|
| 26 |
-
private $_streetName;
|
| 27 |
-
|
| 28 |
-
/**
|
| 29 |
-
* Street type
|
| 30 |
-
* @var string
|
| 31 |
-
*/
|
| 32 |
-
private $_streetType;
|
| 33 |
-
|
| 34 |
-
/**
|
| 35 |
-
* Street ID
|
| 36 |
-
* @var integer Signed 64-bit
|
| 37 |
-
*/
|
| 38 |
-
private $_streetId;
|
| 39 |
-
|
| 40 |
-
/**
|
| 41 |
-
* Quarter name
|
| 42 |
-
* @var string
|
| 43 |
-
*/
|
| 44 |
-
private $_quarterName;
|
| 45 |
-
|
| 46 |
-
/**
|
| 47 |
-
* Quarter type
|
| 48 |
-
* @var string
|
| 49 |
-
*/
|
| 50 |
-
private $_quarterType;
|
| 51 |
-
|
| 52 |
-
/**
|
| 53 |
-
* Quarter ID
|
| 54 |
-
* @var long Signed 64-bit
|
| 55 |
-
*/
|
| 56 |
-
private $_quarterId;
|
| 57 |
-
|
| 58 |
-
/**
|
| 59 |
-
* Street No
|
| 60 |
-
* @var string
|
| 61 |
-
*/
|
| 62 |
-
private $_streetNo;
|
| 63 |
-
|
| 64 |
-
/**
|
| 65 |
-
* Block No
|
| 66 |
-
* @var string
|
| 67 |
-
*/
|
| 68 |
-
private $_blockNo;
|
| 69 |
-
|
| 70 |
-
/**
|
| 71 |
-
* Entrance No
|
| 72 |
-
* @var string
|
| 73 |
-
*/
|
| 74 |
-
private $_entranceNo;
|
| 75 |
-
|
| 76 |
-
/**
|
| 77 |
-
* Floor No
|
| 78 |
-
* @var string
|
| 79 |
-
*/
|
| 80 |
-
private $_floorNo;
|
| 81 |
-
|
| 82 |
-
/**
|
| 83 |
-
* Appartment No
|
| 84 |
-
* @var string
|
| 85 |
-
*/
|
| 86 |
-
private $_apartmentNo;
|
| 87 |
-
|
| 88 |
-
/**
|
| 89 |
-
* Address note
|
| 90 |
-
* @var string
|
| 91 |
-
*/
|
| 92 |
-
private $_addressNote;
|
| 93 |
-
|
| 94 |
-
/**
|
| 95 |
-
* GPS X coordinate
|
| 96 |
-
* @var signed 64-bit real
|
| 97 |
-
*/
|
| 98 |
-
private $_coordX;
|
| 99 |
-
|
| 100 |
-
/**
|
| 101 |
-
* GPS Y coordinate
|
| 102 |
-
* @var signed 64-bit real
|
| 103 |
-
*/
|
| 104 |
-
private $_coordY;
|
| 105 |
-
|
| 106 |
-
/**
|
| 107 |
-
* GPS coordinate type
|
| 108 |
-
* @var signed 32-bit integer
|
| 109 |
-
*/
|
| 110 |
-
private $_coordTypeId;
|
| 111 |
-
|
| 112 |
-
/**
|
| 113 |
-
* Common object ID
|
| 114 |
-
* @var integer Signed 64-bit
|
| 115 |
-
*/
|
| 116 |
-
private $_commonObjectId;
|
| 117 |
-
|
| 118 |
-
/**
|
| 119 |
-
* Common object name
|
| 120 |
-
* @var string
|
| 121 |
-
*/
|
| 122 |
-
private $_commonObjectName;
|
| 123 |
-
|
| 124 |
-
/**
|
| 125 |
-
* Full address as text
|
| 126 |
-
* @var string
|
| 127 |
-
*/
|
| 128 |
-
private $_fullAddressString;
|
| 129 |
-
|
| 130 |
-
/**
|
| 131 |
-
*
|
| 132 |
-
* @
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
/**
|
| 159 |
-
*
|
| 160 |
-
* @
|
| 161 |
-
*/
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
|
| 189 |
-
|
| 190 |
-
|
| 191 |
-
*
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
|
| 195 |
-
|
| 196 |
-
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
*
|
| 200 |
-
|
| 201 |
-
|
| 202 |
-
|
| 203 |
-
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
|
| 207 |
-
*
|
| 208 |
-
|
| 209 |
-
|
| 210 |
-
|
| 211 |
-
|
| 212 |
-
|
| 213 |
-
|
| 214 |
-
|
| 215 |
-
*
|
| 216 |
-
|
| 217 |
-
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
*
|
| 224 |
-
|
| 225 |
-
|
| 226 |
-
|
| 227 |
-
|
| 228 |
-
|
| 229 |
-
|
| 230 |
-
|
| 231 |
-
*
|
| 232 |
-
|
| 233 |
-
|
| 234 |
-
|
| 235 |
-
|
| 236 |
-
|
| 237 |
-
|
| 238 |
-
|
| 239 |
-
*
|
| 240 |
-
|
| 241 |
-
|
| 242 |
-
|
| 243 |
-
|
| 244 |
-
|
| 245 |
-
|
| 246 |
-
|
| 247 |
-
*
|
| 248 |
-
|
| 249 |
-
|
| 250 |
-
|
| 251 |
-
|
| 252 |
-
|
| 253 |
-
|
| 254 |
-
|
| 255 |
-
*
|
| 256 |
-
|
| 257 |
-
|
| 258 |
-
|
| 259 |
-
|
| 260 |
-
|
| 261 |
-
|
| 262 |
-
|
| 263 |
-
*
|
| 264 |
-
|
| 265 |
-
|
| 266 |
-
|
| 267 |
-
|
| 268 |
-
|
| 269 |
-
|
| 270 |
-
|
| 271 |
-
*
|
| 272 |
-
|
| 273 |
-
|
| 274 |
-
|
| 275 |
-
|
| 276 |
-
|
| 277 |
-
|
| 278 |
-
|
| 279 |
-
|
| 280 |
-
|
| 281 |
-
|
| 282 |
-
|
| 283 |
-
|
| 284 |
-
|
| 285 |
-
|
| 286 |
-
|
| 287 |
-
*
|
| 288 |
-
|
| 289 |
-
|
| 290 |
-
|
| 291 |
-
|
| 292 |
-
|
| 293 |
-
|
| 294 |
-
|
| 295 |
-
*
|
| 296 |
-
|
| 297 |
-
|
| 298 |
-
|
| 299 |
-
|
| 300 |
-
|
| 301 |
-
|
| 302 |
-
|
| 303 |
-
*
|
| 304 |
-
|
| 305 |
-
|
| 306 |
-
|
| 307 |
-
|
| 308 |
-
|
| 309 |
-
|
| 310 |
-
|
| 311 |
-
|
| 312 |
-
|
| 313 |
-
|
| 314 |
-
|
| 315 |
-
|
| 316 |
-
|
| 317 |
-
|
| 318 |
-
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
| 319 |
Â
?>
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
require_once 'ResultSite.class.php';
|
| 4 |
+
|
| 5 |
+
/**
|
| 6 |
+
* Instances of this class are returned as a result of web service method calls for clients
|
| 7 |
+
*/
|
| 8 |
+
class ResultAddressEx {
|
| 9 |
+
|
| 10 |
+
/**
|
| 11 |
+
* Result site
|
| 12 |
+
* @var ResultSite result site
|
| 13 |
+
*/
|
| 14 |
+
private $_resultSite;
|
| 15 |
+
|
| 16 |
+
/**
|
| 17 |
+
* Post code
|
| 18 |
+
* @var string
|
| 19 |
+
*/
|
| 20 |
+
private $_postCode;
|
| 21 |
+
|
| 22 |
+
/**
|
| 23 |
+
* Street name
|
| 24 |
+
* @var string
|
| 25 |
+
*/
|
| 26 |
+
private $_streetName;
|
| 27 |
+
|
| 28 |
+
/**
|
| 29 |
+
* Street type
|
| 30 |
+
* @var string
|
| 31 |
+
*/
|
| 32 |
+
private $_streetType;
|
| 33 |
+
|
| 34 |
+
/**
|
| 35 |
+
* Street ID
|
| 36 |
+
* @var integer Signed 64-bit
|
| 37 |
+
*/
|
| 38 |
+
private $_streetId;
|
| 39 |
+
|
| 40 |
+
/**
|
| 41 |
+
* Quarter name
|
| 42 |
+
* @var string
|
| 43 |
+
*/
|
| 44 |
+
private $_quarterName;
|
| 45 |
+
|
| 46 |
+
/**
|
| 47 |
+
* Quarter type
|
| 48 |
+
* @var string
|
| 49 |
+
*/
|
| 50 |
+
private $_quarterType;
|
| 51 |
+
|
| 52 |
+
/**
|
| 53 |
+
* Quarter ID
|
| 54 |
+
* @var long Signed 64-bit
|
| 55 |
+
*/
|
| 56 |
+
private $_quarterId;
|
| 57 |
+
|
| 58 |
+
/**
|
| 59 |
+
* Street No
|
| 60 |
+
* @var string
|
| 61 |
+
*/
|
| 62 |
+
private $_streetNo;
|
| 63 |
+
|
| 64 |
+
/**
|
| 65 |
+
* Block No
|
| 66 |
+
* @var string
|
| 67 |
+
*/
|
| 68 |
+
private $_blockNo;
|
| 69 |
+
|
| 70 |
+
/**
|
| 71 |
+
* Entrance No
|
| 72 |
+
* @var string
|
| 73 |
+
*/
|
| 74 |
+
private $_entranceNo;
|
| 75 |
+
|
| 76 |
+
/**
|
| 77 |
+
* Floor No
|
| 78 |
+
* @var string
|
| 79 |
+
*/
|
| 80 |
+
private $_floorNo;
|
| 81 |
+
|
| 82 |
+
/**
|
| 83 |
+
* Appartment No
|
| 84 |
+
* @var string
|
| 85 |
+
*/
|
| 86 |
+
private $_apartmentNo;
|
| 87 |
+
|
| 88 |
+
/**
|
| 89 |
+
* Address note
|
| 90 |
+
* @var string
|
| 91 |
+
*/
|
| 92 |
+
private $_addressNote;
|
| 93 |
+
|
| 94 |
+
/**
|
| 95 |
+
* GPS X coordinate
|
| 96 |
+
* @var signed 64-bit real
|
| 97 |
+
*/
|
| 98 |
+
private $_coordX;
|
| 99 |
+
|
| 100 |
+
/**
|
| 101 |
+
* GPS Y coordinate
|
| 102 |
+
* @var signed 64-bit real
|
| 103 |
+
*/
|
| 104 |
+
private $_coordY;
|
| 105 |
+
|
| 106 |
+
/**
|
| 107 |
+
* GPS coordinate type
|
| 108 |
+
* @var signed 32-bit integer
|
| 109 |
+
*/
|
| 110 |
+
private $_coordTypeId;
|
| 111 |
+
|
| 112 |
+
/**
|
| 113 |
+
* Common object ID
|
| 114 |
+
* @var integer Signed 64-bit
|
| 115 |
+
*/
|
| 116 |
+
private $_commonObjectId;
|
| 117 |
+
|
| 118 |
+
/**
|
| 119 |
+
* Common object name
|
| 120 |
+
* @var string
|
| 121 |
+
*/
|
| 122 |
+
private $_commonObjectName;
|
| 123 |
+
|
| 124 |
+
/**
|
| 125 |
+
* Full address as text
|
| 126 |
+
* @var string
|
| 127 |
+
*/
|
| 128 |
+
private $_fullAddressString;
|
| 129 |
+
|
| 130 |
+
/**
|
| 131 |
+
* Country id
|
| 132 |
+
* @var integer signed 64-bit
|
| 133 |
+
* @since 2.5.0
|
| 134 |
+
*/
|
| 135 |
+
private $_countryId;
|
| 136 |
+
|
| 137 |
+
/**
|
| 138 |
+
* Foreign address line 1
|
| 139 |
+
* @var string
|
| 140 |
+
* @since 2.5.0
|
| 141 |
+
*/
|
| 142 |
+
private $_frnAddressLine1;
|
| 143 |
+
|
| 144 |
+
/**
|
| 145 |
+
* Foreign address line 2
|
| 146 |
+
* @var string
|
| 147 |
+
* @since 2.5.0
|
| 148 |
+
*/
|
| 149 |
+
private $_frnAddressLine2;
|
| 150 |
+
|
| 151 |
+
/**
|
| 152 |
+
* State id
|
| 153 |
+
* @var string
|
| 154 |
+
* @since 2.5.0
|
| 155 |
+
*/
|
| 156 |
+
private $_stateId;
|
| 157 |
+
|
| 158 |
+
/**
|
| 159 |
+
* Constructs new instance of ResultAddressEx
|
| 160 |
+
* @param stdClass $stdClassResultAddressEx
|
| 161 |
+
*/
|
| 162 |
+
function __construct($stdClassResultAddressEx) {
|
| 163 |
+
$this->_resultSite = isset($stdClassResultAddressEx->resultSite) ? new ResultSite($stdClassResultAddressEx->resultSite) : null;
|
| 164 |
+
$this->_postCode = isset($stdClassResultAddressEx->postCode) ? $stdClassResultAddressEx->postCode : null;
|
| 165 |
+
$this->_streetName = isset($stdClassResultAddressEx->streetName) ? $stdClassResultAddressEx->streetName : null;
|
| 166 |
+
$this->_streetType = isset($stdClassResultAddressEx->streetType) ? $stdClassResultAddressEx->streetType : null;
|
| 167 |
+
$this->_streetId = isset($stdClassResultAddressEx->streetId) ? $stdClassResultAddressEx->streetId : null;
|
| 168 |
+
$this->_quarterName = isset($stdClassResultAddressEx->quarterName) ? $stdClassResultAddressEx->quarterName : null;
|
| 169 |
+
$this->_quarterType = isset($stdClassResultAddressEx->quarterType) ? $stdClassResultAddressEx->quarterType : null;
|
| 170 |
+
$this->_quarterId = isset($stdClassResultAddressEx->quarterId) ? $stdClassResultAddressEx->quarterId : null;
|
| 171 |
+
$this->_streetNo = isset($stdClassResultAddressEx->streetNo) ? $stdClassResultAddressEx->streetNo : null;
|
| 172 |
+
$this->_blockNo = isset($stdClassResultAddressEx->blockNo) ? $stdClassResultAddressEx->blockNo : null;
|
| 173 |
+
$this->_entranceNo = isset($stdClassResultAddressEx->entranceNo) ? $stdClassResultAddressEx->entranceNo : null;
|
| 174 |
+
$this->_floorNo = isset($stdClassResultAddressEx->floorNo) ? $stdClassResultAddressEx->floorNo : null;
|
| 175 |
+
$this->_apartmentNo = isset($stdClassResultAddressEx->apartmentNo) ? $stdClassResultAddressEx->apartmentNo : null;
|
| 176 |
+
$this->_addressNote = isset($stdClassResultAddressEx->addressNote) ? $stdClassResultAddressEx->addressNote : null;
|
| 177 |
+
$this->_coordX = isset($stdClassResultAddressEx->coordX) ? $stdClassResultAddressEx->coordX : null;
|
| 178 |
+
$this->_coordY = isset($stdClassResultAddressEx->coordY) ? $stdClassResultAddressEx->coordY : null;
|
| 179 |
+
$this->_coordTypeId = isset($stdClassResultAddressEx->coordTypeId) ? $stdClassResultAddressEx->coordTypeId : null;
|
| 180 |
+
$this->_commonObjectId = isset($stdClassResultAddressEx->commonObjectId) ? $stdClassResultAddressEx->commonObjectId : null;
|
| 181 |
+
$this->_commonObjectName = isset($stdClassResultAddressEx->commonObjectName) ? $stdClassResultAddressEx->commonObjectName : null;
|
| 182 |
+
$this->_fullAddressString = isset($stdClassResultAddressEx->fullAddressString) ? $stdClassResultAddressEx->fullAddressString : null;
|
| 183 |
+
$this->_countryId = isset($stdClassResultAddressEx->countryId) ? $stdClassResultAddressEx->countryId : null;
|
| 184 |
+
$this->_frnAddressLine1 = isset($stdClassResultAddressEx->frnAddressLine1) ? $stdClassResultAddressEx->frnAddressLine1 : null;
|
| 185 |
+
$this->_frnAddressLine2 = isset($stdClassResultAddressEx->frnAddressLine2) ? $stdClassResultAddressEx->frnAddressLine2 : null;
|
| 186 |
+
$this->_stateId = isset($stdClassResultAddressEx->stateId) ? $stdClassResultAddressEx->stateId : null;
|
| 187 |
+
}
|
| 188 |
+
|
| 189 |
+
/**
|
| 190 |
+
* Get result site
|
| 191 |
+
* @return ResultSite
|
| 192 |
+
*/
|
| 193 |
+
public function getResultSite() {
|
| 194 |
+
return $this->_resultSite;
|
| 195 |
+
}
|
| 196 |
+
|
| 197 |
+
/**
|
| 198 |
+
* Get post code
|
| 199 |
+
* @return string
|
| 200 |
+
*/
|
| 201 |
+
public function getPostCode() {
|
| 202 |
+
return $this->_postCode;
|
| 203 |
+
}
|
| 204 |
+
|
| 205 |
+
/**
|
| 206 |
+
* Get street name
|
| 207 |
+
* @return string
|
| 208 |
+
*/
|
| 209 |
+
public function getStreetName() {
|
| 210 |
+
return $this->_streetName;
|
| 211 |
+
}
|
| 212 |
+
|
| 213 |
+
/**
|
| 214 |
+
* Get street type
|
| 215 |
+
* @return string
|
| 216 |
+
*/
|
| 217 |
+
public function getStreetType() {
|
| 218 |
+
return $this->_streetType;
|
| 219 |
+
}
|
| 220 |
+
|
| 221 |
+
/**
|
| 222 |
+
* Get street ID
|
| 223 |
+
* @return integer Signed 64-bit
|
| 224 |
+
*/
|
| 225 |
+
public function getStreetId() {
|
| 226 |
+
return $this->_streetId;
|
| 227 |
+
}
|
| 228 |
+
|
| 229 |
+
/**
|
| 230 |
+
* Get quarter name
|
| 231 |
+
* @return string
|
| 232 |
+
*/
|
| 233 |
+
public function getQuarterName() {
|
| 234 |
+
return $this->_quarterName;
|
| 235 |
+
}
|
| 236 |
+
|
| 237 |
+
/**
|
| 238 |
+
* Get quarter type
|
| 239 |
+
* @return string
|
| 240 |
+
*/
|
| 241 |
+
public function getQuarterType() {
|
| 242 |
+
return $this->_quarterType;
|
| 243 |
+
}
|
| 244 |
+
|
| 245 |
+
/**
|
| 246 |
+
* Get quarter ID
|
| 247 |
+
* @return integer Signed 64-bit
|
| 248 |
+
*/
|
| 249 |
+
public function getQuarterId() {
|
| 250 |
+
return $this->_quarterId;
|
| 251 |
+
}
|
| 252 |
+
|
| 253 |
+
/**
|
| 254 |
+
* Get street No
|
| 255 |
+
* @return string
|
| 256 |
+
*/
|
| 257 |
+
public function getStreetNo() {
|
| 258 |
+
return $this->_streetNo;
|
| 259 |
+
}
|
| 260 |
+
|
| 261 |
+
/**
|
| 262 |
+
* Get block No
|
| 263 |
+
* @return string
|
| 264 |
+
*/
|
| 265 |
+
public function getBlockNo() {
|
| 266 |
+
return $this->_blockNo;
|
| 267 |
+
}
|
| 268 |
+
|
| 269 |
+
/**
|
| 270 |
+
* Get entrance No
|
| 271 |
+
* @return string
|
| 272 |
+
*/
|
| 273 |
+
public function getEntranceNo() {
|
| 274 |
+
return $this->_entranceNo;
|
| 275 |
+
}
|
| 276 |
+
|
| 277 |
+
/**
|
| 278 |
+
* Get floor No
|
| 279 |
+
* @return string
|
| 280 |
+
*/
|
| 281 |
+
public function getFloorNo() {
|
| 282 |
+
return $this->_floorNo;
|
| 283 |
+
}
|
| 284 |
+
|
| 285 |
+
/**
|
| 286 |
+
* Get appartment No
|
| 287 |
+
* @return string
|
| 288 |
+
*/
|
| 289 |
+
public function getApartmentNo() {
|
| 290 |
+
return $this->_apartmentNo;
|
| 291 |
+
}
|
| 292 |
+
|
| 293 |
+
/**
|
| 294 |
+
* Get address note
|
| 295 |
+
* @return string
|
| 296 |
+
*/
|
| 297 |
+
public function getAddressNote() {
|
| 298 |
+
return $this->_addressNote;
|
| 299 |
+
}
|
| 300 |
+
|
| 301 |
+
/**
|
| 302 |
+
* Get GPS X coordinate
|
| 303 |
+
* @return signed 64-bit real
|
| 304 |
+
*/
|
| 305 |
+
public function getCoordX() {
|
| 306 |
+
return $this->_coordX;
|
| 307 |
+
}
|
| 308 |
+
|
| 309 |
+
/**
|
| 310 |
+
* Get GPS Y coordinate
|
| 311 |
+
* @return signed 64-bit real
|
| 312 |
+
*/
|
| 313 |
+
public function getCoordY() {
|
| 314 |
+
return $this->_coordY;
|
| 315 |
+
}
|
| 316 |
+
|
| 317 |
+
/**
|
| 318 |
+
* Get GPS coordinate type
|
| 319 |
+
* @return signed 32-bit integer
|
| 320 |
+
*/
|
| 321 |
+
public function getCoordTypeId() {
|
| 322 |
+
return $this->_coordTypeId;
|
| 323 |
+
}
|
| 324 |
+
|
| 325 |
+
/**
|
| 326 |
+
* Get common object ID
|
| 327 |
+
* @return integer Signed 64-bit
|
| 328 |
+
*/
|
| 329 |
+
public function getCommonObjectId() {
|
| 330 |
+
return $this->_commonObjectId;
|
| 331 |
+
}
|
| 332 |
+
|
| 333 |
+
/**
|
| 334 |
+
* Get common object name
|
| 335 |
+
* @return string
|
| 336 |
+
*/
|
| 337 |
+
public function getCommonObjectName() {
|
| 338 |
+
return $this->_commonObjectName;
|
| 339 |
+
}
|
| 340 |
+
|
| 341 |
+
/**
|
| 342 |
+
* Get full address string
|
| 343 |
+
* @return string
|
| 344 |
+
*/
|
| 345 |
+
public function getFullAddressString() {
|
| 346 |
+
return $this->_fullAddressString;
|
| 347 |
+
}
|
| 348 |
+
|
| 349 |
+
/**
|
| 350 |
+
* Get country id
|
| 351 |
+
* @return string Country id
|
| 352 |
+
*/
|
| 353 |
+
public function getCountryId() {
|
| 354 |
+
return $this->_countryId;
|
| 355 |
+
}
|
| 356 |
+
|
| 357 |
+
/**
|
| 358 |
+
* Get foreign address line 1
|
| 359 |
+
* @return string Foreign address line 1
|
| 360 |
+
*/
|
| 361 |
+
public function getFrnAddressLine1() {
|
| 362 |
+
return $this->_frnAddressLine1;
|
| 363 |
+
}
|
| 364 |
+
|
| 365 |
+
/**
|
| 366 |
+
* Get foreign address line 2
|
| 367 |
+
* @return string Foreign address line 2
|
| 368 |
+
*/
|
| 369 |
+
public function getFrnAddressLine2() {
|
| 370 |
+
return $this->_frnAddressLine2;
|
| 371 |
+
}
|
| 372 |
+
|
| 373 |
+
/**
|
| 374 |
+
* Get state id
|
| 375 |
+
* @return string State id
|
| 376 |
+
*/
|
| 377 |
+
public function getStateId() {
|
| 378 |
+
return $this->_stateId;
|
| 379 |
+
}
|
| 380 |
+
}
|
| 381 |
Â
?>
|
lib/SpeedyEPS/ver01/ResultAddressSearch.class.php
CHANGED
|
File without changes
|
lib/SpeedyEPS/ver01/ResultAddressString.class.php
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* Instances of this class are used as a result of make address methods
|
| 5 |
+
* @since 2.3.0
|
| 6 |
+
*/
|
| 7 |
+
class ResultAddressString {
|
| 8 |
+
|
| 9 |
+
/**
|
| 10 |
+
* Full address string
|
| 11 |
+
* @var string
|
| 12 |
+
*/
|
| 13 |
+
protected $_fullAddress;
|
| 14 |
+
|
| 15 |
+
/**
|
| 16 |
+
* Local (street) address string. Address within site
|
| 17 |
+
* @var string
|
| 18 |
+
*/
|
| 19 |
+
protected $_localAddress;
|
| 20 |
+
|
| 21 |
+
/**
|
| 22 |
+
* Site address string (address without street/block, streetNo, blockNo and etc. details)
|
| 23 |
+
* @var string
|
| 24 |
+
*/
|
| 25 |
+
protected $_siteAddress;
|
| 26 |
+
|
| 27 |
+
/**
|
| 28 |
+
* Constructs new instance of this class
|
| 29 |
+
* @param unknown $stdClassResultAddressString
|
| 30 |
+
*/
|
| 31 |
+
function __construct($stdClassResultAddressString) {
|
| 32 |
+
$this->_fullAddress = isset($stdClassResultAddressString->fullAddress) ? $stdClassResultAddressString->fullAddress : null;
|
| 33 |
+
$this->_localAddress = isset($stdClassResultAddressString->localAddress) ? $stdClassResultAddressString->localAddress : null;
|
| 34 |
+
$this->_siteAddress = isset($stdClassResultAddressString->siteAddress) ? $stdClassResultAddressString->siteAddress : null;
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
/**
|
| 38 |
+
* Gets the full address string
|
| 39 |
+
* @return string Full address string
|
| 40 |
+
*/
|
| 41 |
+
public function getFullAddress() {
|
| 42 |
+
return $this->_fullAddress;
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
/**
|
| 47 |
+
* Gets the local (street) address string. The address within site
|
| 48 |
+
* @return string Local address string
|
| 49 |
+
*/
|
| 50 |
+
public function getLocalAddress() {
|
| 51 |
+
return $this->_localAddress;
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
/**
|
| 55 |
+
* Gets the site address string. The address without street information
|
| 56 |
+
* @return string Site address string
|
| 57 |
+
*/
|
| 58 |
+
public function getSiteAddress() {
|
| 59 |
+
return $this->_siteAddress;
|
| 60 |
+
}
|
| 61 |
+
}
|
| 62 |
+
?>
|
lib/SpeedyEPS/ver01/ResultAmounts.class.php
CHANGED
|
@@ -1,516 +1,591 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
|
| 3 |
-
class ResultAmounts {
|
| 4 |
-
|
| 5 |
-
/**
|
| 6 |
-
* The real value of the shipment
|
| 7 |
-
* @access private
|
| 8 |
-
* @var double Signed 64-bit double
|
| 9 |
-
*/
|
| 10 |
-
private $_insuranceBase;
|
| 11 |
-
|
| 12 |
-
/**
|
| 13 |
-
* The insurance premium (i.e. the price of the "Insurance" complementary service)
|
| 14 |
-
* @access private
|
| 15 |
-
* @var double Signed 64-bit double
|
| 16 |
-
*/
|
| 17 |
-
private $_insurancePremium;
|
| 18 |
-
|
| 19 |
-
/**
|
| 20 |
-
* The net price (of the courier service only; w/o discounts, complementary services, VAT etc.)
|
| 21 |
-
* @access private
|
| 22 |
-
* @var double Signed 64-bit double
|
| 23 |
-
*/
|
| 24 |
-
private $_net;
|
| 25 |
-
|
| 26 |
-
/**
|
| 27 |
-
* (NEGATIVE value) Fixed discount value
|
| 28 |
-
* @access private
|
| 29 |
-
* @var double Signed 64-bit double
|
| 30 |
-
*/
|
| 31 |
-
private $_discountFixed;
|
| 32 |
-
|
| 33 |
-
/**
|
| 34 |
-
* (NEGATIVE value) Discount for shipments delivered to a Speedy office by the sender
|
| 35 |
-
* @access private
|
| 36 |
-
* @var double Signed 64-bit double
|
| 37 |
-
*/
|
| 38 |
-
private $_discountToOffice;
|
| 39 |
-
|
| 40 |
-
/**
|
| 41 |
-
* (NEGATIVE value) Discount for the "To be called" complementary service
|
| 42 |
-
* @access private
|
| 43 |
-
* @var double Signed 64-bit double
|
| 44 |
-
*/
|
| 45 |
-
private $_discountToBeCalled;
|
| 46 |
-
|
| 47 |
-
/**
|
| 48 |
-
* (NEGATIVE value) Additional discount
|
| 49 |
-
* @access private
|
| 50 |
-
* @var double Signed 64-bit double
|
| 51 |
-
*/
|
| 52 |
-
private $_discountAdditional;
|
| 53 |
-
|
| 54 |
-
/**
|
| 55 |
-
* Packings value
|
| 56 |
-
* @access private
|
| 57 |
-
* @var double Signed 64-bit double
|
| 58 |
-
*/
|
| 59 |
-
private $_packings;
|
| 60 |
-
|
| 61 |
-
/**
|
| 62 |
-
* The amount of the "Additional charges for loading/unloading operations" complementary service
|
| 63 |
-
* @access private
|
| 64 |
-
* @var double Signed 64-bit double
|
| 65 |
-
*/
|
| 66 |
-
private $_tro;
|
| 67 |
-
|
| 68 |
-
/**
|
| 69 |
-
* The amount of the "Fixed time for delivery" complementary service
|
| 70 |
-
* @access private
|
| 71 |
-
* @var double Signed 64-bit double
|
| 72 |
-
*/
|
| 73 |
-
private $_fixedTimeDelivery;
|
| 74 |
-
|
| 75 |
-
/**
|
| 76 |
-
* Fuel surcharge
|
| 77 |
-
* @access private
|
| 78 |
-
* @var double Signed 64-bit double
|
| 79 |
-
*/
|
| 80 |
-
private $_fuelSurcharge;
|
| 81 |
-
|
| 82 |
-
/**
|
| 83 |
-
* Island surcharge (international shipments)
|
| 84 |
-
* @access private
|
| 85 |
-
* @var double Signed 64-bit double
|
| 86 |
-
*/
|
| 87 |
-
private $_islandSurcharge;
|
| 88 |
-
|
| 89 |
-
/**
|
| 90 |
-
* The "Cash on delivery" amount to be paid to the sender
|
| 91 |
-
* @access private
|
| 92 |
-
* @var double Signed 64-bit double
|
| 93 |
-
*/
|
| 94 |
-
private $_codBase;
|
| 95 |
-
|
| 96 |
-
/**
|
| 97 |
-
* The price of the "Cash on delivery" complementary service
|
| 98 |
-
* @access private
|
| 99 |
-
* @var double Signed 64-bit double
|
| 100 |
-
*/
|
| 101 |
-
private $_codPremium;
|
| 102 |
-
|
| 103 |
-
/**
|
| 104 |
-
* VAT (Value added tax)
|
| 105 |
-
* @access private
|
| 106 |
-
* @var double Signed 64-bit double
|
| 107 |
-
*/
|
| 108 |
-
private $_vat;
|
| 109 |
-
|
| 110 |
-
/**
|
| 111 |
-
* The total amount
|
| 112 |
-
* @access private
|
| 113 |
-
* @var double Signed 64-bit double
|
| 114 |
-
*/
|
| 115 |
-
private $_total;
|
| 116 |
-
|
| 117 |
-
/**
|
| 118 |
-
* The PERCENTAGE of fixed discount
|
| 119 |
-
* @access private
|
| 120 |
-
* @var double Signed 64-bit double
|
| 121 |
-
*/
|
| 122 |
-
private $_discPcntFixed;
|
| 123 |
-
|
| 124 |
-
/**
|
| 125 |
-
* The PERCENTAGE of the "brought to office" complementary service
|
| 126 |
-
* @access private
|
| 127 |
-
* @var double Signed 64-bit double
|
| 128 |
-
*/
|
| 129 |
-
private $_discPcntToOffice;
|
| 130 |
-
|
| 131 |
-
/**
|
| 132 |
-
* The PERCENTAGE of the "To be called" complementary service
|
| 133 |
-
* @access private
|
| 134 |
-
* @var double Signed 64-bit double
|
| 135 |
-
*/
|
| 136 |
-
private $_discPcntToBeCalled;
|
| 137 |
-
|
| 138 |
-
/**
|
| 139 |
-
* The PERCENTAGE of additional discount
|
| 140 |
-
* @access private
|
| 141 |
-
* @var double Signed 64-bit double
|
| 142 |
-
*/
|
| 143 |
-
private $_discPcntAdditional;
|
| 144 |
-
|
| 145 |
-
/**
|
| 146 |
-
* The PERCENTAGE of fuel surcharge
|
| 147 |
-
* @access private
|
| 148 |
-
* @var double Signed 64-bit double
|
| 149 |
-
*/
|
| 150 |
-
private $_pcntFuelSurcharge;
|
| 151 |
-
|
| 152 |
-
/**
|
| 153 |
-
*
|
| 154 |
-
* @
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
$this->
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
|
| 189 |
-
|
| 190 |
-
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
|
| 195 |
-
|
| 196 |
-
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
$this->
|
| 202 |
-
|
| 203 |
-
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
|
| 207 |
-
|
| 208 |
-
|
| 209 |
-
|
| 210 |
-
|
| 211 |
-
|
| 212 |
-
|
| 213 |
-
|
| 214 |
-
|
| 215 |
-
|
| 216 |
-
|
| 217 |
-
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
|
| 224 |
-
|
| 225 |
-
|
| 226 |
-
|
| 227 |
-
|
| 228 |
-
|
| 229 |
-
|
| 230 |
-
|
| 231 |
-
|
| 232 |
-
|
| 233 |
-
|
| 234 |
-
|
| 235 |
-
|
| 236 |
-
|
| 237 |
-
|
| 238 |
-
|
| 239 |
-
|
| 240 |
-
|
| 241 |
-
|
| 242 |
-
|
| 243 |
-
|
| 244 |
-
|
| 245 |
-
|
| 246 |
-
|
| 247 |
-
|
| 248 |
-
|
| 249 |
-
|
| 250 |
-
|
| 251 |
-
|
| 252 |
-
|
| 253 |
-
|
| 254 |
-
|
| 255 |
-
|
| 256 |
-
|
| 257 |
-
|
| 258 |
-
|
| 259 |
-
|
| 260 |
-
|
| 261 |
-
|
| 262 |
-
|
| 263 |
-
|
| 264 |
-
|
| 265 |
-
|
| 266 |
-
|
| 267 |
-
|
| 268 |
-
|
| 269 |
-
|
| 270 |
-
|
| 271 |
-
|
| 272 |
-
|
| 273 |
-
|
| 274 |
-
|
| 275 |
-
|
| 276 |
-
|
| 277 |
-
|
| 278 |
-
|
| 279 |
-
|
| 280 |
-
|
| 281 |
-
|
| 282 |
-
|
| 283 |
-
|
| 284 |
-
|
| 285 |
-
|
| 286 |
-
|
| 287 |
-
|
| 288 |
-
|
| 289 |
-
|
| 290 |
-
|
| 291 |
-
|
| 292 |
-
|
| 293 |
-
|
| 294 |
-
|
| 295 |
-
|
| 296 |
-
|
| 297 |
-
|
| 298 |
-
|
| 299 |
-
|
| 300 |
-
|
| 301 |
-
|
| 302 |
-
|
| 303 |
-
|
| 304 |
-
|
| 305 |
-
|
| 306 |
-
|
| 307 |
-
|
| 308 |
-
|
| 309 |
-
|
| 310 |
-
|
| 311 |
-
|
| 312 |
-
|
| 313 |
-
|
| 314 |
-
|
| 315 |
-
|
| 316 |
-
|
| 317 |
-
|
| 318 |
-
|
| 319 |
-
|
| 320 |
-
|
| 321 |
-
|
| 322 |
-
|
| 323 |
-
|
| 324 |
-
|
| 325 |
-
|
| 326 |
-
|
| 327 |
-
|
| 328 |
-
|
| 329 |
-
|
| 330 |
-
|
| 331 |
-
|
| 332 |
-
|
| 333 |
-
|
| 334 |
-
|
| 335 |
-
|
| 336 |
-
|
| 337 |
-
|
| 338 |
-
|
| 339 |
-
|
| 340 |
-
|
| 341 |
-
|
| 342 |
-
|
| 343 |
-
|
| 344 |
-
|
| 345 |
-
|
| 346 |
-
|
| 347 |
-
|
| 348 |
-
|
| 349 |
-
|
| 350 |
-
|
| 351 |
-
|
| 352 |
-
|
| 353 |
-
|
| 354 |
-
|
| 355 |
-
|
| 356 |
-
|
| 357 |
-
|
| 358 |
-
|
| 359 |
-
|
| 360 |
-
|
| 361 |
-
|
| 362 |
-
|
| 363 |
-
|
| 364 |
-
|
| 365 |
-
|
| 366 |
-
|
| 367 |
-
|
| 368 |
-
|
| 369 |
-
|
| 370 |
-
|
| 371 |
-
|
| 372 |
-
|
| 373 |
-
|
| 374 |
-
|
| 375 |
-
|
| 376 |
-
|
| 377 |
-
|
| 378 |
-
|
| 379 |
-
|
| 380 |
-
|
| 381 |
-
|
| 382 |
-
|
| 383 |
-
|
| 384 |
-
|
| 385 |
-
|
| 386 |
-
|
| 387 |
-
|
| 388 |
-
|
| 389 |
-
|
| 390 |
-
|
| 391 |
-
|
| 392 |
-
|
| 393 |
-
|
| 394 |
-
|
| 395 |
-
|
| 396 |
-
|
| 397 |
-
|
| 398 |
-
|
| 399 |
-
|
| 400 |
-
|
| 401 |
-
|
| 402 |
-
|
| 403 |
-
|
| 404 |
-
|
| 405 |
-
|
| 406 |
-
|
| 407 |
-
|
| 408 |
-
|
| 409 |
-
|
| 410 |
-
|
| 411 |
-
|
| 412 |
-
|
| 413 |
-
|
| 414 |
-
|
| 415 |
-
|
| 416 |
-
|
| 417 |
-
|
| 418 |
-
|
| 419 |
-
|
| 420 |
-
|
| 421 |
-
|
| 422 |
-
|
| 423 |
-
|
| 424 |
-
|
| 425 |
-
|
| 426 |
-
|
| 427 |
-
|
| 428 |
-
|
| 429 |
-
|
| 430 |
-
|
| 431 |
-
|
| 432 |
-
|
| 433 |
-
|
| 434 |
-
|
| 435 |
-
|
| 436 |
-
|
| 437 |
-
|
| 438 |
-
|
| 439 |
-
|
| 440 |
-
|
| 441 |
-
|
| 442 |
-
|
| 443 |
-
|
| 444 |
-
|
| 445 |
-
|
| 446 |
-
|
| 447 |
-
|
| 448 |
-
|
| 449 |
-
|
| 450 |
-
|
| 451 |
-
|
| 452 |
-
|
| 453 |
-
|
| 454 |
-
|
| 455 |
-
|
| 456 |
-
|
| 457 |
-
|
| 458 |
-
|
| 459 |
-
|
| 460 |
-
|
| 461 |
-
|
| 462 |
-
|
| 463 |
-
|
| 464 |
-
|
| 465 |
-
|
| 466 |
-
|
| 467 |
-
|
| 468 |
-
|
| 469 |
-
|
| 470 |
-
|
| 471 |
-
|
| 472 |
-
|
| 473 |
-
|
| 474 |
-
|
| 475 |
-
|
| 476 |
-
|
| 477 |
-
|
| 478 |
-
|
| 479 |
-
|
| 480 |
-
|
| 481 |
-
|
| 482 |
-
|
| 483 |
-
|
| 484 |
-
|
| 485 |
-
|
| 486 |
-
|
| 487 |
-
|
| 488 |
-
|
| 489 |
-
|
| 490 |
-
|
| 491 |
-
|
| 492 |
-
|
| 493 |
-
|
| 494 |
-
|
| 495 |
-
|
| 496 |
-
|
| 497 |
-
|
| 498 |
-
|
| 499 |
-
|
| 500 |
-
|
| 501 |
-
|
| 502 |
-
|
| 503 |
-
|
| 504 |
-
|
| 505 |
-
|
| 506 |
-
|
| 507 |
-
|
| 508 |
-
|
| 509 |
-
|
| 510 |
-
|
| 511 |
-
|
| 512 |
-
|
| 513 |
-
|
| 514 |
-
|
| 515 |
-
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
| 516 |
Â
?>
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
class ResultAmounts {
|
| 4 |
+
|
| 5 |
+
/**
|
| 6 |
+
* The real value of the shipment
|
| 7 |
+
* @access private
|
| 8 |
+
* @var double Signed 64-bit double
|
| 9 |
+
*/
|
| 10 |
+
private $_insuranceBase;
|
| 11 |
+
|
| 12 |
+
/**
|
| 13 |
+
* The insurance premium (i.e. the price of the "Insurance" complementary service)
|
| 14 |
+
* @access private
|
| 15 |
+
* @var double Signed 64-bit double
|
| 16 |
+
*/
|
| 17 |
+
private $_insurancePremium;
|
| 18 |
+
|
| 19 |
+
/**
|
| 20 |
+
* The net price (of the courier service only; w/o discounts, complementary services, VAT etc.)
|
| 21 |
+
* @access private
|
| 22 |
+
* @var double Signed 64-bit double
|
| 23 |
+
*/
|
| 24 |
+
private $_net;
|
| 25 |
+
|
| 26 |
+
/**
|
| 27 |
+
* (NEGATIVE value) Fixed discount value
|
| 28 |
+
* @access private
|
| 29 |
+
* @var double Signed 64-bit double
|
| 30 |
+
*/
|
| 31 |
+
private $_discountFixed;
|
| 32 |
+
|
| 33 |
+
/**
|
| 34 |
+
* (NEGATIVE value) Discount for shipments delivered to a Speedy office by the sender
|
| 35 |
+
* @access private
|
| 36 |
+
* @var double Signed 64-bit double
|
| 37 |
+
*/
|
| 38 |
+
private $_discountToOffice;
|
| 39 |
+
|
| 40 |
+
/**
|
| 41 |
+
* (NEGATIVE value) Discount for the "To be called" complementary service
|
| 42 |
+
* @access private
|
| 43 |
+
* @var double Signed 64-bit double
|
| 44 |
+
*/
|
| 45 |
+
private $_discountToBeCalled;
|
| 46 |
+
|
| 47 |
+
/**
|
| 48 |
+
* (NEGATIVE value) Additional discount
|
| 49 |
+
* @access private
|
| 50 |
+
* @var double Signed 64-bit double
|
| 51 |
+
*/
|
| 52 |
+
private $_discountAdditional;
|
| 53 |
+
|
| 54 |
+
/**
|
| 55 |
+
* Packings value
|
| 56 |
+
* @access private
|
| 57 |
+
* @var double Signed 64-bit double
|
| 58 |
+
*/
|
| 59 |
+
private $_packings;
|
| 60 |
+
|
| 61 |
+
/**
|
| 62 |
+
* The amount of the "Additional charges for loading/unloading operations" complementary service
|
| 63 |
+
* @access private
|
| 64 |
+
* @var double Signed 64-bit double
|
| 65 |
+
*/
|
| 66 |
+
private $_tro;
|
| 67 |
+
|
| 68 |
+
/**
|
| 69 |
+
* The amount of the "Fixed time for delivery" complementary service
|
| 70 |
+
* @access private
|
| 71 |
+
* @var double Signed 64-bit double
|
| 72 |
+
*/
|
| 73 |
+
private $_fixedTimeDelivery;
|
| 74 |
+
|
| 75 |
+
/**
|
| 76 |
+
* Fuel surcharge
|
| 77 |
+
* @access private
|
| 78 |
+
* @var double Signed 64-bit double
|
| 79 |
+
*/
|
| 80 |
+
private $_fuelSurcharge;
|
| 81 |
+
|
| 82 |
+
/**
|
| 83 |
+
* Island surcharge (international shipments)
|
| 84 |
+
* @access private
|
| 85 |
+
* @var double Signed 64-bit double
|
| 86 |
+
*/
|
| 87 |
+
private $_islandSurcharge;
|
| 88 |
+
|
| 89 |
+
/**
|
| 90 |
+
* The "Cash on delivery" amount to be paid to the sender
|
| 91 |
+
* @access private
|
| 92 |
+
* @var double Signed 64-bit double
|
| 93 |
+
*/
|
| 94 |
+
private $_codBase;
|
| 95 |
+
|
| 96 |
+
/**
|
| 97 |
+
* The price of the "Cash on delivery" complementary service
|
| 98 |
+
* @access private
|
| 99 |
+
* @var double Signed 64-bit double
|
| 100 |
+
*/
|
| 101 |
+
private $_codPremium;
|
| 102 |
+
|
| 103 |
+
/**
|
| 104 |
+
* VAT (Value added tax)
|
| 105 |
+
* @access private
|
| 106 |
+
* @var double Signed 64-bit double
|
| 107 |
+
*/
|
| 108 |
+
private $_vat;
|
| 109 |
+
|
| 110 |
+
/**
|
| 111 |
+
* The total amount
|
| 112 |
+
* @access private
|
| 113 |
+
* @var double Signed 64-bit double
|
| 114 |
+
*/
|
| 115 |
+
private $_total;
|
| 116 |
+
|
| 117 |
+
/**
|
| 118 |
+
* The PERCENTAGE of fixed discount
|
| 119 |
+
* @access private
|
| 120 |
+
* @var double Signed 64-bit double
|
| 121 |
+
*/
|
| 122 |
+
private $_discPcntFixed;
|
| 123 |
+
|
| 124 |
+
/**
|
| 125 |
+
* The PERCENTAGE of the "brought to office" complementary service
|
| 126 |
+
* @access private
|
| 127 |
+
* @var double Signed 64-bit double
|
| 128 |
+
*/
|
| 129 |
+
private $_discPcntToOffice;
|
| 130 |
+
|
| 131 |
+
/**
|
| 132 |
+
* The PERCENTAGE of the "To be called" complementary service
|
| 133 |
+
* @access private
|
| 134 |
+
* @var double Signed 64-bit double
|
| 135 |
+
*/
|
| 136 |
+
private $_discPcntToBeCalled;
|
| 137 |
+
|
| 138 |
+
/**
|
| 139 |
+
* The PERCENTAGE of additional discount
|
| 140 |
+
* @access private
|
| 141 |
+
* @var double Signed 64-bit double
|
| 142 |
+
*/
|
| 143 |
+
private $_discPcntAdditional;
|
| 144 |
+
|
| 145 |
+
/**
|
| 146 |
+
* The PERCENTAGE of fuel surcharge
|
| 147 |
+
* @access private
|
| 148 |
+
* @var double Signed 64-bit double
|
| 149 |
+
*/
|
| 150 |
+
private $_pcntFuelSurcharge;
|
| 151 |
+
|
| 152 |
+
/**
|
| 153 |
+
* The PERCENTAGE of return shipment discount
|
| 154 |
+
* @access private
|
| 155 |
+
* @var double Signed 64-bit double
|
| 156 |
+
* @since 2.5.0
|
| 157 |
+
*/
|
| 158 |
+
private $_discPcntRetShipment;
|
| 159 |
+
|
| 160 |
+
/**
|
| 161 |
+
* The amount of return shipment discount
|
| 162 |
+
* @access private
|
| 163 |
+
* @var double Signed 64-bit double
|
| 164 |
+
* @since 2.5.0
|
| 165 |
+
*/
|
| 166 |
+
private $_discountRetShipment;
|
| 167 |
+
|
| 168 |
+
/**
|
| 169 |
+
* The amount of special delivery discount
|
| 170 |
+
* @access private
|
| 171 |
+
* @var double Signed 64-bit double
|
| 172 |
+
* @since 2.5.0
|
| 173 |
+
*/
|
| 174 |
+
private $_specialDelivery;
|
| 175 |
+
|
| 176 |
+
/**
|
| 177 |
+
* Constructs new instance of ResultAmounts from stdClass
|
| 178 |
+
* @param stdClass $stdClassResultAmounts
|
| 179 |
+
*/
|
| 180 |
+
function __construct($stdClassResultAmounts) {
|
| 181 |
+
$this->_insuranceBase = isset($stdClassResultAmounts->insuranceBase) ? $stdClassResultAmounts->insuranceBase : null;
|
| 182 |
+
$this->_insurancePremium = isset($stdClassResultAmounts->insurancePremium) ? $stdClassResultAmounts->insurancePremium : null;
|
| 183 |
+
$this->_net = isset($stdClassResultAmounts->net) ? $stdClassResultAmounts->net : null;
|
| 184 |
+
$this->_discountFixed = isset($stdClassResultAmounts->discountFixed) ? $stdClassResultAmounts->discountFixed : null;
|
| 185 |
+
$this->_discountToOffice = isset($stdClassResultAmounts->discountToOffice) ? $stdClassResultAmounts->discountToOffice : null;
|
| 186 |
+
$this->_discountToBeCalled = isset($stdClassResultAmounts->discountToBeCalled) ? $stdClassResultAmounts->discountToBeCalled : null;
|
| 187 |
+
$this->_discountAdditional = isset($stdClassResultAmounts->discountAdditional) ? $stdClassResultAmounts->discountAdditional : null;
|
| 188 |
+
$this->_packings = isset($stdClassResultAmounts->packings) ? $stdClassResultAmounts->packings : null;
|
| 189 |
+
$this->_tro = isset($stdClassResultAmounts->tro) ? $stdClassResultAmounts->tro : null;
|
| 190 |
+
$this->_fixedTimeDelivery = isset($stdClassResultAmounts->fixedTimeDelivery) ? $stdClassResultAmounts->fixedTimeDelivery : null;
|
| 191 |
+
$this->_fuelSurcharge = isset($stdClassResultAmounts->fuelSurcharge) ? $stdClassResultAmounts->fuelSurcharge : null;
|
| 192 |
+
$this->_islandSurcharge = isset($stdClassResultAmounts->islandSurcharge) ? $stdClassResultAmounts->islandSurcharge : null;
|
| 193 |
+
$this->_codBase = isset($stdClassResultAmounts->codBase) ? $stdClassResultAmounts->codBase : null;
|
| 194 |
+
$this->_codPremium = isset($stdClassResultAmounts->codPremium) ? $stdClassResultAmounts->codPremium : null;
|
| 195 |
+
$this->_vat = isset($stdClassResultAmounts->vat) ? $stdClassResultAmounts->vat : null;
|
| 196 |
+
$this->_total = isset($stdClassResultAmounts->total) ? $stdClassResultAmounts->total : null;
|
| 197 |
+
$this->_discPcntFixed = isset($stdClassResultAmounts->discPcntFixed) ? $stdClassResultAmounts->discPcntFixed : null;
|
| 198 |
+
$this->_discPcntToOffice = isset($stdClassResultAmounts->discPcntToOffice) ? $stdClassResultAmounts->discPcntToOffice : null;
|
| 199 |
+
$this->_discPcntToBeCalled = isset($stdClassResultAmounts->discPcntToBeCalled) ? $stdClassResultAmounts->discPcntToBeCalled : null;
|
| 200 |
+
$this->_discPcntAdditional = isset($stdClassResultAmounts->discPcntAdditional) ? $stdClassResultAmounts->discPcntAdditional : null;
|
| 201 |
+
$this->_pcntFuelSurcharge = isset($stdClassResultAmounts->pcntFuelSurcharge) ? $stdClassResultAmounts->pcntFuelSurcharge : null;
|
| 202 |
+
$this->_discPcntRetShipment = isset($stdClassResultAmounts->discPcntRetShipment) ? $stdClassResultAmounts->discPcntRetShipment : null;
|
| 203 |
+
$this->_discountRetShipment = isset($stdClassResultAmounts->discountRetShipment) ? $stdClassResultAmounts->discountRetShipment : null;
|
| 204 |
+
$this->_specialDelivery = isset($stdClassResultAmounts->specialDelivery) ? $stdClassResultAmounts->specialDelivery : null;
|
| 205 |
+
}
|
| 206 |
+
|
| 207 |
+
/**
|
| 208 |
+
* Set real value of the shipment
|
| 209 |
+
* @param double $insuranceBase Signed 64-bit double value
|
| 210 |
+
*/
|
| 211 |
+
public function setInsuranceBase($insuranceBase) {
|
| 212 |
+
$this->_insuranceBase = $insuranceBase;
|
| 213 |
+
}
|
| 214 |
+
|
| 215 |
+
/**
|
| 216 |
+
* Get real value of the shipment
|
| 217 |
+
* @return double Signed 64-bit double value
|
| 218 |
+
*/
|
| 219 |
+
public function getInsuranceBase() {
|
| 220 |
+
return $this->_insuranceBase;
|
| 221 |
+
}
|
| 222 |
+
|
| 223 |
+
/**
|
| 224 |
+
* Set insurance premium (i.e. the price of the "Insurance" complementary service)
|
| 225 |
+
* @param double $insurancePremium Signed 64-bit double value
|
| 226 |
+
*/
|
| 227 |
+
public function setInsurancePremium($insurancePremium) {
|
| 228 |
+
$this->_insurancePremium = $insurancePremium;
|
| 229 |
+
}
|
| 230 |
+
|
| 231 |
+
/**
|
| 232 |
+
* Get insurance premium
|
| 233 |
+
* @return double Signed 64-bit double value
|
| 234 |
+
*/
|
| 235 |
+
public function getInsurancePremium() {
|
| 236 |
+
return $this->_insurancePremium;
|
| 237 |
+
}
|
| 238 |
+
|
| 239 |
+
/**
|
| 240 |
+
* Set net price (of the courier service only; w/o discounts, complementary services, VAT etc.)
|
| 241 |
+
* @param double $net Signed 64-bit double value
|
| 242 |
+
*/
|
| 243 |
+
public function setNet($net) {
|
| 244 |
+
$this->_net = $net;
|
| 245 |
+
}
|
| 246 |
+
|
| 247 |
+
/**
|
| 248 |
+
* Get net price
|
| 249 |
+
* @return double Signed 64-bit double value
|
| 250 |
+
*/
|
| 251 |
+
public function getNet() {
|
| 252 |
+
return $this->_net;
|
| 253 |
+
}
|
| 254 |
+
|
| 255 |
+
/**
|
| 256 |
+
* Set fixed discount value (NEGATIVE value).
|
| 257 |
+
* @param double $discountFixed Signed 64-bit double value
|
| 258 |
+
*/
|
| 259 |
+
public function setDiscountFixed($discountFixed) {
|
| 260 |
+
$this->_discountFixed = $discountFixed;
|
| 261 |
+
}
|
| 262 |
+
|
| 263 |
+
/**
|
| 264 |
+
* Get fixed discount value (NEGATIVE value)
|
| 265 |
+
* @return double Signed 64-bit double value
|
| 266 |
+
*/
|
| 267 |
+
public function getDiscountFixed() {
|
| 268 |
+
return $this->_discountFixed;
|
| 269 |
+
}
|
| 270 |
+
|
| 271 |
+
/**
|
| 272 |
+
* Set discount for shipments delivered to a Speedy office by the sender (NEGATIVE value).
|
| 273 |
+
* @param double $discountToOffice Signed 64-bit double value
|
| 274 |
+
*/
|
| 275 |
+
public function setDiscountToOffice($discountToOffice) {
|
| 276 |
+
$this->_discountToOffice = $discountToOffice;
|
| 277 |
+
}
|
| 278 |
+
|
| 279 |
+
/**
|
| 280 |
+
* Get discount for shipments delivered to a Speedy office by the sender (NEGATIVE value)
|
| 281 |
+
* @return double Signed 64-bit double value
|
| 282 |
+
*/
|
| 283 |
+
public function getDiscountToOffice() {
|
| 284 |
+
return $this->_discountToOffice;
|
| 285 |
+
}
|
| 286 |
+
|
| 287 |
+
/**
|
| 288 |
+
* Set discount for the "To be called" complementary service (NEGATIVE value).
|
| 289 |
+
* @param double $discountToBeCalled Signed 64-bit double value
|
| 290 |
+
*/
|
| 291 |
+
public function setDiscountToBeCalled($discountToBeCalled) {
|
| 292 |
+
$this->_discountToBeCalled = $discountToBeCalled;
|
| 293 |
+
}
|
| 294 |
+
|
| 295 |
+
/**
|
| 296 |
+
* Get discount for the "To be called" complementary service (NEGATIVE value)
|
| 297 |
+
* @return double Signed 64-bit double value
|
| 298 |
+
*/
|
| 299 |
+
public function getDiscountToBeCalled() {
|
| 300 |
+
return $this->_discountToBeCalled;
|
| 301 |
+
}
|
| 302 |
+
|
| 303 |
+
/**
|
| 304 |
+
* Set additional discount (NEGATIVE value).
|
| 305 |
+
* @param double $discountAdditional Signed 64-bit double value
|
| 306 |
+
*/
|
| 307 |
+
public function setDiscountAdditional($discountAdditional) {
|
| 308 |
+
$this->_discountAdditional = $discountAdditional;
|
| 309 |
+
}
|
| 310 |
+
|
| 311 |
+
/**
|
| 312 |
+
* Get additional discount (NEGATIVE value)
|
| 313 |
+
* @return double Signed 64-bit double value
|
| 314 |
+
*/
|
| 315 |
+
public function getDiscountAdditional() {
|
| 316 |
+
return $this->_discountAdditional;
|
| 317 |
+
}
|
| 318 |
+
|
| 319 |
+
/**
|
| 320 |
+
* Set packings value
|
| 321 |
+
* @param double $packings Signed 64-bit double value
|
| 322 |
+
*/
|
| 323 |
+
public function setPackings($packings) {
|
| 324 |
+
$this->_packings = $packings;
|
| 325 |
+
}
|
| 326 |
+
|
| 327 |
+
/**
|
| 328 |
+
* Get packings value
|
| 329 |
+
* @return double Signed 64-bit double value
|
| 330 |
+
*/
|
| 331 |
+
public function getPackings() {
|
| 332 |
+
return $this->_packings;
|
| 333 |
+
}
|
| 334 |
+
|
| 335 |
+
/**
|
| 336 |
+
* Set amount of the "Additional charges for loading/unloading operations" complementary service
|
| 337 |
+
* @param double $tro Signed 64-bit double value
|
| 338 |
+
*/
|
| 339 |
+
public function setTro($tro) {
|
| 340 |
+
$this->_tro = $tro;
|
| 341 |
+
}
|
| 342 |
+
|
| 343 |
+
/**
|
| 344 |
+
* Get amount of the "Additional charges for loading/unloading operations" complementary service
|
| 345 |
+
* @return double Signed 64-bit double value
|
| 346 |
+
*/
|
| 347 |
+
public function getTro() {
|
| 348 |
+
return $this->_tro;
|
| 349 |
+
}
|
| 350 |
+
|
| 351 |
+
/**
|
| 352 |
+
* Set amount of the "Fixed time for delivery" complementary service
|
| 353 |
+
* @param double $fixedTimeDelivery Signed 64-bit double value
|
| 354 |
+
*/
|
| 355 |
+
public function setFixedTimeDelivery($fixedTimeDelivery) {
|
| 356 |
+
$this->_fixedTimeDelivery = $fixedTimeDelivery;
|
| 357 |
+
}
|
| 358 |
+
|
| 359 |
+
/**
|
| 360 |
+
* Get amount of the "Fixed time for delivery" complementary service
|
| 361 |
+
* @return double Signed 64-bit double value
|
| 362 |
+
*/
|
| 363 |
+
public function getFixedTimeDelivery() {
|
| 364 |
+
return $this->_fixedTimeDelivery;
|
| 365 |
+
}
|
| 366 |
+
|
| 367 |
+
/**
|
| 368 |
+
* Set fuel surcharge
|
| 369 |
+
* @param double $fuelSurcharge Signed 64-bit double value
|
| 370 |
+
*/
|
| 371 |
+
public function setFuelSurcharge($fuelSurcharge) {
|
| 372 |
+
$this->_fuelSurcharge = $fuelSurcharge;
|
| 373 |
+
}
|
| 374 |
+
|
| 375 |
+
/**
|
| 376 |
+
* Get fuel surcharge
|
| 377 |
+
* @return double Signed 64-bit double value
|
| 378 |
+
*/
|
| 379 |
+
public function getFuelSurcharge() {
|
| 380 |
+
return $this->_fuelSurcharge;
|
| 381 |
+
}
|
| 382 |
+
|
| 383 |
+
/**
|
| 384 |
+
* Set island surcharge (international shipments)
|
| 385 |
+
* @param double $islandSurcharge Signed 64-bit double value
|
| 386 |
+
*/
|
| 387 |
+
public function setIslandSurcharge($islandSurcharge) {
|
| 388 |
+
$this->_islandSurcharge = $islandSurcharge;
|
| 389 |
+
}
|
| 390 |
+
|
| 391 |
+
/**
|
| 392 |
+
* Get island surcharge (international shipments)
|
| 393 |
+
* @return double Signed 64-bit double value
|
| 394 |
+
*/
|
| 395 |
+
public function getIslandSurcharge() {
|
| 396 |
+
return $this->_islandSurcharge;
|
| 397 |
+
}
|
| 398 |
+
|
| 399 |
+
/**
|
| 400 |
+
* Set "Cash on delivery" amount to be paid to the sender
|
| 401 |
+
* @param double $codBase Signed 64-bit double value
|
| 402 |
+
*/
|
| 403 |
+
public function setCodBase($codBase) {
|
| 404 |
+
$this->_codBase = $codBase;
|
| 405 |
+
}
|
| 406 |
+
|
| 407 |
+
/**
|
| 408 |
+
* Get "Cash on delivery" amount to be paid to the sender
|
| 409 |
+
* @return double Signed 64-bit double value
|
| 410 |
+
*/
|
| 411 |
+
public function getCodBase() {
|
| 412 |
+
return $this->_codBase;
|
| 413 |
+
}
|
| 414 |
+
|
| 415 |
+
/**
|
| 416 |
+
* Set the price of the "Cash on delivery" complementary service
|
| 417 |
+
* @param double $codPremium Signed 64-bit double value
|
| 418 |
+
*/
|
| 419 |
+
public function setCodPremium($codPremium) {
|
| 420 |
+
$this->_codPremium = $codPremium;
|
| 421 |
+
}
|
| 422 |
+
|
| 423 |
+
/**
|
| 424 |
+
* Get the price of the "Cash on delivery" complementary service
|
| 425 |
+
* @return double Signed 64-bit double value
|
| 426 |
+
*/
|
| 427 |
+
public function getCodPremium() {
|
| 428 |
+
return $this->_codPremium;
|
| 429 |
+
}
|
| 430 |
+
|
| 431 |
+
/**
|
| 432 |
+
* Set value added tax
|
| 433 |
+
* @param double $vat Signed 64-bit double value
|
| 434 |
+
*/
|
| 435 |
+
public function setVat($vat) {
|
| 436 |
+
$this->_vat = $vat;
|
| 437 |
+
}
|
| 438 |
+
|
| 439 |
+
/**
|
| 440 |
+
* Get value added tax
|
| 441 |
+
* @return double Signed 64-bit double value
|
| 442 |
+
*/
|
| 443 |
+
public function getVat() {
|
| 444 |
+
return $this->_vat;
|
| 445 |
+
}
|
| 446 |
+
|
| 447 |
+
/**
|
| 448 |
+
* Set total amount
|
| 449 |
+
* @param double $total Signed 64-bit double value
|
| 450 |
+
*/
|
| 451 |
+
public function setTotal($total) {
|
| 452 |
+
$this->_total = $total;
|
| 453 |
+
}
|
| 454 |
+
|
| 455 |
+
/**
|
| 456 |
+
* Get total amount
|
| 457 |
+
* @return double Signed 64-bit double value
|
| 458 |
+
*/
|
| 459 |
+
public function getTotal() {
|
| 460 |
+
return $this->_total;
|
| 461 |
+
}
|
| 462 |
+
|
| 463 |
+
/**
|
| 464 |
+
* Set PERCENTAGE of fixed discount
|
| 465 |
+
* @param double $discPcntFixed Signed 64-bit double value
|
| 466 |
+
*/
|
| 467 |
+
public function setDiscPcntFixed($discPcntFixed) {
|
| 468 |
+
$this->_discPcntFixed = $discPcntFixed;
|
| 469 |
+
}
|
| 470 |
+
|
| 471 |
+
/**
|
| 472 |
+
* Get PERCENTAGE of fixed discount
|
| 473 |
+
* @return double Signed 64-bit double value
|
| 474 |
+
*/
|
| 475 |
+
public function getDiscPcntFixed() {
|
| 476 |
+
return $this->_discPcntFixed;
|
| 477 |
+
}
|
| 478 |
+
|
| 479 |
+
/**
|
| 480 |
+
* Set PERCENTAGE of the "brought to office" complementary service
|
| 481 |
+
* @param double $discPcntToOffice Signed 64-bit double value
|
| 482 |
+
*/
|
| 483 |
+
public function setDiscPcntToOffice($discPcntToOffice) {
|
| 484 |
+
$this->_discPcntToOffice = $discPcntToOffice;
|
| 485 |
+
}
|
| 486 |
+
|
| 487 |
+
/**
|
| 488 |
+
* Get PERCENTAGE of the "brought to office" complementary service
|
| 489 |
+
* @return double Signed 64-bit double value
|
| 490 |
+
*/
|
| 491 |
+
public function getDiscPcntToOffice() {
|
| 492 |
+
return $this->_discPcntToOffice;
|
| 493 |
+
}
|
| 494 |
+
|
| 495 |
+
/**
|
| 496 |
+
* Set PERCENTAGE of the "To be called" complementary service
|
| 497 |
+
* @param double $discPcntToBeCalled Signed 64-bit double value
|
| 498 |
+
*/
|
| 499 |
+
public function setDiscPcntToBeCalled($discPcntToBeCalled) {
|
| 500 |
+
$this->_discPcntToBeCalled = $discPcntToBeCalled;
|
| 501 |
+
}
|
| 502 |
+
|
| 503 |
+
/**
|
| 504 |
+
* Get PERCENTAGE of the "To be called" complementary service
|
| 505 |
+
* @return double Signed 64-bit double value
|
| 506 |
+
*/
|
| 507 |
+
public function getDiscPcntToBeCalled() {
|
| 508 |
+
return $this->_discPcntToBeCalled;
|
| 509 |
+
}
|
| 510 |
+
|
| 511 |
+
/**
|
| 512 |
+
* Set PERCENTAGE of additional discount
|
| 513 |
+
* @param double $discPcntAdditional Signed 64-bit double value
|
| 514 |
+
*/
|
| 515 |
+
public function setDiscPcntAdditional($discPcntAdditional) {
|
| 516 |
+
$this->_discPcntAdditional = $discPcntAdditional;
|
| 517 |
+
}
|
| 518 |
+
|
| 519 |
+
/**
|
| 520 |
+
* Get PERCENTAGE of additional discount
|
| 521 |
+
* @return double Signed 64-bit double value
|
| 522 |
+
*/
|
| 523 |
+
public function getDiscPcntAdditional() {
|
| 524 |
+
return $this->_discPcntAdditional;
|
| 525 |
+
}
|
| 526 |
+
|
| 527 |
+
/**
|
| 528 |
+
* Set PERCENTAGE of fuel surcharge
|
| 529 |
+
* @param double $pcntFuelSurcharge Signed 64-bit double value
|
| 530 |
+
*/
|
| 531 |
+
public function setPcntFuelSurcharge($pcntFuelSurcharge) {
|
| 532 |
+
$this->_pcntFuelSurcharge = $pcntFuelSurcharge;
|
| 533 |
+
}
|
| 534 |
+
|
| 535 |
+
/**
|
| 536 |
+
* Get PERCENTAGE of fuel surcharge
|
| 537 |
+
* @return double Signed 64-bit double value
|
| 538 |
+
*/
|
| 539 |
+
public function getPcntFuelSurcharge() {
|
| 540 |
+
return $this->_pcntFuelSurcharge;
|
| 541 |
+
}
|
| 542 |
+
|
| 543 |
+
/**
|
| 544 |
+
* Set PERCENTAGE of return shipment surcharge
|
| 545 |
+
* @param double $discPcntRetShipment Signed 64-bit double value
|
| 546 |
+
*/
|
| 547 |
+
public function setDiscPcntRetShipment($discPcntRetShipment) {
|
| 548 |
+
$this->_discPcntRetShipment = $discPcntRetShipment;
|
| 549 |
+
}
|
| 550 |
+
|
| 551 |
+
/**
|
| 552 |
+
* Get PERCENTAGE of return shipment surcharge
|
| 553 |
+
* @return double Signed 64-bit double value
|
| 554 |
+
*/
|
| 555 |
+
public function getDiscPcntRetShipment() {
|
| 556 |
+
return $this->_discPcntRetShipment;
|
| 557 |
+
}
|
| 558 |
+
|
| 559 |
+
/**
|
| 560 |
+
* Set return shipment discount amount
|
| 561 |
+
* @param double $total Signed 64-bit double value
|
| 562 |
+
*/
|
| 563 |
+
public function setDiscountRetShipment($discountRetShipment) {
|
| 564 |
+
$this->_discountRetShipment = $discountRetShipment;
|
| 565 |
+
}
|
| 566 |
+
|
| 567 |
+
/**
|
| 568 |
+
* Get return shipment discount amount
|
| 569 |
+
* @return double Signed 64-bit double value
|
| 570 |
+
*/
|
| 571 |
+
public function getDiscountRetShipment() {
|
| 572 |
+
return $this->_discountRetShipment;
|
| 573 |
+
}
|
| 574 |
+
|
| 575 |
+
/**
|
| 576 |
+
* Set special delivery surcharge amount
|
| 577 |
+
* @param double $specialDelivery Signed 64-bit double value
|
| 578 |
+
*/
|
| 579 |
+
public function setSpecialDelivery($specialDelivery) {
|
| 580 |
+
$this->_specialDelivery = $specialDelivery;
|
| 581 |
+
}
|
| 582 |
+
|
| 583 |
+
/**
|
| 584 |
+
* Get special delivery surcharge amount
|
| 585 |
+
* @return double Signed 64-bit double value
|
| 586 |
+
*/
|
| 587 |
+
public function getSpecialDelivery() {
|
| 588 |
+
return $this->_specialDelivery;
|
| 589 |
+
}
|
| 590 |
+
}
|
| 591 |
Â
?>
|
lib/SpeedyEPS/ver01/ResultBOL.class.php
CHANGED
|
File without changes
|
lib/SpeedyEPS/ver01/ResultCalculation.class.php
CHANGED
|
File without changes
|
lib/SpeedyEPS/ver01/ResultCalculationMS.class.php
CHANGED
|
File without changes
|
lib/SpeedyEPS/ver01/ResultClientData.class.php
CHANGED
|
File without changes
|
lib/SpeedyEPS/ver01/ResultCommonObject.class.php
CHANGED
|
File without changes
|
lib/SpeedyEPS/ver01/ResultCountry.class.php
ADDED
|
@@ -0,0 +1,157 @@
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* Instances of this class are returned in response to country search methods
|
| 5 |
+
* @since 2.5.0
|
| 6 |
+
*/
|
| 7 |
+
class ResultCountry {
|
| 8 |
+
|
| 9 |
+
/**
|
| 10 |
+
* Active country currency code
|
| 11 |
+
* @var string
|
| 12 |
+
*/
|
| 13 |
+
private $_activeCurrencyCode;
|
| 14 |
+
|
| 15 |
+
/**
|
| 16 |
+
* Country id
|
| 17 |
+
* @var integer Signed 64-bit
|
| 18 |
+
*/
|
| 19 |
+
private $_countryId;
|
| 20 |
+
|
| 21 |
+
/**
|
| 22 |
+
* Country ISO alpha 2 code
|
| 23 |
+
* @var string
|
| 24 |
+
*/
|
| 25 |
+
private $_isoAlpha2;
|
| 26 |
+
|
| 27 |
+
/**
|
| 28 |
+
* Country ISO alpha 3 code
|
| 29 |
+
* @var string
|
| 30 |
+
*/
|
| 31 |
+
private $_isoAlpha3;
|
| 32 |
+
|
| 33 |
+
/**
|
| 34 |
+
* Country name
|
| 35 |
+
* @var string
|
| 36 |
+
*/
|
| 37 |
+
private $_name;
|
| 38 |
+
|
| 39 |
+
/**
|
| 40 |
+
* Country post code format
|
| 41 |
+
* @var string
|
| 42 |
+
*/
|
| 43 |
+
private $_postCodeFormat;
|
| 44 |
+
|
| 45 |
+
/**
|
| 46 |
+
* Require post code for country addresses flag
|
| 47 |
+
* @var boolean
|
| 48 |
+
*/
|
| 49 |
+
private $_requirePostCode;
|
| 50 |
+
|
| 51 |
+
/**
|
| 52 |
+
* Require state for country addresses flag
|
| 53 |
+
* @var boolean
|
| 54 |
+
*/
|
| 55 |
+
private $_requireState;
|
| 56 |
+
|
| 57 |
+
/**
|
| 58 |
+
* Code for site nomenclature support
|
| 59 |
+
* 0 - No site nomenclature
|
| 60 |
+
* 1 - Site nomenclature is supported for this site
|
| 61 |
+
* @var integer signed 32-bit
|
| 62 |
+
*/
|
| 63 |
+
private $_siteNomen;
|
| 64 |
+
|
| 65 |
+
/**
|
| 66 |
+
* Constructs new instance of ResultCountry
|
| 67 |
+
* @param stdClass $stdClassResultCountry
|
| 68 |
+
*/
|
| 69 |
+
function __construct($stdClassResultCountry) {
|
| 70 |
+
$this->_activeCurrencyCode = isset($stdClassResultCountry->activeCurrencyCode) ? $stdClassResultCountry->activeCurrencyCode : null;
|
| 71 |
+
$this->_countryId = isset($stdClassResultCountry->countryId) ? $stdClassResultCountry->countryId : null;
|
| 72 |
+
$this->_isoAlpha2 = isset($stdClassResultCountry->isoAlpha2) ? $stdClassResultCountry->isoAlpha2 : null;
|
| 73 |
+
$this->_isoAlpha3 = isset($stdClassResultCountry->isoAlpha3) ? $stdClassResultCountry->isoAlpha3 : null;
|
| 74 |
+
$this->_name = isset($stdClassResultCountry->name) ? $stdClassResultCountry->name : null;
|
| 75 |
+
$this->_postCodeFormat = isset($stdClassResultCountry->postCodeFormat) ? $stdClassResultCountry->postCodeFormat : null;
|
| 76 |
+
$this->_requirePostCode = isset($stdClassResultCountry->requirePostCode) ? $stdClassResultCountry->requirePostCode : null;
|
| 77 |
+
$this->_requireState = isset($stdClassResultCountry->requireState) ? $stdClassResultCountry->requireState : null;
|
| 78 |
+
$this->_siteNomen = isset($stdClassResultCountry->siteNomen) ? $stdClassResultCountry->siteNomen : null;
|
| 79 |
+
}
|
| 80 |
+
|
| 81 |
+
|
| 82 |
+
/**
|
| 83 |
+
* Gets country active currency code
|
| 84 |
+
* @return string Active currency code for the country
|
| 85 |
+
*/
|
| 86 |
+
public function getActiveCurrencyCode() {
|
| 87 |
+
return $this->_activeCurrencyCode;
|
| 88 |
+
}
|
| 89 |
+
|
| 90 |
+
/**
|
| 91 |
+
* Gets the country id
|
| 92 |
+
* @return integer signed 32-bit Country id
|
| 93 |
+
*/
|
| 94 |
+
public function getCountryId() {
|
| 95 |
+
return $this->_countryId;
|
| 96 |
+
}
|
| 97 |
+
|
| 98 |
+
/**
|
| 99 |
+
* Gets the country ISO alpha2 code
|
| 100 |
+
* @return string Country ISO alpha2 code
|
| 101 |
+
*/
|
| 102 |
+
public function getIsoAlpha2() {
|
| 103 |
+
return $this->_isoAlpha2;
|
| 104 |
+
}
|
| 105 |
+
|
| 106 |
+
/**
|
| 107 |
+
* Gets the country ISO alpha3 code
|
| 108 |
+
* @return string Country ISO alpha3 code
|
| 109 |
+
*/
|
| 110 |
+
public function getIsoAlpha3() {
|
| 111 |
+
return $this->_isoAlpha3;
|
| 112 |
+
}
|
| 113 |
+
|
| 114 |
+
/**
|
| 115 |
+
* Gets the country name
|
| 116 |
+
* @return string Country name
|
| 117 |
+
*/
|
| 118 |
+
public function getName() {
|
| 119 |
+
return $this->_name;
|
| 120 |
+
}
|
| 121 |
+
|
| 122 |
+
/**
|
| 123 |
+
* Gets the country post code format
|
| 124 |
+
* @return string Country post code format
|
| 125 |
+
*/
|
| 126 |
+
public function getPostCodeFormat() {
|
| 127 |
+
return $this->_postCodeFormat;
|
| 128 |
+
}
|
| 129 |
+
|
| 130 |
+
/**
|
| 131 |
+
* Gets the require post code flag for the country
|
| 132 |
+
* @return boolean Country require post code flag value
|
| 133 |
+
*/
|
| 134 |
+
public function isRequirePostCode() {
|
| 135 |
+
return $this->_requirePostCode;
|
| 136 |
+
}
|
| 137 |
+
|
| 138 |
+
/**
|
| 139 |
+
* Gets the require state flag value for the country
|
| 140 |
+
* @return boolean Country require state flag value
|
| 141 |
+
*/
|
| 142 |
+
public function isRequireState() {
|
| 143 |
+
return $this->_requireState;
|
| 144 |
+
}
|
| 145 |
+
|
| 146 |
+
/**
|
| 147 |
+
* Gets the code for site nomenclature support for the country
|
| 148 |
+
* @return integer signed 32-bit Code for site nomenclature support for the country
|
| 149 |
+
* 0 - No site nomenclature
|
| 150 |
+
* 1 - Has full site nomenclature
|
| 151 |
+
*/
|
| 152 |
+
public function getSiteNomen() {
|
| 153 |
+
return $this->_siteNomen;
|
| 154 |
+
}
|
| 155 |
+
|
| 156 |
+
}
|
| 157 |
+
?>
|
lib/SpeedyEPS/ver01/ResultCourierService.class.php
CHANGED
|
File without changes
|
lib/SpeedyEPS/ver01/ResultCourierServiceExt.class.php
CHANGED
|
File without changes
|
lib/SpeedyEPS/ver01/ResultLogin.class.php
CHANGED
|
File without changes
|
lib/SpeedyEPS/ver01/ResultMinMaxReal.class.php
CHANGED
|
File without changes
|
lib/SpeedyEPS/ver01/ResultOffice.class.php
CHANGED
|
File without changes
|
lib/SpeedyEPS/ver01/ResultOfficeEx.class.php
CHANGED
|
@@ -1,137 +1,202 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
|
| 3 |
-
require_once 'ResultAddressEx.class.php';
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
*
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
| 137 |
Â
?>
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
require_once 'ResultAddressEx.class.php';
|
| 4 |
+
require_once 'ResultWorkingTime.class.php';
|
| 5 |
+
require_once 'Size.class.php';
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
/**
|
| 9 |
+
* Instances of this class are returned as a result of Speedy web service queries for offices
|
| 10 |
+
*/
|
| 11 |
+
class ResultOfficeEx {
|
| 12 |
+
|
| 13 |
+
/**
|
| 14 |
+
* Office ID
|
| 15 |
+
* @var integer Signed 64-bit
|
| 16 |
+
*/
|
| 17 |
+
private $_id;
|
| 18 |
+
|
| 19 |
+
/**
|
| 20 |
+
* Office name
|
| 21 |
+
* @var string
|
| 22 |
+
*/
|
| 23 |
+
private $_name;
|
| 24 |
+
|
| 25 |
+
/**
|
| 26 |
+
* Serving site ID
|
| 27 |
+
* @var string
|
| 28 |
+
*/
|
| 29 |
+
private $_siteId;
|
| 30 |
+
|
| 31 |
+
/**
|
| 32 |
+
* Office address
|
| 33 |
+
* @var ResultAddressEx
|
| 34 |
+
*/
|
| 35 |
+
private $_address;
|
| 36 |
+
|
| 37 |
+
/**
|
| 38 |
+
* Working time for FULL working days - FROM
|
| 39 |
+
* @var integer Signed 16-bit integer ("HHmm" format, i.e., the number "1315" means "13:15", "830" means "8:30" etc.)
|
| 40 |
+
*/
|
| 41 |
+
private $_workingTimeFrom;
|
| 42 |
+
|
| 43 |
+
/**
|
| 44 |
+
* Working time for FULL working days - TO
|
| 45 |
+
* @var integer Signed 16-bit integer ("HHmm" format, i.e., the number "1315" means "13:15", "830" means "8:30" etc.)
|
| 46 |
+
*/
|
| 47 |
+
private $_workingTimeTo;
|
| 48 |
+
|
| 49 |
+
/**
|
| 50 |
+
* Working time for HALF working days - FROM
|
| 51 |
+
* @var integer Signed 16-bit integer ("HHmm" format, i.e., the number "1315" means "13:15", "830" means "8:30" etc.)
|
| 52 |
+
*/
|
| 53 |
+
private $_workingTimeHalfFrom;
|
| 54 |
+
|
| 55 |
+
/**
|
| 56 |
+
*Working time for HALF working days - TO
|
| 57 |
+
* @var integer Signed 16-bit integer ("HHmm" format, i.e., the number "1315" means "13:15", "830" means "8:30" etc.)
|
| 58 |
+
*/
|
| 59 |
+
private $_workingTimeHalfTo;
|
| 60 |
+
|
| 61 |
+
/**
|
| 62 |
+
* Max parcel dimensions (size)
|
| 63 |
+
* @var Size
|
| 64 |
+
* @since 2.6.0
|
| 65 |
+
*/
|
| 66 |
+
protected $_maxParcelDimensions;
|
| 67 |
+
|
| 68 |
+
/**
|
| 69 |
+
* Max parcel weight
|
| 70 |
+
* @var double signed 64-bit
|
| 71 |
+
* @since 2.6.0
|
| 72 |
+
*/
|
| 73 |
+
protected $_maxParcelWeight;
|
| 74 |
+
|
| 75 |
+
/**
|
| 76 |
+
* Working time schedule
|
| 77 |
+
* @var array of ResultWorkingTime
|
| 78 |
+
* @since 2.6.0
|
| 79 |
+
*/
|
| 80 |
+
protected $_workingTimeSchedule;
|
| 81 |
+
|
| 82 |
+
/**
|
| 83 |
+
* Constructs new instance of ResultStreet
|
| 84 |
+
* @param stdClass $stdClassResultStreet
|
| 85 |
+
*/
|
| 86 |
+
function __construct($stdClassResultOffice) {
|
| 87 |
+
$this->_id = isset($stdClassResultOffice->id) ? $stdClassResultOffice->id : null;
|
| 88 |
+
$this->_name = isset($stdClassResultOffice->name) ? $stdClassResultOffice->name : null;
|
| 89 |
+
$this->_siteId = isset($stdClassResultOffice->siteId) ? $stdClassResultOffice->siteId : null;
|
| 90 |
+
$this->_address = isset($stdClassResultOffice->address) ? new ResultAddressEx($stdClassResultOffice->address) : null;
|
| 91 |
+
$this->_workingTimeFrom = isset($stdClassResultOffice->workingTimeFrom) ? $stdClassResultOffice->workingTimeFrom : null;
|
| 92 |
+
$this->_workingTimeTo = isset($stdClassResultOffice->workingTimeTo) ? $stdClassResultOffice->workingTimeTo : null;
|
| 93 |
+
$this->_workingTimeHalfFrom = isset($stdClassResultOffice->workingTimeHalfFrom) ? $stdClassResultOffice->workingTimeHalfFrom : null;
|
| 94 |
+
$this->_workingTimeHalfTo = isset($stdClassResultOffice->workingTimeHalfTo) ? $stdClassResultOffice->workingTimeHalfTo : null;
|
| 95 |
+
$this->_maxParcelDimensions = isset($stdClassResultOffice->maxParcelDimensions) ? new Size($stdClassResultOffice->maxParcelDimensions) : null;
|
| 96 |
+
$this->_maxParcelWeight = isset($stdClassResultOffice->maxParcelWeight) ? $stdClassResultOffice->maxParcelWeight : null;
|
| 97 |
+
|
| 98 |
+
$arrWorkingTimeSchedule = array();
|
| 99 |
+
if (isset($stdClassResultOffice->workingTimeSchedule)) {
|
| 100 |
+
if (is_array($stdClassResultOffice->workingTimeSchedule)) {
|
| 101 |
+
for($i = 0; $i < count($stdClassResultOffice->workingTimeSchedule); $i++) {
|
| 102 |
+
$arrWorkingTimeSchedule[$i] = new ResultWorkingTime($stdClassResultOffice->workingTimeSchedule[$i]);
|
| 103 |
+
}
|
| 104 |
+
} else {
|
| 105 |
+
$arrWorkingTimeSchedule[0] = new ResultWorkingTime($stdClassResultOffice->workingTimeSchedule);
|
| 106 |
+
}
|
| 107 |
+
}
|
| 108 |
+
$this->_workingTimeSchedule = $arrWorkingTimeSchedule;
|
| 109 |
+
}
|
| 110 |
+
|
| 111 |
+
/**
|
| 112 |
+
* Get quarter ID
|
| 113 |
+
* @return integer Signed 64-bit quarter ID
|
| 114 |
+
*/
|
| 115 |
+
public function getId() {
|
| 116 |
+
return $this->_id;
|
| 117 |
+
}
|
| 118 |
+
|
| 119 |
+
/**
|
| 120 |
+
* Get quarter name
|
| 121 |
+
* @return string Quarter name
|
| 122 |
+
*/
|
| 123 |
+
public function getName() {
|
| 124 |
+
return $this->_name;
|
| 125 |
+
}
|
| 126 |
+
|
| 127 |
+
/**
|
| 128 |
+
* Get serving site ID
|
| 129 |
+
* @return string Serving site ID
|
| 130 |
+
*/
|
| 131 |
+
public function getSiteId() {
|
| 132 |
+
return $this->_siteId;
|
| 133 |
+
}
|
| 134 |
+
|
| 135 |
+
/**
|
| 136 |
+
* Get office address
|
| 137 |
+
* @return ResultAddressEx Office address
|
| 138 |
+
*/
|
| 139 |
+
public function getAddress() {
|
| 140 |
+
return $this->_address;
|
| 141 |
+
}
|
| 142 |
+
|
| 143 |
+
/**
|
| 144 |
+
* Get working time for FULL working days - FROM
|
| 145 |
+
* @return integer Signed 16-bit integer ("HHmm" format, i.e., the number "1315" means "13:15", "830" means "8:30" etc.)
|
| 146 |
+
*/
|
| 147 |
+
public function getWorkingTimeFrom() {
|
| 148 |
+
return $this->_workingTimeFrom;
|
| 149 |
+
}
|
| 150 |
+
|
| 151 |
+
/**
|
| 152 |
+
* Get working time for FULL working days - TO
|
| 153 |
+
* @return integer Signed 16-bit integer ("HHmm" format, i.e., the number "1315" means "13:15", "830" means "8:30" etc.)
|
| 154 |
+
*/
|
| 155 |
+
public function getWorkingTimeTo() {
|
| 156 |
+
return $this->_workingTimeTo;
|
| 157 |
+
}
|
| 158 |
+
|
| 159 |
+
/**
|
| 160 |
+
* Get working time for HALF working days - FROM
|
| 161 |
+
* @return integer Signed 16-bit integer ("HHmm" format, i.e., the number "1315" means "13:15", "830" means "8:30" etc.)
|
| 162 |
+
*/
|
| 163 |
+
public function getWorkingTimeHalfFrom() {
|
| 164 |
+
return $this->_workingTimeHalfFrom;
|
| 165 |
+
}
|
| 166 |
+
|
| 167 |
+
/**
|
| 168 |
+
* Get working time for HALF working days - TO
|
| 169 |
+
* @return integer Signed 16-bit integer ("HHmm" format, i.e., the number "1315" means "13:15", "830" means "8:30" etc.)
|
| 170 |
+
*/
|
| 171 |
+
public function getWorkingTimeHalfTo() {
|
| 172 |
+
return $this->_workingTimeHalfTo;
|
| 173 |
+
}
|
| 174 |
+
|
| 175 |
+
/**
|
| 176 |
+
* Get MAX parcel dimensions
|
| 177 |
+
* @return Size Maximum parcel dimensions
|
| 178 |
+
* @since 2.6.0
|
| 179 |
+
*/
|
| 180 |
+
public function getMaxParcelDimensions() {
|
| 181 |
+
return $this->_maxParcelDimensions;
|
| 182 |
+
}
|
| 183 |
+
|
| 184 |
+
/**
|
| 185 |
+
* Get MAX parcel weight
|
| 186 |
+
* @return Size Maximum parcel weight
|
| 187 |
+
* @since 2.6.0
|
| 188 |
+
*/
|
| 189 |
+
public function getMaxParcelWeight() {
|
| 190 |
+
return $this->_maxParcelWeight;
|
| 191 |
+
}
|
| 192 |
+
|
| 193 |
+
/**
|
| 194 |
+
* Get working time schedule
|
| 195 |
+
* @return array list of ResultWorkingTime
|
| 196 |
+
* @since 2.6.0
|
| 197 |
+
*/
|
| 198 |
+
public function getWorkingTimeSchedule() {
|
| 199 |
+
return $this->_workingTimeSchedule;
|
| 200 |
+
}
|
| 201 |
+
}
|
| 202 |
Â
?>
|
lib/SpeedyEPS/ver01/ResultOrderPickingInfo.class.php
CHANGED
|
File without changes
|
lib/SpeedyEPS/ver01/ResultParcelInfo.class.php
CHANGED
|
File without changes
|
lib/SpeedyEPS/ver01/ResultPhoneNumber.class.php
CHANGED
|
File without changes
|
lib/SpeedyEPS/ver01/ResultPickingInfo.class.php
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Instances of this class are returned as a result of searchSecondaryPickings
|
| 4 |
+
*/
|
| 5 |
+
class ResultPickingInfo {
|
| 6 |
+
|
| 7 |
+
/**
|
| 8 |
+
* BOL of the secondary shipment.
|
| 9 |
+
* @var integer Signed 64-bit
|
| 10 |
+
*/
|
| 11 |
+
private $_billOfLading;
|
| 12 |
+
|
| 13 |
+
/**
|
| 14 |
+
* Search type (nullable)
|
| 15 |
+
* 1 = PICKING_TYPE_RETURN_SHIPMENT - return documents/receipt/service/shipment
|
| 16 |
+
* 2 = PICKING_TYPE_STORAGE_PAYMENT - warehouse charges
|
| 17 |
+
* 3 = PICKING_TYPE_REDIRECT - redirect shipment
|
| 18 |
+
* 4 = PICKING_TYPE_SEND_BACK - return to sender
|
| 19 |
+
* 5 = PICKING_TYPE_MONEY_TRANSFER - money transfer
|
| 20 |
+
* 6 = PICKING_TYPE_TRANSPORT_DAMAGED - damaged shipment transport
|
| 21 |
+
* @var integer Signed 32-bit
|
| 22 |
+
*/
|
| 23 |
+
private $_secondaryPickingType;
|
| 24 |
+
|
| 25 |
+
/**
|
| 26 |
+
* The date for shipment pick-up (the "time" component is ignored). Default value is "today".
|
| 27 |
+
* @var date Taking date
|
| 28 |
+
*/
|
| 29 |
+
private $_takingDate;
|
| 30 |
+
|
| 31 |
+
/**
|
| 32 |
+
* Courier service type ID.
|
| 33 |
+
* @var integer Signed 64-bit
|
| 34 |
+
*/
|
| 35 |
+
private $_serviceTypeId;
|
| 36 |
+
|
| 37 |
+
/**
|
| 38 |
+
* Shows whether the secondary shipment has any barcode history operations.
|
| 39 |
+
* @var boolean Hs scan flag
|
| 40 |
+
*/
|
| 41 |
+
private $_hasScans;
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
/**
|
| 45 |
+
* Constructs new instance of ResultPickingInfo from stdClass
|
| 46 |
+
* @param stdClass $stdResultPickingInfo
|
| 47 |
+
*/
|
| 48 |
+
function __construct($stdResultPickingInfo) {
|
| 49 |
+
$this->_billOfLading = isset($stdResultPickingInfo->billOfLading) ? $stdResultPickingInfo->billOfLading : null;
|
| 50 |
+
$this->_secondaryPickingType = isset($stdResultPickingInfo->secondaryPickingType) ? $stdResultPickingInfo->secondaryPickingType : null;
|
| 51 |
+
$this->_takingDate = isset($stdResultPickingInfo->takingDate) ? $stdResultPickingInfo->takingDate : null;
|
| 52 |
+
$this->_serviceTypeId = isset($stdResultPickingInfo->serviceTypeId) ? $stdResultPickingInfo->serviceTypeId : null;
|
| 53 |
+
$this->_hasScans = isset($stdResultPickingInfo->hasScans) ? $stdResultPickingInfo->hasScans : null;
|
| 54 |
+
}
|
| 55 |
+
|
| 56 |
+
/**
|
| 57 |
+
* Get BOL of the secondary shipment.
|
| 58 |
+
* @return integer Signed 64-bit
|
| 59 |
+
*/
|
| 60 |
+
public function getBillOfLading() {
|
| 61 |
+
return $this->_billOfLading;
|
| 62 |
+
}
|
| 63 |
+
|
| 64 |
+
/**
|
| 65 |
+
* Get search type
|
| 66 |
+
* 1 = PICKING_TYPE_RETURN_SHIPMENT - return documents/receipt/service/shipment
|
| 67 |
+
* 2 = PICKING_TYPE_STORAGE_PAYMENT - warehouse charges
|
| 68 |
+
* 3 = PICKING_TYPE_REDIRECT - redirect shipment
|
| 69 |
+
* 4 = PICKING_TYPE_SEND_BACK - return to sender
|
| 70 |
+
* 5 = PICKING_TYPE_MONEY_TRANSFER - money transfer
|
| 71 |
+
* 6 = PICKING_TYPE_TRANSPORT_DAMAGED - damaged shipment transport
|
| 72 |
+
* @return integer Signed 32-bit (nullable)
|
| 73 |
+
*/
|
| 74 |
+
public function getSecondaryPickingType() {
|
| 75 |
+
return $this->_secondaryPickingType;
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
/**
|
| 79 |
+
* Get taking date
|
| 80 |
+
* @return date Taking date
|
| 81 |
+
*/
|
| 82 |
+
public function getTakingDate() {
|
| 83 |
+
return $this->_takingDate;
|
| 84 |
+
}
|
| 85 |
+
|
| 86 |
+
/**
|
| 87 |
+
* Get courier service type ID.
|
| 88 |
+
* @return integer Signed 64-bit
|
| 89 |
+
*/
|
| 90 |
+
public function getServiceTypeId() {
|
| 91 |
+
return $this->_serviceTypeId;
|
| 92 |
+
}
|
| 93 |
+
|
| 94 |
+
/**
|
| 95 |
+
* Checks whether the secondary shipment has any barcode history operations.
|
| 96 |
+
* @return boolean Has scan flag
|
| 97 |
+
*/
|
| 98 |
+
public function isHasScans() {
|
| 99 |
+
return $this->_hasScans;
|
| 100 |
+
}
|
| 101 |
+
}
|
| 102 |
+
?>
|
lib/SpeedyEPS/ver01/ResultQuarter.class.php
CHANGED
|
File without changes
|
lib/SpeedyEPS/ver01/ResultSite.class.php
CHANGED
|
@@ -1,130 +1,232 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
|
| 3 |
-
require_once 'AddrNomen.class.php';
|
| 4 |
-
|
| 5 |
-
/**
|
| 6 |
-
* ResultSite instances are returned as a result of sites speedy web service requests
|
| 7 |
-
*/
|
| 8 |
-
class ResultSite {
|
| 9 |
-
|
| 10 |
-
/**
|
| 11 |
-
* Site ID
|
| 12 |
-
* @access private
|
| 13 |
-
* @var integer Signed 64-bit
|
| 14 |
-
*/
|
| 15 |
-
private $_id;
|
| 16 |
-
|
| 17 |
-
/**
|
| 18 |
-
* Site type
|
| 19 |
-
* @access private
|
| 20 |
-
* @var string
|
| 21 |
-
*/
|
| 22 |
-
private $_type;
|
| 23 |
-
|
| 24 |
-
/**
|
| 25 |
-
* Site name
|
| 26 |
-
* @access private
|
| 27 |
-
* @var string
|
| 28 |
-
*/
|
| 29 |
-
private $_name;
|
| 30 |
-
|
| 31 |
-
/**
|
| 32 |
-
* Site municipality name
|
| 33 |
-
* @access private
|
| 34 |
-
* @var string
|
| 35 |
-
*/
|
| 36 |
-
private $_municipality;
|
| 37 |
-
|
| 38 |
-
/**
|
| 39 |
-
* Site region name
|
| 40 |
-
* @access private
|
| 41 |
-
* @var string
|
| 42 |
-
*/
|
| 43 |
-
private $_region;
|
| 44 |
-
|
| 45 |
-
/**
|
| 46 |
-
* Site post code
|
| 47 |
-
* @access private
|
| 48 |
-
* @var string
|
| 49 |
-
*/
|
| 50 |
-
private $_postCode;
|
| 51 |
-
|
| 52 |
-
/**
|
| 53 |
-
* Site address nomenclature.
|
| 54 |
-
* Specifies if speedy have (or have not) address nomenclature (streets, quarters etc.) for this site
|
| 55 |
-
* @access private
|
| 56 |
-
* @var AddrNomen
|
| 57 |
-
*/
|
| 58 |
-
private $_addrNomen;
|
| 59 |
-
|
| 60 |
-
/**
|
| 61 |
-
*
|
| 62 |
-
* @
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
/**
|
| 83 |
-
*
|
| 84 |
-
* @
|
| 85 |
-
*/
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
*
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
}
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
| 130 |
Â
?>
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
require_once 'AddrNomen.class.php';
|
| 4 |
+
|
| 5 |
+
/**
|
| 6 |
+
* ResultSite instances are returned as a result of sites speedy web service requests
|
| 7 |
+
*/
|
| 8 |
+
class ResultSite {
|
| 9 |
+
|
| 10 |
+
/**
|
| 11 |
+
* Site ID
|
| 12 |
+
* @access private
|
| 13 |
+
* @var integer Signed 64-bit
|
| 14 |
+
*/
|
| 15 |
+
private $_id;
|
| 16 |
+
|
| 17 |
+
/**
|
| 18 |
+
* Site type
|
| 19 |
+
* @access private
|
| 20 |
+
* @var string
|
| 21 |
+
*/
|
| 22 |
+
private $_type;
|
| 23 |
+
|
| 24 |
+
/**
|
| 25 |
+
* Site name
|
| 26 |
+
* @access private
|
| 27 |
+
* @var string
|
| 28 |
+
*/
|
| 29 |
+
private $_name;
|
| 30 |
+
|
| 31 |
+
/**
|
| 32 |
+
* Site municipality name
|
| 33 |
+
* @access private
|
| 34 |
+
* @var string
|
| 35 |
+
*/
|
| 36 |
+
private $_municipality;
|
| 37 |
+
|
| 38 |
+
/**
|
| 39 |
+
* Site region name
|
| 40 |
+
* @access private
|
| 41 |
+
* @var string
|
| 42 |
+
*/
|
| 43 |
+
private $_region;
|
| 44 |
+
|
| 45 |
+
/**
|
| 46 |
+
* Site post code
|
| 47 |
+
* @access private
|
| 48 |
+
* @var string
|
| 49 |
+
*/
|
| 50 |
+
private $_postCode;
|
| 51 |
+
|
| 52 |
+
/**
|
| 53 |
+
* Site address nomenclature.
|
| 54 |
+
* Specifies if speedy have (or have not) address nomenclature (streets, quarters etc.) for this site
|
| 55 |
+
* @access private
|
| 56 |
+
* @var AddrNomen
|
| 57 |
+
*/
|
| 58 |
+
private $_addrNomen;
|
| 59 |
+
|
| 60 |
+
/**
|
| 61 |
+
* Site country id
|
| 62 |
+
* @access private
|
| 63 |
+
* @var integer signed 64-bit
|
| 64 |
+
* @since 2.5.0
|
| 65 |
+
*/
|
| 66 |
+
private $_countryId;
|
| 67 |
+
|
| 68 |
+
/**
|
| 69 |
+
* Serving office id
|
| 70 |
+
* @access private
|
| 71 |
+
* @var integer signed 64-bit
|
| 72 |
+
* @since 2.6.0
|
| 73 |
+
*/
|
| 74 |
+
private $_servingOfficeId;
|
| 75 |
+
|
| 76 |
+
/**
|
| 77 |
+
* GIS coordinate - X
|
| 78 |
+
* @var double Signed 64-bit
|
| 79 |
+
*/
|
| 80 |
+
private $_coordX;
|
| 81 |
+
|
| 82 |
+
/**
|
| 83 |
+
* GIS coordinate - Y
|
| 84 |
+
* @var double Signed 64-bit
|
| 85 |
+
*/
|
| 86 |
+
private $_coordY;
|
| 87 |
+
|
| 88 |
+
/**
|
| 89 |
+
* GIS coordinates type
|
| 90 |
+
* @var integer Signed 32-bit
|
| 91 |
+
*/
|
| 92 |
+
private $_coordType;
|
| 93 |
+
|
| 94 |
+
/**
|
| 95 |
+
* Serving days for this site.
|
| 96 |
+
* Format: 7 serial digits (0 or 1) where each digit corresponds to a day in week (the first digit corresponds to Monday, the second to Tuesday and so on).
|
| 97 |
+
* Value of '0' (zero) means that the site is not served by Speedy on this day while '1' (one) means that it is served.
|
| 98 |
+
* (Example: the text "0100100" means that the site is served on Tuesday and Friday only.)
|
| 99 |
+
*/
|
| 100 |
+
private $_servingDays;
|
| 101 |
+
|
| 102 |
+
|
| 103 |
+
/**
|
| 104 |
+
* Constructs new instance of ResultSite
|
| 105 |
+
* @param stdClass $stdClassResultSite
|
| 106 |
+
*/
|
| 107 |
+
function __construct($stdClassResultSite) {
|
| 108 |
+
$this->_id = isset($stdClassResultSite->id) ? $stdClassResultSite->id : null;
|
| 109 |
+
$this->_type = isset($stdClassResultSite->type) ? $stdClassResultSite->type : null;
|
| 110 |
+
$this->_name = isset($stdClassResultSite->name) ? $stdClassResultSite->name : null;
|
| 111 |
+
$this->_municipality = isset($stdClassResultSite->municipality) ? $stdClassResultSite->municipality : null;
|
| 112 |
+
$this->_region = isset($stdClassResultSite->region) ? $stdClassResultSite->region : null;
|
| 113 |
+
$this->_postCode = isset($stdClassResultSite->postCode) ? $stdClassResultSite->postCode : null;
|
| 114 |
+
$this->_addrNomen = isset($stdClassResultSite->addrNomen) ? new AddrNomen($stdClassResultSite->addrNomen) : null;
|
| 115 |
+
$this->_countryId = isset($stdClassResultSite->countryId) ? $stdClassResultSite->countryId : null;
|
| 116 |
+
$this->_servingOfficeId = isset($stdClassResultSite->servingOfficeId) ? $stdClassResultSite->servingOfficeId : null;
|
| 117 |
+
$this->_coordX = isset($stdClassResultSite->coordX) ? $stdClassResultSite->coordX : null;
|
| 118 |
+
$this->_coordY = isset($stdClassResultSite->coordY) ? $stdClassResultSite->coordY : null;
|
| 119 |
+
$this->_coordType = isset($stdClassResultSite->coordType) ? $stdClassResultSite->coordType : null;
|
| 120 |
+
$this->_servingDays = isset($stdClassResultSite->servingDays) ? $stdClassResultSite->servingDays : null;
|
| 121 |
+
}
|
| 122 |
+
|
| 123 |
+
/**
|
| 124 |
+
* Get site ID
|
| 125 |
+
* @return integer Signed 64-bit
|
| 126 |
+
*/
|
| 127 |
+
public function getId() {
|
| 128 |
+
return $this->_id;
|
| 129 |
+
}
|
| 130 |
+
|
| 131 |
+
/**
|
| 132 |
+
* Get site type
|
| 133 |
+
* @return string Site type
|
| 134 |
+
*/
|
| 135 |
+
public function getType() {
|
| 136 |
+
return $this->_type;
|
| 137 |
+
}
|
| 138 |
+
|
| 139 |
+
/**
|
| 140 |
+
* Get site name
|
| 141 |
+
* @return string Site name
|
| 142 |
+
*/
|
| 143 |
+
public function getName() {
|
| 144 |
+
return $this->_name;
|
| 145 |
+
}
|
| 146 |
+
|
| 147 |
+
/**
|
| 148 |
+
* Get site municipality
|
| 149 |
+
* @return string Site municipality
|
| 150 |
+
*/
|
| 151 |
+
public function getMunicipality() {
|
| 152 |
+
return $this->_municipality;
|
| 153 |
+
}
|
| 154 |
+
|
| 155 |
+
/**
|
| 156 |
+
* Get site region
|
| 157 |
+
* @return string Site region
|
| 158 |
+
*/
|
| 159 |
+
public function getRegion() {
|
| 160 |
+
return $this->_region;
|
| 161 |
+
}
|
| 162 |
+
|
| 163 |
+
/**
|
| 164 |
+
* Get site post code
|
| 165 |
+
* @return string Site post code
|
| 166 |
+
*/
|
| 167 |
+
public function getPostCode() {
|
| 168 |
+
return $this->_postCode;
|
| 169 |
+
}
|
| 170 |
+
|
| 171 |
+
/**
|
| 172 |
+
* Get site address nomenclature
|
| 173 |
+
* @return string Site address nomenclature
|
| 174 |
+
*/
|
| 175 |
+
public function getAddrNomen() {
|
| 176 |
+
return $this->_addrNomen;
|
| 177 |
+
}
|
| 178 |
+
|
| 179 |
+
/**
|
| 180 |
+
* Get site country id
|
| 181 |
+
* @return integer signed 64-bit Site country id
|
| 182 |
+
*/
|
| 183 |
+
public function getCountryId() {
|
| 184 |
+
return $this->_countryId;
|
| 185 |
+
}
|
| 186 |
+
|
| 187 |
+
/**
|
| 188 |
+
* Gets serving office id for this site
|
| 189 |
+
* @return integer signed 64-bit Serving office id
|
| 190 |
+
* @since 2.6.0
|
| 191 |
+
*/
|
| 192 |
+
public function getServingOfficeId() {
|
| 193 |
+
return $this->_servingOfficeId;
|
| 194 |
+
}
|
| 195 |
+
|
| 196 |
+
/**
|
| 197 |
+
* Get GIS coordinate X
|
| 198 |
+
* @return double Signed 64-bit
|
| 199 |
+
* @since 2.6.0
|
| 200 |
+
*/
|
| 201 |
+
public function getCoordX() {
|
| 202 |
+
return $this->_coordX;
|
| 203 |
+
}
|
| 204 |
+
|
| 205 |
+
/**
|
| 206 |
+
* Get GIS coordinate Y
|
| 207 |
+
* @return double Signed 64-bit
|
| 208 |
+
* @since 2.6.0
|
| 209 |
+
*/
|
| 210 |
+
public function getCoordY() {
|
| 211 |
+
return $this->_coordY;
|
| 212 |
+
}
|
| 213 |
+
|
| 214 |
+
/**
|
| 215 |
+
* Get GIS coordinate type
|
| 216 |
+
* @return integer Signed 32-bit
|
| 217 |
+
* @since 2.6.0
|
| 218 |
+
*/
|
| 219 |
+
public function getCoordType() {
|
| 220 |
+
return $this->_coordType;
|
| 221 |
+
}
|
| 222 |
+
|
| 223 |
+
/**
|
| 224 |
+
* Get serving days
|
| 225 |
+
* @return string Serving days
|
| 226 |
+
* @since 2.7.0
|
| 227 |
+
*/
|
| 228 |
+
public function getServingDays() {
|
| 229 |
+
return $this->_servingDays;
|
| 230 |
+
}
|
| 231 |
+
}
|
| 232 |
Â
?>
|
lib/SpeedyEPS/ver01/ResultSiteEx.class.php
CHANGED
|
File without changes
|
lib/SpeedyEPS/ver01/ResultSpecialDeliveryRequirement.class.php
CHANGED
|
@@ -1,61 +1,61 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
/**
|
| 3 |
-
* Instances of this class are returned as a result of services for special delivery requirements
|
| 4 |
-
*
|
| 5 |
-
* @since 2.1.0
|
| 6 |
-
*/
|
| 7 |
-
class ResultSpecialDeliveryRequirement {
|
| 8 |
-
|
| 9 |
-
/**
|
| 10 |
-
* A special delivery ID
|
| 11 |
-
* @var integer 64-bit
|
| 12 |
-
*/
|
| 13 |
-
private $_specialDeliveryId;
|
| 14 |
-
|
| 15 |
-
/**
|
| 16 |
-
* A special delivery description
|
| 17 |
-
* @var string
|
| 18 |
-
*/
|
| 19 |
-
private $_specialDeliveryText;
|
| 20 |
-
|
| 21 |
-
/**
|
| 22 |
-
* A special delivery price
|
| 23 |
-
* @var double (signed 64-bit)
|
| 24 |
-
*/
|
| 25 |
-
private $_specialDeliveryPrice;
|
| 26 |
-
|
| 27 |
-
/**
|
| 28 |
-
* Constructs new instance of ResultSpecialDeliveryRequirement
|
| 29 |
-
* @param stdClass $stdClassResultSpecialDeliveryRequirement
|
| 30 |
-
*/
|
| 31 |
-
function __construct($stdClassResultSpecialDeliveryRequirement) {
|
| 32 |
-
$this->_specialDeliveryId = isset($stdClassResultSpecialDeliveryRequirement->specialDeliveryId) ? $stdClassResultSpecialDeliveryRequirement->specialDeliveryId : null;
|
| 33 |
-
$this->_specialDeliveryText = isset($stdClassResultSpecialDeliveryRequirement->specialDeliveryText) ? $stdClassResultSpecialDeliveryRequirement->specialDeliveryText : null;
|
| 34 |
-
$this->_specialDeliveryPrice = isset($stdClassResultSpecialDeliveryRequirement->specialDeliveryPrice) ? $stdClassResultSpecialDeliveryRequirement->specialDeliveryPrice : null;
|
| 35 |
-
}
|
| 36 |
-
|
| 37 |
-
/**
|
| 38 |
-
* Get special delivery id
|
| 39 |
-
* @return integer (64-bit)
|
| 40 |
-
*/
|
| 41 |
-
public function getSpecialDeliveryId() {
|
| 42 |
-
return $this->_specialDeliveryId;
|
| 43 |
-
}
|
| 44 |
-
|
| 45 |
-
/**
|
| 46 |
-
* Get special delivery text
|
| 47 |
-
* @return string
|
| 48 |
-
*/
|
| 49 |
-
public function getSpecialDeliveryText() {
|
| 50 |
-
return $this->_specialDeliveryText;
|
| 51 |
-
}
|
| 52 |
-
|
| 53 |
-
/**
|
| 54 |
-
* Get special delivery price
|
| 55 |
-
* @return double signed 64-bit
|
| 56 |
-
*/
|
| 57 |
-
public function getSpecialDeliveryPrice() {
|
| 58 |
-
return $this->_specialDeliveryPrice;
|
| 59 |
-
}
|
| 60 |
-
}
|
| 61 |
Â
?>
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Instances of this class are returned as a result of services for special delivery requirements
|
| 4 |
+
*
|
| 5 |
+
* @since 2.1.0
|
| 6 |
+
*/
|
| 7 |
+
class ResultSpecialDeliveryRequirement {
|
| 8 |
+
|
| 9 |
+
/**
|
| 10 |
+
* A special delivery ID
|
| 11 |
+
* @var integer 64-bit
|
| 12 |
+
*/
|
| 13 |
+
private $_specialDeliveryId;
|
| 14 |
+
|
| 15 |
+
/**
|
| 16 |
+
* A special delivery description
|
| 17 |
+
* @var string
|
| 18 |
+
*/
|
| 19 |
+
private $_specialDeliveryText;
|
| 20 |
+
|
| 21 |
+
/**
|
| 22 |
+
* A special delivery price
|
| 23 |
+
* @var double (signed 64-bit)
|
| 24 |
+
*/
|
| 25 |
+
private $_specialDeliveryPrice;
|
| 26 |
+
|
| 27 |
+
/**
|
| 28 |
+
* Constructs new instance of ResultSpecialDeliveryRequirement
|
| 29 |
+
* @param stdClass $stdClassResultSpecialDeliveryRequirement
|
| 30 |
+
*/
|
| 31 |
+
function __construct($stdClassResultSpecialDeliveryRequirement) {
|
| 32 |
+
$this->_specialDeliveryId = isset($stdClassResultSpecialDeliveryRequirement->specialDeliveryId) ? $stdClassResultSpecialDeliveryRequirement->specialDeliveryId : null;
|
| 33 |
+
$this->_specialDeliveryText = isset($stdClassResultSpecialDeliveryRequirement->specialDeliveryText) ? $stdClassResultSpecialDeliveryRequirement->specialDeliveryText : null;
|
| 34 |
+
$this->_specialDeliveryPrice = isset($stdClassResultSpecialDeliveryRequirement->specialDeliveryPrice) ? $stdClassResultSpecialDeliveryRequirement->specialDeliveryPrice : null;
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
/**
|
| 38 |
+
* Get special delivery id
|
| 39 |
+
* @return integer (64-bit)
|
| 40 |
+
*/
|
| 41 |
+
public function getSpecialDeliveryId() {
|
| 42 |
+
return $this->_specialDeliveryId;
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
/**
|
| 46 |
+
* Get special delivery text
|
| 47 |
+
* @return string
|
| 48 |
+
*/
|
| 49 |
+
public function getSpecialDeliveryText() {
|
| 50 |
+
return $this->_specialDeliveryText;
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
/**
|
| 54 |
+
* Get special delivery price
|
| 55 |
+
* @return double signed 64-bit
|
| 56 |
+
*/
|
| 57 |
+
public function getSpecialDeliveryPrice() {
|
| 58 |
+
return $this->_specialDeliveryPrice;
|
| 59 |
+
}
|
| 60 |
+
}
|
| 61 |
Â
?>
|
lib/SpeedyEPS/ver01/ResultState.class.php
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* Instances of this class are returned in response to state search methods
|
| 5 |
+
* @since 2.5.0
|
| 6 |
+
*/
|
| 7 |
+
class ResultState {
|
| 8 |
+
|
| 9 |
+
/**
|
| 10 |
+
* State country id
|
| 11 |
+
* @var integer signed 64-bit
|
| 12 |
+
*/
|
| 13 |
+
private $_countryId;
|
| 14 |
+
|
| 15 |
+
/**
|
| 16 |
+
* Country state name
|
| 17 |
+
* @var string
|
| 18 |
+
*/
|
| 19 |
+
private $_name;
|
| 20 |
+
|
| 21 |
+
/**
|
| 22 |
+
* Country state alpha code
|
| 23 |
+
* @var string
|
| 24 |
+
*/
|
| 25 |
+
private $_stateAlpha;
|
| 26 |
+
|
| 27 |
+
/**
|
| 28 |
+
* Country state id
|
| 29 |
+
* @var string
|
| 30 |
+
*/
|
| 31 |
+
private $_stateId;
|
| 32 |
+
|
| 33 |
+
/**
|
| 34 |
+
* Constructs new instance of ResultState
|
| 35 |
+
* @param stdClass $stdClassResultState
|
| 36 |
+
*/
|
| 37 |
+
function __construct($stdClassResultState) {
|
| 38 |
+
$this->_countryId = isset($stdClassResultState->countryId) ? $stdClassResultState->countryId : null;
|
| 39 |
+
$this->_name = isset($stdClassResultState->name) ? $stdClassResultState->name : null;
|
| 40 |
+
$this->_stateAlpha = isset($stdClassResultState->stateAlpha) ? $stdClassResultState->stateAlpha : null;
|
| 41 |
+
$this->_stateId = isset($stdClassResultState->stateId) ? $stdClassResultState->stateId : null;
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
/**
|
| 45 |
+
* Gets state country id
|
| 46 |
+
* @return integer signed 64-bit State country id
|
| 47 |
+
*/
|
| 48 |
+
public function getCountryId() {
|
| 49 |
+
return $this->_countryId;
|
| 50 |
+
}
|
| 51 |
+
|
| 52 |
+
/**
|
| 53 |
+
* Gets the country state name
|
| 54 |
+
* @return string Country state name
|
| 55 |
+
*/
|
| 56 |
+
public function getName() {
|
| 57 |
+
return $this->_name;
|
| 58 |
+
}
|
| 59 |
+
|
| 60 |
+
/**
|
| 61 |
+
* Gets the country state alpha code
|
| 62 |
+
* @return string Country state alpha
|
| 63 |
+
*/
|
| 64 |
+
public function getStateAlpha() {
|
| 65 |
+
return $this->_stateAlpha;
|
| 66 |
+
}
|
| 67 |
+
|
| 68 |
+
/**
|
| 69 |
+
* Gets the country state id
|
| 70 |
+
* @return string Country state id
|
| 71 |
+
*/
|
| 72 |
+
public function getStateId() {
|
| 73 |
+
return $this->_stateId;
|
| 74 |
+
}
|
| 75 |
+
}
|
| 76 |
+
?>
|
lib/SpeedyEPS/ver01/ResultStreet.class.php
CHANGED
|
File without changes
|
lib/SpeedyEPS/ver01/ResultTrackPicking.class.php
CHANGED
|
@@ -4,6 +4,13 @@
|
|
| 4 |
Â
*/
|
| 5 |
Â
class ResultTrackPicking {
|
| 6 |
Â
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
| 7 |
Â
/**
|
| 8 |
Â
* Date and time
|
| 9 |
Â
* @var date
|
|
@@ -45,12 +52,20 @@ class ResultTrackPicking {
|
|
| 45 |
Â
* @var string
|
| 46 |
Â
*/
|
| 47 |
Â
private $_consignee;
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
| 48 |
Â
|
| 49 |
Â
/**
|
| 50 |
Â
* Constructs new instance of ResultTrackPicking
|
| 51 |
Â
* @param stdClass $stdClassResultTrackPicking
|
| 52 |
Â
*/
|
| 53 |
Â
function __construct($stdClassResultTrackPicking) {
|
|
Â
|
|
| 54 |
Â
$this->_moment = isset($stdClassResultTrackPicking->moment) ? $stdClassResultTrackPicking->moment : null;
|
| 55 |
Â
$this->_operationCode = isset($stdClassResultTrackPicking->operationCode) ? $stdClassResultTrackPicking->operationCode : null;
|
| 56 |
Â
$this->_operationDescription = isset($stdClassResultTrackPicking->operationDescription) ? $stdClassResultTrackPicking->operationDescription : null;
|
|
@@ -58,6 +73,16 @@ class ResultTrackPicking {
|
|
| 58 |
Â
$this->_siteType = isset($stdClassResultTrackPicking->siteType) ? $stdClassResultTrackPicking->siteType : null;
|
| 59 |
Â
$this->_siteName = isset($stdClassResultTrackPicking->siteName) ? $stdClassResultTrackPicking->siteName : null;
|
| 60 |
Â
$this->_consignee = isset($stdClassResultTrackPicking->consignee) ? $stdClassResultTrackPicking->consignee : null;
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
| 61 |
Â
}
|
| 62 |
Â
|
| 63 |
Â
/**
|
|
@@ -115,5 +140,14 @@ class ResultTrackPicking {
|
|
| 115 |
Â
public function getConsignee() {
|
| 116 |
Â
return $this->_consignee;
|
| 117 |
Â
}
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
| 118 |
Â
}
|
| 119 |
Â
?>
|
| 4 |
Â
*/
|
| 5 |
Â
class ResultTrackPicking {
|
| 6 |
Â
|
| 7 |
+
/**
|
| 8 |
+
* BOL number or parcel id
|
| 9 |
+
* @var integer signed 64-bit (nullable)
|
| 10 |
+
* @since 2.8.0
|
| 11 |
+
*/
|
| 12 |
+
private $_barcode;
|
| 13 |
+
|
| 14 |
Â
/**
|
| 15 |
Â
* Date and time
|
| 16 |
Â
* @var date
|
| 52 |
Â
* @var string
|
| 53 |
Â
*/
|
| 54 |
Â
private $_consignee;
|
| 55 |
+
|
| 56 |
+
/**
|
| 57 |
+
* Image URL for proof of delivery
|
| 58 |
+
* @var string
|
| 59 |
+
* @since 2.8.0
|
| 60 |
+
*/
|
| 61 |
+
private $_signatureImage;
|
| 62 |
Â
|
| 63 |
Â
/**
|
| 64 |
Â
* Constructs new instance of ResultTrackPicking
|
| 65 |
Â
* @param stdClass $stdClassResultTrackPicking
|
| 66 |
Â
*/
|
| 67 |
Â
function __construct($stdClassResultTrackPicking) {
|
| 68 |
+
$this->_barcode = isset($stdClassResultTrackPicking->barcode) ? $stdClassResultTrackPicking->barcode : null;
|
| 69 |
Â
$this->_moment = isset($stdClassResultTrackPicking->moment) ? $stdClassResultTrackPicking->moment : null;
|
| 70 |
Â
$this->_operationCode = isset($stdClassResultTrackPicking->operationCode) ? $stdClassResultTrackPicking->operationCode : null;
|
| 71 |
Â
$this->_operationDescription = isset($stdClassResultTrackPicking->operationDescription) ? $stdClassResultTrackPicking->operationDescription : null;
|
| 73 |
Â
$this->_siteType = isset($stdClassResultTrackPicking->siteType) ? $stdClassResultTrackPicking->siteType : null;
|
| 74 |
Â
$this->_siteName = isset($stdClassResultTrackPicking->siteName) ? $stdClassResultTrackPicking->siteName : null;
|
| 75 |
Â
$this->_consignee = isset($stdClassResultTrackPicking->consignee) ? $stdClassResultTrackPicking->consignee : null;
|
| 76 |
+
$this->_signatureImage = isset($stdClassResultTrackPicking->signatureImage) ? $stdClassResultTrackPicking->signatureImage : null;
|
| 77 |
+
}
|
| 78 |
+
|
| 79 |
+
/**
|
| 80 |
+
* Get barcode (BOL number or parcel id)
|
| 81 |
+
* @return integer signed 64-bit
|
| 82 |
+
* @since 2.8.0
|
| 83 |
+
*/
|
| 84 |
+
public function getBarcode() {
|
| 85 |
+
return $this->_barcode;
|
| 86 |
Â
}
|
| 87 |
Â
|
| 88 |
Â
/**
|
| 140 |
Â
public function getConsignee() {
|
| 141 |
Â
return $this->_consignee;
|
| 142 |
Â
}
|
| 143 |
+
|
| 144 |
+
/**
|
| 145 |
+
* Get image URL for proof of delivery
|
| 146 |
+
* @return integer signed 64-bit
|
| 147 |
+
* @since 2.8.0
|
| 148 |
+
*/
|
| 149 |
+
public function getSignatureImage() {
|
| 150 |
+
return $this->_signatureImage;
|
| 151 |
+
}
|
| 152 |
Â
}
|
| 153 |
Â
?>
|
lib/SpeedyEPS/ver01/ResultTrackPickingEx.class.php
CHANGED
|
@@ -5,6 +5,13 @@
|
|
| 5 |
Â
*/
|
| 6 |
Â
class ResultTrackPickingEx {
|
| 7 |
Â
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
| 8 |
Â
/**
|
| 9 |
Â
* Date and time
|
| 10 |
Â
* @var date
|
|
@@ -59,11 +66,19 @@ class ResultTrackPickingEx {
|
|
| 59 |
Â
*/
|
| 60 |
Â
private $_redirectBillOfLading;
|
| 61 |
Â
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
| 62 |
Â
/**
|
| 63 |
Â
* Constructs new instance of ResultTrackPickingEx
|
| 64 |
Â
* @param stdClass $stdClassResultTrackPickingEx
|
| 65 |
Â
*/
|
| 66 |
Â
function __construct($stdClassResultTrackPickingEx) {
|
|
Â
|
|
| 67 |
Â
$this->_moment = isset($stdClassResultTrackPickingEx->moment) ? $stdClassResultTrackPickingEx->moment : null;
|
| 68 |
Â
$this->_operationCode = isset($stdClassResultTrackPickingEx->operationCode) ? $stdClassResultTrackPickingEx->operationCode : null;
|
| 69 |
Â
$this->_operationDescription = isset($stdClassResultTrackPickingEx->operationDescription) ? $stdClassResultTrackPickingEx->operationDescription : null;
|
|
@@ -73,9 +88,18 @@ class ResultTrackPickingEx {
|
|
| 73 |
Â
$this->_consignee = isset($stdClassResultTrackPickingEx->consignee) ? $stdClassResultTrackPickingEx->consignee : null;
|
| 74 |
Â
$this->_returnBillOfLading = isset($stdClassResultTrackPickingEx->returnBillOfLading) ? $stdClassResultTrackPickingEx->returnBillOfLading : null;
|
| 75 |
Â
$this->_redirectBillOfLading = isset($stdClassResultTrackPickingEx->redirectBillOfLading) ? $stdClassResultTrackPickingEx->redirectBillOfLading : null;
|
|
Â
|
|
| 76 |
Â
}
|
| 77 |
Â
|
| 78 |
-
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
| 79 |
Â
/**
|
| 80 |
Â
* Get date and time of the request
|
| 81 |
Â
* @return date
|
|
@@ -147,5 +171,14 @@ class ResultTrackPickingEx {
|
|
| 147 |
Â
public function getRedirectBillOfLading() {
|
| 148 |
Â
return $this->_redirectBillOfLading;
|
| 149 |
Â
}
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
| 150 |
Â
}
|
| 151 |
Â
?>
|
| 5 |
Â
*/
|
| 6 |
Â
class ResultTrackPickingEx {
|
| 7 |
Â
|
| 8 |
+
/**
|
| 9 |
+
* BOL number or parcel id
|
| 10 |
+
* @var integer signed 64-bit (nullable)
|
| 11 |
+
* @since 2.8.0
|
| 12 |
+
*/
|
| 13 |
+
private $_barcode;
|
| 14 |
+
|
| 15 |
Â
/**
|
| 16 |
Â
* Date and time
|
| 17 |
Â
* @var date
|
| 66 |
Â
*/
|
| 67 |
Â
private $_redirectBillOfLading;
|
| 68 |
Â
|
| 69 |
+
/**
|
| 70 |
+
* Image URL for proof of delivery
|
| 71 |
+
* @var string
|
| 72 |
+
* @since 2.8.0
|
| 73 |
+
*/
|
| 74 |
+
private $_signatureImage;
|
| 75 |
+
|
| 76 |
Â
/**
|
| 77 |
Â
* Constructs new instance of ResultTrackPickingEx
|
| 78 |
Â
* @param stdClass $stdClassResultTrackPickingEx
|
| 79 |
Â
*/
|
| 80 |
Â
function __construct($stdClassResultTrackPickingEx) {
|
| 81 |
+
$this->_barcode = isset($stdClassResultTrackPickingEx->barcode) ? $stdClassResultTrackPickingEx->barcode : null;
|
| 82 |
Â
$this->_moment = isset($stdClassResultTrackPickingEx->moment) ? $stdClassResultTrackPickingEx->moment : null;
|
| 83 |
Â
$this->_operationCode = isset($stdClassResultTrackPickingEx->operationCode) ? $stdClassResultTrackPickingEx->operationCode : null;
|
| 84 |
Â
$this->_operationDescription = isset($stdClassResultTrackPickingEx->operationDescription) ? $stdClassResultTrackPickingEx->operationDescription : null;
|
| 88 |
Â
$this->_consignee = isset($stdClassResultTrackPickingEx->consignee) ? $stdClassResultTrackPickingEx->consignee : null;
|
| 89 |
Â
$this->_returnBillOfLading = isset($stdClassResultTrackPickingEx->returnBillOfLading) ? $stdClassResultTrackPickingEx->returnBillOfLading : null;
|
| 90 |
Â
$this->_redirectBillOfLading = isset($stdClassResultTrackPickingEx->redirectBillOfLading) ? $stdClassResultTrackPickingEx->redirectBillOfLading : null;
|
| 91 |
+
$this->_signatureImage = isset($stdClassResultTrackPickingEx->signatureImage) ? $stdClassResultTrackPickingEx->signatureImage : null;
|
| 92 |
Â
}
|
| 93 |
Â
|
| 94 |
+
/**
|
| 95 |
+
* Get barcode (BOL number or parcel id)
|
| 96 |
+
* @return integer signed 64-bit
|
| 97 |
+
* @since 2.8.0
|
| 98 |
+
*/
|
| 99 |
+
public function getBarcode() {
|
| 100 |
+
return $this->_barcode;
|
| 101 |
+
}
|
| 102 |
+
|
| 103 |
Â
/**
|
| 104 |
Â
* Get date and time of the request
|
| 105 |
Â
* @return date
|
| 171 |
Â
public function getRedirectBillOfLading() {
|
| 172 |
Â
return $this->_redirectBillOfLading;
|
| 173 |
Â
}
|
| 174 |
+
|
| 175 |
+
/**
|
| 176 |
+
* Get image URL for proof of delivery
|
| 177 |
+
* @return integer signed 64-bit
|
| 178 |
+
* @since 2.8.0
|
| 179 |
+
*/
|
| 180 |
+
public function getSignatureImage() {
|
| 181 |
+
return $this->_signatureImage;
|
| 182 |
+
}
|
| 183 |
Â
}
|
| 184 |
Â
?>
|
lib/SpeedyEPS/ver01/ResultWorkingTime.class.php
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
require_once 'ResultParcelInfo.class.php';
|
| 4 |
+
|
| 5 |
+
/**
|
| 6 |
+
* Instances of this class are returned as a result of office working time information
|
| 7 |
+
*/
|
| 8 |
+
class ResultWorkingTime {
|
| 9 |
+
|
| 10 |
+
/**
|
| 11 |
+
* Date for which working time is valid
|
| 12 |
+
* @var date
|
| 13 |
+
*/
|
| 14 |
+
private $_date;
|
| 15 |
+
|
| 16 |
+
/**
|
| 17 |
+
* Flag whether office working time is overriden
|
| 18 |
+
* @var boolean
|
| 19 |
+
* @since 2.8.0
|
| 20 |
+
*/
|
| 21 |
+
private $_workingTimeException;
|
| 22 |
+
|
| 23 |
+
/**
|
| 24 |
+
* Working time start (HHMM)
|
| 25 |
+
* @var signed 16 bit integer
|
| 26 |
+
*/
|
| 27 |
+
private $_workingTimeFrom;
|
| 28 |
+
|
| 29 |
+
/**
|
| 30 |
+
* Working time end (HHMM)
|
| 31 |
+
* @var signed 16 bit integer
|
| 32 |
+
*/
|
| 33 |
+
private $_workingTimeTo;
|
| 34 |
+
|
| 35 |
+
/**
|
| 36 |
+
* Constructs new instance of ResultWorkingTime from stdClass
|
| 37 |
+
* @param stdClass $stdClassResultWorkingTime
|
| 38 |
+
*/
|
| 39 |
+
function __construct($stdClassResultWorkingTime) {
|
| 40 |
+
$this->_date = isset($stdClassResultWorkingTime->date) ? $stdClassResultWorkingTime->date : null;
|
| 41 |
+
$this->_workingTimeException = isset($stdClassResultWorkingTime->workingTimeException) ? $stdClassResultWorkingTime->workingTimeException : null;
|
| 42 |
+
$this->_workingTimeFrom = isset($stdClassResultWorkingTime->workingTimeFrom) ? $stdClassResultWorkingTime->workingTimeFrom : null;
|
| 43 |
+
$this->_workingTimeTo = isset($stdClassResultWorkingTime->workingTimeTo) ? $stdClassResultWorkingTime->workingTimeTo : null;
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
/**
|
| 47 |
+
* Gets the date this working time is valid
|
| 48 |
+
* @return Working time date
|
| 49 |
+
*/
|
| 50 |
+
public function getDate() {
|
| 51 |
+
return $this->_date;
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
/**
|
| 55 |
+
* Gets the flag whether office working time is overriden
|
| 56 |
+
* @return Flag whether office working time is overriden
|
| 57 |
+
* @since 2.8.0
|
| 58 |
+
*/
|
| 59 |
+
public function isWorkingTimeException() {
|
| 60 |
+
return $this->_workingTimeException;
|
| 61 |
+
}
|
| 62 |
+
|
| 63 |
+
/**
|
| 64 |
+
* Gets the working time start time (HHMM)
|
| 65 |
+
* @return Working time start time (HHMM)
|
| 66 |
+
*/
|
| 67 |
+
public function getWorkingTimeFrom() {
|
| 68 |
+
return $this->_workingTimeFrom;
|
| 69 |
+
}
|
| 70 |
+
|
| 71 |
+
/**
|
| 72 |
+
* Gets the working time end time (HHMM)
|
| 73 |
+
* @return Working time end time (HHMM)
|
| 74 |
+
*/
|
| 75 |
+
public function getWorkingTimeTo() {
|
| 76 |
+
return $this->_workingTimeTo;
|
| 77 |
+
}
|
| 78 |
+
}
|
| 79 |
+
?>
|
lib/SpeedyEPS/ver01/ServerException.class.php
CHANGED
|
File without changes
|
lib/SpeedyEPS/ver01/Size.class.php
CHANGED
|
@@ -25,6 +25,17 @@ class Size {
|
|
| 25 |
Â
*/
|
| 26 |
Â
private $_depth;
|
| 27 |
Â
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
| 28 |
Â
/**
|
| 29 |
Â
* Get width
|
| 30 |
Â
* @return integer Signed 32-bit
|
| 25 |
Â
*/
|
| 26 |
Â
private $_depth;
|
| 27 |
Â
|
| 28 |
+
/**
|
| 29 |
+
* Constructs new instance of Size
|
| 30 |
+
* @param stdClass $stdClassSize
|
| 31 |
+
*/
|
| 32 |
+
function __construct($stdClasSize='') {
|
| 33 |
+
$this->_width = isset($stdClasSize->width) ? $stdClasSize->width : null;
|
| 34 |
+
$this->_height = isset($stdClasSize->height) ? $stdClasSize->height : null;
|
| 35 |
+
$this->_depth = isset($stdClasSize->depth) ? $stdClasSize->depth : null;
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
|
| 39 |
Â
/**
|
| 40 |
Â
* Get width
|
| 41 |
Â
* @return integer Signed 32-bit
|
lib/SpeedyEPS/ver01/ValueAddress.class.php
CHANGED
|
@@ -416,7 +416,7 @@ class ValueAddress {
|
|
| 416 |
Â
}
|
| 417 |
Â
|
| 418 |
Â
/**
|
| 419 |
-
* Get flag for full
|
| 420 |
Â
* @return boolean
|
| 421 |
Â
*/
|
| 422 |
Â
public function isFullNomenclature() {
|
| 416 |
Â
}
|
| 417 |
Â
|
| 418 |
Â
/**
|
| 419 |
+
* Get flag for full nomenclature
|
| 420 |
Â
* @return boolean
|
| 421 |
Â
*/
|
| 422 |
Â
public function isFullNomenclature() {
|
lib/SpeedyEPS/ver01/soap/EPSSOAPInterfaceImpl.class.php
CHANGED
|
@@ -1,1078 +1,1414 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
|
| 3 |
-
require_once
|
| 4 |
-
|
| 5 |
-
/**
|
| 6 |
-
* Speedy SOAP EPS ver01 Service Interface Implementation
|
| 7 |
-
*/
|
| 8 |
-
class EPSSOAPInterfaceImpl extends SoapClient implements EPSInterface {
|
| 9 |
-
|
| 10 |
-
/**
|
| 11 |
-
* Speedy SOAP WSDL version 01 URL
|
| 12 |
-
* @var string
|
| 13 |
-
*/
|
| 14 |
-
const SPEEDY_SOAP_WSDL_V01_URL = 'https://www.speedy.bg/eps/main01.wsdl';
|
| 15 |
-
|
| 16 |
-
/**
|
| 17 |
-
* Constructs new instance of SOAP service
|
| 18 |
-
* @param string $wsdlURL
|
| 19 |
-
* @param options[optional]
|
| 20 |
-
*/
|
| 21 |
-
function __construct($wsdlURL=self::SPEEDY_SOAP_WSDL_V01_URL, $options=null) {
|
| 22 |
-
if (is_null($options)) {
|
| 23 |
-
parent::SoapClient($wsdlURL);
|
| 24 |
-
} else {
|
| 25 |
-
parent::SoapClient($wsdlURL, $options);
|
| 26 |
-
}
|
| 27 |
-
// echo('<BR>Connected to '.$wsdlURL);
|
| 28 |
-
}
|
| 29 |
-
|
| 30 |
-
/**
|
| 31 |
-
* @see EPSInterface::login()
|
| 32 |
-
*/
|
| 33 |
-
public function login($username, $password) {
|
| 34 |
-
try {
|
| 35 |
-
$loginSdtClass = new stdClass();
|
| 36 |
-
$loginSdtClass->username = $username;
|
| 37 |
-
$loginSdtClass->password = $password;
|
| 38 |
-
$response = parent::login($loginSdtClass);
|
| 39 |
-
if (isset($response->return)) {
|
| 40 |
-
$resultLogin = new ResultLogin($response->return);
|
| 41 |
-
} else {
|
| 42 |
-
$resultLogin = null;
|
| 43 |
-
}
|
| 44 |
-
return $resultLogin;
|
| 45 |
-
} catch (SoapFault $sf) {
|
| 46 |
-
throw new ServerException($sf);
|
| 47 |
-
}
|
| 48 |
-
}
|
| 49 |
-
|
| 50 |
-
/**
|
| 51 |
-
* @see EPSInterface::isSessionActive()
|
| 52 |
-
*/
|
| 53 |
-
public function isSessionActive($sessionId, $refreshSession) {
|
| 54 |
-
try {
|
| 55 |
-
$isSessionActiveSdtClass = new stdClass();
|
| 56 |
-
$isSessionActiveSdtClass->sessionId = $sessionId;
|
| 57 |
-
$isSessionActiveSdtClass->refreshSession = $refreshSession;
|
| 58 |
-
$response = parent::isSessionActive($isSessionActiveSdtClass);
|
| 59 |
-
if (isset($response->return)) {
|
| 60 |
-
$isSessionActiveFlag = $response->return;
|
| 61 |
-
} else {
|
| 62 |
-
$isSessionActiveFlag = false;
|
| 63 |
-
}
|
| 64 |
-
return $isSessionActiveFlag;
|
| 65 |
-
} catch (SoapFault $sf) {
|
| 66 |
-
throw new ServerException($sf);
|
| 67 |
-
}
|
| 68 |
-
}
|
| 69 |
-
|
| 70 |
-
/**
|
| 71 |
-
* @see EPSInterface::listServices()
|
| 72 |
-
*/
|
| 73 |
-
public function listServices($sessionId, $date) {
|
| 74 |
-
try {
|
| 75 |
-
$listServicesStdObject = new stdClass();
|
| 76 |
-
$listServicesStdObject->sessionId = $sessionId;
|
| 77 |
-
$listServicesStdObject->date = $date;
|
| 78 |
-
$
|
| 79 |
-
$
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
$listServicesForSitesStdObject
|
| 106 |
-
$
|
| 107 |
-
$
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
return
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
|
| 189 |
-
|
| 190 |
-
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
|
| 195 |
-
|
| 196 |
-
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
|
| 202 |
-
|
| 203 |
-
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
$
|
| 207 |
-
$
|
| 208 |
-
|
| 209 |
-
$response = parent::
|
| 210 |
-
if (isset($response->return)) {
|
| 211 |
-
$
|
| 212 |
-
} else {
|
| 213 |
-
$
|
| 214 |
-
}
|
| 215 |
-
return $
|
| 216 |
-
} catch (SoapFault $sf) {
|
| 217 |
-
throw new ServerException($sf);
|
| 218 |
-
}
|
| 219 |
-
}
|
| 220 |
-
|
| 221 |
-
/**
|
| 222 |
-
* @see EPSInterface::
|
| 223 |
-
*/
|
| 224 |
-
public function
|
| 225 |
-
try {
|
| 226 |
-
$
|
| 227 |
-
$
|
| 228 |
-
$
|
| 229 |
-
$
|
| 230 |
-
|
| 231 |
-
|
| 232 |
-
|
| 233 |
-
|
| 234 |
-
|
| 235 |
-
|
| 236 |
-
|
| 237 |
-
|
| 238 |
-
|
| 239 |
-
|
| 240 |
-
|
| 241 |
-
|
| 242 |
-
|
| 243 |
-
|
| 244 |
-
|
| 245 |
-
|
| 246 |
-
|
| 247 |
-
|
| 248 |
-
|
| 249 |
-
|
| 250 |
-
|
| 251 |
-
$
|
| 252 |
-
|
| 253 |
-
$
|
| 254 |
-
$
|
| 255 |
-
if (isset($response->return)) {
|
| 256 |
-
$
|
| 257 |
-
|
| 258 |
-
|
| 259 |
-
|
| 260 |
-
|
| 261 |
-
|
| 262 |
-
|
| 263 |
-
|
| 264 |
-
|
| 265 |
-
|
| 266 |
-
|
| 267 |
-
|
| 268 |
-
|
| 269 |
-
|
| 270 |
-
|
| 271 |
-
|
| 272 |
-
|
| 273 |
-
|
| 274 |
-
|
| 275 |
-
|
| 276 |
-
|
| 277 |
-
|
| 278 |
-
|
| 279 |
-
|
| 280 |
-
|
| 281 |
-
|
| 282 |
-
|
| 283 |
-
|
| 284 |
-
|
| 285 |
-
|
| 286 |
-
|
| 287 |
-
|
| 288 |
-
|
| 289 |
-
|
| 290 |
-
|
| 291 |
-
|
| 292 |
-
|
| 293 |
-
|
| 294 |
-
|
| 295 |
-
|
| 296 |
-
|
| 297 |
-
$
|
| 298 |
-
$
|
| 299 |
-
$response = parent::
|
| 300 |
-
$
|
| 301 |
-
if (isset($response->return)) {
|
| 302 |
-
$
|
| 303 |
-
if (is_array($
|
| 304 |
-
for($i = 0; $i < count($
|
| 305 |
-
$
|
| 306 |
-
}
|
| 307 |
-
} else {
|
| 308 |
-
$
|
| 309 |
-
}
|
| 310 |
-
}
|
| 311 |
-
return $
|
| 312 |
-
} catch (SoapFault $sf) {
|
| 313 |
-
throw new ServerException($sf);
|
| 314 |
-
}
|
| 315 |
-
}
|
| 316 |
-
|
| 317 |
-
/**
|
| 318 |
-
* @see EPSInterface::
|
| 319 |
-
*/
|
| 320 |
-
public function
|
| 321 |
-
try {
|
| 322 |
-
$
|
| 323 |
-
$
|
| 324 |
-
$
|
| 325 |
-
|
| 326 |
-
|
| 327 |
-
|
| 328 |
-
|
| 329 |
-
|
| 330 |
-
|
| 331 |
-
|
| 332 |
-
|
| 333 |
-
|
| 334 |
-
}
|
| 335 |
-
|
| 336 |
-
|
| 337 |
-
|
| 338 |
-
|
| 339 |
-
}
|
| 340 |
-
|
| 341 |
-
|
| 342 |
-
|
| 343 |
-
|
| 344 |
-
|
| 345 |
-
|
| 346 |
-
|
| 347 |
-
|
| 348 |
-
|
| 349 |
-
$
|
| 350 |
-
$
|
| 351 |
-
$
|
| 352 |
-
|
| 353 |
-
|
| 354 |
-
|
| 355 |
-
|
| 356 |
-
|
| 357 |
-
|
| 358 |
-
|
| 359 |
-
|
| 360 |
-
|
| 361 |
-
}
|
| 362 |
-
|
| 363 |
-
|
| 364 |
-
|
| 365 |
-
|
| 366 |
-
}
|
| 367 |
-
|
| 368 |
-
|
| 369 |
-
|
| 370 |
-
|
| 371 |
-
|
| 372 |
-
|
| 373 |
-
|
| 374 |
-
|
| 375 |
-
|
| 376 |
-
$
|
| 377 |
-
$
|
| 378 |
-
$
|
| 379 |
-
$
|
| 380 |
-
|
| 381 |
-
|
| 382 |
-
|
| 383 |
-
|
| 384 |
-
|
| 385 |
-
|
| 386 |
-
|
| 387 |
-
$
|
| 388 |
-
|
| 389 |
-
|
| 390 |
-
|
| 391 |
-
|
| 392 |
-
|
| 393 |
-
|
| 394 |
-
|
| 395 |
-
|
| 396 |
-
|
| 397 |
-
|
| 398 |
-
|
| 399 |
-
|
| 400 |
-
|
| 401 |
-
|
| 402 |
-
|
| 403 |
-
|
| 404 |
-
|
| 405 |
-
$
|
| 406 |
-
$
|
| 407 |
-
|
| 408 |
-
|
| 409 |
-
|
| 410 |
-
|
| 411 |
-
|
| 412 |
-
|
| 413 |
-
|
| 414 |
-
|
| 415 |
-
|
| 416 |
-
|
| 417 |
-
|
| 418 |
-
|
| 419 |
-
|
| 420 |
-
|
| 421 |
-
|
| 422 |
-
|
| 423 |
-
|
| 424 |
-
|
| 425 |
-
|
| 426 |
-
|
| 427 |
-
|
| 428 |
-
|
| 429 |
-
|
| 430 |
-
|
| 431 |
-
|
| 432 |
-
|
| 433 |
-
|
| 434 |
-
|
| 435 |
-
|
| 436 |
-
|
| 437 |
-
|
| 438 |
-
|
| 439 |
-
|
| 440 |
-
|
| 441 |
-
|
| 442 |
-
|
| 443 |
-
|
| 444 |
-
|
| 445 |
-
|
| 446 |
-
|
| 447 |
-
|
| 448 |
-
|
| 449 |
-
|
| 450 |
-
|
| 451 |
-
|
| 452 |
-
|
| 453 |
-
|
| 454 |
-
|
| 455 |
-
|
| 456 |
-
|
| 457 |
-
|
| 458 |
-
|
| 459 |
-
|
| 460 |
-
|
| 461 |
-
|
| 462 |
-
|
| 463 |
-
|
| 464 |
-
|
| 465 |
-
|
| 466 |
-
|
| 467 |
-
|
| 468 |
-
|
| 469 |
-
|
| 470 |
-
|
| 471 |
-
|
| 472 |
-
|
| 473 |
-
|
| 474 |
-
|
| 475 |
-
|
| 476 |
-
|
| 477 |
-
|
| 478 |
-
|
| 479 |
-
|
| 480 |
-
|
| 481 |
-
|
| 482 |
-
|
| 483 |
-
|
| 484 |
-
|
| 485 |
-
|
| 486 |
-
|
| 487 |
-
|
| 488 |
-
|
| 489 |
-
|
| 490 |
-
|
| 491 |
-
|
| 492 |
-
|
| 493 |
-
|
| 494 |
-
|
| 495 |
-
|
| 496 |
-
|
| 497 |
-
|
| 498 |
-
|
| 499 |
-
|
| 500 |
-
|
| 501 |
-
|
| 502 |
-
|
| 503 |
-
|
| 504 |
-
|
| 505 |
-
|
| 506 |
-
|
| 507 |
-
|
| 508 |
-
|
| 509 |
-
|
| 510 |
-
|
| 511 |
-
|
| 512 |
-
|
| 513 |
-
|
| 514 |
-
|
| 515 |
-
|
| 516 |
-
|
| 517 |
-
|
| 518 |
-
|
| 519 |
-
|
| 520 |
-
|
| 521 |
-
|
| 522 |
-
|
| 523 |
-
|
| 524 |
-
|
| 525 |
-
|
| 526 |
-
|
| 527 |
-
|
| 528 |
-
|
| 529 |
-
|
| 530 |
-
|
| 531 |
-
|
| 532 |
-
|
| 533 |
-
|
| 534 |
-
|
| 535 |
-
|
| 536 |
-
|
| 537 |
-
|
| 538 |
-
|
| 539 |
-
|
| 540 |
-
|
| 541 |
-
|
| 542 |
-
|
| 543 |
-
|
| 544 |
-
|
| 545 |
-
|
| 546 |
-
|
| 547 |
-
|
| 548 |
-
|
| 549 |
-
|
| 550 |
-
|
| 551 |
-
|
| 552 |
-
|
| 553 |
-
|
| 554 |
-
|
| 555 |
-
|
| 556 |
-
|
| 557 |
-
|
| 558 |
-
|
| 559 |
-
|
| 560 |
-
|
| 561 |
-
|
| 562 |
-
|
| 563 |
-
|
| 564 |
-
|
| 565 |
-
|
| 566 |
-
|
| 567 |
-
|
| 568 |
-
|
| 569 |
-
|
| 570 |
-
|
| 571 |
-
|
| 572 |
-
|
| 573 |
-
|
| 574 |
-
|
| 575 |
-
|
| 576 |
-
|
| 577 |
-
|
| 578 |
-
|
| 579 |
-
|
| 580 |
-
|
| 581 |
-
|
| 582 |
-
|
| 583 |
-
|
| 584 |
-
|
| 585 |
-
|
| 586 |
-
|
| 587 |
-
|
| 588 |
-
|
| 589 |
-
|
| 590 |
-
|
| 591 |
-
|
| 592 |
-
|
| 593 |
-
|
| 594 |
-
|
| 595 |
-
|
| 596 |
-
|
| 597 |
-
|
| 598 |
-
|
| 599 |
-
|
| 600 |
-
|
| 601 |
-
|
| 602 |
-
|
| 603 |
-
|
| 604 |
-
|
| 605 |
-
|
| 606 |
-
|
| 607 |
-
|
| 608 |
-
|
| 609 |
-
|
| 610 |
-
|
| 611 |
-
|
| 612 |
-
|
| 613 |
-
|
| 614 |
-
|
| 615 |
-
|
| 616 |
-
|
| 617 |
-
|
| 618 |
-
|
| 619 |
-
|
| 620 |
-
|
| 621 |
-
|
| 622 |
-
|
| 623 |
-
|
| 624 |
-
|
| 625 |
-
|
| 626 |
-
|
| 627 |
-
|
| 628 |
-
|
| 629 |
-
|
| 630 |
-
|
| 631 |
-
|
| 632 |
-
|
| 633 |
-
}
|
| 634 |
-
return $
|
| 635 |
-
} catch (SoapFault $sf) {
|
| 636 |
-
throw new ServerException($sf);
|
| 637 |
-
}
|
| 638 |
-
}
|
| 639 |
-
|
| 640 |
-
/**
|
| 641 |
-
* @see EPSInterface::
|
| 642 |
-
*/
|
| 643 |
-
public function
|
| 644 |
-
try {
|
| 645 |
-
$
|
| 646 |
-
$
|
| 647 |
-
$
|
| 648 |
-
$response = parent::
|
| 649 |
-
if (isset($response->return)) {
|
| 650 |
-
$
|
| 651 |
-
} else {
|
| 652 |
-
$
|
| 653 |
-
}
|
| 654 |
-
return $
|
| 655 |
-
} catch (SoapFault $sf) {
|
| 656 |
-
throw new ServerException($sf);
|
| 657 |
-
}
|
| 658 |
-
}
|
| 659 |
-
|
| 660 |
-
/**
|
| 661 |
-
* @see EPSInterface::
|
| 662 |
-
*/
|
| 663 |
-
public function
|
| 664 |
-
try {
|
| 665 |
-
$
|
| 666 |
-
$
|
| 667 |
-
$
|
| 668 |
-
$
|
| 669 |
-
|
| 670 |
-
|
| 671 |
-
|
| 672 |
-
|
| 673 |
-
|
| 674 |
-
|
| 675 |
-
|
| 676 |
-
|
| 677 |
-
|
| 678 |
-
|
| 679 |
-
|
| 680 |
-
|
| 681 |
-
|
| 682 |
-
|
| 683 |
-
|
| 684 |
-
|
| 685 |
-
|
| 686 |
-
$
|
| 687 |
-
$
|
| 688 |
-
$
|
| 689 |
-
|
| 690 |
-
|
| 691 |
-
|
| 692 |
-
|
| 693 |
-
|
| 694 |
-
|
| 695 |
-
|
| 696 |
-
|
| 697 |
-
|
| 698 |
-
|
| 699 |
-
|
| 700 |
-
|
| 701 |
-
|
| 702 |
-
|
| 703 |
-
|
| 704 |
-
|
| 705 |
-
|
| 706 |
-
$
|
| 707 |
-
$
|
| 708 |
-
$
|
| 709 |
-
parent::
|
| 710 |
-
|
| 711 |
-
|
| 712 |
-
|
| 713 |
-
|
| 714 |
-
|
| 715 |
-
|
| 716 |
-
|
| 717 |
-
|
| 718 |
-
|
| 719 |
-
|
| 720 |
-
|
| 721 |
-
|
| 722 |
-
|
| 723 |
-
|
| 724 |
-
|
| 725 |
-
|
| 726 |
-
|
| 727 |
-
|
| 728 |
-
|
| 729 |
-
|
| 730 |
-
|
| 731 |
-
|
| 732 |
-
|
| 733 |
-
|
| 734 |
-
|
| 735 |
-
|
| 736 |
-
|
| 737 |
-
|
| 738 |
-
|
| 739 |
-
|
| 740 |
-
|
| 741 |
-
|
| 742 |
-
|
| 743 |
-
|
| 744 |
-
|
| 745 |
-
|
| 746 |
-
|
| 747 |
-
|
| 748 |
-
|
| 749 |
-
|
| 750 |
-
|
| 751 |
-
|
| 752 |
-
|
| 753 |
-
|
| 754 |
-
|
| 755 |
-
|
| 756 |
-
|
| 757 |
-
|
| 758 |
-
|
| 759 |
-
|
| 760 |
-
|
| 761 |
-
$
|
| 762 |
-
$
|
| 763 |
-
$
|
| 764 |
-
|
| 765 |
-
|
| 766 |
-
|
| 767 |
-
|
| 768 |
-
|
| 769 |
-
|
| 770 |
-
|
| 771 |
-
|
| 772 |
-
|
| 773 |
-
|
| 774 |
-
|
| 775 |
-
|
| 776 |
-
|
| 777 |
-
|
| 778 |
-
|
| 779 |
-
|
| 780 |
-
|
| 781 |
-
$
|
| 782 |
-
$
|
| 783 |
-
$
|
| 784 |
-
$
|
| 785 |
-
if (isset($response->return)) {
|
| 786 |
-
$
|
| 787 |
-
|
| 788 |
-
|
| 789 |
-
|
| 790 |
-
|
| 791 |
-
|
| 792 |
-
|
| 793 |
-
|
| 794 |
-
|
| 795 |
-
|
| 796 |
-
|
| 797 |
-
|
| 798 |
-
|
| 799 |
-
|
| 800 |
-
|
| 801 |
-
|
| 802 |
-
|
| 803 |
-
|
| 804 |
-
|
| 805 |
-
|
| 806 |
-
|
| 807 |
-
|
| 808 |
-
|
| 809 |
-
|
| 810 |
-
$
|
| 811 |
-
|
| 812 |
-
|
| 813 |
-
|
| 814 |
-
|
| 815 |
-
|
| 816 |
-
|
| 817 |
-
|
| 818 |
-
|
| 819 |
-
|
| 820 |
-
|
| 821 |
-
|
| 822 |
-
|
| 823 |
-
|
| 824 |
-
|
| 825 |
-
|
| 826 |
-
|
| 827 |
-
|
| 828 |
-
|
| 829 |
-
|
| 830 |
-
|
| 831 |
-
|
| 832 |
-
|
| 833 |
-
|
| 834 |
-
|
| 835 |
-
|
| 836 |
-
$
|
| 837 |
-
|
| 838 |
-
|
| 839 |
-
|
| 840 |
-
|
| 841 |
-
|
| 842 |
-
|
| 843 |
-
|
| 844 |
-
|
| 845 |
-
|
| 846 |
-
|
| 847 |
-
|
| 848 |
-
|
| 849 |
-
|
| 850 |
-
|
| 851 |
-
|
| 852 |
-
|
| 853 |
-
|
| 854 |
-
|
| 855 |
-
|
| 856 |
-
|
| 857 |
-
|
| 858 |
-
|
| 859 |
-
|
| 860 |
-
|
| 861 |
-
|
| 862 |
-
|
| 863 |
-
|
| 864 |
-
|
| 865 |
-
|
| 866 |
-
|
| 867 |
-
|
| 868 |
-
|
| 869 |
-
|
| 870 |
-
|
| 871 |
-
|
| 872 |
-
|
| 873 |
-
|
| 874 |
-
|
| 875 |
-
|
| 876 |
-
|
| 877 |
-
|
| 878 |
-
|
| 879 |
-
|
| 880 |
-
|
| 881 |
-
|
| 882 |
-
|
| 883 |
-
|
| 884 |
-
|
| 885 |
-
|
| 886 |
-
|
| 887 |
-
|
| 888 |
-
|
| 889 |
-
|
| 890 |
-
|
| 891 |
-
|
| 892 |
-
|
| 893 |
-
|
| 894 |
-
|
| 895 |
-
|
| 896 |
-
|
| 897 |
-
|
| 898 |
-
|
| 899 |
-
|
| 900 |
-
|
| 901 |
-
|
| 902 |
-
|
| 903 |
-
|
| 904 |
-
|
| 905 |
-
|
| 906 |
-
|
| 907 |
-
|
| 908 |
-
|
| 909 |
-
|
| 910 |
-
|
| 911 |
-
|
| 912 |
-
|
| 913 |
-
|
| 914 |
-
|
| 915 |
-
|
| 916 |
-
|
| 917 |
-
|
| 918 |
-
|
| 919 |
-
|
| 920 |
-
|
| 921 |
-
|
| 922 |
-
|
| 923 |
-
|
| 924 |
-
|
| 925 |
-
|
| 926 |
-
|
| 927 |
-
|
| 928 |
-
|
| 929 |
-
|
| 930 |
-
|
| 931 |
-
|
| 932 |
-
|
| 933 |
-
|
| 934 |
-
|
| 935 |
-
|
| 936 |
-
|
| 937 |
-
|
| 938 |
-
|
| 939 |
-
|
| 940 |
-
|
| 941 |
-
|
| 942 |
-
|
| 943 |
-
|
| 944 |
-
|
| 945 |
-
|
| 946 |
-
|
| 947 |
-
|
| 948 |
-
|
| 949 |
-
|
| 950 |
-
|
| 951 |
-
|
| 952 |
-
|
| 953 |
-
|
| 954 |
-
|
| 955 |
-
|
| 956 |
-
|
| 957 |
-
|
| 958 |
-
|
| 959 |
-
|
| 960 |
-
|
| 961 |
-
|
| 962 |
-
|
| 963 |
-
|
| 964 |
-
|
| 965 |
-
|
| 966 |
-
|
| 967 |
-
|
| 968 |
-
|
| 969 |
-
|
| 970 |
-
|
| 971 |
-
|
| 972 |
-
|
| 973 |
-
|
| 974 |
-
|
| 975 |
-
|
| 976 |
-
|
| 977 |
-
|
| 978 |
-
|
| 979 |
-
|
| 980 |
-
|
| 981 |
-
|
| 982 |
-
|
| 983 |
-
|
| 984 |
-
|
| 985 |
-
|
| 986 |
-
|
| 987 |
-
|
| 988 |
-
|
| 989 |
-
|
| 990 |
-
|
| 991 |
-
|
| 992 |
-
|
| 993 |
-
|
| 994 |
-
|
| 995 |
-
|
| 996 |
-
|
| 997 |
-
|
| 998 |
-
|
| 999 |
-
|
| 1000 |
-
|
| 1001 |
-
|
| 1002 |
-
|
| 1003 |
-
|
| 1004 |
-
|
| 1005 |
-
|
| 1006 |
-
|
| 1007 |
-
|
| 1008 |
-
|
| 1009 |
-
|
| 1010 |
-
|
| 1011 |
-
|
| 1012 |
-
|
| 1013 |
-
|
| 1014 |
-
|
| 1015 |
-
|
| 1016 |
-
|
| 1017 |
-
|
| 1018 |
-
|
| 1019 |
-
return $
|
| 1020 |
-
|
| 1021 |
-
|
| 1022 |
-
|
| 1023 |
-
|
| 1024 |
-
|
| 1025 |
-
|
| 1026 |
-
|
| 1027 |
-
|
| 1028 |
-
|
| 1029 |
-
|
| 1030 |
-
|
| 1031 |
-
|
| 1032 |
-
|
| 1033 |
-
|
| 1034 |
-
|
| 1035 |
-
|
| 1036 |
-
|
| 1037 |
-
|
| 1038 |
-
|
| 1039 |
-
|
| 1040 |
-
|
| 1041 |
-
|
| 1042 |
-
|
| 1043 |
-
|
| 1044 |
-
|
| 1045 |
-
|
| 1046 |
-
|
| 1047 |
-
|
| 1048 |
-
|
| 1049 |
-
|
| 1050 |
-
|
| 1051 |
-
|
| 1052 |
-
|
| 1053 |
-
|
| 1054 |
-
|
| 1055 |
-
|
| 1056 |
-
|
| 1057 |
-
|
| 1058 |
-
|
| 1059 |
-
|
| 1060 |
-
|
| 1061 |
-
|
| 1062 |
-
|
| 1063 |
-
|
| 1064 |
-
|
| 1065 |
-
|
| 1066 |
-
|
| 1067 |
-
|
| 1068 |
-
|
| 1069 |
-
|
| 1070 |
-
|
| 1071 |
-
|
| 1072 |
-
|
| 1073 |
-
|
| 1074 |
-
|
| 1075 |
-
|
| 1076 |
-
|
| 1077 |
-
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
|
Â
|
|
| 1078 |
Â
?>
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
require_once __DIR__.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'EPSInterface.class.php';
|
| 4 |
+
|
| 5 |
+
/**
|
| 6 |
+
* Speedy SOAP EPS ver01 Service Interface Implementation
|
| 7 |
+
*/
|
| 8 |
+
class EPSSOAPInterfaceImpl extends SoapClient implements EPSInterface {
|
| 9 |
+
|
| 10 |
+
/**
|
| 11 |
+
* Speedy SOAP WSDL version 01 URL
|
| 12 |
+
* @var string
|
| 13 |
+
*/
|
| 14 |
+
const SPEEDY_SOAP_WSDL_V01_URL = 'https://www.speedy.bg/eps/main01.wsdl';
|
| 15 |
+
|
| 16 |
+
/**
|
| 17 |
+
* Constructs new instance of SOAP service
|
| 18 |
+
* @param string $wsdlURL
|
| 19 |
+
* @param options[optional]
|
| 20 |
+
*/
|
| 21 |
+
function __construct($wsdlURL=self::SPEEDY_SOAP_WSDL_V01_URL, $options=null) {
|
| 22 |
+
if (is_null($options)) {
|
| 23 |
+
parent::SoapClient($wsdlURL);
|
| 24 |
+
} else {
|
| 25 |
+
parent::SoapClient($wsdlURL, $options);
|
| 26 |
+
}
|
| 27 |
+
// echo('<BR>Connected to '.$wsdlURL);
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
/**
|
| 31 |
+
* @see EPSInterface::login()
|
| 32 |
+
*/
|
| 33 |
+
public function login($username, $password) {
|
| 34 |
+
try {
|
| 35 |
+
$loginSdtClass = new stdClass();
|
| 36 |
+
$loginSdtClass->username = $username;
|
| 37 |
+
$loginSdtClass->password = $password;
|
| 38 |
+
$response = parent::login($loginSdtClass);
|
| 39 |
+
if (isset($response->return)) {
|
| 40 |
+
$resultLogin = new ResultLogin($response->return);
|
| 41 |
+
} else {
|
| 42 |
+
$resultLogin = null;
|
| 43 |
+
}
|
| 44 |
+
return $resultLogin;
|
| 45 |
+
} catch (SoapFault $sf) {
|
| 46 |
+
throw new ServerException($sf);
|
| 47 |
+
}
|
| 48 |
+
}
|
| 49 |
+
|
| 50 |
+
/**
|
| 51 |
+
* @see EPSInterface::isSessionActive()
|
| 52 |
+
*/
|
| 53 |
+
public function isSessionActive($sessionId, $refreshSession) {
|
| 54 |
+
try {
|
| 55 |
+
$isSessionActiveSdtClass = new stdClass();
|
| 56 |
+
$isSessionActiveSdtClass->sessionId = $sessionId;
|
| 57 |
+
$isSessionActiveSdtClass->refreshSession = $refreshSession;
|
| 58 |
+
$response = parent::isSessionActive($isSessionActiveSdtClass);
|
| 59 |
+
if (isset($response->return)) {
|
| 60 |
+
$isSessionActiveFlag = $response->return;
|
| 61 |
+
} else {
|
| 62 |
+
$isSessionActiveFlag = false;
|
| 63 |
+
}
|
| 64 |
+
return $isSessionActiveFlag;
|
| 65 |
+
} catch (SoapFault $sf) {
|
| 66 |
+
throw new ServerException($sf);
|
| 67 |
+
}
|
| 68 |
+
}
|
| 69 |
+
|
| 70 |
+
/**
|
| 71 |
+
* @see EPSInterface::listServices()
|
| 72 |
+
*/
|
| 73 |
+
public function listServices($sessionId, $date, $language) {
|
| 74 |
+
try {
|
| 75 |
+
$listServicesStdObject = new stdClass();
|
| 76 |
+
$listServicesStdObject->sessionId = $sessionId;
|
| 77 |
+
$listServicesStdObject->date = $date;
|
| 78 |
+
$listServicesStdObject->language = $language;
|
| 79 |
+
$response = parent::listServices($listServicesStdObject);
|
| 80 |
+
$arrListServices = array();
|
| 81 |
+
if (isset($response->return)) {
|
| 82 |
+
$arrStdServices = $response->return;
|
| 83 |
+
if (is_array($arrStdServices)) {
|
| 84 |
+
for($i = 0; $i < count($arrStdServices); $i++) {
|
| 85 |
+
$arrListServices[$i] = new ResultCourierService($arrStdServices[$i]);
|
| 86 |
+
}
|
| 87 |
+
} else {
|
| 88 |
+
$arrListServices[0] = new ResultCourierService($arrStdServices);
|
| 89 |
+
}
|
| 90 |
+
}
|
| 91 |
+
return $arrListServices;
|
| 92 |
+
} catch (SoapFault $sf) {
|
| 93 |
+
throw new ServerException($sf);
|
| 94 |
+
}
|
| 95 |
+
}
|
| 96 |
+
|
| 97 |
+
/**
|
| 98 |
+
* @see EPSInterface::listServicesForSites()
|
| 99 |
+
*/
|
| 100 |
+
public function listServicesForSites(
|
| 101 |
+
$sessionId, $date, $senderSiteId, $receiverSiteId,
|
| 102 |
+
$senderCountryId, $senderPostCode, $receiverCountryId, $receiverPostCode, $language
|
| 103 |
+
) {
|
| 104 |
+
try {
|
| 105 |
+
$listServicesForSitesStdObject = new stdClass();
|
| 106 |
+
$listServicesForSitesStdObject->sessionId = $sessionId;
|
| 107 |
+
$listServicesForSitesStdObject->date = $date;
|
| 108 |
+
$listServicesForSitesStdObject->senderSiteId = $senderSiteId;
|
| 109 |
+
$listServicesForSitesStdObject->receiverSiteId = $receiverSiteId;
|
| 110 |
+
$listServicesForSitesStdObject->senderCountryId = $senderCountryId;
|
| 111 |
+
$listServicesForSitesStdObject->senderPostCode = $senderPostCode;
|
| 112 |
+
$listServicesForSitesStdObject->receiverCountryId = $receiverCountryId;
|
| 113 |
+
$listServicesForSitesStdObject->receiverPostCode = $receiverPostCode;
|
| 114 |
+
$listServicesForSitesStdObject->language = $language;
|
| 115 |
+
$response = parent::listServicesForSites($listServicesForSitesStdObject);
|
| 116 |
+
$arrServicesForSitesStdObject = array();
|
| 117 |
+
if (isset($response->return)) {
|
| 118 |
+
$arrStdServicesForSites = $response->return;
|
| 119 |
+
if (is_array($arrStdServicesForSites)) {
|
| 120 |
+
for($i = 0; $i < count($arrStdServicesForSites); $i++) {
|
| 121 |
+
$arrServicesForSitesStdObject[$i] = new ResultCourierServiceExt($arrStdServicesForSites[$i]);
|
| 122 |
+
}
|
| 123 |
+
} else {
|
| 124 |
+
$arrServicesForSitesStdObject[0] = new ResultCourierServiceExt($arrStdServicesForSites);
|
| 125 |
+
}
|
| 126 |
+
}
|
| 127 |
+
return $arrServicesForSitesStdObject;
|
| 128 |
+
} catch (SoapFault $sf) {
|
| 129 |
+
throw new ServerException($sf);
|
| 130 |
+
}
|
| 131 |
+
}
|
| 132 |
+
|
| 133 |
+
/**
|
| 134 |
+
* @see EPSInterface::listSites()
|
| 135 |
+
*/
|
| 136 |
+
public function listSites($sessionId, $type, $name, $language) {
|
| 137 |
+
try {
|
| 138 |
+
$listSitesStdObject = new stdClass();
|
| 139 |
+
$listSitesStdObject->sessionId = $sessionId;
|
| 140 |
+
$listSitesStdObject->type = $type;
|
| 141 |
+
$listSitesStdObject->name = $name;
|
| 142 |
+
$listSitesStdObject->language = $language;
|
| 143 |
+
$response = parent::listSites($listSitesStdObject);
|
| 144 |
+
$arrListSites = array();
|
| 145 |
+
if (isset($response->return)) {
|
| 146 |
+
$arrStdSites = $response->return;
|
| 147 |
+
if (is_array($arrStdSites)) {
|
| 148 |
+
for($i = 0; $i < count($arrStdSites); $i++) {
|
| 149 |
+
$arrListSites[$i] = new ResultSite($arrStdSites[$i]);
|
| 150 |
+
}
|
| 151 |
+
} else {
|
| 152 |
+
$arrListSites[0] = new ResultSite($arrStdSites);
|
| 153 |
+
}
|
| 154 |
+
}
|
| 155 |
+
return $arrListSites;
|
| 156 |
+
} catch (SoapFault $sf) {
|
| 157 |
+
throw new ServerException($sf);
|
| 158 |
+
}
|
| 159 |
+
}
|
| 160 |
+
|
| 161 |
+
/**
|
| 162 |
+
* @see EPSInterface::listSites()
|
| 163 |
+
*/
|
| 164 |
+
public function listSitesEx($sessionId, $paramFilterSite, $language) {
|
| 165 |
+
try {
|
| 166 |
+
$listSitesExStdObject = new stdClass();
|
| 167 |
+
$listSitesExStdObject->sessionId = $sessionId;
|
| 168 |
+
$listSitesExStdObject->filter = $paramFilterSite->toStdClass();
|
| 169 |
+
$listSitesExStdObject->language = $language;
|
| 170 |
+
|
| 171 |
+
$response = parent::listSitesEx($listSitesExStdObject);
|
| 172 |
+
$arrListSitesEx = array();
|
| 173 |
+
if (isset($response->return)) {
|
| 174 |
+
$arrStdSitesEx = $response->return;
|
| 175 |
+
if (is_array($arrStdSitesEx)) {
|
| 176 |
+
for($i = 0; $i < count($arrStdSitesEx); $i++) {
|
| 177 |
+
$arrListSitesEx[$i] = new ResultSiteEx($arrStdSitesEx[$i]);
|
| 178 |
+
}
|
| 179 |
+
} else {
|
| 180 |
+
$arrListSitesEx[0] = new ResultSiteEx($arrStdSitesEx);
|
| 181 |
+
}
|
| 182 |
+
}
|
| 183 |
+
return $arrListSitesEx;
|
| 184 |
+
} catch (SoapFault $sf) {
|
| 185 |
+
throw new ServerException($sf);
|
| 186 |
+
}
|
| 187 |
+
}
|
| 188 |
+
|
| 189 |
+
/**
|
| 190 |
+
* @see EPSInterface::getWeightInterval()
|
| 191 |
+
*/
|
| 192 |
+
public function getWeightInterval(
|
| 193 |
+
$sessionId, $serviceTypeId, $senderSiteId, $receiverSiteId, $date, $documents,
|
| 194 |
+
$senderCountryId, $senderPostCode, $receiverCountryId, $receiverPostCode
|
| 195 |
+
) {
|
| 196 |
+
try {
|
| 197 |
+
$getWeightIntervalStdObject = new stdClass();
|
| 198 |
+
$getWeightIntervalStdObject->sessionId = $sessionId;
|
| 199 |
+
$getWeightIntervalStdObject->serviceTypeId = $serviceTypeId;
|
| 200 |
+
$getWeightIntervalStdObject->senderSiteId = $senderSiteId;
|
| 201 |
+
$getWeightIntervalStdObject->receiverSiteId = $receiverSiteId;
|
| 202 |
+
$getWeightIntervalStdObject->date = $date;
|
| 203 |
+
$getWeightIntervalStdObject->documents = $documents;
|
| 204 |
+
$getWeightIntervalStdObject->senderCountryId = $senderCountryId;
|
| 205 |
+
$getWeightIntervalStdObject->senderPostCode = $senderPostCode;
|
| 206 |
+
$getWeightIntervalStdObject->receiverCountryId = $receiverCountryId;
|
| 207 |
+
$getWeightIntervalStdObject->receiverPostCode = $receiverPostCode;
|
| 208 |
+
|
| 209 |
+
$response = parent::getWeightInterval($getWeightIntervalStdObject);
|
| 210 |
+
if (isset($response->return)) {
|
| 211 |
+
$resultMinMaxReal = new ResultMinMaxReal($response->return);
|
| 212 |
+
} else {
|
| 213 |
+
$resultMinMaxReal = null;
|
| 214 |
+
}
|
| 215 |
+
return $resultMinMaxReal;
|
| 216 |
+
} catch (SoapFault $sf) {
|
| 217 |
+
throw new ServerException($sf);
|
| 218 |
+
}
|
| 219 |
+
}
|
| 220 |
+
|
| 221 |
+
/**
|
| 222 |
+
* @see EPSInterface::getAddressNomenclature()
|
| 223 |
+
*/
|
| 224 |
+
public function getAddressNomenclature($sessionId, $nomenType, $countryId) {
|
| 225 |
+
try {
|
| 226 |
+
$getAddressNomenclatureStdObject = new stdClass();
|
| 227 |
+
$getAddressNomenclatureStdObject->sessionId = $sessionId;
|
| 228 |
+
$getAddressNomenclatureStdObject->nomenType = $nomenType;
|
| 229 |
+
$getAddressNomenclatureStdObject->countryId = $countryId;
|
| 230 |
+
|
| 231 |
+
$response = parent::getAddressNomenclature($getAddressNomenclatureStdObject);
|
| 232 |
+
if (isset($response->return)) {
|
| 233 |
+
$getAddressNomenclature = $response->return;
|
| 234 |
+
} else {
|
| 235 |
+
$getAddressNomenclature = null;
|
| 236 |
+
}
|
| 237 |
+
return $getAddressNomenclature;
|
| 238 |
+
} catch (SoapFault $sf) {
|
| 239 |
+
throw new ServerException($sf);
|
| 240 |
+
}
|
| 241 |
+
}
|
| 242 |
+
|
| 243 |
+
/**
|
| 244 |
+
* @see EPSInterface::listAllSites()
|
| 245 |
+
*/
|
| 246 |
+
public function listAllSites($sessionId, $language, $countryId) {
|
| 247 |
+
try {
|
| 248 |
+
$listAllSitesStdObject = new stdClass();
|
| 249 |
+
$listAllSitesStdObject->sessionId = $sessionId;
|
| 250 |
+
$listAllSitesStdObject->language = $language;
|
| 251 |
+
$listAllSitesStdObject->countryId = $countryId;
|
| 252 |
+
|
| 253 |
+
$response = parent::listAllSites($listAllSitesStdObject);
|
| 254 |
+
$arrListAllSites = array();
|
| 255 |
+
if (isset($response->return)) {
|
| 256 |
+
$arrStdAllSites = $response->return;
|
| 257 |
+
if (is_array($arrStdAllSites)) {
|
| 258 |
+
for($i = 0; $i < count($arrStdAllSites); $i++) {
|
| 259 |
+
$arrListAllSites[$i] = new ResultSite($arrStdAllSites[$i]);
|
| 260 |
+
}
|
| 261 |
+
} else {
|
| 262 |
+
$arrListAllSites[0] = new ResultSite($arrStdAllSites);
|
| 263 |
+
}
|
| 264 |
+
}
|
| 265 |
+
return $arrListAllSites;
|
| 266 |
+
} catch (SoapFault $sf) {
|
| 267 |
+
throw new ServerException($sf);
|
| 268 |
+
}
|
| 269 |
+
}
|
| 270 |
+
|
| 271 |
+
/**
|
| 272 |
+
* @see EPSInterface::getSiteById()
|
| 273 |
+
*/
|
| 274 |
+
public function getSiteById($sessionId, $siteId) {
|
| 275 |
+
try {
|
| 276 |
+
$getSiteByIdStdObject = new stdClass();
|
| 277 |
+
$getSiteByIdStdObject->sessionId = $sessionId;
|
| 278 |
+
$getSiteByIdStdObject->siteId = $siteId;
|
| 279 |
+
$response = parent::getSiteById($getSiteByIdStdObject);
|
| 280 |
+
if (isset($response->return)) {
|
| 281 |
+
$resultSite = new ResultSite($response->return);
|
| 282 |
+
} else {
|
| 283 |
+
$resultSite = null;
|
| 284 |
+
}
|
| 285 |
+
return $resultSite;
|
| 286 |
+
} catch (SoapFault $sf) {
|
| 287 |
+
throw new ServerException($sf);
|
| 288 |
+
}
|
| 289 |
+
}
|
| 290 |
+
|
| 291 |
+
/**
|
| 292 |
+
* @see EPSInterface::getSitesByAddrNomenType()
|
| 293 |
+
*/
|
| 294 |
+
public function getSitesByAddrNomenType($sessionId, $addrNomen) {
|
| 295 |
+
try {
|
| 296 |
+
$getSitesByAddrNomenTypeStdObject = new stdClass();
|
| 297 |
+
$getSitesByAddrNomenTypeStdObject->sessionId = $sessionId;
|
| 298 |
+
$getSitesByAddrNomenTypeStdObject->addrNomen = $addrNomen;
|
| 299 |
+
$response = parent::getSitesByAddrNomenType($getSitesByAddrNomenTypeStdObject);
|
| 300 |
+
$arrListSitesByAddrNomenType = array();
|
| 301 |
+
if (isset($response->return)) {
|
| 302 |
+
$arrStdSitesByAddrNomenType = $response->return;
|
| 303 |
+
if (is_array($arrStdSitesByAddrNomenType)) {
|
| 304 |
+
for($i = 0; $i < count($arrStdSitesByAddrNomenType); $i++) {
|
| 305 |
+
$arrListSitesByAddrNomenType[$i] = new ResultSite($arrStdSitesByAddrNomenType[$i]);
|
| 306 |
+
}
|
| 307 |
+
} else {
|
| 308 |
+
$arrListSitesByAddrNomenType[0] = new ResultSite($arrStdSitesByAddrNomenType);
|
| 309 |
+
}
|
| 310 |
+
}
|
| 311 |
+
return $arrListSitesByAddrNomenType;
|
| 312 |
+
} catch (SoapFault $sf) {
|
| 313 |
+
throw new ServerException($sf);
|
| 314 |
+
}
|
| 315 |
+
}
|
| 316 |
+
|
| 317 |
+
/**
|
| 318 |
+
* @see EPSInterface::listStreetTypes()
|
| 319 |
+
*/
|
| 320 |
+
public function listStreetTypes($sessionId, $language) {
|
| 321 |
+
try {
|
| 322 |
+
$listStreetTypesStdObject = new stdClass();
|
| 323 |
+
$listStreetTypesStdObject->sessionId = $sessionId;
|
| 324 |
+
$listStreetTypesStdObject->language = $language;
|
| 325 |
+
|
| 326 |
+
$response = parent::listStreetTypes($listStreetTypesStdObject);
|
| 327 |
+
$arrListStreetTypes = array();
|
| 328 |
+
if (isset($response->return)) {
|
| 329 |
+
$arrStdListStreetTypes = $response->return;
|
| 330 |
+
if (is_array($arrStdListStreetTypes)) {
|
| 331 |
+
for($i = 0; $i < count($arrStdListStreetTypes); $i++) {
|
| 332 |
+
$arrListStreetTypes[$i] = $arrStdListStreetTypes[$i];
|
| 333 |
+
}
|
| 334 |
+
} else {
|
| 335 |
+
$arrListStreetTypes[0] = $arrStdListStreetTypes;
|
| 336 |
+
}
|
| 337 |
+
}
|
| 338 |
+
return $arrListStreetTypes;
|
| 339 |
+
} catch (SoapFault $sf) {
|
| 340 |
+
throw new ServerException($sf);
|
| 341 |
+
}
|
| 342 |
+
}
|
| 343 |
+
|
| 344 |
+
/**
|
| 345 |
+
* @see EPSInterface::listQuarterTypes()
|
| 346 |
+
*/
|
| 347 |
+
public function listQuarterTypes($sessionId, $language) {
|
| 348 |
+
try {
|
| 349 |
+
$listQuarterTypesStdObject = new stdClass();
|
| 350 |
+
$listQuarterTypesStdObject->sessionId = $sessionId;
|
| 351 |
+
$listQuarterTypesStdObject->language = $language;
|
| 352 |
+
|
| 353 |
+
$response = parent::listQuarterTypes($listQuarterTypesStdObject);
|
| 354 |
+
$arrListQuarterTypes = array();
|
| 355 |
+
if (isset($response->return)) {
|
| 356 |
+
$arrStdListQuarterTypes = $response->return;
|
| 357 |
+
if (is_array($arrStdListQuarterTypes)) {
|
| 358 |
+
for($i = 0; $i < count($arrStdListQuarterTypes); $i++) {
|
| 359 |
+
$arrListQuarterTypes[$i] = $arrStdListQuarterTypes[$i];
|
| 360 |
+
}
|
| 361 |
+
} else {
|
| 362 |
+
$arrListQuarterTypes[0] = $arrStdListQuarterTypes;
|
| 363 |
+
}
|
| 364 |
+
}
|
| 365 |
+
return $arrListQuarterTypes;
|
| 366 |
+
} catch (SoapFault $sf) {
|
| 367 |
+
throw new ServerException($sf);
|
| 368 |
+
}
|
| 369 |
+
}
|
| 370 |
+
|
| 371 |
+
/**
|
| 372 |
+
* @see EPSInterface::listStreets()
|
| 373 |
+
*/
|
| 374 |
+
public function listStreets($sessionId, $name, $siteId, $language) {
|
| 375 |
+
try {
|
| 376 |
+
$listStreetsStdObject = new stdClass();
|
| 377 |
+
$listStreetsStdObject->sessionId = $sessionId;
|
| 378 |
+
$listStreetsStdObject->name = $name;
|
| 379 |
+
$listStreetsStdObject->siteId = $siteId;
|
| 380 |
+
$listStreetsStdObject->language = $language;
|
| 381 |
+
|
| 382 |
+
$response = parent::listStreets($listStreetsStdObject);
|
| 383 |
+
$arrlistStreets = array();
|
| 384 |
+
if (isset($response->return)) {
|
| 385 |
+
$arrStdListStreets = $response->return;
|
| 386 |
+
if (is_array($arrStdListStreets)) {
|
| 387 |
+
for($i = 0; $i < count($arrStdListStreets); $i++) {
|
| 388 |
+
$arrlistStreets[$i] = new ResultStreet($arrStdListStreets[$i]);
|
| 389 |
+
}
|
| 390 |
+
} else {
|
| 391 |
+
$arrlistStreets[0] = new ResultStreet($arrStdListStreets);
|
| 392 |
+
}
|
| 393 |
+
}
|
| 394 |
+
return $arrlistStreets;
|
| 395 |
+
} catch (SoapFault $sf) {
|
| 396 |
+
throw new ServerException($sf);
|
| 397 |
+
}
|
| 398 |
+
}
|
| 399 |
+
|
| 400 |
+
/**
|
| 401 |
+
* @see EPSInterface::listQuarters()
|
| 402 |
+
*/
|
| 403 |
+
public function listQuarters($sessionId, $name, $siteId, $language) {
|
| 404 |
+
try {
|
| 405 |
+
$listQuartersStdObject = new stdClass();
|
| 406 |
+
$listQuartersStdObject->sessionId = $sessionId;
|
| 407 |
+
$listQuartersStdObject->name = $name;
|
| 408 |
+
$listQuartersStdObject->siteId = $siteId;
|
| 409 |
+
$listQuartersStdObject->language = $language;
|
| 410 |
+
|
| 411 |
+
$response = parent::listQuarters($listQuartersStdObject);
|
| 412 |
+
$arrListQuarters = array();
|
| 413 |
+
if (isset($response->return)) {
|
| 414 |
+
$arrStdListQuarters = $response->return;
|
| 415 |
+
if (is_array($arrStdListQuarters)) {
|
| 416 |
+
for($i = 0; $i < count($arrStdListQuarters); $i++) {
|
| 417 |
+
$arrListQuarters[$i] = new ResultQuarter($arrStdListQuarters[$i]);
|
| 418 |
+
}
|
| 419 |
+
} else {
|
| 420 |
+
$arrListQuarters[0] = new ResultQuarter($arrStdListQuarters);
|
| 421 |
+
}
|
| 422 |
+
}
|
| 423 |
+
return $arrListQuarters;
|
| 424 |
+
} catch (SoapFault $sf) {
|
| 425 |
+
throw new ServerException($sf);
|
| 426 |
+
}
|
| 427 |
+
}
|
| 428 |
+
|
| 429 |
+
/**
|
| 430 |
+
* @see EPSInterface::listCommonObjects()
|
| 431 |
+
*/
|
| 432 |
+
public function listCommonObjects($sessionId, $name, $siteId, $language) {
|
| 433 |
+
try {
|
| 434 |
+
$listCommonObjectsStdObject = new stdClass();
|
| 435 |
+
$listCommonObjectsStdObject->sessionId = $sessionId;
|
| 436 |
+
$listCommonObjectsStdObject->name = $name;
|
| 437 |
+
$listCommonObjectsStdObject->siteId = $siteId;
|
| 438 |
+
$listCommonObjectsStdObject->language = $language;
|
| 439 |
+
$response = parent::listCommonObjects($listCommonObjectsStdObject);
|
| 440 |
+
$arrListCommonObjects = array();
|
| 441 |
+
if (isset($response->return)) {
|
| 442 |
+
$arrStdListCommonObjects = $response->return;
|
| 443 |
+
if (is_array($arrStdListCommonObjects)) {
|
| 444 |
+
for($i = 0; $i < count($arrStdListCommonObjects); $i++) {
|
| 445 |
+
$arrListCommonObjects[$i] = new ResultCommonObject($arrStdListCommonObjects[$i]);
|
| 446 |
+
}
|
| 447 |
+
} else {
|
| 448 |
+
$arrListCommonObjects[0] = new ResultCommonObject($arrStdListCommonObjects);
|
| 449 |
+
}
|
| 450 |
+
}
|
| 451 |
+
return $arrListCommonObjects;
|
| 452 |
+
} catch (SoapFault $sf) {
|
| 453 |
+
throw new ServerException($sf);
|
| 454 |
+
}
|
| 455 |
+
}
|
| 456 |
+
|
| 457 |
+
/**
|
| 458 |
+
* @see EPSInterface::listBlocks()
|
| 459 |
+
*/
|
| 460 |
+
public function listBlocks($sessionId, $name, $siteId, $language) {
|
| 461 |
+
try {
|
| 462 |
+
$listBlocksStdObject = new stdClass();
|
| 463 |
+
$listBlocksStdObject->sessionId = $sessionId;
|
| 464 |
+
$listBlocksStdObject->name = $name;
|
| 465 |
+
$listBlocksStdObject->siteId = $siteId;
|
| 466 |
+
$listBlocksStdObject->language = $language;
|
| 467 |
+
$response = parent::listBlocks($listBlocksStdObject);
|
| 468 |
+
$arrListBlocks = array();
|
| 469 |
+
if (isset($response->return)) {
|
| 470 |
+
$arrStdListBlocks = $response->return;
|
| 471 |
+
if (is_array($arrStdListBlocks)) {
|
| 472 |
+
for($i = 0; $i < count($arrStdListBlocks); $i++) {
|
| 473 |
+
$arrListBlocks[$i] = $arrStdListBlocks[$i];
|
| 474 |
+
}
|
| 475 |
+
} else {
|
| 476 |
+
$arrListBlocks[0] = $arrStdListBlocks;
|
| 477 |
+
}
|
| 478 |
+
}
|
| 479 |
+
return $arrListBlocks;
|
| 480 |
+
} catch (SoapFault $sf) {
|
| 481 |
+
throw new ServerException($sf);
|
| 482 |
+
}
|
| 483 |
+
}
|
| 484 |
+
|
| 485 |
+
/**
|
| 486 |
+
* @see EPSInterface::listOffices()
|
| 487 |
+
*/
|
| 488 |
+
public function listOffices($sessionId, $name, $siteId) {
|
| 489 |
+
try {
|
| 490 |
+
$listOfficesStdObject = new stdClass();
|
| 491 |
+
$listOfficesStdObject->sessionId = $sessionId;
|
| 492 |
+
$listOfficesStdObject->name = $name;
|
| 493 |
+
$listOfficesStdObject->siteId = $siteId;
|
| 494 |
+
$response = parent::listOffices($listOfficesStdObject);
|
| 495 |
+
$arrListOffices = array();
|
| 496 |
+
if (isset($response->return)) {
|
| 497 |
+
$arrStdListOffices = $response->return;
|
| 498 |
+
if (is_array($arrStdListOffices)) {
|
| 499 |
+
for($i = 0; $i < count($arrStdListOffices); $i++) {
|
| 500 |
+
$arrListOffices[$i] = new ResultOffice($arrStdListOffices[$i]);
|
| 501 |
+
}
|
| 502 |
+
} else {
|
| 503 |
+
$arrListOffices[0] = new ResultOffice($arrStdListOffices);
|
| 504 |
+
}
|
| 505 |
+
}
|
| 506 |
+
return $arrListOffices;
|
| 507 |
+
} catch (SoapFault $sf) {
|
| 508 |
+
throw new ServerException($sf);
|
| 509 |
+
}
|
| 510 |
+
}
|
| 511 |
+
|
| 512 |
+
/**
|
| 513 |
+
* @see EPSInterface::getClientById($sessionId, $clientId)
|
| 514 |
+
*/
|
| 515 |
+
public function getClientById($sessionId, $clientId) {
|
| 516 |
+
try {
|
| 517 |
+
$getClientByIdStdObject = new stdClass();
|
| 518 |
+
$getClientByIdStdObject->sessionId = $sessionId;
|
| 519 |
+
$getClientByIdStdObject->clientId = $clientId;
|
| 520 |
+
$response = parent::getClientById($getClientByIdStdObject);
|
| 521 |
+
if (isset($response->return)) {
|
| 522 |
+
$resultClientData = new ResultClientData($response->return);
|
| 523 |
+
} else {
|
| 524 |
+
$resultClientData = null;
|
| 525 |
+
}
|
| 526 |
+
return $resultClientData;
|
| 527 |
+
} catch (SoapFault $sf) {
|
| 528 |
+
throw new ServerException($sf);
|
| 529 |
+
}
|
| 530 |
+
}
|
| 531 |
+
|
| 532 |
+
/**
|
| 533 |
+
* @see EPSInterface::getAllowedDaysForTaking()
|
| 534 |
+
*/
|
| 535 |
+
public function getAllowedDaysForTaking(
|
| 536 |
+
$sessionId, $serviceTypeId, $senderSiteId, $senderOfficeId, $minDate, $senderCountryId, $senderPostCode
|
| 537 |
+
) {
|
| 538 |
+
try {
|
| 539 |
+
$getAllowedDaysForTakingStdObject = new stdClass();
|
| 540 |
+
$getAllowedDaysForTakingStdObject->sessionId = $sessionId;
|
| 541 |
+
$getAllowedDaysForTakingStdObject->serviceTypeId = $serviceTypeId;
|
| 542 |
+
$getAllowedDaysForTakingStdObject->senderSiteId = $senderSiteId;
|
| 543 |
+
$getAllowedDaysForTakingStdObject->senderOfficeId = $senderOfficeId;
|
| 544 |
+
$getAllowedDaysForTakingStdObject->minDate = $minDate;
|
| 545 |
+
$getAllowedDaysForTakingStdObject->senderCountryId = $senderCountryId;
|
| 546 |
+
$getAllowedDaysForTakingStdObject->senderPostCode = $senderPostCode;
|
| 547 |
+
|
| 548 |
+
$response = parent::getAllowedDaysForTaking($getAllowedDaysForTakingStdObject);
|
| 549 |
+
$arrGetAllowedDaysForTaking = array();
|
| 550 |
+
if (isset($response->return)) {
|
| 551 |
+
$arrStdGetAllowedDaysForTaking = $response->return;
|
| 552 |
+
if (is_array($arrStdGetAllowedDaysForTaking)) {
|
| 553 |
+
for($i = 0; $i < count($arrStdGetAllowedDaysForTaking); $i++) {
|
| 554 |
+
$arrGetAllowedDaysForTaking[$i] = $arrStdGetAllowedDaysForTaking[$i];
|
| 555 |
+
}
|
| 556 |
+
} else {
|
| 557 |
+
$arrGetAllowedDaysForTaking[0] = $arrStdGetAllowedDaysForTaking;
|
| 558 |
+
}
|
| 559 |
+
}
|
| 560 |
+
return $arrGetAllowedDaysForTaking;
|
| 561 |
+
} catch (SoapFault $sf) {
|
| 562 |
+
throw new ServerException($sf);
|
| 563 |
+
}
|
| 564 |
+
}
|
| 565 |
+
|
| 566 |
+
/**
|
| 567 |
+
* @see EPSInterface::addressSearch()
|
| 568 |
+
*/
|
| 569 |
+
public function addressSearch($sessionId, $address) {
|
| 570 |
+
try {
|
| 571 |
+
$addressSearchStdObject = new stdClass();
|
| 572 |
+
$addressSearchStdObject->sessionId = $sessionId;
|
| 573 |
+
$addressSearchStdObject->address = $address->toStdClass();
|
| 574 |
+
$response = parent::addressSearch($addressSearchStdObject);
|
| 575 |
+
$arrAddressSearch = array();
|
| 576 |
+
if (isset($response->return)) {
|
| 577 |
+
$arrStdAddressSearch = $response->return;
|
| 578 |
+
if (is_array($arrStdAddressSearch)) {
|
| 579 |
+
for($i = 0; $i < count($arrStdAddressSearch); $i++) {
|
| 580 |
+
$arrAddressSearch[$i] = new ResultAddressSearch($arrStdAddressSearch[$i]);
|
| 581 |
+
}
|
| 582 |
+
} else {
|
| 583 |
+
$arrAddressSearch[0] = new ResultAddressSearch($arrStdAddressSearch);
|
| 584 |
+
}
|
| 585 |
+
}
|
| 586 |
+
return $arrAddressSearch;
|
| 587 |
+
} catch (SoapFault $sf) {
|
| 588 |
+
throw new ServerException($sf);
|
| 589 |
+
}
|
| 590 |
+
}
|
| 591 |
+
|
| 592 |
+
/**
|
| 593 |
+
* @see EPSInterface::calculate()
|
| 594 |
+
*/
|
| 595 |
+
public function calculate($sessionId, $calculation) {
|
| 596 |
+
try {
|
| 597 |
+
$calculateStdObject = new stdClass();
|
| 598 |
+
$calculateStdObject->sessionId = $sessionId;
|
| 599 |
+
$calculateStdObject->calculation = $calculation->toStdClass();
|
| 600 |
+
$response = parent::calculate($calculateStdObject);
|
| 601 |
+
if (isset($response->return)) {
|
| 602 |
+
$resultCalculation = new ResultCalculation($response->return);
|
| 603 |
+
} else {
|
| 604 |
+
$resultCalculation = null;
|
| 605 |
+
}
|
| 606 |
+
return $resultCalculation;
|
| 607 |
+
} catch (SoapFault $sf) {
|
| 608 |
+
throw new ServerException($sf);
|
| 609 |
+
}
|
| 610 |
+
}
|
| 611 |
+
|
| 612 |
+
/**
|
| 613 |
+
* @see EPSInterface::calculateMultipleServices()
|
| 614 |
+
*/
|
| 615 |
+
public function calculateMultipleServices($sessionId, $calculation, $serviceTypeIds) {
|
| 616 |
+
try {
|
| 617 |
+
$calculateMultipleServicesStdObject = new stdClass();
|
| 618 |
+
$calculateMultipleServicesStdObject->sessionId = $sessionId;
|
| 619 |
+
$calculateMultipleServicesStdObject->calculation = $calculation->toStdClass();
|
| 620 |
+
$calculateMultipleServicesStdObject->serviceTypeIds = $serviceTypeIds;
|
| 621 |
+
$calculateMultipleServicesStdObject->calculation->serviceTypeId = ParamCalculation::CALCULATE_MULTUPLE_SERVICES_SERVICE_TYPE_ID;
|
| 622 |
+
$response = parent::calculateMultipleServices($calculateMultipleServicesStdObject);
|
| 623 |
+
$arrCalculateMultipleServices = array();
|
| 624 |
+
if (isset($response->return)) {
|
| 625 |
+
$arrStdCalculateMultipleServices = $response->return;
|
| 626 |
+
if (is_array($arrStdCalculateMultipleServices)) {
|
| 627 |
+
for($i = 0; $i < count($arrStdCalculateMultipleServices); $i++) {
|
| 628 |
+
$arrCalculateMultipleServices[$i] = new ResultCalculationMS($arrStdCalculateMultipleServices[$i]);
|
| 629 |
+
}
|
| 630 |
+
} else {
|
| 631 |
+
$arrCalculateMultipleServices[0] = new ResultCalculationMS($arrStdCalculateMultipleServices);
|
| 632 |
+
}
|
| 633 |
+
}
|
| 634 |
+
return $arrCalculateMultipleServices;
|
| 635 |
+
} catch (SoapFault $sf) {
|
| 636 |
+
throw new ServerException($sf);
|
| 637 |
+
}
|
| 638 |
+
}
|
| 639 |
+
|
| 640 |
+
/**
|
| 641 |
+
* @see EPSInterface::calculatePicking()
|
| 642 |
+
*/
|
| 643 |
+
public function calculatePicking($sessionId, $picking) {
|
| 644 |
+
try {
|
| 645 |
+
$calculatePickingStdObject = new stdClass();
|
| 646 |
+
$calculatePickingStdObject->sessionId = $sessionId;
|
| 647 |
+
$calculatePickingStdObject->picking = $picking->toStdClass();
|
| 648 |
+
$response = parent::calculatePicking($calculatePickingStdObject);
|
| 649 |
+
if (isset($response->return)) {
|
| 650 |
+
$resultCalculation = new ResultCalculation($response->return);
|
| 651 |
+
} else {
|
| 652 |
+
$resultCalculation = null;
|
| 653 |
+
}
|
| 654 |
+
return $resultCalculation;
|
| 655 |
+
} catch (SoapFault $sf) {
|
| 656 |
+
throw new ServerException($sf);
|
| 657 |
+
}
|
| 658 |
+
}
|
| 659 |
+
|
| 660 |
+
/**
|
| 661 |
+
* @see EPSInterface::createBillOfLading()
|
| 662 |
+
*/
|
| 663 |
+
public function createBillOfLading($sessionId, $picking) {
|
| 664 |
+
try {
|
| 665 |
+
$createBillOfLadingStdObject = new stdClass();
|
| 666 |
+
$createBillOfLadingStdObject->sessionId = $sessionId;
|
| 667 |
+
$createBillOfLadingStdObject->picking = $picking->toStdClass();
|
| 668 |
+
$response = parent::createBillOfLading($createBillOfLadingStdObject);
|
| 669 |
+
if (isset($response->return)) {
|
| 670 |
+
$resultBOL = new ResultBOL($response->return);
|
| 671 |
+
} else {
|
| 672 |
+
$resultBOL = null;
|
| 673 |
+
}
|
| 674 |
+
return $resultBOL;
|
| 675 |
+
} catch (SoapFault $sf) {
|
| 676 |
+
throw new ServerException($sf);
|
| 677 |
+
}
|
| 678 |
+
}
|
| 679 |
+
|
| 680 |
+
/**
|
| 681 |
+
* @see EPSInterface::createPDF()
|
| 682 |
+
*/
|
| 683 |
+
public function createPDF($sessionId, $params) {
|
| 684 |
+
try {
|
| 685 |
+
$createPDFStdObject = new stdClass();
|
| 686 |
+
$createPDFStdObject->sessionId = $sessionId;
|
| 687 |
+
$createPDFStdObject->params = $params->toStdClass();
|
| 688 |
+
$response = parent::createPDF($createPDFStdObject);
|
| 689 |
+
if (isset($response->return)) {
|
| 690 |
+
$resultPDF = $response->return;
|
| 691 |
+
} else {
|
| 692 |
+
$resultPDF = null;
|
| 693 |
+
}
|
| 694 |
+
return $resultPDF;
|
| 695 |
+
} catch (SoapFault $sf) {
|
| 696 |
+
throw new ServerException($sf);
|
| 697 |
+
}
|
| 698 |
+
}
|
| 699 |
+
|
| 700 |
+
/**
|
| 701 |
+
* @see EPSInterface::createBillOfLadingPDF()
|
| 702 |
+
*/
|
| 703 |
+
public function createBillOfLadingPDF($sessionId, $billOfLading, $includeAutoPrintJS) {
|
| 704 |
+
try {
|
| 705 |
+
$createBillOfLadingPDFStdObject = new stdClass();
|
| 706 |
+
$createBillOfLadingPDFStdObject->sessionId = $sessionId;
|
| 707 |
+
$createBillOfLadingPDFStdObject->billOfLading = $billOfLading;
|
| 708 |
+
$createBillOfLadingPDFStdObject->includeAutoPrintJS = $includeAutoPrintJS;
|
| 709 |
+
$response = parent::createBillOfLadingPDF($createBillOfLadingPDFStdObject);
|
| 710 |
+
if (isset($response->return)) {
|
| 711 |
+
$resultPDF = $response->return;
|
| 712 |
+
} else {
|
| 713 |
+
$resultPDF = null;
|
| 714 |
+
}
|
| 715 |
+
return $resultPDF;
|
| 716 |
+
} catch (SoapFault $sf) {
|
| 717 |
+
throw new ServerException($sf);
|
| 718 |
+
}
|
| 719 |
+
}
|
| 720 |
+
|
| 721 |
+
/**
|
| 722 |
+
* @see EPSInterface::createCustomTravelLabelPDFType1()
|
| 723 |
+
*/
|
| 724 |
+
public function createCustomTravelLabelPDFType1($sessionId, $parcelId) {
|
| 725 |
+
try {
|
| 726 |
+
$createCustomTravelLabelPDFType1StdObject = new stdClass();
|
| 727 |
+
$createCustomTravelLabelPDFType1StdObject->sessionId = $sessionId;
|
| 728 |
+
$createCustomTravelLabelPDFType1StdObject->parcelId = $parcelId;
|
| 729 |
+
$response = parent::createCustomTravelLabelPDFType1($createCustomTravelLabelPDFType1StdObject);
|
| 730 |
+
if (isset($response->return)) {
|
| 731 |
+
$resultPDF = $response->return;
|
| 732 |
+
} else {
|
| 733 |
+
$resultPDF = null;
|
| 734 |
+
}
|
| 735 |
+
return $resultPDF;
|
| 736 |
+
} catch (SoapFault $sf) {
|
| 737 |
+
throw new ServerException($sf);
|
| 738 |
+
}
|
| 739 |
+
}
|
| 740 |
+
|
| 741 |
+
/**
|
| 742 |
+
* @see EPSInterface::invalidatePicking()
|
| 743 |
+
*/
|
| 744 |
+
public function invalidatePicking($sessionId, $billOfLading, $cancelComment) {
|
| 745 |
+
try {
|
| 746 |
+
$invalidatePickingStdObject = new stdClass();
|
| 747 |
+
$invalidatePickingStdObject->sessionId = $sessionId;
|
| 748 |
+
$invalidatePickingStdObject->billOfLading = $billOfLading;
|
| 749 |
+
$invalidatePickingStdObject->cancelComment = $cancelComment;
|
| 750 |
+
parent::invalidatePicking($invalidatePickingStdObject);
|
| 751 |
+
} catch (SoapFault $sf) {
|
| 752 |
+
throw new ServerException($sf);
|
| 753 |
+
}
|
| 754 |
+
}
|
| 755 |
+
|
| 756 |
+
/**
|
| 757 |
+
* @see EPSInterface::updateBillOfLading()
|
| 758 |
+
*/
|
| 759 |
+
public function updateBillOfLading($sessionId, $picking) {
|
| 760 |
+
try {
|
| 761 |
+
$updateBillOfLadingStdObject = new stdClass();
|
| 762 |
+
$updateBillOfLadingStdObject->sessionId = $sessionId;
|
| 763 |
+
$updateBillOfLadingStdObject->picking = $picking->toStdClass();
|
| 764 |
+
$response = parent::updateBillOfLading($updateBillOfLadingStdObject);
|
| 765 |
+
if (isset($response->return)) {
|
| 766 |
+
$resultBOL = new ResultBOL($response->return);
|
| 767 |
+
} else {
|
| 768 |
+
$resultBOL = null;
|
| 769 |
+
}
|
| 770 |
+
return $resultBOL;
|
| 771 |
+
} catch (SoapFault $sf) {
|
| 772 |
+
throw new ServerException($sf);
|
| 773 |
+
}
|
| 774 |
+
}
|
| 775 |
+
|
| 776 |
+
/**
|
| 777 |
+
* @see EPSInterface::addParcel()
|
| 778 |
+
*/
|
| 779 |
+
public function addParcel($sessionId, $parcel) {
|
| 780 |
+
try {
|
| 781 |
+
$addParcelStdObject = new stdClass();
|
| 782 |
+
$addParcelStdObject->sessionId = $sessionId;
|
| 783 |
+
$addParcelStdObject->parcel = $parcel->toStdClass();
|
| 784 |
+
$response = parent::addParcel($addParcelStdObject);
|
| 785 |
+
if (isset($response->return)) {
|
| 786 |
+
$result = $response->return;
|
| 787 |
+
} else {
|
| 788 |
+
$result = null;
|
| 789 |
+
}
|
| 790 |
+
return $result;
|
| 791 |
+
} catch (SoapFault $sf) {
|
| 792 |
+
throw new ServerException($sf);
|
| 793 |
+
}
|
| 794 |
+
}
|
| 795 |
+
|
| 796 |
+
/**
|
| 797 |
+
* @see EPSInterface::finalizeBillOfLadingCreation()
|
| 798 |
+
*/
|
| 799 |
+
public function finalizeBillOfLadingCreation($sessionId, $billOfLading) {
|
| 800 |
+
try {
|
| 801 |
+
$finalizeBillOfLadingCreationStdObject = new stdClass();
|
| 802 |
+
$finalizeBillOfLadingCreationStdObject->sessionId = $sessionId;
|
| 803 |
+
$finalizeBillOfLadingCreationStdObject->billOfLading = $billOfLading;
|
| 804 |
+
$response = parent::finalizeBillOfLadingCreation($finalizeBillOfLadingCreationStdObject);
|
| 805 |
+
if (isset($response->return)) {
|
| 806 |
+
$resultBOL = new ResultBOL($response->return);
|
| 807 |
+
} else {
|
| 808 |
+
$resultBOL = null;
|
| 809 |
+
}
|
| 810 |
+
return $resultBOL;
|
| 811 |
+
} catch (SoapFault $sf) {
|
| 812 |
+
throw new ServerException($sf);
|
| 813 |
+
}
|
| 814 |
+
}
|
| 815 |
+
|
| 816 |
+
/**
|
| 817 |
+
* @see EPSInterface::createOrder()
|
| 818 |
+
*/
|
| 819 |
+
public function createOrder($sessionId, $order) {
|
| 820 |
+
try {
|
| 821 |
+
$createOrderStdObject = new stdClass();
|
| 822 |
+
$createOrderStdObject->sessionId = $sessionId;
|
| 823 |
+
$createOrderStdObject->order = $order->toStdClass();
|
| 824 |
+
$response = parent::createOrder($createOrderStdObject);
|
| 825 |
+
$arrCreateOrder = array();
|
| 826 |
+
if (isset($response->return)) {
|
| 827 |
+
$arrStdCreateOrder = $response->return;
|
| 828 |
+
if (is_array($arrStdCreateOrder)) {
|
| 829 |
+
for($i = 0; $i < count($arrStdCreateOrder); $i++) {
|
| 830 |
+
$arrCreateOrder[$i] = new ResultOrderPickingInfo($arrStdCreateOrder[$i]);
|
| 831 |
+
}
|
| 832 |
+
} else {
|
| 833 |
+
$arrCreateOrder[0] = new ResultOrderPickingInfo($arrStdCreateOrder);
|
| 834 |
+
}
|
| 835 |
+
}
|
| 836 |
+
return $arrCreateOrder;
|
| 837 |
+
} catch (SoapFault $sf) {
|
| 838 |
+
throw new ServerException($sf);
|
| 839 |
+
}
|
| 840 |
+
}
|
| 841 |
+
|
| 842 |
+
/**
|
| 843 |
+
* @see EPSInterface::getPickingParcels()
|
| 844 |
+
*/
|
| 845 |
+
public function getPickingParcels($sessionId, $billOfLading) {
|
| 846 |
+
try {
|
| 847 |
+
$getPickingParcelsStdObject = new stdClass();
|
| 848 |
+
$getPickingParcelsStdObject->sessionId = $sessionId;
|
| 849 |
+
$getPickingParcelsStdObject->billOfLading = $billOfLading;
|
| 850 |
+
$response = parent::getPickingParcels($getPickingParcelsStdObject);
|
| 851 |
+
$arrResultParcelInfo = array();
|
| 852 |
+
if (isset($response->return)) {
|
| 853 |
+
$arrStdResultParcelInfo = $response->return;
|
| 854 |
+
if (is_array($arrStdResultParcelInfo)) {
|
| 855 |
+
for($i = 0; $i < count($arrStdResultParcelInfo); $i++) {
|
| 856 |
+
$arrResultParcelInfo[$i] = new ResultParcelInfo($arrStdResultParcelInfo[$i]);
|
| 857 |
+
}
|
| 858 |
+
} else {
|
| 859 |
+
$arrResultParcelInfo[0] = new ResultParcelInfo($arrStdResultParcelInfo);
|
| 860 |
+
}
|
| 861 |
+
}
|
| 862 |
+
return $arrResultParcelInfo;
|
| 863 |
+
} catch (SoapFault $sf) {
|
| 864 |
+
throw new ServerException($sf);
|
| 865 |
+
}
|
| 866 |
+
}
|
| 867 |
+
|
| 868 |
+
/**
|
| 869 |
+
* @see EPSInterface::trackPicking()
|
| 870 |
+
*/
|
| 871 |
+
public function trackPicking($sessionId, $billOfLading) {
|
| 872 |
+
try {
|
| 873 |
+
$trackPickingStdObject = new stdClass();
|
| 874 |
+
$trackPickingStdObject->sessionId = $sessionId;
|
| 875 |
+
$trackPickingStdObject->billOfLading = $billOfLading;
|
| 876 |
+
$response = parent::trackPicking($trackPickingStdObject);
|
| 877 |
+
$arrResultTrackPicking = array();
|
| 878 |
+
if (isset($response->return)) {
|
| 879 |
+
$arrStdResultTrackPicking = $response->return;
|
| 880 |
+
if (is_array($arrStdResultTrackPicking)) {
|
| 881 |
+
for($i = 0; $i < count($arrStdResultTrackPicking); $i++) {
|
| 882 |
+
$arrResultTrackPicking[$i] = new ResultTrackPicking($arrStdResultTrackPicking[$i]);
|
| 883 |
+
}
|
| 884 |
+
} else {
|
| 885 |
+
$arrResultTrackPicking[0] = new ResultTrackPicking($arrStdResultTrackPicking);
|
| 886 |
+
}
|
| 887 |
+
}
|
| 888 |
+
return $arrResultTrackPicking;
|
| 889 |
+
} catch (SoapFault $sf) {
|
| 890 |
+
throw new ServerException($sf);
|
| 891 |
+
}
|
| 892 |
+
}
|
| 893 |
+
|
| 894 |
+
/**
|
| 895 |
+
* @see EPSInterface::trackPickingEx()
|
| 896 |
+
*/
|
| 897 |
+
public function trackPickingEx($sessionId, $billOfLading, $language) {
|
| 898 |
+
try {
|
| 899 |
+
$trackPickingExStdObject = new stdClass();
|
| 900 |
+
$trackPickingExStdObject->sessionId = $sessionId;
|
| 901 |
+
$trackPickingExStdObject->billOfLading = $billOfLading;
|
| 902 |
+
$trackPickingExStdObject->language = $language;
|
| 903 |
+
$response = parent::trackPickingEx($trackPickingExStdObject);
|
| 904 |
+
$arrResultTrackPickingEx = array();
|
| 905 |
+
|
| 906 |
+
if (isset($response->return)) {
|
| 907 |
+
$arrStdResultTrackPickingEx = $response->return;
|
| 908 |
+
if (is_array($arrStdResultTrackPickingEx)) {
|
| 909 |
+
for($i = 0; $i < count($arrStdResultTrackPickingEx); $i++) {
|
| 910 |
+
$arrResultTrackPickingEx[$i] = new ResultTrackPickingEx($arrStdResultTrackPickingEx[$i]);
|
| 911 |
+
}
|
| 912 |
+
} else {
|
| 913 |
+
$arrResultTrackPickingEx[0] = new ResultTrackPickingEx($arrStdResultTrackPickingEx);
|
| 914 |
+
}
|
| 915 |
+
}
|
| 916 |
+
return $arrResultTrackPickingEx;
|
| 917 |
+
} catch (SoapFault $sf) {
|
| 918 |
+
throw new ServerException($sf);
|
| 919 |
+
}
|
| 920 |
+
}
|
| 921 |
+
|
| 922 |
+
/**
|
| 923 |
+
* @see EPSInterface::searchPickingsByRefNumber()
|
| 924 |
+
*/
|
| 925 |
+
public function searchPickingsByRefNumber($sessionId, $params) {
|
| 926 |
+
try {
|
| 927 |
+
$searchPickingsByRefNumberStdObject = new stdClass();
|
| 928 |
+
$searchPickingsByRefNumberStdObject->sessionId = $sessionId;
|
| 929 |
+
$searchPickingsByRefNumberStdObject->params = $params->toStdClass();
|
| 930 |
+
$response = parent::searchPickingsByRefNumber($searchPickingsByRefNumberStdObject);
|
| 931 |
+
$arrSearchPickingsByRefNumber = array();
|
| 932 |
+
if (isset($response->return)) {
|
| 933 |
+
$arrStdSearchPickingsByRefNumber = $response->return;
|
| 934 |
+
if (is_array($arrStdSearchPickingsByRefNumber)) {
|
| 935 |
+
for($i = 0; $i < count($arrStdSearchPickingsByRefNumber); $i++) {
|
| 936 |
+
$arrSearchPickingsByRefNumber[$i] = $arrStdSearchPickingsByRefNumber[$i];
|
| 937 |
+
}
|
| 938 |
+
} else {
|
| 939 |
+
$arrSearchPickingsByRefNumber[0] = $arrStdSearchPickingsByRefNumber;
|
| 940 |
+
}
|
| 941 |
+
}
|
| 942 |
+
return $arrSearchPickingsByRefNumber;
|
| 943 |
+
} catch (SoapFault $sf) {
|
| 944 |
+
throw new ServerException($sf);
|
| 945 |
+
}
|
| 946 |
+
}
|
| 947 |
+
|
| 948 |
+
/**
|
| 949 |
+
* @see EPSInterface::trackParcel()
|
| 950 |
+
*/
|
| 951 |
+
public function trackParcel($sessionId, $parcelId, $language) {
|
| 952 |
+
try {
|
| 953 |
+
$trackParcelStdObject = new stdClass();
|
| 954 |
+
$trackParcelStdObject->sessionId = $sessionId;
|
| 955 |
+
$trackParcelStdObject->parcelId = $parcelId;
|
| 956 |
+
$trackParcelStdObject->language = $language;
|
| 957 |
+
$response = parent::trackParcel($trackParcelStdObject);
|
| 958 |
+
$arrResultTrackParcel = array();
|
| 959 |
+
|
| 960 |
+
if (isset($response->return)) {
|
| 961 |
+
$arrStdResultTrackParcel = $response->return;
|
| 962 |
+
if (is_array($arrStdResultTrackParcel)) {
|
| 963 |
+
for($i = 0; $i < count($arrStdResultTrackParcel); $i++) {
|
| 964 |
+
$arrResultTrackParcel[$i] = new ResultTrackPickingEx($arrStdResultTrackParcel[$i]);
|
| 965 |
+
}
|
| 966 |
+
} else {
|
| 967 |
+
$arrResultTrackParcel[0] = new ResultTrackPickingEx($arrStdResultTrackParcel);
|
| 968 |
+
}
|
| 969 |
+
}
|
| 970 |
+
return $arrResultTrackParcel;
|
| 971 |
+
} catch (SoapFault $sf) {
|
| 972 |
+
throw new ServerException($sf);
|
| 973 |
+
}
|
| 974 |
+
}
|
| 975 |
+
|
| 976 |
+
/**
|
| 977 |
+
* @see EPSInterface::trackParcelMultiple()
|
| 978 |
+
*/
|
| 979 |
+
public function trackParcelMultiple($sessionId, $barcodes, $language) {
|
| 980 |
+
try {
|
| 981 |
+
$trackParcelMultipleStdObject = new stdClass();
|
| 982 |
+
$trackParcelMultipleStdObject->sessionId = $sessionId;
|
| 983 |
+
$trackParcelMultipleStdObject->barcodes = $barcodes;
|
| 984 |
+
$trackParcelMultipleStdObject->language = $language;
|
| 985 |
+
$response = parent::trackParcelMultiple($trackParcelMultipleStdObject);
|
| 986 |
+
$arrResultTrackParcelMultiple = array();
|
| 987 |
+
|
| 988 |
+
if (isset($response->return)) {
|
| 989 |
+
$arrStdResultTrackParcelMultiple = $response->return;
|
| 990 |
+
if (is_array($arrStdResultTrackParcelMultiple)) {
|
| 991 |
+
for($i = 0; $i < count($arrStdResultTrackParcelMultiple); $i++) {
|
| 992 |
+
$arrResultTrackParcelMultiple[$i] = new ResultTrackPickingEx($arrStdResultTrackParcelMultiple[$i]);
|
| 993 |
+
}
|
| 994 |
+
} else {
|
| 995 |
+
$arrResultTrackParcelMultiple[0] = new ResultTrackPickingEx($arrStdResultTrackParcelMultiple);
|
| 996 |
+
}
|
| 997 |
+
}
|
| 998 |
+
return $arrResultTrackParcelMultiple;
|
| 999 |
+
} catch (SoapFault $sf) {
|
| 1000 |
+
throw new ServerException($sf);
|
| 1001 |
+
}
|
| 1002 |
+
}
|
| 1003 |
+
|
| 1004 |
+
/**
|
| 1005 |
+
* @see EPSInterface::getMicroregionId
|
| 1006 |
+
*/
|
| 1007 |
+
public function getMicroregionId($sessionId, $coordX, $coordY) {
|
| 1008 |
+
try {
|
| 1009 |
+
$getMicroregionIdSdtClass = new stdClass();
|
| 1010 |
+
$getMicroregionIdSdtClass->sessionId = $sessionId;
|
| 1011 |
+
$getMicroregionIdSdtClass->coordX = $coordX;
|
| 1012 |
+
$getMicroregionIdSdtClass->coordY = $coordY;
|
| 1013 |
+
$response = parent::getMicroregionId($getMicroregionIdSdtClass);
|
| 1014 |
+
if (isset($response->return)) {
|
| 1015 |
+
$microregionId = $response->return;
|
| 1016 |
+
} else {
|
| 1017 |
+
$microregionId = null;
|
| 1018 |
+
}
|
| 1019 |
+
return $microregionId;
|
| 1020 |
+
} catch (SoapFault $sf) {
|
| 1021 |
+
throw new ServerException($sf);
|
| 1022 |
+
}
|
| 1023 |
+
}
|
| 1024 |
+
|
| 1025 |
+
/**
|
| 1026 |
+
* @see EPSInterface::searchClients()
|
| 1027 |
+
*/
|
| 1028 |
+
public function searchClients($sessionId, $clientQuery) {
|
| 1029 |
+
try {
|
| 1030 |
+
$searchClientsStdObject = new stdClass();
|
| 1031 |
+
$searchClientsStdObject->sessionId = $sessionId;
|
| 1032 |
+
$searchClientsStdObject->clientQuery = $clientQuery->toStdClass();
|
| 1033 |
+
$response = parent::searchClients($searchClientsStdObject);
|
| 1034 |
+
$arrResultClientData = array();
|
| 1035 |
+
|
| 1036 |
+
if (isset($response->return)) {
|
| 1037 |
+
$arrStdResultClientData = $response->return;
|
| 1038 |
+
if (is_array($arrStdResultClientData)) {
|
| 1039 |
+
for($i = 0; $i < count($arrStdResultClientData); $i++) {
|
| 1040 |
+
$arrResultClientData[$i] = new ResultClientData($arrStdResultClientData[$i]);
|
| 1041 |
+
}
|
| 1042 |
+
} else {
|
| 1043 |
+
$arrResultClientData[0] = new ResultClientData($arrStdResultClientData);
|
| 1044 |
+
}
|
| 1045 |
+
}
|
| 1046 |
+
return $arrResultClientData;
|
| 1047 |
+
} catch (SoapFault $sf) {
|
| 1048 |
+
throw new ServerException($sf);
|
| 1049 |
+
}
|
| 1050 |
+
}
|
| 1051 |
+
|
| 1052 |
+
/**
|
| 1053 |
+
* @see EPSInterface::listSpecialDeliveryRequirements()
|
| 1054 |
+
*/
|
| 1055 |
+
public function listSpecialDeliveryRequirements($sessionId) {
|
| 1056 |
+
try {
|
| 1057 |
+
$listSpecialDeliveryRequirementsStdObject = new stdClass();
|
| 1058 |
+
$listSpecialDeliveryRequirementsStdObject->sessionId = $sessionId;
|
| 1059 |
+
$response = parent::listSpecialDeliveryRequirements($listSpecialDeliveryRequirementsStdObject);
|
| 1060 |
+
$arrResultSpecialDeliveryRequirement = array();
|
| 1061 |
+
|
| 1062 |
+
if (isset($response->return)) {
|
| 1063 |
+
$arrStdResultSpecialDeliveryRequirement = $response->return;
|
| 1064 |
+
if (is_array($arrStdResultSpecialDeliveryRequirement)) {
|
| 1065 |
+
for($i = 0; $i < count($arrStdResultSpecialDeliveryRequirement); $i++) {
|
| 1066 |
+
$arrResultSpecialDeliveryRequirement[$i] = new ResultSpecialDeliveryRequirement($arrStdResultSpecialDeliveryRequirement[$i]);
|
| 1067 |
+
}
|
| 1068 |
+
} else {
|
| 1069 |
+
$arrResultSpecialDeliveryRequirement[0] = new ResultSpecialDeliveryRequirement($arrStdResultSpecialDeliveryRequirement);
|
| 1070 |
+
}
|
| 1071 |
+
}
|
| 1072 |
+
return $arrResultSpecialDeliveryRequirement;
|
| 1073 |
+
} catch (SoapFault $sf) {
|
| 1074 |
+
throw new ServerException($sf);
|
| 1075 |
+
}
|
| 1076 |
+
}
|
| 1077 |
+
|
| 1078 |
+
/**
|
| 1079 |
+
* @see EPSInterface::validateAddress()
|
| 1080 |
+
*/
|
| 1081 |
+
public function validateAddress($sessionId, $address, $validationMode) {
|
| 1082 |
+
try {
|
| 1083 |
+
$validateAddressStdObject = new stdClass();
|
| 1084 |
+
$validateAddressStdObject->sessionId = $sessionId;
|
| 1085 |
+
$validateAddressStdObject->address = $address->toStdClass();
|
| 1086 |
+
$validateAddressStdObject->validationMode = $validationMode;
|
| 1087 |
+
$response = parent::validateAddress($validateAddressStdObject);
|
| 1088 |
+
return $response->return;
|
| 1089 |
+
} catch (SoapFault $sf) {
|
| 1090 |
+
throw new ServerException($sf);
|
| 1091 |
+
}
|
| 1092 |
+
}
|
| 1093 |
+
|
| 1094 |
+
/**
|
| 1095 |
+
* @see EPSInterface::listContractClients()
|
| 1096 |
+
*/
|
| 1097 |
+
public function listContractClients($sessionId) {
|
| 1098 |
+
try {
|
| 1099 |
+
$listContractClientsStdObject = new stdClass();
|
| 1100 |
+
$listContractClientsStdObject->sessionId = $sessionId;
|
| 1101 |
+
$response = parent::listContractClients($listContractClientsStdObject);
|
| 1102 |
+
$arrResultContractClients = array();
|
| 1103 |
+
|
| 1104 |
+
if (isset($response->return)) {
|
| 1105 |
+
$arrStdResultContractClients = $response->return;
|
| 1106 |
+
if (is_array($arrStdResultContractClients)) {
|
| 1107 |
+
for($i = 0; $i < count($arrStdResultContractClients); $i++) {
|
| 1108 |
+
$arrResultContractClients[$i] = new ResultClientData($arrStdResultContractClients[$i]);
|
| 1109 |
+
}
|
| 1110 |
+
} else {
|
| 1111 |
+
$arrResultContractClients[0] = new ResultClientData($arrStdResultContractClients);
|
| 1112 |
+
}
|
| 1113 |
+
}
|
| 1114 |
+
return $arrResultContractClients;
|
| 1115 |
+
} catch (SoapFault $sf) {
|
| 1116 |
+
throw new ServerException($sf);
|
| 1117 |
+
}
|
| 1118 |
+
}
|
| 1119 |
+
|
| 1120 |
+
/**
|
| 1121 |
+
* @see EPSInterface::listOfficesEx()
|
| 1122 |
+
*/
|
| 1123 |
+
public function listOfficesEx($sessionId, $name, $siteId, $language) {
|
| 1124 |
+
try {
|
| 1125 |
+
$listOfficesExStdObject = new stdClass();
|
| 1126 |
+
$listOfficesExStdObject->sessionId = $sessionId;
|
| 1127 |
+
$listOfficesExStdObject->name = $name;
|
| 1128 |
+
$listOfficesExStdObject->siteId = $siteId;
|
| 1129 |
+
$listOfficesExStdObject->language = $language;
|
| 1130 |
+
$response = parent::listOfficesEx($listOfficesExStdObject);
|
| 1131 |
+
$arrListOfficesEx = array();
|
| 1132 |
+
if (isset($response->return)) {
|
| 1133 |
+
$arrStdListOfficesEx = $response->return;
|
| 1134 |
+
if (is_array($arrStdListOfficesEx)) {
|
| 1135 |
+
for($i = 0; $i < count($arrStdListOfficesEx); $i++) {
|
| 1136 |
+
$arrListOfficesEx[$i] = new ResultOfficeEx($arrStdListOfficesEx[$i]);
|
| 1137 |
+
}
|
| 1138 |
+
} else {
|
| 1139 |
+
$arrListOfficesEx[0] = new ResultOfficeEx($arrStdListOfficesEx);
|
| 1140 |
+
}
|
| 1141 |
+
}
|
| 1142 |
+
return $arrListOfficesEx;
|
| 1143 |
+
} catch (SoapFault $sf) {
|
| 1144 |
+
throw new ServerException($sf);
|
| 1145 |
+
}
|
| 1146 |
+
}
|
| 1147 |
+
|
| 1148 |
+
/**
|
| 1149 |
+
* @see EPSInterface::deserializeAddress()
|
| 1150 |
+
*/
|
| 1151 |
+
public function deserializeAddress($sessionId, $address) {
|
| 1152 |
+
try {
|
| 1153 |
+
$deserializeAddressStdObject = new stdClass();
|
| 1154 |
+
$deserializeAddressStdObject->sessionId = $sessionId;
|
| 1155 |
+
$deserializeAddressStdObject->address = $address;
|
| 1156 |
+
$response = parent::deserializeAddress($deserializeAddressStdObject);
|
| 1157 |
+
if (isset($response->return)) {
|
| 1158 |
+
$paramAddress = new ParamAddress($response->return);
|
| 1159 |
+
} else {
|
| 1160 |
+
$paramAddress = null;
|
| 1161 |
+
}
|
| 1162 |
+
return $paramAddress;
|
| 1163 |
+
} catch (SoapFault $sf) {
|
| 1164 |
+
throw new ServerException($sf);
|
| 1165 |
+
}
|
| 1166 |
+
}
|
| 1167 |
+
|
| 1168 |
+
/**
|
| 1169 |
+
* @see EPSInterface::serializeAddress()
|
| 1170 |
+
*/
|
| 1171 |
+
public function serializeAddress($sessionId, $address) {
|
| 1172 |
+
try {
|
| 1173 |
+
$serializeAddressStdObject = new stdClass();
|
| 1174 |
+
$serializeAddressStdObject->sessionId = $sessionId;
|
| 1175 |
+
$serializeAddressStdObject->address = $address->toStdClass();
|
| 1176 |
+
$response = parent::serializeAddress($serializeAddressStdObject);
|
| 1177 |
+
if (isset($response->return)) {
|
| 1178 |
+
$serializedAddress = $response->return;
|
| 1179 |
+
} else {
|
| 1180 |
+
$serializedAddress = null;
|
| 1181 |
+
}
|
| 1182 |
+
return $serializedAddress;
|
| 1183 |
+
} catch (SoapFault $sf) {
|
| 1184 |
+
throw new ServerException($sf);
|
| 1185 |
+
}
|
| 1186 |
+
}
|
| 1187 |
+
|
| 1188 |
+
/**
|
| 1189 |
+
* @see EPSInterface::makeAddressString()
|
| 1190 |
+
*/
|
| 1191 |
+
public function makeAddressString($sessionId, $address) {
|
| 1192 |
+
try {
|
| 1193 |
+
$makeAddressStringStdObject = new stdClass();
|
| 1194 |
+
$makeAddressStringStdObject->sessionId = $sessionId;
|
| 1195 |
+
$makeAddressStringStdObject->address = $address->toStdClass();;
|
| 1196 |
+
$response = parent::makeAddressString($makeAddressStringStdObject);
|
| 1197 |
+
if (isset($response->return)) {
|
| 1198 |
+
$resultAddressString = new ResultAddressString($response->return);
|
| 1199 |
+
} else {
|
| 1200 |
+
$resultAddressString = null;
|
| 1201 |
+
}
|
| 1202 |
+
return $resultAddressString;
|
| 1203 |
+
} catch (SoapFault $sf) {
|
| 1204 |
+
throw new ServerException($sf);
|
| 1205 |
+
}
|
| 1206 |
+
}
|
| 1207 |
+
|
| 1208 |
+
/**
|
| 1209 |
+
* @see EPSInterface::getAdditionalUserParams()
|
| 1210 |
+
*/
|
| 1211 |
+
public function getAdditionalUserParams($sessionId, $date) {
|
| 1212 |
+
try {
|
| 1213 |
+
$getAdditionalUserParamsStdObject = new stdClass();
|
| 1214 |
+
$getAdditionalUserParamsStdObject->sessionId = $sessionId;
|
| 1215 |
+
$getAdditionalUserParamsStdObject->date = $date;
|
| 1216 |
+
$response = parent::getAdditionalUserParams($getAdditionalUserParamsStdObject);
|
| 1217 |
+
$arrListAdditionalUserParams = array();
|
| 1218 |
+
if (isset($response->return)) {
|
| 1219 |
+
$arrStdListAdditionalUserParams = $response->return;
|
| 1220 |
+
if (is_array($arrStdListAdditionalUserParams)) {
|
| 1221 |
+
for($i = 0; $i < count($arrStdListAdditionalUserParams); $i++) {
|
| 1222 |
+
$arrListAdditionalUserParams[$i] = $arrStdListAdditionalUserParams[$i];
|
| 1223 |
+
}
|
| 1224 |
+
} else {
|
| 1225 |
+
$arrListAdditionalUserParams[0] = $arrStdListAdditionalUserParams;
|
| 1226 |
+
}
|
| 1227 |
+
}
|
| 1228 |
+
return $arrListAdditionalUserParams;
|
| 1229 |
+
} catch (SoapFault $sf) {
|
| 1230 |
+
throw new ServerException($sf);
|
| 1231 |
+
}
|
| 1232 |
+
}
|
| 1233 |
+
|
| 1234 |
+
/**
|
| 1235 |
+
* @see EPSInterface::listCountries()
|
| 1236 |
+
*/
|
| 1237 |
+
public function listCountries($sessionId, $name, $language) {
|
| 1238 |
+
try {
|
| 1239 |
+
$listCountriesStdObject = new stdClass();
|
| 1240 |
+
$listCountriesStdObject->sessionId = $sessionId;
|
| 1241 |
+
$listCountriesStdObject->name = $name;
|
| 1242 |
+
$listCountriesStdObject->language = $language;
|
| 1243 |
+
|
| 1244 |
+
$response = parent::listCountries($listCountriesStdObject);
|
| 1245 |
+
$arrListCountriesStdObject = array();
|
| 1246 |
+
if (isset($response->return)) {
|
| 1247 |
+
$arrStdListCountriesStdObject = $response->return;
|
| 1248 |
+
if (is_array($arrStdListCountriesStdObject)) {
|
| 1249 |
+
for($i = 0; $i < count($arrStdListCountriesStdObject); $i++) {
|
| 1250 |
+
$arrListCountriesStdObject[$i] = new ResultCountry($arrStdListCountriesStdObject[$i]);
|
| 1251 |
+
}
|
| 1252 |
+
} else {
|
| 1253 |
+
$arrListCountriesStdObject[0] = new ResultCountry($arrStdListCountriesStdObject);
|
| 1254 |
+
}
|
| 1255 |
+
}
|
| 1256 |
+
return $arrListCountriesStdObject;
|
| 1257 |
+
} catch (SoapFault $sf) {
|
| 1258 |
+
throw new ServerException($sf);
|
| 1259 |
+
}
|
| 1260 |
+
}
|
| 1261 |
+
|
| 1262 |
+
/**
|
| 1263 |
+
* @see EPSInterface::listCountriesEx()
|
| 1264 |
+
*/
|
| 1265 |
+
public function listCountriesEx($sessionId, $filter, $language) {
|
| 1266 |
+
try {
|
| 1267 |
+
$listCountriesExStdObject = new stdClass();
|
| 1268 |
+
$listCountriesExStdObject->sessionId = $sessionId;
|
| 1269 |
+
$listCountriesExStdObject->filter = $filter->toStdClass();
|
| 1270 |
+
$listCountriesExStdObject->language = $language;
|
| 1271 |
+
|
| 1272 |
+
$response = parent::listCountriesEx($listCountriesExStdObject);
|
| 1273 |
+
$arrListCountriesExStdObject = array();
|
| 1274 |
+
if (isset($response->return)) {
|
| 1275 |
+
$arrStdListCountriesExStdObject = $response->return;
|
| 1276 |
+
if (is_array($arrStdListCountriesExStdObject)) {
|
| 1277 |
+
for($i = 0; $i < count($arrStdListCountriesExStdObject); $i++) {
|
| 1278 |
+
$arrListCountriesExStdObject[$i] = new ResultCountry($arrStdListCountriesExStdObject[$i]);
|
| 1279 |
+
}
|
| 1280 |
+
} else {
|
| 1281 |
+
$arrListCountriesExStdObject[0] = new ResultCountry($arrStdListCountriesExStdObject);
|
| 1282 |
+
}
|
| 1283 |
+
}
|
| 1284 |
+
return $arrListCountriesExStdObject;
|
| 1285 |
+
} catch (SoapFault $sf) {
|
| 1286 |
+
throw new ServerException($sf);
|
| 1287 |
+
}
|
| 1288 |
+
}
|
| 1289 |
+
|
| 1290 |
+
/**
|
| 1291 |
+
* @see EPSInterface::listStates()
|
| 1292 |
+
*/
|
| 1293 |
+
public function listStates($sessionId, $countryId, $name) {
|
| 1294 |
+
try {
|
| 1295 |
+
$listStatesStdObject = new stdClass();
|
| 1296 |
+
$listStatesStdObject->sessionId = $sessionId;
|
| 1297 |
+
$listStatesStdObject->countryId = $countryId;
|
| 1298 |
+
$listStatesStdObject->name = $name;
|
| 1299 |
+
|
| 1300 |
+
$response = parent::listStates($listStatesStdObject);
|
| 1301 |
+
$arrListStatesStdObject = array();
|
| 1302 |
+
if (isset($response->return)) {
|
| 1303 |
+
$arrStdListStatesStdObject = $response->return;
|
| 1304 |
+
if (is_array($arrStdListStatesStdObject)) {
|
| 1305 |
+
for($i = 0; $i < count($arrStdListStatesStdObject); $i++) {
|
| 1306 |
+
$arrListStatesStdObject[$i] = new ResultState($arrStdListStatesStdObject[$i]);
|
| 1307 |
+
}
|
| 1308 |
+
} else {
|
| 1309 |
+
$arrListStatesStdObject[0] = new ResultState($arrStdListStatesStdObject);
|
| 1310 |
+
}
|
| 1311 |
+
}
|
| 1312 |
+
return $arrListStatesStdObject;
|
| 1313 |
+
} catch (SoapFault $sf) {
|
| 1314 |
+
throw new ServerException($sf);
|
| 1315 |
+
}
|
| 1316 |
+
}
|
| 1317 |
+
|
| 1318 |
+
/**
|
| 1319 |
+
* @see EPSInterface::getStateById()
|
| 1320 |
+
*/
|
| 1321 |
+
public function getStateById($sessionId, $stateId) {
|
| 1322 |
+
try {
|
| 1323 |
+
$getStateByIdStdObject = new stdClass();
|
| 1324 |
+
$getStateByIdStdObject->sessionId = $sessionId;
|
| 1325 |
+
$getStateByIdStdObject->stateId = $stateId;
|
| 1326 |
+
$response = parent::getStateById($getStateByIdStdObject);
|
| 1327 |
+
if (isset($response->return)) {
|
| 1328 |
+
$resultState = new ResultState($response->return);
|
| 1329 |
+
} else {
|
| 1330 |
+
$resultState = null;
|
| 1331 |
+
}
|
| 1332 |
+
return $resultState;
|
| 1333 |
+
} catch (SoapFault $sf) {
|
| 1334 |
+
throw new ServerException($sf);
|
| 1335 |
+
}
|
| 1336 |
+
}
|
| 1337 |
+
|
| 1338 |
+
/**
|
| 1339 |
+
* @see EPSInterface::getStateById()
|
| 1340 |
+
*/
|
| 1341 |
+
public function validatePostCode($sessionId, $countryId, $postCode) {
|
| 1342 |
+
try {
|
| 1343 |
+
$validatePostCodeStdObject = new stdClass();
|
| 1344 |
+
$validatePostCodeStdObject->sessionId = $sessionId;
|
| 1345 |
+
$validatePostCodeStdObject->countryId = $countryId;
|
| 1346 |
+
$validatePostCodeStdObject->postCode = $postCode;
|
| 1347 |
+
$response = parent::validatePostCode($validatePostCodeStdObject);
|
| 1348 |
+
if (isset($response->return)) {
|
| 1349 |
+
$resultFlag = $response->return;
|
| 1350 |
+
} else {
|
| 1351 |
+
$resultFlag = null;
|
| 1352 |
+
}
|
| 1353 |
+
return $resultFlag;
|
| 1354 |
+
} catch (SoapFault $sf) {
|
| 1355 |
+
throw new ServerException($sf);
|
| 1356 |
+
}
|
| 1357 |
+
}
|
| 1358 |
+
|
| 1359 |
+
/**
|
| 1360 |
+
* @see EPSInterface::getStateById()
|
| 1361 |
+
*/
|
| 1362 |
+
public function getPickingDeliveryInfo($sessionId, $billOfLading, $language) {
|
| 1363 |
+
try {
|
| 1364 |
+
$getPickingDeliveryInfoStdObject = new stdClass();
|
| 1365 |
+
$getPickingDeliveryInfoStdObject->sessionId = $sessionId;
|
| 1366 |
+
$getPickingDeliveryInfoStdObject->billOfLading = $billOfLading;
|
| 1367 |
+
$getPickingDeliveryInfoStdObject->language = $language;
|
| 1368 |
+
|
| 1369 |
+
$response = parent::getPickingDeliveryInfo($getPickingDeliveryInfoStdObject);
|
| 1370 |
+
$arrResultTrackPickingExStdObject = array();
|
| 1371 |
+
if (isset($response->return)) {
|
| 1372 |
+
$arrStdResultTrackPickingExStdObject = $response->return;
|
| 1373 |
+
if (is_array($arrStdResultTrackPickingExStdObject)) {
|
| 1374 |
+
for($i = 0; $i < count($arrStdResultTrackPickingExStdObject); $i++) {
|
| 1375 |
+
$arrResultTrackPickingExStdObject[$i] = new ResultTrackPickingEx($arrStdResultTrackPickingExStdObject[$i]);
|
| 1376 |
+
}
|
| 1377 |
+
} else {
|
| 1378 |
+
$arrResultTrackPickingExStdObject[0] = new ResultTrackPickingEx($arrStdResultTrackPickingExStdObject);
|
| 1379 |
+
}
|
| 1380 |
+
}
|
| 1381 |
+
return $arrResultTrackPickingExStdObject;
|
| 1382 |
+
} catch (SoapFault $sf) {
|
| 1383 |
+
throw new ServerException($sf);
|
| 1384 |
+
}
|
| 1385 |
+
}
|
| 1386 |
+
|
| 1387 |
+
/**
|
| 1388 |
+
* @see EPSInterface::searchSecondaryPickings()
|
| 1389 |
+
*/
|
| 1390 |
+
public function searchSecondaryPickings($sessionId, $paramSearchSecondaryPickings) {
|
| 1391 |
+
try {
|
| 1392 |
+
$searchSecondaryPickingsStdObject = new stdClass();
|
| 1393 |
+
$searchSecondaryPickingsStdObject->sessionId = $sessionId;
|
| 1394 |
+
$searchSecondaryPickingsStdObject->paramSearchSecondaryPickings = $paramSearchSecondaryPickings->toStdClass();
|
| 1395 |
+
$response = parent::searchSecondaryPickings($searchSecondaryPickingsStdObject);
|
| 1396 |
+
|
| 1397 |
+
$arrResultPickingInfoStdObject = array();
|
| 1398 |
+
if (isset($response->return)) {
|
| 1399 |
+
$arrStdResultPickingInfoObject = $response->return;
|
| 1400 |
+
if (is_array($arrStdResultPickingInfoObject)) {
|
| 1401 |
+
for($i = 0; $i < count($arrStdResultPickingInfoObject); $i++) {
|
| 1402 |
+
$arrResultPickingInfoStdObject[$i] = new ResultPickingInfo($arrStdResultPickingInfoObject[$i]);
|
| 1403 |
+
}
|
| 1404 |
+
} else {
|
| 1405 |
+
$arrResultPickingInfoStdObject[0] = new ResultPickingInfo($arrStdResultPickingInfoObject);
|
| 1406 |
+
}
|
| 1407 |
+
}
|
| 1408 |
+
return $arrResultPickingInfoStdObject;
|
| 1409 |
+
} catch (SoapFault $sf) {
|
| 1410 |
+
throw new ServerException($sf);
|
| 1411 |
+
}
|
| 1412 |
+
}
|
| 1413 |
+
}
|
| 1414 |
Â
?>
|
package.xml
CHANGED
|
@@ -1,18 +1,18 @@
|
|
| 1 |
Â
<?xml version="1.0"?>
|
| 2 |
Â
<package>
|
| 3 |
Â
<name>Speedy_Shipping</name>
|
| 4 |
-
<version>1.
|
| 5 |
Â
<stability>stable</stability>
|
| 6 |
Â
<license>Open Software License (OSL 3.0)</license>
|
| 7 |
Â
<channel>community</channel>
|
| 8 |
Â
<extends/>
|
| 9 |
-
<summary>Version 1.
|
| 10 |
-
<description>Version 1.
|
| 11 |
-
<notes>Version 1.
|
| 12 |
Â
<authors><author><name>Speedy JSC</name><user>evgeni</user><email>magento@speedy.bg</email></author></authors>
|
| 13 |
-
<date>
|
| 14 |
Â
<time>12:37:48</time>
|
| 15 |
Â
<contents><target name="magecommunity"><dir name="Speedy"><dir name="Speedyshipping"><dir name="Block"><dir name="Adminhtml"><file name="Billoflading.php" hash="55757a4477588daa54ec3b9699dab979"/><dir name="Requestcourier"><file name="Grid.php" hash="2284de6c2d2ef6029c8a84bd86f8bc53"/><dir name="Renderer"><file name="Cancelbutton.php" hash="062d962aed0a14896558dd59e03775c9"/><file name="Created.php" hash="3ab6eba87f8986ce55c823327ec60e79"/><file name="Datecreated.php" hash="36ca56ed37cb572c19bcb7e7e7dff081"/><file name="Requestbutton.php" hash="7d8daf6dfebec289f58d035bfc4d9c6d"/><file name="Viewbol.php" hash="728a9cd399df38532a8136adc618b28e"/><file name="Vieworder.php" hash="fb6c0ac4134d26a705f2c7bdc658f035"/></dir><file name="Requestcontainer.php" hash="5529d32f1698e12dc2cf078c68a53797"/></dir><dir name="Sales"><dir name="Order"><dir name="Create"><dir name="Billing"><file name="Address.php" hash="575ebbda49b25e95f37bca49cfba623d"/></dir><dir name="Shipping"><file name="Address.php" hash="14c1dc61fcfa00a7f685e2c025f31901"/><file name="Form.php" hash="90112a2a3ed59b021d8fcd347e7b5292"/></dir><dir name="Speedy"><file name="Form.php" hash="5d33815cc6bf12e2bb77bdb7aa7b8468"/></dir><file name="Totals.php" hash="da5b3fe05aca0194f12dcc239be47d45"/></dir></dir></dir><dir name="System"><dir name="Config"><dir name="Form"><file name="Testbutton.php" hash="09aaa0674763be7a3d18fa476decd110"/></dir></dir></dir></dir><dir name="Customer"><dir name="Address"><file name="Edit.php" hash="29852467e29ecd706303e0ffc85ed009"/></dir></dir><dir name="Onepage"><dir name="Billing"><file name="Billing.php" hash="d9e3d433518bfd225b4774389eaa6507"/></dir><file name="Paymentinfo.php" hash="ce4784716a4db7acb32dc96c1220581c"/><file name="Pickupform.php" hash="6185b390e0438a3c588d3bf8362c54cc"/><dir name="Shipping"><dir name="Method"><file name="Available.php" hash="72f3789bb35612be09bb50f6f9f1b443"/></dir><file name="Shipping.php" hash="8f27033a68264f2f2f45fa808cbe7751"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="f87f9903ff7b03630377b9a5e0def6a6"/><file name="Exceptionmap.php" hash="5efa0d9221546f4a3b29f98d260998a8"/><file name="Transliterate.php" hash="5411e61ae63ae6f7db5e0dd1baf4853b"/><dir name="Validate"><file name="Address.php" hash="ad1aea0ca237b264d066f82028e832b2"/></dir></dir><dir name="Model"><dir name="Autocomplete"><file name="Address.php" hash="54fddbb28365e4e3b6ed19f146f23b41"/></dir><dir name="Carrier"><dir name="Receiverdata"><file name="Receiverdata.php" hash="fc9e1cef902f8126705493ef62698975"/></dir><dir name="Senderdata"><file name="Senderdata.php" hash="a29434d47a760d0b26c05da5ce5a8053"/></dir><file name="Shippingmethod.php" hash="2e735b314333fa22f43c75f1cb562821"/><dir name="Source"><file name="Calculation.php" hash="8feb245ada9a659cc87f1450cba3ca69"/><file name="Deferreddays.php" hash="c0b4154d31d5080a5970eab4ba5f9315"/><file name="Method.php" hash="3a27c91b9c707dd9204baf7ffa814a12"/><file name="Office.php" hash="38d718531131f17dc452a72370d7e5f6"/><file name="Takingoffset.php" hash="a707c9ecb45d1ae6886770264d7c850d"/></dir></dir><file name="Observer.php" hash="d27fbda76fbd7a23760aa534c6528aae"/><dir name="Rate"><file name="Result.php" hash="9e57224fe86a696a8c51e47c1808226f"/></dir><dir name="Resource"><dir name="Saveorder"><file name="Collection.php" hash="45cbc13c07ab7ac7e495bdead549c655"/></dir><file name="Saveorder.php" hash="ebb22be5c4334a201bd6b09d72e96cbe"/><file name="Setup.php" hash="f4fd4f27ba10a9fc68e272a475ff2156"/></dir><dir name="Sales"><dir name="Quote"><dir name="Address"><file name="Rate.php" hash="82282b54b161255665c888ff9cd7fc6d"/></dir></dir></dir><file name="Saveorder.php" hash="4bbd01470d9ffa1d305fcf7210f88726"/></dir><dir name="controllers"><file name="AddressController.php" hash="42edea2936784d3f00d4780dc2a640ed"/><dir name="Adminhtml"><file name="AddressController.php" hash="adbc2db67d5bc7702d8c33361fdcbfd1"/><file name="CheckcredentialsController.php" hash="6ea877b98919d725a566282de47bce21"/><file name="PrintController.php" hash="75803c09a81a79dcc8b17a3340b35082"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="f270b82c36813ec5022237774dc3208e"/><file name="config.xml" hash="8455b566a35c870c524a96a9c02d9282"/><file name="jstranslator.xml" hash="3adf187b44e3ffc2c43e7508a8d62c9c"/><file name="system.xml" hash="1fc8e18791b7c78afb808fae8e02d846"/></dir><dir name="sql"><dir name="speedyshippingmodule_setup"><file name="mysql4-install-1.0.3.php" hash="4b1bc73ff91011b3c41a2b7adf107f3d"/><file name="mysql4-upgrade-1.0.7-1.0.8.php" hash="d12a72ecbd7d8e31a0e3c6c300d8f09c"/><file name="mysql4-upgrade-1.0.8-1.0.9.php" hash="31093fa1c0114c1ff7a9ae994a6a39bb"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="speedy_shipping.xml" hash="93bad292fed577e9c79c830aa47ebd61"/></dir><dir name="template"><dir name="speedy_speedyshipping"><file name="billoflading.phtml" hash="92ba243a2d9f7815db619778d78fc980"/><dir name="customer"><dir name="edit"><dir name="tab"><file name="addresses.phtml" hash="d30d71600b33872075dc0bc2b7bc3137"/></dir></dir></dir><file name="pickupform.phtml" hash="fc21509fc8f6ddccf055c2fb840f4c74"/><dir name="sales"><dir name="order"><dir name="create"><dir name="billing"><dir name="method"><file name="paymentInfo.phtml" hash="3dd1f746585216f952958c710924ae46"/></dir></dir><dir name="form"><file name="address.phtml" hash="042fb74a054bd096fbd7d2aedb80503c"/></dir><dir name="shipping"><dir name="method"><file name="form.phtml" hash="715d060632af0c3ad4287f46fd4e69c6"/></dir></dir><file name="totals.phtml" hash="cada285fd005956398d6d1d18d437892"/></dir></dir></dir><dir name="system"><dir name="config"><file name="testbutton.phtml" hash="561902225c1227b220cf2caa4d20fa33"/></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="speedy_shipping.xml" hash="3a428ae6bde62813449b9fdf805b6b1b"/></dir><dir name="template"><dir name="speedy_speedyshipping"><dir name="checkout"><dir name="onepage"><file name="billing.phtml" hash="81ede54e65af1ce6bb41ba3241018b57"/><dir name="payment_method"><file name="paymentInfo.phtml" hash="8bc351fab67fe3e89d6da86b9ce6812b"/></dir><file name="shipping.phtml" hash="1ceb91bb34a05a1cabaa7168457c8e1f"/><dir name="shipping_method"><file name="available.phtml" hash="2ed1524d3a3c2aa9edb04af1e9abe034"/><file name="pickupform.phtml" hash="12e0630599eca90fbf4352a20657577c"/><file name="shipping_method.phtml" hash="8683ed86bd37ca7de4ce2305f92b4aea"/></dir></dir></dir><dir name="customer"><dir name="address"><file name="edit.phtml" hash="7a1ca55b250f43addc6155c5df687917"/></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Speedyshipping.xml" hash="e81ed51ca30ffedd1adb59e7cb050c94"/></dir></target><target name="magelib"><dir name="SpeedyEPS"><dir name="util"><file name="Util.class.php" hash="e384756acbad8853c999e0435e833c19"/></dir><dir name="ver01"><file name="AddrNomen.class.php" hash="bba4d58eca6ffda35d1c07d93bfd84be"/><file name="ClientException.class.php" hash="67265022fa5937ae84f20d9f7a3e99cc"/><file name="ComplementaryServiceAllowance.class.php" hash="58e1d0e355943629ff80d53db973a9a9"/><file name="EPSFacade.class.php" hash="8f983ad98a7bf6681e877d8e9c86913a"/><file name="EPSInterface.class.php" hash="86b9399be96a3fb84022427500f44b89"/><file name="FixedDiscountCardId.class.php" hash="4a1467f2013014d509141f1f5f1b9566"/><file name="ParamAddress.class.php" hash="cb62ee0575f4e07473a31ec318dc17aa"/><file name="ParamAddressSearch.class.php" hash="88b70ef9c7709cd4b1aa568dd71532d4"/><file name="ParamBarcodeInfo.class.php" hash="fd17f2426934f53ec9617a96bdb096c0"/><file name="ParamCalculation.class.php" hash="356eab248f4594071ea8f6234e996f49"/><file name="ParamClientData.class.php" hash="069fef2d83e83b40370603d3c75a9d44"/><file name="ParamClientSearch.class.php" hash="51c779373bd3494254be8279139b9826"/><file name="ParamFilterSite.class.php" hash="87776edd43e27f494bec344c97207c40"/><file name="ParamLanguage.class.php" hash="fcfb607cbdb1c4edd0ff2e4b3818510d"/><file name="ParamOrder.class.php" hash="eb177c74d52d9e6a69ce1fd34535ea82"/><file name="ParamPDF.class.php" hash="28248201e71d34368bb2b76c58a16da9"/><file name="ParamParcel.class.php" hash="27fd8bd37e83ac815d07d77d440de398"/><file name="ParamParcelInfo.class.php" hash="c401926930556e8074e594cc0d00c8a9"/><file name="ParamPhoneNumber.class.php" hash="53e20f2f8354d2caaac519abcfd81187"/><file name="ParamPicking.class.php" hash="27963623f3ce27a4d0cc47532a146629"/><file name="ParamSearchByRefNum.class.php" hash="14544cd4c6f6718bc68e2f4f2c6fe5f5"/><file name="ResultAddress.class.php" hash="6d52168fad35f83777dea137c0ce9b2b"/><file name="ResultAddressEx.class.php" hash="fe9b6dc03c00a41040cbb4e402fdd9e6"/><file name="ResultAddressSearch.class.php" hash="c9b8a3aba12bed01b37245c4a2303907"/><file name="ResultAmounts.class.php" hash="756e363bf2d6a130d54e364319901c32"/><file name="ResultBOL.class.php" hash="e095318e59be096cb949309834a863ba"/><file name="ResultCalculation.class.php" hash="90710f9860d920d763b423c77ffdc88a"/><file name="ResultCalculationMS.class.php" hash="f991bc662dba556c7c7bc749d09ecb12"/><file name="ResultClientData.class.php" hash="3e1ea047f22ee3cfa02a128e9ce1d65e"/><file name="ResultCommonObject.class.php" hash="2e8a719333466499dbef0102c7858a23"/><file name="ResultCourierService.class.php" hash="aaf63c267a548cc82b1784f5d41c9924"/><file name="ResultCourierServiceExt.class.php" hash="2f26760369b55d00a827577d573f7e5f"/><file name="ResultLogin.class.php" hash="6d9507e82eb5af820665480f83d8bec9"/><file name="ResultMinMaxReal.class.php" hash="681aa4bbc9f580f7551a1820f9186fad"/><file name="ResultOffice.class.php" hash="4f911e40d8aaaf95761c63bb79d12e17"/><file name="ResultOfficeEx.class.php" hash="94af3cafc5105b4274a2c2fe866d0d18"/><file name="ResultOrderPickingInfo.class.php" hash="72dcf1587374afe319cebd49e8a30fa3"/><file name="ResultParcelInfo.class.php" hash="cfd36bbf6b4c93e80e713c85f127a027"/><file name="ResultPhoneNumber.class.php" hash="e8484071762d91059097dc9d98755090"/><file name="ResultQuarter.class.php" hash="9bc9d441128e5edc551c2c52ef473f57"/><file name="ResultSite.class.php" hash="05ed7eafcb8e13f74bb9f25d96f08af0"/><file name="ResultSiteEx.class.php" hash="ecdbf452151030e8d1d35300b7f4f76b"/><file name="ResultSpecialDeliveryRequirement.class.php" hash="23e952f1ef346ce34c1f3bf47e92c426"/><file name="ResultStreet.class.php" hash="7d625402e05cfcf205b31ba32650bcb4"/><file name="ResultTrackPicking.class.php" hash="b8ab206baacab06b2d2a447e57f881c4"/><file name="ResultTrackPickingEx.class.php" hash="96e9130d61f8e2346d8b03b9ad481fd7"/><file name="ServerException.class.php" hash="b11fc48eb537992e8c506807e7edd9d2"/><file name="Size.class.php" hash="ae535b7511bc31b61d1fd4b832da2536"/><file name="ValueAddress.class.php" hash="ed2e937685f7eab4745da049bf4b4364"/><dir name="soap"><file name="EPSSOAPInterfaceImpl.class.php" hash="eb825d3fc83763fbda78a3ea25f5357b"/></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="speedy"><dir name="css"><file name="hideEditAddress.css" hash="1b03b3bf871c23565428454442c88cad"/><dir name="images"><file name="animated-overlay.gif" hash="2b912f7c0653008ca28ebacda49025e7"/><file name="ui-bg_diagonals-thick_18_b81900_40x40.png" hash="adffefb9419589d6b897a81877e85e42"/><file name="ui-bg_diagonals-thick_20_666666_40x40.png" hash="5a6524e1e6c434435238b5c93e583b6f"/><file name="ui-bg_flat_10_000000_40x100.png" hash="3d978d04a04f319ce2412b1c11afa926"/><file name="ui-bg_glass_100_f6f6f6_1x400.png" hash="bb29642d42ead99b3f719a1c7c838026"/><file name="ui-bg_glass_100_fdf5ce_1x400.png" hash="dc52f3b6718f318deb7813c5115137c5"/><file name="ui-bg_glass_65_ffffff_1x400.png" hash="e25e9547ddaa4fad97741b252ba9f800"/><file name="ui-bg_gloss-wave_35_f6a828_500x100.png" hash="661db0dc3da9538d25ffd010dc514751"/><file name="ui-bg_highlight-soft_100_eeeeee_1x100.png" hash="d78652f40e0c1f0281988aacd8269833"/><file name="ui-bg_highlight-soft_75_ffe45c_1x100.png" hash="3d9bb8f4d52f22fd5d494e87518766c0"/><file name="ui-icons_222222_256x240.png" hash="a1b3887a86cf1791f23c0b53b4d3585f"/><file name="ui-icons_228ef1_256x240.png" hash="73044fed6bab2c5ed02eed93b7d3adaa"/><file name="ui-icons_ef8c08_256x240.png" hash="1eec256e4f7b8324e619aae36ecfbfbd"/><file name="ui-icons_ffd27a_256x240.png" hash="c1a79bd65be08aa2be391cba2321f448"/><file name="ui-icons_ffffff_256x240.png" hash="e3f4748b19b87aadaa924d85f0882432"/></dir><file name="jquery-ui-1.10.2.custom.min.css" hash="63a7972fe14211955df1b5631d2bfba1"/><file name="jquery.autocomplete.css" hash="e1efb0a6e3da2b6ac201dc98c585aec8"/></dir><dir name="images"><file name="indicator.gif" hash="03ce3dcc84af110e9da8699a841e5200"/></dir><dir name="js"><file name="jquery-1.9.1.min.js" hash="ba714fde311a118967b9d8cb017c81f6"/><file name="jquery-ui-1.10.2.custom.min.js" hash="34f617d6fa9771c9cec61e9f6b729cf4"/><file name="noconflict.js" hash="e2060c4e5e5955c824723b13a212d3ec"/><file name="office_pickup.js" hash="dfbb5d0f546be2d7c64fa3393ab4a898"/><file name="validateAddress.js" hash="ebe9feaa11ee5a976254c83defecbbb7"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="speedy"><dir name="css"><dir name="images"><file name="animated-overlay.gif" hash="2b912f7c0653008ca28ebacda49025e7"/><dir name="images"><file name="animated-overlay.gif" hash="2b912f7c0653008ca28ebacda49025e7"/><file name="ui-bg_diagonals-thick_18_b81900_40x40.png" hash="8bede029bbc5dfdc51c03c31c42c69b6"/><file name="ui-bg_diagonals-thick_20_666666_40x40.png" hash="0e22f1e0b51bab992d835373d8687aff"/><file name="ui-bg_flat_10_000000_40x100.png" hash="f1d874a7f2f98005ef41142e7c529afb"/><file name="ui-bg_glass_100_f6f6f6_1x400.png" hash="0239611116cbcf93c7cd902997df0c2b"/><file name="ui-bg_glass_100_fdf5ce_1x400.png" hash="e08a0b044bc2699a3dd6ac4d081736d4"/><file name="ui-bg_glass_65_ffffff_1x400.png" hash="d985d3e1f3980efaa8a9482da6282a6a"/><file name="ui-bg_gloss-wave_35_f6a828_500x100.png" hash="22d6e00af67ff329b00e70164acbfa6e"/><file name="ui-bg_highlight-soft_100_eeeeee_1x100.png" hash="148fa5a4d59240f3b1322e52c0b42646"/><file name="ui-bg_highlight-soft_75_ffe45c_1x100.png" hash="8a5e1b98c9b8a758fb45e982724cc1d0"/><file name="ui-icons_222222_256x240.png" hash="a1b3887a86cf1791f23c0b53b4d3585f"/><file name="ui-icons_228ef1_256x240.png" hash="73044fed6bab2c5ed02eed93b7d3adaa"/><file name="ui-icons_ef8c08_256x240.png" hash="1eec256e4f7b8324e619aae36ecfbfbd"/><file name="ui-icons_ffd27a_256x240.png" hash="c1a79bd65be08aa2be391cba2321f448"/><file name="ui-icons_ffffff_256x240.png" hash="e3f4748b19b87aadaa924d85f0882432"/></dir><file name="ui-bg_diagonals-thick_18_b81900_40x40.png" hash="adffefb9419589d6b897a81877e85e42"/><file name="ui-bg_diagonals-thick_20_666666_40x40.png" hash="5a6524e1e6c434435238b5c93e583b6f"/><file name="ui-bg_flat_10_000000_40x100.png" hash="3d978d04a04f319ce2412b1c11afa926"/><file name="ui-bg_glass_100_f6f6f6_1x400.png" hash="bb29642d42ead99b3f719a1c7c838026"/><file name="ui-bg_glass_100_fdf5ce_1x400.png" hash="dc52f3b6718f318deb7813c5115137c5"/><file name="ui-bg_glass_65_ffffff_1x400.png" hash="e25e9547ddaa4fad97741b252ba9f800"/><file name="ui-bg_gloss-wave_35_f6a828_500x100.png" hash="661db0dc3da9538d25ffd010dc514751"/><file name="ui-bg_highlight-soft_100_eeeeee_1x100.png" hash="d78652f40e0c1f0281988aacd8269833"/><file name="ui-bg_highlight-soft_75_ffe45c_1x100.png" hash="3d9bb8f4d52f22fd5d494e87518766c0"/><file name="ui-icons_222222_256x240.png" hash="a1b3887a86cf1791f23c0b53b4d3585f"/><file name="ui-icons_228ef1_256x240.png" hash="73044fed6bab2c5ed02eed93b7d3adaa"/><file name="ui-icons_ef8c08_256x240.png" hash="1eec256e4f7b8324e619aae36ecfbfbd"/><file name="ui-icons_ffd27a_256x240.png" hash="c1a79bd65be08aa2be391cba2321f448"/><file name="ui-icons_ffffff_256x240.png" hash="e3f4748b19b87aadaa924d85f0882432"/></dir><file name="jquery-ui-1.10.2.custom.min.css" hash="b14e6e4dfddacb48689578a9f9b69837"/><file name="jquery-ui-1.10.3.custom.min.css" hash="61770a422674ed451871ecdcf75ea67d"/><file name="jquery.autocomplete.css" hash="e1efb0a6e3da2b6ac201dc98c585aec8"/></dir><dir name="images"><file name="indicator.gif" hash="14c56c5a40e61aea738e46b66d4d8c90"/></dir><dir name="js"><file name="jquery-1.9.1.min.js" hash="663628f795cb62444143fde1ebdf2b5b"/><file name="jquery-ui-1.10.3.custom.min.js" hash="ca78f74e4ebf73b646c14f7803031e48"/><file name="noconflict.js" hash="b7acb127eceaaa67ac1597fafdd85000"/><file name="office_pickup.js" hash="fb0e225b5e03e192670c0c0a62b4aa54"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="bg_BG"><file name="speedyTranslate.csv" hash="7235761f3c8d4a3b3ebdde5c1b558a19"/></dir><dir name="en_US"><file name="speedyTranslate.csv" hash="f4b166bd54e477fe2a1f0e3e178b3b78"/></dir></target></contents>
|
| 16 |
Â
<compatible/>
|
| 17 |
-
<dependencies><required><php><min>5.
|
| 18 |
Â
</package>
|
| 1 |
Â
<?xml version="1.0"?>
|
| 2 |
Â
<package>
|
| 3 |
Â
<name>Speedy_Shipping</name>
|
| 4 |
+
<version>1.2.0</version>
|
| 5 |
Â
<stability>stable</stability>
|
| 6 |
Â
<license>Open Software License (OSL 3.0)</license>
|
| 7 |
Â
<channel>community</channel>
|
| 8 |
Â
<extends/>
|
| 9 |
+
<summary>Version 1.2.0</summary>
|
| 10 |
+
<description>Version 1.2.0</description>
|
| 11 |
+
<notes>Version 1.2.0</notes>
|
| 12 |
Â
<authors><author><name>Speedy JSC</name><user>evgeni</user><email>magento@speedy.bg</email></author></authors>
|
| 13 |
+
<date>2015-10-21</date>
|
| 14 |
Â
<time>12:37:48</time>
|
| 15 |
Â
<contents><target name="magecommunity"><dir name="Speedy"><dir name="Speedyshipping"><dir name="Block"><dir name="Adminhtml"><file name="Billoflading.php" hash="55757a4477588daa54ec3b9699dab979"/><dir name="Requestcourier"><file name="Grid.php" hash="2284de6c2d2ef6029c8a84bd86f8bc53"/><dir name="Renderer"><file name="Cancelbutton.php" hash="062d962aed0a14896558dd59e03775c9"/><file name="Created.php" hash="3ab6eba87f8986ce55c823327ec60e79"/><file name="Datecreated.php" hash="36ca56ed37cb572c19bcb7e7e7dff081"/><file name="Requestbutton.php" hash="7d8daf6dfebec289f58d035bfc4d9c6d"/><file name="Viewbol.php" hash="728a9cd399df38532a8136adc618b28e"/><file name="Vieworder.php" hash="fb6c0ac4134d26a705f2c7bdc658f035"/></dir><file name="Requestcontainer.php" hash="5529d32f1698e12dc2cf078c68a53797"/></dir><dir name="Sales"><dir name="Order"><dir name="Create"><dir name="Billing"><file name="Address.php" hash="575ebbda49b25e95f37bca49cfba623d"/></dir><dir name="Shipping"><file name="Address.php" hash="14c1dc61fcfa00a7f685e2c025f31901"/><file name="Form.php" hash="90112a2a3ed59b021d8fcd347e7b5292"/></dir><dir name="Speedy"><file name="Form.php" hash="5d33815cc6bf12e2bb77bdb7aa7b8468"/></dir><file name="Totals.php" hash="da5b3fe05aca0194f12dcc239be47d45"/></dir></dir></dir><dir name="System"><dir name="Config"><dir name="Form"><file name="Testbutton.php" hash="09aaa0674763be7a3d18fa476decd110"/></dir></dir></dir></dir><dir name="Customer"><dir name="Address"><file name="Edit.php" hash="29852467e29ecd706303e0ffc85ed009"/></dir></dir><dir name="Onepage"><dir name="Billing"><file name="Billing.php" hash="d9e3d433518bfd225b4774389eaa6507"/></dir><file name="Paymentinfo.php" hash="ce4784716a4db7acb32dc96c1220581c"/><file name="Pickupform.php" hash="6185b390e0438a3c588d3bf8362c54cc"/><dir name="Shipping"><dir name="Method"><file name="Available.php" hash="72f3789bb35612be09bb50f6f9f1b443"/></dir><file name="Shipping.php" hash="8f27033a68264f2f2f45fa808cbe7751"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="f87f9903ff7b03630377b9a5e0def6a6"/><file name="Exceptionmap.php" hash="5efa0d9221546f4a3b29f98d260998a8"/><file name="Transliterate.php" hash="5411e61ae63ae6f7db5e0dd1baf4853b"/><dir name="Validate"><file name="Address.php" hash="ad1aea0ca237b264d066f82028e832b2"/></dir></dir><dir name="Model"><dir name="Autocomplete"><file name="Address.php" hash="54fddbb28365e4e3b6ed19f146f23b41"/></dir><dir name="Carrier"><dir name="Receiverdata"><file name="Receiverdata.php" hash="fc9e1cef902f8126705493ef62698975"/></dir><dir name="Senderdata"><file name="Senderdata.php" hash="a29434d47a760d0b26c05da5ce5a8053"/></dir><file name="Shippingmethod.php" hash="2e735b314333fa22f43c75f1cb562821"/><dir name="Source"><file name="Calculation.php" hash="8feb245ada9a659cc87f1450cba3ca69"/><file name="Deferreddays.php" hash="c0b4154d31d5080a5970eab4ba5f9315"/><file name="Method.php" hash="3a27c91b9c707dd9204baf7ffa814a12"/><file name="Office.php" hash="38d718531131f17dc452a72370d7e5f6"/><file name="Takingoffset.php" hash="a707c9ecb45d1ae6886770264d7c850d"/></dir></dir><file name="Observer.php" hash="d27fbda76fbd7a23760aa534c6528aae"/><dir name="Rate"><file name="Result.php" hash="9e57224fe86a696a8c51e47c1808226f"/></dir><dir name="Resource"><dir name="Saveorder"><file name="Collection.php" hash="45cbc13c07ab7ac7e495bdead549c655"/></dir><file name="Saveorder.php" hash="ebb22be5c4334a201bd6b09d72e96cbe"/><file name="Setup.php" hash="f4fd4f27ba10a9fc68e272a475ff2156"/></dir><dir name="Sales"><dir name="Quote"><dir name="Address"><file name="Rate.php" hash="82282b54b161255665c888ff9cd7fc6d"/></dir></dir></dir><file name="Saveorder.php" hash="4bbd01470d9ffa1d305fcf7210f88726"/></dir><dir name="controllers"><file name="AddressController.php" hash="42edea2936784d3f00d4780dc2a640ed"/><dir name="Adminhtml"><file name="AddressController.php" hash="adbc2db67d5bc7702d8c33361fdcbfd1"/><file name="CheckcredentialsController.php" hash="6ea877b98919d725a566282de47bce21"/><file name="PrintController.php" hash="75803c09a81a79dcc8b17a3340b35082"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="f270b82c36813ec5022237774dc3208e"/><file name="config.xml" hash="8455b566a35c870c524a96a9c02d9282"/><file name="jstranslator.xml" hash="3adf187b44e3ffc2c43e7508a8d62c9c"/><file name="system.xml" hash="1fc8e18791b7c78afb808fae8e02d846"/></dir><dir name="sql"><dir name="speedyshippingmodule_setup"><file name="mysql4-install-1.0.3.php" hash="4b1bc73ff91011b3c41a2b7adf107f3d"/><file name="mysql4-upgrade-1.0.7-1.0.8.php" hash="d12a72ecbd7d8e31a0e3c6c300d8f09c"/><file name="mysql4-upgrade-1.0.8-1.0.9.php" hash="31093fa1c0114c1ff7a9ae994a6a39bb"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="speedy_shipping.xml" hash="93bad292fed577e9c79c830aa47ebd61"/></dir><dir name="template"><dir name="speedy_speedyshipping"><file name="billoflading.phtml" hash="92ba243a2d9f7815db619778d78fc980"/><dir name="customer"><dir name="edit"><dir name="tab"><file name="addresses.phtml" hash="d30d71600b33872075dc0bc2b7bc3137"/></dir></dir></dir><file name="pickupform.phtml" hash="fc21509fc8f6ddccf055c2fb840f4c74"/><dir name="sales"><dir name="order"><dir name="create"><dir name="billing"><dir name="method"><file name="paymentInfo.phtml" hash="3dd1f746585216f952958c710924ae46"/></dir></dir><dir name="form"><file name="address.phtml" hash="042fb74a054bd096fbd7d2aedb80503c"/></dir><dir name="shipping"><dir name="method"><file name="form.phtml" hash="715d060632af0c3ad4287f46fd4e69c6"/></dir></dir><file name="totals.phtml" hash="cada285fd005956398d6d1d18d437892"/></dir></dir></dir><dir name="system"><dir name="config"><file name="testbutton.phtml" hash="561902225c1227b220cf2caa4d20fa33"/></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="speedy_shipping.xml" hash="3a428ae6bde62813449b9fdf805b6b1b"/></dir><dir name="template"><dir name="speedy_speedyshipping"><dir name="checkout"><dir name="onepage"><file name="billing.phtml" hash="81ede54e65af1ce6bb41ba3241018b57"/><dir name="payment_method"><file name="paymentInfo.phtml" hash="8bc351fab67fe3e89d6da86b9ce6812b"/></dir><file name="shipping.phtml" hash="1ceb91bb34a05a1cabaa7168457c8e1f"/><dir name="shipping_method"><file name="available.phtml" hash="2ed1524d3a3c2aa9edb04af1e9abe034"/><file name="pickupform.phtml" hash="12e0630599eca90fbf4352a20657577c"/><file name="shipping_method.phtml" hash="8683ed86bd37ca7de4ce2305f92b4aea"/></dir></dir></dir><dir name="customer"><dir name="address"><file name="edit.phtml" hash="7a1ca55b250f43addc6155c5df687917"/></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Speedyshipping.xml" hash="e81ed51ca30ffedd1adb59e7cb050c94"/></dir></target><target name="magelib"><dir name="SpeedyEPS"><dir name="util"><file name="Util.class.php" hash="e384756acbad8853c999e0435e833c19"/></dir><dir name="ver01"><file name="AddrNomen.class.php" hash="bba4d58eca6ffda35d1c07d93bfd84be"/><file name="ClientException.class.php" hash="67265022fa5937ae84f20d9f7a3e99cc"/><file name="ComplementaryServiceAllowance.class.php" hash="58e1d0e355943629ff80d53db973a9a9"/><file name="EPSFacade.class.php" hash="8f983ad98a7bf6681e877d8e9c86913a"/><file name="EPSInterface.class.php" hash="86b9399be96a3fb84022427500f44b89"/><file name="FixedDiscountCardId.class.php" hash="4a1467f2013014d509141f1f5f1b9566"/><file name="ParamAddress.class.php" hash="cb62ee0575f4e07473a31ec318dc17aa"/><file name="ParamAddressSearch.class.php" hash="88b70ef9c7709cd4b1aa568dd71532d4"/><file name="ParamBarcodeInfo.class.php" hash="fd17f2426934f53ec9617a96bdb096c0"/><file name="ParamCalculation.class.php" hash="356eab248f4594071ea8f6234e996f49"/><file name="ParamClientData.class.php" hash="069fef2d83e83b40370603d3c75a9d44"/><file name="ParamClientSearch.class.php" hash="51c779373bd3494254be8279139b9826"/><file name="ParamFilterSite.class.php" hash="87776edd43e27f494bec344c97207c40"/><file name="ParamLanguage.class.php" hash="fcfb607cbdb1c4edd0ff2e4b3818510d"/><file name="ParamOrder.class.php" hash="eb177c74d52d9e6a69ce1fd34535ea82"/><file name="ParamPDF.class.php" hash="28248201e71d34368bb2b76c58a16da9"/><file name="ParamParcel.class.php" hash="27fd8bd37e83ac815d07d77d440de398"/><file name="ParamParcelInfo.class.php" hash="c401926930556e8074e594cc0d00c8a9"/><file name="ParamPhoneNumber.class.php" hash="53e20f2f8354d2caaac519abcfd81187"/><file name="ParamPicking.class.php" hash="27963623f3ce27a4d0cc47532a146629"/><file name="ParamSearchByRefNum.class.php" hash="14544cd4c6f6718bc68e2f4f2c6fe5f5"/><file name="ResultAddress.class.php" hash="6d52168fad35f83777dea137c0ce9b2b"/><file name="ResultAddressEx.class.php" hash="fe9b6dc03c00a41040cbb4e402fdd9e6"/><file name="ResultAddressSearch.class.php" hash="c9b8a3aba12bed01b37245c4a2303907"/><file name="ResultAmounts.class.php" hash="756e363bf2d6a130d54e364319901c32"/><file name="ResultBOL.class.php" hash="e095318e59be096cb949309834a863ba"/><file name="ResultCalculation.class.php" hash="90710f9860d920d763b423c77ffdc88a"/><file name="ResultCalculationMS.class.php" hash="f991bc662dba556c7c7bc749d09ecb12"/><file name="ResultClientData.class.php" hash="3e1ea047f22ee3cfa02a128e9ce1d65e"/><file name="ResultCommonObject.class.php" hash="2e8a719333466499dbef0102c7858a23"/><file name="ResultCourierService.class.php" hash="aaf63c267a548cc82b1784f5d41c9924"/><file name="ResultCourierServiceExt.class.php" hash="2f26760369b55d00a827577d573f7e5f"/><file name="ResultLogin.class.php" hash="6d9507e82eb5af820665480f83d8bec9"/><file name="ResultMinMaxReal.class.php" hash="681aa4bbc9f580f7551a1820f9186fad"/><file name="ResultOffice.class.php" hash="4f911e40d8aaaf95761c63bb79d12e17"/><file name="ResultOfficeEx.class.php" hash="94af3cafc5105b4274a2c2fe866d0d18"/><file name="ResultOrderPickingInfo.class.php" hash="72dcf1587374afe319cebd49e8a30fa3"/><file name="ResultParcelInfo.class.php" hash="cfd36bbf6b4c93e80e713c85f127a027"/><file name="ResultPhoneNumber.class.php" hash="e8484071762d91059097dc9d98755090"/><file name="ResultQuarter.class.php" hash="9bc9d441128e5edc551c2c52ef473f57"/><file name="ResultSite.class.php" hash="05ed7eafcb8e13f74bb9f25d96f08af0"/><file name="ResultSiteEx.class.php" hash="ecdbf452151030e8d1d35300b7f4f76b"/><file name="ResultSpecialDeliveryRequirement.class.php" hash="23e952f1ef346ce34c1f3bf47e92c426"/><file name="ResultStreet.class.php" hash="7d625402e05cfcf205b31ba32650bcb4"/><file name="ResultTrackPicking.class.php" hash="b8ab206baacab06b2d2a447e57f881c4"/><file name="ResultTrackPickingEx.class.php" hash="96e9130d61f8e2346d8b03b9ad481fd7"/><file name="ServerException.class.php" hash="b11fc48eb537992e8c506807e7edd9d2"/><file name="Size.class.php" hash="ae535b7511bc31b61d1fd4b832da2536"/><file name="ValueAddress.class.php" hash="ed2e937685f7eab4745da049bf4b4364"/><dir name="soap"><file name="EPSSOAPInterfaceImpl.class.php" hash="eb825d3fc83763fbda78a3ea25f5357b"/></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="speedy"><dir name="css"><file name="hideEditAddress.css" hash="1b03b3bf871c23565428454442c88cad"/><dir name="images"><file name="animated-overlay.gif" hash="2b912f7c0653008ca28ebacda49025e7"/><file name="ui-bg_diagonals-thick_18_b81900_40x40.png" hash="adffefb9419589d6b897a81877e85e42"/><file name="ui-bg_diagonals-thick_20_666666_40x40.png" hash="5a6524e1e6c434435238b5c93e583b6f"/><file name="ui-bg_flat_10_000000_40x100.png" hash="3d978d04a04f319ce2412b1c11afa926"/><file name="ui-bg_glass_100_f6f6f6_1x400.png" hash="bb29642d42ead99b3f719a1c7c838026"/><file name="ui-bg_glass_100_fdf5ce_1x400.png" hash="dc52f3b6718f318deb7813c5115137c5"/><file name="ui-bg_glass_65_ffffff_1x400.png" hash="e25e9547ddaa4fad97741b252ba9f800"/><file name="ui-bg_gloss-wave_35_f6a828_500x100.png" hash="661db0dc3da9538d25ffd010dc514751"/><file name="ui-bg_highlight-soft_100_eeeeee_1x100.png" hash="d78652f40e0c1f0281988aacd8269833"/><file name="ui-bg_highlight-soft_75_ffe45c_1x100.png" hash="3d9bb8f4d52f22fd5d494e87518766c0"/><file name="ui-icons_222222_256x240.png" hash="a1b3887a86cf1791f23c0b53b4d3585f"/><file name="ui-icons_228ef1_256x240.png" hash="73044fed6bab2c5ed02eed93b7d3adaa"/><file name="ui-icons_ef8c08_256x240.png" hash="1eec256e4f7b8324e619aae36ecfbfbd"/><file name="ui-icons_ffd27a_256x240.png" hash="c1a79bd65be08aa2be391cba2321f448"/><file name="ui-icons_ffffff_256x240.png" hash="e3f4748b19b87aadaa924d85f0882432"/></dir><file name="jquery-ui-1.10.2.custom.min.css" hash="63a7972fe14211955df1b5631d2bfba1"/><file name="jquery.autocomplete.css" hash="e1efb0a6e3da2b6ac201dc98c585aec8"/></dir><dir name="images"><file name="indicator.gif" hash="03ce3dcc84af110e9da8699a841e5200"/></dir><dir name="js"><file name="jquery-1.9.1.min.js" hash="ba714fde311a118967b9d8cb017c81f6"/><file name="jquery-ui-1.10.2.custom.min.js" hash="34f617d6fa9771c9cec61e9f6b729cf4"/><file name="noconflict.js" hash="e2060c4e5e5955c824723b13a212d3ec"/><file name="office_pickup.js" hash="dfbb5d0f546be2d7c64fa3393ab4a898"/><file name="validateAddress.js" hash="ebe9feaa11ee5a976254c83defecbbb7"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="speedy"><dir name="css"><dir name="images"><file name="animated-overlay.gif" hash="2b912f7c0653008ca28ebacda49025e7"/><dir name="images"><file name="animated-overlay.gif" hash="2b912f7c0653008ca28ebacda49025e7"/><file name="ui-bg_diagonals-thick_18_b81900_40x40.png" hash="8bede029bbc5dfdc51c03c31c42c69b6"/><file name="ui-bg_diagonals-thick_20_666666_40x40.png" hash="0e22f1e0b51bab992d835373d8687aff"/><file name="ui-bg_flat_10_000000_40x100.png" hash="f1d874a7f2f98005ef41142e7c529afb"/><file name="ui-bg_glass_100_f6f6f6_1x400.png" hash="0239611116cbcf93c7cd902997df0c2b"/><file name="ui-bg_glass_100_fdf5ce_1x400.png" hash="e08a0b044bc2699a3dd6ac4d081736d4"/><file name="ui-bg_glass_65_ffffff_1x400.png" hash="d985d3e1f3980efaa8a9482da6282a6a"/><file name="ui-bg_gloss-wave_35_f6a828_500x100.png" hash="22d6e00af67ff329b00e70164acbfa6e"/><file name="ui-bg_highlight-soft_100_eeeeee_1x100.png" hash="148fa5a4d59240f3b1322e52c0b42646"/><file name="ui-bg_highlight-soft_75_ffe45c_1x100.png" hash="8a5e1b98c9b8a758fb45e982724cc1d0"/><file name="ui-icons_222222_256x240.png" hash="a1b3887a86cf1791f23c0b53b4d3585f"/><file name="ui-icons_228ef1_256x240.png" hash="73044fed6bab2c5ed02eed93b7d3adaa"/><file name="ui-icons_ef8c08_256x240.png" hash="1eec256e4f7b8324e619aae36ecfbfbd"/><file name="ui-icons_ffd27a_256x240.png" hash="c1a79bd65be08aa2be391cba2321f448"/><file name="ui-icons_ffffff_256x240.png" hash="e3f4748b19b87aadaa924d85f0882432"/></dir><file name="ui-bg_diagonals-thick_18_b81900_40x40.png" hash="adffefb9419589d6b897a81877e85e42"/><file name="ui-bg_diagonals-thick_20_666666_40x40.png" hash="5a6524e1e6c434435238b5c93e583b6f"/><file name="ui-bg_flat_10_000000_40x100.png" hash="3d978d04a04f319ce2412b1c11afa926"/><file name="ui-bg_glass_100_f6f6f6_1x400.png" hash="bb29642d42ead99b3f719a1c7c838026"/><file name="ui-bg_glass_100_fdf5ce_1x400.png" hash="dc52f3b6718f318deb7813c5115137c5"/><file name="ui-bg_glass_65_ffffff_1x400.png" hash="e25e9547ddaa4fad97741b252ba9f800"/><file name="ui-bg_gloss-wave_35_f6a828_500x100.png" hash="661db0dc3da9538d25ffd010dc514751"/><file name="ui-bg_highlight-soft_100_eeeeee_1x100.png" hash="d78652f40e0c1f0281988aacd8269833"/><file name="ui-bg_highlight-soft_75_ffe45c_1x100.png" hash="3d9bb8f4d52f22fd5d494e87518766c0"/><file name="ui-icons_222222_256x240.png" hash="a1b3887a86cf1791f23c0b53b4d3585f"/><file name="ui-icons_228ef1_256x240.png" hash="73044fed6bab2c5ed02eed93b7d3adaa"/><file name="ui-icons_ef8c08_256x240.png" hash="1eec256e4f7b8324e619aae36ecfbfbd"/><file name="ui-icons_ffd27a_256x240.png" hash="c1a79bd65be08aa2be391cba2321f448"/><file name="ui-icons_ffffff_256x240.png" hash="e3f4748b19b87aadaa924d85f0882432"/></dir><file name="jquery-ui-1.10.2.custom.min.css" hash="b14e6e4dfddacb48689578a9f9b69837"/><file name="jquery-ui-1.10.3.custom.min.css" hash="61770a422674ed451871ecdcf75ea67d"/><file name="jquery.autocomplete.css" hash="e1efb0a6e3da2b6ac201dc98c585aec8"/></dir><dir name="images"><file name="indicator.gif" hash="14c56c5a40e61aea738e46b66d4d8c90"/></dir><dir name="js"><file name="jquery-1.9.1.min.js" hash="663628f795cb62444143fde1ebdf2b5b"/><file name="jquery-ui-1.10.3.custom.min.js" hash="ca78f74e4ebf73b646c14f7803031e48"/><file name="noconflict.js" hash="b7acb127eceaaa67ac1597fafdd85000"/><file name="office_pickup.js" hash="fb0e225b5e03e192670c0c0a62b4aa54"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="bg_BG"><file name="speedyTranslate.csv" hash="7235761f3c8d4a3b3ebdde5c1b558a19"/></dir><dir name="en_US"><file name="speedyTranslate.csv" hash="f4b166bd54e477fe2a1f0e3e178b3b78"/></dir></target></contents>
|
| 16 |
Â
<compatible/>
|
| 17 |
+
<dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php><package><name>Mage_Core_Modules</name><channel>community</channel><min>1.7.0.2</min><max>1.9.2.1</max></package><extension><name>soap</name><min/><max/></extension><extension><name>curl</name><min/><max/></extension><extension><name>openssl</name><min/><max/></extension></required></dependencies>
|
| 18 |
Â
</package>
|
skin/adminhtml/default/default/speedy/css/hideEditAddress.css
CHANGED
|
File without changes
|
skin/adminhtml/default/default/speedy/css/images/animated-overlay.gif
CHANGED
|
File without changes
|
skin/adminhtml/default/default/speedy/css/images/ui-bg_diagonals-thick_18_b81900_40x40.png
CHANGED
|
File without changes
|
skin/adminhtml/default/default/speedy/css/images/ui-bg_diagonals-thick_20_666666_40x40.png
CHANGED
|
File without changes
|
skin/adminhtml/default/default/speedy/css/images/ui-bg_flat_10_000000_40x100.png
CHANGED
|
File without changes
|
skin/adminhtml/default/default/speedy/css/images/ui-bg_glass_100_f6f6f6_1x400.png
CHANGED
|
File without changes
|
skin/adminhtml/default/default/speedy/css/images/ui-bg_glass_100_fdf5ce_1x400.png
CHANGED
|
File without changes
|
skin/adminhtml/default/default/speedy/css/images/ui-bg_glass_65_ffffff_1x400.png
CHANGED
|
File without changes
|
skin/adminhtml/default/default/speedy/css/images/ui-bg_gloss-wave_35_f6a828_500x100.png
CHANGED
|
File without changes
|
skin/adminhtml/default/default/speedy/css/images/ui-bg_highlight-soft_100_eeeeee_1x100.png
CHANGED
|
File without changes
|
skin/adminhtml/default/default/speedy/css/images/ui-bg_highlight-soft_75_ffe45c_1x100.png
CHANGED
|
File without changes
|
skin/adminhtml/default/default/speedy/css/images/ui-icons_222222_256x240.png
CHANGED
|
File without changes
|
skin/adminhtml/default/default/speedy/css/images/ui-icons_228ef1_256x240.png
CHANGED
|
File without changes
|
skin/adminhtml/default/default/speedy/css/images/ui-icons_ef8c08_256x240.png
CHANGED
|
File without changes
|
skin/adminhtml/default/default/speedy/css/images/ui-icons_ffd27a_256x240.png
CHANGED
|
File without changes
|
skin/adminhtml/default/default/speedy/css/images/ui-icons_ffffff_256x240.png
CHANGED
|
File without changes
|
skin/adminhtml/default/default/speedy/css/jquery-ui-1.10.2.custom.min.css
CHANGED
|
File without changes
|
skin/adminhtml/default/default/speedy/css/jquery.autocomplete.css
CHANGED
|
File without changes
|
skin/adminhtml/default/default/speedy/images/indicator.gif
CHANGED
|
File without changes
|
skin/adminhtml/default/default/speedy/js/jquery-1.9.1.min.js
CHANGED
|
File without changes
|
skin/adminhtml/default/default/speedy/js/jquery-ui-1.10.2.custom.min.js
CHANGED
|
File without changes
|
skin/adminhtml/default/default/speedy/js/noconflict.js
CHANGED
|
File without changes
|
skin/adminhtml/default/default/speedy/js/office_pickup.js
CHANGED
|
File without changes
|
skin/adminhtml/default/default/speedy/js/validateAddress.js
CHANGED
|
File without changes
|
skin/frontend/base/default/speedy/css/images/animated-overlay.gif
CHANGED
|
File without changes
|
skin/frontend/base/default/speedy/css/images/images/animated-overlay.gif
CHANGED
|
File without changes
|
skin/frontend/base/default/speedy/css/images/images/ui-bg_diagonals-thick_18_b81900_40x40.png
CHANGED
|
File without changes
|
skin/frontend/base/default/speedy/css/images/images/ui-bg_diagonals-thick_20_666666_40x40.png
CHANGED
|
File without changes
|
skin/frontend/base/default/speedy/css/images/images/ui-bg_flat_10_000000_40x100.png
CHANGED
|
File without changes
|
skin/frontend/base/default/speedy/css/images/images/ui-bg_glass_100_f6f6f6_1x400.png
CHANGED
|
File without changes
|
skin/frontend/base/default/speedy/css/images/images/ui-bg_glass_100_fdf5ce_1x400.png
CHANGED
|
File without changes
|
skin/frontend/base/default/speedy/css/images/images/ui-bg_glass_65_ffffff_1x400.png
CHANGED
|
File without changes
|
skin/frontend/base/default/speedy/css/images/images/ui-bg_gloss-wave_35_f6a828_500x100.png
CHANGED
|
File without changes
|
skin/frontend/base/default/speedy/css/images/images/ui-bg_highlight-soft_100_eeeeee_1x100.png
CHANGED
|
File without changes
|
skin/frontend/base/default/speedy/css/images/images/ui-bg_highlight-soft_75_ffe45c_1x100.png
CHANGED
|
File without changes
|
skin/frontend/base/default/speedy/css/images/images/ui-icons_222222_256x240.png
CHANGED
|
File without changes
|
skin/frontend/base/default/speedy/css/images/images/ui-icons_228ef1_256x240.png
CHANGED
|
File without changes
|
skin/frontend/base/default/speedy/css/images/images/ui-icons_ef8c08_256x240.png
CHANGED
|
File without changes
|
skin/frontend/base/default/speedy/css/images/images/ui-icons_ffd27a_256x240.png
CHANGED
|
File without changes
|
skin/frontend/base/default/speedy/css/images/images/ui-icons_ffffff_256x240.png
CHANGED
|
File without changes
|
skin/frontend/base/default/speedy/css/images/ui-bg_diagonals-thick_18_b81900_40x40.png
CHANGED
|
File without changes
|
skin/frontend/base/default/speedy/css/images/ui-bg_diagonals-thick_20_666666_40x40.png
CHANGED
|
File without changes
|
skin/frontend/base/default/speedy/css/images/ui-bg_flat_10_000000_40x100.png
CHANGED
|
File without changes
|
skin/frontend/base/default/speedy/css/images/ui-bg_glass_100_f6f6f6_1x400.png
CHANGED
|
File without changes
|
skin/frontend/base/default/speedy/css/images/ui-bg_glass_100_fdf5ce_1x400.png
CHANGED
|
File without changes
|
skin/frontend/base/default/speedy/css/images/ui-bg_glass_65_ffffff_1x400.png
CHANGED
|
File without changes
|
skin/frontend/base/default/speedy/css/images/ui-bg_gloss-wave_35_f6a828_500x100.png
CHANGED
|
File without changes
|
skin/frontend/base/default/speedy/css/images/ui-bg_highlight-soft_100_eeeeee_1x100.png
CHANGED
|
File without changes
|
skin/frontend/base/default/speedy/css/images/ui-bg_highlight-soft_75_ffe45c_1x100.png
CHANGED
|
File without changes
|
skin/frontend/base/default/speedy/css/images/ui-icons_222222_256x240.png
CHANGED
|
File without changes
|
skin/frontend/base/default/speedy/css/images/ui-icons_228ef1_256x240.png
CHANGED
|
File without changes
|
skin/frontend/base/default/speedy/css/images/ui-icons_ef8c08_256x240.png
CHANGED
|
File without changes
|
skin/frontend/base/default/speedy/css/images/ui-icons_ffd27a_256x240.png
CHANGED
|
File without changes
|
skin/frontend/base/default/speedy/css/images/ui-icons_ffffff_256x240.png
CHANGED
|
File without changes
|
skin/frontend/base/default/speedy/css/jquery-ui-1.10.2.custom.min.css
CHANGED
|
File without changes
|
skin/frontend/base/default/speedy/css/jquery-ui-1.10.3.custom.min.css
CHANGED
|
File without changes
|
skin/frontend/base/default/speedy/css/jquery.autocomplete.css
CHANGED
|
File without changes
|
skin/frontend/base/default/speedy/images/indicator.gif
CHANGED
|
File without changes
|
skin/frontend/base/default/speedy/js/jquery-1.9.1.min.js
CHANGED
|
File without changes
|
skin/frontend/base/default/speedy/js/jquery-ui-1.10.3.custom.min.js
CHANGED
|
File without changes
|
skin/frontend/base/default/speedy/js/noconflict.js
CHANGED
|
File without changes
|
skin/frontend/base/default/speedy/js/office_pickup.js
CHANGED
|
File without changes
|
