class

Stripe::TransactionLineItemReversal

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

Constants

MAX_LENGTH_FOR_ORIGINAL_LINE_ITEM = 5000
MAX_LENGTH_FOR_REFERENCE = 500

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, amount : Int64 | Nil = nil, amount_tax : Int64 | Nil = nil, original_line_item : String | Nil = nil, reference : String | Nil = nil, metadata : Hash(String, String) | Nil = nil, quantity : Int64 | 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 to reverse, in the smallest currency unit in negative.

Source
amount=(new_value : Int64 | Nil)

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

Source
amount_tax

The amount of tax to reverse, in the smallest currency unit in negative.

Source
amount_tax=(new_value : Int64 | Nil)

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

The id of the line item to reverse in the original transaction.

Source
original_line_item=(new_value : String | Nil)

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

Source
quantity

The quantity reversed. Appears in tax exports, but does not affect the amount of tax reversed.

Source
quantity=(new_value : Int64 | Nil)

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

Source
reference

A custom identifier for this line item in the reversal transaction, such as 'L1-refund'.

Source
reference=(new_value : String | Nil)

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