adyen-ruby-api-library 9.5.1 → 9.6.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: af1994e49d9fa9313d9c84dc83632faf93529fa98893d88feb814605f15fb42e
4
- data.tar.gz: 1d386322dfc11e2a32e6cd6f1f5d9d40225b73043b3f97775a422804cef02218
3
+ metadata.gz: a4b74cc08f99b7c28119241aa0ac360b9d9f6f7fbfb81555d16bd945bc544fbd
4
+ data.tar.gz: 11fb923af53ea8573e2ded33e334778d264df64745f7db7cebf97111bc013f98
5
5
  SHA512:
6
- metadata.gz: 3924efc133f62cebe660db6043113790d0f3524253bb357aa6e15850a2792aa57a19b360152e3e1c801fd4db335c05f312904c7fa4dcade5d9f3ad07e4d60e5f
7
- data.tar.gz: 70793376c78920520c98db9fc408d2a56f35dfb098376c3e05b68e59f78650c20d752fb818021254de0f3fb46b119183632eb26c8813c40f8d91e651441d54eb
6
+ metadata.gz: c8bebee1ec9d2e18432ea895a86a580266d4d9f0117a83cc75b563f43a5bfba029dfd4f177ae98538085311245f152fe93e500bc8ff2a61dba8766b1d595cf0f
7
+ data.tar.gz: 6288f958c1cacbfdaedf2a8bd7017d6b1a7020735930c319b3a6d79950999c2f3b64cca3c8d2bd8afa6799571bb89a0a0743100fff2c598a613989aa46dc7052
@@ -12,8 +12,15 @@ jobs:
12
12
  repo-token: ${{ secrets.GITHUB_TOKEN }}
13
13
  stale-issue-message: 'This issue has been automatically marked as stale due to inactivity and will be closed in 7 days if no further activity occurs.'
14
14
  close-issue-message: 'This issue was closed due to inactivity. Please reopen if you still encounter this problem or have more information to add.'
15
- days-before-stale: 14
16
- days-before-close: 7
15
+ stale-pr-message: "This PR hasn't received any updates in a year and will be automatically closed in 30 days. Feel free to re-open if you plan to continue working on this pull request"
16
+ days-before-stale: -1
17
+ days-before-close: -1
18
+ days-before-issue-stale: 14
19
+ days-before-issue-close: 7
17
20
  stale-issue-label: 'stale'
18
21
  exempt-issue-labels: 'do not stale, needs response'
19
-
22
+ days-before-pr-stale: 365
23
+ days-before-pr-close: 30
24
+ exempt-pr-labels: 'do not stale'
25
+ only-pr-labels: awaiting-changes,blocked,work-in-progress,awaiting-upstream
26
+ remove-pr-stale-when-updated: true
data/VERSION CHANGED
@@ -1,2 +1,2 @@
1
- 9.5.1
1
+ 9.6.0
2
2
 
@@ -0,0 +1,57 @@
1
+ require_relative './service'
2
+ module Adyen
3
+ class PaymentsApp < Service
4
+ attr_accessor :service, :version
5
+
6
+ DEFAULT_VERSION = 1
7
+ def initialize(client, version = DEFAULT_VERSION)
8
+ super(client, version, 'PaymentsApp')
9
+ end
10
+
11
+ def generate_payments_app_boarding_token_for_merchant(request, merchant_id, boarding_token_request, headers: {})
12
+ endpoint = '/merchants/{merchantId}/generatePaymentsAppBoardingToken'.gsub(/{.+?}/, '%s')
13
+ endpoint = endpoint.gsub(%r{^/}, '')
14
+ endpoint = format(endpoint,_merchant_id)
15
+
16
+ action = { method: 'post', url: endpoint }
17
+ @client.call_adyen_api(@service, action, request, headers, @version)
18
+ end
19
+
20
+ def generate_payments_app_boarding_token_for_store(request, merchant_id, store_id, boarding_token_request, headers: {})
21
+ endpoint = '/merchants/{merchantId}/stores/{storeId}/generatePaymentsAppBoardingToken'.gsub(/{.+?}/, '%s')
22
+ endpoint = endpoint.gsub(%r{^/}, '')
23
+ endpoint = format(endpoint,_merchant_id,_store_id)
24
+
25
+ action = { method: 'post', url: endpoint }
26
+ @client.call_adyen_api(@service, action, request, headers, @version)
27
+ end
28
+
29
+ def list_payments_app_for_merchant(merchant_id, headers: {}, query_params: {})
30
+ endpoint = '/merchants/{merchantId}/paymentsApps'.gsub(/{.+?}/, '%s')
31
+ endpoint = endpoint.gsub(%r{^/}, '')
32
+ endpoint = format(endpoint,_merchant_id)
33
+ endpoint += create_query_string(query_params)
34
+ action = { method: 'get', url: endpoint }
35
+ @client.call_adyen_api(@service, action, {}, headers, @version)
36
+ end
37
+
38
+ def list_payments_app_for_store(merchant_id, store_id, headers: {}, query_params: {})
39
+ endpoint = '/merchants/{merchantId}/stores/{storeId}/paymentsApps'.gsub(/{.+?}/, '%s')
40
+ endpoint = endpoint.gsub(%r{^/}, '')
41
+ endpoint = format(endpoint,_merchant_id,_store_id)
42
+ endpoint += create_query_string(query_params)
43
+ action = { method: 'get', url: endpoint }
44
+ @client.call_adyen_api(@service, action, {}, headers, @version)
45
+ end
46
+
47
+ def revoke_payments_app(merchant_id, installation_id, headers: {})
48
+ endpoint = '/merchants/{merchantId}/paymentsApps/{installationId}/revoke'.gsub(/{.+?}/, '%s')
49
+ endpoint = endpoint.gsub(%r{^/}, '')
50
+ endpoint = format(endpoint,_merchant_id,_installation_id)
51
+
52
+ action = { method: 'post', url: endpoint }
53
+ @client.call_adyen_api(@service, action, {}, headers, @version)
54
+ end
55
+
56
+ end
57
+ 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.5.1'.freeze
3
+ VERSION = '9.6.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.5.1
4
+ version: 9.6.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-07-04 00:00:00.000000000 Z
11
+ date: 2024-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -188,6 +188,7 @@ files:
188
188
  - lib/adyen/services/management/webhooks_merchant_level_api.rb
189
189
  - lib/adyen/services/marketpay.rb
190
190
  - lib/adyen/services/payment.rb
191
+ - lib/adyen/services/paymentsApp.rb
191
192
  - lib/adyen/services/payout.rb
192
193
  - lib/adyen/services/payout/initialization_api.rb
193
194
  - lib/adyen/services/payout/instant_payouts_api.rb