com.simpay.payment.client.model.operation.MoneyRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ms-payment-client Show documentation
Show all versions of ms-payment-client Show documentation
Module client du micro service payment
package com.simpay.payment.client.model.operation;
import com.simpay.transaction.client.enums.Currency;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Positive;
import java.math.BigDecimal;
import java.util.UUID;
import lombok.*;
@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Schema(description = "Money request Model")
public class MoneyRequest {
@Schema(description = "User reference")
@NotNull(message = "The user reference is required")
private UUID userReference;
@Schema(description = "Money request amount")
@NotNull(message = "The amount is required")
@Positive(message = "The amount most be a positive number")
private BigDecimal amount;
@Schema(description = "beneficiary name")
@NotNull(message = "The beneficiary name is required")
private String beneficiaryName;
@Schema(description = "beneficiary account number")
@NotNull(message = "The beneficiary account number is required")
private String beneficiaryAccountNumber;
@Schema(description = "Money request currency", example = "XAF")
private Currency beneficiaryCurrency;
@Schema(description = "borrower name")
@NotNull(message = "The borrower name is required")
private String borrowerName;
@Schema(description = "borrower account number")
@NotNull(message = "The borrower account number is required")
private String borrowerAccountNumber;
@Schema(description = "Request reason")
private String requestReason;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy