adyen-ruby-api-library 9.1.0 → 9.3.0
Sign up to get free protection for your applications and to get access to all the features.
- 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/management/android_files_company_level_api.rb +9 -0
- 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: ff449a394e4dd652d0efd6591ab71af8063e0177d13aae02e78c7bc3af7ddc4b
|
4
|
+
data.tar.gz: 707f7d2440f5fc78badd977b592b268e803733093c96d6884cf3a55367562faf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8106d7ea42e37fb28ff345794bae7211fbc1780fadce4964c7e73fcc7f2cca08bbc2b13ac68377715d44e050c1936f4e22b9fdf713a16932263eea88109fb1a3
|
7
|
+
data.tar.gz: b5cadf38c7088d82876cb7502b4dcdf78042accf5b6f7f8b6a420169856a98ea51f37fb8ac1d1a508a3beaaecc337d55645d802c19a85e1254360389e8727e7d
|
@@ -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.3.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
|
@@ -43,5 +43,14 @@ module Adyen
|
|
43
43
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
44
44
|
end
|
45
45
|
|
46
|
+
def upload_android_certificate(company_id, headers: {})
|
47
|
+
endpoint = '/companies/{companyId}/androidCertificates'.gsub(/{.+?}/, '%s')
|
48
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
49
|
+
endpoint = format(endpoint, company_id)
|
50
|
+
|
51
|
+
action = { method: 'post', url: endpoint }
|
52
|
+
@client.call_adyen_api(@service, action, {}, headers, @version)
|
53
|
+
end
|
54
|
+
|
46
55
|
end
|
47
56
|
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.3.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-
|
11
|
+
date: 2024-04-11 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 }}
|