Skip to content

Commit b787af2

Browse files
false[adyen-sdk-automation] automated change (#258)
1 parent f25a004 commit b787af2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lib/adyen/services/checkout/donations_api.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ def initialize(client, version = DEFAULT_VERSION)
77
super(client, version, 'Checkout')
88
end
99

10+
def donation_campaigns(request, headers: {})
11+
endpoint = '/donationCampaigns'.gsub(/{.+?}/, '%s')
12+
endpoint = endpoint.gsub(%r{^/}, '')
13+
endpoint = format(endpoint)
14+
15+
action = { method: 'post', url: endpoint }
16+
@client.call_adyen_api(@service, action, request, headers, @version)
17+
end
18+
1019
def donations(request, headers: {})
1120
endpoint = '/donations'.gsub(/{.+?}/, '%s')
1221
endpoint = endpoint.gsub(%r{^/}, '')

0 commit comments

Comments
 (0)