package payp.mard2p.api.v0.models; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import java.lang.Double; import java.lang.Integer; import java.lang.Long; import java.lang.String; import lombok.Data; import me.geso.tinyvalidator.constraints.NotNull; /** * Generated by API Builder - https://www.apibuilder.io * Service version: 0.0.2-dev * User agent: apibuilder app.apibuilder.io/mard/mard2p-api/0.0.2-dev/java_aws_lambda_pojo_client * * WARNING: not all features (notably unions) and data types work with the java generator yet. * Java POJO generator is designed to be used with AWS Lambdas. * If you are considering using this library, would like to request/discuss features, or would like to share how you're using it, please contact daniel.kirby@gilt.com * * Payment is defined by the app specifically to emit users transactions. */ @Data @JsonIgnoreProperties( ignoreUnknown = true ) public class Payment { @NotNull protected Long payid; @NotNull protected String actorid; @NotNull protected Double amount; @NotNull protected Long refAccountid; @NotNull protected String paymentMethod; @NotNull protected String operatorid; @NotNull protected Long phone; @NotNull protected Integer pin; @NotNull protected String currency; @NotNull protected String paymentContext; public Payment(Long payid, String actorid, Double amount, Long refAccountid, String paymentMethod, String operatorid, Long phone, Integer pin, String currency, String paymentContext) { this.payid = payid; this.actorid = actorid; this.amount = amount; this.refAccountid = refAccountid; this.paymentMethod = paymentMethod; this.operatorid = operatorid; this.phone = phone; this.pin = pin; this.currency = currency; this.paymentContext = paymentContext; } public Payment() { } /** * Internal unique identifier for this payment. */ public Long getPayid() { return payid; } public void setPayid(Long payid) { this.payid = payid; } /** * The username registered in the application */ public String getActorid() { return actorid; } public void setActorid(String actorid) { this.actorid = actorid; } /** * The amount to send. This field allowed the processing transactions. */ public Double getAmount() { return amount; } public void setAmount(Double amount) { this.amount = amount; } /** * The accountid to use to send money to the specific account. */ public Long getRefAccountid() { return refAccountid; } public void setRefAccountid(Long refAccountid) { this.refAccountid = refAccountid; } /** * The type of payment to use [Mobile Money or Credit Card]. */ public String getPaymentMethod() { return paymentMethod; } public void setPaymentMethod(String paymentMethod) { this.paymentMethod = paymentMethod; } /** * The operator specified the type of payment if Mobile Money. */ public String getOperatorid() { return operatorid; } public void setOperatorid(String operatorid) { this.operatorid = operatorid; } /** * The phone identifying specific account of consumer. */ public Long getPhone() { return phone; } public void setPhone(Long phone) { this.phone = phone; } /** * The code used to validate the transaction. */ public Integer getPin() { return pin; } public void setPin(Integer pin) { this.pin = pin; } /** * The phone identifying specific account of consumer. */ public String getCurrency() { return currency; } public void setCurrency(String currency) { this.currency = currency; } /** * This field specify the type of transaction [Buying, Deposit, Withdraw]. */ public String getPaymentContext() { return paymentContext; } public void setPaymentContext(String paymentContext) { this.paymentContext = paymentContext; } }