Class: PersonaApi::PhoneCarrierVerificationsResource
- Inherits:
-
Resource
- Object
- Resource
- PersonaApi::PhoneCarrierVerificationsResource
show all
- Defined in:
- lib/persona_api/resources/phone_carrier_verifications.rb
Instance Attribute Summary
Attributes inherited from Resource
#client
Instance Method Summary
collapse
Methods inherited from Resource
#delete_request, #get_request, #handle_response, #initialize, #patch_request, #post_request, #put_request
Instance Method Details
#create(**attributes) ⇒ Object
3
4
5
6
7
|
# File 'lib/persona_api/resources/phone_carrier_verifications.rb', line 3
def create(**attributes)
PhoneCarrierVerification.new post_request("verification/database-phone-carriers", body: attributes).body.dig("data")
end
|
#retrieve(ver_id:) ⇒ Object
9
10
11
|
# File 'lib/persona_api/resources/phone_carrier_verifications.rb', line 9
def retrieve(ver_id:)
PhoneCarrierVerification.new get_request("verification/database-phone-carriers/#{ver_id}").body.dig("data")
end
|
#submit(ver_id:, **attributes) ⇒ Object
13
14
15
|
# File 'lib/persona_api/resources/phone_carrier_verifications.rb', line 13
def submit(ver_id:, **attributes)
PhoneCarrierVerification.new post_request("verification/database-phone-carriers/#{ver_id}/submit", body: attributes).body.dig("data")
end
|