-
Notifications
You must be signed in to change notification settings - Fork 53
Code generation: update services and models #305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
AdyenAutomationBot
wants to merge
1
commit into
main
Choose a base branch
from
sdk-automation/models
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
lib/adyen/services/balancePlatform/sca_association_management_api.rb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
require_relative '../service' | ||
module Adyen | ||
|
||
# NOTE: This class is auto generated by OpenAPI Generator | ||
# Ref: https://openapi-generator.tech | ||
# | ||
# Do not edit the class manually. | ||
class SCAAssociationManagementApi < Service | ||
attr_accessor :service, :version | ||
|
||
def initialize(client, version = DEFAULT_VERSION) | ||
super(client, version, 'BalancePlatform') | ||
end | ||
|
||
# Approve a pending approval association | ||
def approve_association(request, www_authenticate, headers: {}) | ||
endpoint = '/scaAssociations'.gsub(/{.+?}/, '%s') | ||
endpoint = endpoint.gsub(%r{^/}, '') | ||
endpoint = format(endpoint) | ||
|
||
action = { method: 'patch', url: endpoint } | ||
@client.call_adyen_api(@service, action, request, headers, @version) | ||
end | ||
|
||
# Get a list of devices associated with an entity | ||
def list_associations(headers: {}, query_params: {}) | ||
endpoint = '/scaAssociations'.gsub(/{.+?}/, '%s') | ||
endpoint = endpoint.gsub(%r{^/}, '') | ||
endpoint = format(endpoint) | ||
endpoint += create_query_string(query_params) | ||
action = { method: 'get', url: endpoint } | ||
@client.call_adyen_api(@service, action, {}, headers, @version) | ||
end | ||
|
||
# Delete association to devices | ||
def remove_association(request, www_authenticate, headers: {}) | ||
endpoint = '/scaAssociations'.gsub(/{.+?}/, '%s') | ||
endpoint = endpoint.gsub(%r{^/}, '') | ||
endpoint = format(endpoint) | ||
|
||
action = { method: 'delete', url: endpoint } | ||
@client.call_adyen_api(@service, action, request, headers, @version) | ||
end | ||
|
||
end | ||
end |
46 changes: 46 additions & 0 deletions
46
lib/adyen/services/balancePlatform/sca_device_management_api.rb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
require_relative '../service' | ||
module Adyen | ||
|
||
# NOTE: This class is auto generated by OpenAPI Generator | ||
# Ref: https://openapi-generator.tech | ||
# | ||
# Do not edit the class manually. | ||
class SCADeviceManagementApi < Service | ||
attr_accessor :service, :version | ||
|
||
def initialize(client, version = DEFAULT_VERSION) | ||
super(client, version, 'BalancePlatform') | ||
end | ||
|
||
# Begin SCA device registration | ||
def begin_sca_device_registration(request, headers: {}) | ||
endpoint = '/scaDevices'.gsub(/{.+?}/, '%s') | ||
endpoint = endpoint.gsub(%r{^/}, '') | ||
endpoint = format(endpoint) | ||
|
||
action = { method: 'post', url: endpoint } | ||
@client.call_adyen_api(@service, action, request, headers, @version) | ||
end | ||
|
||
# Finish registration process for a SCA device | ||
def finish_sca_device_registration(request, device_id, headers: {}) | ||
endpoint = '/scaDevices/{deviceId}'.gsub(/{.+?}/, '%s') | ||
endpoint = endpoint.gsub(%r{^/}, '') | ||
endpoint = format(endpoint, device_id) | ||
|
||
action = { method: 'patch', url: endpoint } | ||
@client.call_adyen_api(@service, action, request, headers, @version) | ||
end | ||
|
||
# Create a new SCA association for a device | ||
def submit_sca_association(request, device_id, headers: {}) | ||
endpoint = '/scaDevices/{deviceId}/scaAssociations'.gsub(/{.+?}/, '%s') | ||
endpoint = endpoint.gsub(%r{^/}, '') | ||
endpoint = format(endpoint, device_id) | ||
|
||
action = { method: 'post', url: endpoint } | ||
@client.call_adyen_api(@service, action, request, headers, @version) | ||
end | ||
|
||
end | ||
end |
76 changes: 76 additions & 0 deletions
76
lib/adyen/services/balancePlatform/transfer_limits_balance_account_level_api.rb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
require_relative '../service' | ||
module Adyen | ||
|
||
# NOTE: This class is auto generated by OpenAPI Generator | ||
# Ref: https://openapi-generator.tech | ||
# | ||
# Do not edit the class manually. | ||
class TransferLimitsBalanceAccountLevelApi < Service | ||
attr_accessor :service, :version | ||
|
||
def initialize(client, version = DEFAULT_VERSION) | ||
super(client, version, 'BalancePlatform') | ||
end | ||
|
||
# Approve pending transfer limits | ||
def approve_pending_transfer_limits(request, id, approve_transfer_limit_request, headers: {}) | ||
endpoint = '/balanceAccounts/{id}/transferLimits/approve'.gsub(/{.+?}/, '%s') | ||
endpoint = endpoint.gsub(%r{^/}, '') | ||
endpoint = format(endpoint, id) | ||
|
||
action = { method: 'post', url: endpoint } | ||
@client.call_adyen_api(@service, action, request, headers, @version) | ||
end | ||
|
||
# Create a transfer limit | ||
def create_transfer_limit(request, id, create_transfer_limit_request, headers: {}) | ||
endpoint = '/balanceAccounts/{id}/transferLimits'.gsub(/{.+?}/, '%s') | ||
endpoint = endpoint.gsub(%r{^/}, '') | ||
endpoint = format(endpoint, id) | ||
|
||
action = { method: 'post', url: endpoint } | ||
@client.call_adyen_api(@service, action, request, headers, @version) | ||
end | ||
|
||
# Delete a scheduled or pending transfer limit | ||
def delete_pending_transfer_limit(transfer_limit_id, id, headers: {}) | ||
endpoint = '/balanceAccounts/{id}/transferLimits/{transferLimitId}'.gsub(/{.+?}/, '%s') | ||
endpoint = endpoint.gsub(%r{^/}, '') | ||
endpoint = format(endpoint, transfer_limit_id, id) | ||
|
||
action = { method: 'delete', url: endpoint } | ||
@client.call_adyen_api(@service, action, {}, headers, @version) | ||
end | ||
|
||
# Get all current transfer limits | ||
def get_current_transfer_limits(id, headers: {}, query_params: {}) | ||
endpoint = '/balanceAccounts/{id}/transferLimits/current'.gsub(/{.+?}/, '%s') | ||
endpoint = endpoint.gsub(%r{^/}, '') | ||
endpoint = format(endpoint, id) | ||
endpoint += create_query_string(query_params) | ||
action = { method: 'get', url: endpoint } | ||
@client.call_adyen_api(@service, action, {}, headers, @version) | ||
end | ||
|
||
# Get the details of a transfer limit | ||
def get_specific_transfer_limit(transfer_limit_id, id, headers: {}) | ||
endpoint = '/balanceAccounts/{id}/transferLimits/{transferLimitId}'.gsub(/{.+?}/, '%s') | ||
endpoint = endpoint.gsub(%r{^/}, '') | ||
endpoint = format(endpoint, transfer_limit_id, id) | ||
|
||
action = { method: 'get', url: endpoint } | ||
@client.call_adyen_api(@service, action, {}, headers, @version) | ||
end | ||
|
||
# Filter and view the transfer limits | ||
def get_transfer_limits(id, headers: {}, query_params: {}) | ||
endpoint = '/balanceAccounts/{id}/transferLimits'.gsub(/{.+?}/, '%s') | ||
endpoint = endpoint.gsub(%r{^/}, '') | ||
endpoint = format(endpoint, id) | ||
endpoint += create_query_string(query_params) | ||
action = { method: 'get', url: endpoint } | ||
@client.call_adyen_api(@service, action, {}, headers, @version) | ||
end | ||
|
||
end | ||
end |
56 changes: 56 additions & 0 deletions
56
lib/adyen/services/balancePlatform/transfer_limits_balance_platform_level_api.rb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
require_relative '../service' | ||
module Adyen | ||
|
||
# NOTE: This class is auto generated by OpenAPI Generator | ||
# Ref: https://openapi-generator.tech | ||
# | ||
# Do not edit the class manually. | ||
class TransferLimitsBalancePlatformLevelApi < Service | ||
attr_accessor :service, :version | ||
|
||
def initialize(client, version = DEFAULT_VERSION) | ||
super(client, version, 'BalancePlatform') | ||
end | ||
|
||
# Create a transfer limit | ||
def create_transfer_limit(request, id, create_transfer_limit_request, headers: {}) | ||
endpoint = '/balancePlatforms/{id}/transferLimits'.gsub(/{.+?}/, '%s') | ||
endpoint = endpoint.gsub(%r{^/}, '') | ||
endpoint = format(endpoint, id) | ||
|
||
action = { method: 'post', url: endpoint } | ||
@client.call_adyen_api(@service, action, request, headers, @version) | ||
end | ||
|
||
# Delete a scheduled or pending transfer limit | ||
def delete_pending_transfer_limit(transfer_limit_id, id, headers: {}) | ||
endpoint = '/balancePlatforms/{id}/transferLimits/{transferLimitId}'.gsub(/{.+?}/, '%s') | ||
endpoint = endpoint.gsub(%r{^/}, '') | ||
endpoint = format(endpoint, transfer_limit_id, id) | ||
|
||
action = { method: 'delete', url: endpoint } | ||
@client.call_adyen_api(@service, action, {}, headers, @version) | ||
end | ||
|
||
# Get the details of a transfer limit | ||
def get_specific_transfer_limit(transfer_limit_id, id, headers: {}) | ||
endpoint = '/balancePlatforms/{id}/transferLimits/{transferLimitId}'.gsub(/{.+?}/, '%s') | ||
endpoint = endpoint.gsub(%r{^/}, '') | ||
endpoint = format(endpoint, transfer_limit_id, id) | ||
|
||
action = { method: 'get', url: endpoint } | ||
@client.call_adyen_api(@service, action, {}, headers, @version) | ||
end | ||
|
||
# Filter and view the transfer limits | ||
def get_transfer_limits(id, headers: {}, query_params: {}) | ||
endpoint = '/balancePlatforms/{id}/transferLimits'.gsub(/{.+?}/, '%s') | ||
endpoint = endpoint.gsub(%r{^/}, '') | ||
endpoint = format(endpoint, id) | ||
endpoint += create_query_string(query_params) | ||
action = { method: 'get', url: endpoint } | ||
@client.call_adyen_api(@service, action, {}, headers, @version) | ||
end | ||
|
||
end | ||
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,5 +44,15 @@ def updates_order_for_paypal_express_checkout(request, headers: {}) | |
@client.call_adyen_api(@service, action, request, headers, @version) | ||
end | ||
|
||
# Validates shopper Id | ||
def validate_shopper_id(request, validate_shopper_id_request, headers: {}) | ||
endpoint = '/validateShopperId'.gsub(/{.+?}/, '%s') | ||
endpoint = endpoint.gsub(%r{^/}, '') | ||
endpoint = format(endpoint) | ||
Comment on lines
+49
to
+51
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
||
action = { method: 'post', url: endpoint } | ||
@client.call_adyen_api(@service, action, request, headers, @version) | ||
end | ||
Comment on lines
+47
to
+55
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
||
end | ||
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The method
validate_shopper_id
includes an unused parametervalidate_shopper_id_request
. This makes the method signature confusing and should be removed to align with the other methods in this class.