Class: YaKassa::V3::RefundRequest

Inherits:
BaseRequest show all
Defined in:
lib/ya_kassa/v3/refund_request.rb

Constant Summary

Constants included from Concerns::Validatable

Concerns::Validatable::VALIDATORS

Instance Attribute Summary

Attributes inherited from BaseRequest

#response

Instance Method Summary collapse

Methods inherited from BaseRequest

#create, #initialize

Methods included from Concerns::Attributable

#attributable

Methods included from Concerns::Validatable

#errors, included, #valid?

Constructor Details

This class inherits a constructor from YaKassa::V3::BaseRequest

Instance Method Details

#bodyObject



12
13
14
15
16
17
18
19
20
# File 'lib/ya_kassa/v3/refund_request.rb', line 12

def body
  {
    payment_id: payment_id,
    amount: {
      value: amount_value,
      currency: amount_currency
    }
  }
end