class

Stripe::TerminalReaderReaderResourceRefundPaymentAction

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

Represents a reader action to refund a payment

Constants

ERROR_MESSAGE_FOR_REASON = "invalid value for \"reason\", must be one of [duplicate, fraudulent, requested_by_customer]."
VALID_VALUES_FOR_REASON = String.static_array("duplicate", "fraudulent", "requested_by_customer")

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, amount : Int64 | Nil = nil, charge : Stripe::TerminalReaderReaderResourceRefundPaymentActionCharge | Nil = nil, metadata : Hash(String, String) | Nil = nil, payment_intent : Stripe::TerminalReaderReaderResourceRefundPaymentActionPaymentIntent | Nil = nil, reason : String | Nil = nil, refund : Stripe::TerminalReaderReaderResourceRefundPaymentActionRefund | Nil = nil, refund_application_fee : Bool | Nil = nil, refund_payment_config : Stripe::TerminalReaderReaderResourceRefundPaymentConfig | Nil = nil, reverse_transfer : Bool | 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

amount

The amount being refunded.

Source
amount=(new_value : Int64 | Nil)

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

Source
charge
Source

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

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
payment_intent
Source

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

Source
reason

The reason for the refund.

Source
reason=(new_value : String | Nil)

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

Source
refund
Source

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

Source
refund_application_fee

Boolean indicating whether the application fee should be refunded when refunding this charge. If a full charge refund is given, the full application fee will be refunded. Otherwise, the application fee will be refunded in an amount proportional to the amount of the charge refunded. An application fee can be refunded only by the application that created the charge.

Source
refund_application_fee=(new_value : Bool | Nil)

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

Source
refund_payment_config
Source
refund_payment_config=(new_value : Stripe::TerminalReaderReaderResourceRefundPaymentConfig | Nil)

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

Source
reverse_transfer

Boolean indicating whether the transfer should be reversed when refunding this charge. The transfer will be reversed proportionally to the amount being refunded (either the entire or partial amount). A transfer can be reversed only by the application that created the charge.

Source
reverse_transfer=(new_value : Bool | Nil)

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