From 3b009da38ca51deee70b9d74753c2aa7a8081a1e Mon Sep 17 00:00:00 2001 From: Justin Enerio Date: Thu, 23 Jan 2025 20:05:21 +0800 Subject: [PATCH] feat: add mintAddress for direct payment endpoint --- .../lib/src/dto/create_payment.dart | 1 + .../lib/src/dto/create_payment.freezed.dart | 193 +++++++++++++++--- .../lib/src/dto/create_payment.g.dart | 2 + 3 files changed, 162 insertions(+), 34 deletions(-) diff --git a/packages/espressocash_api/lib/src/dto/create_payment.dart b/packages/espressocash_api/lib/src/dto/create_payment.dart index 5aa737906f..c3ee6e6ca8 100644 --- a/packages/espressocash_api/lib/src/dto/create_payment.dart +++ b/packages/espressocash_api/lib/src/dto/create_payment.dart @@ -60,6 +60,7 @@ class CreateDirectPaymentRequestDto with _$CreateDirectPaymentRequestDto { required String? referenceAccount, required int amount, required Cluster cluster, + String? mintAddress, @Default(false) bool durable, }) = _CreateDirectPaymentRequestDto; diff --git a/packages/espressocash_api/lib/src/dto/create_payment.freezed.dart b/packages/espressocash_api/lib/src/dto/create_payment.freezed.dart index 9eeef3fe60..bdcd1eefee 100644 --- a/packages/espressocash_api/lib/src/dto/create_payment.freezed.dart +++ b/packages/espressocash_api/lib/src/dto/create_payment.freezed.dart @@ -27,8 +27,12 @@ mixin _$CreatePaymentRequestDto { Cluster get cluster => throw _privateConstructorUsedError; bool get durable => throw _privateConstructorUsedError; + /// Serializes this CreatePaymentRequestDto to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of CreatePaymentRequestDto + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $CreatePaymentRequestDtoCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -58,6 +62,8 @@ class _$CreatePaymentRequestDtoCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of CreatePaymentRequestDto + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -119,6 +125,8 @@ class __$$CreatePaymentRequestDtoImplCopyWithImpl<$Res> $Res Function(_$CreatePaymentRequestDtoImpl) _then) : super(_value, _then); + /// Create a copy of CreatePaymentRequestDto + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -197,12 +205,14 @@ class _$CreatePaymentRequestDtoImpl implements _CreatePaymentRequestDto { (identical(other.durable, durable) || other.durable == durable)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, senderAccount, escrowAccount, amount, cluster, durable); - @JsonKey(ignore: true) + /// Create a copy of CreatePaymentRequestDto + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CreatePaymentRequestDtoImplCopyWith<_$CreatePaymentRequestDtoImpl> @@ -238,8 +248,11 @@ abstract class _CreatePaymentRequestDto implements CreatePaymentRequestDto { Cluster get cluster; @override bool get durable; + + /// Create a copy of CreatePaymentRequestDto + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$CreatePaymentRequestDtoImplCopyWith<_$CreatePaymentRequestDtoImpl> get copyWith => throw _privateConstructorUsedError; } @@ -254,8 +267,12 @@ mixin _$CreatePaymentResponseDto { String get transaction => throw _privateConstructorUsedError; BigInt get slot => throw _privateConstructorUsedError; + /// Serializes this CreatePaymentResponseDto to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of CreatePaymentResponseDto + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $CreatePaymentResponseDtoCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -280,6 +297,8 @@ class _$CreatePaymentResponseDtoCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of CreatePaymentResponseDto + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -321,6 +340,8 @@ class __$$CreatePaymentResponseDtoImplCopyWithImpl<$Res> $Res Function(_$CreatePaymentResponseDtoImpl) _then) : super(_value, _then); + /// Create a copy of CreatePaymentResponseDto + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -369,11 +390,13 @@ class _$CreatePaymentResponseDtoImpl implements _CreatePaymentResponseDto { (identical(other.slot, slot) || other.slot == slot)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, transaction, slot); - @JsonKey(ignore: true) + /// Create a copy of CreatePaymentResponseDto + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CreatePaymentResponseDtoImplCopyWith<_$CreatePaymentResponseDtoImpl> @@ -400,8 +423,11 @@ abstract class _CreatePaymentResponseDto implements CreatePaymentResponseDto { String get transaction; @override BigInt get slot; + + /// Create a copy of CreatePaymentResponseDto + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$CreatePaymentResponseDtoImplCopyWith<_$CreatePaymentResponseDtoImpl> get copyWith => throw _privateConstructorUsedError; } @@ -418,8 +444,12 @@ mixin _$ReceivePaymentRequestDto { Cluster get cluster => throw _privateConstructorUsedError; bool get durable => throw _privateConstructorUsedError; + /// Serializes this ReceivePaymentRequestDto to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of ReceivePaymentRequestDto + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $ReceivePaymentRequestDtoCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -448,6 +478,8 @@ class _$ReceivePaymentRequestDtoCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of ReceivePaymentRequestDto + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -503,6 +535,8 @@ class __$$ReceivePaymentRequestDtoImplCopyWithImpl<$Res> $Res Function(_$ReceivePaymentRequestDtoImpl) _then) : super(_value, _then); + /// Create a copy of ReceivePaymentRequestDto + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -572,12 +606,14 @@ class _$ReceivePaymentRequestDtoImpl implements _ReceivePaymentRequestDto { (identical(other.durable, durable) || other.durable == durable)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, receiverAccount, escrowAccount, cluster, durable); - @JsonKey(ignore: true) + /// Create a copy of ReceivePaymentRequestDto + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ReceivePaymentRequestDtoImplCopyWith<_$ReceivePaymentRequestDtoImpl> @@ -610,8 +646,11 @@ abstract class _ReceivePaymentRequestDto implements ReceivePaymentRequestDto { Cluster get cluster; @override bool get durable; + + /// Create a copy of ReceivePaymentRequestDto + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$ReceivePaymentRequestDtoImplCopyWith<_$ReceivePaymentRequestDtoImpl> get copyWith => throw _privateConstructorUsedError; } @@ -626,8 +665,12 @@ mixin _$ReceivePaymentResponseDto { String get transaction => throw _privateConstructorUsedError; BigInt get slot => throw _privateConstructorUsedError; + /// Serializes this ReceivePaymentResponseDto to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of ReceivePaymentResponseDto + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $ReceivePaymentResponseDtoCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -652,6 +695,8 @@ class _$ReceivePaymentResponseDtoCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of ReceivePaymentResponseDto + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -693,6 +738,8 @@ class __$$ReceivePaymentResponseDtoImplCopyWithImpl<$Res> $Res Function(_$ReceivePaymentResponseDtoImpl) _then) : super(_value, _then); + /// Create a copy of ReceivePaymentResponseDto + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -741,11 +788,13 @@ class _$ReceivePaymentResponseDtoImpl implements _ReceivePaymentResponseDto { (identical(other.slot, slot) || other.slot == slot)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, transaction, slot); - @JsonKey(ignore: true) + /// Create a copy of ReceivePaymentResponseDto + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ReceivePaymentResponseDtoImplCopyWith<_$ReceivePaymentResponseDtoImpl> @@ -772,8 +821,11 @@ abstract class _ReceivePaymentResponseDto implements ReceivePaymentResponseDto { String get transaction; @override BigInt get slot; + + /// Create a copy of ReceivePaymentResponseDto + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$ReceivePaymentResponseDtoImplCopyWith<_$ReceivePaymentResponseDtoImpl> get copyWith => throw _privateConstructorUsedError; } @@ -790,10 +842,15 @@ mixin _$CreateDirectPaymentRequestDto { String? get referenceAccount => throw _privateConstructorUsedError; int get amount => throw _privateConstructorUsedError; Cluster get cluster => throw _privateConstructorUsedError; + String? get mintAddress => throw _privateConstructorUsedError; bool get durable => throw _privateConstructorUsedError; + /// Serializes this CreateDirectPaymentRequestDto to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of CreateDirectPaymentRequestDto + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $CreateDirectPaymentRequestDtoCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -812,6 +869,7 @@ abstract class $CreateDirectPaymentRequestDtoCopyWith<$Res> { String? referenceAccount, int amount, Cluster cluster, + String? mintAddress, bool durable}); } @@ -826,6 +884,8 @@ class _$CreateDirectPaymentRequestDtoCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of CreateDirectPaymentRequestDto + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -834,6 +894,7 @@ class _$CreateDirectPaymentRequestDtoCopyWithImpl<$Res, Object? referenceAccount = freezed, Object? amount = null, Object? cluster = null, + Object? mintAddress = freezed, Object? durable = null, }) { return _then(_value.copyWith( @@ -857,6 +918,10 @@ class _$CreateDirectPaymentRequestDtoCopyWithImpl<$Res, ? _value.cluster : cluster // ignore: cast_nullable_to_non_nullable as Cluster, + mintAddress: freezed == mintAddress + ? _value.mintAddress + : mintAddress // ignore: cast_nullable_to_non_nullable + as String?, durable: null == durable ? _value.durable : durable // ignore: cast_nullable_to_non_nullable @@ -880,6 +945,7 @@ abstract class _$$CreateDirectPaymentRequestDtoImplCopyWith<$Res> String? referenceAccount, int amount, Cluster cluster, + String? mintAddress, bool durable}); } @@ -893,6 +959,8 @@ class __$$CreateDirectPaymentRequestDtoImplCopyWithImpl<$Res> $Res Function(_$CreateDirectPaymentRequestDtoImpl) _then) : super(_value, _then); + /// Create a copy of CreateDirectPaymentRequestDto + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -901,6 +969,7 @@ class __$$CreateDirectPaymentRequestDtoImplCopyWithImpl<$Res> Object? referenceAccount = freezed, Object? amount = null, Object? cluster = null, + Object? mintAddress = freezed, Object? durable = null, }) { return _then(_$CreateDirectPaymentRequestDtoImpl( @@ -924,6 +993,10 @@ class __$$CreateDirectPaymentRequestDtoImplCopyWithImpl<$Res> ? _value.cluster : cluster // ignore: cast_nullable_to_non_nullable as Cluster, + mintAddress: freezed == mintAddress + ? _value.mintAddress + : mintAddress // ignore: cast_nullable_to_non_nullable + as String?, durable: null == durable ? _value.durable : durable // ignore: cast_nullable_to_non_nullable @@ -942,6 +1015,7 @@ class _$CreateDirectPaymentRequestDtoImpl required this.referenceAccount, required this.amount, required this.cluster, + this.mintAddress, this.durable = false}); factory _$CreateDirectPaymentRequestDtoImpl.fromJson( @@ -959,12 +1033,14 @@ class _$CreateDirectPaymentRequestDtoImpl @override final Cluster cluster; @override + final String? mintAddress; + @override @JsonKey() final bool durable; @override String toString() { - return 'CreateDirectPaymentRequestDto(senderAccount: $senderAccount, receiverAccount: $receiverAccount, referenceAccount: $referenceAccount, amount: $amount, cluster: $cluster, durable: $durable)'; + return 'CreateDirectPaymentRequestDto(senderAccount: $senderAccount, receiverAccount: $receiverAccount, referenceAccount: $referenceAccount, amount: $amount, cluster: $cluster, mintAddress: $mintAddress, durable: $durable)'; } @override @@ -980,15 +1056,19 @@ class _$CreateDirectPaymentRequestDtoImpl other.referenceAccount == referenceAccount) && (identical(other.amount, amount) || other.amount == amount) && (identical(other.cluster, cluster) || other.cluster == cluster) && + (identical(other.mintAddress, mintAddress) || + other.mintAddress == mintAddress) && (identical(other.durable, durable) || other.durable == durable)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, senderAccount, receiverAccount, - referenceAccount, amount, cluster, durable); + referenceAccount, amount, cluster, mintAddress, durable); - @JsonKey(ignore: true) + /// Create a copy of CreateDirectPaymentRequestDto + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CreateDirectPaymentRequestDtoImplCopyWith< @@ -1012,6 +1092,7 @@ abstract class _CreateDirectPaymentRequestDto required final String? referenceAccount, required final int amount, required final Cluster cluster, + final String? mintAddress, final bool durable}) = _$CreateDirectPaymentRequestDtoImpl; factory _CreateDirectPaymentRequestDto.fromJson(Map json) = @@ -1028,9 +1109,14 @@ abstract class _CreateDirectPaymentRequestDto @override Cluster get cluster; @override + String? get mintAddress; + @override bool get durable; + + /// Create a copy of CreateDirectPaymentRequestDto + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$CreateDirectPaymentRequestDtoImplCopyWith< _$CreateDirectPaymentRequestDtoImpl> get copyWith => throw _privateConstructorUsedError; @@ -1047,8 +1133,12 @@ mixin _$CreateDirectPaymentResponseDto { String get transaction => throw _privateConstructorUsedError; BigInt get slot => throw _privateConstructorUsedError; + /// Serializes this CreateDirectPaymentResponseDto to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of CreateDirectPaymentResponseDto + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $CreateDirectPaymentResponseDtoCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1075,6 +1165,8 @@ class _$CreateDirectPaymentResponseDtoCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of CreateDirectPaymentResponseDto + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1121,6 +1213,8 @@ class __$$CreateDirectPaymentResponseDtoImplCopyWithImpl<$Res> $Res Function(_$CreateDirectPaymentResponseDtoImpl) _then) : super(_value, _then); + /// Create a copy of CreateDirectPaymentResponseDto + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1179,11 +1273,13 @@ class _$CreateDirectPaymentResponseDtoImpl (identical(other.slot, slot) || other.slot == slot)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, fee, transaction, slot); - @JsonKey(ignore: true) + /// Create a copy of CreateDirectPaymentResponseDto + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CreateDirectPaymentResponseDtoImplCopyWith< @@ -1215,8 +1311,11 @@ abstract class _CreateDirectPaymentResponseDto String get transaction; @override BigInt get slot; + + /// Create a copy of CreateDirectPaymentResponseDto + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$CreateDirectPaymentResponseDtoImplCopyWith< _$CreateDirectPaymentResponseDtoImpl> get copyWith => throw _privateConstructorUsedError; @@ -1234,8 +1333,12 @@ mixin _$CancelPaymentRequestDto { Cluster get cluster => throw _privateConstructorUsedError; bool get durable => throw _privateConstructorUsedError; + /// Serializes this CancelPaymentRequestDto to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of CancelPaymentRequestDto + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $CancelPaymentRequestDtoCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1264,6 +1367,8 @@ class _$CancelPaymentRequestDtoCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of CancelPaymentRequestDto + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1319,6 +1424,8 @@ class __$$CancelPaymentRequestDtoImplCopyWithImpl<$Res> $Res Function(_$CancelPaymentRequestDtoImpl) _then) : super(_value, _then); + /// Create a copy of CancelPaymentRequestDto + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1388,12 +1495,14 @@ class _$CancelPaymentRequestDtoImpl implements _CancelPaymentRequestDto { (identical(other.durable, durable) || other.durable == durable)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, senderAccount, escrowAccount, cluster, durable); - @JsonKey(ignore: true) + /// Create a copy of CancelPaymentRequestDto + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CancelPaymentRequestDtoImplCopyWith<_$CancelPaymentRequestDtoImpl> @@ -1426,8 +1535,11 @@ abstract class _CancelPaymentRequestDto implements CancelPaymentRequestDto { Cluster get cluster; @override bool get durable; + + /// Create a copy of CancelPaymentRequestDto + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$CancelPaymentRequestDtoImplCopyWith<_$CancelPaymentRequestDtoImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1442,8 +1554,12 @@ mixin _$CancelPaymentResponseDto { String get transaction => throw _privateConstructorUsedError; BigInt get slot => throw _privateConstructorUsedError; + /// Serializes this CancelPaymentResponseDto to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of CancelPaymentResponseDto + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $CancelPaymentResponseDtoCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1468,6 +1584,8 @@ class _$CancelPaymentResponseDtoCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of CancelPaymentResponseDto + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1509,6 +1627,8 @@ class __$$CancelPaymentResponseDtoImplCopyWithImpl<$Res> $Res Function(_$CancelPaymentResponseDtoImpl) _then) : super(_value, _then); + /// Create a copy of CancelPaymentResponseDto + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1557,11 +1677,13 @@ class _$CancelPaymentResponseDtoImpl implements _CancelPaymentResponseDto { (identical(other.slot, slot) || other.slot == slot)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, transaction, slot); - @JsonKey(ignore: true) + /// Create a copy of CancelPaymentResponseDto + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CancelPaymentResponseDtoImplCopyWith<_$CancelPaymentResponseDtoImpl> @@ -1588,8 +1710,11 @@ abstract class _CancelPaymentResponseDto implements CancelPaymentResponseDto { String get transaction; @override BigInt get slot; + + /// Create a copy of CancelPaymentResponseDto + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$CancelPaymentResponseDtoImplCopyWith<_$CancelPaymentResponseDtoImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/espressocash_api/lib/src/dto/create_payment.g.dart b/packages/espressocash_api/lib/src/dto/create_payment.g.dart index a7be9b4831..22979663db 100644 --- a/packages/espressocash_api/lib/src/dto/create_payment.g.dart +++ b/packages/espressocash_api/lib/src/dto/create_payment.g.dart @@ -85,6 +85,7 @@ _$CreateDirectPaymentRequestDtoImpl referenceAccount: json['referenceAccount'] as String?, amount: (json['amount'] as num).toInt(), cluster: $enumDecode(_$ClusterEnumMap, json['cluster']), + mintAddress: json['mintAddress'] as String?, durable: json['durable'] as bool? ?? false, ); @@ -96,6 +97,7 @@ Map _$$CreateDirectPaymentRequestDtoImplToJson( 'referenceAccount': instance.referenceAccount, 'amount': instance.amount, 'cluster': _$ClusterEnumMap[instance.cluster]!, + 'mintAddress': instance.mintAddress, 'durable': instance.durable, };