completed migrating data scope from user to workspace

This commit is contained in:
2026-06-22 22:10:38 +02:00
parent 62c7f53de0
commit ae2705363a
37 changed files with 918 additions and 221 deletions

View File

@@ -7,6 +7,7 @@ class GroupBatch {
final String? id;
final String? recipientGroupId;
final String? userId;
final String? workspaceId;
final String? currency;
final String? description;
final double? value;
@@ -24,6 +25,7 @@ class GroupBatch {
this.id,
this.recipientGroupId,
this.userId,
this.workspaceId,
this.currency,
this.description,
this.value,
@@ -88,6 +90,7 @@ class GroupBatchItem {
class CreateBatchRequest {
final String recipientGroupId;
final String userId;
final String workspaceId;
final String currency;
final String description;
final double amount;
@@ -98,6 +101,7 @@ class CreateBatchRequest {
const CreateBatchRequest({
required this.recipientGroupId,
required this.userId,
required this.workspaceId,
required this.currency,
required this.description,
required this.amount,
@@ -114,12 +118,14 @@ class CreateBatchRequest {
@JsonSerializable()
class BatchActionRequest {
final String userId;
final String workspaceId;
final String idempotencyKey;
final String? authType;
const BatchActionRequest({
required this.userId,
required this.workspaceId,
required this.idempotencyKey,
this.authType,
});
factory BatchActionRequest.fromJson(Map<String, dynamic> json) =>
@@ -131,14 +137,14 @@ class BatchActionRequest {
@JsonSerializable(explicitToJson: true)
class GroupBatchUpdateRequest {
String? id;
String? userId;
String? workspaceId;
String? paymentProcessorLabel;
String? paymentProcessorName;
String? paymentProcessorImage;
GroupBatchUpdateRequest({
this.id,
this.userId,
this.workspaceId,
this.paymentProcessorLabel,
this.paymentProcessorName,
this.paymentProcessorImage,