class

Stripe::SourceMandateNotification

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

Source mandate notifications should be created when a notification related to a source mandate must be sent to the payer. They will trigger a webhook or deliver an email to the customer.

Constants

ERROR_MESSAGE_FOR_OBJECT = "invalid value for \"object\", must be one of [source_mandate_notification]."
MAX_LENGTH_FOR__TYPE = 5000
MAX_LENGTH_FOR_ID = 5000
MAX_LENGTH_FOR_REASON = 5000
MAX_LENGTH_FOR_STATUS = 5000
VALID_VALUES_FOR_OBJECT = String.static_array("source_mandate_notification")

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, amount : Int64 | Nil = nil, created : Int64 | Nil = nil, id : String | Nil = nil, livemode : Bool | Nil = nil, object : String | Nil = nil, reason : String | Nil = nil, source : Stripe::Source | Nil = nil, status : String | Nil = nil, _type : String | Nil = nil, acss_debit : Stripe::SourceMandateNotificationAcssDebitData | Nil = nil, bacs_debit : Stripe::SourceMandateNotificationBacsDebitData | Nil = nil, sepa_debit : Stripe::SourceMandateNotificationSepaDebitData | 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 source this mandate notification is attached to. Should be the source type identifier code for the payment method, such as three_d_secure.

Source
_type=(new_value : String | Nil)

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

Source
acss_debit
Source
acss_debit=(new_value : Stripe::SourceMandateNotificationAcssDebitData | Nil)

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

Source
amount

A positive integer in the smallest currency unit (that is, 100 cents for $1.00, or 1 for ¥1, Japanese Yen being a zero-decimal currency) representing the amount associated with the mandate notification. The amount is expressed in the currency of the underlying source. Required if the notification type is debit_initiated.

Source
amount=(new_value : Int64 | Nil)

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

Source
bacs_debit
Source
bacs_debit=(new_value : Stripe::SourceMandateNotificationBacsDebitData | Nil)

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

Source
created

Time at which the object was created. Measured in seconds since the Unix epoch.

Source
created=(new_value : Int64 | Nil)

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

Unique identifier for the object.

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
livemode

Has the value true if the object exists in live mode or the value false if the object exists in test mode.

Source
livemode=(new_value : Bool | Nil)

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

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
reason

The reason of the mandate notification. Valid reasons are mandate_confirmed or debit_initiated.

Source
reason=(new_value : String | Nil)

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

Source
sepa_debit
Source
sepa_debit=(new_value : Stripe::SourceMandateNotificationSepaDebitData | Nil)

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

Source
source
Source
source=(new_value : Stripe::Source | Nil)

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

Source
status

The status of the mandate notification. Valid statuses are pending or submitted.

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