adyen-ruby-api-library 4.2.0 → 4.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +8 -0
- data/README.md +1 -0
- data/lib/adyen-ruby-api-library.rb +0 -11
- data/lib/adyen/services/payments.rb +2 -1
- data/lib/adyen/version.rb +1 -1
- data/spec/mocks/requests/Payment/donate.json +10 -0
- data/spec/mocks/responses/Payment/donate.json +4 -0
- data/spec/payments_spec.rb +2 -1
- data/spec/service_spec.rb +1 -0
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d77315c126cb7ae2f8600f5bc8e853fd868a6bc6c30c36add08cfbe93285488
|
4
|
+
data.tar.gz: bf4c1f6498020da769aecba45b4fe6ce43f017ca71e083723b2bfa8903d3932e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd3c31163dae11854ef0d921ff772ddd3d5b526c2bef106a26edd150e2f517fd306cde43e7839313e134dd72f86eb6f0c37a2a19cb52efc169892e8849b9ceb0
|
7
|
+
data.tar.gz: c51e518693653f525a5dc06ee71d859614f5a741b4109ded91a29e9327c768c9b7c0c5f1783fdceeb740b1e6f95074bfc7f0336b7228eb1a3e66a34bd3730bd1
|
data/README.md
CHANGED
@@ -12,14 +12,3 @@ require_relative "adyen/services/service"
|
|
12
12
|
require_relative "adyen/services/data_protection"
|
13
13
|
require_relative "adyen/hash_with_accessors"
|
14
14
|
require_relative "adyen/utils/hmac_validator"
|
15
|
-
|
16
|
-
# add snake case to camel case converter to String
|
17
|
-
# to convert rubinic method names to Adyen API methods
|
18
|
-
#
|
19
|
-
# i.e. snake_case -> snakeCase
|
20
|
-
# note that the first letter is not capitalized as normal
|
21
|
-
class String
|
22
|
-
def to_camel_case
|
23
|
-
split("_").collect.with_index{ |x, i| i > 0 ? x.capitalize : x }.join
|
24
|
-
end
|
25
|
-
end
|
data/lib/adyen/version.rb
CHANGED
data/spec/payments_spec.rb
CHANGED
@@ -14,7 +14,8 @@ RSpec.describe Adyen::Payments, service: "payments service" do
|
|
14
14
|
["cancel", "response", "[cancel-received]"],
|
15
15
|
["cancel_or_refund", "response", "[cancelOrRefund-received]"],
|
16
16
|
["capture", "response", "[capture-received]"],
|
17
|
-
["refund", "response", "[refund-received]"]
|
17
|
+
["refund", "response", "[refund-received]"],
|
18
|
+
["donate", "response", "[donation-received]"]
|
18
19
|
]
|
19
20
|
|
20
21
|
generate_tests(client, "Payment", test_sets, client.payments)
|
data/spec/service_spec.rb
CHANGED
@@ -19,6 +19,7 @@ RSpec.describe Adyen::Service do
|
|
19
19
|
expect(described_class.action_for_method_name(:delete_bank_accounts)).to eq 'deleteBankAccounts'
|
20
20
|
expect(described_class.action_for_method_name(:delete_shareholders)).to eq 'deleteShareholders'
|
21
21
|
expect(described_class.action_for_method_name(:disable)).to eq 'disable'
|
22
|
+
expect(described_class.action_for_method_name(:donate)).to eq 'donate'
|
22
23
|
expect(described_class.action_for_method_name(:get_account_holder)).to eq 'getAccountHolder'
|
23
24
|
expect(described_class.action_for_method_name(:get_tier_configuration)).to eq 'getTierConfiguration'
|
24
25
|
expect(described_class.action_for_method_name(:get_uploaded_documents)).to eq 'getUploadedDocuments'
|
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.
|
4
|
+
version: 4.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adyen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -80,6 +80,7 @@ files:
|
|
80
80
|
- ".github/ISSUE_TEMPLATE/bug_report.md"
|
81
81
|
- ".github/ISSUE_TEMPLATE/feature_request.md"
|
82
82
|
- ".github/PULL_REQUEST_TEMPLATE.md"
|
83
|
+
- ".github/dependabot.yml"
|
83
84
|
- ".gitignore"
|
84
85
|
- ".travis.yml"
|
85
86
|
- CODE_OF_CONDUCT.md
|
@@ -174,6 +175,7 @@ files:
|
|
174
175
|
- spec/mocks/requests/Payment/cancel.json
|
175
176
|
- spec/mocks/requests/Payment/cancel_or_refund.json
|
176
177
|
- spec/mocks/requests/Payment/capture.json
|
178
|
+
- spec/mocks/requests/Payment/donate.json
|
177
179
|
- spec/mocks/requests/Payment/refund.json
|
178
180
|
- spec/mocks/requests/Payout/confirm_third_party.json
|
179
181
|
- spec/mocks/requests/Payout/decline_third_party.json
|
@@ -229,6 +231,7 @@ files:
|
|
229
231
|
- spec/mocks/responses/Payment/cancel.json
|
230
232
|
- spec/mocks/responses/Payment/cancel_or_refund.json
|
231
233
|
- spec/mocks/responses/Payment/capture.json
|
234
|
+
- spec/mocks/responses/Payment/donate.json
|
232
235
|
- spec/mocks/responses/Payment/refund.json
|
233
236
|
- spec/mocks/responses/Payout/confirm_third_party.json
|
234
237
|
- spec/mocks/responses/Payout/decline_third_party.json
|