adyen-ruby-api-library 10.1.2 → 10.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.yml +93 -0
- data/.github/ISSUE_TEMPLATE/config.yml +1 -0
- data/.github/ISSUE_TEMPLATE/feature_request.yml +47 -0
- data/README.md +1 -2
- data/VERSION +1 -1
- data/lib/adyen/services/balancePlatform/grant_accounts_api.rb +3 -0
- data/lib/adyen/services/balancePlatform/grant_offers_api.rb +6 -0
- data/lib/adyen/services/balancePlatform/manage_sca_devices_api.rb +20 -0
- data/lib/adyen/version.rb +1 -1
- metadata +5 -4
- data/.github/ISSUE_TEMPLATE/bug_report.md +0 -27
- data/.github/ISSUE_TEMPLATE/feature_request.md +0 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 137ddf1d5466bdff9b44038d6e74ccc8fca34e8ca3f0230d3112f9994cf23239
|
4
|
+
data.tar.gz: 1f8778735ff8fbb89931351f320792c7b6e648b6de646ae396b99dd10f66be53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4aaf4afc6b1c9285a99f368ee338543cfa27e94de751bc54c4f2fee32e359cb3bc0c0753da28f54d5bf9704396a062c196912d1e944afc445eece0472e00af85
|
7
|
+
data.tar.gz: 9ccf08ccfad1b8f8b49da70fe8d30e1f4f382e578c7a513ae9e925abb8abc776ede04d2d1868275a2c96b1b6d28a3fb8177d7b74130f23b464a22b3ed425a3bd
|
@@ -0,0 +1,93 @@
|
|
1
|
+
name: Bug report
|
2
|
+
description: Report a bug or issue. See closed issues before reporting to confirm issue has not been reported or resolved.
|
3
|
+
title: "[Bug]: "
|
4
|
+
labels: ["bug"]
|
5
|
+
assignees: []
|
6
|
+
body:
|
7
|
+
- type: markdown
|
8
|
+
attributes:
|
9
|
+
value: "#### Thank you for reporting this issue. Please provide all the required information to help us understand and resolve the issue."
|
10
|
+
|
11
|
+
- type: input
|
12
|
+
id: bug-description
|
13
|
+
attributes:
|
14
|
+
label: "Description"
|
15
|
+
description: "Provide a summary of the issue."
|
16
|
+
placeholder: "Example: Adyen Checkout API returns an unexpected error when..."
|
17
|
+
validations:
|
18
|
+
required: true
|
19
|
+
|
20
|
+
- type: textarea
|
21
|
+
id: reproduce-steps
|
22
|
+
attributes:
|
23
|
+
label: "Steps to reproduce"
|
24
|
+
description: "List necessary steps to help us reproduce the issue."
|
25
|
+
placeholder: |
|
26
|
+
1. Install the Adyen API'...'
|
27
|
+
2. Create '...'
|
28
|
+
3. Import and use the NotificationRequest object '...'
|
29
|
+
3. Run '...'
|
30
|
+
4. Observer error '...'
|
31
|
+
validations:
|
32
|
+
required: true
|
33
|
+
|
34
|
+
- type: textarea
|
35
|
+
id: actual-behavior
|
36
|
+
attributes:
|
37
|
+
label: "Actual behavior"
|
38
|
+
description: "Describe what happened - the error or unexpected behaviour you see."
|
39
|
+
placeholder: "Example: The API returns a 500 internal server error."
|
40
|
+
|
41
|
+
- type: textarea
|
42
|
+
id: expected-behavior
|
43
|
+
attributes:
|
44
|
+
label: "Expected behavior"
|
45
|
+
description: "Describe what you expected to happen."
|
46
|
+
placeholder: "Example: The Adyen Checkout API should return a 200 status with the correct response payload."
|
47
|
+
validations:
|
48
|
+
required: true
|
49
|
+
|
50
|
+
- type: textarea
|
51
|
+
id: code-snippet
|
52
|
+
attributes:
|
53
|
+
label: "Code snippet or screenshots (if applicable)"
|
54
|
+
description: "Provide relevant code snippets or screenshots to illustrate the issue."
|
55
|
+
placeholder: "```ruby\n// Your code here\n```"
|
56
|
+
|
57
|
+
- type: input
|
58
|
+
id: adyen-api-version
|
59
|
+
attributes:
|
60
|
+
label: "Adyen Ruby API Library version"
|
61
|
+
description: "Specify the version of the Adyen API library you're using."
|
62
|
+
placeholder: "Example: 13.4.0"
|
63
|
+
validations:
|
64
|
+
required: true
|
65
|
+
|
66
|
+
- type: input
|
67
|
+
id: ruby-version
|
68
|
+
attributes:
|
69
|
+
label: "Ruby language version"
|
70
|
+
description: "Specify the Ruby version you're using."
|
71
|
+
placeholder: "Example: Ruby 3.42"
|
72
|
+
validations:
|
73
|
+
required: true
|
74
|
+
|
75
|
+
- type: dropdown
|
76
|
+
id: operating-system
|
77
|
+
attributes:
|
78
|
+
label: "Operating System"
|
79
|
+
description: "Select your operating system."
|
80
|
+
options:
|
81
|
+
- Windows
|
82
|
+
- macOS
|
83
|
+
- Linux
|
84
|
+
- Other
|
85
|
+
validations:
|
86
|
+
required: true
|
87
|
+
|
88
|
+
- type: textarea
|
89
|
+
id: additional-context
|
90
|
+
attributes:
|
91
|
+
label: "Additional context"
|
92
|
+
description: "Provide any other relevant details."
|
93
|
+
placeholder: "Example: This issue started after updating to version X."
|
@@ -0,0 +1 @@
|
|
1
|
+
blank_issues_enabled: false
|
@@ -0,0 +1,47 @@
|
|
1
|
+
name: Feature request
|
2
|
+
description: Request a new feature or improvement. See open issues before requesting.
|
3
|
+
title: "[Feature]: "
|
4
|
+
labels: ["Feature"]
|
5
|
+
assignees: []
|
6
|
+
body:
|
7
|
+
- type: markdown
|
8
|
+
attributes:
|
9
|
+
value: "#### Is your feature request related to a problem? Please describe."
|
10
|
+
|
11
|
+
- type: input
|
12
|
+
id: feature-summary
|
13
|
+
attributes:
|
14
|
+
label: "Feature summary"
|
15
|
+
description: "Provide a short description of the feature request."
|
16
|
+
placeholder: "Example: Add support for donation event."
|
17
|
+
|
18
|
+
- type: textarea
|
19
|
+
id: problem-statement
|
20
|
+
attributes:
|
21
|
+
label: "Problem statement"
|
22
|
+
description: "Explain the problem this feature aims to solve."
|
23
|
+
placeholder: "Example: I have an issue with consuming the donations webhook."
|
24
|
+
validations:
|
25
|
+
required: true
|
26
|
+
|
27
|
+
- type: textarea
|
28
|
+
id: proposed-solution
|
29
|
+
attributes:
|
30
|
+
label: "Proposed solution"
|
31
|
+
description: "Describe how you want this feature to work."
|
32
|
+
placeholder: "Example: Add Donation enum to ..."
|
33
|
+
validations:
|
34
|
+
required: true
|
35
|
+
|
36
|
+
- type: textarea
|
37
|
+
id: alternatives
|
38
|
+
attributes:
|
39
|
+
label: "Alternatives considered"
|
40
|
+
description: "Describe any alternative solutions you've explored."
|
41
|
+
placeholder: "Example: I tried to extend the current namespace but ..."
|
42
|
+
|
43
|
+
- type: textarea
|
44
|
+
id: additional-context
|
45
|
+
attributes:
|
46
|
+
label: "Additional context"
|
47
|
+
description: "Provide any extra details, references, or screenshots."
|
data/README.md
CHANGED
@@ -17,8 +17,7 @@ This library supports the following:
|
|
17
17
|
| [Management API](https://docs.adyen.com/api-explorer/Management/3/overview) | v3 | Configure and manage your Adyen company and merchant accounts, stores, and payment terminals. | [Management](lib/adyen/services/management.rb) |
|
18
18
|
| [Payments API](https://docs.adyen.com/api-explorer/Payment/68/overview) | v68 | Our classic integration for online payments. | [Classic Integration API](lib/adyen/services/payment.rb) |
|
19
19
|
| [Payouts API](https://docs.adyen.com/api-explorer/Payout/68/overview) | v68 | Endpoints for sending funds to your customers. | [Payout](lib/adyen/services/payout.rb) |
|
20
|
-
| [POS Terminal Management API](https://docs.adyen.com/api-explorer/postfmapi/1/overview) | v1 | Endpoints for managing your point-of-sale payment terminals.
|
21
|
-
| [Recurring API](https://docs.adyen.com/api-explorer/Recurring/68/overview) | v68 | Endpoints for managing saved payment details. | [Recurring](lib/adyen/services/recurring.rb) |
|
20
|
+
| [POS Terminal Management API](https://docs.adyen.com/api-explorer/postfmapi/1/overview) | ~~v1~~ | ~~Endpoints for managing your point-of-sale payment terminals.~~ ‼️ **Deprecated**: use instead the [Management API](https://docs.adyen.com/api-explorer/Management/latest/overview) for the management of your terminal fleet. | ~~[TerminalManagement](lib/adyen/services/posTerminalManagement.rb)~~ || [Recurring API](https://docs.adyen.com/api-explorer/Recurring/68/overview) | v68 | Endpoints for managing saved payment details. | [Recurring](lib/adyen/services/recurring.rb) |
|
22
21
|
| [Stored Value API](https://docs.adyen.com/payment-methods/gift-cards/stored-value-api) | v46 | Manage both online and point-of-sale gift cards and other stored-value cards. | [StoredValue](lib/adyen/services/storedValue.rb) |
|
23
22
|
| [Transfers API](https://docs.adyen.com/api-explorer/transfers/4/overview) | v4 | The Transfers API provides endpoints that can be used to get information about all your transactions, move funds within your balance platform or send funds from your balance platform to a transfer instrument. | [Transfers](lib/adyen/services/transfers.rb) |
|
24
23
|
| [Cloud-based Terminal API](https://docs.adyen.com/point-of-sale/design-your-integration/terminal-api/terminal-api-reference/) | - | Our point-of-sale integration. | [TerminalCloudAPI](lib/adyen/services/terminalCloudAPI.rb) |
|
data/VERSION
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
10.
|
1
|
+
10.2.0
|
2
2
|
|
@@ -13,6 +13,9 @@ module Adyen
|
|
13
13
|
end
|
14
14
|
|
15
15
|
# Get a grant account
|
16
|
+
#
|
17
|
+
# Deprecated since Configuration API v2
|
18
|
+
# Use the `/grantAccounts/{id}` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/get/grantAccounts/(id)) instead.
|
16
19
|
def get_grant_account(id, headers: {})
|
17
20
|
endpoint = '/grantAccounts/{id}'.gsub(/{.+?}/, '%s')
|
18
21
|
endpoint = endpoint.gsub(%r{^/}, '')
|
@@ -13,6 +13,9 @@ module Adyen
|
|
13
13
|
end
|
14
14
|
|
15
15
|
# Get all available grant offers
|
16
|
+
#
|
17
|
+
# Deprecated since Configuration API v2
|
18
|
+
# Use the `/grantOffers` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/get/grantOffers) instead.
|
16
19
|
def get_all_available_grant_offers(headers: {}, query_params: {})
|
17
20
|
endpoint = '/grantOffers'.gsub(/{.+?}/, '%s')
|
18
21
|
endpoint = endpoint.gsub(%r{^/}, '')
|
@@ -23,6 +26,9 @@ module Adyen
|
|
23
26
|
end
|
24
27
|
|
25
28
|
# Get a grant offer
|
29
|
+
#
|
30
|
+
# Deprecated since Configuration API v2
|
31
|
+
# Use the `/grantOffers/{id}` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/get/grantOffers/(id)) instead.
|
26
32
|
def get_grant_offer(grant_offer_id, headers: {})
|
27
33
|
endpoint = '/grantOffers/{grantOfferId}'.gsub(/{.+?}/, '%s')
|
28
34
|
endpoint = endpoint.gsub(%r{^/}, '')
|
@@ -12,6 +12,16 @@ module Adyen
|
|
12
12
|
super(client, version, 'BalancePlatform')
|
13
13
|
end
|
14
14
|
|
15
|
+
# Complete an association between an SCA device and a resource
|
16
|
+
def complete_association_between_sca_device_and_resource(request, device_id, headers: {})
|
17
|
+
endpoint = '/registeredDevices/{deviceId}/associations'.gsub(/{.+?}/, '%s')
|
18
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
19
|
+
endpoint = format(endpoint, device_id)
|
20
|
+
|
21
|
+
action = { method: 'patch', url: endpoint }
|
22
|
+
@client.call_adyen_api(@service, action, request, headers, @version)
|
23
|
+
end
|
24
|
+
|
15
25
|
# Complete the registration of an SCA device
|
16
26
|
def complete_registration_of_sca_device(request, id, headers: {})
|
17
27
|
endpoint = '/registeredDevices/{id}'.gsub(/{.+?}/, '%s')
|
@@ -32,6 +42,16 @@ module Adyen
|
|
32
42
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
33
43
|
end
|
34
44
|
|
45
|
+
# Initiate an association between an SCA device and a resource
|
46
|
+
def initiate_association_between_sca_device_and_resource(request, device_id, headers: {})
|
47
|
+
endpoint = '/registeredDevices/{deviceId}/associations'.gsub(/{.+?}/, '%s')
|
48
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
49
|
+
endpoint = format(endpoint, device_id)
|
50
|
+
|
51
|
+
action = { method: 'post', url: endpoint }
|
52
|
+
@client.call_adyen_api(@service, action, request, headers, @version)
|
53
|
+
end
|
54
|
+
|
35
55
|
# Initiate the registration of an SCA device
|
36
56
|
def initiate_registration_of_sca_device(request, headers: {})
|
37
57
|
endpoint = '/registeredDevices'.gsub(/{.+?}/, '%s')
|
data/lib/adyen/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: adyen-ruby-api-library
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 10.
|
4
|
+
version: 10.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adyen
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-02-
|
10
|
+
date: 2025-02-25 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: faraday
|
@@ -77,8 +77,9 @@ extensions: []
|
|
77
77
|
extra_rdoc_files: []
|
78
78
|
files:
|
79
79
|
- ".github/CODEOWNERS"
|
80
|
-
- ".github/ISSUE_TEMPLATE/bug_report.
|
81
|
-
- ".github/ISSUE_TEMPLATE/
|
80
|
+
- ".github/ISSUE_TEMPLATE/bug_report.yml"
|
81
|
+
- ".github/ISSUE_TEMPLATE/config.yml"
|
82
|
+
- ".github/ISSUE_TEMPLATE/feature_request.yml"
|
82
83
|
- ".github/PULL_REQUEST_TEMPLATE.md"
|
83
84
|
- ".github/release.yml"
|
84
85
|
- ".github/workflows/codeql.yml"
|
@@ -1,27 +0,0 @@
|
|
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.
|
@@ -1,23 +0,0 @@
|
|
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.
|