+ quotation provider
This commit is contained in:
20
frontend/pshared/lib/data/dto/payment/card_token.dart
Normal file
20
frontend/pshared/lib/data/dto/payment/card_token.dart
Normal file
@@ -0,0 +1,20 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
part 'card_token.g.dart';
|
||||
|
||||
|
||||
@JsonSerializable()
|
||||
class CardTokenEndpointDTO {
|
||||
final String token;
|
||||
|
||||
@JsonKey(name: 'masked_pan')
|
||||
final String maskedPan;
|
||||
|
||||
const CardTokenEndpointDTO({
|
||||
required this.maskedPan,
|
||||
required this.token,
|
||||
});
|
||||
|
||||
factory CardTokenEndpointDTO.fromJson(Map<String, dynamic> json) => _$CardTokenEndpointDTOFromJson(json);
|
||||
Map<String, dynamic> toJson() => _$CardTokenEndpointDTOToJson(this);
|
||||
}
|
||||
Reference in New Issue
Block a user