Skip to content
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
14 changes: 14 additions & 0 deletions openapi/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
27 changes: 27 additions & 0 deletions src/main/java/com/recurly/v3/resources/SubscriptionChange.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down
Loading