Webiant Logo Webiant Logo
  1. No results found.

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

OneTimeCharge.cs

using Newtonsoft.Json;

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

/// 
/// Represents the one time charge details for recurring payments
/// 
public class OneTimeCharge
{
    #region Properties

    /// 
    /// Gets or sets the setup fee for the recurring plan.
    /// 
    [JsonProperty(PropertyName = "setup_fee")]
    public Money SetupFee { get; set; }

    /// 
    /// Gets or sets the shipping amount due at the time of checkout.
    /// 
    [JsonProperty(PropertyName = "shipping_amount")]
    public Money ShippingAmount { get; set; }

    /// 
    /// Gets or sets the taxes due at the time of checkout.
    /// 
    [JsonProperty(PropertyName = "taxes")]
    public Money Taxes { get; set; }

    /// 
    /// Gets or sets the product price for any one-time product purchased at the time of checkout.
    /// 
    [JsonProperty(PropertyName = "product_price")]
    public Money ProductPrice { get; set; }

    /// 
    /// Gets or sets the total amount at the time of checkout. This is calculated by using the formula x + y + z where x is subtotal, y is shipping-amount and z is taxes.
    /// 
    [JsonProperty(PropertyName = "total_amount")]
    public Money TotalAmount { get; set; }

    #endregion
}