completed initial scaffolding for services
This commit is contained in:
@@ -1,10 +1,14 @@
|
||||
package zw.qantra.tm.domain.models;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import jakarta.persistence.*;
|
||||
import lombok.*;
|
||||
import zw.qantra.tm.domain.enums.CurrencyType;
|
||||
import zw.qantra.tm.domain.enums.RequestType;
|
||||
import zw.qantra.tm.domain.enums.Status;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
@Entity
|
||||
@@ -13,6 +17,7 @@ import java.util.UUID;
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
public class Transaction {
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.UUID)
|
||||
@@ -20,6 +25,10 @@ public class Transaction {
|
||||
|
||||
private String trace;
|
||||
private BigDecimal amount;
|
||||
private BigDecimal charge;
|
||||
private BigDecimal gatewayCharge;
|
||||
private BigDecimal tax;
|
||||
private BigDecimal totalAmount;
|
||||
private String reference;
|
||||
private String providerUid;
|
||||
private String productUid;
|
||||
@@ -30,13 +39,13 @@ public class Transaction {
|
||||
private String channel;
|
||||
private String debitPhone;
|
||||
private String debitAccount;
|
||||
private String debitCurrency;
|
||||
private CurrencyType debitCurrency;
|
||||
private String debitName;
|
||||
private String debitCard;
|
||||
private String debitRef;
|
||||
private String creditPhone;
|
||||
private String creditAccount;
|
||||
private String creditCurrency;
|
||||
private CurrencyType creditCurrency;
|
||||
private String creditName;
|
||||
private String creditCard;
|
||||
private String creditRef;
|
||||
@@ -46,4 +55,11 @@ public class Transaction {
|
||||
private String billName;
|
||||
private String billProductName;
|
||||
private RequestType type;
|
||||
|
||||
private String errorMessage;
|
||||
private String responseCode;
|
||||
private Status status;
|
||||
@Transient
|
||||
private List<Object> additionalData;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user