Add Nordigen

This commit is contained in:
Hillel Coren 2023-12-26 10:59:41 +02:00
parent 1c87632d2b
commit d46d3b3347
4 changed files with 94 additions and 5 deletions

View File

@ -73,6 +73,7 @@ abstract class BankAccountEntity extends Object
disabledUpstream: false, disabledUpstream: false,
fromDate: '', fromDate: '',
autoSync: false, autoSync: false,
integrationType: '',
); );
} }
@ -103,6 +104,9 @@ abstract class BankAccountEntity extends Object
@BuiltValueField(wireName: 'disabled_upstream') @BuiltValueField(wireName: 'disabled_upstream')
bool get disabledUpstream; bool get disabledUpstream;
@BuiltValueField(wireName: 'integration_type')
bool get integrationType;
double get balance; double get balance;
String get currency; String get currency;
@ -203,7 +207,8 @@ abstract class BankAccountEntity extends Object
static void _initializeBuilder(BankAccountEntityBuilder builder) => builder static void _initializeBuilder(BankAccountEntityBuilder builder) => builder
..fromDate = '' ..fromDate = ''
..disabledUpstream = false ..disabledUpstream = false
..autoSync = false; ..autoSync = false
..integrationType = '';
static Serializer<BankAccountEntity> get serializer => static Serializer<BankAccountEntity> get serializer =>
_$bankAccountEntitySerializer; _$bankAccountEntitySerializer;

View File

@ -139,6 +139,9 @@ class _$BankAccountEntitySerializer
'disabled_upstream', 'disabled_upstream',
serializers.serialize(object.disabledUpstream, serializers.serialize(object.disabledUpstream,
specifiedType: const FullType(bool)), specifiedType: const FullType(bool)),
'integration_type',
serializers.serialize(object.integrationType,
specifiedType: const FullType(bool)),
'balance', 'balance',
serializers.serialize(object.balance, serializers.serialize(object.balance,
specifiedType: const FullType(double)), specifiedType: const FullType(double)),
@ -229,6 +232,10 @@ class _$BankAccountEntitySerializer
result.disabledUpstream = serializers.deserialize(value, result.disabledUpstream = serializers.deserialize(value,
specifiedType: const FullType(bool))! as bool; specifiedType: const FullType(bool))! as bool;
break; break;
case 'integration_type':
result.integrationType = serializers.deserialize(value,
specifiedType: const FullType(bool))! as bool;
break;
case 'balance': case 'balance':
result.balance = serializers.deserialize(value, result.balance = serializers.deserialize(value,
specifiedType: const FullType(double))! as double; specifiedType: const FullType(double))! as double;
@ -494,6 +501,8 @@ class _$BankAccountEntity extends BankAccountEntity {
@override @override
final bool disabledUpstream; final bool disabledUpstream;
@override @override
final bool integrationType;
@override
final double balance; final double balance;
@override @override
final String currency; final String currency;
@ -526,6 +535,7 @@ class _$BankAccountEntity extends BankAccountEntity {
required this.fromDate, required this.fromDate,
required this.autoSync, required this.autoSync,
required this.disabledUpstream, required this.disabledUpstream,
required this.integrationType,
required this.balance, required this.balance,
required this.currency, required this.currency,
this.isChanged, this.isChanged,
@ -549,6 +559,8 @@ class _$BankAccountEntity extends BankAccountEntity {
autoSync, r'BankAccountEntity', 'autoSync'); autoSync, r'BankAccountEntity', 'autoSync');
BuiltValueNullFieldError.checkNotNull( BuiltValueNullFieldError.checkNotNull(
disabledUpstream, r'BankAccountEntity', 'disabledUpstream'); disabledUpstream, r'BankAccountEntity', 'disabledUpstream');
BuiltValueNullFieldError.checkNotNull(
integrationType, r'BankAccountEntity', 'integrationType');
BuiltValueNullFieldError.checkNotNull( BuiltValueNullFieldError.checkNotNull(
balance, r'BankAccountEntity', 'balance'); balance, r'BankAccountEntity', 'balance');
BuiltValueNullFieldError.checkNotNull( BuiltValueNullFieldError.checkNotNull(
@ -581,6 +593,7 @@ class _$BankAccountEntity extends BankAccountEntity {
fromDate == other.fromDate && fromDate == other.fromDate &&
autoSync == other.autoSync && autoSync == other.autoSync &&
disabledUpstream == other.disabledUpstream && disabledUpstream == other.disabledUpstream &&
integrationType == other.integrationType &&
balance == other.balance && balance == other.balance &&
currency == other.currency && currency == other.currency &&
isChanged == other.isChanged && isChanged == other.isChanged &&
@ -605,6 +618,7 @@ class _$BankAccountEntity extends BankAccountEntity {
_$hash = $jc(_$hash, fromDate.hashCode); _$hash = $jc(_$hash, fromDate.hashCode);
_$hash = $jc(_$hash, autoSync.hashCode); _$hash = $jc(_$hash, autoSync.hashCode);
_$hash = $jc(_$hash, disabledUpstream.hashCode); _$hash = $jc(_$hash, disabledUpstream.hashCode);
_$hash = $jc(_$hash, integrationType.hashCode);
_$hash = $jc(_$hash, balance.hashCode); _$hash = $jc(_$hash, balance.hashCode);
_$hash = $jc(_$hash, currency.hashCode); _$hash = $jc(_$hash, currency.hashCode);
_$hash = $jc(_$hash, isChanged.hashCode); _$hash = $jc(_$hash, isChanged.hashCode);
@ -629,6 +643,7 @@ class _$BankAccountEntity extends BankAccountEntity {
..add('fromDate', fromDate) ..add('fromDate', fromDate)
..add('autoSync', autoSync) ..add('autoSync', autoSync)
..add('disabledUpstream', disabledUpstream) ..add('disabledUpstream', disabledUpstream)
..add('integrationType', integrationType)
..add('balance', balance) ..add('balance', balance)
..add('currency', currency) ..add('currency', currency)
..add('isChanged', isChanged) ..add('isChanged', isChanged)
@ -676,6 +691,11 @@ class BankAccountEntityBuilder
set disabledUpstream(bool? disabledUpstream) => set disabledUpstream(bool? disabledUpstream) =>
_$this._disabledUpstream = disabledUpstream; _$this._disabledUpstream = disabledUpstream;
bool? _integrationType;
bool? get integrationType => _$this._integrationType;
set integrationType(bool? integrationType) =>
_$this._integrationType = integrationType;
double? _balance; double? _balance;
double? get balance => _$this._balance; double? get balance => _$this._balance;
set balance(double? balance) => _$this._balance = balance; set balance(double? balance) => _$this._balance = balance;
@ -732,6 +752,7 @@ class BankAccountEntityBuilder
_fromDate = $v.fromDate; _fromDate = $v.fromDate;
_autoSync = $v.autoSync; _autoSync = $v.autoSync;
_disabledUpstream = $v.disabledUpstream; _disabledUpstream = $v.disabledUpstream;
_integrationType = $v.integrationType;
_balance = $v.balance; _balance = $v.balance;
_currency = $v.currency; _currency = $v.currency;
_isChanged = $v.isChanged; _isChanged = $v.isChanged;
@ -778,10 +799,11 @@ class BankAccountEntityBuilder
autoSync, r'BankAccountEntity', 'autoSync'), autoSync, r'BankAccountEntity', 'autoSync'),
disabledUpstream: BuiltValueNullFieldError.checkNotNull( disabledUpstream: BuiltValueNullFieldError.checkNotNull(
disabledUpstream, r'BankAccountEntity', 'disabledUpstream'), disabledUpstream, r'BankAccountEntity', 'disabledUpstream'),
integrationType: BuiltValueNullFieldError.checkNotNull(
integrationType, r'BankAccountEntity', 'integrationType'),
balance: BuiltValueNullFieldError.checkNotNull( balance: BuiltValueNullFieldError.checkNotNull(
balance, r'BankAccountEntity', 'balance'), balance, r'BankAccountEntity', 'balance'),
currency: BuiltValueNullFieldError.checkNotNull( currency: BuiltValueNullFieldError.checkNotNull(currency, r'BankAccountEntity', 'currency'),
currency, r'BankAccountEntity', 'currency'),
isChanged: isChanged, isChanged: isChanged,
createdAt: BuiltValueNullFieldError.checkNotNull(createdAt, r'BankAccountEntity', 'createdAt'), createdAt: BuiltValueNullFieldError.checkNotNull(createdAt, r'BankAccountEntity', 'createdAt'),
updatedAt: BuiltValueNullFieldError.checkNotNull(updatedAt, r'BankAccountEntity', 'updatedAt'), updatedAt: BuiltValueNullFieldError.checkNotNull(updatedAt, r'BankAccountEntity', 'updatedAt'),

View File

@ -107,6 +107,8 @@ abstract class TransactionEntity extends Object
categoryId: '', categoryId: '',
transactionRuleId: '', transactionRuleId: '',
paymentId: '', paymentId: '',
participant: '',
participantName: '',
); );
} }
@ -161,7 +163,11 @@ abstract class TransactionEntity extends Object
@BuiltValueField(wireName: 'bank_transaction_rule_id') @BuiltValueField(wireName: 'bank_transaction_rule_id')
String get transactionRuleId; String get transactionRuleId;
@BuiltValueField(serialize: false) @BuiltValueField(wireName: 'participant_name')
String get participantName;
String get participant;
String? get pendingVendorId; String? get pendingVendorId;
@BuiltValueField(serialize: false) @BuiltValueField(serialize: false)
@ -383,7 +389,9 @@ abstract class TransactionEntity extends Object
..bankAccountId = '' ..bankAccountId = ''
..transactionRuleId = '' ..transactionRuleId = ''
..paymentId = '' ..paymentId = ''
..currencyId = ''; ..currencyId = ''
..participantName = ''
..participant = '';
static Serializer<TransactionEntity> get serializer => static Serializer<TransactionEntity> get serializer =>
_$transactionEntitySerializer; _$transactionEntitySerializer;

View File

@ -166,6 +166,12 @@ class _$TransactionEntitySerializer
'bank_transaction_rule_id', 'bank_transaction_rule_id',
serializers.serialize(object.transactionRuleId, serializers.serialize(object.transactionRuleId,
specifiedType: const FullType(String)), specifiedType: const FullType(String)),
'participant_name',
serializers.serialize(object.participantName,
specifiedType: const FullType(String)),
'participant',
serializers.serialize(object.participant,
specifiedType: const FullType(String)),
'created_at', 'created_at',
serializers.serialize(object.createdAt, serializers.serialize(object.createdAt,
specifiedType: const FullType(int)), specifiedType: const FullType(int)),
@ -179,6 +185,13 @@ class _$TransactionEntitySerializer
serializers.serialize(object.id, specifiedType: const FullType(String)), serializers.serialize(object.id, specifiedType: const FullType(String)),
]; ];
Object? value; Object? value;
value = object.pendingVendorId;
if (value != null) {
result
..add('pendingVendorId')
..add(serializers.serialize(value,
specifiedType: const FullType(String)));
}
value = object.isChanged; value = object.isChanged;
if (value != null) { if (value != null) {
result result
@ -282,6 +295,18 @@ class _$TransactionEntitySerializer
result.transactionRuleId = serializers.deserialize(value, result.transactionRuleId = serializers.deserialize(value,
specifiedType: const FullType(String))! as String; specifiedType: const FullType(String))! as String;
break; break;
case 'participant_name':
result.participantName = serializers.deserialize(value,
specifiedType: const FullType(String))! as String;
break;
case 'participant':
result.participant = serializers.deserialize(value,
specifiedType: const FullType(String))! as String;
break;
case 'pendingVendorId':
result.pendingVendorId = serializers.deserialize(value,
specifiedType: const FullType(String)) as String?;
break;
case 'isChanged': case 'isChanged':
result.isChanged = serializers.deserialize(value, result.isChanged = serializers.deserialize(value,
specifiedType: const FullType(bool)) as bool?; specifiedType: const FullType(bool)) as bool?;
@ -606,6 +631,10 @@ class _$TransactionEntity extends TransactionEntity {
@override @override
final String transactionRuleId; final String transactionRuleId;
@override @override
final String participantName;
@override
final String participant;
@override
final String? pendingVendorId; final String? pendingVendorId;
@override @override
final String? pendingCategoryId; final String? pendingCategoryId;
@ -648,6 +677,8 @@ class _$TransactionEntity extends TransactionEntity {
required this.vendorId, required this.vendorId,
required this.transactionId, required this.transactionId,
required this.transactionRuleId, required this.transactionRuleId,
required this.participantName,
required this.participant,
this.pendingVendorId, this.pendingVendorId,
this.pendingCategoryId, this.pendingCategoryId,
this.pendingExpenseId, this.pendingExpenseId,
@ -689,6 +720,10 @@ class _$TransactionEntity extends TransactionEntity {
transactionId, r'TransactionEntity', 'transactionId'); transactionId, r'TransactionEntity', 'transactionId');
BuiltValueNullFieldError.checkNotNull( BuiltValueNullFieldError.checkNotNull(
transactionRuleId, r'TransactionEntity', 'transactionRuleId'); transactionRuleId, r'TransactionEntity', 'transactionRuleId');
BuiltValueNullFieldError.checkNotNull(
participantName, r'TransactionEntity', 'participantName');
BuiltValueNullFieldError.checkNotNull(
participant, r'TransactionEntity', 'participant');
BuiltValueNullFieldError.checkNotNull( BuiltValueNullFieldError.checkNotNull(
createdAt, r'TransactionEntity', 'createdAt'); createdAt, r'TransactionEntity', 'createdAt');
BuiltValueNullFieldError.checkNotNull( BuiltValueNullFieldError.checkNotNull(
@ -725,6 +760,8 @@ class _$TransactionEntity extends TransactionEntity {
vendorId == other.vendorId && vendorId == other.vendorId &&
transactionId == other.transactionId && transactionId == other.transactionId &&
transactionRuleId == other.transactionRuleId && transactionRuleId == other.transactionRuleId &&
participantName == other.participantName &&
participant == other.participant &&
pendingVendorId == other.pendingVendorId && pendingVendorId == other.pendingVendorId &&
pendingCategoryId == other.pendingCategoryId && pendingCategoryId == other.pendingCategoryId &&
pendingExpenseId == other.pendingExpenseId && pendingExpenseId == other.pendingExpenseId &&
@ -758,6 +795,8 @@ class _$TransactionEntity extends TransactionEntity {
_$hash = $jc(_$hash, vendorId.hashCode); _$hash = $jc(_$hash, vendorId.hashCode);
_$hash = $jc(_$hash, transactionId.hashCode); _$hash = $jc(_$hash, transactionId.hashCode);
_$hash = $jc(_$hash, transactionRuleId.hashCode); _$hash = $jc(_$hash, transactionRuleId.hashCode);
_$hash = $jc(_$hash, participantName.hashCode);
_$hash = $jc(_$hash, participant.hashCode);
_$hash = $jc(_$hash, pendingVendorId.hashCode); _$hash = $jc(_$hash, pendingVendorId.hashCode);
_$hash = $jc(_$hash, pendingCategoryId.hashCode); _$hash = $jc(_$hash, pendingCategoryId.hashCode);
_$hash = $jc(_$hash, pendingExpenseId.hashCode); _$hash = $jc(_$hash, pendingExpenseId.hashCode);
@ -791,6 +830,8 @@ class _$TransactionEntity extends TransactionEntity {
..add('vendorId', vendorId) ..add('vendorId', vendorId)
..add('transactionId', transactionId) ..add('transactionId', transactionId)
..add('transactionRuleId', transactionRuleId) ..add('transactionRuleId', transactionRuleId)
..add('participantName', participantName)
..add('participant', participant)
..add('pendingVendorId', pendingVendorId) ..add('pendingVendorId', pendingVendorId)
..add('pendingCategoryId', pendingCategoryId) ..add('pendingCategoryId', pendingCategoryId)
..add('pendingExpenseId', pendingExpenseId) ..add('pendingExpenseId', pendingExpenseId)
@ -873,6 +914,15 @@ class TransactionEntityBuilder
set transactionRuleId(String? transactionRuleId) => set transactionRuleId(String? transactionRuleId) =>
_$this._transactionRuleId = transactionRuleId; _$this._transactionRuleId = transactionRuleId;
String? _participantName;
String? get participantName => _$this._participantName;
set participantName(String? participantName) =>
_$this._participantName = participantName;
String? _participant;
String? get participant => _$this._participant;
set participant(String? participant) => _$this._participant = participant;
String? _pendingVendorId; String? _pendingVendorId;
String? get pendingVendorId => _$this._pendingVendorId; String? get pendingVendorId => _$this._pendingVendorId;
set pendingVendorId(String? pendingVendorId) => set pendingVendorId(String? pendingVendorId) =>
@ -944,6 +994,8 @@ class TransactionEntityBuilder
_vendorId = $v.vendorId; _vendorId = $v.vendorId;
_transactionId = $v.transactionId; _transactionId = $v.transactionId;
_transactionRuleId = $v.transactionRuleId; _transactionRuleId = $v.transactionRuleId;
_participantName = $v.participantName;
_participant = $v.participant;
_pendingVendorId = $v.pendingVendorId; _pendingVendorId = $v.pendingVendorId;
_pendingCategoryId = $v.pendingCategoryId; _pendingCategoryId = $v.pendingCategoryId;
_pendingExpenseId = $v.pendingExpenseId; _pendingExpenseId = $v.pendingExpenseId;
@ -1001,6 +1053,8 @@ class TransactionEntityBuilder
vendorId: BuiltValueNullFieldError.checkNotNull(vendorId, r'TransactionEntity', 'vendorId'), vendorId: BuiltValueNullFieldError.checkNotNull(vendorId, r'TransactionEntity', 'vendorId'),
transactionId: BuiltValueNullFieldError.checkNotNull(transactionId, r'TransactionEntity', 'transactionId'), transactionId: BuiltValueNullFieldError.checkNotNull(transactionId, r'TransactionEntity', 'transactionId'),
transactionRuleId: BuiltValueNullFieldError.checkNotNull(transactionRuleId, r'TransactionEntity', 'transactionRuleId'), transactionRuleId: BuiltValueNullFieldError.checkNotNull(transactionRuleId, r'TransactionEntity', 'transactionRuleId'),
participantName: BuiltValueNullFieldError.checkNotNull(participantName, r'TransactionEntity', 'participantName'),
participant: BuiltValueNullFieldError.checkNotNull(participant, r'TransactionEntity', 'participant'),
pendingVendorId: pendingVendorId, pendingVendorId: pendingVendorId,
pendingCategoryId: pendingCategoryId, pendingCategoryId: pendingCategoryId,
pendingExpenseId: pendingExpenseId, pendingExpenseId: pendingExpenseId,