Skip to content

Commit

Permalink
Order::$vatMode used the wrong type.
Browse files Browse the repository at this point in the history
  • Loading branch information
devtronic authored and Julian Finkler committed Jan 7, 2019
1 parent 2d3de73 commit 23fdadc
Show file tree
Hide file tree
Showing 73 changed files with 87 additions and 73 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## v1.4.1 (7 Jan 2019)

Bug Fixes:
- `Order::$vatMode` used the wrong type.

General:
- Copyright updated

## v1.4.0 (12 Dec 2018)

New features:
Expand Down
2 changes: 1 addition & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!--
~ This file is part of the Billbee API package.
~
~ Copyright 2017 - 2018 by Billbee GmbH
~ Copyright 2017 - 2019 by Billbee GmbH
~
~ For the full copyright and license information, please read the LICENSE
~ file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/AbstractClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* This file is part of the Billbee API package.
*
* Copyright 2017 - 2018 by Billbee GmbH
* Copyright 2017 - 2019 by Billbee GmbH
*
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* This file is part of the Billbee API package.
*
* Copyright 2017 - 2018 by Billbee GmbH
* Copyright 2017 - 2019 by Billbee GmbH
*
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/InvalidIdException.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* This file is part of the Billbee API package.
*
* Copyright 2017 - 2018 by Billbee GmbH
* Copyright 2017 - 2019 by Billbee GmbH
*
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/QuotaExceededException.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* This file is part of the Billbee API package.
*
* Copyright 2017 - 2018 by Billbee GmbH
* Copyright 2017 - 2019 by Billbee GmbH
*
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* This file is part of the Billbee API package.
*
* Copyright 2017 - 2018 by Billbee GmbH
* Copyright 2017 - 2019 by Billbee GmbH
*
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* This file is part of the Billbee API package.
*
* Copyright 2017 - 2018 by Billbee GmbH
* Copyright 2017 - 2019 by Billbee GmbH
*
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* This file is part of the Billbee API package.
*
* Copyright 2017 - 2018 by Billbee GmbH
* Copyright 2017 - 2019 by Billbee GmbH
*
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/Model/CustomFieldDefinition.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* This file is part of the Billbee API package.
*
* Copyright 2017 - 2018 by Billbee GmbH
* Copyright 2017 - 2019 by Billbee GmbH
*
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* This file is part of the Billbee API package.
*
* Copyright 2017 - 2018 by Billbee GmbH
* Copyright 2017 - 2019 by Billbee GmbH
*
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/Model/CustomerAddress.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* This file is part of the Billbee API package.
*
* Copyright 2017 - 2018 by Billbee GmbH
* Copyright 2017 - 2019 by Billbee GmbH
*
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/Model/DeliveryNoteDocument.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* This file is part of the Billbee API package.
*
* Copyright 2017 - 2018 by Billbee GmbH
* Copyright 2017 - 2019 by Billbee GmbH
*
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* This file is part of the Billbee API package.
*
* Copyright 2017 - 2018 by Billbee GmbH
* Copyright 2017 - 2019 by Billbee GmbH
*
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* This file is part of the Billbee API package.
*
* Copyright 2017 - 2018 by Billbee GmbH
* Copyright 2017 - 2019 by Billbee GmbH
*
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* This file is part of the Billbee API package.
*
* Copyright 2017 - 2018 by Billbee GmbH
* Copyright 2017 - 2019 by Billbee GmbH
*
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/Model/InvoiceDocument.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* This file is part of the Billbee API package.
*
* Copyright 2017 - 2018 by Billbee GmbH
* Copyright 2017 - 2019 by Billbee GmbH
*
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/Model/InvoicePosition.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* This file is part of the Billbee API package.
*
* Copyright 2017 - 2018 by Billbee GmbH
* Copyright 2017 - 2019 by Billbee GmbH
*
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/Model/MessageForCustomer.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* This file is part of the Billbee API package.
*
* Copyright 2017 - 2018 by Billbee GmbH
* Copyright 2017 - 2019 by Billbee GmbH
*
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
Expand Down
10 changes: 8 additions & 2 deletions src/Model/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* This file is part of the Billbee API package.
*
* Copyright 2017 - 2018 by Billbee GmbH
* Copyright 2017 - 2019 by Billbee GmbH
*
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
Expand All @@ -18,6 +18,12 @@

class Order
{
const VAT_MODE_DEFAULT = 0;
const VAT_MODE_SMALL_BUSINESS = 1;
const VAT_MODE_INTRA_COMMUNITY_DELIVERY = 2;
const VAT_MODE_EXPORT_3RD_COUNTRY = 3;
const VAT_MODE_DIFFERENTIAL_TAXATION = 4;

/**
* @var int
* @DataField(name="BillBeeOrderId", type="int")
Expand Down Expand Up @@ -64,7 +70,7 @@ class Order
* @var int
* @DataField(name="VatMode", type="int")
*/
public $vatMode = Product::VAT_INDEX_NORMAL;
public $vatMode = self::VAT_MODE_DEFAULT;

/**
* @var \DateTime
Expand Down
2 changes: 1 addition & 1 deletion src/Model/OrderItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* This file is part of the Billbee API package.
*
* Copyright 2017 - 2018 by Billbee GmbH
* Copyright 2017 - 2019 by Billbee GmbH
*
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/Model/OrderItemAttribute.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* This file is part of the Billbee API package.
*
* Copyright 2017 - 2018 by Billbee GmbH
* Copyright 2017 - 2019 by Billbee GmbH
*
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/Model/PartnerOrder.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* This file is part of the Billbee API package.
*
* Copyright 2017 - 2018 by Billbee GmbH
* Copyright 2017 - 2019 by Billbee GmbH
*
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* This file is part of the Billbee API package.
*
* Copyright 2017 - 2018 by Billbee GmbH
* Copyright 2017 - 2019 by Billbee GmbH
*
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/Model/ProductCustomField.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* This file is part of the Billbee API package.
*
* Copyright 2017 - 2018 by Billbee GmbH
* Copyright 2017 - 2019 by Billbee GmbH
*
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Seller.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* This file is part of the Billbee API package.
*
* Copyright 2017 - 2018 by Billbee GmbH
* Copyright 2017 - 2019 by Billbee GmbH
*
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Shipment.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* This file is part of the Billbee API package.
*
* Copyright 2017 - 2018 by Billbee GmbH
* Copyright 2017 - 2019 by Billbee GmbH
*
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/Model/ShippingProduct.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* This file is part of the Billbee API package.
*
* Copyright 2017 - 2018 by Billbee GmbH
* Copyright 2017 - 2019 by Billbee GmbH
*
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/Model/ShippingProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* This file is part of the Billbee API package.
*
* Copyright 2017 - 2018 by Billbee GmbH
* Copyright 2017 - 2019 by Billbee GmbH
*
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Source.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* This file is part of the Billbee API package.
*
* Copyright 2017 - 2018 by Billbee GmbH
* Copyright 2017 - 2019 by Billbee GmbH
*
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Stock.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* This file is part of the Billbee API package.
*
* Copyright 2017 - 2018 by Billbee GmbH
* Copyright 2017 - 2019 by Billbee GmbH
*
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/Model/StockCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* This file is part of the Billbee API package.
*
* Copyright 2017 - 2018 by Billbee GmbH
* Copyright 2017 - 2019 by Billbee GmbH
*
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/Model/TermsInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* This file is part of the Billbee API package.
*
* Copyright 2017 - 2018 by Billbee GmbH
* Copyright 2017 - 2019 by Billbee GmbH
*
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/Model/TranslatableText.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* This file is part of the Billbee API package.
*
* Copyright 2017 - 2018 by Billbee GmbH
* Copyright 2017 - 2019 by Billbee GmbH
*
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/Model/WebHook.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* This file is part of the Billbee API package.
*
* Copyright 2017 - 2018 by Billbee GmbH
* Copyright 2017 - 2019 by Billbee GmbH
*
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/Model/WebHookFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* This file is part of the Billbee API package.
*
* Copyright 2017 - 2018 by Billbee GmbH
* Copyright 2017 - 2019 by Billbee GmbH
*
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/Response/BaseResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* This file is part of the Billbee API package.
*
* Copyright 2017 - 2018 by Billbee GmbH
* Copyright 2017 - 2019 by Billbee GmbH
*
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/Response/CreateDeliveryNoteResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* This file is part of the Billbee API package.
*
* Copyright 2017 - 2018 by Billbee GmbH
* Copyright 2017 - 2019 by Billbee GmbH
*
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/Response/CreateInvoiceResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* This file is part of the Billbee API package.
*
* Copyright 2017 - 2018 by Billbee GmbH
* Copyright 2017 - 2019 by Billbee GmbH
*
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/Response/GetCustomFieldDefinitionResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* This file is part of the Billbee API package.
*
* Copyright 2017 - 2018 by Billbee GmbH
* Copyright 2017 - 2019 by Billbee GmbH
*
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/Response/GetCustomFieldDefinitionsResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* This file is part of the Billbee API package.
*
* Copyright 2017 - 2018 by Billbee GmbH
* Copyright 2017 - 2019 by Billbee GmbH
*
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
Expand Down
Loading

0 comments on commit 23fdadc

Please sign in to comment.