adyen-ruby-api-library 6.3.0 → 7.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -0
- data/Makefile +72 -0
- data/README.md +20 -18
- data/lib/adyen/client.rb +66 -38
- data/lib/adyen/services/balanceControlService.rb +28 -0
- data/lib/adyen/services/balancePlatform/account_holders_api.rb +63 -0
- data/lib/adyen/services/balancePlatform/balance_accounts_api.rb +123 -0
- data/lib/adyen/services/balancePlatform/bank_account_validation_api.rb +27 -0
- data/lib/adyen/services/balancePlatform/grant_accounts_api.rb +27 -0
- data/lib/adyen/services/balancePlatform/grant_offers_api.rb +39 -0
- data/lib/adyen/services/balancePlatform/payment_instrument_groups_api.rb +51 -0
- data/lib/adyen/services/balancePlatform/payment_instruments_api.rb +75 -0
- data/lib/adyen/services/balancePlatform/platform_api.rb +39 -0
- data/lib/adyen/services/balancePlatform/transaction_rules_api.rb +63 -0
- data/lib/adyen/services/balancePlatform.rb +61 -0
- data/lib/adyen/services/binLookup.rb +40 -0
- data/lib/adyen/services/checkout/classic_checkout_sdk_api.rb +39 -0
- data/lib/adyen/services/checkout/modifications_api.rb +87 -0
- data/lib/adyen/services/checkout/orders_api.rb +51 -0
- data/lib/adyen/services/checkout/payment_links_api.rb +51 -0
- data/lib/adyen/services/checkout/payments_api.rb +87 -0
- data/lib/adyen/services/checkout/recurring_api.rb +39 -0
- data/lib/adyen/services/checkout/utility_api.rb +39 -0
- data/lib/adyen/services/checkout.rb +38 -211
- data/lib/adyen/services/dataProtection.rb +28 -0
- data/lib/adyen/services/legalEntityManagement/business_lines_api.rb +63 -0
- data/lib/adyen/services/legalEntityManagement/documents_api.rb +63 -0
- data/lib/adyen/services/legalEntityManagement/hosted_onboarding_api.rb +51 -0
- data/lib/adyen/services/legalEntityManagement/legal_entities_api.rb +75 -0
- data/lib/adyen/services/legalEntityManagement/pci_questionnaires_api.rb +63 -0
- data/lib/adyen/services/legalEntityManagement/terms_of_service_api.rb +51 -0
- data/lib/adyen/services/legalEntityManagement/transfer_instruments_api.rb +63 -0
- data/lib/adyen/services/legalEntityManagement.rb +51 -0
- data/lib/adyen/services/management/account_company_level_api.rb +51 -0
- data/lib/adyen/services/management/account_merchant_level_api.rb +63 -0
- data/lib/adyen/services/management/account_store_level_api.rb +111 -0
- data/lib/adyen/services/management/allowed_origins_company_level_api.rb +63 -0
- data/lib/adyen/services/management/allowed_origins_merchant_level_api.rb +63 -0
- data/lib/adyen/services/management/api_credentials_company_level_api.rb +63 -0
- data/lib/adyen/services/management/api_credentials_merchant_level_api.rb +63 -0
- data/lib/adyen/services/management/api_key_company_level_api.rb +27 -0
- data/lib/adyen/services/management/api_key_merchant_level_api.rb +27 -0
- data/lib/adyen/services/management/client_key_company_level_api.rb +27 -0
- data/lib/adyen/services/management/client_key_merchant_level_api.rb +27 -0
- data/lib/adyen/services/management/my_api_credential_api.rb +75 -0
- data/lib/adyen/services/management/payment_methods_merchant_level_api.rb +87 -0
- data/lib/adyen/services/management/payout_settings_merchant_level_api.rb +75 -0
- data/lib/adyen/services/management/terminal_actions_company_level_api.rb +63 -0
- data/lib/adyen/services/management/terminal_actions_terminal_level_api.rb +27 -0
- data/lib/adyen/services/management/terminal_orders_company_level_api.rb +135 -0
- data/lib/adyen/services/management/terminal_orders_merchant_level_api.rb +135 -0
- data/lib/adyen/services/management/terminal_settings_company_level_api.rb +63 -0
- data/lib/adyen/services/management/terminal_settings_merchant_level_api.rb +63 -0
- data/lib/adyen/services/management/terminal_settings_store_level_api.rb +111 -0
- data/lib/adyen/services/management/terminal_settings_terminal_level_api.rb +63 -0
- data/lib/adyen/services/management/terminals_terminal_level_api.rb +27 -0
- data/lib/adyen/services/management/users_company_level_api.rb +63 -0
- data/lib/adyen/services/management/users_merchant_level_api.rb +63 -0
- data/lib/adyen/services/management/webhooks_company_level_api.rb +99 -0
- data/lib/adyen/services/management/webhooks_merchant_level_api.rb +99 -0
- data/lib/adyen/services/management.rb +151 -0
- data/lib/adyen/services/payment.rb +172 -0
- data/lib/adyen/services/payout/initialization_api.rb +51 -0
- data/lib/adyen/services/payout/instant_payouts_api.rb +27 -0
- data/lib/adyen/services/payout/reviewing_api.rb +39 -0
- data/lib/adyen/services/payout.rb +31 -0
- data/lib/adyen/services/posTerminalManagement.rb +76 -0
- data/lib/adyen/services/recurring.rb +81 -13
- data/lib/adyen/services/service.rb +2 -2
- data/lib/adyen/services/storedValue.rb +88 -0
- data/lib/adyen/services/transfers/transactions_api.rb +39 -0
- data/lib/adyen/services/transfers/transfers_api.rb +27 -0
- data/lib/adyen/services/transfers.rb +26 -0
- data/lib/adyen/version.rb +1 -1
- data/lib/adyen-ruby-api-library.rb +11 -5
- data/spec/account_spec.rb +1 -1
- data/spec/balance_control_spec.rb +44 -0
- data/spec/balance_platform_spec.rb +123 -0
- data/spec/bin_lookup_spec.rb +68 -10
- data/spec/checkout_spec.rb +39 -66
- data/spec/client_spec.rb +88 -9
- data/spec/fund_spec.rb +1 -1
- data/spec/hop_spec.rb +1 -1
- data/spec/lem_spec.rb +68 -0
- data/spec/management_spec.rb +68 -0
- data/spec/mocks/requests/BalanceControl/balance_transfer.json +10 -0
- data/spec/mocks/requests/BalancePlatform/create_account_holder.json +5 -0
- data/spec/mocks/requests/BalancePlatform/update_account_holder.json +10 -0
- data/spec/mocks/requests/LegalEntityManagement/create_business_line.json +15 -0
- data/spec/mocks/requests/Management/create_store.json +15 -0
- data/spec/mocks/requests/Recurring/create_permit.json +6 -0
- data/spec/mocks/requests/StoredValue/issue_giftcard.json +12 -0
- data/spec/mocks/requests/Transfers/get_transactions.json +82 -0
- data/spec/mocks/requests/Transfers/make_transfer.json +32 -0
- data/spec/mocks/responses/BalanceControl/balance_transfer.json +14 -0
- data/spec/mocks/responses/BalancePlatform/create_account_holder.json +41 -0
- data/spec/mocks/responses/BalancePlatform/get_balance_account.json +15 -0
- data/spec/mocks/responses/BalancePlatform/update_account_holder.json +16 -0
- data/spec/mocks/responses/LegalEntityManagement/create_business_line.json +17 -0
- data/spec/mocks/responses/Management/create_store.json +23 -0
- data/spec/mocks/responses/Management/get_companies.json +42 -0
- data/spec/mocks/responses/Recurring/create_permit.json +4 -0
- data/spec/mocks/responses/StoredValue/issue_giftcard.json +13 -0
- data/spec/mocks/responses/Transfers/get_transactions.json +82 -0
- data/spec/mocks/responses/Transfers/make_transfer.json +36 -0
- data/spec/notification_spec.rb +1 -1
- data/spec/payments_spec.rb +41 -23
- data/spec/payouts_spec.rb +43 -16
- data/spec/pos_terminal_management_spec.rb +46 -0
- data/spec/recurring_spec.rb +2 -2
- data/spec/spec_helper.rb +0 -10
- data/spec/stored_value_spec.rb +43 -0
- data/spec/transfers_spec.rb +63 -0
- data/templates/api-single.mustache +29 -0
- data/templates/api-small.mustache +37 -0
- data/templates/api.mustache +36 -0
- data/templates/config.yaml +10 -0
- metadata +101 -11
- data/lib/adyen/services/bin_lookup.rb +0 -18
- data/lib/adyen/services/data_protection.rb +0 -17
- data/lib/adyen/services/payments.rb +0 -34
- data/lib/adyen/services/payouts.rb +0 -22
- data/lib/adyen/services/postfmapi.rb +0 -19
- data/spec/mocks/requests/Recurring/store_token.json +0 -15
- data/spec/mocks/responses/Recurring/store_token.json +0 -7
- data/spec/postfmapi_spec.rb +0 -16
@@ -0,0 +1,43 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
require "json"
|
3
|
+
|
4
|
+
RSpec.describe Adyen::BalancePlatform, service: "balancePlatform" do
|
5
|
+
before(:all) do
|
6
|
+
@shared_values = {
|
7
|
+
client: create_client(:api_key),
|
8
|
+
service: "BalancePlatform",
|
9
|
+
}
|
10
|
+
end
|
11
|
+
|
12
|
+
# must be created manually because every field in the response is an array
|
13
|
+
it "makes a issue POST call" do
|
14
|
+
request_body = JSON.parse(json_from_file("mocks/requests/StoredValue/issue_giftcard.json"))
|
15
|
+
|
16
|
+
response_body = json_from_file("mocks/responses/StoredValue/issue_giftcard.json")
|
17
|
+
|
18
|
+
url = @shared_values[:client].service_url(@shared_values[:service], "issue", @shared_values[:client].stored_value.version)
|
19
|
+
WebMock.stub_request(:post, url).
|
20
|
+
with(
|
21
|
+
body: request_body,
|
22
|
+
headers: {
|
23
|
+
"x-api-key" => @shared_values[:client].api_key
|
24
|
+
}
|
25
|
+
).
|
26
|
+
to_return(
|
27
|
+
body: response_body
|
28
|
+
)
|
29
|
+
|
30
|
+
result = @shared_values[:client].stored_value.issue(request_body)
|
31
|
+
response_hash = result.response
|
32
|
+
|
33
|
+
expect(result.status).
|
34
|
+
to eq(200)
|
35
|
+
expect(response_hash).
|
36
|
+
to eq(JSON.parse(response_body))
|
37
|
+
expect(response_hash).
|
38
|
+
to be_a Adyen::HashWithAccessors
|
39
|
+
expect(response_hash).
|
40
|
+
to be_a_kind_of Hash
|
41
|
+
end
|
42
|
+
|
43
|
+
end
|
@@ -0,0 +1,63 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
require "json"
|
3
|
+
|
4
|
+
# rubocop:disable Metrics/BlockLength
|
5
|
+
|
6
|
+
RSpec.describe Adyen::Transfers, service: "transfers" do
|
7
|
+
before(:all) do
|
8
|
+
@shared_values = {
|
9
|
+
client: create_client(:api_key),
|
10
|
+
service: "Transfers",
|
11
|
+
}
|
12
|
+
end
|
13
|
+
|
14
|
+
it "makes a transfers POST call" do
|
15
|
+
|
16
|
+
request_body = JSON.parse(json_from_file("mocks/requests/Transfers/make_transfer.json"))
|
17
|
+
|
18
|
+
response_body = json_from_file("mocks/responses/Transfers/make_transfer.json")
|
19
|
+
|
20
|
+
url = @shared_values[:client].service_url(@shared_values[:service], "transfers", @shared_values[:client].transfers.version)
|
21
|
+
WebMock.stub_request(:post, url).
|
22
|
+
with(
|
23
|
+
body: request_body,
|
24
|
+
headers: {
|
25
|
+
"x-api-key" => @shared_values[:client].api_key
|
26
|
+
}
|
27
|
+
).
|
28
|
+
to_return(
|
29
|
+
body: response_body
|
30
|
+
)
|
31
|
+
|
32
|
+
result = @shared_values[:client].transfers.transfers_api.transfer_funds(request_body)
|
33
|
+
response_hash = result.response
|
34
|
+
|
35
|
+
expect(result.status).
|
36
|
+
to eq(200)
|
37
|
+
end
|
38
|
+
|
39
|
+
it "makes a transactions GET call" do
|
40
|
+
|
41
|
+
response_body = json_from_file("mocks/responses/Transfers/make_transfer.json")
|
42
|
+
|
43
|
+
url = @shared_values[:client].service_url(@shared_values[:service], "transactions?createdUntil=2021-05-30T15%3A07%3A40Z&createdSince=2021-05-30T15%3A07%3A40Z", @shared_values[:client].transfers.version)
|
44
|
+
WebMock.stub_request(:get, url).
|
45
|
+
with(
|
46
|
+
headers: {
|
47
|
+
"x-api-key" => @shared_values[:client].api_key
|
48
|
+
}
|
49
|
+
).
|
50
|
+
to_return(
|
51
|
+
body: response_body
|
52
|
+
)
|
53
|
+
|
54
|
+
result = @shared_values[:client].transfers.transactions_api.get_all_transactions(queryParams:{"createdUntil" => "2021-05-30T15:07:40Z", "createdSince" => "2021-05-30T15:07:40Z"})
|
55
|
+
response_hash = result.response
|
56
|
+
|
57
|
+
expect(result.status).
|
58
|
+
to eq(200)
|
59
|
+
end
|
60
|
+
|
61
|
+
|
62
|
+
end
|
63
|
+
|
@@ -0,0 +1,29 @@
|
|
1
|
+
{{#apiInfo}}
|
2
|
+
{{#apis}}
|
3
|
+
require_relative '{{serviceName}}/{{#lambda.snakecase}}{{classname}}{{/lambda.snakecase}}'
|
4
|
+
{{/apis}}
|
5
|
+
{{/apiInfo}}
|
6
|
+
|
7
|
+
module Adyen
|
8
|
+
|
9
|
+
|
10
|
+
class {{#lambda.titlecase}}{{serviceName}}{{/lambda.titlecase}}
|
11
|
+
attr_accessor :service, :version
|
12
|
+
|
13
|
+
DEFAULT_VERSION = {{version}}
|
14
|
+
def initialize(client, version = DEFAULT_VERSION)
|
15
|
+
@service = "{{#lambda.titlecase}}{{serviceName}}{{/lambda.titlecase}}"
|
16
|
+
@client = client
|
17
|
+
@version = version
|
18
|
+
end
|
19
|
+
|
20
|
+
{{#apiInfo}}
|
21
|
+
{{#apis}}
|
22
|
+
def {{classFilename}}
|
23
|
+
@{{classFilename}} ||= Adyen::{{classname}}.new(@client, @version)
|
24
|
+
end
|
25
|
+
|
26
|
+
{{/apis}}
|
27
|
+
{{/apiInfo}}
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
require_relative './service'
|
2
|
+
module Adyen
|
3
|
+
{{#operations}}
|
4
|
+
|
5
|
+
|
6
|
+
class {{#lambda.titlecase}}{{serviceName}}{{/lambda.titlecase}} < Service
|
7
|
+
attr_accessor :service, :version
|
8
|
+
DEFAULT_VERSION = {{version}}
|
9
|
+
|
10
|
+
def initialize(client, version = DEFAULT_VERSION)
|
11
|
+
@service = "{{#lambda.titlecase}}{{serviceName}}{{/lambda.titlecase}}"
|
12
|
+
@client = client
|
13
|
+
@version = version
|
14
|
+
end
|
15
|
+
|
16
|
+
{{#operation}}
|
17
|
+
def {{#lambda.snakecase}}{{#vendorExtensions.x-methodName}}{{.}}{{/vendorExtensions.x-methodName}}{{^vendorExtensions.x-methodName}}{{nickname}}{{/vendorExtensions.x-methodName}}{{/lambda.snakecase}}({{#bodyParams}}request, {{/bodyParams}}{{#requiredParams}}{{^isQueryParam}}{{#lambda.camelcase}}{{paramName}}{{/lambda.camelcase}}, {{/isQueryParam}}{{/requiredParams}}headers: {} {{#queryParams}}{{#-first}}, queryParams: {}{{/-first}}{{/queryParams}})
|
18
|
+
"""
|
19
|
+
{{{summary}}}{{^summary}}{{operationId}}{{/summary}}
|
20
|
+
"""
|
21
|
+
endpoint = "{{path}}".gsub(/{.+?}/, '%s')
|
22
|
+
endpoint = endpoint.gsub(/^\//, "")
|
23
|
+
endpoint = endpoint % [{{#pathParams}}{{#lambda.camelcase}}{{paramName}}{{/lambda.camelcase}}{{^-last}},{{/-last}}{{/pathParams}}]
|
24
|
+
{{#queryParams}}{{#-first}}endpoint = endpoint + create_query_string(queryParams){{/-first}}{{/queryParams}}
|
25
|
+
action = { method: "{{#lambda.lowercase}}{{httpMethod}}{{/lambda.lowercase}}", url: endpoint}
|
26
|
+
{{#bodyParams}}
|
27
|
+
@client.call_adyen_api(@service, action, request, headers, @version)
|
28
|
+
{{/bodyParams}}
|
29
|
+
{{^bodyParams}}
|
30
|
+
@client.call_adyen_api(@service, action, {}, headers, @version)
|
31
|
+
{{/bodyParams}}
|
32
|
+
end
|
33
|
+
|
34
|
+
{{/operation}}
|
35
|
+
{{/operations}}
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
require_relative '../service'
|
2
|
+
module Adyen
|
3
|
+
{{#operations}}
|
4
|
+
|
5
|
+
|
6
|
+
class {{classname}} < Service
|
7
|
+
attr_accessor :service, :version
|
8
|
+
|
9
|
+
def initialize(client, version = DEFAULT_VERSION)
|
10
|
+
@service = "{{#lambda.titlecase}}{{serviceName}}{{/lambda.titlecase}}"
|
11
|
+
@client = client
|
12
|
+
@version = version
|
13
|
+
end
|
14
|
+
|
15
|
+
{{#operation}}
|
16
|
+
def {{#lambda.snakecase}}{{#vendorExtensions.x-methodName}}{{.}}{{/vendorExtensions.x-methodName}}{{^vendorExtensions.x-methodName}}{{nickname}}{{/vendorExtensions.x-methodName}}{{/lambda.snakecase}}({{#bodyParams}}request, {{/bodyParams}}{{#requiredParams}}{{^isQueryParam}}{{#lambda.camelcase}}{{paramName}}{{/lambda.camelcase}}, {{/isQueryParam}}{{/requiredParams}}headers: {} {{#queryParams}}{{#-first}}, queryParams: {}{{/-first}}{{/queryParams}})
|
17
|
+
"""
|
18
|
+
{{{summary}}}{{^summary}}{{operationId}}{{/summary}}
|
19
|
+
"""
|
20
|
+
endpoint = "{{path}}".gsub(/{.+?}/, '%s')
|
21
|
+
endpoint = endpoint.gsub(/^\//, "")
|
22
|
+
endpoint = endpoint % [{{#pathParams}}{{#lambda.camelcase}}{{paramName}}{{/lambda.camelcase}}{{^-last}},{{/-last}}{{/pathParams}}]
|
23
|
+
{{#queryParams}}{{#-first}}endpoint = endpoint + create_query_string(queryParams){{/-first}}{{/queryParams}}
|
24
|
+
action = { method: "{{#lambda.lowercase}}{{httpMethod}}{{/lambda.lowercase}}", url: endpoint}
|
25
|
+
{{#bodyParams}}
|
26
|
+
@client.call_adyen_api(@service, action, request, headers, @version)
|
27
|
+
{{/bodyParams}}
|
28
|
+
{{^bodyParams}}
|
29
|
+
@client.call_adyen_api(@service, action, {}, headers, @version)
|
30
|
+
{{/bodyParams}}
|
31
|
+
end
|
32
|
+
|
33
|
+
{{/operation}}
|
34
|
+
{{/operations}}
|
35
|
+
end
|
36
|
+
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:
|
4
|
+
version: 7.0.0
|
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-05-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -89,6 +89,7 @@ files:
|
|
89
89
|
- CONTRIBUTING.md
|
90
90
|
- Gemfile
|
91
91
|
- LICENSE
|
92
|
+
- Makefile
|
92
93
|
- README.md
|
93
94
|
- Rakefile
|
94
95
|
- adyen-ruby-api-library.gemspec
|
@@ -113,20 +114,83 @@ files:
|
|
113
114
|
- lib/adyen/errors.rb
|
114
115
|
- lib/adyen/hash_with_accessors.rb
|
115
116
|
- lib/adyen/result.rb
|
116
|
-
- lib/adyen/services/
|
117
|
+
- lib/adyen/services/balanceControlService.rb
|
118
|
+
- lib/adyen/services/balancePlatform.rb
|
119
|
+
- lib/adyen/services/balancePlatform/account_holders_api.rb
|
120
|
+
- lib/adyen/services/balancePlatform/balance_accounts_api.rb
|
121
|
+
- lib/adyen/services/balancePlatform/bank_account_validation_api.rb
|
122
|
+
- lib/adyen/services/balancePlatform/grant_accounts_api.rb
|
123
|
+
- lib/adyen/services/balancePlatform/grant_offers_api.rb
|
124
|
+
- lib/adyen/services/balancePlatform/payment_instrument_groups_api.rb
|
125
|
+
- lib/adyen/services/balancePlatform/payment_instruments_api.rb
|
126
|
+
- lib/adyen/services/balancePlatform/platform_api.rb
|
127
|
+
- lib/adyen/services/balancePlatform/transaction_rules_api.rb
|
128
|
+
- lib/adyen/services/binLookup.rb
|
117
129
|
- lib/adyen/services/checkout.rb
|
118
|
-
- lib/adyen/services/
|
130
|
+
- lib/adyen/services/checkout/classic_checkout_sdk_api.rb
|
131
|
+
- lib/adyen/services/checkout/modifications_api.rb
|
132
|
+
- lib/adyen/services/checkout/orders_api.rb
|
133
|
+
- lib/adyen/services/checkout/payment_links_api.rb
|
134
|
+
- lib/adyen/services/checkout/payments_api.rb
|
135
|
+
- lib/adyen/services/checkout/recurring_api.rb
|
136
|
+
- lib/adyen/services/checkout/utility_api.rb
|
137
|
+
- lib/adyen/services/dataProtection.rb
|
119
138
|
- lib/adyen/services/dispute.rb
|
139
|
+
- lib/adyen/services/legalEntityManagement.rb
|
140
|
+
- lib/adyen/services/legalEntityManagement/business_lines_api.rb
|
141
|
+
- lib/adyen/services/legalEntityManagement/documents_api.rb
|
142
|
+
- lib/adyen/services/legalEntityManagement/hosted_onboarding_api.rb
|
143
|
+
- lib/adyen/services/legalEntityManagement/legal_entities_api.rb
|
144
|
+
- lib/adyen/services/legalEntityManagement/pci_questionnaires_api.rb
|
145
|
+
- lib/adyen/services/legalEntityManagement/terms_of_service_api.rb
|
146
|
+
- lib/adyen/services/legalEntityManagement/transfer_instruments_api.rb
|
147
|
+
- lib/adyen/services/management.rb
|
148
|
+
- lib/adyen/services/management/account_company_level_api.rb
|
149
|
+
- lib/adyen/services/management/account_merchant_level_api.rb
|
150
|
+
- lib/adyen/services/management/account_store_level_api.rb
|
151
|
+
- lib/adyen/services/management/allowed_origins_company_level_api.rb
|
152
|
+
- lib/adyen/services/management/allowed_origins_merchant_level_api.rb
|
153
|
+
- lib/adyen/services/management/api_credentials_company_level_api.rb
|
154
|
+
- lib/adyen/services/management/api_credentials_merchant_level_api.rb
|
155
|
+
- lib/adyen/services/management/api_key_company_level_api.rb
|
156
|
+
- lib/adyen/services/management/api_key_merchant_level_api.rb
|
157
|
+
- lib/adyen/services/management/client_key_company_level_api.rb
|
158
|
+
- lib/adyen/services/management/client_key_merchant_level_api.rb
|
159
|
+
- lib/adyen/services/management/my_api_credential_api.rb
|
160
|
+
- lib/adyen/services/management/payment_methods_merchant_level_api.rb
|
161
|
+
- lib/adyen/services/management/payout_settings_merchant_level_api.rb
|
162
|
+
- lib/adyen/services/management/terminal_actions_company_level_api.rb
|
163
|
+
- lib/adyen/services/management/terminal_actions_terminal_level_api.rb
|
164
|
+
- lib/adyen/services/management/terminal_orders_company_level_api.rb
|
165
|
+
- lib/adyen/services/management/terminal_orders_merchant_level_api.rb
|
166
|
+
- lib/adyen/services/management/terminal_settings_company_level_api.rb
|
167
|
+
- lib/adyen/services/management/terminal_settings_merchant_level_api.rb
|
168
|
+
- lib/adyen/services/management/terminal_settings_store_level_api.rb
|
169
|
+
- lib/adyen/services/management/terminal_settings_terminal_level_api.rb
|
170
|
+
- lib/adyen/services/management/terminals_terminal_level_api.rb
|
171
|
+
- lib/adyen/services/management/users_company_level_api.rb
|
172
|
+
- lib/adyen/services/management/users_merchant_level_api.rb
|
173
|
+
- lib/adyen/services/management/webhooks_company_level_api.rb
|
174
|
+
- lib/adyen/services/management/webhooks_merchant_level_api.rb
|
120
175
|
- lib/adyen/services/marketpay.rb
|
121
|
-
- lib/adyen/services/
|
122
|
-
- lib/adyen/services/
|
123
|
-
- lib/adyen/services/
|
176
|
+
- lib/adyen/services/payment.rb
|
177
|
+
- lib/adyen/services/payout.rb
|
178
|
+
- lib/adyen/services/payout/initialization_api.rb
|
179
|
+
- lib/adyen/services/payout/instant_payouts_api.rb
|
180
|
+
- lib/adyen/services/payout/reviewing_api.rb
|
181
|
+
- lib/adyen/services/posTerminalManagement.rb
|
124
182
|
- lib/adyen/services/recurring.rb
|
125
183
|
- lib/adyen/services/service.rb
|
184
|
+
- lib/adyen/services/storedValue.rb
|
185
|
+
- lib/adyen/services/transfers.rb
|
186
|
+
- lib/adyen/services/transfers/transactions_api.rb
|
187
|
+
- lib/adyen/services/transfers/transfers_api.rb
|
126
188
|
- lib/adyen/utils/hmac_validator.rb
|
127
189
|
- lib/adyen/version.rb
|
128
190
|
- renovate.json
|
129
191
|
- spec/account_spec.rb
|
192
|
+
- spec/balance_control_spec.rb
|
193
|
+
- spec/balance_platform_spec.rb
|
130
194
|
- spec/bin_lookup_spec.rb
|
131
195
|
- spec/checkout_spec.rb
|
132
196
|
- spec/client_spec.rb
|
@@ -136,6 +200,8 @@ files:
|
|
136
200
|
- spec/fund_spec.rb
|
137
201
|
- spec/hash_with_accessors_spec.rb
|
138
202
|
- spec/hop_spec.rb
|
203
|
+
- spec/lem_spec.rb
|
204
|
+
- spec/management_spec.rb
|
139
205
|
- spec/mocks/requests/Account/check_account_holder.json
|
140
206
|
- spec/mocks/requests/Account/close_account.json
|
141
207
|
- spec/mocks/requests/Account/close_account_holder.json
|
@@ -153,6 +219,9 @@ files:
|
|
153
219
|
- spec/mocks/requests/Account/update_account_holder.json
|
154
220
|
- spec/mocks/requests/Account/update_account_holder_state.json
|
155
221
|
- spec/mocks/requests/Account/upload_document.json
|
222
|
+
- spec/mocks/requests/BalanceControl/balance_transfer.json
|
223
|
+
- spec/mocks/requests/BalancePlatform/create_account_holder.json
|
224
|
+
- spec/mocks/requests/BalancePlatform/update_account_holder.json
|
156
225
|
- spec/mocks/requests/BinLookup/get_3ds_availability.json
|
157
226
|
- spec/mocks/requests/BinLookup/get_cost_estimate.json
|
158
227
|
- spec/mocks/requests/Checkout/amount_updates.json
|
@@ -187,6 +256,8 @@ files:
|
|
187
256
|
- spec/mocks/requests/Fund/setup_beneficiary.json
|
188
257
|
- spec/mocks/requests/Fund/transfer_funds.json
|
189
258
|
- spec/mocks/requests/Hop/get_onboarding_url.json
|
259
|
+
- spec/mocks/requests/LegalEntityManagement/create_business_line.json
|
260
|
+
- spec/mocks/requests/Management/create_store.json
|
190
261
|
- spec/mocks/requests/Notification/create_notification_configuration.json
|
191
262
|
- spec/mocks/requests/Notification/delete_notification_configurations.json
|
192
263
|
- spec/mocks/requests/Notification/get_notification_configuration.json
|
@@ -212,13 +283,16 @@ files:
|
|
212
283
|
- spec/mocks/requests/Payout/store_detail.json
|
213
284
|
- spec/mocks/requests/Payout/store_detail_and_submit_third_party.json
|
214
285
|
- spec/mocks/requests/Payout/submit_third_party.json
|
286
|
+
- spec/mocks/requests/Recurring/create_permit.json
|
215
287
|
- spec/mocks/requests/Recurring/disable.json
|
216
288
|
- spec/mocks/requests/Recurring/list_recurring_details.json
|
217
289
|
- spec/mocks/requests/Recurring/schedule_account_updater.json
|
218
|
-
- spec/mocks/requests/
|
290
|
+
- spec/mocks/requests/StoredValue/issue_giftcard.json
|
219
291
|
- spec/mocks/requests/Terminal/assign_terminals.json
|
220
292
|
- spec/mocks/requests/Terminal/find_terminal.json
|
221
293
|
- spec/mocks/requests/Terminal/get_terminals_under_account.json
|
294
|
+
- spec/mocks/requests/Transfers/get_transactions.json
|
295
|
+
- spec/mocks/requests/Transfers/make_transfer.json
|
222
296
|
- spec/mocks/responses/Account/check_account_holder.json
|
223
297
|
- spec/mocks/responses/Account/close_account.json
|
224
298
|
- spec/mocks/responses/Account/close_account_holder.json
|
@@ -236,6 +310,10 @@ files:
|
|
236
310
|
- spec/mocks/responses/Account/update_account_holder.json
|
237
311
|
- spec/mocks/responses/Account/update_account_holder_state.json
|
238
312
|
- spec/mocks/responses/Account/upload_document.json
|
313
|
+
- spec/mocks/responses/BalanceControl/balance_transfer.json
|
314
|
+
- spec/mocks/responses/BalancePlatform/create_account_holder.json
|
315
|
+
- spec/mocks/responses/BalancePlatform/get_balance_account.json
|
316
|
+
- spec/mocks/responses/BalancePlatform/update_account_holder.json
|
239
317
|
- spec/mocks/responses/BinLookup/get_3ds_availability.json
|
240
318
|
- spec/mocks/responses/BinLookup/get_cost_estimate.json
|
241
319
|
- spec/mocks/responses/Checkout/amount_updates.json
|
@@ -273,6 +351,9 @@ files:
|
|
273
351
|
- spec/mocks/responses/Fund/setup_beneficiary.json
|
274
352
|
- spec/mocks/responses/Fund/transfer_funds.json
|
275
353
|
- spec/mocks/responses/Hop/get_onboarding_url.json
|
354
|
+
- spec/mocks/responses/LegalEntityManagement/create_business_line.json
|
355
|
+
- spec/mocks/responses/Management/create_store.json
|
356
|
+
- spec/mocks/responses/Management/get_companies.json
|
276
357
|
- spec/mocks/responses/Notification/create_notification_configuration.json
|
277
358
|
- spec/mocks/responses/Notification/delete_notification_configurations.json
|
278
359
|
- spec/mocks/responses/Notification/get_notification_configuration.json
|
@@ -298,13 +379,16 @@ files:
|
|
298
379
|
- spec/mocks/responses/Payout/store_detail.json
|
299
380
|
- spec/mocks/responses/Payout/store_detail_and_submit_third_party.json
|
300
381
|
- spec/mocks/responses/Payout/submit_third_party.json
|
382
|
+
- spec/mocks/responses/Recurring/create_permit.json
|
301
383
|
- spec/mocks/responses/Recurring/disable.json
|
302
384
|
- spec/mocks/responses/Recurring/list_recurring_details.json
|
303
385
|
- spec/mocks/responses/Recurring/schedule_account_updater.json
|
304
|
-
- spec/mocks/responses/
|
386
|
+
- spec/mocks/responses/StoredValue/issue_giftcard.json
|
305
387
|
- spec/mocks/responses/Terminal/assign_terminals.json
|
306
388
|
- spec/mocks/responses/Terminal/find_terminal.json
|
307
389
|
- spec/mocks/responses/Terminal/get_terminals_under_account.json
|
390
|
+
- spec/mocks/responses/Transfers/get_transactions.json
|
391
|
+
- spec/mocks/responses/Transfers/make_transfer.json
|
308
392
|
- spec/mocks/responses/Webhooks/backslash_notification.json
|
309
393
|
- spec/mocks/responses/Webhooks/colon_notification.json
|
310
394
|
- spec/mocks/responses/Webhooks/forwardslash_notification.json
|
@@ -312,11 +396,17 @@ files:
|
|
312
396
|
- spec/notification_spec.rb
|
313
397
|
- spec/payments_spec.rb
|
314
398
|
- spec/payouts_spec.rb
|
315
|
-
- spec/
|
399
|
+
- spec/pos_terminal_management_spec.rb
|
316
400
|
- spec/recurring_spec.rb
|
317
401
|
- spec/service_spec.rb
|
318
402
|
- spec/spec_helper.rb
|
403
|
+
- spec/stored_value_spec.rb
|
404
|
+
- spec/transfers_spec.rb
|
319
405
|
- spec/utils/hmac_validator_spec.rb
|
406
|
+
- templates/api-single.mustache
|
407
|
+
- templates/api-small.mustache
|
408
|
+
- templates/api.mustache
|
409
|
+
- templates/config.yaml
|
320
410
|
homepage: https://www.adyen.com
|
321
411
|
licenses:
|
322
412
|
- MIT
|
@@ -339,7 +429,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
339
429
|
- !ruby/object:Gem::Version
|
340
430
|
version: '0'
|
341
431
|
requirements: []
|
342
|
-
rubygems_version: 3.
|
432
|
+
rubygems_version: 3.4.10
|
343
433
|
signing_key:
|
344
434
|
specification_version: 4
|
345
435
|
summary: Official Adyen Ruby API Library
|
@@ -1,18 +0,0 @@
|
|
1
|
-
require_relative 'service'
|
2
|
-
|
3
|
-
module Adyen
|
4
|
-
class BinLookup < Service
|
5
|
-
attr_accessor :version
|
6
|
-
DEFAULT_VERSION = 50
|
7
|
-
|
8
|
-
def initialize(client, version = DEFAULT_VERSION)
|
9
|
-
service = 'BinLookup'
|
10
|
-
method_names = [
|
11
|
-
:get_3ds_availability,
|
12
|
-
:get_cost_estimate
|
13
|
-
]
|
14
|
-
|
15
|
-
super(client, version, service, method_names)
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
@@ -1,17 +0,0 @@
|
|
1
|
-
require_relative 'service'
|
2
|
-
|
3
|
-
module Adyen
|
4
|
-
class DataProtection < Service
|
5
|
-
attr_accessor :version
|
6
|
-
DEFAULT_VERSION = 1
|
7
|
-
|
8
|
-
def initialize(client, version = DEFAULT_VERSION)
|
9
|
-
service = 'DataProtectionService'
|
10
|
-
method_names = [
|
11
|
-
:request_subject_erasure
|
12
|
-
]
|
13
|
-
|
14
|
-
super(client, version, service, method_names)
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
@@ -1,34 +0,0 @@
|
|
1
|
-
require_relative "service"
|
2
|
-
|
3
|
-
module Adyen
|
4
|
-
class Payments < Service
|
5
|
-
attr_accessor :version
|
6
|
-
DEFAULT_VERSION = 64
|
7
|
-
|
8
|
-
def initialize(client, version = DEFAULT_VERSION)
|
9
|
-
service = "Payment"
|
10
|
-
method_names = [
|
11
|
-
:authorise,
|
12
|
-
:authorise3d,
|
13
|
-
:authorise3ds2,
|
14
|
-
:capture,
|
15
|
-
:cancel,
|
16
|
-
:refund,
|
17
|
-
:cancel_or_refund,
|
18
|
-
:adjust_authorisation,
|
19
|
-
:donate,
|
20
|
-
:get_authentication_result,
|
21
|
-
:technical_cancel,
|
22
|
-
:void_pending_refund,
|
23
|
-
:retrieve_3ds2_result
|
24
|
-
]
|
25
|
-
with_application_info = [
|
26
|
-
:authorise,
|
27
|
-
:authorise3d,
|
28
|
-
:authorise3ds2
|
29
|
-
]
|
30
|
-
|
31
|
-
super(client, version, service, method_names, with_application_info)
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
@@ -1,22 +0,0 @@
|
|
1
|
-
require_relative 'service'
|
2
|
-
|
3
|
-
module Adyen
|
4
|
-
class Payouts < Service
|
5
|
-
attr_accessor :version
|
6
|
-
DEFAULT_VERSION = 64
|
7
|
-
|
8
|
-
def initialize(client, version = DEFAULT_VERSION)
|
9
|
-
service = 'Payout'
|
10
|
-
method_names = [
|
11
|
-
:store_detail,
|
12
|
-
:store_detail_and_submit_third_party,
|
13
|
-
:submit_third_party,
|
14
|
-
:confirm_third_party,
|
15
|
-
:decline_third_party,
|
16
|
-
:payout
|
17
|
-
]
|
18
|
-
|
19
|
-
super(client, version, service, method_names)
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
@@ -1,19 +0,0 @@
|
|
1
|
-
require_relative 'service'
|
2
|
-
|
3
|
-
module Adyen
|
4
|
-
class PosTerminalManagement < Service
|
5
|
-
attr_accessor :version
|
6
|
-
DEFAULT_VERSION = 1
|
7
|
-
|
8
|
-
def initialize(client, version = DEFAULT_VERSION)
|
9
|
-
service = 'Terminal'
|
10
|
-
method_names = [
|
11
|
-
:assign_terminals,
|
12
|
-
:find_terminal,
|
13
|
-
:get_terminals_under_account
|
14
|
-
]
|
15
|
-
|
16
|
-
super(client, version, service, method_names)
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
@@ -1,15 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"card": {
|
3
|
-
"number": "4111111111111111",
|
4
|
-
"expiryMonth": "8",
|
5
|
-
"expiryYear": "2018",
|
6
|
-
"cvc": "737",
|
7
|
-
"holderName": "John Smith"
|
8
|
-
},
|
9
|
-
"reference": "Merchant Reference",
|
10
|
-
"merchantAccount": "TestMerchant",
|
11
|
-
"shopperReference": "shopperReference",
|
12
|
-
"recurring": {
|
13
|
-
"contract": "RECURRING"
|
14
|
-
}
|
15
|
-
}
|
data/spec/postfmapi_spec.rb
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
require "spec_helper"
|
2
|
-
|
3
|
-
RSpec.describe Adyen::PosTerminalManagement, service: "POS Terminal Management service" do
|
4
|
-
# client instance to be used in dynamically generated tests
|
5
|
-
client = create_client(:basic)
|
6
|
-
|
7
|
-
# methods / values to test for
|
8
|
-
# format is defined in spec_helper
|
9
|
-
test_sets = [
|
10
|
-
["find_terminal", "merchantAccount", "TestMerchant"],
|
11
|
-
["get_terminals_under_account", "merchantAccounts", [{ "merchantAccount" => "TestMerchant", "inStoreTerminals" => ["P400Plus-123456789"] }]],
|
12
|
-
["assign_terminals", "results", { "e285-123456789" => "Done" }]
|
13
|
-
]
|
14
|
-
|
15
|
-
generate_tests(client, "Terminal", test_sets, client.postfmapi)
|
16
|
-
end
|