Class: Ibanity::Consent::ProcessingOperation
- Inherits:
-
BaseResource
- Object
- OpenStruct
- BaseResource
- Ibanity::Consent::ProcessingOperation
show all
- Defined in:
- lib/ibanity/api/consent/processing_operation.rb
Class Method Summary
collapse
create_by_uri, create_file_by_uri, destroy_by_uri, find_by_uri, find_file_by_uri, find_raw_by_uri, #initialize, list_by_uri, #reload!, update_by_uri
Class Method Details
.create(consent_id:, idempotency_key: nil, **attributes) ⇒ Object
4
5
6
7
8
9
10
|
# File 'lib/ibanity/api/consent/processing_operation.rb', line 4
def self.create(consent_id:, idempotency_key: nil, **attributes)
path = Ibanity.consent_api_schema["consent"]["processingOperations"]
.gsub("{consentId}", consent_id)
.gsub("{processingOperationId}", "")
uri = Ibanity.client.build_uri(path)
create_by_uri(uri: uri, resource_type: "processingOperation", attributes: attributes, idempotency_key: idempotency_key)
end
|
.find(id:, consent_id:) ⇒ Object
20
21
22
23
24
25
26
|
# File 'lib/ibanity/api/consent/processing_operation.rb', line 20
def self.find(id:, consent_id:)
path = Ibanity.sandbox_api_schema["consent"]["processingOperations"]
.gsub("{consentId}", consent_id)
.gsub("{processingOperationId}", id)
uri = Ibanity.client.build_uri(path)
find_by_uri(uri: uri)
end
|
.list(consent_id:, **query_params) ⇒ Object
12
13
14
15
16
17
18
|
# File 'lib/ibanity/api/consent/processing_operation.rb', line 12
def self.list(consent_id:, **query_params)
path = Ibanity.consent_api_schema["consent"]["processingOperations"]
.gsub("{consentId}", consent_id)
.gsub("{processingOperationId}", "")
uri = Ibanity.client.build_uri(path)
list_by_uri(uri: uri, query_params: query_params)
end
|
.revoke(id:, consent_id:, idempotency_key: nil) ⇒ Object
28
29
30
31
32
33
34
|
# File 'lib/ibanity/api/consent/processing_operation.rb', line 28
def self.revoke(id:, consent_id:, idempotency_key: nil)
path = Ibanity.consent_api_schema["consent"]["processingOperation"]["revocations"]
.gsub("{consentId}", consent_id)
.gsub("{processingOperationId}", id)
uri = Ibanity.client.build_uri(path)
create_by_uri(uri: uri, resource_type: "processingOperation", attributes: [], idempotency_key: idempotency_key)
end
|