class

Stripe::MandateAcceptanceParams

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

Constants

ERROR_MESSAGE_FOR__TYPE = "invalid value for \"_type\", must be one of [offline, online]."
ERROR_MESSAGE_FOR_STATUS = "invalid value for \"status\", must be one of [accepted, pending, refused, revoked]."
MAX_LENGTH_FOR__TYPE = 5000
MAX_LENGTH_FOR_STATUS = 5000
MAX_LENGTH_FOR_USER_AGENT = 5000
VALID_VALUES_FOR__TYPE = String.static_array("offline", "online")
VALID_VALUES_FOR_STATUS = String.static_array("accepted", "pending", "refused", "revoked")

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, status : String | Nil = nil, date : Int64 | Nil = nil, ip : String | Nil = nil, offline : Stripe::MandateOfflineAcceptanceParams | Nil = nil, online : Stripe::MandateOnlineAcceptanceParams | Nil = nil, _type : String | Nil = nil, user_agent : 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

_type

The type of acceptance information included with the mandate. Either online or offline

Source
_type=(new_value : String | Nil)

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

Source
date

The Unix timestamp (in seconds) when the mandate was accepted or refused by the customer.

Source
date=(new_value : Int64 | Nil)

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

ip

The IP address from which the mandate was accepted or refused by the customer.

Source
ip=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] ip 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
offline
Source
offline=(new_value : Stripe::MandateOfflineAcceptanceParams | Nil)

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

Source
online
Source
online=(new_value : Stripe::MandateOnlineAcceptanceParams | Nil)

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

Source
status

The status of the mandate acceptance. Either accepted (the mandate was accepted) or refused (the mandate was refused).

Source
status=(new_value : String | Nil)

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

Source
user_agent

The user agent of the browser from which the mandate was accepted or refused by the customer.

Source
user_agent=(new_value : String | Nil)

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