From f37f5f9baf0255b25c39b480cdd698dccf254589 Mon Sep 17 00:00:00 2001 From: Recurly Integrations Date: Fri, 12 Dec 2025 20:40:02 +0000 Subject: [PATCH] Generated Latest Changes for v2021-02-25 --- openapi/api.yaml | 14 ++++++++++ .../v3/requests/SubscriptionChangeCreate.java | 28 +++++++++++++++++++ .../v3/resources/SubscriptionChange.java | 27 ++++++++++++++++++ 3 files changed, 69 insertions(+) diff --git a/openapi/api.yaml b/openapi/api.yaml index e606589c..bcc620f0 100644 --- a/openapi/api.yaml +++ b/openapi/api.yaml @@ -23606,6 +23606,13 @@ components: subscription. items: "$ref": "#/components/schemas/SubscriptionRampIntervalResponse" + next_bill_date: + type: string + format: date-time + title: Next bill date + description: If present, this sets the date the subscription's next billing + period will start (`current_period_ends_at`). When combined with proration_settings, + proration calculation should occur, only supported when timeframe is now. SubscriptionChangeBillingInfo: type: object description: Accept nested attributes for three_d_secure_action_result_token_id @@ -23766,6 +23773,13 @@ components: "$ref": "#/components/schemas/SubscriptionRampInterval" proration_settings: "$ref": "#/components/schemas/ProrationSettings" + next_bill_date: + type: string + format: date-time + title: Next bill date + description: If present, this sets the date the subscription's next billing + period will start (`current_period_ends_at`). When combined with proration_settings, + proration calculation should occur, only supported when timeframe is now. SubscriptionChangeShippingCreate: type: object title: Shipping details that will be changed on a subscription diff --git a/src/main/java/com/recurly/v3/requests/SubscriptionChangeCreate.java b/src/main/java/com/recurly/v3/requests/SubscriptionChangeCreate.java index deec1c1d..a3e1b04d 100644 --- a/src/main/java/com/recurly/v3/requests/SubscriptionChangeCreate.java +++ b/src/main/java/com/recurly/v3/requests/SubscriptionChangeCreate.java @@ -12,6 +12,7 @@ import com.recurly.v3.resources.*; import java.math.BigDecimal; import java.util.List; +import org.joda.time.DateTime; public class SubscriptionChangeCreate extends Request { @@ -110,6 +111,15 @@ public class SubscriptionChangeCreate extends Request { @Expose private Constants.NetTermsType netTermsType; + /** + * If present, this sets the date the subscription's next billing period will start + * (`current_period_ends_at`). When combined with proration_settings, proration calculation should + * occur, only supported when timeframe is now. + */ + @SerializedName("next_bill_date") + @Expose + private DateTime nextBillDate; + /** * If you want to change to a new plan, you can provide the plan's code or id. If both are * provided the `plan_id` will be used. @@ -390,6 +400,24 @@ public void setNetTermsType(final Constants.NetTermsType netTermsType) { this.netTermsType = netTermsType; } + /** + * If present, this sets the date the subscription's next billing period will start + * (`current_period_ends_at`). When combined with proration_settings, proration calculation should + * occur, only supported when timeframe is now. + */ + public DateTime getNextBillDate() { + return this.nextBillDate; + } + + /** + * @param nextBillDate If present, this sets the date the subscription's next billing period will + * start (`current_period_ends_at`). When combined with proration_settings, proration + * calculation should occur, only supported when timeframe is now. + */ + public void setNextBillDate(final DateTime nextBillDate) { + this.nextBillDate = nextBillDate; + } + /** * If you want to change to a new plan, you can provide the plan's code or id. If both are * provided the `plan_id` will be used. diff --git a/src/main/java/com/recurly/v3/resources/SubscriptionChange.java b/src/main/java/com/recurly/v3/resources/SubscriptionChange.java index eab1d8ba..aac66878 100644 --- a/src/main/java/com/recurly/v3/resources/SubscriptionChange.java +++ b/src/main/java/com/recurly/v3/resources/SubscriptionChange.java @@ -69,6 +69,15 @@ public class SubscriptionChange extends Resource { @Expose private InvoiceCollection invoiceCollection; + /** + * If present, this sets the date the subscription's next billing period will start + * (`current_period_ends_at`). When combined with proration_settings, proration calculation should + * occur, only supported when timeframe is now. + */ + @SerializedName("next_bill_date") + @Expose + private DateTime nextBillDate; + /** Object type */ @SerializedName("object") @Expose @@ -227,6 +236,24 @@ public void setInvoiceCollection(final InvoiceCollection invoiceCollection) { this.invoiceCollection = invoiceCollection; } + /** + * If present, this sets the date the subscription's next billing period will start + * (`current_period_ends_at`). When combined with proration_settings, proration calculation should + * occur, only supported when timeframe is now. + */ + public DateTime getNextBillDate() { + return this.nextBillDate; + } + + /** + * @param nextBillDate If present, this sets the date the subscription's next billing period will + * start (`current_period_ends_at`). When combined with proration_settings, proration + * calculation should occur, only supported when timeframe is now. + */ + public void setNextBillDate(final DateTime nextBillDate) { + this.nextBillDate = nextBillDate; + } + /** Object type */ public String getObject() { return this.object;