Skip to content

Instantly share code, notes, and snippets.

@pedrovarela86
Created August 30, 2021 14:45
Show Gist options
  • Save pedrovarela86/b44fe648dd85ba13f5ede32167ab464d to your computer and use it in GitHub Desktop.
Save pedrovarela86/b44fe648dd85ba13f5ede32167ab464d to your computer and use it in GitHub Desktop.
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//
package com.backbase.android.client.transactions.dto;
import android.os.Parcel;
import android.os.Parcelable.Creator;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.annotation.VisibleForTesting;
import com.backbase.android.client.transactions.dto.types.CreditDebitIndicator;
import com.backbase.android.common.utils.dto.Additions;
import com.backbase.android.common.utils.dto.Amount;
import java.util.Objects;
public class TransactionItem extends Additions {
private String id;
private String arrangementId;
private String productId;
private String reference;
private String description;
private String typeGroup;
private String type;
private String category;
private String bookingDate;
private String valueDate;
private Amount transactionAmountCurrency;
private CreditDebitIndicator creditDebitIndicator;
private Amount instructedAmountCurrency;
private Number currencyExchangeRate;
private String counterPartyName;
private String counterPartyAccountNumber;
private String counterPartyBIC;
private String counterPartyCountry;
private String counterPartyBankName;
private String creditorId;
private String mandateReference;
private String billingStatus;
private String notes;
private Number runningBalance;
private long checkSerialNumber;
@Nullable
protected Location location;
@Nullable
protected Merchant merchant;
public static final Creator<TransactionItem> CREATOR = new Creator<TransactionItem>() {
public TransactionItem createFromParcel(Parcel source) {
return new TransactionItem(source);
}
public TransactionItem[] newArray(int size) {
return new TransactionItem[size];
}
};
@VisibleForTesting
public TransactionItem() {
}
public TransactionItem(@NonNull String id, @NonNull String arrangementId, @NonNull String description, @NonNull String typeGroup, @NonNull String type, @NonNull String bookingDate, @NonNull CreditDebitIndicator creditDebitIndicator) {
this.id = id;
this.arrangementId = arrangementId;
this.description = description;
this.typeGroup = typeGroup;
this.type = type;
this.bookingDate = bookingDate;
this.creditDebitIndicator = creditDebitIndicator;
}
protected TransactionItem(Parcel in) {
super(in);
this.id = in.readString();
this.arrangementId = in.readString();
this.productId = in.readString();
this.reference = in.readString();
this.description = in.readString();
this.typeGroup = in.readString();
this.type = in.readString();
this.category = in.readString();
this.bookingDate = in.readString();
this.valueDate = in.readString();
this.transactionAmountCurrency = (Amount)in.readParcelable(Amount.class.getClassLoader());
int tmpCreditDebitIndicator = in.readInt();
this.creditDebitIndicator = tmpCreditDebitIndicator == -1 ? null : CreditDebitIndicator.values()[tmpCreditDebitIndicator];
this.instructedAmountCurrency = (Amount)in.readParcelable(Amount.class.getClassLoader());
this.currencyExchangeRate = (Number)in.readSerializable();
this.counterPartyName = in.readString();
this.counterPartyAccountNumber = in.readString();
this.counterPartyBIC = in.readString();
this.counterPartyCountry = in.readString();
this.counterPartyBankName = in.readString();
this.creditorId = in.readString();
this.mandateReference = in.readString();
this.billingStatus = in.readString();
this.notes = in.readString();
this.runningBalance = (Number)in.readSerializable();
this.checkSerialNumber = in.readLong();
this.location = (Location)in.readParcelable(Location.class.getClassLoader());
this.merchant = (Merchant)in.readParcelable(Merchant.class.getClassLoader());
}
public String getId() {
return this.id;
}
public void setId(String id) {
this.id = id;
}
public String getArrangementId() {
return this.arrangementId;
}
public void setArrangementId(String arrangementId) {
this.arrangementId = arrangementId;
}
public String getProductId() {
return this.productId;
}
public void setProductId(String productId) {
this.productId = productId;
}
public String getReference() {
return this.reference;
}
public void setReference(String reference) {
this.reference = reference;
}
public String getDescription() {
return this.description;
}
public void setDescription(String description) {
this.description = description;
}
public String getTypeGroupStr() {
return this.typeGroup;
}
public void setTypeGroup(@NonNull String typeGroup) {
this.typeGroup = typeGroup;
}
public String getType() {
return this.type;
}
public void setType(String type) {
this.type = type;
}
public String getCategory() {
return this.category;
}
public void setCategory(String category) {
this.category = category;
}
public String getBookingDate() {
return this.bookingDate;
}
public void setBookingDate(String bookingDate) {
this.bookingDate = bookingDate;
}
public String getValueDate() {
return this.valueDate;
}
public void setValueDate(String valueDate) {
this.valueDate = valueDate;
}
public Amount getTransactionAmountCurrency() {
return this.transactionAmountCurrency;
}
public void setTransactionAmountCurrency(Amount transactionAmountCurrency) {
this.transactionAmountCurrency = transactionAmountCurrency;
}
public CreditDebitIndicator getCreditDebitIndicator() {
return this.creditDebitIndicator;
}
public void setCreditDebitIndicator(CreditDebitIndicator creditDebitIndicator) {
this.creditDebitIndicator = creditDebitIndicator;
}
public Amount getInstructedAmountCurrency() {
return this.instructedAmountCurrency;
}
public void setInstructedAmountCurrency(Amount instructedAmountCurrency) {
this.instructedAmountCurrency = instructedAmountCurrency;
}
public Number getCurrencyExchangeRate() {
return this.currencyExchangeRate;
}
public void setCurrencyExchangeRate(Number currencyExchangeRate) {
this.currencyExchangeRate = currencyExchangeRate;
}
public String getCounterPartyName() {
return this.counterPartyName;
}
public void setCounterPartyName(String counterPartyName) {
this.counterPartyName = counterPartyName;
}
public String getCounterPartyAccountNumber() {
return this.counterPartyAccountNumber;
}
public void setCounterPartyAccountNumber(String counterPartyAccountNumber) {
this.counterPartyAccountNumber = counterPartyAccountNumber;
}
public String getCounterPartyBIC() {
return this.counterPartyBIC;
}
public void setCounterPartyBIC(String counterPartyBIC) {
this.counterPartyBIC = counterPartyBIC;
}
public String getCounterPartyCountry() {
return this.counterPartyCountry;
}
public void setCounterPartyCountry(String counterPartyCountry) {
this.counterPartyCountry = counterPartyCountry;
}
public String getCounterPartyBankName() {
return this.counterPartyBankName;
}
public void setCounterPartyBankName(String counterPartyBankName) {
this.counterPartyBankName = counterPartyBankName;
}
public String getCreditorId() {
return this.creditorId;
}
public void setCreditorId(String creditorId) {
this.creditorId = creditorId;
}
public String getMandateReference() {
return this.mandateReference;
}
public void setMandateReference(String mandateReference) {
this.mandateReference = mandateReference;
}
public String getBillingStatusStr() {
return this.billingStatus;
}
public void setBillingStatus(String billingStatus) {
this.billingStatus = billingStatus;
}
public void setNotes(String notes) {
this.notes = notes;
}
public String getNotes() {
return this.notes;
}
public int describeContents() {
return 0;
}
public void setCheckSerialNumber(String checkSerialNumber) {
this.checkSerialNumber = Long.parseLong(checkSerialNumber);
}
public String getCheckSerialNumber() {
return String.valueOf(this.checkSerialNumber);
}
public void setRunningBalance(Number runningBalance) {
this.runningBalance = runningBalance;
}
public Number getRunningBalance() {
return this.runningBalance;
}
@Nullable
public Location getLocation() {
return this.location;
}
@Nullable
public Merchant getMerchant() {
return this.merchant;
}
public void writeToParcel(Parcel dest, int flags) {
super.writeToParcel(dest, flags);
dest.writeString(this.id);
dest.writeString(this.arrangementId);
dest.writeString(this.productId);
dest.writeString(this.reference);
dest.writeString(this.description);
dest.writeString(this.typeGroup);
dest.writeString(this.type);
dest.writeString(this.category);
dest.writeString(this.bookingDate);
dest.writeString(this.valueDate);
dest.writeParcelable(this.transactionAmountCurrency, flags);
dest.writeInt(this.creditDebitIndicator == null ? -1 : this.creditDebitIndicator.ordinal());
dest.writeParcelable(this.instructedAmountCurrency, flags);
dest.writeSerializable(this.currencyExchangeRate);
dest.writeString(this.counterPartyName);
dest.writeString(this.counterPartyAccountNumber);
dest.writeString(this.counterPartyBIC);
dest.writeString(this.counterPartyCountry);
dest.writeString(this.counterPartyBankName);
dest.writeString(this.creditorId);
dest.writeString(this.mandateReference);
dest.writeString(this.billingStatus);
dest.writeString(this.notes);
dest.writeSerializable(this.runningBalance);
dest.writeLong(this.checkSerialNumber);
dest.writeParcelable(this.location, flags);
dest.writeParcelable(this.merchant, flags);
}
public boolean equals(Object o) {
if (this == o) {
return true;
} else if (!(o instanceof TransactionItem)) {
return false;
} else if (!super.equals(o)) {
return false;
} else {
TransactionItem that = (TransactionItem)o;
return this.checkSerialNumber == that.checkSerialNumber && Objects.equals(this.id, that.id) && Objects.equals(this.arrangementId, that.arrangementId) && Objects.equals(this.productId, that.productId) && Objects.equals(this.reference, that.reference) && Objects.equals(this.description, that.description) && Objects.equals(this.typeGroup, that.typeGroup) && Objects.equals(this.type, that.type) && Objects.equals(this.category, that.category) && Objects.equals(this.bookingDate, that.bookingDate) && Objects.equals(this.valueDate, that.valueDate) && Objects.equals(this.transactionAmountCurrency, that.transactionAmountCurrency) && this.creditDebitIndicator == that.creditDebitIndicator && Objects.equals(this.instructedAmountCurrency, that.instructedAmountCurrency) && Objects.equals(this.currencyExchangeRate, that.currencyExchangeRate) && Objects.equals(this.counterPartyName, that.counterPartyName) && Objects.equals(this.counterPartyAccountNumber, that.counterPartyAccountNumber) && Objects.equals(this.counterPartyBIC, that.counterPartyBIC) && Objects.equals(this.counterPartyCountry, that.counterPartyCountry) && Objects.equals(this.counterPartyBankName, that.counterPartyBankName) && Objects.equals(this.creditorId, that.creditorId) && Objects.equals(this.mandateReference, that.mandateReference) && Objects.equals(this.billingStatus, that.billingStatus) && Objects.equals(this.notes, that.notes) && Objects.equals(this.runningBalance, that.runningBalance) && Objects.equals(this.location, that.location) && Objects.equals(this.merchant, that.merchant);
}
}
public int hashCode() {
return Objects.hash(new Object[]{super.hashCode(), this.id, this.arrangementId, this.productId, this.reference, this.description, this.typeGroup, this.type, this.category, this.bookingDate, this.valueDate, this.transactionAmountCurrency, this.creditDebitIndicator, this.instructedAmountCurrency, this.currencyExchangeRate, this.counterPartyName, this.counterPartyAccountNumber, this.counterPartyBIC, this.counterPartyCountry, this.counterPartyBankName, this.creditorId, this.mandateReference, this.billingStatus, this.notes, this.runningBalance, this.checkSerialNumber, this.location, this.merchant});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment