class

Stripe::PaymentLinksResourceSubscriptionData

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

Constants

MAX_LENGTH_FOR_DESCRIPTION = 5000

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, description : String | Nil = nil, invoice_settings : Stripe::PaymentLinksResourceSubscriptionDataInvoiceSettings | Nil = nil, metadata : Hash(String, String) | Nil = nil, trial_period_days : Int64 | Nil = nil, trial_settings : Stripe::PaymentLinksResourceSubscriptionDataTrialSettings | 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
hash(hasher)

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

invoice_settings
Source

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

Source
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

Integer representing the number of trial period days before the customer is charged for the first time.

Source
trial_period_days=(new_value : Int64 | Nil)

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

Source
trial_settings
Source

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