Limit –idempotencyKey to payments

This commit is contained in:
Hillel Coren 2022-10-09 13:47:27 +03:00
parent 3ba92a1718
commit 9b84205716
49 changed files with 446 additions and 1115 deletions

View File

@ -56,7 +56,6 @@ abstract class BankAccountEntity extends Object
factory BankAccountEntity({String id, AppState state}) {
return _$BankAccountEntity._(
id: id ?? BaseEntity.nextId,
idempotencyKey: BaseEntity.nextIdempotencyKey,
isChanged: false,
isDeleted: false,
createdAt: 0,

View File

@ -177,13 +177,6 @@ class _$BankAccountEntitySerializer
..add(serializers.serialize(value,
specifiedType: const FullType(String)));
}
value = object.idempotencyKey;
if (value != null) {
result
..add('idempotency_key')
..add(serializers.serialize(value,
specifiedType: const FullType(String)));
}
return result;
}
@ -251,10 +244,6 @@ class _$BankAccountEntitySerializer
result.assignedUserId = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'idempotency_key':
result.idempotencyKey = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'id':
result.id = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
@ -484,8 +473,6 @@ class _$BankAccountEntity extends BankAccountEntity {
@override
final String assignedUserId;
@override
final String idempotencyKey;
@override
final String id;
factory _$BankAccountEntity(
@ -506,7 +493,6 @@ class _$BankAccountEntity extends BankAccountEntity {
this.isDeleted,
this.createdUserId,
this.assignedUserId,
this.idempotencyKey,
this.id})
: super._() {
BuiltValueNullFieldError.checkNotNull(name, 'BankAccountEntity', 'name');
@ -553,7 +539,6 @@ class _$BankAccountEntity extends BankAccountEntity {
isDeleted == other.isDeleted &&
createdUserId == other.createdUserId &&
assignedUserId == other.assignedUserId &&
idempotencyKey == other.idempotencyKey &&
id == other.id;
}
@ -572,23 +557,19 @@ class _$BankAccountEntity extends BankAccountEntity {
$jc(
$jc(
$jc(
$jc(
$jc(
$jc(0,
name.hashCode),
status.hashCode),
type.hashCode),
provider.hashCode),
balance.hashCode),
currency.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
archivedAt.hashCode),
isDeleted.hashCode),
createdUserId.hashCode),
assignedUserId.hashCode),
idempotencyKey.hashCode),
$jc($jc(0, name.hashCode),
status.hashCode),
type.hashCode),
provider.hashCode),
balance.hashCode),
currency.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
archivedAt.hashCode),
isDeleted.hashCode),
createdUserId.hashCode),
assignedUserId.hashCode),
id.hashCode));
}
@ -608,7 +589,6 @@ class _$BankAccountEntity extends BankAccountEntity {
..add('isDeleted', isDeleted)
..add('createdUserId', createdUserId)
..add('assignedUserId', assignedUserId)
..add('idempotencyKey', idempotencyKey)
..add('id', id))
.toString();
}
@ -672,11 +652,6 @@ class BankAccountEntityBuilder
set assignedUserId(String assignedUserId) =>
_$this._assignedUserId = assignedUserId;
String _idempotencyKey;
String get idempotencyKey => _$this._idempotencyKey;
set idempotencyKey(String idempotencyKey) =>
_$this._idempotencyKey = idempotencyKey;
String _id;
String get id => _$this._id;
set id(String id) => _$this._id = id;
@ -699,7 +674,6 @@ class BankAccountEntityBuilder
_isDeleted = $v.isDeleted;
_createdUserId = $v.createdUserId;
_assignedUserId = $v.assignedUserId;
_idempotencyKey = $v.idempotencyKey;
_id = $v.id;
_$v = null;
}
@ -743,7 +717,6 @@ class BankAccountEntityBuilder
isDeleted: isDeleted,
createdUserId: createdUserId,
assignedUserId: assignedUserId,
idempotencyKey: idempotencyKey,
id: BuiltValueNullFieldError.checkNotNull(id, 'BankAccountEntity', 'id'));
replace(_$result);
return _$result;

View File

@ -115,7 +115,6 @@ abstract class ClientEntity extends Object
}) {
return _$ClientEntity._(
id: id ?? BaseEntity.nextId,
idempotencyKey: BaseEntity.nextIdempotencyKey,
isChanged: false,
settings: SettingsEntity(),
name: '',
@ -179,7 +178,6 @@ abstract class ClientEntity extends Object
ClientEntity get clone => rebuild((b) => b
..id = BaseEntity.nextId
..idempotencyKey = BaseEntity.nextIdempotencyKey
..idNumber = ''
..documents.clear()
..isChanged = false
@ -778,7 +776,6 @@ abstract class ClientContactEntity extends Object
factory ClientContactEntity() {
return _$ClientContactEntity._(
id: BaseEntity.nextId,
idempotencyKey: BaseEntity.nextIdempotencyKey,
isChanged: false,
firstName: '',
lastName: '',

View File

@ -283,13 +283,6 @@ class _$ClientEntitySerializer implements StructuredSerializer<ClientEntity> {
..add(serializers.serialize(value,
specifiedType: const FullType(String)));
}
value = object.idempotencyKey;
if (value != null) {
result
..add('idempotency_key')
..add(serializers.serialize(value,
specifiedType: const FullType(String)));
}
return result;
}
@ -508,10 +501,6 @@ class _$ClientEntitySerializer implements StructuredSerializer<ClientEntity> {
result.assignedUserId = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'idempotency_key':
result.idempotencyKey = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'id':
result.id = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
@ -620,13 +609,6 @@ class _$ClientContactEntitySerializer
..add(serializers.serialize(value,
specifiedType: const FullType(String)));
}
value = object.idempotencyKey;
if (value != null) {
result
..add('idempotency_key')
..add(serializers.serialize(value,
specifiedType: const FullType(String)));
}
return result;
}
@ -726,10 +708,6 @@ class _$ClientContactEntitySerializer
result.assignedUserId = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'idempotency_key':
result.idempotencyKey = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'id':
result.id = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
@ -1024,8 +1002,6 @@ class _$ClientEntity extends ClientEntity {
@override
final String assignedUserId;
@override
final String idempotencyKey;
@override
final String id;
factory _$ClientEntity([void Function(ClientEntityBuilder) updates]) =>
@ -1080,7 +1056,6 @@ class _$ClientEntity extends ClientEntity {
this.isDeleted,
this.createdUserId,
this.assignedUserId,
this.idempotencyKey,
this.id})
: super._() {
BuiltValueNullFieldError.checkNotNull(groupId, 'ClientEntity', 'groupId');
@ -1215,7 +1190,6 @@ class _$ClientEntity extends ClientEntity {
isDeleted == other.isDeleted &&
createdUserId == other.createdUserId &&
assignedUserId == other.assignedUserId &&
idempotencyKey == other.idempotencyKey &&
id == other.id;
}
@ -1240,25 +1214,25 @@ class _$ClientEntity extends ClientEntity {
$jc(
$jc(
$jc(
$jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc(0, groupId.hashCode), name.hashCode), displayName.hashCode), balance.hashCode), creditBalance.hashCode), paidToDate.hashCode), clientHash.hashCode), address1.hashCode), address2.hashCode), city.hashCode), state.hashCode), postalCode.hashCode), countryId.hashCode), phone.hashCode), privateNotes.hashCode), publicNotes.hashCode), website.hashCode), industryId.hashCode), sizeId.hashCode), vatNumber.hashCode), idNumber.hashCode), number.hashCode), shippingAddress1.hashCode), shippingAddress2.hashCode), shippingCity.hashCode), shippingState.hashCode), shippingPostalCode.hashCode), shippingCountryId.hashCode), settings.hashCode), lastLogin.hashCode),
customValue1.hashCode),
customValue2.hashCode),
customValue3.hashCode),
customValue4.hashCode),
contacts.hashCode),
activities.hashCode),
ledger.hashCode),
gatewayTokens.hashCode),
documents.hashCode),
systemLogs.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
archivedAt.hashCode),
isDeleted.hashCode),
createdUserId.hashCode),
assignedUserId.hashCode),
idempotencyKey.hashCode),
$jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc(0, groupId.hashCode), name.hashCode), displayName.hashCode), balance.hashCode), creditBalance.hashCode), paidToDate.hashCode), clientHash.hashCode), address1.hashCode), address2.hashCode), city.hashCode), state.hashCode), postalCode.hashCode), countryId.hashCode), phone.hashCode), privateNotes.hashCode), publicNotes.hashCode), website.hashCode), industryId.hashCode), sizeId.hashCode), vatNumber.hashCode), idNumber.hashCode), number.hashCode), shippingAddress1.hashCode), shippingAddress2.hashCode), shippingCity.hashCode), shippingState.hashCode), shippingPostalCode.hashCode), shippingCountryId.hashCode), settings.hashCode),
lastLogin.hashCode),
customValue1.hashCode),
customValue2.hashCode),
customValue3.hashCode),
customValue4.hashCode),
contacts.hashCode),
activities.hashCode),
ledger.hashCode),
gatewayTokens.hashCode),
documents.hashCode),
systemLogs.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
archivedAt.hashCode),
isDeleted.hashCode),
createdUserId.hashCode),
assignedUserId.hashCode),
id.hashCode));
}
@ -1313,7 +1287,6 @@ class _$ClientEntity extends ClientEntity {
..add('isDeleted', isDeleted)
..add('createdUserId', createdUserId)
..add('assignedUserId', assignedUserId)
..add('idempotencyKey', idempotencyKey)
..add('id', id))
.toString();
}
@ -1535,11 +1508,6 @@ class ClientEntityBuilder
set assignedUserId(String assignedUserId) =>
_$this._assignedUserId = assignedUserId;
String _idempotencyKey;
String get idempotencyKey => _$this._idempotencyKey;
set idempotencyKey(String idempotencyKey) =>
_$this._idempotencyKey = idempotencyKey;
String _id;
String get id => _$this._id;
set id(String id) => _$this._id = id;
@ -1599,7 +1567,6 @@ class ClientEntityBuilder
_isDeleted = $v.isDeleted;
_createdUserId = $v.createdUserId;
_assignedUserId = $v.assignedUserId;
_idempotencyKey = $v.idempotencyKey;
_id = $v.id;
_$v = null;
}
@ -1680,7 +1647,6 @@ class ClientEntityBuilder
isDeleted: isDeleted,
createdUserId: createdUserId,
assignedUserId: assignedUserId,
idempotencyKey: idempotencyKey,
id: BuiltValueNullFieldError.checkNotNull(id, 'ClientEntity', 'id'));
} catch (_) {
String _$failedField;
@ -1755,8 +1721,6 @@ class _$ClientContactEntity extends ClientContactEntity {
@override
final String assignedUserId;
@override
final String idempotencyKey;
@override
final String id;
factory _$ClientContactEntity(
@ -1785,7 +1749,6 @@ class _$ClientContactEntity extends ClientContactEntity {
this.isDeleted,
this.createdUserId,
this.assignedUserId,
this.idempotencyKey,
this.id})
: super._() {
BuiltValueNullFieldError.checkNotNull(
@ -1858,7 +1821,6 @@ class _$ClientContactEntity extends ClientContactEntity {
isDeleted == other.isDeleted &&
createdUserId == other.createdUserId &&
assignedUserId == other.assignedUserId &&
idempotencyKey == other.idempotencyKey &&
id == other.id;
}
@ -1883,25 +1845,25 @@ class _$ClientContactEntity extends ClientContactEntity {
$jc(
$jc(
$jc(
$jc($jc($jc($jc($jc(0, firstName.hashCode), lastName.hashCode), email.hashCode), password.hashCode),
phone.hashCode),
contactKey.hashCode),
isPrimary.hashCode),
sendEmail.hashCode),
customValue1.hashCode),
customValue2.hashCode),
customValue3.hashCode),
customValue4.hashCode),
lastLogin.hashCode),
link.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
archivedAt.hashCode),
isDeleted.hashCode),
createdUserId.hashCode),
assignedUserId.hashCode),
idempotencyKey.hashCode),
$jc($jc($jc($jc(0, firstName.hashCode), lastName.hashCode), email.hashCode),
password.hashCode),
phone.hashCode),
contactKey.hashCode),
isPrimary.hashCode),
sendEmail.hashCode),
customValue1.hashCode),
customValue2.hashCode),
customValue3.hashCode),
customValue4.hashCode),
lastLogin.hashCode),
link.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
archivedAt.hashCode),
isDeleted.hashCode),
createdUserId.hashCode),
assignedUserId.hashCode),
id.hashCode));
}
@ -1929,7 +1891,6 @@ class _$ClientContactEntity extends ClientContactEntity {
..add('isDeleted', isDeleted)
..add('createdUserId', createdUserId)
..add('assignedUserId', assignedUserId)
..add('idempotencyKey', idempotencyKey)
..add('id', id))
.toString();
}
@ -2025,11 +1986,6 @@ class ClientContactEntityBuilder
set assignedUserId(String assignedUserId) =>
_$this._assignedUserId = assignedUserId;
String _idempotencyKey;
String get idempotencyKey => _$this._idempotencyKey;
set idempotencyKey(String idempotencyKey) =>
_$this._idempotencyKey = idempotencyKey;
String _id;
String get id => _$this._id;
set id(String id) => _$this._id = id;
@ -2060,7 +2016,6 @@ class ClientContactEntityBuilder
_isDeleted = $v.isDeleted;
_createdUserId = $v.createdUserId;
_assignedUserId = $v.assignedUserId;
_idempotencyKey = $v.idempotencyKey;
_id = $v.id;
_$v = null;
}
@ -2112,7 +2067,6 @@ class ClientContactEntityBuilder
isDeleted: isDeleted,
createdUserId: createdUserId,
assignedUserId: assignedUserId,
idempotencyKey: idempotencyKey,
id: BuiltValueNullFieldError.checkNotNull(id, 'ClientContactEntity', 'id'));
replace(_$result);
return _$result;

View File

@ -65,7 +65,6 @@ abstract class CompanyGatewayEntity extends Object
factory CompanyGatewayEntity({String id, AppState state}) {
return _$CompanyGatewayEntity._(
id: id ?? BaseEntity.nextId,
idempotencyKey: BaseEntity.nextIdempotencyKey,
isChanged: false,
isDeleted: false,
gatewayId: '',

View File

@ -244,13 +244,6 @@ class _$CompanyGatewayEntitySerializer
..add(serializers.serialize(value,
specifiedType: const FullType(String)));
}
value = object.idempotencyKey;
if (value != null) {
result
..add('idempotency_key')
..add(serializers.serialize(value,
specifiedType: const FullType(String)));
}
return result;
}
@ -387,10 +380,6 @@ class _$CompanyGatewayEntitySerializer
result.assignedUserId = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'idempotency_key':
result.idempotencyKey = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'id':
result.id = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
@ -782,8 +771,6 @@ class _$CompanyGatewayEntity extends CompanyGatewayEntity {
@override
final String assignedUserId;
@override
final String idempotencyKey;
@override
final String id;
factory _$CompanyGatewayEntity(
@ -820,7 +807,6 @@ class _$CompanyGatewayEntity extends CompanyGatewayEntity {
this.isDeleted,
this.createdUserId,
this.assignedUserId,
this.idempotencyKey,
this.id})
: super._() {
BuiltValueNullFieldError.checkNotNull(
@ -913,7 +899,6 @@ class _$CompanyGatewayEntity extends CompanyGatewayEntity {
isDeleted == other.isDeleted &&
createdUserId == other.createdUserId &&
assignedUserId == other.assignedUserId &&
idempotencyKey == other.idempotencyKey &&
id == other.id;
}
@ -938,25 +923,25 @@ class _$CompanyGatewayEntity extends CompanyGatewayEntity {
$jc(
$jc(
$jc(
$jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc(0, gatewayId.hashCode), acceptedCreditCards.hashCode), requireShippingAddress.hashCode), requireBillingAddress.hashCode), requireClientName.hashCode), requirePostalCode.hashCode), requireClientPhone.hashCode), requireContactName.hashCode), requireContactEmail.hashCode), requireCvv.hashCode), updateDetails.hashCode),
feesAndLimitsMap.hashCode),
systemLogs.hashCode),
customValue1.hashCode),
customValue2.hashCode),
customValue3.hashCode),
customValue4.hashCode),
config.hashCode),
tokenBilling.hashCode),
isTestMode.hashCode),
label.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
archivedAt.hashCode),
isDeleted.hashCode),
createdUserId.hashCode),
assignedUserId.hashCode),
idempotencyKey.hashCode),
$jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc(0, gatewayId.hashCode), acceptedCreditCards.hashCode), requireShippingAddress.hashCode), requireBillingAddress.hashCode), requireClientName.hashCode), requirePostalCode.hashCode), requireClientPhone.hashCode), requireContactName.hashCode), requireContactEmail.hashCode), requireCvv.hashCode),
updateDetails.hashCode),
feesAndLimitsMap.hashCode),
systemLogs.hashCode),
customValue1.hashCode),
customValue2.hashCode),
customValue3.hashCode),
customValue4.hashCode),
config.hashCode),
tokenBilling.hashCode),
isTestMode.hashCode),
label.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
archivedAt.hashCode),
isDeleted.hashCode),
createdUserId.hashCode),
assignedUserId.hashCode),
id.hashCode));
}
@ -992,7 +977,6 @@ class _$CompanyGatewayEntity extends CompanyGatewayEntity {
..add('isDeleted', isDeleted)
..add('createdUserId', createdUserId)
..add('assignedUserId', assignedUserId)
..add('idempotencyKey', idempotencyKey)
..add('id', id))
.toString();
}
@ -1135,11 +1119,6 @@ class CompanyGatewayEntityBuilder
set assignedUserId(String assignedUserId) =>
_$this._assignedUserId = assignedUserId;
String _idempotencyKey;
String get idempotencyKey => _$this._idempotencyKey;
set idempotencyKey(String idempotencyKey) =>
_$this._idempotencyKey = idempotencyKey;
String _id;
String get id => _$this._id;
set id(String id) => _$this._id = id;
@ -1178,7 +1157,6 @@ class CompanyGatewayEntityBuilder
_isDeleted = $v.isDeleted;
_createdUserId = $v.createdUserId;
_assignedUserId = $v.assignedUserId;
_idempotencyKey = $v.idempotencyKey;
_id = $v.id;
_$v = null;
}
@ -1238,7 +1216,6 @@ class CompanyGatewayEntityBuilder
isDeleted: isDeleted,
createdUserId: createdUserId,
assignedUserId: assignedUserId,
idempotencyKey: idempotencyKey,
id: BuiltValueNullFieldError.checkNotNull(id, 'CompanyGatewayEntity', 'id'));
} catch (_) {
String _$failedField;

View File

@ -390,13 +390,6 @@ class _$CompanyEntitySerializer implements StructuredSerializer<CompanyEntity> {
..add(serializers.serialize(value,
specifiedType: const FullType(EntityType)));
}
value = object.idempotencyKey;
if (value != null) {
result
..add('idempotency_key')
..add(serializers.serialize(value,
specifiedType: const FullType(String)));
}
return result;
}
@ -872,10 +865,6 @@ class _$CompanyEntitySerializer implements StructuredSerializer<CompanyEntity> {
result.entityType = serializers.deserialize(value,
specifiedType: const FullType(EntityType)) as EntityType;
break;
case 'idempotency_key':
result.idempotencyKey = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'id':
result.id = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
@ -1738,8 +1727,6 @@ class _$CompanyEntity extends CompanyEntity {
@override
final EntityType entityType;
@override
final String idempotencyKey;
@override
final String id;
factory _$CompanyEntity([void Function(CompanyEntityBuilder) updates]) =>
@ -1845,7 +1832,6 @@ class _$CompanyEntity extends CompanyEntity {
this.createdUserId,
this.assignedUserId,
this.entityType,
this.idempotencyKey,
this.id})
: super._() {
BuiltValueNullFieldError.checkNotNull(enableCustomSurchargeTaxes1,
@ -2138,7 +2124,6 @@ class _$CompanyEntity extends CompanyEntity {
createdUserId == other.createdUserId &&
assignedUserId == other.assignedUserId &&
entityType == other.entityType &&
idempotencyKey == other.idempotencyKey &&
id == other.id;
}
@ -2163,25 +2148,25 @@ class _$CompanyEntity extends CompanyEntity {
$jc(
$jc(
$jc(
$jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc(0, enableCustomSurchargeTaxes1.hashCode), enableCustomSurchargeTaxes2.hashCode), enableCustomSurchargeTaxes3.hashCode), enableCustomSurchargeTaxes4.hashCode), sizeId.hashCode), industryId.hashCode), subdomain.hashCode), portalMode.hashCode), portalDomain.hashCode), updateProducts.hashCode), convertProductExchangeRate.hashCode), convertRateToClient.hashCode), fillProducts.hashCode), enableProductCost.hashCode), enableProductQuantity.hashCode), enableProductDiscount.hashCode), defaultTaskIsDateBased.hashCode), defaultQuantity.hashCode), showProductDetails.hashCode), clientCanRegister.hashCode), isLarge.hashCode), isDisabled.hashCode), enableShopApi.hashCode), companyKey.hashCode), firstDayOfWeek.hashCode), firstMonthOfYear.hashCode), numberOfInvoiceTaxRates.hashCode), numberOfItemTaxRates.hashCode), numberOfExpenseTaxRates.hashCode), expenseInclusiveTaxes.hashCode), sessionTimeout.hashCode), passwordTimeout.hashCode), oauthPasswordRequired.hashCode), markdownEnabled.hashCode), markdownEmailEnabled.hashCode), useCommaAsDecimalPlace.hashCode), reportIncludeDrafts.hashCode), reportIncludeDeleted.hashCode), useQuoteTermsOnConversion.hashCode), enableApplyingPayments.hashCode), trackInventory.hashCode), stockNotificationThreshold.hashCode), stockNotification.hashCode), groups.hashCode), activities.hashCode), taxRates.hashCode), taskStatuses.hashCode), taskStatusMap.hashCode), companyGateways.hashCode), expenseCategories.hashCode), users.hashCode), clients.hashCode), products.hashCode), invoices.hashCode), recurringInvoices.hashCode), recurringExpenses.hashCode), payments.hashCode), quotes.hashCode), credits.hashCode), purchaseOrders.hashCode), bankAccounts.hashCode), transactions.hashCode), tasks.hashCode), projects.hashCode), expenses.hashCode), vendors.hashCode), designs.hashCode), documents.hashCode), tokens.hashCode), webhooks.hashCode), subscriptions.hashCode), paymentTerms.hashCode), systemLogs.hashCode), clientRegistrationFields.hashCode), customFields.hashCode), slackWebhookUrl.hashCode), googleAnalyticsKey.hashCode), markExpensesInvoiceable.hashCode), markExpensesPaid.hashCode), invoiceExpenseDocuments.hashCode), invoiceTaskDocuments.hashCode), invoiceTaskTimelog.hashCode),
invoiceTaskDatelog.hashCode),
invoiceTaskProject.hashCode),
autoStartTasks.hashCode),
showTasksTable.hashCode),
showTaskEndDate.hashCode),
settings.hashCode),
enabledModules.hashCode),
calculateExpenseTaxByAmount.hashCode),
stopOnUnpaidRecurring.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
archivedAt.hashCode),
isDeleted.hashCode),
createdUserId.hashCode),
assignedUserId.hashCode),
entityType.hashCode),
idempotencyKey.hashCode),
$jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc(0, enableCustomSurchargeTaxes1.hashCode), enableCustomSurchargeTaxes2.hashCode), enableCustomSurchargeTaxes3.hashCode), enableCustomSurchargeTaxes4.hashCode), sizeId.hashCode), industryId.hashCode), subdomain.hashCode), portalMode.hashCode), portalDomain.hashCode), updateProducts.hashCode), convertProductExchangeRate.hashCode), convertRateToClient.hashCode), fillProducts.hashCode), enableProductCost.hashCode), enableProductQuantity.hashCode), enableProductDiscount.hashCode), defaultTaskIsDateBased.hashCode), defaultQuantity.hashCode), showProductDetails.hashCode), clientCanRegister.hashCode), isLarge.hashCode), isDisabled.hashCode), enableShopApi.hashCode), companyKey.hashCode), firstDayOfWeek.hashCode), firstMonthOfYear.hashCode), numberOfInvoiceTaxRates.hashCode), numberOfItemTaxRates.hashCode), numberOfExpenseTaxRates.hashCode), expenseInclusiveTaxes.hashCode), sessionTimeout.hashCode), passwordTimeout.hashCode), oauthPasswordRequired.hashCode), markdownEnabled.hashCode), markdownEmailEnabled.hashCode), useCommaAsDecimalPlace.hashCode), reportIncludeDrafts.hashCode), reportIncludeDeleted.hashCode), useQuoteTermsOnConversion.hashCode), enableApplyingPayments.hashCode), trackInventory.hashCode), stockNotificationThreshold.hashCode), stockNotification.hashCode), groups.hashCode), activities.hashCode), taxRates.hashCode), taskStatuses.hashCode), taskStatusMap.hashCode), companyGateways.hashCode), expenseCategories.hashCode), users.hashCode), clients.hashCode), products.hashCode), invoices.hashCode), recurringInvoices.hashCode), recurringExpenses.hashCode), payments.hashCode), quotes.hashCode), credits.hashCode), purchaseOrders.hashCode), bankAccounts.hashCode), transactions.hashCode), tasks.hashCode), projects.hashCode), expenses.hashCode), vendors.hashCode), designs.hashCode), documents.hashCode), tokens.hashCode), webhooks.hashCode), subscriptions.hashCode), paymentTerms.hashCode), systemLogs.hashCode), clientRegistrationFields.hashCode), customFields.hashCode), slackWebhookUrl.hashCode), googleAnalyticsKey.hashCode), markExpensesInvoiceable.hashCode), markExpensesPaid.hashCode), invoiceExpenseDocuments.hashCode), invoiceTaskDocuments.hashCode),
invoiceTaskTimelog.hashCode),
invoiceTaskDatelog.hashCode),
invoiceTaskProject.hashCode),
autoStartTasks.hashCode),
showTasksTable.hashCode),
showTaskEndDate.hashCode),
settings.hashCode),
enabledModules.hashCode),
calculateExpenseTaxByAmount.hashCode),
stopOnUnpaidRecurring.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
archivedAt.hashCode),
isDeleted.hashCode),
createdUserId.hashCode),
assignedUserId.hashCode),
entityType.hashCode),
id.hashCode));
}
@ -2287,7 +2272,6 @@ class _$CompanyEntity extends CompanyEntity {
..add('createdUserId', createdUserId)
..add('assignedUserId', assignedUserId)
..add('entityType', entityType)
..add('idempotencyKey', idempotencyKey)
..add('id', id))
.toString();
}
@ -2802,11 +2786,6 @@ class CompanyEntityBuilder
EntityType get entityType => _$this._entityType;
set entityType(EntityType entityType) => _$this._entityType = entityType;
String _idempotencyKey;
String get idempotencyKey => _$this._idempotencyKey;
set idempotencyKey(String idempotencyKey) =>
_$this._idempotencyKey = idempotencyKey;
String _id;
String get id => _$this._id;
set id(String id) => _$this._id = id;
@ -2917,7 +2896,6 @@ class CompanyEntityBuilder
_createdUserId = $v.createdUserId;
_assignedUserId = $v.assignedUserId;
_entityType = $v.entityType;
_idempotencyKey = $v.idempotencyKey;
_id = $v.id;
_$v = null;
}
@ -3054,7 +3032,6 @@ class CompanyEntityBuilder
createdUserId: createdUserId,
assignedUserId: assignedUserId,
entityType: entityType,
idempotencyKey: idempotencyKey,
id: BuiltValueNullFieldError.checkNotNull(id, 'CompanyEntity', 'id'));
} catch (_) {
String _$failedField;

View File

@ -95,7 +95,6 @@ abstract class DesignEntity extends Object
return _$DesignEntity._(
id: id ?? BaseEntity.nextId,
idempotencyKey: BaseEntity.nextIdempotencyKey,
createdAt: 0,
updatedAt: 0,
archivedAt: 0,
@ -137,7 +136,6 @@ abstract class DesignEntity extends Object
DesignEntity get clone => rebuild((b) => b
..id = BaseEntity.nextId
..idempotencyKey = BaseEntity.nextIdempotencyKey
..isChanged = false
..isDeleted = false);

View File

@ -224,13 +224,6 @@ class _$DesignEntitySerializer implements StructuredSerializer<DesignEntity> {
..add(serializers.serialize(value,
specifiedType: const FullType(String)));
}
value = object.idempotencyKey;
if (value != null) {
result
..add('idempotency_key')
..add(serializers.serialize(value,
specifiedType: const FullType(String)));
}
return result;
}
@ -290,10 +283,6 @@ class _$DesignEntitySerializer implements StructuredSerializer<DesignEntity> {
result.assignedUserId = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'idempotency_key':
result.idempotencyKey = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'id':
result.id = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
@ -639,8 +628,6 @@ class _$DesignEntity extends DesignEntity {
@override
final String assignedUserId;
@override
final String idempotencyKey;
@override
final String id;
factory _$DesignEntity([void Function(DesignEntityBuilder) updates]) =>
@ -658,7 +645,6 @@ class _$DesignEntity extends DesignEntity {
this.isDeleted,
this.createdUserId,
this.assignedUserId,
this.idempotencyKey,
this.id})
: super._() {
BuiltValueNullFieldError.checkNotNull(name, 'DesignEntity', 'name');
@ -696,7 +682,6 @@ class _$DesignEntity extends DesignEntity {
isDeleted == other.isDeleted &&
createdUserId == other.createdUserId &&
assignedUserId == other.assignedUserId &&
idempotencyKey == other.idempotencyKey &&
id == other.id;
}
@ -713,19 +698,17 @@ class _$DesignEntity extends DesignEntity {
$jc(
$jc(
$jc(
$jc(
$jc($jc(0, name.hashCode),
design.hashCode),
isCustom.hashCode),
isFree.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
archivedAt.hashCode),
isDeleted.hashCode),
createdUserId.hashCode),
assignedUserId.hashCode),
idempotencyKey.hashCode),
$jc($jc(0, name.hashCode),
design.hashCode),
isCustom.hashCode),
isFree.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
archivedAt.hashCode),
isDeleted.hashCode),
createdUserId.hashCode),
assignedUserId.hashCode),
id.hashCode));
}
@ -743,7 +726,6 @@ class _$DesignEntity extends DesignEntity {
..add('isDeleted', isDeleted)
..add('createdUserId', createdUserId)
..add('assignedUserId', assignedUserId)
..add('idempotencyKey', idempotencyKey)
..add('id', id))
.toString();
}
@ -800,11 +782,6 @@ class DesignEntityBuilder
set assignedUserId(String assignedUserId) =>
_$this._assignedUserId = assignedUserId;
String _idempotencyKey;
String get idempotencyKey => _$this._idempotencyKey;
set idempotencyKey(String idempotencyKey) =>
_$this._idempotencyKey = idempotencyKey;
String _id;
String get id => _$this._id;
set id(String id) => _$this._id = id;
@ -827,7 +804,6 @@ class DesignEntityBuilder
_isDeleted = $v.isDeleted;
_createdUserId = $v.createdUserId;
_assignedUserId = $v.assignedUserId;
_idempotencyKey = $v.idempotencyKey;
_id = $v.id;
_$v = null;
}
@ -868,7 +844,6 @@ class DesignEntityBuilder
isDeleted: isDeleted,
createdUserId: createdUserId,
assignedUserId: assignedUserId,
idempotencyKey: idempotencyKey,
id: BuiltValueNullFieldError.checkNotNull(
id, 'DesignEntity', 'id'));
} catch (_) {

View File

@ -58,7 +58,6 @@ abstract class DocumentEntity extends Object
factory DocumentEntity({String id}) {
return _$DocumentEntity._(
id: id ?? BaseEntity.nextId,
idempotencyKey: BaseEntity.nextIdempotencyKey,
isChanged: false,
name: '',
url: '',
@ -120,7 +119,6 @@ abstract class DocumentEntity extends Object
DocumentEntity get clone => rebuild((b) => b
..id = BaseEntity.nextId
..idempotencyKey = BaseEntity.nextIdempotencyKey
..isChanged = false
..isDeleted = false);

View File

@ -180,13 +180,6 @@ class _$DocumentEntitySerializer
..add(serializers.serialize(value,
specifiedType: const FullType(String)));
}
value = object.idempotencyKey;
if (value != null) {
result
..add('idempotency_key')
..add(serializers.serialize(value,
specifiedType: const FullType(String)));
}
return result;
}
@ -266,10 +259,6 @@ class _$DocumentEntitySerializer
result.assignedUserId = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'idempotency_key':
result.idempotencyKey = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'id':
result.id = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
@ -501,8 +490,6 @@ class _$DocumentEntity extends DocumentEntity {
@override
final String assignedUserId;
@override
final String idempotencyKey;
@override
final String id;
factory _$DocumentEntity([void Function(DocumentEntityBuilder) updates]) =>
@ -525,7 +512,6 @@ class _$DocumentEntity extends DocumentEntity {
this.isDeleted,
this.createdUserId,
this.assignedUserId,
this.idempotencyKey,
this.id})
: super._() {
BuiltValueNullFieldError.checkNotNull(name, 'DocumentEntity', 'name');
@ -575,7 +561,6 @@ class _$DocumentEntity extends DocumentEntity {
isDeleted == other.isDeleted &&
createdUserId == other.createdUserId &&
assignedUserId == other.assignedUserId &&
idempotencyKey == other.idempotencyKey &&
id == other.id;
}
@ -598,25 +583,23 @@ class _$DocumentEntity extends DocumentEntity {
$jc(
$jc(
$jc(
$jc(
$jc(0,
name.hashCode),
hash.hashCode),
type.hashCode),
url.hashCode),
width.hashCode),
height.hashCode),
size.hashCode),
preview.hashCode),
isDefault.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
archivedAt.hashCode),
isDeleted.hashCode),
createdUserId.hashCode),
assignedUserId.hashCode),
idempotencyKey.hashCode),
$jc(0,
name.hashCode),
hash.hashCode),
type.hashCode),
url.hashCode),
width.hashCode),
height.hashCode),
size.hashCode),
preview.hashCode),
isDefault.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
archivedAt.hashCode),
isDeleted.hashCode),
createdUserId.hashCode),
assignedUserId.hashCode),
id.hashCode));
}
@ -639,7 +622,6 @@ class _$DocumentEntity extends DocumentEntity {
..add('isDeleted', isDeleted)
..add('createdUserId', createdUserId)
..add('assignedUserId', assignedUserId)
..add('idempotencyKey', idempotencyKey)
..add('id', id))
.toString();
}
@ -715,11 +697,6 @@ class DocumentEntityBuilder
set assignedUserId(String assignedUserId) =>
_$this._assignedUserId = assignedUserId;
String _idempotencyKey;
String get idempotencyKey => _$this._idempotencyKey;
set idempotencyKey(String idempotencyKey) =>
_$this._idempotencyKey = idempotencyKey;
String _id;
String get id => _$this._id;
set id(String id) => _$this._id = id;
@ -745,7 +722,6 @@ class DocumentEntityBuilder
_isDeleted = $v.isDeleted;
_createdUserId = $v.createdUserId;
_assignedUserId = $v.assignedUserId;
_idempotencyKey = $v.idempotencyKey;
_id = $v.id;
_$v = null;
}
@ -795,7 +771,6 @@ class DocumentEntityBuilder
isDeleted: isDeleted,
createdUserId: createdUserId,
assignedUserId: assignedUserId,
idempotencyKey: idempotencyKey,
id: BuiltValueNullFieldError.checkNotNull(id, 'DocumentEntity', 'id'));
replace(_$result);
return _$result;

View File

@ -375,10 +375,6 @@ abstract class BaseEntity implements SelectableEntity {
@BuiltValueField(wireName: 'entity_type')
EntityType get entityType;
@nullable
@BuiltValueField(wireName: 'idempotency_key')
String get idempotencyKey;
String get entityKey => '__${entityType}__${id}__';
bool get isNew => (id ?? '').isEmpty || (int.tryParse(id) ?? 0) < 0;

View File

@ -58,7 +58,6 @@ abstract class ExpenseCategoryEntity extends Object
factory ExpenseCategoryEntity({String id, AppState state}) {
return _$ExpenseCategoryEntity._(
id: id ?? BaseEntity.nextId,
idempotencyKey: BaseEntity.nextIdempotencyKey,
isChanged: false,
name: '',
color: '',

View File

@ -172,13 +172,6 @@ class _$ExpenseCategoryEntitySerializer
..add(serializers.serialize(value,
specifiedType: const FullType(String)));
}
value = object.idempotencyKey;
if (value != null) {
result
..add('idempotency_key')
..add(serializers.serialize(value,
specifiedType: const FullType(String)));
}
return result;
}
@ -230,10 +223,6 @@ class _$ExpenseCategoryEntitySerializer
result.assignedUserId = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'idempotency_key':
result.idempotencyKey = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'id':
result.id = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
@ -457,8 +446,6 @@ class _$ExpenseCategoryEntity extends ExpenseCategoryEntity {
@override
final String assignedUserId;
@override
final String idempotencyKey;
@override
final String id;
factory _$ExpenseCategoryEntity(
@ -475,7 +462,6 @@ class _$ExpenseCategoryEntity extends ExpenseCategoryEntity {
this.isDeleted,
this.createdUserId,
this.assignedUserId,
this.idempotencyKey,
this.id})
: super._() {
BuiltValueNullFieldError.checkNotNull(
@ -513,7 +499,6 @@ class _$ExpenseCategoryEntity extends ExpenseCategoryEntity {
isDeleted == other.isDeleted &&
createdUserId == other.createdUserId &&
assignedUserId == other.assignedUserId &&
idempotencyKey == other.idempotencyKey &&
id == other.id;
}
@ -527,18 +512,14 @@ class _$ExpenseCategoryEntity extends ExpenseCategoryEntity {
$jc(
$jc(
$jc(
$jc(
$jc(
$jc($jc(0, name.hashCode),
color.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
archivedAt.hashCode),
isDeleted.hashCode),
createdUserId.hashCode),
assignedUserId.hashCode),
idempotencyKey.hashCode),
$jc($jc($jc(0, name.hashCode), color.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
archivedAt.hashCode),
isDeleted.hashCode),
createdUserId.hashCode),
assignedUserId.hashCode),
id.hashCode));
}
@ -554,7 +535,6 @@ class _$ExpenseCategoryEntity extends ExpenseCategoryEntity {
..add('isDeleted', isDeleted)
..add('createdUserId', createdUserId)
..add('assignedUserId', assignedUserId)
..add('idempotencyKey', idempotencyKey)
..add('id', id))
.toString();
}
@ -602,11 +582,6 @@ class ExpenseCategoryEntityBuilder
set assignedUserId(String assignedUserId) =>
_$this._assignedUserId = assignedUserId;
String _idempotencyKey;
String get idempotencyKey => _$this._idempotencyKey;
set idempotencyKey(String idempotencyKey) =>
_$this._idempotencyKey = idempotencyKey;
String _id;
String get id => _$this._id;
set id(String id) => _$this._id = id;
@ -627,7 +602,6 @@ class ExpenseCategoryEntityBuilder
_isDeleted = $v.isDeleted;
_createdUserId = $v.createdUserId;
_assignedUserId = $v.assignedUserId;
_idempotencyKey = $v.idempotencyKey;
_id = $v.id;
_$v = null;
}
@ -663,7 +637,6 @@ class ExpenseCategoryEntityBuilder
isDeleted: isDeleted,
createdUserId: createdUserId,
assignedUserId: assignedUserId,
idempotencyKey: idempotencyKey,
id: BuiltValueNullFieldError.checkNotNull(
id, 'ExpenseCategoryEntity', 'id'));
replace(_$result);

View File

@ -111,7 +111,6 @@ abstract class ExpenseEntity extends Object
final company = state?.company;
return _$ExpenseEntity._(
id: id ?? BaseEntity.nextId,
idempotencyKey: BaseEntity.nextIdempotencyKey,
entityType: entityType ?? EntityType.expense,
number: '',
isChanged: false,
@ -178,7 +177,6 @@ abstract class ExpenseEntity extends Object
ExpenseEntity get clone => rebuild((b) => b
..id = BaseEntity.nextId
..idempotencyKey = BaseEntity.nextIdempotencyKey
..number = ''
..isChanged = false
..isDeleted = false

View File

@ -343,13 +343,6 @@ class _$ExpenseEntitySerializer implements StructuredSerializer<ExpenseEntity> {
..add(serializers.serialize(value,
specifiedType: const FullType(EntityType)));
}
value = object.idempotencyKey;
if (value != null) {
result
..add('idempotency_key')
..add(serializers.serialize(value,
specifiedType: const FullType(String)));
}
return result;
}
@ -577,10 +570,6 @@ class _$ExpenseEntitySerializer implements StructuredSerializer<ExpenseEntity> {
result.entityType = serializers.deserialize(value,
specifiedType: const FullType(EntityType)) as EntityType;
break;
case 'idempotency_key':
result.idempotencyKey = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'id':
result.id = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
@ -980,8 +969,6 @@ class _$ExpenseEntity extends ExpenseEntity {
@override
final EntityType entityType;
@override
final String idempotencyKey;
@override
final String id;
factory _$ExpenseEntity([void Function(ExpenseEntityBuilder) updates]) =>
@ -1040,7 +1027,6 @@ class _$ExpenseEntity extends ExpenseEntity {
this.createdUserId,
this.assignedUserId,
this.entityType,
this.idempotencyKey,
this.id})
: super._() {
BuiltValueNullFieldError.checkNotNull(
@ -1179,7 +1165,6 @@ class _$ExpenseEntity extends ExpenseEntity {
createdUserId == other.createdUserId &&
assignedUserId == other.assignedUserId &&
entityType == other.entityType &&
idempotencyKey == other.idempotencyKey &&
id == other.id;
}
@ -1204,25 +1189,25 @@ class _$ExpenseEntity extends ExpenseEntity {
$jc(
$jc(
$jc(
$jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc(0, privateNotes.hashCode), publicNotes.hashCode), shouldBeInvoiced.hashCode), invoiceDocuments.hashCode), transactionId.hashCode), transactionReference.hashCode), bankId.hashCode), currencyId.hashCode), categoryId.hashCode), amount.hashCode), date.hashCode), paymentDate.hashCode), exchangeRate.hashCode), invoiceCurrencyId.hashCode), paymentTypeId.hashCode), taxName1.hashCode), taxName2.hashCode), taxRate1.hashCode), taxRate2.hashCode), taxName3.hashCode), taxRate3.hashCode), clientId.hashCode), invoiceId.hashCode), vendorId.hashCode), projectId.hashCode), statusId.hashCode), customValue1.hashCode), customValue2.hashCode), customValue3.hashCode), customValue4.hashCode), taxAmount1.hashCode), taxAmount2.hashCode), taxAmount3.hashCode), usesInclusiveTaxes.hashCode),
calculateTaxByAmount.hashCode),
documents.hashCode),
number.hashCode),
recurringId.hashCode),
frequencyId.hashCode),
lastSentDate.hashCode),
nextSendDate.hashCode),
remainingCycles.hashCode),
recurringDates.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
archivedAt.hashCode),
isDeleted.hashCode),
createdUserId.hashCode),
assignedUserId.hashCode),
entityType.hashCode),
idempotencyKey.hashCode),
$jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc(0, privateNotes.hashCode), publicNotes.hashCode), shouldBeInvoiced.hashCode), invoiceDocuments.hashCode), transactionId.hashCode), transactionReference.hashCode), bankId.hashCode), currencyId.hashCode), categoryId.hashCode), amount.hashCode), date.hashCode), paymentDate.hashCode), exchangeRate.hashCode), invoiceCurrencyId.hashCode), paymentTypeId.hashCode), taxName1.hashCode), taxName2.hashCode), taxRate1.hashCode), taxRate2.hashCode), taxName3.hashCode), taxRate3.hashCode), clientId.hashCode), invoiceId.hashCode), vendorId.hashCode), projectId.hashCode), statusId.hashCode), customValue1.hashCode), customValue2.hashCode), customValue3.hashCode), customValue4.hashCode), taxAmount1.hashCode), taxAmount2.hashCode), taxAmount3.hashCode),
usesInclusiveTaxes.hashCode),
calculateTaxByAmount.hashCode),
documents.hashCode),
number.hashCode),
recurringId.hashCode),
frequencyId.hashCode),
lastSentDate.hashCode),
nextSendDate.hashCode),
remainingCycles.hashCode),
recurringDates.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
archivedAt.hashCode),
isDeleted.hashCode),
createdUserId.hashCode),
assignedUserId.hashCode),
entityType.hashCode),
id.hashCode));
}
@ -1281,7 +1266,6 @@ class _$ExpenseEntity extends ExpenseEntity {
..add('createdUserId', createdUserId)
..add('assignedUserId', assignedUserId)
..add('entityType', entityType)
..add('idempotencyKey', idempotencyKey)
..add('id', id))
.toString();
}
@ -1514,11 +1498,6 @@ class ExpenseEntityBuilder
EntityType get entityType => _$this._entityType;
set entityType(EntityType entityType) => _$this._entityType = entityType;
String _idempotencyKey;
String get idempotencyKey => _$this._idempotencyKey;
set idempotencyKey(String idempotencyKey) =>
_$this._idempotencyKey = idempotencyKey;
String _id;
String get id => _$this._id;
set id(String id) => _$this._id = id;
@ -1582,7 +1561,6 @@ class ExpenseEntityBuilder
_createdUserId = $v.createdUserId;
_assignedUserId = $v.assignedUserId;
_entityType = $v.entityType;
_idempotencyKey = $v.idempotencyKey;
_id = $v.id;
_$v = null;
}
@ -1665,7 +1643,6 @@ class ExpenseEntityBuilder
createdUserId: createdUserId,
assignedUserId: assignedUserId,
entityType: entityType,
idempotencyKey: idempotencyKey,
id: BuiltValueNullFieldError.checkNotNull(id, 'ExpenseEntity', 'id'));
} catch (_) {
String _$failedField;

View File

@ -60,7 +60,6 @@ abstract class GatewayTokenEntity extends Object
factory GatewayTokenEntity({String id}) {
return _$GatewayTokenEntity._(
id: id ?? BaseEntity.nextId,
idempotencyKey: BaseEntity.nextIdempotencyKey,
isChanged: false,
token: '',
customerReference: '',

View File

@ -181,13 +181,6 @@ class _$GatewayTokenEntitySerializer
..add(serializers.serialize(value,
specifiedType: const FullType(String)));
}
value = object.idempotencyKey;
if (value != null) {
result
..add('idempotency_key')
..add(serializers.serialize(value,
specifiedType: const FullType(String)));
}
return result;
}
@ -256,10 +249,6 @@ class _$GatewayTokenEntitySerializer
result.assignedUserId = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'idempotency_key':
result.idempotencyKey = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'id':
result.id = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
@ -581,8 +570,6 @@ class _$GatewayTokenEntity extends GatewayTokenEntity {
@override
final String assignedUserId;
@override
final String idempotencyKey;
@override
final String id;
factory _$GatewayTokenEntity(
@ -603,7 +590,6 @@ class _$GatewayTokenEntity extends GatewayTokenEntity {
this.isDeleted,
this.createdUserId,
this.assignedUserId,
this.idempotencyKey,
this.id})
: super._() {
BuiltValueNullFieldError.checkNotNull(token, 'GatewayTokenEntity', 'token');
@ -651,7 +637,6 @@ class _$GatewayTokenEntity extends GatewayTokenEntity {
isDeleted == other.isDeleted &&
createdUserId == other.createdUserId &&
assignedUserId == other.assignedUserId &&
idempotencyKey == other.idempotencyKey &&
id == other.id;
}
@ -671,24 +656,20 @@ class _$GatewayTokenEntity extends GatewayTokenEntity {
$jc(
$jc(
$jc(
$jc(
$jc(0,
token.hashCode),
customerReference
.hashCode),
companyGatewayId
$jc(0, token.hashCode),
customerReference
.hashCode),
gatewayTypeId.hashCode),
isDefault.hashCode),
meta.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
archivedAt.hashCode),
isDeleted.hashCode),
createdUserId.hashCode),
assignedUserId.hashCode),
idempotencyKey.hashCode),
companyGatewayId.hashCode),
gatewayTypeId.hashCode),
isDefault.hashCode),
meta.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
archivedAt.hashCode),
isDeleted.hashCode),
createdUserId.hashCode),
assignedUserId.hashCode),
id.hashCode));
}
@ -708,7 +689,6 @@ class _$GatewayTokenEntity extends GatewayTokenEntity {
..add('isDeleted', isDeleted)
..add('createdUserId', createdUserId)
..add('assignedUserId', assignedUserId)
..add('idempotencyKey', idempotencyKey)
..add('id', id))
.toString();
}
@ -776,11 +756,6 @@ class GatewayTokenEntityBuilder
set assignedUserId(String assignedUserId) =>
_$this._assignedUserId = assignedUserId;
String _idempotencyKey;
String get idempotencyKey => _$this._idempotencyKey;
set idempotencyKey(String idempotencyKey) =>
_$this._idempotencyKey = idempotencyKey;
String _id;
String get id => _$this._id;
set id(String id) => _$this._id = id;
@ -803,7 +778,6 @@ class GatewayTokenEntityBuilder
_isDeleted = $v.isDeleted;
_createdUserId = $v.createdUserId;
_assignedUserId = $v.assignedUserId;
_idempotencyKey = $v.idempotencyKey;
_id = $v.id;
_$v = null;
}
@ -848,7 +822,6 @@ class GatewayTokenEntityBuilder
isDeleted: isDeleted,
createdUserId: createdUserId,
assignedUserId: assignedUserId,
idempotencyKey: idempotencyKey,
id: BuiltValueNullFieldError.checkNotNull(id, 'GatewayTokenEntity', 'id'));
} catch (_) {
String _$failedField;

View File

@ -56,7 +56,6 @@ abstract class GroupEntity extends Object
factory GroupEntity({String id, AppState state}) {
return _$GroupEntity._(
id: id ?? BaseEntity.nextId,
idempotencyKey: BaseEntity.nextIdempotencyKey,
isChanged: false,
name: '',
settings: SettingsEntity(),

View File

@ -159,13 +159,6 @@ class _$GroupEntitySerializer implements StructuredSerializer<GroupEntity> {
..add(serializers.serialize(value,
specifiedType: const FullType(String)));
}
value = object.idempotencyKey;
if (value != null) {
result
..add('idempotency_key')
..add(serializers.serialize(value,
specifiedType: const FullType(String)));
}
return result;
}
@ -222,10 +215,6 @@ class _$GroupEntitySerializer implements StructuredSerializer<GroupEntity> {
result.assignedUserId = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'idempotency_key':
result.idempotencyKey = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'id':
result.id = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
@ -440,8 +429,6 @@ class _$GroupEntity extends GroupEntity {
@override
final String assignedUserId;
@override
final String idempotencyKey;
@override
final String id;
factory _$GroupEntity([void Function(GroupEntityBuilder) updates]) =>
@ -458,7 +445,6 @@ class _$GroupEntity extends GroupEntity {
this.isDeleted,
this.createdUserId,
this.assignedUserId,
this.idempotencyKey,
this.id})
: super._() {
BuiltValueNullFieldError.checkNotNull(name, 'GroupEntity', 'name');
@ -495,7 +481,6 @@ class _$GroupEntity extends GroupEntity {
isDeleted == other.isDeleted &&
createdUserId == other.createdUserId &&
assignedUserId == other.assignedUserId &&
idempotencyKey == other.idempotencyKey &&
id == other.id;
}
@ -511,18 +496,16 @@ class _$GroupEntity extends GroupEntity {
$jc(
$jc(
$jc(
$jc(
$jc($jc(0, name.hashCode),
settings.hashCode),
documents.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
archivedAt.hashCode),
isDeleted.hashCode),
createdUserId.hashCode),
assignedUserId.hashCode),
idempotencyKey.hashCode),
$jc($jc(0, name.hashCode),
settings.hashCode),
documents.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
archivedAt.hashCode),
isDeleted.hashCode),
createdUserId.hashCode),
assignedUserId.hashCode),
id.hashCode));
}
@ -539,7 +522,6 @@ class _$GroupEntity extends GroupEntity {
..add('isDeleted', isDeleted)
..add('createdUserId', createdUserId)
..add('assignedUserId', assignedUserId)
..add('idempotencyKey', idempotencyKey)
..add('id', id))
.toString();
}
@ -593,11 +575,6 @@ class GroupEntityBuilder implements Builder<GroupEntity, GroupEntityBuilder> {
set assignedUserId(String assignedUserId) =>
_$this._assignedUserId = assignedUserId;
String _idempotencyKey;
String get idempotencyKey => _$this._idempotencyKey;
set idempotencyKey(String idempotencyKey) =>
_$this._idempotencyKey = idempotencyKey;
String _id;
String get id => _$this._id;
set id(String id) => _$this._id = id;
@ -619,7 +596,6 @@ class GroupEntityBuilder implements Builder<GroupEntity, GroupEntityBuilder> {
_isDeleted = $v.isDeleted;
_createdUserId = $v.createdUserId;
_assignedUserId = $v.assignedUserId;
_idempotencyKey = $v.idempotencyKey;
_id = $v.id;
_$v = null;
}
@ -657,7 +633,6 @@ class GroupEntityBuilder implements Builder<GroupEntity, GroupEntityBuilder> {
isDeleted: isDeleted,
createdUserId: createdUserId,
assignedUserId: assignedUserId,
idempotencyKey: idempotencyKey,
id: BuiltValueNullFieldError.checkNotNull(
id, 'GroupEntity', 'id'));
} catch (_) {

View File

@ -152,7 +152,6 @@ abstract class InvoiceEntity extends Object
}
return _$InvoiceEntity._(
id: id ?? BaseEntity.nextId,
idempotencyKey: BaseEntity.nextIdempotencyKey,
entityType: entityType ?? EntityType.invoice,
isChanged: false,
amount: 0,
@ -288,7 +287,6 @@ abstract class InvoiceEntity extends Object
return rebuild(
(b) => b
..id = BaseEntity.nextId
..idempotencyKey = BaseEntity.nextIdempotencyKey
..isChanged = false
..isDeleted = false
..statusId = kInvoiceStatusDraft
@ -1728,7 +1726,6 @@ abstract class InvitationEntity extends Object
}) {
return _$InvitationEntity._(
id: BaseEntity.nextId,
idempotencyKey: BaseEntity.nextIdempotencyKey,
isChanged: false,
clientContactId: clientContactId ?? '',
vendorContactId: vendorContactId ?? '',

View File

@ -417,13 +417,6 @@ class _$InvoiceEntitySerializer implements StructuredSerializer<InvoiceEntity> {
..add(serializers.serialize(value,
specifiedType: const FullType(EntityType)));
}
value = object.idempotencyKey;
if (value != null) {
result
..add('idempotency_key')
..add(serializers.serialize(value,
specifiedType: const FullType(String)));
}
return result;
}
@ -733,10 +726,6 @@ class _$InvoiceEntitySerializer implements StructuredSerializer<InvoiceEntity> {
result.entityType = serializers.deserialize(value,
specifiedType: const FullType(EntityType)) as EntityType;
break;
case 'idempotency_key':
result.idempotencyKey = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'id':
result.id = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
@ -1022,13 +1011,6 @@ class _$InvitationEntitySerializer
..add(serializers.serialize(value,
specifiedType: const FullType(EntityType)));
}
value = object.idempotencyKey;
if (value != null) {
result
..add('idempotency_key')
..add(serializers.serialize(value,
specifiedType: const FullType(String)));
}
return result;
}
@ -1108,10 +1090,6 @@ class _$InvitationEntitySerializer
result.entityType = serializers.deserialize(value,
specifiedType: const FullType(EntityType)) as EntityType;
break;
case 'idempotency_key':
result.idempotencyKey = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'id':
result.id = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
@ -1571,8 +1549,6 @@ class _$InvoiceEntity extends InvoiceEntity {
@override
final EntityType entityType;
@override
final String idempotencyKey;
@override
final String id;
factory _$InvoiceEntity([void Function(InvoiceEntityBuilder) updates]) =>
@ -1650,7 +1626,6 @@ class _$InvoiceEntity extends InvoiceEntity {
this.createdUserId,
this.assignedUserId,
this.entityType,
this.idempotencyKey,
this.id})
: super._() {
BuiltValueNullFieldError.checkNotNull(amount, 'InvoiceEntity', 'amount');
@ -1834,7 +1809,6 @@ class _$InvoiceEntity extends InvoiceEntity {
createdUserId == other.createdUserId &&
assignedUserId == other.assignedUserId &&
entityType == other.entityType &&
idempotencyKey == other.idempotencyKey &&
id == other.id;
}
@ -1859,25 +1833,25 @@ class _$InvoiceEntity extends InvoiceEntity {
$jc(
$jc(
$jc(
$jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc(0, amount.hashCode), balance.hashCode), paidToDate.hashCode), clientId.hashCode), projectId.hashCode), expenseId.hashCode), vendorId.hashCode), subscriptionId.hashCode), statusId.hashCode), number.hashCode), discount.hashCode), poNumber.hashCode), date.hashCode), dueDate.hashCode), publicNotes.hashCode), privateNotes.hashCode), terms.hashCode), footer.hashCode), designId.hashCode), usesInclusiveTaxes.hashCode), taxName1.hashCode), taxRate1.hashCode), taxName2.hashCode), taxRate2.hashCode), taxName3.hashCode), taxRate3.hashCode), isAmountDiscount.hashCode), partial.hashCode), taxAmount.hashCode), partialDueDate.hashCode), autoBill.hashCode), customValue1.hashCode), customValue2.hashCode), customValue3.hashCode), customValue4.hashCode), customSurcharge1.hashCode), customSurcharge2.hashCode), customSurcharge3.hashCode), customSurcharge4.hashCode), customTaxes1.hashCode), customTaxes2.hashCode), customTaxes3.hashCode), customTaxes4.hashCode), exchangeRate.hashCode), reminder1Sent.hashCode), reminder2Sent.hashCode), reminder3Sent.hashCode), reminderLastSent.hashCode), frequencyId.hashCode), lastSentDate.hashCode), nextSendDate.hashCode), remainingCycles.hashCode),
dueDateDays.hashCode),
invoiceId.hashCode),
recurringId.hashCode),
autoBillEnabled.hashCode),
filename.hashCode),
recurringDates.hashCode),
lineItems.hashCode),
invitations.hashCode),
documents.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
archivedAt.hashCode),
isDeleted.hashCode),
createdUserId.hashCode),
assignedUserId.hashCode),
entityType.hashCode),
idempotencyKey.hashCode),
$jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc(0, amount.hashCode), balance.hashCode), paidToDate.hashCode), clientId.hashCode), projectId.hashCode), expenseId.hashCode), vendorId.hashCode), subscriptionId.hashCode), statusId.hashCode), number.hashCode), discount.hashCode), poNumber.hashCode), date.hashCode), dueDate.hashCode), publicNotes.hashCode), privateNotes.hashCode), terms.hashCode), footer.hashCode), designId.hashCode), usesInclusiveTaxes.hashCode), taxName1.hashCode), taxRate1.hashCode), taxName2.hashCode), taxRate2.hashCode), taxName3.hashCode), taxRate3.hashCode), isAmountDiscount.hashCode), partial.hashCode), taxAmount.hashCode), partialDueDate.hashCode), autoBill.hashCode), customValue1.hashCode), customValue2.hashCode), customValue3.hashCode), customValue4.hashCode), customSurcharge1.hashCode), customSurcharge2.hashCode), customSurcharge3.hashCode), customSurcharge4.hashCode), customTaxes1.hashCode), customTaxes2.hashCode), customTaxes3.hashCode), customTaxes4.hashCode), exchangeRate.hashCode), reminder1Sent.hashCode), reminder2Sent.hashCode), reminder3Sent.hashCode), reminderLastSent.hashCode), frequencyId.hashCode), lastSentDate.hashCode), nextSendDate.hashCode),
remainingCycles.hashCode),
dueDateDays.hashCode),
invoiceId.hashCode),
recurringId.hashCode),
autoBillEnabled.hashCode),
filename.hashCode),
recurringDates.hashCode),
lineItems.hashCode),
invitations.hashCode),
documents.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
archivedAt.hashCode),
isDeleted.hashCode),
createdUserId.hashCode),
assignedUserId.hashCode),
entityType.hashCode),
id.hashCode));
}
@ -1955,7 +1929,6 @@ class _$InvoiceEntity extends InvoiceEntity {
..add('createdUserId', createdUserId)
..add('assignedUserId', assignedUserId)
..add('entityType', entityType)
..add('idempotencyKey', idempotencyKey)
..add('id', id))
.toString();
}
@ -2275,11 +2248,6 @@ class InvoiceEntityBuilder
EntityType get entityType => _$this._entityType;
set entityType(EntityType entityType) => _$this._entityType = entityType;
String _idempotencyKey;
String get idempotencyKey => _$this._idempotencyKey;
set idempotencyKey(String idempotencyKey) =>
_$this._idempotencyKey = idempotencyKey;
String _id;
String get id => _$this._id;
set id(String id) => _$this._id = id;
@ -2362,7 +2330,6 @@ class InvoiceEntityBuilder
_createdUserId = $v.createdUserId;
_assignedUserId = $v.assignedUserId;
_entityType = $v.entityType;
_idempotencyKey = $v.idempotencyKey;
_id = $v.id;
_$v = null;
}
@ -2466,7 +2433,6 @@ class InvoiceEntityBuilder
createdUserId: createdUserId,
assignedUserId: assignedUserId,
entityType: entityType,
idempotencyKey: idempotencyKey,
id: BuiltValueNullFieldError.checkNotNull(id, 'InvoiceEntity', 'id'));
} catch (_) {
String _$failedField;
@ -2895,8 +2861,6 @@ class _$InvitationEntity extends InvitationEntity {
@override
final EntityType entityType;
@override
final String idempotencyKey;
@override
final String id;
factory _$InvitationEntity(
@ -2920,7 +2884,6 @@ class _$InvitationEntity extends InvitationEntity {
this.createdUserId,
this.assignedUserId,
this.entityType,
this.idempotencyKey,
this.id})
: super._() {
BuiltValueNullFieldError.checkNotNull(key, 'InvitationEntity', 'key');
@ -2968,7 +2931,6 @@ class _$InvitationEntity extends InvitationEntity {
createdUserId == other.createdUserId &&
assignedUserId == other.assignedUserId &&
entityType == other.entityType &&
idempotencyKey == other.idempotencyKey &&
id == other.id;
}
@ -2986,20 +2948,18 @@ class _$InvitationEntity extends InvitationEntity {
$jc(
$jc(
$jc(
$jc(
$jc($jc(0, key.hashCode),
link.hashCode),
clientContactId.hashCode),
vendorContactId.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
archivedAt.hashCode),
isDeleted.hashCode),
createdUserId.hashCode),
assignedUserId.hashCode),
entityType.hashCode),
idempotencyKey.hashCode),
$jc($jc(0, key.hashCode),
link.hashCode),
clientContactId.hashCode),
vendorContactId.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
archivedAt.hashCode),
isDeleted.hashCode),
createdUserId.hashCode),
assignedUserId.hashCode),
entityType.hashCode),
id.hashCode));
}
@ -3022,7 +2982,6 @@ class _$InvitationEntity extends InvitationEntity {
..add('createdUserId', createdUserId)
..add('assignedUserId', assignedUserId)
..add('entityType', entityType)
..add('idempotencyKey', idempotencyKey)
..add('id', id))
.toString();
}
@ -3100,11 +3059,6 @@ class InvitationEntityBuilder
EntityType get entityType => _$this._entityType;
set entityType(EntityType entityType) => _$this._entityType = entityType;
String _idempotencyKey;
String get idempotencyKey => _$this._idempotencyKey;
set idempotencyKey(String idempotencyKey) =>
_$this._idempotencyKey = idempotencyKey;
String _id;
String get id => _$this._id;
set id(String id) => _$this._id = id;
@ -3132,7 +3086,6 @@ class InvitationEntityBuilder
_createdUserId = $v.createdUserId;
_assignedUserId = $v.assignedUserId;
_entityType = $v.entityType;
_idempotencyKey = $v.idempotencyKey;
_id = $v.id;
_$v = null;
}
@ -3179,7 +3132,6 @@ class InvitationEntityBuilder
createdUserId: createdUserId,
assignedUserId: assignedUserId,
entityType: entityType,
idempotencyKey: idempotencyKey,
id: BuiltValueNullFieldError.checkNotNull(id, 'InvitationEntity', 'id'));
replace(_$result);
return _$result;

View File

@ -138,6 +138,10 @@ abstract class PaymentEntity extends Object
String get number;
@nullable
@BuiltValueField(wireName: 'idempotency_key')
String get idempotencyKey;
@override
@BuiltValueField(wireName: 'client_id')
String get clientId;

View File

@ -213,6 +213,13 @@ class _$PaymentEntitySerializer implements StructuredSerializer<PaymentEntity> {
serializers.serialize(object.id, specifiedType: const FullType(String)),
];
Object value;
value = object.idempotencyKey;
if (value != null) {
result
..add('idempotency_key')
..add(serializers.serialize(value,
specifiedType: const FullType(String)));
}
value = object.isApplying;
if (value != null) {
result
@ -262,13 +269,6 @@ class _$PaymentEntitySerializer implements StructuredSerializer<PaymentEntity> {
..add(serializers.serialize(value,
specifiedType: const FullType(String)));
}
value = object.idempotencyKey;
if (value != null) {
result
..add('idempotency_key')
..add(serializers.serialize(value,
specifiedType: const FullType(String)));
}
return result;
}
@ -300,6 +300,10 @@ class _$PaymentEntitySerializer implements StructuredSerializer<PaymentEntity> {
result.number = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'idempotency_key':
result.idempotencyKey = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'client_id':
result.clientId = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
@ -434,10 +438,6 @@ class _$PaymentEntitySerializer implements StructuredSerializer<PaymentEntity> {
result.assignedUserId = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'idempotency_key':
result.idempotencyKey = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'id':
result.id = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
@ -734,6 +734,8 @@ class _$PaymentEntity extends PaymentEntity {
@override
final String number;
@override
final String idempotencyKey;
@override
final String clientId;
@override
final String statusId;
@ -798,8 +800,6 @@ class _$PaymentEntity extends PaymentEntity {
@override
final String assignedUserId;
@override
final String idempotencyKey;
@override
final String id;
factory _$PaymentEntity([void Function(PaymentEntityBuilder) updates]) =>
@ -810,6 +810,7 @@ class _$PaymentEntity extends PaymentEntity {
this.applied,
this.refunded,
this.number,
this.idempotencyKey,
this.clientId,
this.statusId,
this.transactionReference,
@ -842,7 +843,6 @@ class _$PaymentEntity extends PaymentEntity {
this.isDeleted,
this.createdUserId,
this.assignedUserId,
this.idempotencyKey,
this.id})
: super._() {
BuiltValueNullFieldError.checkNotNull(amount, 'PaymentEntity', 'amount');
@ -915,6 +915,7 @@ class _$PaymentEntity extends PaymentEntity {
applied == other.applied &&
refunded == other.refunded &&
number == other.number &&
idempotencyKey == other.idempotencyKey &&
clientId == other.clientId &&
statusId == other.statusId &&
transactionReference == other.transactionReference &&
@ -947,7 +948,6 @@ class _$PaymentEntity extends PaymentEntity {
isDeleted == other.isDeleted &&
createdUserId == other.createdUserId &&
assignedUserId == other.assignedUserId &&
idempotencyKey == other.idempotencyKey &&
id == other.id;
}
@ -972,25 +972,25 @@ class _$PaymentEntity extends PaymentEntity {
$jc(
$jc(
$jc(
$jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc(0, amount.hashCode), applied.hashCode), refunded.hashCode), number.hashCode), clientId.hashCode), statusId.hashCode), transactionReference.hashCode), date.hashCode), typeId.hashCode), privateNotes.hashCode), customValue1.hashCode), customValue2.hashCode), customValue3.hashCode), customValue4.hashCode), exchangeRate.hashCode), exchangeCurrencyId.hashCode), isManual.hashCode), projectId.hashCode), vendorId.hashCode),
invitationId.hashCode),
clientContactId.hashCode),
companyGatewayId.hashCode),
currencyId.hashCode),
isApplying.hashCode),
sendEmail.hashCode),
gatewayRefund.hashCode),
paymentables.hashCode),
invoices.hashCode),
credits.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
archivedAt.hashCode),
isDeleted.hashCode),
createdUserId.hashCode),
assignedUserId.hashCode),
idempotencyKey.hashCode),
$jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc(0, amount.hashCode), applied.hashCode), refunded.hashCode), number.hashCode), idempotencyKey.hashCode), clientId.hashCode), statusId.hashCode), transactionReference.hashCode), date.hashCode), typeId.hashCode), privateNotes.hashCode), customValue1.hashCode), customValue2.hashCode), customValue3.hashCode), customValue4.hashCode), exchangeRate.hashCode), exchangeCurrencyId.hashCode), isManual.hashCode), projectId.hashCode),
vendorId.hashCode),
invitationId.hashCode),
clientContactId.hashCode),
companyGatewayId.hashCode),
currencyId.hashCode),
isApplying.hashCode),
sendEmail.hashCode),
gatewayRefund.hashCode),
paymentables.hashCode),
invoices.hashCode),
credits.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
archivedAt.hashCode),
isDeleted.hashCode),
createdUserId.hashCode),
assignedUserId.hashCode),
id.hashCode));
}
@ -1001,6 +1001,7 @@ class _$PaymentEntity extends PaymentEntity {
..add('applied', applied)
..add('refunded', refunded)
..add('number', number)
..add('idempotencyKey', idempotencyKey)
..add('clientId', clientId)
..add('statusId', statusId)
..add('transactionReference', transactionReference)
@ -1033,7 +1034,6 @@ class _$PaymentEntity extends PaymentEntity {
..add('isDeleted', isDeleted)
..add('createdUserId', createdUserId)
..add('assignedUserId', assignedUserId)
..add('idempotencyKey', idempotencyKey)
..add('id', id))
.toString();
}
@ -1059,6 +1059,11 @@ class PaymentEntityBuilder
String get number => _$this._number;
set number(String number) => _$this._number = number;
String _idempotencyKey;
String get idempotencyKey => _$this._idempotencyKey;
set idempotencyKey(String idempotencyKey) =>
_$this._idempotencyKey = idempotencyKey;
String _clientId;
String get clientId => _$this._clientId;
set clientId(String clientId) => _$this._clientId = clientId;
@ -1200,11 +1205,6 @@ class PaymentEntityBuilder
set assignedUserId(String assignedUserId) =>
_$this._assignedUserId = assignedUserId;
String _idempotencyKey;
String get idempotencyKey => _$this._idempotencyKey;
set idempotencyKey(String idempotencyKey) =>
_$this._idempotencyKey = idempotencyKey;
String _id;
String get id => _$this._id;
set id(String id) => _$this._id = id;
@ -1218,6 +1218,7 @@ class PaymentEntityBuilder
_applied = $v.applied;
_refunded = $v.refunded;
_number = $v.number;
_idempotencyKey = $v.idempotencyKey;
_clientId = $v.clientId;
_statusId = $v.statusId;
_transactionReference = $v.transactionReference;
@ -1250,7 +1251,6 @@ class PaymentEntityBuilder
_isDeleted = $v.isDeleted;
_createdUserId = $v.createdUserId;
_assignedUserId = $v.assignedUserId;
_idempotencyKey = $v.idempotencyKey;
_id = $v.id;
_$v = null;
}
@ -1282,6 +1282,7 @@ class PaymentEntityBuilder
refunded, 'PaymentEntity', 'refunded'),
number: BuiltValueNullFieldError.checkNotNull(
number, 'PaymentEntity', 'number'),
idempotencyKey: idempotencyKey,
clientId: BuiltValueNullFieldError.checkNotNull(
clientId, 'PaymentEntity', 'clientId'),
statusId: BuiltValueNullFieldError.checkNotNull(
@ -1319,7 +1320,6 @@ class PaymentEntityBuilder
isDeleted: isDeleted,
createdUserId: createdUserId,
assignedUserId: assignedUserId,
idempotencyKey: idempotencyKey,
id: BuiltValueNullFieldError.checkNotNull(id, 'PaymentEntity', 'id'));
} catch (_) {
String _$failedField;

View File

@ -57,7 +57,6 @@ abstract class PaymentTermEntity extends Object
factory PaymentTermEntity({String id, AppState state}) {
return _$PaymentTermEntity._(
id: id ?? BaseEntity.nextId,
idempotencyKey: BaseEntity.nextIdempotencyKey,
isChanged: false,
isDeleted: false,
archivedAt: 0,

View File

@ -165,13 +165,6 @@ class _$PaymentTermEntitySerializer
..add(serializers.serialize(value,
specifiedType: const FullType(String)));
}
value = object.idempotencyKey;
if (value != null) {
result
..add('idempotency_key')
..add(serializers.serialize(value,
specifiedType: const FullType(String)));
}
return result;
}
@ -223,10 +216,6 @@ class _$PaymentTermEntitySerializer
result.assignedUserId = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'idempotency_key':
result.idempotencyKey = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'id':
result.id = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
@ -448,8 +437,6 @@ class _$PaymentTermEntity extends PaymentTermEntity {
@override
final String assignedUserId;
@override
final String idempotencyKey;
@override
final String id;
factory _$PaymentTermEntity(
@ -466,7 +453,6 @@ class _$PaymentTermEntity extends PaymentTermEntity {
this.isDeleted,
this.createdUserId,
this.assignedUserId,
this.idempotencyKey,
this.id})
: super._() {
BuiltValueNullFieldError.checkNotNull(name, 'PaymentTermEntity', 'name');
@ -502,7 +488,6 @@ class _$PaymentTermEntity extends PaymentTermEntity {
isDeleted == other.isDeleted &&
createdUserId == other.createdUserId &&
assignedUserId == other.assignedUserId &&
idempotencyKey == other.idempotencyKey &&
id == other.id;
}
@ -517,17 +502,15 @@ class _$PaymentTermEntity extends PaymentTermEntity {
$jc(
$jc(
$jc(
$jc(
$jc($jc(0, name.hashCode),
numDays.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
archivedAt.hashCode),
isDeleted.hashCode),
createdUserId.hashCode),
assignedUserId.hashCode),
idempotencyKey.hashCode),
$jc($jc(0, name.hashCode),
numDays.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
archivedAt.hashCode),
isDeleted.hashCode),
createdUserId.hashCode),
assignedUserId.hashCode),
id.hashCode));
}
@ -543,7 +526,6 @@ class _$PaymentTermEntity extends PaymentTermEntity {
..add('isDeleted', isDeleted)
..add('createdUserId', createdUserId)
..add('assignedUserId', assignedUserId)
..add('idempotencyKey', idempotencyKey)
..add('id', id))
.toString();
}
@ -591,11 +573,6 @@ class PaymentTermEntityBuilder
set assignedUserId(String assignedUserId) =>
_$this._assignedUserId = assignedUserId;
String _idempotencyKey;
String get idempotencyKey => _$this._idempotencyKey;
set idempotencyKey(String idempotencyKey) =>
_$this._idempotencyKey = idempotencyKey;
String _id;
String get id => _$this._id;
set id(String id) => _$this._id = id;
@ -614,7 +591,6 @@ class PaymentTermEntityBuilder
_isDeleted = $v.isDeleted;
_createdUserId = $v.createdUserId;
_assignedUserId = $v.assignedUserId;
_idempotencyKey = $v.idempotencyKey;
_id = $v.id;
_$v = null;
}
@ -650,7 +626,6 @@ class PaymentTermEntityBuilder
isDeleted: isDeleted,
createdUserId: createdUserId,
assignedUserId: assignedUserId,
idempotencyKey: idempotencyKey,
id: BuiltValueNullFieldError.checkNotNull(
id, 'PaymentTermEntity', 'id'));
replace(_$result);

View File

@ -75,7 +75,6 @@ abstract class ProductEntity extends Object
factory ProductEntity({String id, AppState state}) {
return _$ProductEntity._(
id: id ?? BaseEntity.nextId,
idempotencyKey: BaseEntity.nextIdempotencyKey,
isChanged: false,
productKey: '',
notes: '',
@ -113,7 +112,6 @@ abstract class ProductEntity extends Object
ProductEntity get clone => rebuild((b) => b
..id = BaseEntity.nextId
..idempotencyKey = BaseEntity.nextIdempotencyKey
..documents.clear()
..isChanged = false
..isDeleted = false);

View File

@ -216,13 +216,6 @@ class _$ProductEntitySerializer implements StructuredSerializer<ProductEntity> {
..add(serializers.serialize(value,
specifiedType: const FullType(String)));
}
value = object.idempotencyKey;
if (value != null) {
result
..add('idempotency_key')
..add(serializers.serialize(value,
specifiedType: const FullType(String)));
}
return result;
}
@ -344,10 +337,6 @@ class _$ProductEntitySerializer implements StructuredSerializer<ProductEntity> {
result.assignedUserId = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'idempotency_key':
result.idempotencyKey = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'id':
result.id = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
@ -598,8 +587,6 @@ class _$ProductEntity extends ProductEntity {
@override
final String assignedUserId;
@override
final String idempotencyKey;
@override
final String id;
factory _$ProductEntity([void Function(ProductEntityBuilder) updates]) =>
@ -632,7 +619,6 @@ class _$ProductEntity extends ProductEntity {
this.isDeleted,
this.createdUserId,
this.assignedUserId,
this.idempotencyKey,
this.id})
: super._() {
BuiltValueNullFieldError.checkNotNull(
@ -716,7 +702,6 @@ class _$ProductEntity extends ProductEntity {
isDeleted == other.isDeleted &&
createdUserId == other.createdUserId &&
assignedUserId == other.assignedUserId &&
idempotencyKey == other.idempotencyKey &&
id == other.id;
}
@ -741,25 +726,25 @@ class _$ProductEntity extends ProductEntity {
$jc(
$jc(
$jc(
$jc($jc($jc($jc($jc($jc($jc($jc($jc($jc(0, productKey.hashCode), notes.hashCode), cost.hashCode), price.hashCode), quantity.hashCode), taxName1.hashCode), taxRate1.hashCode), taxName2.hashCode), taxRate2.hashCode),
taxName3.hashCode),
taxRate3.hashCode),
customValue1.hashCode),
customValue2.hashCode),
customValue3.hashCode),
customValue4.hashCode),
stockQuantity.hashCode),
stockNotificationThreshold.hashCode),
stockNotification.hashCode),
documents.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
archivedAt.hashCode),
isDeleted.hashCode),
createdUserId.hashCode),
assignedUserId.hashCode),
idempotencyKey.hashCode),
$jc($jc($jc($jc($jc($jc($jc($jc($jc(0, productKey.hashCode), notes.hashCode), cost.hashCode), price.hashCode), quantity.hashCode), taxName1.hashCode), taxRate1.hashCode), taxName2.hashCode),
taxRate2.hashCode),
taxName3.hashCode),
taxRate3.hashCode),
customValue1.hashCode),
customValue2.hashCode),
customValue3.hashCode),
customValue4.hashCode),
stockQuantity.hashCode),
stockNotificationThreshold.hashCode),
stockNotification.hashCode),
documents.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
archivedAt.hashCode),
isDeleted.hashCode),
createdUserId.hashCode),
assignedUserId.hashCode),
id.hashCode));
}
@ -792,7 +777,6 @@ class _$ProductEntity extends ProductEntity {
..add('isDeleted', isDeleted)
..add('createdUserId', createdUserId)
..add('assignedUserId', assignedUserId)
..add('idempotencyKey', idempotencyKey)
..add('id', id))
.toString();
}
@ -912,11 +896,6 @@ class ProductEntityBuilder
set assignedUserId(String assignedUserId) =>
_$this._assignedUserId = assignedUserId;
String _idempotencyKey;
String get idempotencyKey => _$this._idempotencyKey;
set idempotencyKey(String idempotencyKey) =>
_$this._idempotencyKey = idempotencyKey;
String _id;
String get id => _$this._id;
set id(String id) => _$this._id = id;
@ -954,7 +933,6 @@ class ProductEntityBuilder
_isDeleted = $v.isDeleted;
_createdUserId = $v.createdUserId;
_assignedUserId = $v.assignedUserId;
_idempotencyKey = $v.idempotencyKey;
_id = $v.id;
_$v = null;
}
@ -1014,7 +992,6 @@ class ProductEntityBuilder
isDeleted: isDeleted,
createdUserId: createdUserId,
assignedUserId: assignedUserId,
idempotencyKey: idempotencyKey,
id: BuiltValueNullFieldError.checkNotNull(id, 'ProductEntity', 'id'));
} catch (_) {
String _$failedField;

View File

@ -79,7 +79,6 @@ abstract class ProjectEntity extends Object
}) {
return _$ProjectEntity._(
id: id ?? BaseEntity.nextId,
idempotencyKey: BaseEntity.nextIdempotencyKey,
number: '',
isChanged: false,
name: '',
@ -112,7 +111,6 @@ abstract class ProjectEntity extends Object
ProjectEntity get clone => rebuild((b) => b
..id = BaseEntity.nextId
..idempotencyKey = BaseEntity.nextIdempotencyKey
..number = ''
..documents.clear()
..isChanged = false

View File

@ -201,13 +201,6 @@ class _$ProjectEntitySerializer implements StructuredSerializer<ProjectEntity> {
..add(serializers.serialize(value,
specifiedType: const FullType(String)));
}
value = object.idempotencyKey;
if (value != null) {
result
..add('idempotency_key')
..add(serializers.serialize(value,
specifiedType: const FullType(String)));
}
return result;
}
@ -309,10 +302,6 @@ class _$ProjectEntitySerializer implements StructuredSerializer<ProjectEntity> {
result.assignedUserId = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'idempotency_key':
result.idempotencyKey = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'id':
result.id = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
@ -553,8 +542,6 @@ class _$ProjectEntity extends ProjectEntity {
@override
final String assignedUserId;
@override
final String idempotencyKey;
@override
final String id;
factory _$ProjectEntity([void Function(ProjectEntityBuilder) updates]) =>
@ -582,7 +569,6 @@ class _$ProjectEntity extends ProjectEntity {
this.isDeleted,
this.createdUserId,
this.assignedUserId,
this.idempotencyKey,
this.id})
: super._() {
BuiltValueNullFieldError.checkNotNull(name, 'ProjectEntity', 'name');
@ -650,7 +636,6 @@ class _$ProjectEntity extends ProjectEntity {
isDeleted == other.isDeleted &&
createdUserId == other.createdUserId &&
assignedUserId == other.assignedUserId &&
idempotencyKey == other.idempotencyKey &&
id == other.id;
}
@ -675,25 +660,25 @@ class _$ProjectEntity extends ProjectEntity {
$jc(
$jc(
$jc(
$jc($jc($jc($jc($jc(0, name.hashCode), color.hashCode), clientId.hashCode), taskRate.hashCode),
dueDate.hashCode),
privateNotes.hashCode),
publicNotes.hashCode),
budgetedHours.hashCode),
customValue1.hashCode),
customValue2.hashCode),
customValue3.hashCode),
customValue4.hashCode),
number.hashCode),
documents.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
archivedAt.hashCode),
isDeleted.hashCode),
createdUserId.hashCode),
assignedUserId.hashCode),
idempotencyKey.hashCode),
$jc($jc($jc($jc(0, name.hashCode), color.hashCode), clientId.hashCode),
taskRate.hashCode),
dueDate.hashCode),
privateNotes.hashCode),
publicNotes.hashCode),
budgetedHours.hashCode),
customValue1.hashCode),
customValue2.hashCode),
customValue3.hashCode),
customValue4.hashCode),
number.hashCode),
documents.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
archivedAt.hashCode),
isDeleted.hashCode),
createdUserId.hashCode),
assignedUserId.hashCode),
id.hashCode));
}
@ -721,7 +706,6 @@ class _$ProjectEntity extends ProjectEntity {
..add('isDeleted', isDeleted)
..add('createdUserId', createdUserId)
..add('assignedUserId', assignedUserId)
..add('idempotencyKey', idempotencyKey)
..add('id', id))
.toString();
}
@ -820,11 +804,6 @@ class ProjectEntityBuilder
set assignedUserId(String assignedUserId) =>
_$this._assignedUserId = assignedUserId;
String _idempotencyKey;
String get idempotencyKey => _$this._idempotencyKey;
set idempotencyKey(String idempotencyKey) =>
_$this._idempotencyKey = idempotencyKey;
String _id;
String get id => _$this._id;
set id(String id) => _$this._id = id;
@ -857,7 +836,6 @@ class ProjectEntityBuilder
_isDeleted = $v.isDeleted;
_createdUserId = $v.createdUserId;
_assignedUserId = $v.assignedUserId;
_idempotencyKey = $v.idempotencyKey;
_id = $v.id;
_$v = null;
}
@ -911,7 +889,6 @@ class ProjectEntityBuilder
isDeleted: isDeleted,
createdUserId: createdUserId,
assignedUserId: assignedUserId,
idempotencyKey: idempotencyKey,
id: BuiltValueNullFieldError.checkNotNull(id, 'ProjectEntity', 'id'));
} catch (_) {
String _$failedField;

View File

@ -63,7 +63,6 @@ abstract class SubscriptionEntity extends Object
factory SubscriptionEntity({String id, AppState state}) {
return _$SubscriptionEntity._(
id: id ?? BaseEntity.nextId,
idempotencyKey: BaseEntity.nextIdempotencyKey,
name: '',
isChanged: false,
isDeleted: false,

View File

@ -222,13 +222,6 @@ class _$SubscriptionEntitySerializer
..add(serializers.serialize(value,
specifiedType: const FullType(String)));
}
value = object.idempotencyKey;
if (value != null) {
result
..add('idempotency_key')
..add(serializers.serialize(value,
specifiedType: const FullType(String)));
}
return result;
}
@ -353,10 +346,6 @@ class _$SubscriptionEntitySerializer
result.assignedUserId = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'idempotency_key':
result.idempotencyKey = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'id':
result.id = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
@ -690,8 +679,6 @@ class _$SubscriptionEntity extends SubscriptionEntity {
@override
final String assignedUserId;
@override
final String idempotencyKey;
@override
final String id;
factory _$SubscriptionEntity(
@ -726,7 +713,6 @@ class _$SubscriptionEntity extends SubscriptionEntity {
this.isDeleted,
this.createdUserId,
this.assignedUserId,
this.idempotencyKey,
this.id})
: super._() {
BuiltValueNullFieldError.checkNotNull(name, 'SubscriptionEntity', 'name');
@ -816,7 +802,6 @@ class _$SubscriptionEntity extends SubscriptionEntity {
isDeleted == other.isDeleted &&
createdUserId == other.createdUserId &&
assignedUserId == other.assignedUserId &&
idempotencyKey == other.idempotencyKey &&
id == other.id;
}
@ -841,25 +826,25 @@ class _$SubscriptionEntity extends SubscriptionEntity {
$jc(
$jc(
$jc(
$jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc(0, name.hashCode), groupId.hashCode), productIds.hashCode), recurringProductIds.hashCode), frequencyId.hashCode), autoBill.hashCode), promoCode.hashCode), promoDiscount.hashCode), price.hashCode), isAmountDiscount.hashCode),
allowCancellation.hashCode),
perSeatEnabled.hashCode),
maxSeatsLimit.hashCode),
trialEnabled.hashCode),
trialDuration.hashCode),
allowQueryOverrides.hashCode),
allowPlanChanges.hashCode),
refundPeriod.hashCode),
webhookConfiguration.hashCode),
purchasePage.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
archivedAt.hashCode),
isDeleted.hashCode),
createdUserId.hashCode),
assignedUserId.hashCode),
idempotencyKey.hashCode),
$jc($jc($jc($jc($jc($jc($jc($jc($jc($jc(0, name.hashCode), groupId.hashCode), productIds.hashCode), recurringProductIds.hashCode), frequencyId.hashCode), autoBill.hashCode), promoCode.hashCode), promoDiscount.hashCode), price.hashCode),
isAmountDiscount.hashCode),
allowCancellation.hashCode),
perSeatEnabled.hashCode),
maxSeatsLimit.hashCode),
trialEnabled.hashCode),
trialDuration.hashCode),
allowQueryOverrides.hashCode),
allowPlanChanges.hashCode),
refundPeriod.hashCode),
webhookConfiguration.hashCode),
purchasePage.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
archivedAt.hashCode),
isDeleted.hashCode),
createdUserId.hashCode),
assignedUserId.hashCode),
id.hashCode));
}
@ -893,7 +878,6 @@ class _$SubscriptionEntity extends SubscriptionEntity {
..add('isDeleted', isDeleted)
..add('createdUserId', createdUserId)
..add('assignedUserId', assignedUserId)
..add('idempotencyKey', idempotencyKey)
..add('id', id))
.toString();
}
@ -1023,11 +1007,6 @@ class SubscriptionEntityBuilder
set assignedUserId(String assignedUserId) =>
_$this._assignedUserId = assignedUserId;
String _idempotencyKey;
String get idempotencyKey => _$this._idempotencyKey;
set idempotencyKey(String idempotencyKey) =>
_$this._idempotencyKey = idempotencyKey;
String _id;
String get id => _$this._id;
set id(String id) => _$this._id = id;
@ -1064,7 +1043,6 @@ class SubscriptionEntityBuilder
_isDeleted = $v.isDeleted;
_createdUserId = $v.createdUserId;
_assignedUserId = $v.assignedUserId;
_idempotencyKey = $v.idempotencyKey;
_id = $v.id;
_$v = null;
}
@ -1123,7 +1101,6 @@ class SubscriptionEntityBuilder
isDeleted: isDeleted,
createdUserId: createdUserId,
assignedUserId: assignedUserId,
idempotencyKey: idempotencyKey,
id: BuiltValueNullFieldError.checkNotNull(id, 'SubscriptionEntity', 'id'));
} catch (_) {
String _$failedField;

View File

@ -260,7 +260,6 @@ abstract class TaskEntity extends Object
return _$TaskEntity._(
id: id ?? BaseEntity.nextId,
idempotencyKey: BaseEntity.nextIdempotencyKey,
number: '',
isChanged: false,
description: '',
@ -296,7 +295,6 @@ abstract class TaskEntity extends Object
TaskEntity get clone => rebuild((b) => b
..id = BaseEntity.nextId
..idempotencyKey = BaseEntity.nextIdempotencyKey
..number = ''
..isChanged = false
..isDeleted = false

View File

@ -253,13 +253,6 @@ class _$TaskEntitySerializer implements StructuredSerializer<TaskEntity> {
..add(serializers.serialize(value,
specifiedType: const FullType(String)));
}
value = object.idempotencyKey;
if (value != null) {
result
..add('idempotency_key')
..add(serializers.serialize(value,
specifiedType: const FullType(String)));
}
return result;
}
@ -364,10 +357,6 @@ class _$TaskEntitySerializer implements StructuredSerializer<TaskEntity> {
result.assignedUserId = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'idempotency_key':
result.idempotencyKey = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'id':
result.id = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
@ -691,8 +680,6 @@ class _$TaskEntity extends TaskEntity {
@override
final String assignedUserId;
@override
final String idempotencyKey;
@override
final String id;
factory _$TaskEntity([void Function(TaskEntityBuilder) updates]) =>
@ -721,7 +708,6 @@ class _$TaskEntity extends TaskEntity {
this.isDeleted,
this.createdUserId,
this.assignedUserId,
this.idempotencyKey,
this.id})
: super._() {
BuiltValueNullFieldError.checkNotNull(
@ -783,7 +769,6 @@ class _$TaskEntity extends TaskEntity {
isDeleted == other.isDeleted &&
createdUserId == other.createdUserId &&
assignedUserId == other.assignedUserId &&
idempotencyKey == other.idempotencyKey &&
id == other.id;
}
@ -808,25 +793,25 @@ class _$TaskEntity extends TaskEntity {
$jc(
$jc(
$jc(
$jc($jc($jc($jc($jc($jc(0, description.hashCode), number.hashCode), duration.hashCode), invoiceId.hashCode), clientId.hashCode),
rate.hashCode),
projectId.hashCode),
timeLog.hashCode),
customValue1.hashCode),
customValue2.hashCode),
customValue3.hashCode),
customValue4.hashCode),
statusId.hashCode),
statusOrder.hashCode),
documents.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
archivedAt.hashCode),
isDeleted.hashCode),
createdUserId.hashCode),
assignedUserId.hashCode),
idempotencyKey.hashCode),
$jc($jc($jc($jc($jc(0, description.hashCode), number.hashCode), duration.hashCode), invoiceId.hashCode),
clientId.hashCode),
rate.hashCode),
projectId.hashCode),
timeLog.hashCode),
customValue1.hashCode),
customValue2.hashCode),
customValue3.hashCode),
customValue4.hashCode),
statusId.hashCode),
statusOrder.hashCode),
documents.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
archivedAt.hashCode),
isDeleted.hashCode),
createdUserId.hashCode),
assignedUserId.hashCode),
id.hashCode));
}
@ -855,7 +840,6 @@ class _$TaskEntity extends TaskEntity {
..add('isDeleted', isDeleted)
..add('createdUserId', createdUserId)
..add('assignedUserId', assignedUserId)
..add('idempotencyKey', idempotencyKey)
..add('id', id))
.toString();
}
@ -956,11 +940,6 @@ class TaskEntityBuilder implements Builder<TaskEntity, TaskEntityBuilder> {
set assignedUserId(String assignedUserId) =>
_$this._assignedUserId = assignedUserId;
String _idempotencyKey;
String get idempotencyKey => _$this._idempotencyKey;
set idempotencyKey(String idempotencyKey) =>
_$this._idempotencyKey = idempotencyKey;
String _id;
String get id => _$this._id;
set id(String id) => _$this._id = id;
@ -992,7 +971,6 @@ class TaskEntityBuilder implements Builder<TaskEntity, TaskEntityBuilder> {
_isDeleted = $v.isDeleted;
_createdUserId = $v.createdUserId;
_assignedUserId = $v.assignedUserId;
_idempotencyKey = $v.idempotencyKey;
_id = $v.id;
_$v = null;
}
@ -1047,7 +1025,6 @@ class TaskEntityBuilder implements Builder<TaskEntity, TaskEntityBuilder> {
isDeleted: isDeleted,
createdUserId: createdUserId,
assignedUserId: assignedUserId,
idempotencyKey: idempotencyKey,
id: BuiltValueNullFieldError.checkNotNull(id, 'TaskEntity', 'id'));
} catch (_) {
String _$failedField;

View File

@ -61,7 +61,6 @@ abstract class TaskStatusEntity extends Object
factory TaskStatusEntity({String id, AppState state}) {
return _$TaskStatusEntity._(
id: id ?? BaseEntity.nextId,
idempotencyKey: BaseEntity.nextIdempotencyKey,
name: '',
color: '',
createdUserId: '',

View File

@ -172,13 +172,6 @@ class _$TaskStatusEntitySerializer
..add(serializers.serialize(value,
specifiedType: const FullType(String)));
}
value = object.idempotencyKey;
if (value != null) {
result
..add('idempotency_key')
..add(serializers.serialize(value,
specifiedType: const FullType(String)));
}
return result;
}
@ -234,10 +227,6 @@ class _$TaskStatusEntitySerializer
result.assignedUserId = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'idempotency_key':
result.idempotencyKey = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'id':
result.id = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
@ -459,8 +448,6 @@ class _$TaskStatusEntity extends TaskStatusEntity {
@override
final String assignedUserId;
@override
final String idempotencyKey;
@override
final String id;
factory _$TaskStatusEntity(
@ -478,7 +465,6 @@ class _$TaskStatusEntity extends TaskStatusEntity {
this.isDeleted,
this.createdUserId,
this.assignedUserId,
this.idempotencyKey,
this.id})
: super._() {
BuiltValueNullFieldError.checkNotNull(name, 'TaskStatusEntity', 'name');
@ -514,7 +500,6 @@ class _$TaskStatusEntity extends TaskStatusEntity {
isDeleted == other.isDeleted &&
createdUserId == other.createdUserId &&
assignedUserId == other.assignedUserId &&
idempotencyKey == other.idempotencyKey &&
id == other.id;
}
@ -530,18 +515,16 @@ class _$TaskStatusEntity extends TaskStatusEntity {
$jc(
$jc(
$jc(
$jc(
$jc($jc(0, name.hashCode),
color.hashCode),
statusOrder.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
archivedAt.hashCode),
isDeleted.hashCode),
createdUserId.hashCode),
assignedUserId.hashCode),
idempotencyKey.hashCode),
$jc($jc(0, name.hashCode),
color.hashCode),
statusOrder.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
archivedAt.hashCode),
isDeleted.hashCode),
createdUserId.hashCode),
assignedUserId.hashCode),
id.hashCode));
}
@ -558,7 +541,6 @@ class _$TaskStatusEntity extends TaskStatusEntity {
..add('isDeleted', isDeleted)
..add('createdUserId', createdUserId)
..add('assignedUserId', assignedUserId)
..add('idempotencyKey', idempotencyKey)
..add('id', id))
.toString();
}
@ -610,11 +592,6 @@ class TaskStatusEntityBuilder
set assignedUserId(String assignedUserId) =>
_$this._assignedUserId = assignedUserId;
String _idempotencyKey;
String get idempotencyKey => _$this._idempotencyKey;
set idempotencyKey(String idempotencyKey) =>
_$this._idempotencyKey = idempotencyKey;
String _id;
String get id => _$this._id;
set id(String id) => _$this._id = id;
@ -636,7 +613,6 @@ class TaskStatusEntityBuilder
_isDeleted = $v.isDeleted;
_createdUserId = $v.createdUserId;
_assignedUserId = $v.assignedUserId;
_idempotencyKey = $v.idempotencyKey;
_id = $v.id;
_$v = null;
}
@ -673,7 +649,6 @@ class TaskStatusEntityBuilder
isDeleted: isDeleted,
createdUserId: createdUserId,
assignedUserId: assignedUserId,
idempotencyKey: idempotencyKey,
id: BuiltValueNullFieldError.checkNotNull(
id, 'TaskStatusEntity', 'id'));
replace(_$result);

View File

@ -59,7 +59,6 @@ abstract class TaxRateEntity extends Object
factory TaxRateEntity({String id, String name, double rate, AppState state}) {
return _$TaxRateEntity._(
id: BaseEntity.nextId,
idempotencyKey: BaseEntity.nextIdempotencyKey,
isChanged: false,
name: name ?? '',
rate: rate ?? 0.0,

View File

@ -163,13 +163,6 @@ class _$TaxRateEntitySerializer implements StructuredSerializer<TaxRateEntity> {
..add(serializers.serialize(value,
specifiedType: const FullType(String)));
}
value = object.idempotencyKey;
if (value != null) {
result
..add('idempotency_key')
..add(serializers.serialize(value,
specifiedType: const FullType(String)));
}
return result;
}
@ -221,10 +214,6 @@ class _$TaxRateEntitySerializer implements StructuredSerializer<TaxRateEntity> {
result.assignedUserId = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'idempotency_key':
result.idempotencyKey = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'id':
result.id = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
@ -441,8 +430,6 @@ class _$TaxRateEntity extends TaxRateEntity {
@override
final String assignedUserId;
@override
final String idempotencyKey;
@override
final String id;
factory _$TaxRateEntity([void Function(TaxRateEntityBuilder) updates]) =>
@ -458,7 +445,6 @@ class _$TaxRateEntity extends TaxRateEntity {
this.isDeleted,
this.createdUserId,
this.assignedUserId,
this.idempotencyKey,
this.id})
: super._() {
BuiltValueNullFieldError.checkNotNull(name, 'TaxRateEntity', 'name');
@ -492,7 +478,6 @@ class _$TaxRateEntity extends TaxRateEntity {
isDeleted == other.isDeleted &&
createdUserId == other.createdUserId &&
assignedUserId == other.assignedUserId &&
idempotencyKey == other.idempotencyKey &&
id == other.id;
}
@ -506,18 +491,14 @@ class _$TaxRateEntity extends TaxRateEntity {
$jc(
$jc(
$jc(
$jc(
$jc(
$jc($jc(0, name.hashCode),
rate.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
archivedAt.hashCode),
isDeleted.hashCode),
createdUserId.hashCode),
assignedUserId.hashCode),
idempotencyKey.hashCode),
$jc($jc($jc(0, name.hashCode), rate.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
archivedAt.hashCode),
isDeleted.hashCode),
createdUserId.hashCode),
assignedUserId.hashCode),
id.hashCode));
}
@ -533,7 +514,6 @@ class _$TaxRateEntity extends TaxRateEntity {
..add('isDeleted', isDeleted)
..add('createdUserId', createdUserId)
..add('assignedUserId', assignedUserId)
..add('idempotencyKey', idempotencyKey)
..add('id', id))
.toString();
}
@ -581,11 +561,6 @@ class TaxRateEntityBuilder
set assignedUserId(String assignedUserId) =>
_$this._assignedUserId = assignedUserId;
String _idempotencyKey;
String get idempotencyKey => _$this._idempotencyKey;
set idempotencyKey(String idempotencyKey) =>
_$this._idempotencyKey = idempotencyKey;
String _id;
String get id => _$this._id;
set id(String id) => _$this._id = id;
@ -604,7 +579,6 @@ class TaxRateEntityBuilder
_isDeleted = $v.isDeleted;
_createdUserId = $v.createdUserId;
_assignedUserId = $v.assignedUserId;
_idempotencyKey = $v.idempotencyKey;
_id = $v.id;
_$v = null;
}
@ -640,7 +614,6 @@ class TaxRateEntityBuilder
isDeleted: isDeleted,
createdUserId: createdUserId,
assignedUserId: assignedUserId,
idempotencyKey: idempotencyKey,
id: BuiltValueNullFieldError.checkNotNull(
id, 'TaxRateEntity', 'id'));
replace(_$result);

View File

@ -60,7 +60,6 @@ abstract class TokenEntity extends Object
factory TokenEntity({String id, AppState state}) {
return _$TokenEntity._(
id: id ?? BaseEntity.nextId,
idempotencyKey: BaseEntity.nextIdempotencyKey,
isChanged: false,
name: '',
token: '',

View File

@ -158,13 +158,6 @@ class _$TokenEntitySerializer implements StructuredSerializer<TokenEntity> {
..add(serializers.serialize(value,
specifiedType: const FullType(String)));
}
value = object.idempotencyKey;
if (value != null) {
result
..add('idempotency_key')
..add(serializers.serialize(value,
specifiedType: const FullType(String)));
}
return result;
}
@ -219,10 +212,6 @@ class _$TokenEntitySerializer implements StructuredSerializer<TokenEntity> {
result.assignedUserId = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'idempotency_key':
result.idempotencyKey = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'id':
result.id = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
@ -437,8 +426,6 @@ class _$TokenEntity extends TokenEntity {
@override
final String assignedUserId;
@override
final String idempotencyKey;
@override
final String id;
factory _$TokenEntity([void Function(TokenEntityBuilder) updates]) =>
@ -455,7 +442,6 @@ class _$TokenEntity extends TokenEntity {
this.isDeleted,
this.createdUserId,
this.assignedUserId,
this.idempotencyKey,
this.id})
: super._() {
BuiltValueNullFieldError.checkNotNull(isSystem, 'TokenEntity', 'isSystem');
@ -491,7 +477,6 @@ class _$TokenEntity extends TokenEntity {
isDeleted == other.isDeleted &&
createdUserId == other.createdUserId &&
assignedUserId == other.assignedUserId &&
idempotencyKey == other.idempotencyKey &&
id == other.id;
}
@ -507,18 +492,16 @@ class _$TokenEntity extends TokenEntity {
$jc(
$jc(
$jc(
$jc(
$jc($jc(0, isSystem.hashCode),
token.hashCode),
name.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
archivedAt.hashCode),
isDeleted.hashCode),
createdUserId.hashCode),
assignedUserId.hashCode),
idempotencyKey.hashCode),
$jc($jc(0, isSystem.hashCode),
token.hashCode),
name.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
archivedAt.hashCode),
isDeleted.hashCode),
createdUserId.hashCode),
assignedUserId.hashCode),
id.hashCode));
}
@ -535,7 +518,6 @@ class _$TokenEntity extends TokenEntity {
..add('isDeleted', isDeleted)
..add('createdUserId', createdUserId)
..add('assignedUserId', assignedUserId)
..add('idempotencyKey', idempotencyKey)
..add('id', id))
.toString();
}
@ -586,11 +568,6 @@ class TokenEntityBuilder implements Builder<TokenEntity, TokenEntityBuilder> {
set assignedUserId(String assignedUserId) =>
_$this._assignedUserId = assignedUserId;
String _idempotencyKey;
String get idempotencyKey => _$this._idempotencyKey;
set idempotencyKey(String idempotencyKey) =>
_$this._idempotencyKey = idempotencyKey;
String _id;
String get id => _$this._id;
set id(String id) => _$this._id = id;
@ -610,7 +587,6 @@ class TokenEntityBuilder implements Builder<TokenEntity, TokenEntityBuilder> {
_isDeleted = $v.isDeleted;
_createdUserId = $v.createdUserId;
_assignedUserId = $v.assignedUserId;
_idempotencyKey = $v.idempotencyKey;
_id = $v.id;
_$v = null;
}
@ -648,7 +624,6 @@ class TokenEntityBuilder implements Builder<TokenEntity, TokenEntityBuilder> {
isDeleted: isDeleted,
createdUserId: createdUserId,
assignedUserId: assignedUserId,
idempotencyKey: idempotencyKey,
id: BuiltValueNullFieldError.checkNotNull(id, 'TokenEntity', 'id'));
replace(_$result);
return _$result;

View File

@ -71,7 +71,6 @@ abstract class TransactionEntity extends Object
factory TransactionEntity({String id, AppState state}) {
return _$TransactionEntity._(
id: id ?? BaseEntity.nextId,
idempotencyKey: BaseEntity.nextIdempotencyKey,
isChanged: false,
isDeleted: false,
createdAt: 0,

View File

@ -201,13 +201,6 @@ class _$TransactionEntitySerializer
..add(serializers.serialize(value,
specifiedType: const FullType(String)));
}
value = object.idempotencyKey;
if (value != null) {
result
..add('idempotency_key')
..add(serializers.serialize(value,
specifiedType: const FullType(String)));
}
return result;
}
@ -303,10 +296,6 @@ class _$TransactionEntitySerializer
result.assignedUserId = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'idempotency_key':
result.idempotencyKey = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'id':
result.id = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
@ -601,8 +590,6 @@ class _$TransactionEntity extends TransactionEntity {
@override
final String assignedUserId;
@override
final String idempotencyKey;
@override
final String id;
factory _$TransactionEntity(
@ -630,7 +617,6 @@ class _$TransactionEntity extends TransactionEntity {
this.isDeleted,
this.createdUserId,
this.assignedUserId,
this.idempotencyKey,
this.id})
: super._() {
BuiltValueNullFieldError.checkNotNull(
@ -699,7 +685,6 @@ class _$TransactionEntity extends TransactionEntity {
isDeleted == other.isDeleted &&
createdUserId == other.createdUserId &&
assignedUserId == other.assignedUserId &&
idempotencyKey == other.idempotencyKey &&
id == other.id;
}
@ -724,25 +709,25 @@ class _$TransactionEntity extends TransactionEntity {
$jc(
$jc(
$jc(
$jc($jc($jc($jc(0, amount.hashCode), currencyId.hashCode), category.hashCode),
baseType.hashCode),
date.hashCode),
bankAccountId.hashCode),
description.hashCode),
statusId.hashCode),
categoryId.hashCode),
invoiceIds.hashCode),
expenseId.hashCode),
vendorId.hashCode),
transactionId.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
archivedAt.hashCode),
isDeleted.hashCode),
createdUserId.hashCode),
assignedUserId.hashCode),
idempotencyKey.hashCode),
$jc($jc($jc(0, amount.hashCode), currencyId.hashCode),
category.hashCode),
baseType.hashCode),
date.hashCode),
bankAccountId.hashCode),
description.hashCode),
statusId.hashCode),
categoryId.hashCode),
invoiceIds.hashCode),
expenseId.hashCode),
vendorId.hashCode),
transactionId.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
archivedAt.hashCode),
isDeleted.hashCode),
createdUserId.hashCode),
assignedUserId.hashCode),
id.hashCode));
}
@ -769,7 +754,6 @@ class _$TransactionEntity extends TransactionEntity {
..add('isDeleted', isDeleted)
..add('createdUserId', createdUserId)
..add('assignedUserId', assignedUserId)
..add('idempotencyKey', idempotencyKey)
..add('id', id))
.toString();
}
@ -862,11 +846,6 @@ class TransactionEntityBuilder
set assignedUserId(String assignedUserId) =>
_$this._assignedUserId = assignedUserId;
String _idempotencyKey;
String get idempotencyKey => _$this._idempotencyKey;
set idempotencyKey(String idempotencyKey) =>
_$this._idempotencyKey = idempotencyKey;
String _id;
String get id => _$this._id;
set id(String id) => _$this._id = id;
@ -898,7 +877,6 @@ class TransactionEntityBuilder
_isDeleted = $v.isDeleted;
_createdUserId = $v.createdUserId;
_assignedUserId = $v.assignedUserId;
_idempotencyKey = $v.idempotencyKey;
_id = $v.id;
_$v = null;
}
@ -949,7 +927,6 @@ class TransactionEntityBuilder
isDeleted: isDeleted,
createdUserId: createdUserId,
assignedUserId: assignedUserId,
idempotencyKey: idempotencyKey,
id: BuiltValueNullFieldError.checkNotNull(id, 'TransactionEntity', 'id'));
replace(_$result);
return _$result;

View File

@ -118,7 +118,6 @@ abstract class UserEntity extends Object
{String id, AppState state, UserCompanyEntity userCompany}) {
return _$UserEntity._(
id: id ?? BaseEntity.nextId,
idempotencyKey: BaseEntity.nextIdempotencyKey,
isChanged: false,
createdUserId: '',
createdAt: 0,

View File

@ -354,13 +354,6 @@ class _$UserEntitySerializer implements StructuredSerializer<UserEntity> {
..add(serializers.serialize(value,
specifiedType: const FullType(String)));
}
value = object.idempotencyKey;
if (value != null) {
result
..add('idempotency_key')
..add(serializers.serialize(value,
specifiedType: const FullType(String)));
}
return result;
}
@ -468,10 +461,6 @@ class _$UserEntitySerializer implements StructuredSerializer<UserEntity> {
result.assignedUserId = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'idempotency_key':
result.idempotencyKey = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'id':
result.id = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
@ -997,8 +986,6 @@ class _$UserEntity extends UserEntity {
@override
final String assignedUserId;
@override
final String idempotencyKey;
@override
final String id;
factory _$UserEntity([void Function(UserEntityBuilder) updates]) =>
@ -1028,7 +1015,6 @@ class _$UserEntity extends UserEntity {
this.isDeleted,
this.createdUserId,
this.assignedUserId,
this.idempotencyKey,
this.id})
: super._() {
BuiltValueNullFieldError.checkNotNull(firstName, 'UserEntity', 'firstName');
@ -1095,7 +1081,6 @@ class _$UserEntity extends UserEntity {
isDeleted == other.isDeleted &&
createdUserId == other.createdUserId &&
assignedUserId == other.assignedUserId &&
idempotencyKey == other.idempotencyKey &&
id == other.id;
}
@ -1120,25 +1105,25 @@ class _$UserEntity extends UserEntity {
$jc(
$jc(
$jc(
$jc($jc($jc($jc($jc($jc($jc(0, firstName.hashCode), lastName.hashCode), email.hashCode), phone.hashCode), password.hashCode), emailVerifiedAt.hashCode),
customValue1.hashCode),
customValue2.hashCode),
customValue3.hashCode),
customValue4.hashCode),
isTwoFactorEnabled.hashCode),
hasPassword.hashCode),
lastEmailAddress.hashCode),
oauthUserToken.hashCode),
userCompany.hashCode),
oauthProvider.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
archivedAt.hashCode),
isDeleted.hashCode),
createdUserId.hashCode),
assignedUserId.hashCode),
idempotencyKey.hashCode),
$jc($jc($jc($jc($jc($jc(0, firstName.hashCode), lastName.hashCode), email.hashCode), phone.hashCode), password.hashCode),
emailVerifiedAt.hashCode),
customValue1.hashCode),
customValue2.hashCode),
customValue3.hashCode),
customValue4.hashCode),
isTwoFactorEnabled.hashCode),
hasPassword.hashCode),
lastEmailAddress.hashCode),
oauthUserToken.hashCode),
userCompany.hashCode),
oauthProvider.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
archivedAt.hashCode),
isDeleted.hashCode),
createdUserId.hashCode),
assignedUserId.hashCode),
id.hashCode));
}
@ -1168,7 +1153,6 @@ class _$UserEntity extends UserEntity {
..add('isDeleted', isDeleted)
..add('createdUserId', createdUserId)
..add('assignedUserId', assignedUserId)
..add('idempotencyKey', idempotencyKey)
..add('id', id))
.toString();
}
@ -1278,11 +1262,6 @@ class UserEntityBuilder implements Builder<UserEntity, UserEntityBuilder> {
set assignedUserId(String assignedUserId) =>
_$this._assignedUserId = assignedUserId;
String _idempotencyKey;
String get idempotencyKey => _$this._idempotencyKey;
set idempotencyKey(String idempotencyKey) =>
_$this._idempotencyKey = idempotencyKey;
String _id;
String get id => _$this._id;
set id(String id) => _$this._id = id;
@ -1317,7 +1296,6 @@ class UserEntityBuilder implements Builder<UserEntity, UserEntityBuilder> {
_isDeleted = $v.isDeleted;
_createdUserId = $v.createdUserId;
_assignedUserId = $v.assignedUserId;
_idempotencyKey = $v.idempotencyKey;
_id = $v.id;
_$v = null;
}
@ -1374,7 +1352,6 @@ class UserEntityBuilder implements Builder<UserEntity, UserEntityBuilder> {
isDeleted: isDeleted,
createdUserId: createdUserId,
assignedUserId: assignedUserId,
idempotencyKey: idempotencyKey,
id: BuiltValueNullFieldError.checkNotNull(id, 'UserEntity', 'id'));
} catch (_) {
String _$failedField;

View File

@ -85,7 +85,6 @@ abstract class VendorEntity extends Object
factory VendorEntity({String id, AppState state, UserEntity user}) {
return _$VendorEntity._(
id: id ?? BaseEntity.nextId,
idempotencyKey: BaseEntity.nextIdempotencyKey,
number: '',
isChanged: false,
name: '',
@ -130,7 +129,6 @@ abstract class VendorEntity extends Object
VendorEntity get clone => rebuild((b) => b
..id = BaseEntity.nextId
..idempotencyKey = BaseEntity.nextIdempotencyKey
..number = ''
..documents.clear()
..isChanged = false
@ -490,7 +488,6 @@ abstract class VendorContactEntity extends Object
factory VendorContactEntity() {
return _$VendorContactEntity._(
id: BaseEntity.nextId,
idempotencyKey: BaseEntity.nextIdempotencyKey,
isChanged: false,
firstName: '',
lastName: '',

View File

@ -220,13 +220,6 @@ class _$VendorEntitySerializer implements StructuredSerializer<VendorEntity> {
..add(serializers.serialize(value,
specifiedType: const FullType(String)));
}
value = object.idempotencyKey;
if (value != null) {
result
..add('idempotency_key')
..add(serializers.serialize(value,
specifiedType: const FullType(String)));
}
return result;
}
@ -363,10 +356,6 @@ class _$VendorEntitySerializer implements StructuredSerializer<VendorEntity> {
result.assignedUserId = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'idempotency_key':
result.idempotencyKey = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'id':
result.id = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
@ -463,13 +452,6 @@ class _$VendorContactEntitySerializer
..add(serializers.serialize(value,
specifiedType: const FullType(String)));
}
value = object.idempotencyKey;
if (value != null) {
result
..add('idempotency_key')
..add(serializers.serialize(value,
specifiedType: const FullType(String)));
}
return result;
}
@ -553,10 +535,6 @@ class _$VendorContactEntitySerializer
result.assignedUserId = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'idempotency_key':
result.idempotencyKey = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'id':
result.id = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
@ -813,8 +791,6 @@ class _$VendorEntity extends VendorEntity {
@override
final String assignedUserId;
@override
final String idempotencyKey;
@override
final String id;
factory _$VendorEntity([void Function(VendorEntityBuilder) updates]) =>
@ -850,7 +826,6 @@ class _$VendorEntity extends VendorEntity {
this.isDeleted,
this.createdUserId,
this.assignedUserId,
this.idempotencyKey,
this.id})
: super._() {
BuiltValueNullFieldError.checkNotNull(name, 'VendorEntity', 'name');
@ -936,7 +911,6 @@ class _$VendorEntity extends VendorEntity {
isDeleted == other.isDeleted &&
createdUserId == other.createdUserId &&
assignedUserId == other.assignedUserId &&
idempotencyKey == other.idempotencyKey &&
id == other.id;
}
@ -961,25 +935,25 @@ class _$VendorEntity extends VendorEntity {
$jc(
$jc(
$jc(
$jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc(0, name.hashCode), address1.hashCode), address2.hashCode), city.hashCode), state.hashCode), postalCode.hashCode), countryId.hashCode), phone.hashCode), privateNotes.hashCode), publicNotes.hashCode), website.hashCode), number.hashCode),
vatNumber.hashCode),
idNumber.hashCode),
currencyId.hashCode),
customValue1.hashCode),
customValue2.hashCode),
customValue3.hashCode),
customValue4.hashCode),
contacts.hashCode),
activities.hashCode),
documents.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
archivedAt.hashCode),
isDeleted.hashCode),
createdUserId.hashCode),
assignedUserId.hashCode),
idempotencyKey.hashCode),
$jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc(0, name.hashCode), address1.hashCode), address2.hashCode), city.hashCode), state.hashCode), postalCode.hashCode), countryId.hashCode), phone.hashCode), privateNotes.hashCode), publicNotes.hashCode), website.hashCode),
number.hashCode),
vatNumber.hashCode),
idNumber.hashCode),
currencyId.hashCode),
customValue1.hashCode),
customValue2.hashCode),
customValue3.hashCode),
customValue4.hashCode),
contacts.hashCode),
activities.hashCode),
documents.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
archivedAt.hashCode),
isDeleted.hashCode),
createdUserId.hashCode),
assignedUserId.hashCode),
id.hashCode));
}
@ -1015,7 +989,6 @@ class _$VendorEntity extends VendorEntity {
..add('isDeleted', isDeleted)
..add('createdUserId', createdUserId)
..add('assignedUserId', assignedUserId)
..add('idempotencyKey', idempotencyKey)
..add('id', id))
.toString();
}
@ -1149,11 +1122,6 @@ class VendorEntityBuilder
set assignedUserId(String assignedUserId) =>
_$this._assignedUserId = assignedUserId;
String _idempotencyKey;
String get idempotencyKey => _$this._idempotencyKey;
set idempotencyKey(String idempotencyKey) =>
_$this._idempotencyKey = idempotencyKey;
String _id;
String get id => _$this._id;
set id(String id) => _$this._id = id;
@ -1194,7 +1162,6 @@ class VendorEntityBuilder
_isDeleted = $v.isDeleted;
_createdUserId = $v.createdUserId;
_assignedUserId = $v.assignedUserId;
_idempotencyKey = $v.idempotencyKey;
_id = $v.id;
_$v = null;
}
@ -1257,7 +1224,6 @@ class VendorEntityBuilder
isDeleted: isDeleted,
createdUserId: createdUserId,
assignedUserId: assignedUserId,
idempotencyKey: idempotencyKey,
id: BuiltValueNullFieldError.checkNotNull(id, 'VendorEntity', 'id'));
} catch (_) {
String _$failedField;
@ -1315,8 +1281,6 @@ class _$VendorContactEntity extends VendorContactEntity {
@override
final String assignedUserId;
@override
final String idempotencyKey;
@override
final String id;
factory _$VendorContactEntity(
@ -1341,7 +1305,6 @@ class _$VendorContactEntity extends VendorContactEntity {
this.isDeleted,
this.createdUserId,
this.assignedUserId,
this.idempotencyKey,
this.id})
: super._() {
BuiltValueNullFieldError.checkNotNull(
@ -1402,7 +1365,6 @@ class _$VendorContactEntity extends VendorContactEntity {
isDeleted == other.isDeleted &&
createdUserId == other.createdUserId &&
assignedUserId == other.assignedUserId &&
idempotencyKey == other.idempotencyKey &&
id == other.id;
}
@ -1427,31 +1389,28 @@ class _$VendorContactEntity extends VendorContactEntity {
$jc(
$jc(
$jc(
$jc(
0,
firstName
.hashCode),
lastName
0,
firstName
.hashCode),
email
lastName
.hashCode),
isPrimary
email
.hashCode),
phone.hashCode),
customValue1
.hashCode),
customValue2.hashCode),
customValue3.hashCode),
customValue4.hashCode),
link.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
archivedAt.hashCode),
isDeleted.hashCode),
createdUserId.hashCode),
assignedUserId.hashCode),
idempotencyKey.hashCode),
isPrimary
.hashCode),
phone.hashCode),
customValue1.hashCode),
customValue2.hashCode),
customValue3.hashCode),
customValue4.hashCode),
link.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
archivedAt.hashCode),
isDeleted.hashCode),
createdUserId.hashCode),
assignedUserId.hashCode),
id.hashCode));
}
@ -1475,7 +1434,6 @@ class _$VendorContactEntity extends VendorContactEntity {
..add('isDeleted', isDeleted)
..add('createdUserId', createdUserId)
..add('assignedUserId', assignedUserId)
..add('idempotencyKey', idempotencyKey)
..add('id', id))
.toString();
}
@ -1555,11 +1513,6 @@ class VendorContactEntityBuilder
set assignedUserId(String assignedUserId) =>
_$this._assignedUserId = assignedUserId;
String _idempotencyKey;
String get idempotencyKey => _$this._idempotencyKey;
set idempotencyKey(String idempotencyKey) =>
_$this._idempotencyKey = idempotencyKey;
String _id;
String get id => _$this._id;
set id(String id) => _$this._id = id;
@ -1588,7 +1541,6 @@ class VendorContactEntityBuilder
_isDeleted = $v.isDeleted;
_createdUserId = $v.createdUserId;
_assignedUserId = $v.assignedUserId;
_idempotencyKey = $v.idempotencyKey;
_id = $v.id;
_$v = null;
}
@ -1636,7 +1588,6 @@ class VendorContactEntityBuilder
isDeleted: isDeleted,
createdUserId: createdUserId,
assignedUserId: assignedUserId,
idempotencyKey: idempotencyKey,
id: BuiltValueNullFieldError.checkNotNull(id, 'VendorContactEntity', 'id'));
replace(_$result);
return _$result;

View File

@ -56,7 +56,6 @@ abstract class WebhookEntity extends Object
factory WebhookEntity({String id, AppState state}) {
return _$WebhookEntity._(
id: id ?? BaseEntity.nextId,
idempotencyKey: BaseEntity.nextIdempotencyKey,
isChanged: false,
eventId: '',
format: 'JSON',

View File

@ -175,13 +175,6 @@ class _$WebhookEntitySerializer implements StructuredSerializer<WebhookEntity> {
..add(serializers.serialize(value,
specifiedType: const FullType(String)));
}
value = object.idempotencyKey;
if (value != null) {
result
..add('idempotency_key')
..add(serializers.serialize(value,
specifiedType: const FullType(String)));
}
return result;
}
@ -246,10 +239,6 @@ class _$WebhookEntitySerializer implements StructuredSerializer<WebhookEntity> {
result.assignedUserId = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'idempotency_key':
result.idempotencyKey = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'id':
result.id = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
@ -472,8 +461,6 @@ class _$WebhookEntity extends WebhookEntity {
@override
final String assignedUserId;
@override
final String idempotencyKey;
@override
final String id;
factory _$WebhookEntity([void Function(WebhookEntityBuilder) updates]) =>
@ -492,7 +479,6 @@ class _$WebhookEntity extends WebhookEntity {
this.isDeleted,
this.createdUserId,
this.assignedUserId,
this.idempotencyKey,
this.id})
: super._() {
BuiltValueNullFieldError.checkNotNull(eventId, 'WebhookEntity', 'eventId');
@ -534,7 +520,6 @@ class _$WebhookEntity extends WebhookEntity {
isDeleted == other.isDeleted &&
createdUserId == other.createdUserId &&
assignedUserId == other.assignedUserId &&
idempotencyKey == other.idempotencyKey &&
id == other.id;
}
@ -552,22 +537,18 @@ class _$WebhookEntity extends WebhookEntity {
$jc(
$jc(
$jc(
$jc(
$jc(
$jc(0,
eventId.hashCode),
targetUrl.hashCode),
format.hashCode),
restMethod.hashCode),
headers.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
archivedAt.hashCode),
isDeleted.hashCode),
createdUserId.hashCode),
assignedUserId.hashCode),
idempotencyKey.hashCode),
$jc($jc(0, eventId.hashCode),
targetUrl.hashCode),
format.hashCode),
restMethod.hashCode),
headers.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
archivedAt.hashCode),
isDeleted.hashCode),
createdUserId.hashCode),
assignedUserId.hashCode),
id.hashCode));
}
@ -586,7 +567,6 @@ class _$WebhookEntity extends WebhookEntity {
..add('isDeleted', isDeleted)
..add('createdUserId', createdUserId)
..add('assignedUserId', assignedUserId)
..add('idempotencyKey', idempotencyKey)
..add('id', id))
.toString();
}
@ -647,11 +627,6 @@ class WebhookEntityBuilder
set assignedUserId(String assignedUserId) =>
_$this._assignedUserId = assignedUserId;
String _idempotencyKey;
String get idempotencyKey => _$this._idempotencyKey;
set idempotencyKey(String idempotencyKey) =>
_$this._idempotencyKey = idempotencyKey;
String _id;
String get id => _$this._id;
set id(String id) => _$this._id = id;
@ -675,7 +650,6 @@ class WebhookEntityBuilder
_isDeleted = $v.isDeleted;
_createdUserId = $v.createdUserId;
_assignedUserId = $v.assignedUserId;
_idempotencyKey = $v.idempotencyKey;
_id = $v.id;
_$v = null;
}
@ -718,7 +692,6 @@ class WebhookEntityBuilder
isDeleted: isDeleted,
createdUserId: createdUserId,
assignedUserId: assignedUserId,
idempotencyKey: idempotencyKey,
id: BuiltValueNullFieldError.checkNotNull(
id, 'WebhookEntity', 'id'));
} catch (_) {

View File

@ -285,7 +285,7 @@ class _UpgradeDialogState extends State<UpgradeDialog> {
_purchasePending = false;
});
final navigator = Navigator.of(context);
//final navigator = Navigator.of(context);
final store = StoreProvider.of<AppState>(context);
final state = store.state;
final url = (state.isStaging ? kAppStagingUrl : kAppProductionUrl) +