Class: DocFox::KycApplication::UnarchiveService
- Inherits:
-
BaseService
- Object
- BaseService
- DocFox::KycApplication::UnarchiveService
- Defined in:
- lib/doc_fox/kyc_application/unarchive_service.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
Instance Method Summary collapse
-
#call ⇒ Object
Unarchive a KYC application.
-
#initialize(id:, reason:) ⇒ UnarchiveService
constructor
A new instance of UnarchiveService.
Constructor Details
#initialize(id:, reason:) ⇒ UnarchiveService
Returns a new instance of UnarchiveService.
8 9 10 11 |
# File 'lib/doc_fox/kyc_application/unarchive_service.rb', line 8 def initialize(id:, reason:) @id = id @reason = reason end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/doc_fox/kyc_application/unarchive_service.rb', line 4 def id @id end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
4 5 6 |
# File 'lib/doc_fox/kyc_application/unarchive_service.rb', line 4 def reason @reason end |
Instance Method Details
#call ⇒ Object
Unarchive a KYC application.
Examples
service = DocFox::KycApplication::UnarchiveService.call(id: '', reason: '')
service.success? # => true
service.errors # => #<ActiveModel::Errors []>
service.response # => #<Faraday::Response ...>
service.response.status # => 204
service.response.body # => ""
POST /api/v2/kyc_applications/:id/unarchive
29 30 31 |
# File 'lib/doc_fox/kyc_application/unarchive_service.rb', line 29 def call connection.post("kyc_applications/#{id}/unarchive", **params) end |