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:
29
frontend/pshared/lib/data/mapper/ledger/status.dart
Normal file
29
frontend/pshared/lib/data/mapper/ledger/status.dart
Normal file
@@ -0,0 +1,29 @@
|
||||
import 'package:pshared/data/dto/ledger/status.dart';
|
||||
import 'package:pshared/models/ledger/status.dart';
|
||||
|
||||
|
||||
extension LedgerAccountStatusDTOMapper on LedgerAccountStatusDTO {
|
||||
LedgerAccountStatus toDomain() {
|
||||
switch (this) {
|
||||
case LedgerAccountStatusDTO.unspecified:
|
||||
return LedgerAccountStatus.unspecified;
|
||||
case LedgerAccountStatusDTO.active:
|
||||
return LedgerAccountStatus.active;
|
||||
case LedgerAccountStatusDTO.frozen:
|
||||
return LedgerAccountStatus.frozen;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
extension LedgerAccountStatusMapper on LedgerAccountStatus {
|
||||
LedgerAccountStatusDTO toDTO() {
|
||||
switch (this) {
|
||||
case LedgerAccountStatus.unspecified:
|
||||
return LedgerAccountStatusDTO.unspecified;
|
||||
case LedgerAccountStatus.active:
|
||||
return LedgerAccountStatusDTO.active;
|
||||
case LedgerAccountStatus.frozen:
|
||||
return LedgerAccountStatusDTO.frozen;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user