diff --git a/lib/recurly/resources/external_subscription.php b/lib/recurly/resources/external_subscription.php index f53aca4c..8cff6da5 100644 --- a/lib/recurly/resources/external_subscription.php +++ b/lib/recurly/resources/external_subscription.php @@ -16,15 +16,19 @@ class ExternalSubscription extends RecurlyResource private $_activated_at; private $_app_identifier; private $_auto_renew; + private $_canceled_at; private $_created_at; private $_expires_at; private $_external_id; private $_external_product_reference; private $_id; + private $_in_grace_period; private $_last_purchased; private $_object; private $_quantity; private $_state; + private $_trial_ends_at; + private $_trial_started_at; private $_updated_at; protected static $array_hints = [ @@ -123,6 +127,29 @@ public function setAutoRenew(bool $auto_renew): void $this->_auto_renew = $auto_renew; } + /** + * Getter method for the canceled_at attribute. + * When the external subscription was canceled in the external platform. + * + * @return ?string + */ + public function getCanceledAt(): ?string + { + return $this->_canceled_at; + } + + /** + * Setter method for the canceled_at attribute. + * + * @param string $canceled_at + * + * @return void + */ + public function setCanceledAt(string $canceled_at): void + { + $this->_canceled_at = $canceled_at; + } + /** * Getter method for the created_at attribute. * When the external subscription was created in Recurly. @@ -238,6 +265,29 @@ public function setId(string $id): void $this->_id = $id; } + /** + * Getter method for the in_grace_period attribute. + * An indication of whether or not the external subscription is in a grace period. + * + * @return ?bool + */ + public function getInGracePeriod(): ?bool + { + return $this->_in_grace_period; + } + + /** + * Setter method for the in_grace_period attribute. + * + * @param bool $in_grace_period + * + * @return void + */ + public function setInGracePeriod(bool $in_grace_period): void + { + $this->_in_grace_period = $in_grace_period; + } + /** * Getter method for the last_purchased attribute. * When a new billing event occurred on the external subscription in conjunction with a recent billing period, reactivation or upgrade/downgrade. @@ -309,7 +359,7 @@ public function setQuantity(int $quantity): void /** * Getter method for the state attribute. - * External subscriptions can be active, canceled, expired, or future. + * External subscriptions can be active, canceled, expired, or past_due. * * @return ?string */ @@ -330,6 +380,52 @@ public function setState(string $state): void $this->_state = $state; } + /** + * Getter method for the trial_ends_at attribute. + * When the external subscription trial period ends in the external platform. + * + * @return ?string + */ + public function getTrialEndsAt(): ?string + { + return $this->_trial_ends_at; + } + + /** + * Setter method for the trial_ends_at attribute. + * + * @param string $trial_ends_at + * + * @return void + */ + public function setTrialEndsAt(string $trial_ends_at): void + { + $this->_trial_ends_at = $trial_ends_at; + } + + /** + * Getter method for the trial_started_at attribute. + * When the external subscription trial period started in the external platform. + * + * @return ?string + */ + public function getTrialStartedAt(): ?string + { + return $this->_trial_started_at; + } + + /** + * Setter method for the trial_started_at attribute. + * + * @param string $trial_started_at + * + * @return void + */ + public function setTrialStartedAt(string $trial_started_at): void + { + $this->_trial_started_at = $trial_started_at; + } + /** * Getter method for the updated_at attribute. * When the external subscription was updated in Recurly. diff --git a/openapi/api.yaml b/openapi/api.yaml index 19f5ce09..674b3028 100644 --- a/openapi/api.yaml +++ b/openapi/api.yaml @@ -23765,6 +23765,12 @@ components: description: An indication of whether or not the external subscription will auto-renew at the expiration date. default: false + in_grace_period: + type: boolean + title: In grace period + description: An indication of whether or not the external subscription is + in a grace period. + default: false app_identifier: type: string title: App identifier @@ -23778,18 +23784,37 @@ components: state: type: string description: External subscriptions can be active, canceled, expired, or - future. + past_due. + default: active activated_at: type: string format: date-time title: Activated at description: When the external subscription was activated in the external platform. + canceled_at: + type: string + format: date-time + title: Canceled at + description: When the external subscription was canceled in the external + platform. expires_at: type: string format: date-time title: Expires at description: When the external subscription expires in the external platform. + trial_started_at: + type: string + format: date-time + title: Trial started at + description: When the external subscription trial period started in the + external platform. + trial_ends_at: + type: string + format: date-time + title: Trial ends at + description: When the external subscription trial period ends in the external + platform. created_at: type: string format: date-time @@ -25039,6 +25064,7 @@ components: - venmo - wire_transfer - braintree_v_zero + - boleto CardTypeEnum: type: string enum: