Class: Ibanity::Xs2a::TransactionDeleteRequest

Inherits:
BaseResource
  • Object
show all
Defined in:
lib/ibanity/api/xs2a/transaction_delete_request.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_for_application(idempotency_key: nil, **attributes) ⇒ Object



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

def self.create_for_application(idempotency_key: nil, **attributes)
  path = Ibanity.xs2a_api_schema["transactionDeleteRequests"]
  uri = Ibanity.client.build_uri(path)
  create_by_uri(uri: uri, resource_type: "transactionDeleteRequest", attributes: attributes, idempotency_key: idempotency_key)
end

.create_for_customer(idempotency_key: nil, customer_access_token:, **attributes) ⇒ Object



10
11
12
13
14
# File 'lib/ibanity/api/xs2a/transaction_delete_request.rb', line 10

def self.create_for_customer(idempotency_key: nil, customer_access_token:, **attributes)
  path = Ibanity.xs2a_api_schema["customer"]["transactionDeleteRequests"]
  uri = Ibanity.client.build_uri(path)
  create_by_uri(uri: uri, resource_type: "transactionDeleteRequest", attributes: attributes, idempotency_key: idempotency_key, customer_access_token: customer_access_token)
end

.create_for_financial_institution_and_account(idempotency_key: nil, financial_institution_id:, account_id:, customer_access_token:, **attributes) ⇒ Object



16
17
18
19
20
21
22
# File 'lib/ibanity/api/xs2a/transaction_delete_request.rb', line 16

def self.(idempotency_key: nil, financial_institution_id:, account_id:, customer_access_token:, **attributes)
  path = Ibanity.xs2a_api_schema["customer"]["financialInstitution"]["account"]["transactionDeleteRequests"]
              .sub("{financialInstitutionId}", financial_institution_id)
              .sub("{accountId}", )
  uri = Ibanity.client.build_uri(path)
  create_by_uri(uri: uri, resource_type: "transactionDeleteRequest", attributes: attributes, idempotency_key: idempotency_key, customer_access_token: customer_access_token)
end