using Newtonsoft.Json; namespace Nop.Plugin.Payments.PayPalCommerce.Services.Api.Models; /// /// Represents the experience context /// public class ExperienceContext { #region Properties /// /// Gets or sets the label that overrides the business name in the PayPal account on the PayPal site. The pattern is defined by an external party and supports Unicode. /// [JsonProperty(PropertyName = "brand_name")] public string BrandName { get; set; } /// /// Gets or sets the location from which the shipping address is derived. /// [JsonProperty(PropertyName = "shipping_preference")] public string ShippingPreference { get; set; } /// /// Gets or sets the type of landing page to show on the PayPal site for customer checkout. /// [JsonProperty(PropertyName = "landing_page")] public string LandingPage { get; set; } /// /// Gets or sets the user action. Configures a Continue or Pay Now checkout flow. /// [JsonProperty(PropertyName = "user_action")] public string UserAction { get; set; } /// /// Gets or sets the merchant-preferred payment methods. /// [JsonProperty(PropertyName = "payment_method_preference")] public string PaymentMethodPreference { get; set; } /// /// Gets or sets the BCP 47-formatted locale of pages that the PayPal payment experience shows. PayPal supports a five-character code. For example, da-DK, he-IL, id-ID, ja-JP, no-NO, pt-BR, ru-RU, sv-SE, th-TH, zh-CN, zh-HK, or zh-TW. /// [JsonProperty(PropertyName = "locale")] public string Locale { get; set; } /// /// Gets or sets the URL where the customer will be redirected upon approving a payment. /// [JsonProperty(PropertyName = "return_url")] public string ReturnUrl { get; set; } /// /// Gets or sets the URL where the customer will be redirected upon cancelling the payment approval. /// [JsonProperty(PropertyName = "cancel_url")] public string CancelUrl { get; set; } #endregion }