Skip to content

Commit

Permalink
Improved wording
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert-SD committed Oct 10, 2023
1 parent 27cd50f commit 19032be
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
2 changes: 1 addition & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ class _MyAppState extends State<MyApp> {
message = "Result code: ${paymentResult.resultCode}";
case PaymentCancelledByUser():
title = "Cancelled by user";
message = "Drop-in cancelled manually by user";
message = "Drop-in cancelled by user";
case PaymentError():
title = "Error occurred";
message = "${paymentResult.reason}";
Expand Down
17 changes: 0 additions & 17 deletions lib/src/utils/dto_mapper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -68,23 +68,6 @@ extension AmountMapper on Amount {
currency: currency,
);
}
//
// extension PaymentResultMapper on PaymentResultDTO {
// PaymentResult fromDTO() => PaymentResult(
// type,
// reason,
// result?.fromDTO(),
// );
// }
//
// extension PaymentResulModelMapper on PaymentResultModelDTO {
// PaymentResultModel fromDTO() => PaymentResultModel(
// sessionId,
// sessionData,
// resultCode,
// order?.fromDTO(),
// );
// }

extension OrderResponseMapper on OrderResponseDTO {
OrderResponse fromDTO() => OrderResponse(
Expand Down

0 comments on commit 19032be

Please sign in to comment.