Class: Vpago::PayoutProfiles::Payway::PayoutProfileRequestUpdater
- Inherits:
-
BasePayoutProfileRequest
- Object
- BasePayoutProfileRequest
- Vpago::PayoutProfiles::Payway::PayoutProfileRequestUpdater
- Defined in:
- app/services/vpago/payout_profiles/payway/payout_profile_request_updater.rb
Instance Attribute Summary
Attributes inherited from BasePayoutProfileRequest
#base_url, #error_messages, #profile
Instance Method Summary collapse
- #call ⇒ Object
-
#request_path ⇒ Object
override.
Methods inherited from BasePayoutProfileRequest
#connection, #initialize, #request_to_payway
Constructor Details
This class inherits a constructor from Vpago::PayoutProfiles::Payway::BasePayoutProfileRequest
Instance Method Details
#call ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'app/services/vpago/payout_profiles/payway/payout_profile_request_updater.rb', line 10 def call json_response = request_to_payway return false if .any? code = json_response['status']['code'] if code == '00' profile.verify!(json_response['data']) else profile.reset_verification! << json_response['status'] end .empty? end |
#request_path ⇒ Object
override
6 7 8 |
# File 'app/services/vpago/payout_profiles/payway/payout_profile_request_updater.rb', line 6 def request_path 'api/merchant-portal/merchant-access/whitelist-account/update-whitelist-status' end |