Webiant Logo Webiant Logo
  1. No results found.

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

BillingCycle.cs

using Newtonsoft.Json;

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

/// 
/// Represents the billing cycle details
/// 
public class BillingCycle
{
    #region Properties

    /// 
    /// Gets or sets the tenure type of the billing cycle identifies if the billing cycle is a trial (free or discounted) or regular billing cycle.
    /// 
    [JsonProperty(PropertyName = "tenure_type")]
    public string TenureType { get; set; }

    /// 
    /// Gets or sets the number of times this billing cycle gets executed.
    /// 
    [JsonProperty(PropertyName = "total_cycles")]
    public int TotalCycles { get; set; }

    /// 
    /// Gets or sets the order in which this cycle is to run among other billing cycles.
    /// 
    [JsonProperty(PropertyName = "sequence")]
    public int Sequence { get; set; }

    /// 
    /// Gets or sets the active pricing scheme for this billing cycle. A free trial billing cycle does not require a pricing scheme.
    /// 
    [JsonProperty(PropertyName = "pricing_scheme")]
    public PricingScheme PricingScheme { get; set; }

    /// 
    /// Gets or sets the billing cycle frequency.
    /// 
    [JsonProperty(PropertyName = "frequency")]
    public BillingCycleFrequency Frequency { get; set; }

    /// 
    /// Gets or sets the start date for the billing cycle, in YYYY-MM-DD. This field should be not be provided if the billing cycle starts at the time of checkout. When this field is not provided, the billing cycle amount will be included in any data validations confirming that the total provided by the merchant match the sum of individual items due at the time of checkout. Only one billing cycle (with sequence equal to 1) can have a no start date.
    /// 
    [JsonProperty(PropertyName = "start_date")]
    public string StartDate { get; set; }

    #endregion
}