Class: Ibanity::Xs2a::BatchSynchronization

Inherits:
BaseResource
  • Object
show all
Defined in:
lib/ibanity/api/xs2a/batch_synchronization.rb

Class Method Summary collapse

Methods inherited from BaseResource

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

Constructor Details

This class inherits a constructor from Ibanity::BaseResource

Class Method Details

.create(idempotency_key: nil, **attributes) ⇒ Object



4
5
6
7
8
# File 'lib/ibanity/api/xs2a/batch_synchronization.rb', line 4

def self.create(idempotency_key: nil, **attributes)
  path = Ibanity.xs2a_api_schema["batchSynchronizations"].gsub("{batchSynchronizationId}", "")
  uri = Ibanity.client.build_uri(path)
  create_by_uri(uri: uri, resource_type: "batchSynchronization", attributes: attributes, idempotency_key: idempotency_key)
end