Skip to content

Commit

Permalink
[#29] Added “FAILED_TO_CREATE_SHIPPING_LABEL” HandlingResult
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeroen van Leusden committed Sep 21, 2020
1 parent a0ee81f commit b8e84a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/Model/Rma/HandlingResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ final class HandlingResult
'EXCESSIVE_RETURN' => 'EXCESSIVE_RETURN',
'STILL_RECEIVED' => 'STILL_RECEIVED',
'CANCELLED_BY_CUSTOMER' => 'CANCELLED_BY_CUSTOMER',
'FAILED_TO_COLLECT_BY_TRANSPORTER' => 'FAILED_TO_COLLECT_BY_TRANSPORTER',
'FAILED_TO_CREATE_SHIPPING_LABEL' => 'FAILED_TO_CREATE_SHIPPING_LABEL',
];

const RETURN_RECEIVED = 'RETURN_RECEIVED';
Expand All @@ -38,7 +38,7 @@ final class HandlingResult
const EXCESSIVE_RETURN = 'EXCESSIVE_RETURN';
const STILL_RECEIVED = 'STILL_RECEIVED';
const CANCELLED_BY_CUSTOMER = 'CANCELLED_BY_CUSTOMER';
const FAILED_TO_COLLECT_BY_TRANSPORTER = 'FAILED_TO_COLLECT_BY_TRANSPORTER';
const FAILED_TO_CREATE_SHIPPING_LABEL = 'FAILED_TO_CREATE_SHIPPING_LABEL';

private $name;
private $value;
Expand Down Expand Up @@ -109,9 +109,9 @@ public static function CANCELLED_BY_CUSTOMER(): self
return new self('CANCELLED_BY_CUSTOMER');
}

public static function FAILED_TO_COLLECT_BY_TRANSPORTER(): self
public static function FAILED_TO_CREATE_SHIPPING_LABEL(): self
{
return new self('FAILED_TO_COLLECT_BY_TRANSPORTER');
return new self('FAILED_TO_CREATE_SHIPPING_LABEL');
}

public static function fromName(string $value): self
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Rma/domain.fpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ namespace BolCom\RetailerApi\Model\Rma {
data HandlingResult = RETURN_RECEIVED | EXCHANGE_PRODUCT | RETURN_DOES_NOT_MEET_CONDITIONS | REPAIR_PRODUCT
| CUSTOMER_KEEPS_PRODUCT_PAID | STILL_APPROVED | CUSTOMER_KEEPS_PRODUCT_FREE_OF_CHARGE | RETURN_ITEM_LOST
| EXPIRED | EXCESSIVE_RETURN | STILL_RECEIVED | CANCELLED_BY_CUSTOMER
| FAILED_TO_COLLECT_BY_TRANSPORTER deriving(Enum(useValue));
| FAILED_TO_CREATE_SHIPPING_LABEL deriving(Enum(useValue));

data ProcessingResult = PENDING | ACCEPTED | REJECTED | CANCELLED deriving(Enum(useValue));

Expand Down

0 comments on commit b8e84a5

Please sign in to comment.