Skip to content

Commit b930877

Browse files
Add more TimestampConverters
1 parent bc4e59b commit b930877

3 files changed

Lines changed: 34 additions & 20 deletions

File tree

lib/messages.g.dart

Lines changed: 29 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/src/messages/requests/create_invoice_preview_request.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ class CreatePreviewInvoiceSubscriptionDetailsRequest {
5959
/// before the current period ends, this will cause a proration if prorations
6060
/// have been enabled using proration_behavior. If set during a future period,
6161
/// this will always cause a proration for that period.
62+
@TimestampConverter()
6263
final DateTime? cancelAt;
6364

6465
/// Indicate whether this subscription should cancel at the end of the current
@@ -93,6 +94,7 @@ class CreatePreviewInvoiceSubscriptionDetailsRequest {
9394
final DateTime? prorationDate;
9495

9596
/// Date a subscription is intended to start (can be future or past).
97+
@TimestampConverter()
9698
final DateTime? startDate;
9799

98100
/// If provided, the invoice returned will preview updating or creating a

lib/src/messages/requests/create_subscription.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ class CreateSubscriptionRequest {
4141
/// start date to. If set, the first invoice will contain a proration for the
4242
/// timespan between the start date and the current time. Can be combined with
4343
/// trials and the billing cycle anchor.
44+
@TimestampConverter()
4445
final DateTime? backdateStartDate;
4546

4647
/// A future timestamp in UTC format to anchor the subscription’s billing
@@ -60,6 +61,7 @@ class CreateSubscriptionRequest {
6061
/// before the current period ends, this will cause a proration if prorations
6162
/// have been enabled using proration_behavior. If set during a future period,
6263
/// this will always cause a proration for that period.
64+
@TimestampConverter()
6365
final DateTime? cancelAt;
6466

6567
/// The tax rates that will apply to any subscription item that does not have
@@ -89,6 +91,7 @@ class CreateSubscriptionRequest {
8991
/// override the default trial period of the plan the customer is being
9092
/// subscribed to. The special value now can be provided to end the customer’s
9193
/// trial immediately. Can be at most two years from billing_cycle_anchor.
94+
@TimestampConverter()
9295
final DateTime? trialEnd;
9396

9497
/// Indicates if a plan’s trial_period_days should be applied to the

0 commit comments

Comments
 (0)