Class: YaKassa::V3::PaymentStatusRequest
- Inherits:
-
BaseRequest
- Object
- BaseRequest
- YaKassa::V3::PaymentStatusRequest
- 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
Instance Method Summary collapse
- #create ⇒ Object
-
#initialize(payment_id) ⇒ PaymentStatusRequest
constructor
A new instance of PaymentStatusRequest.
Methods inherited from BaseRequest
Methods included from Concerns::Attributable
Methods included from Concerns::Validatable
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
#create ⇒ Object
8 9 10 |
# File 'lib/ya_kassa/v3/payment_status_request.rb', line 8 def create @response = api_client.request[:body] end |