Skip to content

Commit

Permalink
Merge pull request #823 from recurly/v3-v2021-02-25-10583286844
Browse files Browse the repository at this point in the history
Generated Latest Changes for v2021-02-25 (add UUID to external subscriptions)
  • Loading branch information
amandamfielding authored Aug 27, 2024
2 parents c6be5d6 + 090c83b commit 0b4bf81
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/recurly/client.php
Original file line number Diff line number Diff line change
Expand Up @@ -1883,7 +1883,7 @@ public function listExternalSubscriptions(array $options = []): \Recurly\Pager
/**
* Fetch an external subscription
*
* @param string $external_subscription_id External subscription ID or external_id. For ID no prefix is used e.g. `e28zov4fw0v2`. For external_id use prefix `external-id-`, e.g. `external-id-123456`.
* @param string $external_subscription_id External subscription ID, external_id or uuid. For ID no prefix is used e.g. `e28zov4fw0v2`. For external_id use prefix `external-id-`, e.g. `external-id-123456` and for uuid use prefix `uuid-` e.g. `uuid-7293239bae62777d8c1ae044a9843633`.
* @param array $options Associative array of optional parameters
*
* @return \Recurly\Resources\ExternalSubscription Settings for an external subscription.
Expand Down
24 changes: 24 additions & 0 deletions lib/recurly/resources/external_subscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class ExternalSubscription extends RecurlyResource
private $_trial_ends_at;
private $_trial_started_at;
private $_updated_at;
private $_uuid;

protected static $array_hints = [
'setExternalPaymentPhases' => '\Recurly\Resources\ExternalPaymentPhase',
Expand Down Expand Up @@ -521,4 +522,27 @@ public function setUpdatedAt(string $updated_at): void
{
$this->_updated_at = $updated_at;
}

/**
* Getter method for the uuid attribute.
* Universally Unique Identifier created automatically.
*
* @return ?string
*/
public function getUuid(): ?string
{
return $this->_uuid;
}

/**
* Setter method for the uuid attribute.
*
* @param string $uuid
*
* @return void
*/
public function setUuid(string $uuid): void
{
$this->_uuid = $uuid;
}
}
9 changes: 7 additions & 2 deletions openapi/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16743,8 +16743,9 @@ components:
external_subscription_id_fetch:
name: external_subscription_id
in: path
description: External subscription ID or external_id. For ID no prefix is used
e.g. `e28zov4fw0v2`. For external_id use prefix `external-id-`, e.g. `external-id-123456`.
description: External subscription ID, external_id or uuid. For ID no prefix
is used e.g. `e28zov4fw0v2`. For external_id use prefix `external-id-`, e.g.
`external-id-123456` and for uuid use prefix `uuid-` e.g. `uuid-7293239bae62777d8c1ae044a9843633`.
required: true
schema:
type: string
Expand Down Expand Up @@ -25100,6 +25101,10 @@ components:
title: External Id
description: The id of the subscription in the external systems., I.e. Apple
App Store or Google Play Store.
uuid:
type: string
title: Uuid
description: Universally Unique Identifier created automatically.
last_purchased:
type: string
format: date-time
Expand Down

0 comments on commit 0b4bf81

Please sign in to comment.