Skip to content

Instantly share code, notes, and snippets.

@Nielius
Created February 18, 2021 14:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nielius/3dd6dec0c9e325e46de535592e979239 to your computer and use it in GitHub Desktop.
Save Nielius/3dd6dec0c9e325e46de535592e979239 to your computer and use it in GitHub Desktop.
Diff for com/zopa/events/transactionstore/Amount.java (old to new):
108c108
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
129,130c129,130
< case 0: key = (java.lang.String)value$; break;
< case 1: currency = (java.lang.String)value$; break;
---
> case 0: key = value$ != null ? value$.toString() : null; break;
> case 1: currency = value$ != null ? value$.toString() : null; break;
132c132
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
223a224
> @org.apache.avro.specific.AvroGenerated
Diff for com/zopa/events/transactionstore/UnknownEvent.java (old to new):
80c80
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
88c88
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
128a129
> @org.apache.avro.specific.AvroGenerated
Diff for com/zopa/events/transactionstore/state/AccountState.java (old to new):
134c134
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
161c161
< case 0: accountRef = (java.lang.String)value$; break;
---
> case 0: accountRef = value$ != null ? value$.toString() : null; break;
164c164
< case 3: topic = (java.lang.String)value$; break;
---
> case 3: topic = value$ != null ? value$.toString() : null; break;
167,168c167,168
< case 6: correlationId = (java.lang.String)value$; break;
< case 7: causationId = (java.lang.String)value$; break;
---
> case 6: correlationId = value$ != null ? value$.toString() : null; break;
> case 7: causationId = value$ != null ? value$.toString() : null; break;
170c170
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
363a364
> @org.apache.avro.specific.AvroGenerated
Diff for com/zopa/events/transactionstore/state/NoneProtocol.java (old to new):
Diff for com/zopa/events/transactionstore/ErrorDataItem.java (old to new):
101c101
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
109,111c109,111
< case 0: key = (java.lang.String)value$; break;
< case 1: value = (java.lang.String)value$; break;
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> case 0: key = value$ != null ? value$.toString() : null; break;
> case 1: value = value$ != null ? value$.toString() : null; break;
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
185a186
> @org.apache.avro.specific.AvroGenerated
Diff for com/zopa/events/transactionstore/feeds/deadletter/DeadLetterMessage.java (old to new):
136c136
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
166c166
< case 2: instanceId = (java.lang.String)value$; break;
---
> case 2: instanceId = value$ != null ? value$.toString() : null; break;
171c171
< case 7: topic = (java.lang.String)value$; break;
---
> case 7: topic = value$ != null ? value$.toString() : null; break;
174c174
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
384a385
> @org.apache.avro.specific.AvroGenerated
559a561
>
634a637
>
Diff for com/zopa/events/transactionstore/feeds/deadletter/NoneProtocol.java (old to new):
Diff for com/zopa/events/transactionstore/feeds/payments/imc/IMCRejected.java (old to new):
137c137
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
166c166
< case 1: specificationVersion = (java.lang.String)value$; break;
---
> case 1: specificationVersion = value$ != null ? value$.toString() : null; break;
168c168
< case 3: instanceId = (java.lang.String)value$; break;
---
> case 3: instanceId = value$ != null ? value$.toString() : null; break;
171c171
< case 6: topic = (java.lang.String)value$; break;
---
> case 6: topic = value$ != null ? value$.toString() : null; break;
175c175
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
385a386
> @org.apache.avro.specific.AvroGenerated
565a567
>
680a683
>
992a996
>
Diff for com/zopa/events/transactionstore/feeds/payments/imc/NoneProtocol.java (old to new):
Diff for com/zopa/events/transactionstore/feeds/payments/ofp/OFPRejected.java (old to new):
137c137
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
166c166
< case 1: specificationVersion = (java.lang.String)value$; break;
---
> case 1: specificationVersion = value$ != null ? value$.toString() : null; break;
168c168
< case 3: instanceId = (java.lang.String)value$; break;
---
> case 3: instanceId = value$ != null ? value$.toString() : null; break;
171c171
< case 6: topic = (java.lang.String)value$; break;
---
> case 6: topic = value$ != null ? value$.toString() : null; break;
175c175
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
385a386
> @org.apache.avro.specific.AvroGenerated
565a567
>
680a683
>
992a996
>
Diff for com/zopa/events/transactionstore/feeds/payments/ofp/NoneProtocol.java (old to new):
Diff for com/zopa/events/transactionstore/feeds/payments/ibc/IBCRejected.java (old to new):
137c137
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
166c166
< case 1: specificationVersion = (java.lang.String)value$; break;
---
> case 1: specificationVersion = value$ != null ? value$.toString() : null; break;
168c168
< case 3: instanceId = (java.lang.String)value$; break;
---
> case 3: instanceId = value$ != null ? value$.toString() : null; break;
171c171
< case 6: topic = (java.lang.String)value$; break;
---
> case 6: topic = value$ != null ? value$.toString() : null; break;
175c175
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
385a386
> @org.apache.avro.specific.AvroGenerated
565a567
>
680a683
>
992a996
>
Diff for com/zopa/events/transactionstore/feeds/payments/ibc/NoneProtocol.java (old to new):
Diff for com/zopa/events/transactionstore/feeds/payments/ifp/IFPRejected.java (old to new):
137c137
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
166c166
< case 1: specificationVersion = (java.lang.String)value$; break;
---
> case 1: specificationVersion = value$ != null ? value$.toString() : null; break;
168c168
< case 3: instanceId = (java.lang.String)value$; break;
---
> case 3: instanceId = value$ != null ? value$.toString() : null; break;
171c171
< case 6: topic = (java.lang.String)value$; break;
---
> case 6: topic = value$ != null ? value$.toString() : null; break;
175c175
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
385a386
> @org.apache.avro.specific.AvroGenerated
565a567
>
680a683
>
992a996
>
Diff for com/zopa/events/transactionstore/feeds/payments/ifp/NoneProtocol.java (old to new):
Diff for com/zopa/events/transactionstore/feeds/deposit/fundingcontrol/DepositFundingControlRejected.java (old to new):
137c137
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
166c166
< case 1: specificationVersion = (java.lang.String)value$; break;
---
> case 1: specificationVersion = value$ != null ? value$.toString() : null; break;
168c168
< case 3: instanceId = (java.lang.String)value$; break;
---
> case 3: instanceId = value$ != null ? value$.toString() : null; break;
171c171
< case 6: topic = (java.lang.String)value$; break;
---
> case 6: topic = value$ != null ? value$.toString() : null; break;
175c175
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
385a386
> @org.apache.avro.specific.AvroGenerated
565a567
>
680a683
>
992a996
>
Diff for com/zopa/events/transactionstore/feeds/deposit/fundingcontrol/NoneProtocol.java (old to new):
Diff for com/zopa/events/transactionstore/feeds/deposit/holdingaccount/HoldingAccountRejected.java (old to new):
137c137
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
166c166
< case 1: specificationVersion = (java.lang.String)value$; break;
---
> case 1: specificationVersion = value$ != null ? value$.toString() : null; break;
168c168
< case 3: instanceId = (java.lang.String)value$; break;
---
> case 3: instanceId = value$ != null ? value$.toString() : null; break;
171c171
< case 6: topic = (java.lang.String)value$; break;
---
> case 6: topic = value$ != null ? value$.toString() : null; break;
175c175
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
385a386
> @org.apache.avro.specific.AvroGenerated
565a567
>
680a683
>
992a996
>
Diff for com/zopa/events/transactionstore/feeds/deposit/holdingaccount/NoneProtocol.java (old to new):
Diff for com/zopa/events/transactionstore/feeds/deposit/easyaccess/EasyAccessRejected.java (old to new):
137c137
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
166c166
< case 1: specificationVersion = (java.lang.String)value$; break;
---
> case 1: specificationVersion = value$ != null ? value$.toString() : null; break;
168c168
< case 3: instanceId = (java.lang.String)value$; break;
---
> case 3: instanceId = value$ != null ? value$.toString() : null; break;
171c171
< case 6: topic = (java.lang.String)value$; break;
---
> case 6: topic = value$ != null ? value$.toString() : null; break;
175c175
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
385a386
> @org.apache.avro.specific.AvroGenerated
565a567
>
680a683
>
992a996
>
Diff for com/zopa/events/transactionstore/feeds/deposit/easyaccess/NoneProtocol.java (old to new):
Diff for com/zopa/events/transactionstore/feeds/deposit/fixedterm/FixedTermRejected.java (old to new):
137c137
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
166c166
< case 1: specificationVersion = (java.lang.String)value$; break;
---
> case 1: specificationVersion = value$ != null ? value$.toString() : null; break;
168c168
< case 3: instanceId = (java.lang.String)value$; break;
---
> case 3: instanceId = value$ != null ? value$.toString() : null; break;
171c171
< case 6: topic = (java.lang.String)value$; break;
---
> case 6: topic = value$ != null ? value$.toString() : null; break;
175c175
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
385a386
> @org.apache.avro.specific.AvroGenerated
565a567
>
680a683
>
992a996
>
Diff for com/zopa/events/transactionstore/feeds/deposit/fixedterm/NoneProtocol.java (old to new):
Diff for com/zopa/events/transactionstore/feeds/accountactivity/loans/fsloan/FSLoanRejected.java (old to new):
137c137
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
166c166
< case 1: specificationVersion = (java.lang.String)value$; break;
---
> case 1: specificationVersion = value$ != null ? value$.toString() : null; break;
168c168
< case 3: instanceId = (java.lang.String)value$; break;
---
> case 3: instanceId = value$ != null ? value$.toString() : null; break;
171c171
< case 6: topic = (java.lang.String)value$; break;
---
> case 6: topic = value$ != null ? value$.toString() : null; break;
175c175
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
385a386
> @org.apache.avro.specific.AvroGenerated
565a567
>
680a683
>
992a996
>
Diff for com/zopa/events/transactionstore/feeds/accountactivity/loans/fsloan/NoneProtocol.java (old to new):
Diff for com/zopa/events/transactionstore/feeds/accountactivity/loans/fundingcontrol/LoansFundingControlRejected.java (old to new):
137c137
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
166c166
< case 1: specificationVersion = (java.lang.String)value$; break;
---
> case 1: specificationVersion = value$ != null ? value$.toString() : null; break;
168c168
< case 3: instanceId = (java.lang.String)value$; break;
---
> case 3: instanceId = value$ != null ? value$.toString() : null; break;
171c171
< case 6: topic = (java.lang.String)value$; break;
---
> case 6: topic = value$ != null ? value$.toString() : null; break;
175c175
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
385a386
> @org.apache.avro.specific.AvroGenerated
565a567
>
680a683
>
992a996
>
Diff for com/zopa/events/transactionstore/feeds/accountactivity/loans/fundingcontrol/NoneProtocol.java (old to new):
Diff for com/zopa/events/transactionstore/feeds/accountactivity/auto/hirepurchase/HirePurchaseLoanRejected.java (old to new):
137c137
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
166c166
< case 1: specificationVersion = (java.lang.String)value$; break;
---
> case 1: specificationVersion = value$ != null ? value$.toString() : null; break;
168c168
< case 3: instanceId = (java.lang.String)value$; break;
---
> case 3: instanceId = value$ != null ? value$.toString() : null; break;
171c171
< case 6: topic = (java.lang.String)value$; break;
---
> case 6: topic = value$ != null ? value$.toString() : null; break;
175c175
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
385a386
> @org.apache.avro.specific.AvroGenerated
565a567
>
680a683
>
992a996
>
Diff for com/zopa/events/transactionstore/feeds/accountactivity/auto/hirepurchase/NoneProtocol.java (old to new):
Diff for com/zopa/events/transactionstore/feeds/accountactivity/NoneProtocol.java (old to new):
8,9d7
< /** A feed of events occurring on accounts (e.g. balance changes)
< * */
12c10
< public static final org.apache.avro.Protocol PROTOCOL = org.apache.avro.Protocol.parse("{\"protocol\":\"NoneProtocol\",\"namespace\":\"com.zopa.events.transactionstore.feeds.accountactivity\",\"doc\":\"A feed of events occurring on accounts (e.g. balance changes)\\n*\",\"types\":[{\"type\":\"record\",\"name\":\"Header\",\"namespace\":\"com.zopa.events\",\"doc\":\"This file represents a standardised Zopa header that\\n would be expected on each message we emit to Kafka.\\n\\n Check out this link for the human definition and reasoning\\n https://github.com/zopaUK/rfc/blob/master/correlating_requests.md\",\"fields\":[{\"name\":\"recordId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"causationIds\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"default\":[]},{\"name\":\"correlationId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"eventTime\",\"type\":{\"type\":\"long\",\"logicalType\":\"timestamp-millis\"}},{\"name\":\"otherMetadata\",\"type\":{\"type\":\"map\",\"values\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"avro.java.string\":\"String\"},\"default\":{}}]},{\"type\":\"record\",\"name\":\"Metadata\",\"namespace\":\"com.zopa.events.transactionstore\",\"doc\":\"This file represents a standardised Zopa header that\\n would be expected on each message we emit to Kafka.\\n\\n Check out this link for the human definition and reasoning\\n https://github.com/zopaUK/rfc/blob/master/correlating_requests.md\",\"fields\":[{\"name\":\"clientId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"clientVersion\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}]},{\"type\":\"record\",\"name\":\"UnknownEvent\",\"namespace\":\"com.zopa.events.transactionstore\",\"fields\":[]},{\"type\":\"record\",\"name\":\"Amount\",\"namespace\":\"com.zopa.events.transactionstore\",\"fields\":[{\"name\":\"key\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"currency\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\",\"logicalType\":\"x-currency-iso4217\"}},{\"name\":\"value\",\"type\":{\"type\":\"bytes\",\"logicalType\":\"decimal\",\"precision\":20,\"scale\":8}}]},{\"type\":\"record\",\"name\":\"TransactionContextItem\",\"namespace\":\"com.zopa.events.transactionstore\",\"fields\":[{\"name\":\"key\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"value\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null}]},{\"type\":\"record\",\"name\":\"AccountRegistered\",\"doc\":\"An explicit account registration, required by the transaction store before the account can receive transactions\\n *\",\"fields\":[{\"name\":\"transactionContext\",\"type\":{\"type\":\"array\",\"items\":\"com.zopa.events.transactionstore.TransactionContextItem\"},\"default\":[]},{\"name\":\"specificationVersion\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"legalEntity\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null},{\"name\":\"businessContext\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"accountType\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"accountRef\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"accountInstanceId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"registrationRef\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"registrationInstance\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"registrationId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"accountVersion\",\"type\":\"long\"},{\"name\":\"registrationTime\",\"type\":{\"type\":\"long\",\"logicalType\":\"timestamp-millis\"}},{\"name\":\"processingTime\",\"type\":{\"type\":\"long\",\"logicalType\":\"timestamp-millis\"}},{\"name\":\"balances\",\"type\":{\"type\":\"array\",\"items\":\"com.zopa.events.transactionstore.Amount\"}}]},{\"type\":\"record\",\"name\":\"AccountMarked\",\"doc\":\"A marker has been applied to the account history\\n *\",\"fields\":[{\"name\":\"transactionContext\",\"type\":{\"type\":\"array\",\"items\":\"com.zopa.events.transactionstore.TransactionContextItem\"},\"default\":[]},{\"name\":\"specificationVersion\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"businessContext\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"accountType\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"accountRef\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"accountInstanceId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"markerType\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"markerRef\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"markerInstance\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"markerId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"raiseVersion\",\"type\":\"boolean\"},{\"name\":\"accountVersion\",\"type\":\"long\"},{\"name\":\"markerTime\",\"type\":{\"type\":\"long\",\"logicalType\":\"timestamp-millis\"}},{\"name\":\"processingTime\",\"type\":{\"type\":\"long\",\"logicalType\":\"timestamp-millis\"}},{\"name\":\"balances\",\"type\":{\"type\":\"array\",\"items\":\"com.zopa.events.transactionstore.Amount\"}}]},{\"type\":\"record\",\"name\":\"BalancesUpdated\",\"doc\":\"One or more of an accounts balances has been updated.\\n *\",\"fields\":[{\"name\":\"transactionContext\",\"type\":{\"type\":\"array\",\"items\":\"com.zopa.events.transactionstore.TransactionContextItem\"},\"default\":[]},{\"name\":\"specificationVersion\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"legalEntity\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\",\"logicalType\":\"x-legal-entity\"}},{\"name\":\"businessContext\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"accountType\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"accountRef\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"accountInstanceId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"transactionRefType\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"transactionRef\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"transactionType\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"transactionInstanceId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"transactionId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"accountVersion\",\"type\":\"long\"},{\"name\":\"transactionTime\",\"type\":{\"type\":\"long\",\"logicalType\":\"timestamp-millis\"}},{\"name\":\"processingTime\",\"type\":{\"type\":\"long\",\"logicalType\":\"timestamp-millis\"}},{\"name\":\"transactionLabel\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null},{\"name\":\"trackingRef\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null},{\"name\":\"originatingTransactionRef\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null},{\"name\":\"originatingTransactionId\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null},{\"name\":\"externalRef\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null},{\"name\":\"balanceDeltas\",\"type\":{\"type\":\"array\",\"items\":\"com.zopa.events.transactionstore.Amount\"}},{\"name\":\"balances\",\"type\":{\"type\":\"array\",\"items\":\"com.zopa.events.transactionstore.Amount\"}},{\"name\":\"amounts\",\"type\":{\"type\":\"array\",\"items\":\"com.zopa.events.transactionstore.Amount\"}}]},{\"type\":\"record\",\"name\":\"AccountActivityEnvelope\",\"doc\":\"Envelope wrapping events in an account activity feed *\",\"fields\":[{\"name\":\"header\",\"type\":\"com.zopa.events.Header\"},{\"name\":\"metadata\",\"type\":\"com.zopa.events.transactionstore.Metadata\"},{\"name\":\"payload\",\"type\":[\"com.zopa.events.transactionstore.UnknownEvent\",\"AccountRegistered\",\"AccountMarked\",\"BalancesUpdated\"],\"default\":{}}]}],\"messages\":{}}");
---
> public static final org.apache.avro.Protocol PROTOCOL = org.apache.avro.Protocol.parse("{\"protocol\":\"NoneProtocol\",\"namespace\":\"com.zopa.events.transactionstore.feeds.accountactivity\",\"types\":[{\"type\":\"record\",\"name\":\"Amount\",\"namespace\":\"com.zopa.events.transactionstore\",\"fields\":[{\"name\":\"key\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"currency\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\",\"logicalType\":\"x-currency-iso4217\"}},{\"name\":\"value\",\"type\":{\"type\":\"bytes\",\"logicalType\":\"decimal\",\"precision\":20,\"scale\":8}}]},{\"type\":\"record\",\"name\":\"TransactionContextItem\",\"namespace\":\"com.zopa.events.transactionstore\",\"fields\":[{\"name\":\"key\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"value\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null}]},{\"type\":\"record\",\"name\":\"BalancesUpdated\",\"doc\":\"One or more of an accounts balances has been updated.\\n *\",\"fields\":[{\"name\":\"transactionContext\",\"type\":{\"type\":\"array\",\"items\":\"com.zopa.events.transactionstore.TransactionContextItem\"},\"default\":[]},{\"name\":\"specificationVersion\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"legalEntity\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\",\"logicalType\":\"x-legal-entity\"}},{\"name\":\"businessContext\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"accountType\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"accountRef\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"accountInstanceId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"transactionRefType\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"transactionRef\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"transactionType\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"transactionInstanceId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"transactionId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"accountVersion\",\"type\":\"long\"},{\"name\":\"transactionTime\",\"type\":{\"type\":\"long\",\"logicalType\":\"timestamp-millis\"}},{\"name\":\"processingTime\",\"type\":{\"type\":\"long\",\"logicalType\":\"timestamp-millis\"}},{\"name\":\"transactionLabel\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null},{\"name\":\"trackingRef\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null},{\"name\":\"originatingTransactionRef\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null},{\"name\":\"originatingTransactionId\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null},{\"name\":\"externalRef\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null},{\"name\":\"balanceDeltas\",\"type\":{\"type\":\"array\",\"items\":\"com.zopa.events.transactionstore.Amount\"}},{\"name\":\"balances\",\"type\":{\"type\":\"array\",\"items\":\"com.zopa.events.transactionstore.Amount\"}},{\"name\":\"amounts\",\"type\":{\"type\":\"array\",\"items\":\"com.zopa.events.transactionstore.Amount\"}}]}],\"messages\":{}}");
15,16d12
< /** A feed of events occurring on accounts (e.g. balance changes)
< * */
Diff for com/zopa/events/transactionstore/feeds/accountactivity/BalancesUpdated.java (old to new):
191c191
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
233,243c233,243
< case 1: specificationVersion = (java.lang.String)value$; break;
< case 2: legalEntity = (java.lang.String)value$; break;
< case 3: businessContext = (java.lang.String)value$; break;
< case 4: accountType = (java.lang.String)value$; break;
< case 5: accountRef = (java.lang.String)value$; break;
< case 6: accountInstanceId = (java.lang.String)value$; break;
< case 7: transactionRefType = (java.lang.String)value$; break;
< case 8: transactionRef = (java.lang.String)value$; break;
< case 9: transactionType = (java.lang.String)value$; break;
< case 10: transactionInstanceId = (java.lang.String)value$; break;
< case 11: transactionId = (java.lang.String)value$; break;
---
> case 1: specificationVersion = value$ != null ? value$.toString() : null; break;
> case 2: legalEntity = value$ != null ? value$.toString() : null; break;
> case 3: businessContext = value$ != null ? value$.toString() : null; break;
> case 4: accountType = value$ != null ? value$.toString() : null; break;
> case 5: accountRef = value$ != null ? value$.toString() : null; break;
> case 6: accountInstanceId = value$ != null ? value$.toString() : null; break;
> case 7: transactionRefType = value$ != null ? value$.toString() : null; break;
> case 8: transactionRef = value$ != null ? value$.toString() : null; break;
> case 9: transactionType = value$ != null ? value$.toString() : null; break;
> case 10: transactionInstanceId = value$ != null ? value$.toString() : null; break;
> case 11: transactionId = value$ != null ? value$.toString() : null; break;
247,251c247,251
< case 15: transactionLabel = (java.lang.String)value$; break;
< case 16: trackingRef = (java.lang.String)value$; break;
< case 17: originatingTransactionRef = (java.lang.String)value$; break;
< case 18: originatingTransactionId = (java.lang.String)value$; break;
< case 19: externalRef = (java.lang.String)value$; break;
---
> case 15: transactionLabel = value$ != null ? value$.toString() : null; break;
> case 16: trackingRef = value$ != null ? value$.toString() : null; break;
> case 17: originatingTransactionRef = value$ != null ? value$.toString() : null; break;
> case 18: originatingTransactionId = value$ != null ? value$.toString() : null; break;
> case 19: externalRef = value$ != null ? value$.toString() : null; break;
255c255
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
686a687
> @org.apache.avro.specific.AvroGenerated
Diff for com/zopa/events/transactionstore/feeds/gringotts/GringottsRejected.java (old to new):
137c137
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
166c166
< case 1: specificationVersion = (java.lang.String)value$; break;
---
> case 1: specificationVersion = value$ != null ? value$.toString() : null; break;
168c168
< case 3: instanceId = (java.lang.String)value$; break;
---
> case 3: instanceId = value$ != null ? value$.toString() : null; break;
171c171
< case 6: topic = (java.lang.String)value$; break;
---
> case 6: topic = value$ != null ? value$.toString() : null; break;
175c175
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
385a386
> @org.apache.avro.specific.AvroGenerated
565a567
>
680a683
>
992a996
>
Diff for com/zopa/events/transactionstore/feeds/gringotts/NoneProtocol.java (old to new):
Diff for com/zopa/events/transactionstore/feeds/testdomain/payments/PaymentsRejected.java (old to new):
137c137
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
166c166
< case 1: specificationVersion = (java.lang.String)value$; break;
---
> case 1: specificationVersion = value$ != null ? value$.toString() : null; break;
168c168
< case 3: instanceId = (java.lang.String)value$; break;
---
> case 3: instanceId = value$ != null ? value$.toString() : null; break;
171c171
< case 6: topic = (java.lang.String)value$; break;
---
> case 6: topic = value$ != null ? value$.toString() : null; break;
175c175
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
385a386
> @org.apache.avro.specific.AvroGenerated
565a567
>
680a683
>
992a996
>
Diff for com/zopa/events/transactionstore/feeds/testdomain/payments/NoneProtocol.java (old to new):
Diff for com/zopa/events/transactionstore/feeds/testdomain/savings/SavingsRejected.java (old to new):
137c137
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
166c166
< case 1: specificationVersion = (java.lang.String)value$; break;
---
> case 1: specificationVersion = value$ != null ? value$.toString() : null; break;
168c168
< case 3: instanceId = (java.lang.String)value$; break;
---
> case 3: instanceId = value$ != null ? value$.toString() : null; break;
171c171
< case 6: topic = (java.lang.String)value$; break;
---
> case 6: topic = value$ != null ? value$.toString() : null; break;
175c175
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
385a386
> @org.apache.avro.specific.AvroGenerated
565a567
>
680a683
>
992a996
>
Diff for com/zopa/events/transactionstore/feeds/testdomain/savings/NoneProtocol.java (old to new):
Diff for com/zopa/events/transactionstore/feeds/cc/card/CardRejected.java (old to new):
137c137
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
166c166
< case 1: specificationVersion = (java.lang.String)value$; break;
---
> case 1: specificationVersion = value$ != null ? value$.toString() : null; break;
168c168
< case 3: instanceId = (java.lang.String)value$; break;
---
> case 3: instanceId = value$ != null ? value$.toString() : null; break;
171c171
< case 6: topic = (java.lang.String)value$; break;
---
> case 6: topic = value$ != null ? value$.toString() : null; break;
175c175
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
385a386
> @org.apache.avro.specific.AvroGenerated
565a567
>
680a683
>
992a996
>
Diff for com/zopa/events/transactionstore/feeds/cc/card/NoneProtocol.java (old to new):
Diff for com/zopa/events/transactionstore/TransactionContextItem.java (old to new):
101c101
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
109,111c109,111
< case 0: key = (java.lang.String)value$; break;
< case 1: value = (java.lang.String)value$; break;
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> case 0: key = value$ != null ? value$.toString() : null; break;
> case 1: value = value$ != null ? value$.toString() : null; break;
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
185a186
> @org.apache.avro.specific.AvroGenerated
Diff for com/zopa/events/transactionstore/Metadata.java (old to new):
106c106
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
114,116c114,116
< case 0: clientId = (java.lang.String)value$; break;
< case 1: clientVersion = (java.lang.String)value$; break;
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> case 0: clientId = value$ != null ? value$.toString() : null; break;
> case 1: clientVersion = value$ != null ? value$.toString() : null; break;
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
190a191
> @org.apache.avro.specific.AvroGenerated
Diff for com/zopa/events/transactionstore/sources/loans/fsloan/FSLoanEnvelope.java (old to new):
110c110
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
121c121
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
212a213
> @org.apache.avro.specific.AvroGenerated
324a326
>
399a402
>
Diff for com/zopa/events/transactionstore/sources/loans/fsloan/NoneProtocol.java (old to new):
Diff for com/zopa/events/transactionstore/sources/loans/fundingcontrol/LoansFundingControlEnvelope.java (old to new):
110c110
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
121c121
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
212a213
> @org.apache.avro.specific.AvroGenerated
324a326
>
399a402
>
Diff for com/zopa/events/transactionstore/sources/loans/fundingcontrol/NoneProtocol.java (old to new):
Diff for com/zopa/events/transactionstore/sources/payments/imc/IMCEnvelope.java (old to new):
110c110
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
121c121
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
212a213
> @org.apache.avro.specific.AvroGenerated
324a326
>
399a402
>
Diff for com/zopa/events/transactionstore/sources/payments/imc/NoneProtocol.java (old to new):
Diff for com/zopa/events/transactionstore/sources/payments/ofp/OFPEnvelope.java (old to new):
110c110
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
121c121
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
212a213
> @org.apache.avro.specific.AvroGenerated
324a326
>
399a402
>
Diff for com/zopa/events/transactionstore/sources/payments/ofp/NoneProtocol.java (old to new):
Diff for com/zopa/events/transactionstore/sources/payments/ibc/IBCEnvelope.java (old to new):
110c110
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
121c121
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
212a213
> @org.apache.avro.specific.AvroGenerated
324a326
>
399a402
>
Diff for com/zopa/events/transactionstore/sources/payments/ibc/NoneProtocol.java (old to new):
Diff for com/zopa/events/transactionstore/sources/payments/ifp/IFPEnvelope.java (old to new):
110c110
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
121c121
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
212a213
> @org.apache.avro.specific.AvroGenerated
324a326
>
399a402
>
Diff for com/zopa/events/transactionstore/sources/payments/ifp/NoneProtocol.java (old to new):
Diff for com/zopa/events/transactionstore/sources/deposit/fundingcontrol/DepositFundingControlEnvelope.java (old to new):
110c110
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
121c121
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
212a213
> @org.apache.avro.specific.AvroGenerated
324a326
>
399a402
>
Diff for com/zopa/events/transactionstore/sources/deposit/fundingcontrol/NoneProtocol.java (old to new):
Diff for com/zopa/events/transactionstore/sources/deposit/holdingaccount/HoldingAccountEnvelope.java (old to new):
110c110
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
121c121
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
212a213
> @org.apache.avro.specific.AvroGenerated
324a326
>
399a402
>
Diff for com/zopa/events/transactionstore/sources/deposit/holdingaccount/NoneProtocol.java (old to new):
Diff for com/zopa/events/transactionstore/sources/deposit/easyaccess/EasyAccessEnvelope.java (old to new):
110c110
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
121c121
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
212a213
> @org.apache.avro.specific.AvroGenerated
324a326
>
399a402
>
Diff for com/zopa/events/transactionstore/sources/deposit/easyaccess/NoneProtocol.java (old to new):
Diff for com/zopa/events/transactionstore/sources/deposit/fixedterm/FixedTermEnvelope.java (old to new):
110c110
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
121c121
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
212a213
> @org.apache.avro.specific.AvroGenerated
324a326
>
399a402
>
Diff for com/zopa/events/transactionstore/sources/deposit/fixedterm/NoneProtocol.java (old to new):
Diff for com/zopa/events/transactionstore/sources/AccountRegistration.java (old to new):
126c126
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
152,155c152,155
< case 1: specificationVersion = (java.lang.String)value$; break;
< case 2: legalEntity = (java.lang.String)value$; break;
< case 3: accountRef = (java.lang.String)value$; break;
< case 4: registrationRef = (java.lang.String)value$; break;
---
> case 1: specificationVersion = value$ != null ? value$.toString() : null; break;
> case 2: legalEntity = value$ != null ? value$.toString() : null; break;
> case 3: accountRef = value$ != null ? value$.toString() : null; break;
> case 4: registrationRef = value$ != null ? value$.toString() : null; break;
158c158
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
317a318
> @org.apache.avro.specific.AvroGenerated
Diff for com/zopa/events/transactionstore/sources/auto/hirepurchase/HirePurchaseLoanEnvelope.java (old to new):
110c110
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
121c121
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
212a213
> @org.apache.avro.specific.AvroGenerated
324a326
>
399a402
>
Diff for com/zopa/events/transactionstore/sources/auto/hirepurchase/NoneProtocol.java (old to new):
Diff for com/zopa/events/transactionstore/sources/gringotts/GringottsEnvelope.java (old to new):
110c110
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
121c121
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
212a213
> @org.apache.avro.specific.AvroGenerated
324a326
>
399a402
>
Diff for com/zopa/events/transactionstore/sources/gringotts/NoneProtocol.java (old to new):
Diff for com/zopa/events/transactionstore/sources/ProductTransaction.java (old to new):
159c159
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
193,198c193,198
< case 1: specificationVersion = (java.lang.String)value$; break;
< case 2: legalEntity = (java.lang.String)value$; break;
< case 3: accountRef = (java.lang.String)value$; break;
< case 4: transactionRefType = (java.lang.String)value$; break;
< case 5: transactionRef = (java.lang.String)value$; break;
< case 6: transactionType = (java.lang.String)value$; break;
---
> case 1: specificationVersion = value$ != null ? value$.toString() : null; break;
> case 2: legalEntity = value$ != null ? value$.toString() : null; break;
> case 3: accountRef = value$ != null ? value$.toString() : null; break;
> case 4: transactionRefType = value$ != null ? value$.toString() : null; break;
> case 5: transactionRef = value$ != null ? value$.toString() : null; break;
> case 6: transactionType = value$ != null ? value$.toString() : null; break;
200,204c200,204
< case 8: transactionLabel = (java.lang.String)value$; break;
< case 9: trackingRef = (java.lang.String)value$; break;
< case 10: originatingTransactionRef = (java.lang.String)value$; break;
< case 11: originatingTransactionId = (java.lang.String)value$; break;
< case 12: externalRef = (java.lang.String)value$; break;
---
> case 8: transactionLabel = value$ != null ? value$.toString() : null; break;
> case 9: trackingRef = value$ != null ? value$.toString() : null; break;
> case 10: originatingTransactionRef = value$ != null ? value$.toString() : null; break;
> case 11: originatingTransactionId = value$ != null ? value$.toString() : null; break;
> case 12: externalRef = value$ != null ? value$.toString() : null; break;
207c207
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
502a503
> @org.apache.avro.specific.AvroGenerated
Diff for com/zopa/events/transactionstore/sources/AccountInitialisation.java (old to new):
135c135
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
163,165c163,165
< case 1: specificationVersion = (java.lang.String)value$; break;
< case 2: legalEntity = (java.lang.String)value$; break;
< case 3: accountRef = (java.lang.String)value$; break;
---
> case 1: specificationVersion = value$ != null ? value$.toString() : null; break;
> case 2: legalEntity = value$ != null ? value$.toString() : null; break;
> case 3: accountRef = value$ != null ? value$.toString() : null; break;
167c167
< case 5: initialisationRef = (java.lang.String)value$; break;
---
> case 5: initialisationRef = value$ != null ? value$.toString() : null; break;
171c171
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
364a365
> @org.apache.avro.specific.AvroGenerated
Diff for com/zopa/events/transactionstore/sources/ReverseTransactionV2.java (old to new):
134c134
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
162,167c162,167
< case 1: specificationVersion = (java.lang.String)value$; break;
< case 2: originatingTransactionId = (java.lang.String)value$; break;
< case 3: accountRef = (java.lang.String)value$; break;
< case 4: reason = (java.lang.String)value$; break;
< case 5: authoriser = (java.lang.String)value$; break;
< case 6: operator = (java.lang.String)value$; break;
---
> case 1: specificationVersion = value$ != null ? value$.toString() : null; break;
> case 2: originatingTransactionId = value$ != null ? value$.toString() : null; break;
> case 3: accountRef = value$ != null ? value$.toString() : null; break;
> case 4: reason = value$ != null ? value$.toString() : null; break;
> case 5: authoriser = value$ != null ? value$.toString() : null; break;
> case 6: operator = value$ != null ? value$.toString() : null; break;
170c170
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
363a364
> @org.apache.avro.specific.AvroGenerated
Diff for com/zopa/events/transactionstore/sources/testdomain/payments/PaymentsEnvelope.java (old to new):
110c110
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
121c121
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
212a213
> @org.apache.avro.specific.AvroGenerated
324a326
>
399a402
>
Diff for com/zopa/events/transactionstore/sources/testdomain/payments/NoneProtocol.java (old to new):
Diff for com/zopa/events/transactionstore/sources/testdomain/savings/SavingsEnvelope.java (old to new):
110c110
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
121c121
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
212a213
> @org.apache.avro.specific.AvroGenerated
324a326
>
399a402
>
Diff for com/zopa/events/transactionstore/sources/testdomain/savings/NoneProtocol.java (old to new):
Diff for com/zopa/events/transactionstore/sources/AccountMarker.java (old to new):
130c130
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
157,160c157,160
< case 1: specificationVersion = (java.lang.String)value$; break;
< case 2: accountRef = (java.lang.String)value$; break;
< case 3: markerType = (java.lang.String)value$; break;
< case 4: markerRef = (java.lang.String)value$; break;
---
> case 1: specificationVersion = value$ != null ? value$.toString() : null; break;
> case 2: accountRef = value$ != null ? value$.toString() : null; break;
> case 3: markerType = value$ != null ? value$.toString() : null; break;
> case 4: markerRef = value$ != null ? value$.toString() : null; break;
164c164
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
340a341
> @org.apache.avro.specific.AvroGenerated
Diff for com/zopa/events/transactionstore/sources/ReverseTransaction.java (old to new):
142c142
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
172,178c172,178
< case 1: specificationVersion = (java.lang.String)value$; break;
< case 2: legalEntity = (java.lang.String)value$; break;
< case 3: accountRef = (java.lang.String)value$; break;
< case 4: originatingTransactionRef = (java.lang.String)value$; break;
< case 5: originatingTransactionId = (java.lang.String)value$; break;
< case 6: originatingTransactionType = (java.lang.String)value$; break;
< case 7: transactionRef = (java.lang.String)value$; break;
---
> case 1: specificationVersion = value$ != null ? value$.toString() : null; break;
> case 2: legalEntity = value$ != null ? value$.toString() : null; break;
> case 3: accountRef = value$ != null ? value$.toString() : null; break;
> case 4: originatingTransactionRef = value$ != null ? value$.toString() : null; break;
> case 5: originatingTransactionId = value$ != null ? value$.toString() : null; break;
> case 6: originatingTransactionType = value$ != null ? value$.toString() : null; break;
> case 7: transactionRef = value$ != null ? value$.toString() : null; break;
180c180
< case 9: trackingRef = (java.lang.String)value$; break;
---
> case 9: trackingRef = value$ != null ? value$.toString() : null; break;
182c182
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
409a410
> @org.apache.avro.specific.AvroGenerated
Diff for com/zopa/events/transactionstore/sources/cc/card/CardEnvelope.java (old to new):
110c110
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
121c121
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
212a213
> @org.apache.avro.specific.AvroGenerated
324a326
>
399a402
>
Diff for com/zopa/events/transactionstore/sources/cc/card/NoneProtocol.java (old to new):
Diff for com/zopa/events/transactionstore/sources/NoneProtocol.java (old to new):
10c10
< public static final org.apache.avro.Protocol PROTOCOL = org.apache.avro.Protocol.parse("{\"protocol\":\"NoneProtocol\",\"namespace\":\"com.zopa.events.transactionstore.sources\",\"types\":[{\"type\":\"record\",\"name\":\"TransactionContextItem\",\"namespace\":\"com.zopa.events.transactionstore\",\"fields\":[{\"name\":\"key\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"value\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null}]},{\"type\":\"record\",\"name\":\"AccountRegistration\",\"doc\":\"An explicit account registration\\n *\",\"fields\":[{\"name\":\"transactionContext\",\"type\":{\"type\":\"array\",\"items\":\"com.zopa.events.transactionstore.TransactionContextItem\"},\"default\":[]},{\"name\":\"specificationVersion\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"legalEntity\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null},{\"name\":\"accountRef\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"registrationRef\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"registrationTime\",\"type\":{\"type\":\"long\",\"logicalType\":\"timestamp-millis\"}},{\"name\":\"expectedAccountVersion\",\"type\":[\"null\",\"long\"],\"default\":null}]}],\"messages\":{}}");
---
> public static final org.apache.avro.Protocol PROTOCOL = org.apache.avro.Protocol.parse("{\"protocol\":\"NoneProtocol\",\"namespace\":\"com.zopa.events.transactionstore.sources\",\"types\":[{\"type\":\"record\",\"name\":\"TransactionContextItem\",\"namespace\":\"com.zopa.events.transactionstore\",\"fields\":[{\"name\":\"key\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"value\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null}]},{\"type\":\"record\",\"name\":\"ControlMessage\",\"doc\":\"A system-level control message, e.g. restoration-complete\\n *\",\"fields\":[{\"name\":\"context\",\"type\":{\"type\":\"array\",\"items\":\"com.zopa.events.transactionstore.TransactionContextItem\"},\"default\":[]},{\"name\":\"controlMessageType\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"controlRef\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"controlTime\",\"type\":{\"type\":\"long\",\"logicalType\":\"timestamp-millis\"}}]}],\"messages\":{}}");
Diff for com/zopa/events/transactionstore/sources/ControlMessage.java (old to new):
114c114
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
137,138c137,138
< case 1: controlMessageType = (java.lang.String)value$; break;
< case 2: controlRef = (java.lang.String)value$; break;
---
> case 1: controlMessageType = value$ != null ? value$.toString() : null; break;
> case 2: controlRef = value$ != null ? value$.toString() : null; break;
140c140
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
248a249
> @org.apache.avro.specific.AvroGenerated
Diff for com/zopa/events/transactionstore/NoneProtocol.java (old to new):
10c10
< public static final org.apache.avro.Protocol PROTOCOL = org.apache.avro.Protocol.parse("{\"protocol\":\"NoneProtocol\",\"namespace\":\"com.zopa.events.transactionstore\",\"types\":[{\"type\":\"record\",\"name\":\"ErrorDataItem\",\"fields\":[{\"name\":\"key\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"value\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null}]}],\"messages\":{}}");
---
> public static final org.apache.avro.Protocol PROTOCOL = org.apache.avro.Protocol.parse("{\"protocol\":\"NoneProtocol\",\"namespace\":\"com.zopa.events.transactionstore\",\"types\":[{\"type\":\"record\",\"name\":\"ErrorDataItem\",\"fields\":[{\"name\":\"key\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"value\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null}]},{\"type\":\"record\",\"name\":\"Error\",\"fields\":[{\"name\":\"errorType\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"detail\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null},{\"name\":\"instance\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"timestamp\",\"type\":{\"type\":\"long\",\"logicalType\":\"timestamp-millis\"}},{\"name\":\"data\",\"type\":{\"type\":\"array\",\"items\":\"ErrorDataItem\"},\"default\":[]}]}],\"messages\":{}}");
Diff for com/zopa/events/transactionstore/Error.java (old to new):
116c116
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
139,141c139,141
< case 0: errorType = (java.lang.String)value$; break;
< case 1: detail = (java.lang.String)value$; break;
< case 2: instance = (java.lang.String)value$; break;
---
> case 0: errorType = value$ != null ? value$.toString() : null; break;
> case 1: detail = value$ != null ? value$.toString() : null; break;
> case 2: instance = value$ != null ? value$.toString() : null; break;
144c144
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
269a270
> @org.apache.avro.specific.AvroGenerated
Diff for com/zopa/events/NoneProtocol.java (old to new):
Diff for com/zopa/events/Header.java (old to new):
121c121
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
144c144
< case 0: recordId = (java.lang.String)value$; break;
---
> case 0: recordId = value$ != null ? value$.toString() : null; break;
146c146
< case 2: correlationId = (java.lang.String)value$; break;
---
> case 2: correlationId = value$ != null ? value$.toString() : null; break;
149c149
< default: throw new org.apache.avro.AvroRuntimeException("Bad index");
---
> default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
274a275
> @org.apache.avro.specific.AvroGenerated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment