class

Stripe::SubscriptionsResourcePendingUpdate

Inherits OpenApi::Json < OpenApi::Validatable < JSON::Serializable::Unmapped < JSON::Serializable < Reference < Object

Pending Updates store the changes pending from a previous update that will be applied to the Subscription upon successful payment.

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, billing_cycle_anchor : Int64 | Nil = nil, expires_at : Int64 | Nil = nil, subscription_items : Array(Stripe::SubscriptionItem) | Nil = nil, trial_end : Int64 | Nil = nil, trial_from_plan : Bool | Nil = nil)

Initializes the object @param [Hash] attributes Model attributes in the form of hash

Source

Instance methods

==(other : self)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

billing_cycle_anchor

If the update is applied, determines the date of the first full invoice, and, for plans with month or year intervals, the day of the month for subsequent invoices. The timestamp is in UTC format.

Source
billing_cycle_anchor=(new_value : Int64 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] billing_cycle_anchor Object to be assigned

Source
expires_at

The point after which the changes reflected by this update will be discarded and no longer applied.

Source
expires_at=(new_value : Int64 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] expires_at Object to be assigned

Source
hash(hasher)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

list_invalid_properties

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons

Source
subscription_items

List of subscription items, each with an attached plan, that will be set if the update is applied.

Source
subscription_items=(new_value : Array(Stripe::SubscriptionItem) | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] subscription_items Object to be assigned

Source
trial_end

Unix timestamp representing the end of the trial period the customer will get before being charged for the first time, if the update is applied.

Source
trial_end=(new_value : Int64 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] trial_end Object to be assigned

Source
trial_from_plan

Indicates if a plan's trial_period_days should be applied to the subscription. Setting trial_end per subscription is preferred, and this defaults to false. Setting this flag to true together with trial_end is not allowed. See Using trial periods on subscriptions to learn more.

Source
trial_from_plan=(new_value : Bool | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] trial_from_plan Object to be assigned

Source
valid?

Check to see if the all the properties in the model are valid @return true if the model is valid

Source