AI store generator for ecommerce, Malaysia first. Laravel 13 + React + TypeScript.
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

123456789101112131415161718192021
  1. <?php
  2. namespace App\Billing;
  3. /**
  4. * What the payment provider says about one subscription, in a shape that does not depend on the provider.
  5. */
  6. final readonly class SubscriptionState
  7. {
  8. public function __construct(
  9. public string $subscriptionId,
  10. public string $customerId,
  11. /** The provider's word for the state: active, past_due, canceled and so on. */
  12. public string $status,
  13. /** The provider's id of the price being paid, which tells us the plan. */
  14. public ?string $priceId,
  15. /** Unix time when the paid-for period ends. */
  16. public ?int $currentPeriodEnd,
  17. public bool $cancelAtPeriodEnd,
  18. ) {}
  19. }