@@ -18,6 +18,7 @@ class SubscriptionInfo
18
18
* @param bool $subscribed Indicates if the user is currently subscribed.
19
19
* @param Carbon $current_subscription_start Start timestamp of the current subscription period.
20
20
* @param Carbon $current_subscription_end End timestamp of the current subscription period.
21
+ * @param Carbon $current_subscription_reset Quota reset timestamp of the current subscription period.
21
22
* @param int $subscription_words_quota Total word quota for the current subscription period.
22
23
* @param int $subscription_words_used Number of words used in the current subscription period.
23
24
* @param float $subscription_words_used_percentage Percentage of the word quota used
@@ -30,6 +31,7 @@ public function __construct(
30
31
public bool $ subscribed ,
31
32
public Carbon $ current_subscription_start ,
32
33
public Carbon $ current_subscription_end ,
34
+ public Carbon $ current_subscription_reset ,
33
35
public int $ subscription_words_quota ,
34
36
public int $ subscription_words_used ,
35
37
public float $ subscription_words_used_percentage
@@ -51,6 +53,7 @@ public function toArray(): array
51
53
'subscribed ' => $ this ->subscribed ,
52
54
'current_subscription_start ' => $ this ->current_subscription_start ->toDateTimeString (),
53
55
'current_subscription_end ' => $ this ->current_subscription_end ->toDateTimeString (),
56
+ 'current_subscription_reset ' => $ this ->current_subscription_reset ->toDateTimeString (),
54
57
'subscription_words_quota ' => $ this ->subscription_words_quota ,
55
58
'subscription_words_used ' => $ this ->subscription_words_used ,
56
59
'subscription_words_used_percentage ' => $ this ->subscription_words_used_percentage ,
0 commit comments