-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PIPRES-261: Get carrier price to create subscription (#817)
* PIPRES-261: Get carrier price to create subscription * updated subscription faq * renamed some services and added additional conditions for carrier retrieve * addedd back to exception codes
- Loading branch information
Showing
18 changed files
with
481 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php | ||
|
||
namespace Mollie\Repository; | ||
|
||
interface CountryRepositoryInterface extends ReadOnlyRepositoryInterface | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
subscription/Exception/CouldNotProvideSubscriptionCarrierDeliveryPrice.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<?php | ||
|
||
namespace Mollie\Subscription\Exception; | ||
|
||
class CouldNotProvideSubscriptionCarrierDeliveryPrice extends MollieSubscriptionException | ||
{ | ||
public static function failedToFindSelectedCarrier(): CouldNotProvideSubscriptionCarrierDeliveryPrice | ||
{ | ||
return new self( | ||
'Failed to find selected carrier', | ||
ExceptionCode::ORDER_FAILED_TO_FIND_SELECTED_CARRIER | ||
); | ||
} | ||
|
||
public static function failedToFindOrderCart(): CouldNotProvideSubscriptionCarrierDeliveryPrice | ||
{ | ||
return new self( | ||
'Failed to find order cart', | ||
ExceptionCode::ORDER_FAILED_TO_FIND_ORDER_CART | ||
); | ||
} | ||
|
||
public static function failedToFindOrderCustomer(): CouldNotProvideSubscriptionCarrierDeliveryPrice | ||
{ | ||
return new self( | ||
'Failed to find order customer', | ||
ExceptionCode::ORDER_FAILED_TO_FIND_ORDER_CUSTOMER | ||
); | ||
} | ||
|
||
public static function failedToApplySelectedCarrier(): CouldNotProvideSubscriptionCarrierDeliveryPrice | ||
{ | ||
return new self( | ||
'Failed to apply selected carrier', | ||
ExceptionCode::ORDER_FAILED_TO_APPLY_SELECTED_CARRIER | ||
); | ||
} | ||
|
||
public static function failedToFindOrderDeliveryAddress(): CouldNotProvideSubscriptionCarrierDeliveryPrice | ||
{ | ||
return new self( | ||
'Failed to find order delivery address', | ||
ExceptionCode::ORDER_FAILED_TO_FIND_ORDER_DELIVERY_ADDRESS | ||
); | ||
} | ||
|
||
public static function failedToFindOrderDeliveryCountry(): CouldNotProvideSubscriptionCarrierDeliveryPrice | ||
{ | ||
return new self( | ||
'Failed to find order delivery country', | ||
ExceptionCode::ORDER_FAILED_TO_FIND_ORDER_DELIVERY_COUNTRY | ||
); | ||
} | ||
|
||
public static function failedToGetSelectedCarrierPrice(): CouldNotProvideSubscriptionCarrierDeliveryPrice | ||
{ | ||
return new self( | ||
'Failed to get selected carrier price', | ||
ExceptionCode::ORDER_FAILED_TO_GET_SELECTED_CARRIER_PRICE | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.