class

Stripe::Capability

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

This is an object representing a capability for a Stripe account. Related guide: Account capabilities

Constants

ERROR_MESSAGE_FOR_OBJECT = "invalid value for \"object\", must be one of [capability]."
ERROR_MESSAGE_FOR_STATUS = "invalid value for \"status\", must be one of [active, disabled, inactive, pending, unrequested]."
MAX_LENGTH_FOR_ID = 5000
VALID_VALUES_FOR_OBJECT = String.static_array("capability")
VALID_VALUES_FOR_STATUS = String.static_array("active", "disabled", "inactive", "pending", "unrequested")

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, account : Stripe::CapabilityAccount | Nil = nil, id : String | Nil = nil, object : String | Nil = nil, requested : Bool | Nil = nil, requested_at : Int64 | Nil = nil, status : String | Nil = nil, future_requirements : Stripe::AccountCapabilityFutureRequirements | Nil = nil, requirements : Stripe::AccountCapabilityRequirements | 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

account
Source
account=(new_value : Stripe::CapabilityAccount | Nil)

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

Source
future_requirements
Source
future_requirements=(new_value : Stripe::AccountCapabilityFutureRequirements | Nil)

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

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
object

String representing the object's type. Objects of the same type share the same value.

Source
object=(new_value : String | Nil)

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

Source
requested

Whether the capability has been requested.

Source
requested=(new_value : Bool | Nil)

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

Source
requested_at

Time at which the capability was requested. Measured in seconds since the Unix epoch.

Source
requested_at=(new_value : Int64 | Nil)

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

Source
requirements
Source
requirements=(new_value : Stripe::AccountCapabilityRequirements | Nil)

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

Source
status

The status of the capability. Can be active, inactive, pending, or unrequested.

Source
status=(new_value : String | Nil)

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