completed group batch feature
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
package zw.qantra.tm.domain.dtos;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import lombok.Data;
|
||||
import zw.qantra.tm.domain.models.Transaction;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.UUID;
|
||||
|
||||
@Data
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
public class GroupBatchCreateRequest {
|
||||
private UUID recipientGroupId;
|
||||
private String userId;
|
||||
private String description;
|
||||
private String requestedBy;
|
||||
private String currency;
|
||||
private BigDecimal amount;
|
||||
private String paymentProcessorLabel;
|
||||
private String paymentProcessorName;
|
||||
private String paymentProcessorImage;
|
||||
private Transaction transactionTemplate;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
package zw.qantra.tm.domain.dtos;
|
||||
|
||||
import lombok.Data;
|
||||
import zw.qantra.tm.domain.enums.AuthType;
|
||||
|
||||
@Data
|
||||
public class GroupBatchTriggerRequest {
|
||||
private String userId;
|
||||
private String idempotencyKey;
|
||||
private AuthType authType;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
package zw.qantra.tm.domain.dtos;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import lombok.Data;
|
||||
import zw.qantra.tm.domain.models.Transaction;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.UUID;
|
||||
|
||||
@Data
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
public class GroupBatchUpdateRequest {
|
||||
private UUID id;
|
||||
private String userId;
|
||||
private String description;
|
||||
private String requestedBy;
|
||||
private String currency;
|
||||
private BigDecimal amount;
|
||||
private String paymentProcessorLabel;
|
||||
private String paymentProcessorName;
|
||||
private String paymentProcessorImage;
|
||||
private Transaction transactionTemplate;
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package zw.qantra.tm.domain.dtos;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
@Data
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
public class GroupMemberRequest {
|
||||
private String userId;
|
||||
private List<UUID> recipientIds;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
package zw.qantra.tm.domain.dtos;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import lombok.Data;
|
||||
import zw.qantra.tm.domain.models.Recipient;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
public class RecipientGroupCreateRequest {
|
||||
private String name;
|
||||
private String description;
|
||||
private String userId;
|
||||
private List<Recipient> recipients;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
package zw.qantra.tm.domain.dtos;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
public class RecipientGroupUpdateRequest {
|
||||
private String name;
|
||||
private String description;
|
||||
private String userId;
|
||||
}
|
||||
|
||||
@@ -21,8 +21,6 @@ public class RegisterRequest {
|
||||
|
||||
@NotBlank(message = "First name is required")
|
||||
private String firstName;
|
||||
|
||||
@NotBlank(message = "Last name is required")
|
||||
private String lastName;
|
||||
|
||||
@NotBlank(message = "Phone is required")
|
||||
|
||||
Reference in New Issue
Block a user