adyen-ruby-api-library 9.5.2 → 9.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a054be61723ec2cceb6ef73a691ac834b40a7b6d3809d7785faf8fb090affef0
4
- data.tar.gz: 84ca790f2c6f29eafbe1afc2a95a98444f112372398afec682b3a400c9f6f693
3
+ metadata.gz: a4b74cc08f99b7c28119241aa0ac360b9d9f6f7fbfb81555d16bd945bc544fbd
4
+ data.tar.gz: 11fb923af53ea8573e2ded33e334778d264df64745f7db7cebf97111bc013f98
5
5
  SHA512:
6
- metadata.gz: b5cfc550ed575bc005e88322fb093d63f3268f947da3d11753dcb1f6fc25173348cce194d861553a2bedf6638b7f79a774658e8e4969ce105212c74c23d6ab0c
7
- data.tar.gz: b0ca0d56f66a15bb9c11a9cae045fae699e87b061d386dbc8171f4e52b3d2e561222d03904bb3ae95c1623fb885ad7477836665dcb7e3ca426554134b6e375f7
6
+ metadata.gz: c8bebee1ec9d2e18432ea895a86a580266d4d9f0117a83cc75b563f43a5bfba029dfd4f177ae98538085311245f152fe93e500bc8ff2a61dba8766b1d595cf0f
7
+ data.tar.gz: 6288f958c1cacbfdaedf2a8bd7017d6b1a7020735930c319b3a6d79950999c2f3b64cca3c8d2bd8afa6799571bb89a0a0743100fff2c598a613989aa46dc7052
data/VERSION CHANGED
@@ -1,2 +1,2 @@
1
- 9.5.2
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.2'.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.2
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-18 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