Skip to content

Commit 0b4bf81

Browse files
Merge pull request #823 from recurly/v3-v2021-02-25-10583286844
Generated Latest Changes for v2021-02-25 (add UUID to external subscriptions)
2 parents c6be5d6 + 090c83b commit 0b4bf81

File tree

3 files changed

+32
-3
lines changed

3 files changed

+32
-3
lines changed

lib/recurly/client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1883,7 +1883,7 @@ public function listExternalSubscriptions(array $options = []): \Recurly\Pager
18831883
/**
18841884
* Fetch an external subscription
18851885
*
1886-
* @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`.
1886+
* @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`.
18871887
* @param array $options Associative array of optional parameters
18881888
*
18891889
* @return \Recurly\Resources\ExternalSubscription Settings for an external subscription.

lib/recurly/resources/external_subscription.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ class ExternalSubscription extends RecurlyResource
3333
private $_trial_ends_at;
3434
private $_trial_started_at;
3535
private $_updated_at;
36+
private $_uuid;
3637

3738
protected static $array_hints = [
3839
'setExternalPaymentPhases' => '\Recurly\Resources\ExternalPaymentPhase',
@@ -521,4 +522,27 @@ public function setUpdatedAt(string $updated_at): void
521522
{
522523
$this->_updated_at = $updated_at;
523524
}
525+
526+
/**
527+
* Getter method for the uuid attribute.
528+
* Universally Unique Identifier created automatically.
529+
*
530+
* @return ?string
531+
*/
532+
public function getUuid(): ?string
533+
{
534+
return $this->_uuid;
535+
}
536+
537+
/**
538+
* Setter method for the uuid attribute.
539+
*
540+
* @param string $uuid
541+
*
542+
* @return void
543+
*/
544+
public function setUuid(string $uuid): void
545+
{
546+
$this->_uuid = $uuid;
547+
}
524548
}

openapi/api.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16743,8 +16743,9 @@ components:
1674316743
external_subscription_id_fetch:
1674416744
name: external_subscription_id
1674516745
in: path
16746-
description: External subscription ID or external_id. For ID no prefix is used
16747-
e.g. `e28zov4fw0v2`. For external_id use prefix `external-id-`, e.g. `external-id-123456`.
16746+
description: External subscription ID, external_id or uuid. For ID no prefix
16747+
is used e.g. `e28zov4fw0v2`. For external_id use prefix `external-id-`, e.g.
16748+
`external-id-123456` and for uuid use prefix `uuid-` e.g. `uuid-7293239bae62777d8c1ae044a9843633`.
1674816749
required: true
1674916750
schema:
1675016751
type: string
@@ -25100,6 +25101,10 @@ components:
2510025101
title: External Id
2510125102
description: The id of the subscription in the external systems., I.e. Apple
2510225103
App Store or Google Play Store.
25104+
uuid:
25105+
type: string
25106+
title: Uuid
25107+
description: Universally Unique Identifier created automatically.
2510325108
last_purchased:
2510425109
type: string
2510525110
format: date-time

0 commit comments

Comments
 (0)