-
Notifications
You must be signed in to change notification settings - Fork 11
HP-1751 Create configurations for billing types #93
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
Merged
SilverFire
merged 121 commits into
hiqdev:master
from
VadymHrechukha:HP-1751_create_configurations_for_billing_types
Apr 22, 2025
Merged
Changes from 118 commits
Commits
Show all changes
121 commits
Select commit
Hold shift + click to select a range
01dc6ff
HP-1751 Create configurations for billing types
VadymHrechukha f819552
HP-1751 Created Unit test for InvoiceDescriptionsBuilder class
VadymHrechukha f5292a4
HP-1751 Create configurations for billing types
VadymHrechukha ccb0b9c
HP-1751 Create configurations for billing types
VadymHrechukha 9f7c0da
HP-1751 Create configurations for billing types
VadymHrechukha 83d242f
HP-1751 created product Type
VadymHrechukha 0e26ed5
HP-1751 added stubs for all types in ServerTariff config
VadymHrechukha ff69913
HP-1751 tiny
VadymHrechukha 1ac3f7d
HP-1751 tiny
VadymHrechukha 99371a4
HP-1751 implemented BillingRegistry::getRepresentationsByType() method
VadymHrechukha 01e778a
HP-1751 fixed the case when we pass two sql for one type in AbstractL…
VadymHrechukha e95efbc
HP-1751 tiny
VadymHrechukha 1e731a9
HP-1751 added ability to extend PriceTypeDefinition class
VadymHrechukha ef63f8f
HP-1751 Created QuantityFormatterDefinition for storing both the $for…
VadymHrechukha e72ae0f
HP-1751 created formatters
VadymHrechukha 94f7fb3
HP-1751 configured QuantityFormatter
VadymHrechukha 93c0ea8
HP-1751 working on QuantityFormatter classes
VadymHrechukha 7972157
HP-1751 created interface for easy get QuantityFormatter from Billing…
VadymHrechukha e967f1b
HP-1751 changed signature of BillingRegistry::createQuantityFormatter…
VadymHrechukha 944f07d
HP-1751 added consumption config for TariffType
VadymHrechukha 821f83e
HP-1751 added ability to fetch consumption columns and groups into Bi…
VadymHrechukha 9bc5a8e
HP-1751 added consumption classes
VadymHrechukha b5065b0
HP-1751 created BehaviorInterface
VadymHrechukha 0247a8b
HP-1751 added aggregation to PriceTypeDefinition
VadymHrechukha e2fd487
HP-1751 created BehaviorNotFoundException
VadymHrechukha 48a032e
HP-1751 removed Consumption from billing-registry
VadymHrechukha bc62b19
HP-1751 created TariffType class and use it in Behavior
VadymHrechukha ea5c85f
HP-1751 Throw BehaviorNotFoundException instead of returning null in …
VadymHrechukha 02b3aee
HP-1751 created ParentNodeDefinitionInterface
VadymHrechukha a7d1c34
HP-1751 changed directory of TariffType, Unit and FractionUnit
VadymHrechukha baab974
HP-1751 tiny
VadymHrechukha 18c7690
HP-1751 tiny
VadymHrechukha e65d27d
HP-1751 added annotation for BillingRegistry::getBehavior() method
VadymHrechukha fea22bd
HP-1751 Implemented BillingRegistry::getAggregate() method
VadymHrechukha f6c5c1c
HP-1751 added ability to check if PriceTypeDefinition has specific be…
VadymHrechukha 9b8bb1d
HP-1751 tiny
VadymHrechukha d9a5ef7
HP-1751 added TariffTypeDefinition::hasBehavior() method
VadymHrechukha 2bb5310
HP-1751 Removed dependency php-billing package from TariffType class
VadymHrechukha 881679f
HP-1751 Removed dependency php-billing package from Unit and Fraction…
VadymHrechukha 1acbb7b
HP-1751 Removed dependency php-billing package from PriceTypeDefiniti…
VadymHrechukha 0c060ab
HP-1751 Removed dependency php-billing package from Aggregate class
VadymHrechukha 93686bb
HP-1751 Attempt to removed dependency php-billing package from Aggreg…
VadymHrechukha 77b9efe
HP-1751 Removed dependency php-billing package from QuantityFormatter…
VadymHrechukha 9dad8c6
HP-1751 Attempt to removed dependency php-billing package from Quanti…
VadymHrechukha 285ae11
HP-1751 Attempt to removed dependency php-billing package from Paymen…
VadymHrechukha afe5a62
HP-1751 Removed dependency php-billing package from InvoiceRepresenta…
VadymHrechukha 57394fe
HP-1751 Removed dependency php-billing package from Product class
VadymHrechukha b649b44
HP-1751 Applied Single Responsibility Principle to PriceTypeDefinitio…
VadymHrechukha 2cc1971
HP-1751 tiny
VadymHrechukha 6411325
HP-1751 tiny
VadymHrechukha 0328f42
HP-1751 Removed dependency php-billing package from GType, PriceType …
VadymHrechukha 1f7fb11
HP-1751 Created TariffTypeDefinitionInterface
VadymHrechukha 1cfa210
HP-1751 tiny
VadymHrechukha c75b5d4
HP-1751 Added psalm template annotation
VadymHrechukha 27c16d1
HP-1751 tiny
VadymHrechukha 6808daf
HP-1751 fixed error during update composer
VadymHrechukha 413f729
HP-1751 tiny
VadymHrechukha d7d838a
HP-1751 fixed the bug with reusing PriceTypeDefinitionCollection class
VadymHrechukha 2c6a195
HP-1751 refactored BillingRegistry::getBehavior() method
VadymHrechukha 6f0783b
HP-1751 added TariffTypeDefinitionInterface::getProduct() interface
VadymHrechukha 0e0bc7c
HP-1751 tiny
VadymHrechukha 75ee687
HP-1751 created InvalidQuantityFormatterException
VadymHrechukha 9b25ddf
HP-1751 created InvalidRepresentationException
VadymHrechukha 7d09102
HP-1751 fixed BillingRegistry::createQuantityFormatter() method
VadymHrechukha c00ea1e
HP-1751 tiny
VadymHrechukha 4ce2b38
HP-1751 created AggregateNotDefinedException
VadymHrechukha 7269bf9
HP-1751 fixing InvoiceDescriptionsBuilder class
VadymHrechukha 03ee8dc
HP-1751 tiny
VadymHrechukha 97f0d4f
HP-1751 tiny
VadymHrechukha 179dd51
HP-1751 tiny
VadymHrechukha 52f051c
HP-1751 tiny
VadymHrechukha 96cf778
HP-1751 tiny
VadymHrechukha f220f77
HP-1751 added possibility to count elements in PriceTypeDefinitionCol…
VadymHrechukha 29cea34
HP-1751 added a locking mechanism in TariffTypeDefinition class
VadymHrechukha c7a3dd8
HP-1751 created TariffTypeDefinitionTest phpunit test
VadymHrechukha f6b42bd
HP-1751 tiny
VadymHrechukha 4332ccb
HP-1751 tiny
VadymHrechukha ef98123
HP-1751 created BillingRegistryTest phpunit test
VadymHrechukha 00f6b67
HP-1751 tiny
VadymHrechukha 12f688d
HP-1751 tiny
VadymHrechukha 2cd3fe1
HP-1751 fixed BillingRegistryTest::testGetBehavior() test case
VadymHrechukha ceecba5
HP-1751 fixed BillingRegistryTest::testGetBehaviorThrowsExceptionWhen…
VadymHrechukha cd27386
HP-1751 fixed BillingRegistryTest::testAddTariffTypeAndRetrievePriceT…
VadymHrechukha 9729080
HP-1751 tiny
VadymHrechukha c976b0a
HP-1751 tiny
VadymHrechukha 47cfdda
HP-1751 moved abstract Behavior into php-billing package
VadymHrechukha 55f53e8
HP-1751 created Test Case WithMultiplePriceTypeDefinitions
VadymHrechukha 9d12287
HP-1751 tiny
VadymHrechukha 38a2f4a
HP-1751 tiny
VadymHrechukha 3aab1ee
HP-1751 created PriceTypeDefinitionInterface
VadymHrechukha b6aada3
HP-1751 created TariffTypeBehaviorRegistry
VadymHrechukha 8da4e9a
HP-1751 added description to TariffTypeBehaviorRegistry class
VadymHrechukha 8f63474
HP-1751 tiny
VadymHrechukha e539a12
HP-1751 tiny
VadymHrechukha d0666f1
HP-1751 created class for search ResourceDecoratorBehavior
VadymHrechukha 6d5a884
HP-1751 created TariffTypeDefinitionNotFoundException
VadymHrechukha fe86956
HP-1751 created TariffTypeDefinitionNotFoundException
VadymHrechukha 9dcc0aa
HP-1751 added PriceTypeDefinitionInterface::getTariffTypeDefinition()…
VadymHrechukha 9b238bc
HP-1751 tiny
VadymHrechukha 650d56f
HP-1751 added BillingRegistry::getTariffTypeDefinitions() method
VadymHrechukha a7f2110
HP-1751 created separate trait for locking feature
VadymHrechukha 0e2bcb0
HP-1751 lock BehaviorCollections after call end() method
VadymHrechukha ef63e41
HP-1751 lock all possible classes after call end() method
VadymHrechukha d107199
HP-1751 tiny
VadymHrechukha b3bb340
HP-1751 removed duplicate code from BillingRegistry
VadymHrechukha 0de987a
HP-1751 Modernized GitHub Actions workflow, updated the following:
VadymHrechukha 6f9a0d0
HP-1751 keep using shivammathur/setup-php@v2
VadymHrechukha f6a891e
HP-1751 Since setup-php still supports only v2, update your workflow to:
VadymHrechukha 3a1f816
HP-1751 Modernized GitHub Actions workflow, updated the following:
VadymHrechukha 74446cd
HP-1751 fixed gherkin error during launching Behat tests
VadymHrechukha 4492d45
HP-1751 changed HasLock::lock() to public
VadymHrechukha 8c0a27e
HP-1751 removed TariffTypeTest phpunit test because it completely wrong
VadymHrechukha 0b49dfb
HP-1751 Fixed lock feature
VadymHrechukha 0d8bd65
HP-1751 fixed testLockPreventsModification() test case
VadymHrechukha 9d367cd
HP-1751 complete BillingRegistryInterface
VadymHrechukha 48e882f
HP-1751 tiny
VadymHrechukha dc5d281
HP-1751 renamed InvoiceRepresentationCollection to RepresentationColl…
VadymHrechukha 42e41c7
HP-1751 ensure representation is unique in registry
VadymHrechukha 29218ec
HP-1751 fixed RepresentationUniquenessGuard class
VadymHrechukha d1b60ac
HP-1751 updated documentation
VadymHrechukha 48f501d
Merge branch 'master' into HP-1751_create_configurations_for_billing_…
VadymHrechukha File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,8 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace hiqdev\php\billing\Exception; | ||
|
||
class LogicException extends \LogicException | ||
{ | ||
|
||
} |
This file contains hidden or 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,8 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace hiqdev\php\billing\product; | ||
|
||
interface AggregateInterface | ||
{ | ||
public function isMax(): bool; | ||
} |
This file contains hidden or 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,174 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace hiqdev\php\billing\product; | ||
|
||
use hiqdev\php\billing\product\behavior\InvalidBehaviorException; | ||
use hiqdev\php\billing\product\Exception\AggregateNotFoundException; | ||
use hiqdev\php\billing\product\invoice\InvalidRepresentationException; | ||
use hiqdev\php\billing\product\invoice\RepresentationInterface; | ||
use hiqdev\php\billing\product\price\PriceTypeDefinition; | ||
use hiqdev\php\billing\product\quantity\QuantityFormatterInterface; | ||
use hiqdev\php\billing\product\quantity\QuantityFormatterNotFoundException; | ||
use hiqdev\php\billing\product\quantity\FractionQuantityData; | ||
use hiqdev\php\billing\product\behavior\BehaviorInterface; | ||
use hiqdev\php\billing\product\behavior\BehaviorNotFoundException; | ||
use hiqdev\php\billing\product\trait\HasLock; | ||
use hiqdev\php\billing\type\Type; | ||
use hiqdev\php\billing\type\TypeInterface; | ||
|
||
class BillingRegistry implements BillingRegistryInterface | ||
{ | ||
use HasLock; | ||
|
||
/** @var TariffTypeDefinitionInterface[] */ | ||
private array $tariffTypeDefinitions = []; | ||
private bool $locked = false; | ||
|
||
public function addTariffType(TariffTypeDefinitionInterface $tariffTypeDefinition): void | ||
{ | ||
$this->ensureNotLocked(); | ||
|
||
$this->tariffTypeDefinitions[] = $tariffTypeDefinition; | ||
} | ||
|
||
public function priceTypes(): \Generator | ||
{ | ||
foreach ($this->tariffTypeDefinitions as $tariffTypeDefinition) { | ||
foreach ($tariffTypeDefinition->withPrices() as $priceTypeDefinition) { | ||
yield $priceTypeDefinition; | ||
} | ||
} | ||
} | ||
|
||
public function getRepresentationsByType(string $representationClass): array | ||
{ | ||
if (!class_exists($representationClass)) { | ||
throw new InvalidRepresentationException("Class '$representationClass' does not exist"); | ||
} | ||
|
||
if (!is_subclass_of($representationClass, RepresentationInterface::class)) { | ||
throw new InvalidBehaviorException( | ||
sprintf('Representation class "%s" does not implement RepresentationInterface', $representationClass) | ||
); | ||
} | ||
|
||
$representations = []; | ||
foreach ($this->priceTypes() as $priceTypeDefinition) { | ||
foreach ($priceTypeDefinition->documentRepresentation() as $representation) { | ||
if ($representation instanceof $representationClass) { | ||
$representations[] = $representation; | ||
} | ||
} | ||
} | ||
|
||
return $representations; | ||
} | ||
|
||
public function createQuantityFormatter( | ||
string $type, | ||
FractionQuantityData $data, | ||
): QuantityFormatterInterface { | ||
$type = $this->convertStringTypeToType($type); | ||
|
||
foreach ($this->priceTypes() as $priceTypeDefinition) { | ||
if ($priceTypeDefinition->hasType($type)) { | ||
return $priceTypeDefinition->createQuantityFormatter($data); | ||
} | ||
} | ||
|
||
throw new QuantityFormatterNotFoundException('Quantity formatter not found'); | ||
} | ||
|
||
private function convertStringTypeToType(string $type): TypeInterface | ||
{ | ||
return Type::anyId($type); | ||
} | ||
|
||
public function getBehavior(string $type, string $behaviorClassWrapper): BehaviorInterface | ||
{ | ||
if (!class_exists($behaviorClassWrapper)) { | ||
throw new InvalidBehaviorException( | ||
sprintf('Behavior class "%s" does not exist', $behaviorClassWrapper) | ||
); | ||
} | ||
|
||
if (!is_subclass_of($behaviorClassWrapper, BehaviorInterface::class)) { | ||
throw new InvalidBehaviorException( | ||
sprintf('Behavior class "%s" does not implement BehaviorInterface', $behaviorClassWrapper) | ||
); | ||
} | ||
|
||
$billingType = $this->convertStringTypeToType($type); | ||
|
||
foreach ($this->priceTypes() as $priceTypeDefinition) { | ||
if ($priceTypeDefinition->hasType($billingType)) { | ||
$behavior = $this->findBehaviorInPriceType($priceTypeDefinition, $behaviorClassWrapper); | ||
|
||
if ($behavior) { | ||
return $behavior; | ||
} | ||
} | ||
} | ||
|
||
throw new BehaviorNotFoundException( | ||
sprintf('Behavior of class "%s" not found for type "%s"', $behaviorClassWrapper, $type), | ||
); | ||
} | ||
|
||
private function findBehaviorInPriceType( | ||
PriceTypeDefinition $priceTypeDefinition, | ||
string $behaviorClassWrapper | ||
): ?BehaviorInterface { | ||
foreach ($priceTypeDefinition->withBehaviors() as $behavior) { | ||
if ($behavior instanceof $behaviorClassWrapper) { | ||
return $behavior; | ||
} | ||
} | ||
|
||
return null; | ||
} | ||
|
||
public function getBehaviors(string $behaviorClassWrapper): \Generator | ||
{ | ||
foreach ($this->tariffTypeDefinitions as $tariffTypeDefinition) { | ||
foreach ($tariffTypeDefinition->withBehaviors() as $behavior) { | ||
if ($behavior instanceof $behaviorClassWrapper) { | ||
yield $behavior; | ||
} | ||
} | ||
} | ||
|
||
foreach ($this->priceTypes() as $priceTypeDefinition) { | ||
foreach ($priceTypeDefinition->withBehaviors() as $behavior) { | ||
if ($behavior instanceof $behaviorClassWrapper) { | ||
yield $behavior; | ||
} | ||
} | ||
} | ||
} | ||
|
||
public function getAggregate(string $type): AggregateInterface | ||
{ | ||
$type = $this->convertStringTypeToType($type); | ||
|
||
foreach ($this->priceTypes() as $priceTypeDefinition) { | ||
if ($priceTypeDefinition->hasType($type)) { | ||
return $priceTypeDefinition->getAggregate(); | ||
} | ||
} | ||
|
||
throw new AggregateNotFoundException('Aggregate was not found'); | ||
coderabbitai[bot] marked this conversation as resolved.
Show resolved
Hide resolved
|
||
} | ||
coderabbitai[bot] marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
public function getTariffTypeDefinitions(): \Generator | ||
{ | ||
foreach ($this->tariffTypeDefinitions as $tariffTypeDefinition) { | ||
yield $tariffTypeDefinition; | ||
} | ||
} | ||
|
||
protected function afterLock(): void | ||
{ | ||
$this->lockItems($this->tariffTypeDefinitions); | ||
} | ||
} |
This file contains hidden or 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,56 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace hiqdev\php\billing\product; | ||
|
||
use Generator; | ||
use hiqdev\php\billing\product\behavior\BehaviorInterface; | ||
use hiqdev\php\billing\product\behavior\BehaviorNotFoundException; | ||
use hiqdev\php\billing\product\behavior\InvalidBehaviorException; | ||
use hiqdev\php\billing\product\invoice\RepresentationInterface; | ||
use hiqdev\php\billing\product\price\PriceTypeDefinitionInterface; | ||
use hiqdev\php\billing\product\quantity\FractionQuantityData; | ||
use hiqdev\php\billing\product\quantity\QuantityFormatterInterface; | ||
use hiqdev\php\billing\product\trait\HasLockInterface; | ||
|
||
interface BillingRegistryInterface extends HasLockInterface | ||
{ | ||
/** | ||
* @return Generator | ||
* @psalm-return Generator<PriceTypeDefinitionInterface> | ||
*/ | ||
public function priceTypes(): Generator; | ||
|
||
public function addTariffType(TariffTypeDefinitionInterface $tariffTypeDefinition): void; | ||
|
||
/** | ||
* @param string $representationClass | ||
* @return RepresentationInterface[] | ||
*/ | ||
public function getRepresentationsByType(string $representationClass): array; | ||
|
||
public function createQuantityFormatter(string $type, FractionQuantityData $data): QuantityFormatterInterface; | ||
|
||
/** | ||
* @param string $type - full type like 'overuse,lb_capacity_unit' | ||
* @param string $behaviorClassWrapper | ||
* @return BehaviorInterface | ||
* @throws BehaviorNotFoundException | ||
* @throws InvalidBehaviorException | ||
*/ | ||
public function getBehavior(string $type, string $behaviorClassWrapper): BehaviorInterface; | ||
|
||
/** | ||
* @param string $behaviorClassWrapper | ||
* @return Generator | ||
* @psalm-return Generator<BehaviorInterface> | ||
*/ | ||
public function getBehaviors(string $behaviorClassWrapper): Generator; | ||
|
||
public function getAggregate(string $type): AggregateInterface; | ||
|
||
/** | ||
* @return Generator | ||
* @psalm-return Generator<TariffTypeDefinitionInterface> | ||
*/ | ||
public function getTariffTypeDefinitions(): Generator; | ||
} |
This file contains hidden or 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,8 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace hiqdev\php\billing\product; | ||
|
||
interface DocumentRepresentationInterface | ||
{ | ||
|
||
} |
This file contains hidden or 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,10 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace hiqdev\php\billing\product\Domain\Model; | ||
|
||
interface TariffTypeInterface | ||
{ | ||
public function name(): string; | ||
|
||
public function label(): string; | ||
} |
This file contains hidden or 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,8 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace hiqdev\php\billing\product\Domain\Model\Unit; | ||
|
||
interface FractionUnitInterface | ||
{ | ||
|
||
} |
This file contains hidden or 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,12 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace hiqdev\php\billing\product\Domain\Model\Unit; | ||
|
||
use \hiqdev\php\units\UnitInterface as BaseUnitInterface; | ||
|
||
interface UnitInterface | ||
{ | ||
public function createExternalUnit(): BaseUnitInterface; | ||
|
||
public function fractionUnit(): FractionUnitInterface; | ||
} |
This file contains hidden or 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,10 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace hiqdev\php\billing\product\Exception; | ||
|
||
use hiqdev\php\billing\Exception\LogicException; | ||
|
||
class AggregateNotDefinedException extends LogicException | ||
{ | ||
|
||
} |
This file contains hidden or 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,9 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace hiqdev\php\billing\product\Exception; | ||
|
||
use hiqdev\php\billing\Exception\RuntimeException; | ||
|
||
class AggregateNotFoundException extends RuntimeException | ||
{ | ||
} |
This file contains hidden or 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,10 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace hiqdev\php\billing\product\Exception; | ||
|
||
use LogicException; | ||
|
||
class LockedException extends LogicException | ||
{ | ||
|
||
} |
This file contains hidden or 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,10 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace hiqdev\php\billing\product\Exception; | ||
|
||
use hiqdev\php\billing\Exception\LogicException; | ||
|
||
class ProductNotDefinedException extends LogicException | ||
{ | ||
|
||
} |
10 changes: 10 additions & 0 deletions
10
src/product/Exception/TariffTypeDefinitionNotFoundException.php
This file contains hidden or 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,10 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace hiqdev\php\billing\product\Exception; | ||
|
||
use hiqdev\php\billing\Exception\RuntimeException; | ||
|
||
class TariffTypeDefinitionNotFoundException extends RuntimeException | ||
{ | ||
|
||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.