restucturization of recipients payment methods
All checks were successful
ci/woodpecker/push/billing_fees Pipeline was successful
ci/woodpecker/push/bff Pipeline was successful
ci/woodpecker/push/db Pipeline was successful
ci/woodpecker/push/chain_gateway 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/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:
Stephan D
2025-12-04 14:40:21 +01:00
parent 3b04753f4e
commit bf85ca062c
120 changed files with 1415 additions and 538 deletions

View File

@@ -0,0 +1,20 @@
import 'package:json_annotation/json_annotation.dart';
part 'card.g.dart';
@JsonSerializable()
class CardPaymentDataDTO {
final String pan;
final String firstName;
final String lastName;
const CardPaymentDataDTO({
required this.pan,
required this.firstName,
required this.lastName,
});
factory CardPaymentDataDTO.fromJson(Map<String, dynamic> json) => _$CardPaymentDataDTOFromJson(json);
Map<String, dynamic> toJson() => _$CardPaymentDataDTOToJson(this);
}

View File

@@ -0,0 +1,20 @@
import 'package:json_annotation/json_annotation.dart';
part 'crypto_address.g.dart';
@JsonSerializable()
class CryptoAddressPaymentDataDTO {
final String address;
final String network;
final String? destinationTag;
const CryptoAddressPaymentDataDTO({
required this.address,
required this.network,
this.destinationTag,
});
factory CryptoAddressPaymentDataDTO.fromJson(Map<String, dynamic> json) => _$CryptoAddressPaymentDataDTOFromJson(json);
Map<String, dynamic> toJson() => _$CryptoAddressPaymentDataDTOToJson(this);
}

View File

@@ -0,0 +1,22 @@
import 'package:json_annotation/json_annotation.dart';
part 'iban.g.dart';
@JsonSerializable()
class IbanPaymentDataDTO {
final String iban;
final String accountHolder;
final String? bic;
final String? bankName;
const IbanPaymentDataDTO({
required this.iban,
required this.accountHolder,
this.bic,
this.bankName,
});
factory IbanPaymentDataDTO.fromJson(Map<String, dynamic> json) => _$IbanPaymentDataDTOFromJson(json);
Map<String, dynamic> toJson() => _$IbanPaymentDataDTOToJson(this);
}

View File

@@ -0,0 +1,33 @@
import 'package:json_annotation/json_annotation.dart';
import 'package:pshared/data/dto/date_time.dart';
import 'package:pshared/data/dto/permissions/bound.dart';
part 'method.g.dart';
@JsonSerializable()
class PaymentMethodDTO extends PermissionBoundDTO {
final String recipientRef;
final String type;
final Map<String, dynamic> data;
@JsonKey(defaultValue: false)
final bool isArchived;
const PaymentMethodDTO({
required super.id,
required super.createdAt,
required super.updatedAt,
required super.permissionRef,
required super.organizationRef,
required this.recipientRef,
required this.type,
required this.data,
this.isArchived = false,
});
factory PaymentMethodDTO.fromJson(Map<String, dynamic> json) => _$PaymentMethodDTOFromJson(json);
@override
Map<String, dynamic> toJson() => _$PaymentMethodDTOToJson(this);
}

View File

@@ -0,0 +1,28 @@
import 'package:json_annotation/json_annotation.dart';
part 'russian_bank.g.dart';
@JsonSerializable()
class RussianBankAccountPaymentDataDTO {
final String recipientName;
final String inn;
final String kpp;
final String bankName;
final String bik;
final String accountNumber;
final String correspondentAccount;
const RussianBankAccountPaymentDataDTO({
required this.recipientName,
required this.inn,
required this.kpp,
required this.bankName,
required this.bik,
required this.accountNumber,
required this.correspondentAccount,
});
factory RussianBankAccountPaymentDataDTO.fromJson(Map<String, dynamic> json) => _$RussianBankAccountPaymentDataDTOFromJson(json);
Map<String, dynamic> toJson() => _$RussianBankAccountPaymentDataDTOToJson(this);
}

View File

@@ -0,0 +1,16 @@
import 'package:json_annotation/json_annotation.dart';
part 'wallet.g.dart';
@JsonSerializable()
class WalletPaymentDataDTO {
final String walletId;
const WalletPaymentDataDTO({
required this.walletId,
});
factory WalletPaymentDataDTO.fromJson(Map<String, dynamic> json) => _$WalletPaymentDataDTOFromJson(json);
Map<String, dynamic> toJson() => _$WalletPaymentDataDTOToJson(this);
}