From 8d24b99be1e4ae66707d52f5df3df044beef0d0f Mon Sep 17 00:00:00 2001 From: enisn Date: Wed, 20 Oct 2021 12:39:22 +0300 Subject: [PATCH] Rename payment pages as PreCheckout & PostCheckout --- .../Payment/{CheckoutCallback.cshtml => PostCheckout.cshtml} | 2 +- .../{CheckoutCallback.cshtml.cs => PostCheckout.cshtml.cs} | 4 ++-- .../Pages/Payment/{Checkout.cshtml => PreCheckout.cshtml} | 4 ++-- .../Payment/{Checkout.cshtml.cs => PreCheckout.cshtml.cs} | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) rename modules/payment/src/Payment.Web/Pages/Payment/{CheckoutCallback.cshtml => PostCheckout.cshtml} (92%) rename modules/payment/src/Payment.Web/Pages/Payment/{CheckoutCallback.cshtml.cs => PostCheckout.cshtml.cs} (94%) rename modules/payment/src/Payment.Web/Pages/Payment/{Checkout.cshtml => PreCheckout.cshtml} (83%) rename modules/payment/src/Payment.Web/Pages/Payment/{Checkout.cshtml.cs => PreCheckout.cshtml.cs} (93%) diff --git a/modules/payment/src/Payment.Web/Pages/Payment/CheckoutCallback.cshtml b/modules/payment/src/Payment.Web/Pages/Payment/PostCheckout.cshtml similarity index 92% rename from modules/payment/src/Payment.Web/Pages/Payment/CheckoutCallback.cshtml rename to modules/payment/src/Payment.Web/Pages/Payment/PostCheckout.cshtml index bf85e61..213df80 100644 --- a/modules/payment/src/Payment.Web/Pages/Payment/CheckoutCallback.cshtml +++ b/modules/payment/src/Payment.Web/Pages/Payment/PostCheckout.cshtml @@ -2,7 +2,7 @@ @using Payment.Web.Pages.Payment @using Payment.PaymentRequests @inherits Payment.Web.Pages.PaymentPageBase -@model Payment.Web.Pages.Payment.CheckoutCallbackModel +@model Payment.Web.Pages.Payment.PostCheckoutPageModel @{ PageLayout.Content.Title = L["PaymentResult"] + L["Enum:PaymentRequestState:" + Model.PaymentRequest.State]; } diff --git a/modules/payment/src/Payment.Web/Pages/Payment/CheckoutCallback.cshtml.cs b/modules/payment/src/Payment.Web/Pages/Payment/PostCheckout.cshtml.cs similarity index 94% rename from modules/payment/src/Payment.Web/Pages/Payment/CheckoutCallback.cshtml.cs rename to modules/payment/src/Payment.Web/Pages/Payment/PostCheckout.cshtml.cs index 0a1315c..b88eb4b 100644 --- a/modules/payment/src/Payment.Web/Pages/Payment/CheckoutCallback.cshtml.cs +++ b/modules/payment/src/Payment.Web/Pages/Payment/PostCheckout.cshtml.cs @@ -6,7 +6,7 @@ using System.Threading.Tasks; namespace Payment.Web.Pages.Payment { - public class CheckoutCallbackModel : PaymentPageModel + public class PostCheckoutPageModel : PaymentPageModel { [BindProperty(SupportsGet = true)] public string Token { get; set; } @@ -16,7 +16,7 @@ namespace Payment.Web.Pages.Payment private readonly IPaymentRequestAppService _paymentRequestAppService; private readonly PaymentWebOptions _paymentWebOptions; - public CheckoutCallbackModel( + public PostCheckoutPageModel( IPaymentRequestAppService appService, IOptions paymentWebOptions) { diff --git a/modules/payment/src/Payment.Web/Pages/Payment/Checkout.cshtml b/modules/payment/src/Payment.Web/Pages/Payment/PreCheckout.cshtml similarity index 83% rename from modules/payment/src/Payment.Web/Pages/Payment/Checkout.cshtml rename to modules/payment/src/Payment.Web/Pages/Payment/PreCheckout.cshtml index 2823565..38b27e6 100644 --- a/modules/payment/src/Payment.Web/Pages/Payment/Checkout.cshtml +++ b/modules/payment/src/Payment.Web/Pages/Payment/PreCheckout.cshtml @@ -1,10 +1,10 @@ @page @using Payment.Web.Pages.Payment @inherits Payment.Web.Pages.PaymentPageBase -@model Payment.Web.Pages.Payment.CheckoutPageModel +@model Payment.Web.Pages.Payment.PreCheckoutPageModel @section scripts { - + } diff --git a/modules/payment/src/Payment.Web/Pages/Payment/Checkout.cshtml.cs b/modules/payment/src/Payment.Web/Pages/Payment/PreCheckout.cshtml.cs similarity index 93% rename from modules/payment/src/Payment.Web/Pages/Payment/Checkout.cshtml.cs rename to modules/payment/src/Payment.Web/Pages/Payment/PreCheckout.cshtml.cs index 4f9cb23..57aeeed 100644 --- a/modules/payment/src/Payment.Web/Pages/Payment/Checkout.cshtml.cs +++ b/modules/payment/src/Payment.Web/Pages/Payment/PreCheckout.cshtml.cs @@ -6,7 +6,7 @@ using System.Threading.Tasks; namespace Payment.Web.Pages.Payment { - public class CheckoutPageModel : PaymentPageModel + public class PreCheckoutPageModel : PaymentPageModel { [BindProperty(SupportsGet = true)] public Guid PaymentRequestId { get; set; } @@ -16,7 +16,7 @@ namespace Payment.Web.Pages.Payment private readonly IPaymentRequestAppService _paymentRequestAppService; private readonly IPaymentUrlBuilder _paymentUrlBuilder; - public CheckoutPageModel( + public PreCheckoutPageModel( IPaymentRequestAppService paymentRequestAppService, IPaymentUrlBuilder paymentUrlBuilder) {