AI store generator for ecommerce, Malaysia first. Laravel 13 + React + TypeScript.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

SubscriptionState.php 675B

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. }