adyen-ruby-api-library 4.1.0 → 4.2.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: 3c88f2064ec4c1e38cfbd6b4d07ea19e0f85e93b40529f17bbdb54674d34adb0
4
- data.tar.gz: 2948eb3c524bc1361688bf800bda8e9f24f3aaa2b7ec199914ccbb5020b8d2f5
3
+ metadata.gz: 4918481180dd1d5931b3535fcd3c2713795711b06d31d8dc825aa6ac1e11a78a
4
+ data.tar.gz: 036f93d20d3de1529d47da288efb8ee84e9c5d7c43ad148b4fed02adfbd586b0
5
5
  SHA512:
6
- metadata.gz: daebc0ac72b38814bd7111b47a91933ad5f5c5ae7b83eb50ef70fc1540251febb3a2cb2de4d644e0d49d48a1e4e3fa8de09450fa030627f13b48e7af558bf85c
7
- data.tar.gz: 1e2a7692384f3da060ede6be60f5ac404c84360892a28b71a632a32ca42483900cba0699b865ab5ca82605cab0d19ae3b15e8b1dac37f19c4f8d51fb00a363b2
6
+ metadata.gz: 656fac37bcddc4952ffb812c368f32014448bc6d690cd0cd0f6f4c4ff065b09c74389747a260b41311f1bf3187168a78bcbc869940b23e6e33d157ff5133d598
7
+ data.tar.gz: 3e03db192f0a9cb8904f7477e2ffaf4d2833da7d7386273b79a04ba1a2fe1375a4a138597ef11d5af74a5983b5c48c624c3cd9cabfdaece78cc4e6ca048651ac
@@ -0,0 +1,27 @@
1
+ ---
2
+ name: Bug report
3
+ about: Create a report to help us improve
4
+ title: ''
5
+ labels: ''
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ **Describe the bug**
11
+ A clear and concise description of what the bug is.
12
+
13
+ **How to reproduce**
14
+ Steps to reproduce the behavior.
15
+
16
+ **Expected behavior**
17
+ A clear and concise description of what you expected to happen.
18
+
19
+ **Screenshots**
20
+ If applicable, add screenshots to help explain your problem.
21
+
22
+ **Desktop (please complete the following information):**
23
+ - ruby Version: [x.y.z]
24
+ - Library Version: [x.y.z]
25
+
26
+ **Additional context**
27
+ Add any other context about the problem here.
@@ -0,0 +1,23 @@
1
+ ---
2
+ name: Feature request
3
+ about: Suggest an idea for this project
4
+ title: ''
5
+ labels: ''
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ **ruby version**: x.y.z
11
+ **Library version**: x.y.z
12
+
13
+ **Is your feature request related to a problem? Please describe.**
14
+ A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
15
+
16
+ **Describe the solution you'd like**
17
+ A clear and concise description of what you want to happen.
18
+
19
+ **Describe alternatives you've considered**
20
+ A clear and concise description of any alternative solutions or features you've considered.
21
+
22
+ **Additional context**
23
+ Add any other context or screenshots about the feature request here.
@@ -0,0 +1,7 @@
1
+ **Description**
2
+ <!-- Please provide a description of the changes proposed in the Pull Request -->
3
+
4
+ **Tested scenarios**
5
+ <!-- Description of tested scenarios -->
6
+
7
+ **Fixed issue**: <!-- #-prefixed issue number -->
data/README.md CHANGED
@@ -14,6 +14,7 @@ The Library supports all APIs under the following services:
14
14
  * recurring
15
15
  * marketpay
16
16
  * postfmapi
17
+ * data_protection
17
18
 
18
19
  ## Requirements
19
20
 
@@ -146,9 +147,11 @@ adyen.checkout.version = 50
146
147
  - find_terminal
147
148
  - get_terminals_under_account
148
149
 
149
- ## Support
150
+ **data_protection:**
151
+ - request_subject_erasure
150
152
 
151
- If you have any problems, questions or suggestions, create an issue here or send your inquiry to support@adyen.com.
153
+ ## Support
154
+ If you have a feature request, or spotted a bug or a technical problem, create a GitHub issue. For other questions, contact our [support team](https://support.adyen.com/hc/en-us/requests/new?ticket_form_id=360000705420).
152
155
 
153
156
  ## Contributing
154
157
  We strongly encourage you to join us in contributing to this repository so everyone can benefit from:
@@ -9,6 +9,7 @@ require_relative "adyen/services/recurring"
9
9
  require_relative "adyen/services/marketpay"
10
10
  require_relative "adyen/services/postfmapi"
11
11
  require_relative "adyen/services/service"
12
+ require_relative "adyen/services/data_protection"
12
13
  require_relative "adyen/hash_with_accessors"
13
14
  require_relative "adyen/utils/hmac_validator"
14
15
 
@@ -54,6 +54,9 @@ module Adyen
54
54
  when "Terminal"
55
55
  url = "https://postfmapi-#{@env}.adyen.com/postfmapi/terminal"
56
56
  supports_live_url_prefix = false
57
+ when "DataProtectionService"
58
+ url = "https://ca-#{@env}.adyen.com/ca/services"
59
+ supports_live_url_prefix = false
57
60
  else
58
61
  raise ArgumentError, "Invalid service specified"
59
62
  end
@@ -194,5 +197,9 @@ module Adyen
194
197
  def postfmapi
195
198
  @postfmapi ||= Adyen::PosTerminalManagement.new(self)
196
199
  end
200
+
201
+ def data_protection
202
+ @data_protection ||= Adyen::DataProtection.new(self)
203
+ end
197
204
  end
198
205
  end
@@ -0,0 +1,17 @@
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,4 +1,4 @@
1
1
  module Adyen
2
2
  NAME = "adyen-ruby-api-library"
3
- VERSION = "4.1.0".freeze
3
+ VERSION = "4.2.0".freeze
4
4
  end
@@ -0,0 +1,14 @@
1
+ require "spec_helper"
2
+
3
+ RSpec.describe Adyen::DataProtection, service: "Data Protection 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
+ ["request_subject_erasure", "result", "SUCCESS"],
11
+ ]
12
+
13
+ generate_tests(client, "DataProtectionService", test_sets, client.data_protection)
14
+ end
@@ -0,0 +1,5 @@
1
+ {
2
+ "merchantAccount": "test_merchant",
3
+ "pspReference": "test_reference",
4
+ "forceErasure": true
5
+ }
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.1.0
4
+ version: 4.2.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-04-07 00:00:00.000000000 Z
11
+ date: 2020-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -77,6 +77,9 @@ extensions: []
77
77
  extra_rdoc_files: []
78
78
  files:
79
79
  - ".github/CODEOWNERS"
80
+ - ".github/ISSUE_TEMPLATE/bug_report.md"
81
+ - ".github/ISSUE_TEMPLATE/feature_request.md"
82
+ - ".github/PULL_REQUEST_TEMPLATE.md"
80
83
  - ".gitignore"
81
84
  - ".travis.yml"
82
85
  - CODE_OF_CONDUCT.md
@@ -109,6 +112,7 @@ files:
109
112
  - lib/adyen/result.rb
110
113
  - lib/adyen/services/checkout.rb
111
114
  - lib/adyen/services/checkout_utility.rb
115
+ - lib/adyen/services/data_protection.rb
112
116
  - lib/adyen/services/marketpay.rb
113
117
  - lib/adyen/services/payments.rb
114
118
  - lib/adyen/services/payouts.rb
@@ -122,6 +126,7 @@ files:
122
126
  - spec/checkout_spec.rb
123
127
  - spec/checkout_utility_spec.rb
124
128
  - spec/client_spec.rb
129
+ - spec/data_protection_spec.rb
125
130
  - spec/errors_spec.rb
126
131
  - spec/fund_spec.rb
127
132
  - spec/hash_with_accessors_spec.rb
@@ -148,6 +153,7 @@ files:
148
153
  - spec/mocks/requests/Checkout/payments.json
149
154
  - spec/mocks/requests/Checkout/verify.json
150
155
  - spec/mocks/requests/CheckoutUtility/origin_keys.json
156
+ - spec/mocks/requests/DataProtectionService/request_subject_erasure.json
151
157
  - spec/mocks/requests/Fund/account_holder_balance.json
152
158
  - spec/mocks/requests/Fund/account_holder_transaction_list.json
153
159
  - spec/mocks/requests/Fund/payout_account_holder.json
@@ -202,6 +208,7 @@ files:
202
208
  - spec/mocks/responses/Checkout/payments.json
203
209
  - spec/mocks/responses/Checkout/verify.json
204
210
  - spec/mocks/responses/CheckoutUtility/origin_keys.json
211
+ - spec/mocks/responses/DataProtectionService/request_subject_erasure.json
205
212
  - spec/mocks/responses/Fund/account_holder_balance.json
206
213
  - spec/mocks/responses/Fund/account_holder_transaction_list.json
207
214
  - spec/mocks/responses/Fund/payout_account_holder.json