adyen-ruby-api-library 4.1.0 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/ISSUE_TEMPLATE/bug_report.md +27 -0
- data/.github/ISSUE_TEMPLATE/feature_request.md +23 -0
- data/.github/PULL_REQUEST_TEMPLATE.md +7 -0
- data/README.md +5 -2
- data/lib/adyen-ruby-api-library.rb +1 -0
- data/lib/adyen/client.rb +7 -0
- data/lib/adyen/services/data_protection.rb +17 -0
- data/lib/adyen/version.rb +1 -1
- data/spec/data_protection_spec.rb +14 -0
- data/spec/mocks/requests/DataProtectionService/request_subject_erasure.json +5 -0
- data/spec/mocks/responses/DataProtectionService/request_subject_erasure.json +3 -0
- metadata +9 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4918481180dd1d5931b3535fcd3c2713795711b06d31d8dc825aa6ac1e11a78a
|
4
|
+
data.tar.gz: 036f93d20d3de1529d47da288efb8ee84e9c5d7c43ad148b4fed02adfbd586b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
-
|
150
|
+
**data_protection:**
|
151
|
+
- request_subject_erasure
|
150
152
|
|
151
|
-
|
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
|
|
data/lib/adyen/client.rb
CHANGED
@@ -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
|
data/lib/adyen/version.rb
CHANGED
@@ -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
|
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.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-
|
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
|