Skip to content

Commit a718446

Browse files
[disputes] Automated update from Adyen/adyen-openapi@3550ecd
1 parent 60ccdbd commit a718446

2 files changed

Lines changed: 13 additions & 15 deletions

File tree

lib/adyen/services/disputes/disputes_api.rb

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,49 +14,39 @@ def initialize(client, version = DEFAULT_VERSION)
1414

1515
# Accept a dispute
1616
def accept_dispute(request, headers: {})
17-
endpoint = '/acceptDispute'.gsub(/{.+?}/, '%s')
18-
endpoint = endpoint.gsub(%r{^/}, '')
19-
endpoint = format(endpoint)
17+
endpoint = build_endpoint('/acceptDispute')
2018

2119
action = { method: 'post', url: endpoint }
2220
@client.call_adyen_api(@service, action, request, headers, @version)
2321
end
2422

2523
# Defend a dispute
2624
def defend_dispute(request, headers: {})
27-
endpoint = '/defendDispute'.gsub(/{.+?}/, '%s')
28-
endpoint = endpoint.gsub(%r{^/}, '')
29-
endpoint = format(endpoint)
25+
endpoint = build_endpoint('/defendDispute')
3026

3127
action = { method: 'post', url: endpoint }
3228
@client.call_adyen_api(@service, action, request, headers, @version)
3329
end
3430

3531
# Delete a defense document
3632
def delete_dispute_defense_document(request, headers: {})
37-
endpoint = '/deleteDisputeDefenseDocument'.gsub(/{.+?}/, '%s')
38-
endpoint = endpoint.gsub(%r{^/}, '')
39-
endpoint = format(endpoint)
33+
endpoint = build_endpoint('/deleteDisputeDefenseDocument')
4034

4135
action = { method: 'post', url: endpoint }
4236
@client.call_adyen_api(@service, action, request, headers, @version)
4337
end
4438

4539
# Get applicable defense reasons
4640
def retrieve_applicable_defense_reasons(request, headers: {})
47-
endpoint = '/retrieveApplicableDefenseReasons'.gsub(/{.+?}/, '%s')
48-
endpoint = endpoint.gsub(%r{^/}, '')
49-
endpoint = format(endpoint)
41+
endpoint = build_endpoint('/retrieveApplicableDefenseReasons')
5042

5143
action = { method: 'post', url: endpoint }
5244
@client.call_adyen_api(@service, action, request, headers, @version)
5345
end
5446

5547
# Supply a defense document
5648
def supply_defense_document(request, headers: {})
57-
endpoint = '/supplyDefenseDocument'.gsub(/{.+?}/, '%s')
58-
endpoint = endpoint.gsub(%r{^/}, '')
59-
endpoint = format(endpoint)
49+
endpoint = build_endpoint('/supplyDefenseDocument')
6050

6151
action = { method: 'post', url: endpoint }
6252
@client.call_adyen_api(@service, action, request, headers, @version)

sdk-generation-log/disputes.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"service": "disputes",
3+
"project": "ruby",
4+
"generatedAt": "2026-04-20T13:39:52Z",
5+
"openapiCommitSha": "3550ecd3f320efaad6bee55ffed5122cb9ba09d5",
6+
"automationCommitSha": "4ad0c0c7e87bc0e5994a9a3350a991d0691350bb",
7+
"libraryCommitSha": "60ccdbdbbb7069d54600a8a8cd19eea245661134"
8+
}

0 commit comments

Comments
 (0)