Skip to content

Commit

Permalink
fix: implement feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
wthijmen committed Nov 25, 2022
1 parent 17414a3 commit ab89b7b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
20 changes: 10 additions & 10 deletions src/Adapter/DeliveryOptions/AbstractShipmentOptionsAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,16 +235,16 @@ public function setExtraAssurance(?bool $extraAssurance): void
public function toArray(): array
{
return [
'signature' => $this->hasSignature(),
'insurance' => $this->getInsurance(),
'age_check' => $this->hasAgeCheck(),
'only_recipient' => $this->hasOnlyRecipient(),
'return' => $this->isReturn(),
'same_day_delivery' => $this->isSameDayDelivery(),
'large_format' => $this->hasLargeFormat(),
'label_description' => $this->getLabelDescription(),
'hide_sender' => $this->hasHideSender(),
'extra_assurance' => $this->hasExtraAssurance(),
'signature' => $this->hasSignature(),
'insurance' => $this->getInsurance(),
'age_check' => $this->hasAgeCheck(),
'only_recipient' => $this->hasOnlyRecipient(),
'return' => $this->isReturn(),
'same_day_delivery' => $this->isSameDayDelivery(),
'large_format' => $this->hasLargeFormat(),
'label_description' => $this->getLabelDescription(),
'hide_sender' => $this->hasHideSender(),
'extra_assurance' => $this->hasExtraAssurance(),
];
}
}
18 changes: 9 additions & 9 deletions src/Model/Consignment/AbstractConsignment.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ abstract class AbstractConsignment
*/
use HasApiKey;

public const SHIPMENT_OPTION_AGE_CHECK = 'age_check';
public const SHIPMENT_OPTION_HIDE_SENDER = 'hide_sender';
public const SHIPMENT_OPTION_INSURANCE = 'insurance';
public const SHIPMENT_OPTION_LARGE_FORMAT = 'large_format';
public const SHIPMENT_OPTION_ONLY_RECIPIENT = 'only_recipient';
public const SHIPMENT_OPTION_RETURN = 'return';
public const SHIPMENT_OPTION_SAME_DAY_DELIVERY = 'same_day_delivery';
public const SHIPMENT_OPTION_SIGNATURE = 'signature';
public const SHIPMENT_OPTION_EXTRA_ASSURANCE = 'extra_assurance';
public const SHIPMENT_OPTION_AGE_CHECK = 'age_check';
public const SHIPMENT_OPTION_HIDE_SENDER = 'hide_sender';
public const SHIPMENT_OPTION_INSURANCE = 'insurance';
public const SHIPMENT_OPTION_LARGE_FORMAT = 'large_format';
public const SHIPMENT_OPTION_ONLY_RECIPIENT = 'only_recipient';
public const SHIPMENT_OPTION_RETURN = 'return';
public const SHIPMENT_OPTION_SAME_DAY_DELIVERY = 'same_day_delivery';
public const SHIPMENT_OPTION_SIGNATURE = 'signature';
public const SHIPMENT_OPTION_EXTRA_ASSURANCE = 'extra_assurance';

public const EXTRA_OPTION_DELIVERY_DATE = 'delivery_date';
public const EXTRA_OPTION_DELIVERY_MONDAY = 'delivery_monday';
Expand Down

0 comments on commit ab89b7b

Please sign in to comment.