diff --git a/openapi/api.yaml b/openapi/api.yaml index 5b14ea9..9b0e9a5 100644 --- a/openapi/api.yaml +++ b/openapi/api.yaml @@ -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 @@ -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 diff --git a/src/main/java/com/recurly/v3/Client.java b/src/main/java/com/recurly/v3/Client.java index 2eeb3ce..98ec58b 100644 --- a/src/main/java/com/recurly/v3/Client.java +++ b/src/main/java/com/recurly/v3/Client.java @@ -1557,7 +1557,7 @@ public Pager listExternalSubscriptions(QueryParams queryPa * Fetch an external subscription * * @see get_external_subscription api documentation - * @param externalSubscriptionId 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 externalSubscriptionId 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`. * @return Settings for an external subscription. */ public ExternalSubscription getExternalSubscription(String externalSubscriptionId) { diff --git a/src/main/java/com/recurly/v3/resources/ExternalSubscription.java b/src/main/java/com/recurly/v3/resources/ExternalSubscription.java index f569396..1ddf523 100644 --- a/src/main/java/com/recurly/v3/resources/ExternalSubscription.java +++ b/src/main/java/com/recurly/v3/resources/ExternalSubscription.java @@ -134,6 +134,11 @@ public class ExternalSubscription extends Resource { @Expose private DateTime updatedAt; + /** Universally Unique Identifier created automatically. */ + @SerializedName("uuid") + @Expose + private String uuid; + /** Account mini details */ public AccountMini getAccount() { return this.account; @@ -389,4 +394,14 @@ public DateTime getUpdatedAt() { public void setUpdatedAt(final DateTime updatedAt) { this.updatedAt = updatedAt; } + + /** Universally Unique Identifier created automatically. */ + public String getUuid() { + return this.uuid; + } + + /** @param uuid Universally Unique Identifier created automatically. */ + public void setUuid(final String uuid) { + this.uuid = uuid; + } }