adyen-ruby-api-library 9.1.0 → 9.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: 5a19405ed4decf65ccbb07223e8b69e56bd0bc5c0b03673159334d7bd7a47cb2
4
- data.tar.gz: 51db3e77404a7ce0b91dd9c78aa00472e839d378cc2e3bbdcff0325443327c4c
3
+ metadata.gz: 9cd62465ff95ef75e5317280942c3bd350905eab491cd76dcfbaf2dea524cd64
4
+ data.tar.gz: 3f214db363d20a5bc580004f5c9c08a97f0f497553cae40ba4b07219e660e16e
5
5
  SHA512:
6
- metadata.gz: a7b3119d610f63ab83ae68994e6cdcf1c6411f4a511d4f0ed7361a8542bc55b0a29d127d05d8f160eab148e7eaafb556dc5f08a63be235c39bc3bc95944b0f92
7
- data.tar.gz: 73becdd9922b5a91bd995cdbb3231566a0deb1e0c0aaa15940eee19f9c043a9004900dac865fda4ff2f9da6079e2fc3d557ddd976cfed6c3e5a8142da6c4edb4
6
+ metadata.gz: 75cf83d9f687ef32587040d42f215cf993971215c51d9917e26ed55bdbe32c31dc38f9fb06896c794d918100af4dfda4103985c3110203ca36ff19eb7cda624a
7
+ data.tar.gz: 6034d7d10d73f9c0f443e233f49e0bd700ac16eb72105452976bd53235f44284ef750b8e24e75f6af20e696ce8b9ca90fa77be6f31c351a4014e3ff0f10b701b
@@ -1,4 +1,4 @@
1
- name: Prepare release
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
- candidate:
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.1.1
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
@@ -88,7 +88,7 @@ response = adyen.checkout.payments_api.payments({
88
88
 
89
89
  - Change API Version
90
90
  ~~~~ruby
91
- adyen.checkout.version = 68
91
+ adyen.checkout.version = 69
92
92
  ~~~~
93
93
 
94
94
  ### Example integration
data/VERSION CHANGED
@@ -1,2 +1,2 @@
1
- 9.1.0
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
@@ -1,4 +1,4 @@
1
1
  module Adyen
2
2
  NAME = 'adyen-ruby-api-library'.freeze
3
- VERSION = '9.1.0'.freeze
3
+ VERSION = '9.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: 9.1.0
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-29 00:00:00.000000000 Z
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 }}