Skip to content

Commit

Permalink
false[adyen-sdk-automation] automated change
Browse files Browse the repository at this point in the history
  • Loading branch information
AdyenAutomationBot committed Aug 5, 2024
1 parent 840e786 commit 731a827
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/adyen/services/checkout/donations_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ def initialize(client, version = DEFAULT_VERSION)
super(client, version, 'Checkout')
end

def donation_campaigns(request, headers: {})
endpoint = '/donationCampaigns'.gsub(/{.+?}/, '%s')
endpoint = endpoint.gsub(%r{^/}, '')
endpoint = format(endpoint)

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

def donations(request, headers: {})
endpoint = '/donations'.gsub(/{.+?}/, '%s')
endpoint = endpoint.gsub(%r{^/}, '')
Expand Down

0 comments on commit 731a827

Please sign in to comment.