Skip to content

Commit

Permalink
Update to use new billing system
Browse files Browse the repository at this point in the history
  • Loading branch information
that-guy-iain committed Jun 19, 2024
1 parent feee51a commit 0030258
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
10 changes: 10 additions & 0 deletions src/Repository/TeamRepository.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
<?php

/*
* Copyright 2024 all rights reserved
*/

namespace App\Repository;

use App\Entity\User;
use Parthenon\Billing\Entity\CustomerInterface;
use Parthenon\Payments\SubscriptionInterface;
use Parthenon\User\Entity\UserInterface;

Expand All @@ -23,4 +28,9 @@ public function findAllSubscriptions(): array
->getQuery()
->getResult();
}

public function getByExternalReference(string $externalReference): CustomerInterface
{
return $this->entityRepository->findOneBy(['externalReference' => $externalReference]);
}
}
7 changes: 6 additions & 1 deletion src/Repository/TeamRepositoryInterface.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
<?php

/*
* Copyright 2024 all rights reserved
*/

namespace App\Repository;

use Parthenon\Billing\Repository\CustomerRepositoryInterface;
use Parthenon\Payments\Repository\SubscriberRepositoryInterface;

interface TeamRepositoryInterface extends \Parthenon\User\Repository\TeamRepositoryInterface, SubscriberRepositoryInterface
interface TeamRepositoryInterface extends \Parthenon\User\Repository\TeamRepositoryInterface, SubscriberRepositoryInterface, CustomerRepositoryInterface
{
}

0 comments on commit 0030258

Please sign in to comment.