Skip to content

Commit 2c4b1ea

Browse files
authored
Merge pull request #254 from recurly/v3-v2021-02-25-20179158430
Generated Latest Changes for v2021-02-25
2 parents 0cb70a0 + 63154df commit 2c4b1ea

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

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

subscription_change.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ type SubscriptionChange struct {
7272

7373
// The ramp intervals representing the pricing schedule for the subscription.
7474
RampIntervals []SubscriptionRampIntervalResponse `json:"ramp_intervals,omitempty"`
75+
76+
// 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.
77+
NextBillDate *time.Time `json:"next_bill_date,omitempty"`
7578
}
7679

7780
// GetResponse returns the ResponseMetadata that generated this resource

subscription_change_create.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
// need and we will usher them to the appropriate places.
55
package recurly
66

7-
import ()
7+
import (
8+
"time"
9+
)
810

911
type SubscriptionChangeCreate struct {
1012

@@ -93,4 +95,7 @@ type SubscriptionChangeCreate struct {
9395

9496
// Allows you to control how any resulting charges and credits will be calculated and prorated.
9597
ProrationSettings *ProrationSettings `json:"proration_settings,omitempty"`
98+
99+
// 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.
100+
NextBillDate *time.Time `json:"next_bill_date,omitempty"`
96101
}

0 commit comments

Comments
 (0)