Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated Latest Changes for v2021-02-25 (App Management - External Subscriptions) #777

Merged
merged 1 commit into from
Jul 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 97 additions & 1 deletion lib/recurly/resources/external_subscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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
*/
Expand All @@ -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.
Expand Down
28 changes: 27 additions & 1 deletion openapi/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -25039,6 +25064,7 @@ components:
- venmo
- wire_transfer
- braintree_v_zero
- boleto
CardTypeEnum:
type: string
enum:
Expand Down