class

Stripe::SubscriptionDataCreateParams

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

Constants

MAX_LENGTH_FOR_DESCRIPTION = 500

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, description : String | Nil = nil, effective_date : Stripe::SubscriptionDataCreateParamsEffectiveDate | Nil = nil, metadata : Hash(String, String) | Nil = nil, trial_period_days : Stripe::SubscriptionDataCreateParamsTrialPeriodDays | 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

description

The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.

Source
description=(new_value : String | Nil)

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

Source
effective_date
Source
effective_date=(new_value : Stripe::SubscriptionDataCreateParamsEffectiveDate | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] effective_date 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
metadata
Source
metadata=(new_value : Hash(String, String) | Nil)

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

Source
trial_period_days
Source
trial_period_days=(new_value : Stripe::SubscriptionDataCreateParamsTrialPeriodDays | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] trial_period_days 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