+ quotation provider
This commit is contained in:
20
frontend/pshared/lib/api/requests/payment/base.dart
Normal file
20
frontend/pshared/lib/api/requests/payment/base.dart
Normal file
@@ -0,0 +1,20 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
|
||||
part 'base.g.dart';
|
||||
|
||||
|
||||
@JsonSerializable()
|
||||
class PaymentBaseRequest {
|
||||
final String idempotencyKey;
|
||||
final Map<String, String>? metadata;
|
||||
|
||||
const PaymentBaseRequest({
|
||||
required this.idempotencyKey,
|
||||
this.metadata,
|
||||
});
|
||||
|
||||
factory PaymentBaseRequest.fromJson(Map<String, dynamic> json) => _$PaymentBaseRequestFromJson(json);
|
||||
Map<String, dynamic> toJson() => _$PaymentBaseRequestToJson(this);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user