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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e77636d4dad0702e8816c00de1f5cf37ab3d1c841f73b2b20f5e256275458e53
4
- data.tar.gz: fc410bcae06fc7a846e1a72edc39d34f838e2253e59c9e315839c9c299723b55
3
+ metadata.gz: cc8273f0430a4f263253bff4a97356616958dbabea34e1bb46de537ee8ddc244
4
+ data.tar.gz: 3e538becadaa36c48aa4c1af68543601be2deca4dba36ec144792e68104a65a3
5
5
  SHA512:
6
- metadata.gz: 6c79bf2bfd30680ad73ac71f18416436bdfcfeb110260c3f78456aac857acafeb52f915be43fa2f26f9570c1a6846ed02751dd4b147b574ea4ed35d0e6ce7d8f
7
- data.tar.gz: 2848c7cba6583e4ed195c71eaf8e736832bf8b55e713d3f9001d71cea4d129471f1da92a3c5d59e88f3c8c592fd8854039c9f7350955f0361bc059422a7289fc
6
+ metadata.gz: 55ee3ccc92e7615e05329cbc12439aa6862b277db43bd4d33a9b97d9baa22843d31b8e816cc970a4636db7698487baa5f423b37de25c3bae2363c18e4dedbc6e
7
+ data.tar.gz: 9c8d918b1790baf72aa4da31df12f87d6f90b97ed806d181dc32051d6f36f7a555d59bfc1e0def1fa3299f87d8494ae2d855a7a7871ddbfc485c43e7afb8eddc
@@ -24,7 +24,7 @@ jobs:
24
24
 
25
25
  steps:
26
26
  - name: Checkout
27
- uses: actions/checkout@v3
27
+ uses: actions/checkout@v4
28
28
 
29
29
  - name: Initialize CodeQL
30
30
  uses: github/codeql-action/init@v2
@@ -12,7 +12,7 @@ jobs:
12
12
  ruby: [2.7, '3.0', 3.1, 3.2, head]
13
13
  runs-on: ${{ matrix.os }}
14
14
  steps:
15
- - uses: actions/checkout@v3
15
+ - uses: actions/checkout@v4
16
16
  - uses: ruby/setup-ruby@v1
17
17
  with:
18
18
  ruby-version: ${{ matrix.ruby }}
@@ -9,7 +9,7 @@ jobs:
9
9
  runs-on: ubuntu-latest
10
10
 
11
11
  steps:
12
- - uses: actions/checkout@v3
12
+ - uses: actions/checkout@v4
13
13
 
14
14
  - name: Release Gem on RubyGems
15
15
  if: contains(github.ref, 'refs/tags/v')
@@ -7,7 +7,7 @@ jobs:
7
7
  runs-on: ubuntu-latest
8
8
  name: Generate Services
9
9
  steps:
10
- - uses: actions/checkout@v3
10
+ - uses: actions/checkout@v4
11
11
  - run: make allServices
12
12
  - name: Set PR variables
13
13
  id: vars
@@ -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
@@ -1,4 +1,4 @@
1
1
  module Adyen
2
2
  NAME = 'adyen-ruby-api-library'.freeze
3
- VERSION = '7.1.0'.freeze
3
+ VERSION = '7.2.0'.freeze
4
4
  end
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.1.0
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-08-28 00:00:00.000000000 Z
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