adyen-ruby-api-library 9.5.2 → 9.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/adyen/services/paymentsApp.rb +57 -0
- data/lib/adyen/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4b74cc08f99b7c28119241aa0ac360b9d9f6f7fbfb81555d16bd945bc544fbd
|
4
|
+
data.tar.gz: 11fb923af53ea8573e2ded33e334778d264df64745f7db7cebf97111bc013f98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8bebee1ec9d2e18432ea895a86a580266d4d9f0117a83cc75b563f43a5bfba029dfd4f177ae98538085311245f152fe93e500bc8ff2a61dba8766b1d595cf0f
|
7
|
+
data.tar.gz: 6288f958c1cacbfdaedf2a8bd7017d6b1a7020735930c319b3a6d79950999c2f3b64cca3c8d2bd8afa6799571bb89a0a0743100fff2c598a613989aa46dc7052
|
data/VERSION
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
9.
|
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
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.
|
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-
|
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
|