Skip to content

Commit 2feee60

Browse files
authored
Merge pull request #315 from recurly/v3-v2021-02-25-20179158430
Generated Latest Changes for v2021-02-25
2 parents 21044eb + f37f5f9 commit 2feee60

3 files changed

Lines changed: 69 additions & 0 deletions

File tree

openapi/api.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23606,6 +23606,13 @@ components:
2360623606
subscription.
2360723607
items:
2360823608
"$ref": "#/components/schemas/SubscriptionRampIntervalResponse"
23609+
next_bill_date:
23610+
type: string
23611+
format: date-time
23612+
title: Next bill date
23613+
description: If present, this sets the date the subscription's next billing
23614+
period will start (`current_period_ends_at`). When combined with proration_settings,
23615+
proration calculation should occur, only supported when timeframe is now.
2360923616
SubscriptionChangeBillingInfo:
2361023617
type: object
2361123618
description: Accept nested attributes for three_d_secure_action_result_token_id
@@ -23766,6 +23773,13 @@ components:
2376623773
"$ref": "#/components/schemas/SubscriptionRampInterval"
2376723774
proration_settings:
2376823775
"$ref": "#/components/schemas/ProrationSettings"
23776+
next_bill_date:
23777+
type: string
23778+
format: date-time
23779+
title: Next bill date
23780+
description: If present, this sets the date the subscription's next billing
23781+
period will start (`current_period_ends_at`). When combined with proration_settings,
23782+
proration calculation should occur, only supported when timeframe is now.
2376923783
SubscriptionChangeShippingCreate:
2377023784
type: object
2377123785
title: Shipping details that will be changed on a subscription

src/main/java/com/recurly/v3/requests/SubscriptionChangeCreate.java

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import com.recurly.v3.resources.*;
1313
import java.math.BigDecimal;
1414
import java.util.List;
15+
import org.joda.time.DateTime;
1516

1617
public class SubscriptionChangeCreate extends Request {
1718

@@ -110,6 +111,15 @@ public class SubscriptionChangeCreate extends Request {
110111
@Expose
111112
private Constants.NetTermsType netTermsType;
112113

114+
/**
115+
* If present, this sets the date the subscription's next billing period will start
116+
* (`current_period_ends_at`). When combined with proration_settings, proration calculation should
117+
* occur, only supported when timeframe is now.
118+
*/
119+
@SerializedName("next_bill_date")
120+
@Expose
121+
private DateTime nextBillDate;
122+
113123
/**
114124
* If you want to change to a new plan, you can provide the plan's code or id. If both are
115125
* provided the `plan_id` will be used.
@@ -390,6 +400,24 @@ public void setNetTermsType(final Constants.NetTermsType netTermsType) {
390400
this.netTermsType = netTermsType;
391401
}
392402

403+
/**
404+
* If present, this sets the date the subscription's next billing period will start
405+
* (`current_period_ends_at`). When combined with proration_settings, proration calculation should
406+
* occur, only supported when timeframe is now.
407+
*/
408+
public DateTime getNextBillDate() {
409+
return this.nextBillDate;
410+
}
411+
412+
/**
413+
* @param nextBillDate If present, this sets the date the subscription's next billing period will
414+
* start (`current_period_ends_at`). When combined with proration_settings, proration
415+
* calculation should occur, only supported when timeframe is now.
416+
*/
417+
public void setNextBillDate(final DateTime nextBillDate) {
418+
this.nextBillDate = nextBillDate;
419+
}
420+
393421
/**
394422
* If you want to change to a new plan, you can provide the plan's code or id. If both are
395423
* provided the `plan_id` will be used.

src/main/java/com/recurly/v3/resources/SubscriptionChange.java

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,15 @@ public class SubscriptionChange extends Resource {
6969
@Expose
7070
private InvoiceCollection invoiceCollection;
7171

72+
/**
73+
* If present, this sets the date the subscription's next billing period will start
74+
* (`current_period_ends_at`). When combined with proration_settings, proration calculation should
75+
* occur, only supported when timeframe is now.
76+
*/
77+
@SerializedName("next_bill_date")
78+
@Expose
79+
private DateTime nextBillDate;
80+
7281
/** Object type */
7382
@SerializedName("object")
7483
@Expose
@@ -227,6 +236,24 @@ public void setInvoiceCollection(final InvoiceCollection invoiceCollection) {
227236
this.invoiceCollection = invoiceCollection;
228237
}
229238

239+
/**
240+
* If present, this sets the date the subscription's next billing period will start
241+
* (`current_period_ends_at`). When combined with proration_settings, proration calculation should
242+
* occur, only supported when timeframe is now.
243+
*/
244+
public DateTime getNextBillDate() {
245+
return this.nextBillDate;
246+
}
247+
248+
/**
249+
* @param nextBillDate If present, this sets the date the subscription's next billing period will
250+
* start (`current_period_ends_at`). When combined with proration_settings, proration
251+
* calculation should occur, only supported when timeframe is now.
252+
*/
253+
public void setNextBillDate(final DateTime nextBillDate) {
254+
this.nextBillDate = nextBillDate;
255+
}
256+
230257
/** Object type */
231258
public String getObject() {
232259
return this.object;

0 commit comments

Comments
 (0)