class

Stripe::InlineProductParams

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

Constants

MAX_LENGTH_FOR_ID = 5000
MAX_LENGTH_FOR_NAME = 5000
MAX_LENGTH_FOR_STATEMENT_DESCRIPTOR = 22
MAX_LENGTH_FOR_TAX_CODE = 5000
MAX_LENGTH_FOR_UNIT_LABEL = 12

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, name : String | Nil = nil, active : Bool | Nil = nil, id : String | Nil = nil, metadata : Hash(String, String) | Nil = nil, statement_descriptor : String | Nil = nil, tax_code : String | Nil = nil, unit_label : String | 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

active

Whether the product is currently available for purchase. Defaults to true.

Source
active=(new_value : Bool | Nil)

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

id

The identifier for the product. Must be unique. If not provided, an identifier will be randomly generated.

Source
id=(new_value : String | Nil)

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

The product's name, meant to be displayable to the customer.

Source
name=(new_value : String | Nil)

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

Source
statement_descriptor

An arbitrary string to be displayed on your customer's credit card or bank statement. While most banks display this information consistently, some may display it incorrectly or not at all. This may be up to 22 characters. The statement description may not include <, >, \\, \", ' characters, and will appear on your customer's statement in capital letters. Non-ASCII characters are automatically stripped.

Source
statement_descriptor=(new_value : String | Nil)

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

Source
tax_code

A tax code ID.

Source
tax_code=(new_value : String | Nil)

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

Source
unit_label

A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal.

Source
unit_label=(new_value : String | Nil)

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