adyen-ruby-api-library 8.0.0.pre.beta.1 → 8.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/codeql.yml +2 -2
- data/.github/workflows/gh_release.yml +1 -1
- data/.github/workflows/release.yml +3 -2
- data/.github/workflows/rubygems_release.yml +1 -4
- data/CONTRIBUTING.md +1 -1
- data/README.md +1 -1
- data/VERSION +1 -1
- data/lib/adyen/services/balancePlatform/account_holders_api.rb +9 -9
- data/lib/adyen/services/balancePlatform/balance_accounts_api.rb +32 -32
- data/lib/adyen/services/balancePlatform/payment_instrument_groups_api.rb +10 -10
- data/lib/adyen/services/balancePlatform/payment_instruments_api.rb +17 -17
- data/lib/adyen/services/balancePlatform/platform_api.rb +6 -6
- data/lib/adyen/services/balancePlatform/transaction_rules_api.rb +9 -9
- data/lib/adyen/services/checkout/modifications_api.rb +9 -9
- data/lib/adyen/services/checkout/orders_api.rb +6 -6
- data/lib/adyen/services/checkout/payment_links_api.rb +8 -8
- data/lib/adyen/services/checkout/payments_api.rb +9 -9
- data/lib/adyen/services/dataProtection.rb +1 -1
- data/lib/adyen/services/disputes.rb +0 -9
- data/lib/adyen/services/legalEntityManagement/business_lines_api.rb +9 -9
- data/lib/adyen/services/legalEntityManagement/hosted_onboarding_api.rb +10 -10
- data/lib/adyen/services/legalEntityManagement/legal_entities_api.rb +27 -18
- data/lib/adyen/services/legalEntityManagement/pci_questionnaires_api.rb +8 -8
- data/lib/adyen/services/legalEntityManagement/terms_of_service_api.rb +18 -18
- data/lib/adyen/services/legalEntityManagement/transfer_instruments_api.rb +9 -9
- data/lib/adyen/services/management/account_company_level_api.rb +8 -8
- data/lib/adyen/services/management/account_merchant_level_api.rb +8 -8
- data/lib/adyen/services/management/account_store_level_api.rb +26 -26
- data/lib/adyen/services/management/allowed_origins_company_level_api.rb +12 -12
- data/lib/adyen/services/management/allowed_origins_merchant_level_api.rb +12 -12
- data/lib/adyen/services/management/android_files_company_level_api.rb +8 -8
- data/lib/adyen/services/management/api_credentials_company_level_api.rb +13 -13
- data/lib/adyen/services/management/api_credentials_merchant_level_api.rb +13 -13
- data/lib/adyen/services/management/my_api_credential_api.rb +22 -22
- data/lib/adyen/services/management/payment_methods_merchant_level_api.rb +15 -15
- data/lib/adyen/services/management/payout_settings_merchant_level_api.rb +15 -15
- data/lib/adyen/services/management/split_configuration_merchant_level_api.rb +30 -30
- data/lib/adyen/services/management/terminal_actions_company_level_api.rb +8 -8
- data/lib/adyen/services/management/terminal_orders_company_level_api.rb +40 -40
- data/lib/adyen/services/management/terminal_orders_merchant_level_api.rb +40 -40
- data/lib/adyen/services/management/terminal_settings_store_level_api.rb +16 -16
- data/lib/adyen/services/management/users_company_level_api.rb +13 -13
- data/lib/adyen/services/management/users_merchant_level_api.rb +13 -13
- data/lib/adyen/services/management/webhooks_company_level_api.rb +19 -19
- data/lib/adyen/services/management/webhooks_merchant_level_api.rb +19 -19
- data/lib/adyen/services/transfers/transfers_api.rb +6 -6
- data/lib/adyen/version.rb +1 -1
- metadata +4 -4
@@ -7,12 +7,21 @@ module Adyen
|
|
7
7
|
super(client, version, 'Management')
|
8
8
|
end
|
9
9
|
|
10
|
-
def
|
10
|
+
def generate_hmac_key(company_id, webhook_id, headers: {})
|
11
|
+
endpoint = '/companies/{companyId}/webhooks/{webhookId}/generateHmac'.gsub(/{.+?}/, '%s')
|
12
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
13
|
+
endpoint = format(endpoint, company_id, webhook_id)
|
14
|
+
|
15
|
+
action = { method: 'post', url: endpoint }
|
16
|
+
@client.call_adyen_api(@service, action, {}, headers, @version)
|
17
|
+
end
|
18
|
+
|
19
|
+
def get_webhook(company_id, webhook_id, headers: {})
|
11
20
|
endpoint = '/companies/{companyId}/webhooks/{webhookId}'.gsub(/{.+?}/, '%s')
|
12
21
|
endpoint = endpoint.gsub(%r{^/}, '')
|
13
22
|
endpoint = format(endpoint, company_id, webhook_id)
|
14
23
|
|
15
|
-
action = { method: '
|
24
|
+
action = { method: 'get', url: endpoint }
|
16
25
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
17
26
|
end
|
18
27
|
|
@@ -25,24 +34,15 @@ module Adyen
|
|
25
34
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
26
35
|
end
|
27
36
|
|
28
|
-
def
|
37
|
+
def remove_webhook(company_id, webhook_id, headers: {})
|
29
38
|
endpoint = '/companies/{companyId}/webhooks/{webhookId}'.gsub(/{.+?}/, '%s')
|
30
39
|
endpoint = endpoint.gsub(%r{^/}, '')
|
31
40
|
endpoint = format(endpoint, company_id, webhook_id)
|
32
41
|
|
33
|
-
action = { method: '
|
42
|
+
action = { method: 'delete', url: endpoint }
|
34
43
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
35
44
|
end
|
36
45
|
|
37
|
-
def update_webhook(request, company_id, webhook_id, headers: {})
|
38
|
-
endpoint = '/companies/{companyId}/webhooks/{webhookId}'.gsub(/{.+?}/, '%s')
|
39
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
40
|
-
endpoint = format(endpoint, company_id, webhook_id)
|
41
|
-
|
42
|
-
action = { method: 'patch', url: endpoint }
|
43
|
-
@client.call_adyen_api(@service, action, request, headers, @version)
|
44
|
-
end
|
45
|
-
|
46
46
|
def set_up_webhook(request, company_id, headers: {})
|
47
47
|
endpoint = '/companies/{companyId}/webhooks'.gsub(/{.+?}/, '%s')
|
48
48
|
endpoint = endpoint.gsub(%r{^/}, '')
|
@@ -52,21 +52,21 @@ module Adyen
|
|
52
52
|
@client.call_adyen_api(@service, action, request, headers, @version)
|
53
53
|
end
|
54
54
|
|
55
|
-
def
|
56
|
-
endpoint = '/companies/{companyId}/webhooks/{webhookId}/
|
55
|
+
def test_webhook(request, company_id, webhook_id, headers: {})
|
56
|
+
endpoint = '/companies/{companyId}/webhooks/{webhookId}/test'.gsub(/{.+?}/, '%s')
|
57
57
|
endpoint = endpoint.gsub(%r{^/}, '')
|
58
58
|
endpoint = format(endpoint, company_id, webhook_id)
|
59
59
|
|
60
60
|
action = { method: 'post', url: endpoint }
|
61
|
-
@client.call_adyen_api(@service, action,
|
61
|
+
@client.call_adyen_api(@service, action, request, headers, @version)
|
62
62
|
end
|
63
63
|
|
64
|
-
def
|
65
|
-
endpoint = '/companies/{companyId}/webhooks/{webhookId}
|
64
|
+
def update_webhook(request, company_id, webhook_id, headers: {})
|
65
|
+
endpoint = '/companies/{companyId}/webhooks/{webhookId}'.gsub(/{.+?}/, '%s')
|
66
66
|
endpoint = endpoint.gsub(%r{^/}, '')
|
67
67
|
endpoint = format(endpoint, company_id, webhook_id)
|
68
68
|
|
69
|
-
action = { method: '
|
69
|
+
action = { method: 'patch', url: endpoint }
|
70
70
|
@client.call_adyen_api(@service, action, request, headers, @version)
|
71
71
|
end
|
72
72
|
|
@@ -7,12 +7,21 @@ module Adyen
|
|
7
7
|
super(client, version, 'Management')
|
8
8
|
end
|
9
9
|
|
10
|
-
def
|
10
|
+
def generate_hmac_key(merchant_id, webhook_id, headers: {})
|
11
|
+
endpoint = '/merchants/{merchantId}/webhooks/{webhookId}/generateHmac'.gsub(/{.+?}/, '%s')
|
12
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
13
|
+
endpoint = format(endpoint, merchant_id, webhook_id)
|
14
|
+
|
15
|
+
action = { method: 'post', url: endpoint }
|
16
|
+
@client.call_adyen_api(@service, action, {}, headers, @version)
|
17
|
+
end
|
18
|
+
|
19
|
+
def get_webhook(merchant_id, webhook_id, headers: {})
|
11
20
|
endpoint = '/merchants/{merchantId}/webhooks/{webhookId}'.gsub(/{.+?}/, '%s')
|
12
21
|
endpoint = endpoint.gsub(%r{^/}, '')
|
13
22
|
endpoint = format(endpoint, merchant_id, webhook_id)
|
14
23
|
|
15
|
-
action = { method: '
|
24
|
+
action = { method: 'get', url: endpoint }
|
16
25
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
17
26
|
end
|
18
27
|
|
@@ -25,24 +34,15 @@ module Adyen
|
|
25
34
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
26
35
|
end
|
27
36
|
|
28
|
-
def
|
37
|
+
def remove_webhook(merchant_id, webhook_id, headers: {})
|
29
38
|
endpoint = '/merchants/{merchantId}/webhooks/{webhookId}'.gsub(/{.+?}/, '%s')
|
30
39
|
endpoint = endpoint.gsub(%r{^/}, '')
|
31
40
|
endpoint = format(endpoint, merchant_id, webhook_id)
|
32
41
|
|
33
|
-
action = { method: '
|
42
|
+
action = { method: 'delete', url: endpoint }
|
34
43
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
35
44
|
end
|
36
45
|
|
37
|
-
def update_webhook(request, merchant_id, webhook_id, headers: {})
|
38
|
-
endpoint = '/merchants/{merchantId}/webhooks/{webhookId}'.gsub(/{.+?}/, '%s')
|
39
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
40
|
-
endpoint = format(endpoint, merchant_id, webhook_id)
|
41
|
-
|
42
|
-
action = { method: 'patch', url: endpoint }
|
43
|
-
@client.call_adyen_api(@service, action, request, headers, @version)
|
44
|
-
end
|
45
|
-
|
46
46
|
def set_up_webhook(request, merchant_id, headers: {})
|
47
47
|
endpoint = '/merchants/{merchantId}/webhooks'.gsub(/{.+?}/, '%s')
|
48
48
|
endpoint = endpoint.gsub(%r{^/}, '')
|
@@ -52,21 +52,21 @@ module Adyen
|
|
52
52
|
@client.call_adyen_api(@service, action, request, headers, @version)
|
53
53
|
end
|
54
54
|
|
55
|
-
def
|
56
|
-
endpoint = '/merchants/{merchantId}/webhooks/{webhookId}/
|
55
|
+
def test_webhook(request, merchant_id, webhook_id, headers: {})
|
56
|
+
endpoint = '/merchants/{merchantId}/webhooks/{webhookId}/test'.gsub(/{.+?}/, '%s')
|
57
57
|
endpoint = endpoint.gsub(%r{^/}, '')
|
58
58
|
endpoint = format(endpoint, merchant_id, webhook_id)
|
59
59
|
|
60
60
|
action = { method: 'post', url: endpoint }
|
61
|
-
@client.call_adyen_api(@service, action,
|
61
|
+
@client.call_adyen_api(@service, action, request, headers, @version)
|
62
62
|
end
|
63
63
|
|
64
|
-
def
|
65
|
-
endpoint = '/merchants/{merchantId}/webhooks/{webhookId}
|
64
|
+
def update_webhook(request, merchant_id, webhook_id, headers: {})
|
65
|
+
endpoint = '/merchants/{merchantId}/webhooks/{webhookId}'.gsub(/{.+?}/, '%s')
|
66
66
|
endpoint = endpoint.gsub(%r{^/}, '')
|
67
67
|
endpoint = format(endpoint, merchant_id, webhook_id)
|
68
68
|
|
69
|
-
action = { method: '
|
69
|
+
action = { method: 'patch', url: endpoint }
|
70
70
|
@client.call_adyen_api(@service, action, request, headers, @version)
|
71
71
|
end
|
72
72
|
|
@@ -7,19 +7,19 @@ module Adyen
|
|
7
7
|
super(client, version, 'Transfers')
|
8
8
|
end
|
9
9
|
|
10
|
-
def
|
11
|
-
endpoint = '/transfers'.gsub(/{.+?}/, '%s')
|
10
|
+
def return_transfer(request, id, headers: {})
|
11
|
+
endpoint = '/transfers/{id}/returns'.gsub(/{.+?}/, '%s')
|
12
12
|
endpoint = endpoint.gsub(%r{^/}, '')
|
13
|
-
endpoint = format(endpoint)
|
13
|
+
endpoint = format(endpoint, id)
|
14
14
|
|
15
15
|
action = { method: 'post', url: endpoint }
|
16
16
|
@client.call_adyen_api(@service, action, request, headers, @version)
|
17
17
|
end
|
18
18
|
|
19
|
-
def
|
20
|
-
endpoint = '/transfers
|
19
|
+
def transfer_funds(request, headers: {})
|
20
|
+
endpoint = '/transfers'.gsub(/{.+?}/, '%s')
|
21
21
|
endpoint = endpoint.gsub(%r{^/}, '')
|
22
|
-
endpoint = format(endpoint
|
22
|
+
endpoint = format(endpoint)
|
23
23
|
|
24
24
|
action = { method: 'post', url: endpoint }
|
25
25
|
@client.call_adyen_api(@service, action, request, headers, @version)
|
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: 8.0.
|
4
|
+
version: 8.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adyen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -438,9 +438,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
438
438
|
version: 2.7.0
|
439
439
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
440
440
|
requirements:
|
441
|
-
- - "
|
441
|
+
- - ">="
|
442
442
|
- !ruby/object:Gem::Version
|
443
|
-
version:
|
443
|
+
version: '0'
|
444
444
|
requirements: []
|
445
445
|
rubygems_version: 3.4.10
|
446
446
|
signing_key:
|