All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.vfdtech.models.cba.mifos.MifosIntraTransferRequest Maven / Gradle / Ivy

Go to download

A utilities service with generic tools implementation. Can be plugged into your java project

There is a newer version: 0.3.5
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy