Class: YaKassa::V3::PaymentCaptureRequest

Inherits:
BaseRequest
  • Object
show all
Defined in:
lib/ya_kassa/v3/payment_capture_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



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

def body
  res = nil
  if amount_value && amount_currency
    res = {
      amount: {
        value: amount_value,
        currency: amount_currency
      }
    }
  end
  res
end