// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Localisation; namespace osu.Game.Resources.Localisation.Web.ModelValidation { public static class PaymentsStrings { private const string prefix = @"osu.Game.Resources.Localisation.Web.ModelValidation.Payments"; /// /// "Signatures do not match" /// public static LocalisableString SignatureNotMatch => new TranslatableString(getKey(@"signature.not_match"), @"Signatures do not match"); /// /// "notification_type is not valid {0}" /// public static LocalisableString NotificationType(LocalisableString type) => new TranslatableString(getKey(@"notification_type"), @"notification_type is not valid {0}", type); /// /// "Order is not valid" /// public static LocalisableString OrderInvalid => new TranslatableString(getKey(@"order.invalid"), @"Order is not valid"); /// /// "`{0}` payment is not valid for physical items." /// public static LocalisableString OrderItemsVirtualOnly(LocalisableString provider) => new TranslatableString(getKey(@"order.items.virtual_only"), @"`{0}` payment is not valid for physical items.", provider); /// /// "Trying to accept payment for an order in the wrong state `{0}`." /// public static LocalisableString OrderStatusNotCheckout(LocalisableString state) => new TranslatableString(getKey(@"order.status.not_checkout"), @"Trying to accept payment for an order in the wrong state `{0}`.", state); /// /// "Trying to refund payment for an order in the wrong state `{0}`." /// public static LocalisableString OrderStatusNotPaid(LocalisableString state) => new TranslatableString(getKey(@"order.status.not_paid"), @"Trying to refund payment for an order in the wrong state `{0}`.", state); /// /// "`{0}` param does not match" /// public static LocalisableString ParamInvalid(LocalisableString param) => new TranslatableString(getKey(@"param.invalid"), @"`{0}` param does not match", param); /// /// "Pending payment is not an echeck. ({0})" /// public static LocalisableString PaypalNotEcheck(LocalisableString actual) => new TranslatableString(getKey(@"paypal.not_echeck"), @"Pending payment is not an echeck. ({0})", actual); /// /// "Payment amount does not match: {0} != {1}" /// public static LocalisableString PurchaseCheckoutAmount(LocalisableString actual, LocalisableString expected) => new TranslatableString(getKey(@"purchase.checkout.amount"), @"Payment amount does not match: {0} != {1}", actual, expected); /// /// "Payment is not in USD. ({0})" /// public static LocalisableString PurchaseCheckoutCurrency(LocalisableString type) => new TranslatableString(getKey(@"purchase.checkout.currency"), @"Payment is not in USD. ({0})", type); /// /// "Received order transaction id is malformed" /// public static LocalisableString OrderNumberMalformed => new TranslatableString(getKey(@"order_number.malformed"), @"Received order transaction id is malformed"); /// /// "external_id contains wrong user id" /// public static LocalisableString OrderNumberUserIdMismatch => new TranslatableString(getKey(@"order_number.user_id_mismatch"), @"external_id contains wrong user id"); private static string getKey(string key) => $@"{prefix}:{key}"; } }