Class: Telnyx::Resources::Enterprises::Reputation::Loa
- Inherits:
-
Object
- Object
- Telnyx::Resources::Enterprises::Reputation::Loa
- Defined in:
- lib/telnyx/resources/enterprises/reputation/loa.rb,
sig/telnyx/resources/enterprises/reputation/loa.rbs
Overview
Phone-number reputation monitoring (spam-score lookup and tracking).
Instance Method Summary collapse
-
#initialize(client:) ⇒ Loa
constructor
private
A new instance of Loa.
-
#render(enterprise_id, agent: nil, signature: nil, request_options: {}) ⇒ StringIO
Some parameter documentations has been truncated, see Models::Enterprises::Reputation::LoaRenderParams for more details.
-
#update(enterprise_id, loa_document_id:, request_options: {}) ⇒ Telnyx::Models::Enterprises::EnterpriseReputationPublicWrapped
Some parameter documentations has been truncated, see Models::Enterprises::Reputation::LoaUpdateParams for more details.
Constructor Details
#initialize(client:) ⇒ Loa
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Loa.
77 78 79 |
# File 'lib/telnyx/resources/enterprises/reputation/loa.rb', line 77 def initialize(client:) @client = client end |
Instance Method Details
#render(enterprise_id, agent: nil, signature: nil, request_options: {}) ⇒ StringIO
Some parameter documentations has been truncated, see Models::Enterprises::Reputation::LoaRenderParams for more details.
Render the LOA for this enterprise as a PDF. The enterprise identity, address,
and authorized-representative contact are taken from the enterprise record; the
optional agent block is supplied only when a third-party partner manages the
numbers. The response is the PDF itself (unsigned unless a signature is
provided). Sign it and upload it to the Telnyx Documents API
(POST /v2/documents, see https://developers.telnyx.com/api/documents) to
obtain the loa_document_id required by POST .../reputation.
62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/telnyx/resources/enterprises/reputation/loa.rb', line 62 def render(enterprise_id, params = {}) parsed, = Telnyx::Enterprises::Reputation::LoaRenderParams.dump_request(params) @client.request( method: :post, path: ["enterprises/%1$s/reputation/loa", enterprise_id], headers: {"accept" => "application/pdf"}, body: parsed, model: StringIO, options: ) end |
#update(enterprise_id, loa_document_id:, request_options: {}) ⇒ Telnyx::Models::Enterprises::EnterpriseReputationPublicWrapped
Some parameter documentations has been truncated, see Models::Enterprises::Reputation::LoaUpdateParams for more details.
Point the enterprise's reputation settings at a new signed LOA document. This
resets LOA approval to pending; the new document must be approved before
additional phone numbers can be added.
27 28 29 30 31 32 33 34 35 36 |
# File 'lib/telnyx/resources/enterprises/reputation/loa.rb', line 27 def update(enterprise_id, params) parsed, = Telnyx::Enterprises::Reputation::LoaUpdateParams.dump_request(params) @client.request( method: :patch, path: ["enterprises/%1$s/reputation/loa", enterprise_id], body: parsed, model: Telnyx::Enterprises::EnterpriseReputationPublicWrapped, options: ) end |