Skip to content

Commit 3ef2f4e

Browse files
Remove unused EBICS BTF XML debugging helpers.
Drop the request XML wrappers that only called to_xml and had no callers. Co-authored-by: Thibaud Guillaume-Gentil <thibaud@thibaud.gg>
1 parent 0f7ff2f commit 3ef2f4e

1 file changed

Lines changed: 0 additions & 24 deletions

File tree

‎app/models/billing/ebics/btf_client.rb‎

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,6 @@ def download_request_xml(operation, from:, to:, **overrides)
200200
download_request(operation, from: from, to: to, **overrides).to_xml
201201
end
202202

203-
def upload_request_xml(operation, document:, **overrides)
204-
upload_request(operation, document: document, **overrides).to_xml
205-
end
206-
207203
def key_change_request_xml(target_key_store:, order_type: "HCS", **overrides)
208204
key_change_request(target_key_store: target_key_store, order_type: order_type, **overrides).to_xml
209205
end
@@ -212,17 +208,6 @@ def key_change_order_data_xml(target_key_store:, order_type: "HCS")
212208
Btf::KeyChangeOrderData.new(client: target_key_store, order_type: order_type).to_xml
213209
end
214210

215-
def initialization_order_data_xml(order_type, **overrides)
216-
Btf::InitializationOrderData.new(
217-
client: client,
218-
order_type: order_type,
219-
**setup_order_data_options.merge(overrides)).to_xml
220-
end
221-
222-
def initialization_request_xml(order_type, **overrides)
223-
initialization_request(order_type, **overrides).to_xml
224-
end
225-
226211
def submit_initialization_order(order_type)
227212
request = initialization_request(order_type)
228213
response = post_request(request)
@@ -234,10 +219,6 @@ def submit_initialization_order(order_type)
234219
order_id: response.order_id.presence)
235220
end
236221

237-
def hpb_request_xml(**overrides)
238-
hpb_request(**overrides).to_xml
239-
end
240-
241222
def fetch_bank_public_keys
242223
responses = order_responses(hpb_request)
243224
order_data = Btf::Payload.new(responses: responses).order_data
@@ -276,11 +257,6 @@ def key_change(target_key_store:, order_type: "HCS")
276257
order_id: transfer_response.order_id.presence || initialisation_response.order_id)
277258
end
278259

279-
def upload_transfer_request_xml(transaction_id:, document:, **overrides)
280-
payload = Btf::UploadPayload.new(client: client, document: document)
281-
upload_transfer_request(transaction_id, payload, **overrides).to_xml
282-
end
283-
284260
def download_request(operation, from:, to:, **overrides)
285261
ensure_btf_download!(operation)
286262

0 commit comments

Comments
 (0)