adyen-ruby-api-library 7.1.0 → 7.2.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/codeql.yml +1 -1
- data/.github/workflows/ruby.yml +1 -1
- data/.github/workflows/rubygems_release.yml +1 -1
- data/.github/workflows/services.yml +1 -1
- data/lib/adyen/services/balancePlatform/transfer_routes_api.rb +20 -0
- data/lib/adyen/services/balancePlatform.rb +5 -0
- data/lib/adyen/services/management/android_files_company_level_api.rb +38 -0
- data/lib/adyen/services/management/terminal_actions_company_level_api.rb +0 -18
- data/lib/adyen/services/management.rb +5 -0
- data/lib/adyen/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc8273f0430a4f263253bff4a97356616958dbabea34e1bb46de537ee8ddc244
|
4
|
+
data.tar.gz: 3e538becadaa36c48aa4c1af68543601be2deca4dba36ec144792e68104a65a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55ee3ccc92e7615e05329cbc12439aa6862b277db43bd4d33a9b97d9baa22843d31b8e816cc970a4636db7698487baa5f423b37de25c3bae2363c18e4dedbc6e
|
7
|
+
data.tar.gz: 9c8d918b1790baf72aa4da31df12f87d6f90b97ed806d181dc32051d6f36f7a555d59bfc1e0def1fa3299f87d8494ae2d855a7a7871ddbfc485c43e7afb8eddc
|
data/.github/workflows/ruby.yml
CHANGED
@@ -0,0 +1,20 @@
|
|
1
|
+
require_relative '../service'
|
2
|
+
module Adyen
|
3
|
+
class TransferRoutesApi < Service
|
4
|
+
attr_accessor :service, :version
|
5
|
+
|
6
|
+
def initialize(client, version = DEFAULT_VERSION)
|
7
|
+
super(client, version, 'BalancePlatform')
|
8
|
+
end
|
9
|
+
|
10
|
+
def calculate_transfer_routes(request, headers: {})
|
11
|
+
endpoint = '/transferRoutes/calculate'.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
|
+
|
19
|
+
end
|
20
|
+
end
|
@@ -8,6 +8,7 @@ require_relative 'balancePlatform/payment_instrument_groups_api'
|
|
8
8
|
require_relative 'balancePlatform/payment_instruments_api'
|
9
9
|
require_relative 'balancePlatform/platform_api'
|
10
10
|
require_relative 'balancePlatform/transaction_rules_api'
|
11
|
+
require_relative 'balancePlatform/transfer_routes_api'
|
11
12
|
|
12
13
|
module Adyen
|
13
14
|
class BalancePlatform
|
@@ -60,5 +61,9 @@ module Adyen
|
|
60
61
|
@transaction_rules_api ||= Adyen::TransactionRulesApi.new(@client, @version)
|
61
62
|
end
|
62
63
|
|
64
|
+
def transfer_routes_api
|
65
|
+
@transfer_routes_api ||= Adyen::TransferRoutesApi.new(@client, @version)
|
66
|
+
end
|
67
|
+
|
63
68
|
end
|
64
69
|
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
require_relative '../service'
|
2
|
+
module Adyen
|
3
|
+
class AndroidFilesCompanyLevelApi < Service
|
4
|
+
attr_accessor :service, :version
|
5
|
+
|
6
|
+
def initialize(client, version = DEFAULT_VERSION)
|
7
|
+
super(client, version, 'Management')
|
8
|
+
end
|
9
|
+
|
10
|
+
def list_android_apps(company_id, headers: {}, query_params: {})
|
11
|
+
endpoint = '/companies/{companyId}/androidApps'.gsub(/{.+?}/, '%s')
|
12
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
13
|
+
endpoint = format(endpoint, company_id)
|
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_android_app(company_id, id, headers: {})
|
20
|
+
endpoint = '/companies/{companyId}/androidApps/{id}'.gsub(/{.+?}/, '%s')
|
21
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
22
|
+
endpoint = format(endpoint, company_id, id)
|
23
|
+
|
24
|
+
action = { method: 'get', url: endpoint }
|
25
|
+
@client.call_adyen_api(@service, action, {}, headers, @version)
|
26
|
+
end
|
27
|
+
|
28
|
+
def list_android_certificates(company_id, headers: {}, query_params: {})
|
29
|
+
endpoint = '/companies/{companyId}/androidCertificates'.gsub(/{.+?}/, '%s')
|
30
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
31
|
+
endpoint = format(endpoint, company_id)
|
32
|
+
endpoint += create_query_string(query_params)
|
33
|
+
action = { method: 'get', url: endpoint }
|
34
|
+
@client.call_adyen_api(@service, action, {}, headers, @version)
|
35
|
+
end
|
36
|
+
|
37
|
+
end
|
38
|
+
end
|
@@ -7,24 +7,6 @@ module Adyen
|
|
7
7
|
super(client, version, 'Management')
|
8
8
|
end
|
9
9
|
|
10
|
-
def list_android_apps(company_id, headers: {}, query_params: {})
|
11
|
-
endpoint = '/companies/{companyId}/androidApps'.gsub(/{.+?}/, '%s')
|
12
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
13
|
-
endpoint = format(endpoint, company_id)
|
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 list_android_certificates(company_id, headers: {}, query_params: {})
|
20
|
-
endpoint = '/companies/{companyId}/androidCertificates'.gsub(/{.+?}/, '%s')
|
21
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
22
|
-
endpoint = format(endpoint, company_id)
|
23
|
-
endpoint += create_query_string(query_params)
|
24
|
-
action = { method: 'get', url: endpoint }
|
25
|
-
@client.call_adyen_api(@service, action, {}, headers, @version)
|
26
|
-
end
|
27
|
-
|
28
10
|
def list_terminal_actions(company_id, headers: {}, query_params: {})
|
29
11
|
endpoint = '/companies/{companyId}/terminalActions'.gsub(/{.+?}/, '%s')
|
30
12
|
endpoint = endpoint.gsub(%r{^/}, '')
|
@@ -7,6 +7,7 @@ require_relative 'management/account_merchant_level_api'
|
|
7
7
|
require_relative 'management/account_store_level_api'
|
8
8
|
require_relative 'management/allowed_origins_company_level_api'
|
9
9
|
require_relative 'management/allowed_origins_merchant_level_api'
|
10
|
+
require_relative 'management/android_files_company_level_api'
|
10
11
|
require_relative 'management/client_key_company_level_api'
|
11
12
|
require_relative 'management/client_key_merchant_level_api'
|
12
13
|
require_relative 'management/my_api_credential_api'
|
@@ -74,6 +75,10 @@ module Adyen
|
|
74
75
|
@allowed_origins_merchant_level_api ||= Adyen::AllowedOriginsMerchantLevelApi.new(@client, @version)
|
75
76
|
end
|
76
77
|
|
78
|
+
def android_files_company_level_api
|
79
|
+
@android_files_company_level_api ||= Adyen::AndroidFilesCompanyLevelApi.new(@client, @version)
|
80
|
+
end
|
81
|
+
|
77
82
|
def client_key_company_level_api
|
78
83
|
@client_key_company_level_api ||= Adyen::ClientKeyCompanyLevelApi.new(@client, @version)
|
79
84
|
end
|
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: 7.
|
4
|
+
version: 7.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: 2023-
|
11
|
+
date: 2023-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -131,6 +131,7 @@ files:
|
|
131
131
|
- lib/adyen/services/balancePlatform/payment_instruments_api.rb
|
132
132
|
- lib/adyen/services/balancePlatform/platform_api.rb
|
133
133
|
- lib/adyen/services/balancePlatform/transaction_rules_api.rb
|
134
|
+
- lib/adyen/services/balancePlatform/transfer_routes_api.rb
|
134
135
|
- lib/adyen/services/binLookup.rb
|
135
136
|
- lib/adyen/services/checkout.rb
|
136
137
|
- lib/adyen/services/checkout/classic_checkout_sdk_api.rb
|
@@ -156,6 +157,7 @@ files:
|
|
156
157
|
- lib/adyen/services/management/account_store_level_api.rb
|
157
158
|
- lib/adyen/services/management/allowed_origins_company_level_api.rb
|
158
159
|
- lib/adyen/services/management/allowed_origins_merchant_level_api.rb
|
160
|
+
- lib/adyen/services/management/android_files_company_level_api.rb
|
159
161
|
- lib/adyen/services/management/api_credentials_company_level_api.rb
|
160
162
|
- lib/adyen/services/management/api_credentials_merchant_level_api.rb
|
161
163
|
- lib/adyen/services/management/api_key_company_level_api.rb
|