org.vfdtech.models.cba.mifos.MifosIntraTransferRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of utilities-and-generic-tools Show documentation
Show all versions of utilities-and-generic-tools Show documentation
A utilities service with generic tools implementation. Can be
plugged into your java project
package org.vfdtech.models.cba.mifos;
import com.fasterxml.jackson.annotation.JsonIgnore;
import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import org.vfdtech.models.Jsonable;
import java.util.UUID;
@Data
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
public class MifosIntraTransferRequest extends Jsonable implements IPaymentRequest {
@Builder.Default
private String locale = "en";
@Builder.Default
private String dateFormat = "dd MMMM yyyy";
private String transferDate;
private String transferAmount;
@NotBlank
private String paymentTypeId;
private String remarks;
private String transferDescription;
private String transactionBrandName;
@Builder.Default
private String fromAccountType = "2";
@Builder.Default
private String toAccountType = "2";
@NotBlank
private String fromAccountId;
@NotBlank
private String toAccountId;
@NotBlank
private String fromClientId;
@NotBlank
private String toClientId;
@Builder.Default
private String fromOfficeId = "1";
@Builder.Default
private String toOfficeId = "1";
private String beneficiaryNarration;
private String beneficiaryName;
private String narration;
@Builder.Default
private String routingCode = "999999";
@Override
@JsonIgnore
public String getReference() {
return UUID.randomUUID().toString();
}
@Override
@JsonIgnore
public String getAccountId() {
return this.fromAccountId;
}
}