adyen-ruby-api-library 9.1.0 → 9.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/release.yml +11 -4
- data/README.md +1 -1
- data/VERSION +1 -1
- data/lib/adyen/services/checkout/recurring_api.rb +9 -0
- data/lib/adyen/services/checkout/utility_api.rb +9 -0
- data/lib/adyen/services/legalEntityManagement/documents_api.rb +2 -2
- data/lib/adyen/services/transfers/transfers_api.rb +18 -0
- data/lib/adyen/version.rb +1 -1
- metadata +2 -3
- data/.github/workflows/gh_release.yml +0 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9cd62465ff95ef75e5317280942c3bd350905eab491cd76dcfbaf2dea524cd64
|
4
|
+
data.tar.gz: 3f214db363d20a5bc580004f5c9c08a97f0f497553cae40ba4b07219e660e16e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75cf83d9f687ef32587040d42f215cf993971215c51d9917e26ed55bdbe32c31dc38f9fb06896c794d918100af4dfda4103985c3110203ca36ff19eb7cda624a
|
7
|
+
data.tar.gz: 6034d7d10d73f9c0f443e233f49e0bd700ac16eb72105452976bd53235f44284ef750b8e24e75f6af20e696ce8b9ca90fa77be6f31c351a4014e3ff0f10b701b
|
@@ -1,4 +1,4 @@
|
|
1
|
-
name:
|
1
|
+
name: Release
|
2
2
|
|
3
3
|
on:
|
4
4
|
workflow_dispatch:
|
@@ -8,6 +8,12 @@ on:
|
|
8
8
|
type: boolean
|
9
9
|
default: false
|
10
10
|
description: "This release will be labeled as non-production ready"
|
11
|
+
github-release:
|
12
|
+
required: false
|
13
|
+
type: boolean
|
14
|
+
default: false
|
15
|
+
description: "Publish Github release for the current version"
|
16
|
+
# Monitor pull request events
|
11
17
|
pull_request:
|
12
18
|
types:
|
13
19
|
- closed
|
@@ -15,8 +21,7 @@ on:
|
|
15
21
|
- main
|
16
22
|
|
17
23
|
jobs:
|
18
|
-
|
19
|
-
if: github.event_name == 'workflow_dispatch' || (github.event.pull_request.merged && !startsWith(github.head_ref, 'promote/'))
|
24
|
+
release:
|
20
25
|
permissions:
|
21
26
|
contents: write
|
22
27
|
pull-requests: write
|
@@ -24,10 +29,12 @@ jobs:
|
|
24
29
|
steps:
|
25
30
|
- uses: actions/checkout@v4
|
26
31
|
- name: Prepare the next main release
|
27
|
-
uses: Adyen/release-automation-action@v1.
|
32
|
+
uses: Adyen/release-automation-action@v1.3.1
|
28
33
|
with:
|
29
34
|
token: ${{ secrets.ADYEN_AUTOMATION_BOT_ACCESS_TOKEN }}
|
30
35
|
develop-branch: main
|
31
36
|
version-files: lib/adyen/version.rb
|
37
|
+
release-title: Adyen Ruby API Library
|
32
38
|
pre-release: ${{ inputs.pre-release || false }}
|
39
|
+
github-release: ${{ inputs.github-release || false }}
|
33
40
|
separator: .pre.beta
|
data/README.md
CHANGED
data/VERSION
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
9.
|
1
|
+
9.2.0
|
2
2
|
|
@@ -25,5 +25,14 @@ module Adyen
|
|
25
25
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
26
26
|
end
|
27
27
|
|
28
|
+
def stored_payment_methods(request, headers: {})
|
29
|
+
endpoint = '/storedPaymentMethods'.gsub(/{.+?}/, '%s')
|
30
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
31
|
+
endpoint = format(endpoint)
|
32
|
+
|
33
|
+
action = { method: 'post', url: endpoint }
|
34
|
+
@client.call_adyen_api(@service, action, request, headers, @version)
|
35
|
+
end
|
36
|
+
|
28
37
|
end
|
29
38
|
end
|
@@ -25,5 +25,14 @@ module Adyen
|
|
25
25
|
@client.call_adyen_api(@service, action, request, headers, @version)
|
26
26
|
end
|
27
27
|
|
28
|
+
def updates_order_for_paypal_express_checkout(request, headers: {})
|
29
|
+
endpoint = '/paypal/updateOrder'.gsub(/{.+?}/, '%s')
|
30
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
31
|
+
endpoint = format(endpoint)
|
32
|
+
|
33
|
+
action = { method: 'post', url: endpoint }
|
34
|
+
@client.call_adyen_api(@service, action, request, headers, @version)
|
35
|
+
end
|
36
|
+
|
28
37
|
end
|
29
38
|
end
|
@@ -16,11 +16,11 @@ module Adyen
|
|
16
16
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
17
17
|
end
|
18
18
|
|
19
|
-
def get_document(id, headers: {})
|
19
|
+
def get_document(id, headers: {}, query_params: {})
|
20
20
|
endpoint = '/documents/{id}'.gsub(/{.+?}/, '%s')
|
21
21
|
endpoint = endpoint.gsub(%r{^/}, '')
|
22
22
|
endpoint = format(endpoint, id)
|
23
|
-
|
23
|
+
endpoint += create_query_string(query_params)
|
24
24
|
action = { method: 'get', url: endpoint }
|
25
25
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
26
26
|
end
|
@@ -7,6 +7,24 @@ module Adyen
|
|
7
7
|
super(client, version, 'Transfers')
|
8
8
|
end
|
9
9
|
|
10
|
+
def get_all_transfers(headers: {}, query_params: {})
|
11
|
+
endpoint = '/transfers'.gsub(/{.+?}/, '%s')
|
12
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
13
|
+
endpoint = format(endpoint)
|
14
|
+
endpoint += create_query_string(query_params)
|
15
|
+
action = { method: 'get', url: endpoint }
|
16
|
+
@client.call_adyen_api(@service, action, {}, headers, @version)
|
17
|
+
end
|
18
|
+
|
19
|
+
def get_transfer(id, headers: {})
|
20
|
+
endpoint = '/transfers/{id}'.gsub(/{.+?}/, '%s')
|
21
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
22
|
+
endpoint = format(endpoint, id)
|
23
|
+
|
24
|
+
action = { method: 'get', url: endpoint }
|
25
|
+
@client.call_adyen_api(@service, action, {}, headers, @version)
|
26
|
+
end
|
27
|
+
|
10
28
|
def return_transfer(request, transfer_id, headers: {})
|
11
29
|
endpoint = '/transfers/{transferId}/returns'.gsub(/{.+?}/, '%s')
|
12
30
|
endpoint = endpoint.gsub(%r{^/}, '')
|
data/lib/adyen/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: adyen-ruby-api-library
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 9.
|
4
|
+
version: 9.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adyen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-02
|
11
|
+
date: 2024-04-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -83,7 +83,6 @@ files:
|
|
83
83
|
- ".github/PULL_REQUEST_TEMPLATE.md"
|
84
84
|
- ".github/release.yml"
|
85
85
|
- ".github/workflows/codeql.yml"
|
86
|
-
- ".github/workflows/gh_release.yml"
|
87
86
|
- ".github/workflows/release.yml"
|
88
87
|
- ".github/workflows/ruby.yml"
|
89
88
|
- ".github/workflows/rubygems_release.yml"
|
@@ -1,20 +0,0 @@
|
|
1
|
-
name: Automatic Github release
|
2
|
-
|
3
|
-
on:
|
4
|
-
workflow_dispatch:
|
5
|
-
push:
|
6
|
-
branches:
|
7
|
-
- main
|
8
|
-
paths:
|
9
|
-
- VERSION
|
10
|
-
|
11
|
-
jobs:
|
12
|
-
github:
|
13
|
-
permissions:
|
14
|
-
contents: write
|
15
|
-
uses: Adyen/release-automation-action/.github/workflows/reusable-github-release.yml@v2.0.0
|
16
|
-
with:
|
17
|
-
release-title: Adyen Ruby API Library
|
18
|
-
develop-branch: main
|
19
|
-
secrets:
|
20
|
-
token: ${{ secrets.ADYEN_AUTOMATION_BOT_ACCESS_TOKEN }}
|