Class: Increase::Resources::ProofOfAuthorizationRequests

Inherits:
Object
  • Object
show all
Defined in:
lib/increase/resources/proof_of_authorization_requests.rb

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ ProofOfAuthorizationRequests

Returns a new instance of ProofOfAuthorizationRequests.



6
7
8
# File 'lib/increase/resources/proof_of_authorization_requests.rb', line 6

def initialize(client:)
  @client = client
end

Instance Method Details

#list(params = {}, opts = {}) ⇒ Increase::Page<Increase::Models::ProofOfAuthorizationRequest>

List Proof of Authorization Requests

Parameters:

  • params (Hash) (defaults to: {})

    Attributes to send in this request.

  • opts (Hash|RequestOptions) (defaults to: {})

    Options to specify HTTP behaviour for this request.

Options Hash (params):

  • :created_at (CreatedAt)
  • :cursor (String)

    Return the page of entries after this one.

  • :limit (Integer)

    Limit the size of the list that is returned. The default (and maximum) is 100 objects.

Returns:



35
36
37
38
39
40
41
42
43
# File 'lib/increase/resources/proof_of_authorization_requests.rb', line 35

def list(params = {}, opts = {})
  req = {}
  req[:method] = :get
  req[:path] = "/proof_of_authorization_requests"
  req[:query] = params
  req[:page] = Increase::Page
  req[:model] = Increase::Models::ProofOfAuthorizationRequest
  @client.request(req, opts)
end

#retrieve(proof_of_authorization_request_id, opts = {}) ⇒ Increase::Models::ProofOfAuthorizationRequest

Retrieve a Proof of Authorization Request

Parameters:

  • proof_of_authorization_request_id (String)

    The identifier of the Proof of Authorization Request.

  • opts (Hash|RequestOptions) (defaults to: {})

    Options to specify HTTP behaviour for this request.

Returns:



16
17
18
19
20
21
22
# File 'lib/increase/resources/proof_of_authorization_requests.rb', line 16

def retrieve(proof_of_authorization_request_id, opts = {})
  req = {}
  req[:method] = :get
  req[:path] = "/proof_of_authorization_requests/#{proof_of_authorization_request_id}"
  req[:model] = Increase::Models::ProofOfAuthorizationRequest
  @client.request(req, opts)
end