Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix created type for token #1162

Merged
merged 3 commits into from
Mar 13, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
fix created type for token
  • Loading branch information
jonasbark committed Mar 12, 2023
commit e9518edb0f7d056e14197b8fe37d2a3bfc81f0e8
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class TokenData with _$TokenData {
required String id,

/// Timestamp when token was created
@JsonKey(name: 'created') required String createdDateTime,
@JsonKey(name: 'created') required int createdDateTime,

/// Type of the token
required TokenType type,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1584,7 +1584,7 @@ mixin _$TokenData {

/// Timestamp when token was created
@JsonKey(name: 'created')
String get createdDateTime => throw _privateConstructorUsedError;
int get createdDateTime => throw _privateConstructorUsedError;

/// Type of the token
TokenType get type => throw _privateConstructorUsedError;
Expand All @@ -1611,7 +1611,7 @@ abstract class $TokenDataCopyWith<$Res> {
@useResult
$Res call(
{String id,
@JsonKey(name: 'created') String createdDateTime,
@JsonKey(name: 'created') int createdDateTime,
TokenType type,
bool livemode,
BankAccount? bankAccount,
Expand Down Expand Up @@ -1649,7 +1649,7 @@ class _$TokenDataCopyWithImpl<$Res, $Val extends TokenData>
createdDateTime: null == createdDateTime
? _value.createdDateTime
: createdDateTime // ignore: cast_nullable_to_non_nullable
as String,
as int,
type: null == type
? _value.type
: type // ignore: cast_nullable_to_non_nullable
Expand Down Expand Up @@ -1703,7 +1703,7 @@ abstract class _$$_TokenDataCopyWith<$Res> implements $TokenDataCopyWith<$Res> {
@useResult
$Res call(
{String id,
@JsonKey(name: 'created') String createdDateTime,
@JsonKey(name: 'created') int createdDateTime,
TokenType type,
bool livemode,
BankAccount? bankAccount,
Expand Down Expand Up @@ -1741,7 +1741,7 @@ class __$$_TokenDataCopyWithImpl<$Res>
createdDateTime: null == createdDateTime
? _value.createdDateTime
: createdDateTime // ignore: cast_nullable_to_non_nullable
as String,
as int,
type: null == type
? _value.type
: type // ignore: cast_nullable_to_non_nullable
Expand Down Expand Up @@ -1783,7 +1783,7 @@ class _$_TokenData implements _TokenData {
/// Timestamp when token was created
@override
@JsonKey(name: 'created')
final String createdDateTime;
final int createdDateTime;

/// Type of the token
@override
Expand Down Expand Up @@ -1844,7 +1844,7 @@ class _$_TokenData implements _TokenData {
abstract class _TokenData implements TokenData {
const factory _TokenData(
{required final String id,
@JsonKey(name: 'created') required final String createdDateTime,
@JsonKey(name: 'created') required final int createdDateTime,
required final TokenType type,
required final bool livemode,
final BankAccount? bankAccount,
Expand All @@ -1861,7 +1861,7 @@ abstract class _TokenData implements TokenData {

/// Timestamp when token was created
@JsonKey(name: 'created')
String get createdDateTime;
int get createdDateTime;
@override

/// Type of the token
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.