Class: Moov::Models::Components::CreateRefund
- Inherits:
-
Object
- Object
- Moov::Models::Components::CreateRefund
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/createrefund.rb
Overview
Specifies a partial amount to refund.
Before v2026.10, this request body may be omitted. In v2026.10 and later, send an empty object to refund the full amount of the original transfer.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(amount: nil, capture_id: nil, amount_details: nil) ⇒ CreateRefund
constructor
A new instance of CreateRefund.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(amount: nil, capture_id: nil, amount_details: nil) ⇒ CreateRefund
Returns a new instance of CreateRefund.
25 26 27 28 29 |
# File 'lib/moov/models/components/createrefund.rb', line 25 def initialize(amount: nil, capture_id: nil, amount_details: nil) @amount = amount @capture_id = capture_id @amount_details = amount_details end |
Instance Method Details
#==(other) ⇒ Object
32 33 34 35 36 37 38 |
# File 'lib/moov/models/components/createrefund.rb', line 32 def ==(other) return false unless other.is_a? self.class return false unless @amount == other.amount return false unless @capture_id == other.capture_id return false unless @amount_details == other.amount_details true end |