Skip to content

Commit bc4e59b

Browse files
Add TimestampConverter
1 parent 40ceedf commit bc4e59b

3 files changed

Lines changed: 13 additions & 8 deletions

File tree

lib/messages.g.dart

Lines changed: 11 additions & 8 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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ class CreatePreviewInvoiceSubscriptionDetailsRequest {
5252
/// invoice, and, for plans with month or year intervals, the day of the month
5353
/// for subsequent invoices. For existing subscriptions, the value can only be
5454
/// set to now or unchanged.
55+
@TimestampConverter()
5556
final DateTime? billingCycleAnchor;
5657

5758
/// A timestamp at which the subscription should cancel. If set to a date

lib/src/messages/requests/create_subscription.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ class CreateSubscriptionRequest {
4747
/// cycle. The anchor is the reference point that aligns future billing cycle
4848
/// dates. It sets the day of week for week intervals, the day of month for
4949
/// month and year intervals, and the month of year for year intervals.
50+
@TimestampConverter()
5051
final DateTime? billingCycleAnchor;
5152

5253
/// Mutually exclusive with billing_cycle_anchor and only valid with monthly

0 commit comments

Comments
 (0)