added batch file upload feature
This commit is contained in:
@@ -21,4 +21,3 @@ public class GroupBatchCreateRequest {
|
||||
private String paymentProcessorImage;
|
||||
private Transaction transactionTemplate;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
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;
|
||||
|
||||
@Data
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
public class GroupCreateFromFileRequest {
|
||||
private String groupName;
|
||||
private String groupDescription;
|
||||
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,29 @@
|
||||
package zw.qantra.tm.domain.dtos;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import zw.qantra.tm.domain.models.GroupBatch;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
public class GroupCreateFromFileResult {
|
||||
private GroupBatch batch;
|
||||
private int totalRows;
|
||||
private int successCount;
|
||||
private int errorCount;
|
||||
private List<RowError> errors;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
public static class RowError {
|
||||
private int lineNumber;
|
||||
private String account;
|
||||
private String name;
|
||||
private String message;
|
||||
}
|
||||
}
|
||||
@@ -14,7 +14,7 @@ import java.util.UUID;
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class SBZProductDto {
|
||||
public class ProductDto {
|
||||
private String name;
|
||||
private String description;
|
||||
private String displayName;
|
||||
Reference in New Issue
Block a user