Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

ShippingOption.cs

using Newtonsoft.Json;

namespace Nop.Plugin.Payments.PayPalCommerce.Services.Api.Models;

/// 
/// Represents the shipping option
/// 
public class ShippingOption
{
    #region Properties

    /// 
    /// Gets or sets the unique ID that identifies a payer-selected shipping option.
    /// 
    [JsonProperty(PropertyName = "id")]
    public string Id { get; set; }

    /// 
    /// Gets or sets the description that the payer sees, which helps them choose an appropriate shipping option. For example, `Free Shipping, USPS Priority Shipping`, `Expédition prioritaire USPS`, or `USPS youxian fa huò`. Localize this description to the payer's locale.
    /// 
    [JsonProperty(PropertyName = "label")]
    public string Label { get; set; }

    /// 
    /// Gets or sets a value indicating whether the shipping option that the payee or merchant expects to be pre-selected for the payer when they first view the `shipping.options` in the PayPal Checkout experience.
    /// 
    [JsonProperty(PropertyName = "selected")]
    public bool? Selected { get; set; }

    /// 
    /// Gets or sets the classification for the method of purchase fulfillment.
    /// 
    [JsonProperty(PropertyName = "type")]
    public string Type { get; set; }

    /// 
    /// Gets or sets the shipping cost for the selected option.
    /// 
    [JsonProperty(PropertyName = "amount")]
    public Money Amount { get; set; }

    #endregion
}