Class: YaKassa::V3::PaymentStatusRequest

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

#body

Methods included from Concerns::Attributable

#attributable

Methods included from Concerns::Validatable

#errors, included, #valid?

Constructor Details

#initialize(payment_id) ⇒ PaymentStatusRequest

Returns a new instance of PaymentStatusRequest.



4
5
6
# File 'lib/ya_kassa/v3/payment_status_request.rb', line 4

def initialize(payment_id)
  @payment_id = payment_id
end

Instance Method Details

#createObject



8
9
10
# File 'lib/ya_kassa/v3/payment_status_request.rb', line 8

def create
  @response = api_client.request[:body]
end