Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ShipmentType in Shipment model is missing #57

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

knaepel
Copy link

@knaepel knaepel commented Feb 22, 2022

In this pull request, I added the ShipmentType field to the Shipment Model.

@knaepel
Copy link
Author

knaepel commented Feb 22, 2022

#56

@knaepel knaepel changed the title ShipmentType in Shipment model is missing #56 ShipmentType in Shipment model is missing Feb 22, 2022
* @var int
* @DataField(name="ShipmentType", type="int")
*/
public $shipmentType = 0;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of using magic numbers it's better to use constants. Please create a src/Type/ShipmentType.php and add the constants SHIPMENT=0 and RETOURE=1. Use ShipmentType::SHIPMENT in this class.
(Similar to the definition of ProductCondition and its usage:

public $condition = ProductCondition::BRAND_NEW;
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants