adyen-ruby-api-library 9.0.0 → 9.1.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: e8b08de6a807cdb9b167fbcceda1c0faee1877a74019598143937c601fdb8761
4
- data.tar.gz: 06b6bf8881d4f769691782f6bdae19ce6141b1f6d921178e0d0b10b332739e3a
3
+ metadata.gz: 5a19405ed4decf65ccbb07223e8b69e56bd0bc5c0b03673159334d7bd7a47cb2
4
+ data.tar.gz: 51db3e77404a7ce0b91dd9c78aa00472e839d378cc2e3bbdcff0325443327c4c
5
5
  SHA512:
6
- metadata.gz: c49ff13c0d95d1e2cc9a0efca40aad05a5ea1cfaca2b582069fdff3aab7d91c963e8ceeaa8162f1aa3fff3b2078b93ba59a3bac1fbbf8a74793544ac8e7ca622
7
- data.tar.gz: ef19a8c76e01f6b34c8976c472ec336e3cc30e90a8decd480daea4f7517867b1307a4a0bf169e115ddd6ec483ebe6aff1d6e9449419042bbf9d9114d6e0a8b2b
6
+ metadata.gz: a7b3119d610f63ab83ae68994e6cdcf1c6411f4a511d4f0ed7361a8542bc55b0a29d127d05d8f160eab148e7eaafb556dc5f08a63be235c39bc3bc95944b0f92
7
+ data.tar.gz: 73becdd9922b5a91bd995cdbb3231566a0deb1e0c0aaa15940eee19f9c043a9004900dac865fda4ff2f9da6079e2fc3d557ddd976cfed6c3e5a8142da6c4edb4
@@ -12,7 +12,7 @@ jobs:
12
12
  github:
13
13
  permissions:
14
14
  contents: write
15
- uses: Adyen/release-automation-action/.github/workflows/reusable-github-release.yml@v1.1.1
15
+ uses: Adyen/release-automation-action/.github/workflows/reusable-github-release.yml@v2.0.0
16
16
  with:
17
17
  release-title: Adyen Ruby API Library
18
18
  develop-branch: main
data/VERSION CHANGED
@@ -1,2 +1,2 @@
1
- 9.0.0
1
+ 9.1.0
2
2
 
@@ -34,15 +34,6 @@ module Adyen
34
34
  @client.call_adyen_api(@service, action, {}, headers, @version)
35
35
  end
36
36
 
37
- def get_all_payment_instruments_for_balance_account(id, headers: {}, query_params: {})
38
- endpoint = '/balanceAccounts/{id}/paymentInstruments'.gsub(/{.+?}/, '%s')
39
- endpoint = endpoint.gsub(%r{^/}, '')
40
- endpoint = format(endpoint, id)
41
- endpoint += create_query_string(query_params)
42
- action = { method: 'get', url: endpoint }
43
- @client.call_adyen_api(@service, action, {}, headers, @version)
44
- end
45
-
46
37
  def get_all_sweeps_for_balance_account(balance_account_id, headers: {}, query_params: {})
47
38
  endpoint = '/balanceAccounts/{balanceAccountId}/sweeps'.gsub(/{.+?}/, '%s')
48
39
  endpoint = endpoint.gsub(%r{^/}, '')
@@ -61,6 +52,15 @@ module Adyen
61
52
  @client.call_adyen_api(@service, action, {}, headers, @version)
62
53
  end
63
54
 
55
+ def get_payment_instruments_linked_to_balance_account(id, headers: {}, query_params: {})
56
+ endpoint = '/balanceAccounts/{id}/paymentInstruments'.gsub(/{.+?}/, '%s')
57
+ endpoint = endpoint.gsub(%r{^/}, '')
58
+ endpoint = format(endpoint, id)
59
+ endpoint += create_query_string(query_params)
60
+ action = { method: 'get', url: endpoint }
61
+ @client.call_adyen_api(@service, action, {}, headers, @version)
62
+ end
63
+
64
64
  def get_sweep(balance_account_id, sweep_id, headers: {})
65
65
  endpoint = '/balanceAccounts/{balanceAccountId}/sweeps/{sweepId}'.gsub(/{.+?}/, '%s')
66
66
  endpoint = endpoint.gsub(%r{^/}, '')
@@ -0,0 +1,29 @@
1
+ require_relative '../service'
2
+ module Adyen
3
+ class CardOrdersApi < Service
4
+ attr_accessor :service, :version
5
+
6
+ def initialize(client, version = DEFAULT_VERSION)
7
+ super(client, version, 'BalancePlatform')
8
+ end
9
+
10
+ def get_card_order_items(id, headers: {}, query_params: {})
11
+ endpoint = '/cardorders/{id}/items'.gsub(/{.+?}/, '%s')
12
+ endpoint = endpoint.gsub(%r{^/}, '')
13
+ endpoint = format(endpoint, 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_card_orders(headers: {}, query_params: {})
20
+ endpoint = '/cardorders'.gsub(/{.+?}/, '%s')
21
+ endpoint = endpoint.gsub(%r{^/}, '')
22
+ endpoint = format(endpoint)
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
+ end
29
+ end
@@ -0,0 +1,38 @@
1
+ require_relative '../service'
2
+ module Adyen
3
+ class ManageCardPINApi < Service
4
+ attr_accessor :service, :version
5
+
6
+ def initialize(client, version = DEFAULT_VERSION)
7
+ super(client, version, 'BalancePlatform')
8
+ end
9
+
10
+ def change_card_pin(request, headers: {})
11
+ endpoint = '/pins/change'.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
+ def public_key(headers: {}, query_params: {})
20
+ endpoint = '/publicKey'.gsub(/{.+?}/, '%s')
21
+ endpoint = endpoint.gsub(%r{^/}, '')
22
+ endpoint = format(endpoint)
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
+ def reveal_card_pin(request, headers: {})
29
+ endpoint = '/pins/reveal'.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
+
37
+ end
38
+ end
@@ -52,6 +52,15 @@ module Adyen
52
52
  @client.call_adyen_api(@service, action, {}, headers, @version)
53
53
  end
54
54
 
55
+ def reveal_data_of_payment_instrument(request, headers: {})
56
+ endpoint = '/paymentInstruments/reveal'.gsub(/{.+?}/, '%s')
57
+ endpoint = endpoint.gsub(%r{^/}, '')
58
+ endpoint = format(endpoint)
59
+
60
+ action = { method: 'post', url: endpoint }
61
+ @client.call_adyen_api(@service, action, request, headers, @version)
62
+ end
63
+
55
64
  def update_payment_instrument(request, id, headers: {})
56
65
  endpoint = '/paymentInstruments/{id}'.gsub(/{.+?}/, '%s')
57
66
  endpoint = endpoint.gsub(%r{^/}, '')
@@ -1,8 +1,10 @@
1
1
  require_relative 'balancePlatform/account_holders_api'
2
2
  require_relative 'balancePlatform/balance_accounts_api'
3
3
  require_relative 'balancePlatform/bank_account_validation_api'
4
+ require_relative 'balancePlatform/card_orders_api'
4
5
  require_relative 'balancePlatform/grant_accounts_api'
5
6
  require_relative 'balancePlatform/grant_offers_api'
7
+ require_relative 'balancePlatform/manage_card_pin_api'
6
8
  require_relative 'balancePlatform/network_tokens_api'
7
9
  require_relative 'balancePlatform/payment_instrument_groups_api'
8
10
  require_relative 'balancePlatform/payment_instruments_api'
@@ -33,6 +35,10 @@ module Adyen
33
35
  @bank_account_validation_api ||= Adyen::BankAccountValidationApi.new(@client, @version)
34
36
  end
35
37
 
38
+ def card_orders_api
39
+ @card_orders_api ||= Adyen::CardOrdersApi.new(@client, @version)
40
+ end
41
+
36
42
  def grant_accounts_api
37
43
  @grant_accounts_api ||= Adyen::GrantAccountsApi.new(@client, @version)
38
44
  end
@@ -41,6 +47,10 @@ module Adyen
41
47
  @grant_offers_api ||= Adyen::GrantOffersApi.new(@client, @version)
42
48
  end
43
49
 
50
+ def manage_card_pin_api
51
+ @manage_card_pin_api ||= Adyen::ManageCardPINApi.new(@client, @version)
52
+ end
53
+
44
54
  def network_tokens_api
45
55
  @network_tokens_api ||= Adyen::NetworkTokensApi.new(@client, @version)
46
56
  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 = '9.0.0'.freeze
3
+ VERSION = '9.1.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: 9.0.0
4
+ version: 9.1.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-01-15 00:00:00.000000000 Z
11
+ date: 2024-02-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -87,7 +87,6 @@ files:
87
87
  - ".github/workflows/release.yml"
88
88
  - ".github/workflows/ruby.yml"
89
89
  - ".github/workflows/rubygems_release.yml"
90
- - ".github/workflows/services.yml"
91
90
  - ".gitignore"
92
91
  - ".rubocop.yml"
93
92
  - CODE_OF_CONDUCT.md
@@ -125,8 +124,10 @@ files:
125
124
  - lib/adyen/services/balancePlatform/account_holders_api.rb
126
125
  - lib/adyen/services/balancePlatform/balance_accounts_api.rb
127
126
  - lib/adyen/services/balancePlatform/bank_account_validation_api.rb
127
+ - lib/adyen/services/balancePlatform/card_orders_api.rb
128
128
  - lib/adyen/services/balancePlatform/grant_accounts_api.rb
129
129
  - lib/adyen/services/balancePlatform/grant_offers_api.rb
130
+ - lib/adyen/services/balancePlatform/manage_card_pin_api.rb
130
131
  - lib/adyen/services/balancePlatform/network_tokens_api.rb
131
132
  - lib/adyen/services/balancePlatform/payment_instrument_groups_api.rb
132
133
  - lib/adyen/services/balancePlatform/payment_instruments_api.rb
@@ -1,28 +0,0 @@
1
- name: Ruby Library Services Generation
2
-
3
- on: [ workflow_dispatch ]
4
-
5
- jobs:
6
- generate:
7
- runs-on: ubuntu-latest
8
- name: Generate Services
9
- steps:
10
- - uses: actions/checkout@v4
11
- - run: make allServices
12
- - name: Set PR variables
13
- id: vars
14
- run: |
15
- echo ::set-output name=pr_title::"Update services"
16
- echo ::set-output name=pr_body::"OpenAPI spec or templates produced new services on $(date +%d-%m-%Y) \
17
- by [commit](https://github.com/Adyen/adyen-openapi/commit/$(git rev-parse HEAD))."
18
- - name: Create Pull Request
19
- uses: peter-evans/create-pull-request@v5
20
- with:
21
- token: ${{ secrets.ADYEN_AUTOMATION_BOT_ACCESS_TOKEN }}
22
- committer: ${{ secrets.ADYEN_AUTOMATION_BOT_EMAIL }}
23
- author: ${{ secrets.ADYEN_AUTOMATION_BOT_EMAIL }}
24
- base: main
25
- branch: automation/services
26
- title: ${{ steps.vars.outputs.pr_title }}
27
- body: ${{ steps.vars.outputs.pr_body }}
28
- add-paths: lib/adyen/services