PayPalBillingCycle

data class PayPalBillingCycle @JvmOverloads constructor(val isTrial: Boolean, val numberOfExecutions: Int, var interval: PayPalBillingInterval? = null, var intervalCount: Int? = null, var sequence: Int? = null, var startDate: String? = null, var pricing: PayPalBillingPricing? = null) : Parcelable

PayPal recurring billing cycle details.

Constructors

Link copied to clipboard
constructor(isTrial: Boolean, numberOfExecutions: Int, interval: PayPalBillingInterval? = null, intervalCount: Int? = null, sequence: Int? = null, startDate: String? = null, pricing: PayPalBillingPricing? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The number of intervals after which a subscriber is charged or billed.

Link copied to clipboard

The number of times this billing cycle gets executed. For example, if the intervalCount is PayPalBillingInterval.DAY with an intervalCount of 2, the subscription is billed once every two days. Maximum values PayPalBillingInterval.DAY -> 365, PayPalBillingInterval.WEEK -> 52, PayPalBillingInterval.MONTH -> 12, PayPalBillingInterval.YEAR -> 1.

Link copied to clipboard

The tenure type of the billing cycle. In case of a plan having trial cycle, only 2 trial cycles are allowed per plan.

Link copied to clipboard

The number of times this billing cycle gets executed. Trial billing cycles can only be executed a finite number of times (value between 1 and 999). Regular billing cycles can be executed infinite times (value of 0) or a finite number of times (value between 1 and 999).

Link copied to clipboard

The active pricing scheme for this billing cycle. Required if isTrial is false. Optional if isTrial is true.

Link copied to clipboard

The sequence of the billing cycle. Used to identify unique billing cycles. For example, sequence 1 could be a 3 month trial period, and sequence 2 could be a longer term full rater cycle. Max value 100. All billing cycles should have unique sequence values.

Link copied to clipboard

The date and time when the billing cycle starts, in Internet date and time format YYYY-MM-DD. If not provided the billing cycle starts at the time of checkout. If provided and the merchant wants the billing cycle to start at the time of checkout, provide the current time. Otherwise the startDate can be in future.

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)