payment quotation v2 + payment orchestration v2 draft
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
import 'package:flutter/foundation.dart';
|
||||
|
||||
import 'package:pshared/config/web.dart';
|
||||
|
||||
import 'package:pshared/config/constants.dart';
|
||||
|
||||
abstract class Storable {
|
||||
String get id;
|
||||
DateTime get createdAt;
|
||||
DateTime get updatedAt;
|
||||
DateTime get updatedAt;
|
||||
}
|
||||
|
||||
@immutable
|
||||
@@ -23,11 +22,11 @@ class _StorableImp implements Storable {
|
||||
required this.createdAt,
|
||||
required this.updatedAt,
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
Storable newStorable({String? id, DateTime? createdAt, DateTime? updatedAt}) => _StorableImp(
|
||||
id: id ?? Constants.nilObjectRef,
|
||||
createdAt: createdAt ?? DateTime.now().toUtc(),
|
||||
updatedAt: updatedAt ?? DateTime.now().toUtc(),
|
||||
);
|
||||
Storable newStorable({String? id, DateTime? createdAt, DateTime? updatedAt}) =>
|
||||
_StorableImp(
|
||||
id: id ?? Constants.nilObjectRef,
|
||||
createdAt: createdAt ?? DateTime.now().toUtc(),
|
||||
updatedAt: updatedAt ?? DateTime.now().toUtc(),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user