Created
February 25, 2020 07:44
-
-
Save bbalakriz/45b4b647eb2b162b9d8fa377ccd03741 to your computer and use it in GitHub Desktop.
Amended Transaction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.bmi.calc; | |
/** | |
* This class was automatically generated by the data modeler tool. | |
*/ | |
import java.io.Serializable; | |
import java.time.LocalDateTime; | |
import org.kie.api.definition.type.Label; | |
/** | |
* Transaction | |
*/ | |
public class Transaction implements Serializable { | |
private static final long serialVersionUID = 1L; | |
// Amount | |
private Double amount; | |
// Date | |
private LocalDateTime dateValue; | |
// Auth Code | |
@Label("Auth Code") | |
private String authCode; | |
// Merchant Name | |
private String merchantName; | |
// Merchant Code | |
@Label("Merchant Code") | |
private String merchantCode; | |
// Location | |
private String location; | |
// CardType (debit, secured credit, unsecured credit, prepaid, reward) | |
@Label("Card Type") | |
private String cardType; | |
@Override | |
public String toString() { | |
return String.format( | |
"Transaction {amount: %s, authCode: %s, cardType: %s, dateValue: %s, location: %s, merchantCode: %s, merchantName: %s }", | |
amount, authCode, cardType, dateValue, location, merchantCode, merchantName); | |
} | |
/** | |
* @return the amount | |
*/ | |
public Double getAmount() { | |
return amount; | |
} | |
/** | |
* @param amount the amount to set | |
*/ | |
public void setAmount(Double amount) { | |
this.amount = amount; | |
} | |
/** | |
* @return the date | |
*/ | |
public LocalDateTime getDateValue() { | |
return dateValue; | |
} | |
/** | |
* @param date the date to set | |
*/ | |
public void setDateValue(LocalDateTime dateValue) { | |
this.dateValue = dateValue; | |
} | |
/** | |
* @return the authCode | |
*/ | |
public String getAuthCode() { | |
return authCode; | |
} | |
/** | |
* @param authCode the authCode to set | |
*/ | |
public void setAuthCode(String authCode) { | |
this.authCode = authCode; | |
} | |
/** | |
* @return the merchantName | |
*/ | |
public String getMerchantName() { | |
return merchantName; | |
} | |
/** | |
* @param merchantName the merchantName to set | |
*/ | |
public void setMerchantName(String merchantName) { | |
this.merchantName = merchantName; | |
} | |
/** | |
* @return the merchantCode | |
*/ | |
public String getMerchantCode() { | |
return merchantCode; | |
} | |
/** | |
* @param merchantCode the merchantCode to set | |
*/ | |
public void setMerchantCode(String merchantCode) { | |
this.merchantCode = merchantCode; | |
} | |
/** | |
* @return the location | |
*/ | |
public String getLocation() { | |
return location; | |
} | |
/** | |
* @param location the location to set | |
*/ | |
public void setLocation(String location) { | |
this.location = location; | |
} | |
/** | |
* @return the cardType | |
*/ | |
public String getCardType() { | |
return cardType; | |
} | |
/** | |
* @param cardType the cardType to set | |
*/ | |
public void setCardType(String cardType) { | |
this.cardType = cardType; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment