accounts creation
All checks were successful
ci/woodpecker/push/billing_fees Pipeline was successful
ci/woodpecker/push/db Pipeline was successful
ci/woodpecker/push/bff Pipeline was successful
ci/woodpecker/push/discovery Pipeline was successful
ci/woodpecker/push/fx_ingestor Pipeline was successful
ci/woodpecker/push/fx_oracle Pipeline was successful
ci/woodpecker/push/frontend Pipeline was successful
ci/woodpecker/push/gateway_mntx Pipeline was successful
ci/woodpecker/push/gateway_chain Pipeline was successful
ci/woodpecker/push/gateway_tgsettle Pipeline was successful
ci/woodpecker/push/nats Pipeline was successful
ci/woodpecker/push/ledger Pipeline was successful
ci/woodpecker/push/notification Pipeline was successful
ci/woodpecker/push/payments_orchestrator Pipeline was successful
All checks were successful
ci/woodpecker/push/billing_fees Pipeline was successful
ci/woodpecker/push/db Pipeline was successful
ci/woodpecker/push/bff Pipeline was successful
ci/woodpecker/push/discovery Pipeline was successful
ci/woodpecker/push/fx_ingestor Pipeline was successful
ci/woodpecker/push/fx_oracle Pipeline was successful
ci/woodpecker/push/frontend Pipeline was successful
ci/woodpecker/push/gateway_mntx Pipeline was successful
ci/woodpecker/push/gateway_chain Pipeline was successful
ci/woodpecker/push/gateway_tgsettle Pipeline was successful
ci/woodpecker/push/nats Pipeline was successful
ci/woodpecker/push/ledger Pipeline was successful
ci/woodpecker/push/notification Pipeline was successful
ci/woodpecker/push/payments_orchestrator Pipeline was successful
This commit is contained in:
32
frontend/pshared/lib/api/requests/ledger/create.dart
Normal file
32
frontend/pshared/lib/api/requests/ledger/create.dart
Normal file
@@ -0,0 +1,32 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
import 'package:pshared/data/dto/describable.dart';
|
||||
import 'package:pshared/data/dto/ledger/type.dart';
|
||||
|
||||
part 'create.g.dart';
|
||||
|
||||
|
||||
@JsonSerializable()
|
||||
class CreateLedgerAccountRequest {
|
||||
final Map<String, String>? metadata;
|
||||
final String currency;
|
||||
final bool allowNegative;
|
||||
final bool isSettlement;
|
||||
final DescribableDTO describable;
|
||||
final String? ownerRef;
|
||||
final LedgerAccountTypeDTO accountType;
|
||||
|
||||
const CreateLedgerAccountRequest({
|
||||
this.metadata,
|
||||
required this.currency,
|
||||
required this.allowNegative,
|
||||
required this.isSettlement,
|
||||
required this.describable,
|
||||
required this.accountType,
|
||||
this.ownerRef,
|
||||
});
|
||||
|
||||
factory CreateLedgerAccountRequest.fromJson(Map<String, dynamic> json) => _$CreateLedgerAccountRequestFromJson(json);
|
||||
Map<String, dynamic> toJson() => _$CreateLedgerAccountRequestToJson(this);
|
||||
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
|
||||
part 'base.g.dart';
|
||||
|
||||
|
||||
|
||||
25
frontend/pshared/lib/api/requests/wallet/create.dart
Normal file
25
frontend/pshared/lib/api/requests/wallet/create.dart
Normal file
@@ -0,0 +1,25 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
import 'package:pshared/data/dto/describable.dart';
|
||||
import 'package:pshared/data/dto/wallet/chain_asset.dart';
|
||||
|
||||
part 'create.g.dart';
|
||||
|
||||
|
||||
@JsonSerializable()
|
||||
class CreateWalletRequest {
|
||||
final Map<String, String>? metadata;
|
||||
final DescribableDTO describable;
|
||||
final String? ownerRef;
|
||||
final ChainAssetDTO asset;
|
||||
|
||||
const CreateWalletRequest({
|
||||
this.metadata,
|
||||
required this.asset,
|
||||
required this.describable,
|
||||
this.ownerRef,
|
||||
});
|
||||
|
||||
factory CreateWalletRequest.fromJson(Map<String, dynamic> json) => _$CreateWalletRequestFromJson(json);
|
||||
Map<String, dynamic> toJson() => _$CreateWalletRequestToJson(this);
|
||||
}
|
||||
Reference in New Issue
Block a user