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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4918481180dd1d5931b3535fcd3c2713795711b06d31d8dc825aa6ac1e11a78a
4
- data.tar.gz: 036f93d20d3de1529d47da288efb8ee84e9c5d7c43ad148b4fed02adfbd586b0
3
+ metadata.gz: 5d77315c126cb7ae2f8600f5bc8e853fd868a6bc6c30c36add08cfbe93285488
4
+ data.tar.gz: bf4c1f6498020da769aecba45b4fe6ce43f017ca71e083723b2bfa8903d3932e
5
5
  SHA512:
6
- metadata.gz: 656fac37bcddc4952ffb812c368f32014448bc6d690cd0cd0f6f4c4ff065b09c74389747a260b41311f1bf3187168a78bcbc869940b23e6e33d157ff5133d598
7
- data.tar.gz: 3e03db192f0a9cb8904f7477e2ffaf4d2833da7d7386273b79a04ba1a2fe1375a4a138597ef11d5af74a5983b5c48c624c3cd9cabfdaece78cc4e6ca048651ac
6
+ metadata.gz: dd3c31163dae11854ef0d921ff772ddd3d5b526c2bef106a26edd150e2f517fd306cde43e7839313e134dd72f86eb6f0c37a2a19cb52efc169892e8849b9ceb0
7
+ data.tar.gz: c51e518693653f525a5dc06ee71d859614f5a741b4109ded91a29e9327c768c9b7c0c5f1783fdceeb740b1e6f95074bfc7f0336b7228eb1a3e66a34bd3730bd1
@@ -0,0 +1,8 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: bundler
4
+ directory: "/"
5
+ schedule:
6
+ interval: daily
7
+ time: "04:00"
8
+ open-pull-requests-limit: 10
data/README.md CHANGED
@@ -94,6 +94,7 @@ adyen.checkout.version = 50
94
94
  - refund
95
95
  - cancel_or_refund
96
96
  - adjust_authorisation
97
+ - donate
97
98
 
98
99
  **payouts:**
99
100
  - confirm_third_party
@@ -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
@@ -15,7 +15,8 @@ module Adyen
15
15
  :cancel,
16
16
  :refund,
17
17
  :cancel_or_refund,
18
- :adjust_authorisation
18
+ :adjust_authorisation,
19
+ :donate
19
20
  ]
20
21
 
21
22
  super(client, version, service, method_names)
@@ -1,4 +1,4 @@
1
1
  module Adyen
2
2
  NAME = "adyen-ruby-api-library"
3
- VERSION = "4.2.0".freeze
3
+ VERSION = "4.3.0".freeze
4
4
  end
@@ -0,0 +1,10 @@
1
+ {
2
+ "originalReference": "882594077439995E",
3
+ "modificationAmount": {
4
+ "value": 100,
5
+ "currency": "USD"
6
+ },
7
+ "reference": "Donation",
8
+ "donationAccount": "TestMerchantDonations",
9
+ "merchantAccount": "TestMerchant"
10
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "pspReference": "882594132885209C",
3
+ "response": "[donation-received]"
4
+ }
@@ -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)
@@ -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.2.0
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-05-22 00:00:00.000000000 Z
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