+source +destination in payments
This commit is contained in:
17
frontend/pshared/lib/models/payment/endpoint.dart
Normal file
17
frontend/pshared/lib/models/payment/endpoint.dart
Normal file
@@ -0,0 +1,17 @@
|
||||
import 'package:pshared/models/payment/methods/data.dart';
|
||||
|
||||
class PaymentEndpoint {
|
||||
final PaymentMethodData? method;
|
||||
final String? paymentMethodRef;
|
||||
final String? payeeRef;
|
||||
final String? type;
|
||||
final Map<String, dynamic>? rawData;
|
||||
|
||||
const PaymentEndpoint({
|
||||
required this.method,
|
||||
required this.paymentMethodRef,
|
||||
required this.payeeRef,
|
||||
required this.type,
|
||||
required this.rawData,
|
||||
});
|
||||
}
|
||||
@@ -1,11 +1,13 @@
|
||||
import 'package:pshared/models/payment/endpoint.dart';
|
||||
import 'package:pshared/models/payment/execution_operation.dart';
|
||||
import 'package:pshared/models/payment/quote/quote.dart';
|
||||
import 'package:pshared/models/payment/state.dart';
|
||||
|
||||
class Payment {
|
||||
final String? paymentRef;
|
||||
final String? idempotencyKey;
|
||||
final String? state;
|
||||
final PaymentEndpoint? source;
|
||||
final PaymentEndpoint? destination;
|
||||
final PaymentOrchestrationState orchestrationState;
|
||||
final String? failureCode;
|
||||
final String? failureReason;
|
||||
@@ -16,8 +18,9 @@ class Payment {
|
||||
|
||||
const Payment({
|
||||
required this.paymentRef,
|
||||
required this.idempotencyKey,
|
||||
required this.state,
|
||||
required this.source,
|
||||
required this.destination,
|
||||
required this.orchestrationState,
|
||||
required this.failureCode,
|
||||
required this.failureReason,
|
||||
|
||||
Reference in New Issue
Block a user