Repository navigation
[management] Code generation: update services and models #405
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| 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 ClientCertificatesCompanyLevelApi < Service | ||
| attr_accessor :service, :version | ||
|
|
||
| def initialize(client, version = DEFAULT_VERSION) | ||
| super(client, version, 'Management') | ||
| end | ||
|
|
||
| # Generate a client certificate | ||
| def generate_client_certificate(request, company_id, headers: {}) | ||
| endpoint = build_endpoint('/companies/{companyId}/clientCertificates', company_id) | ||
|
|
||
| action = { method: 'post', url: endpoint } | ||
| @client.call_adyen_api(@service, action, request, headers, @version) | ||
| end | ||
|
|
||
| # Retrieve all valid client certificates for this company | ||
| def list_client_certificates(company_id, headers: {}) | ||
| endpoint = build_endpoint('/companies/{companyId}/clientCertificates', company_id) | ||
|
|
||
| action = { method: 'get', url: endpoint } | ||
| @client.call_adyen_api(@service, action, {}, headers, @version) | ||
| end | ||
|
|
||
| end | ||
| end |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,96 @@ | ||
| 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 TerminalThemesCompanyLevelApi < Service | ||
| attr_accessor :service, :version | ||
|
|
||
| def initialize(client, version = DEFAULT_VERSION) | ||
| super(client, version, 'Management') | ||
| end | ||
|
|
||
| # Add an asset to a terminal theme | ||
| def add_terminal_theme_asset_for_company(company_id, id, headers: {}, query_params: {}) | ||
| endpoint = build_endpoint('/companies/{companyId}/terminalThemes/{id}/assets', company_id, id) | ||
| endpoint += create_query_string(query_params) | ||
| action = { method: 'post', url: endpoint } | ||
| @client.call_adyen_api(@service, action, {}, headers, @version) | ||
| end | ||
|
|
||
| # Apply a terminal theme | ||
| def apply_terminal_theme_for_company(company_id, id, headers: {}) | ||
| endpoint = build_endpoint('/companies/{companyId}/terminalThemes/{id}/apply', company_id, id) | ||
|
|
||
| action = { method: 'post', url: endpoint } | ||
| @client.call_adyen_api(@service, action, {}, headers, @version) | ||
| end | ||
|
|
||
| # Create a terminal theme | ||
| def create_terminal_theme_for_company(request, company_id, headers: {}) | ||
| endpoint = build_endpoint('/companies/{companyId}/terminalThemes', company_id) | ||
|
|
||
| action = { method: 'post', url: endpoint } | ||
| @client.call_adyen_api(@service, action, request, headers, @version) | ||
| end | ||
|
|
||
| # Delete an asset from a terminal theme | ||
| def delete_terminal_theme_asset_for_company(company_id, id, headers: {}, query_params: {}) | ||
| endpoint = build_endpoint('/companies/{companyId}/terminalThemes/{id}/assets', company_id, id) | ||
| endpoint += create_query_string(query_params) | ||
| action = { method: 'delete', url: endpoint } | ||
| @client.call_adyen_api(@service, action, {}, headers, @version) | ||
| end | ||
|
|
||
| # Delete a terminal theme | ||
| def delete_terminal_theme_for_company(company_id, id, headers: {}) | ||
| endpoint = build_endpoint('/companies/{companyId}/terminalThemes/{id}', company_id, id) | ||
|
Check failure on line 49 in lib/adyen/services/management/terminal_themes_company_level_api.rb
|
||
|
|
||
| action = { method: 'delete', url: endpoint } | ||
| @client.call_adyen_api(@service, action, {}, headers, @version) | ||
| end | ||
|
|
||
| # Replace a theme asset | ||
| def edit_terminal_theme_asset_for_company(company_id, id, headers: {}, query_params: {}) | ||
| endpoint = build_endpoint('/companies/{companyId}/terminalThemes/{id}/assets/replace', company_id, id) | ||
| endpoint += create_query_string(query_params) | ||
| action = { method: 'post', url: endpoint } | ||
| @client.call_adyen_api(@service, action, {}, headers, @version) | ||
| end | ||
|
Comment on lines
+56
to
+61
Contributor
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. The def edit_terminal_theme_asset_for_company(request, company_id, id, headers: {}, query_params: {})
endpoint = build_endpoint('/companies/{companyId}/terminalThemes/{id}/assets/replace', company_id, id)
endpoint += create_query_string(query_params)
action = { method: 'post', url: endpoint }
@client.call_adyen_api(@service, action, request, headers, @version)
end |
||
|
|
||
| # Get a terminal theme | ||
| def get_terminal_theme_by_id_for_company(company_id, id, headers: {}) | ||
| endpoint = build_endpoint('/companies/{companyId}/terminalThemes/{id}', company_id, id) | ||
|
|
||
| action = { method: 'get', url: endpoint } | ||
| @client.call_adyen_api(@service, action, {}, headers, @version) | ||
| end | ||
|
|
||
| # List terminal themes | ||
| def list_terminal_themes_for_company(company_id, headers: {}, query_params: {}) | ||
| endpoint = build_endpoint('/companies/{companyId}/terminalThemes', company_id) | ||
| endpoint += create_query_string(query_params) | ||
| action = { method: 'get', url: endpoint } | ||
| @client.call_adyen_api(@service, action, {}, headers, @version) | ||
| end | ||
|
|
||
| # Unapply a terminal theme | ||
| def unapply_terminal_theme_for_company(company_id, headers: {}) | ||
| endpoint = build_endpoint('/companies/{companyId}/terminalThemes/unapply', company_id) | ||
|
|
||
| action = { method: 'post', url: endpoint } | ||
| @client.call_adyen_api(@service, action, {}, headers, @version) | ||
| end | ||
|
|
||
| # Update the metadata of a terminal theme | ||
| def update_terminal_theme_for_company(request, company_id, id, headers: {}) | ||
| endpoint = build_endpoint('/companies/{companyId}/terminalThemes/{id}', company_id, id) | ||
|
|
||
| action = { method: 'patch', url: endpoint } | ||
| @client.call_adyen_api(@service, action, request, headers, @version) | ||
| end | ||
|
|
||
| end | ||
| end | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,96 @@ | ||
| 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 TerminalThemesMerchantLevelApi < Service | ||
| attr_accessor :service, :version | ||
|
|
||
| def initialize(client, version = DEFAULT_VERSION) | ||
| super(client, version, 'Management') | ||
| end | ||
|
|
||
| # Add an asset to a terminal theme | ||
| def add_terminal_theme_asset_for_merchant(merchant_id, id, headers: {}, query_params: {}) | ||
| endpoint = build_endpoint('/merchants/{merchantId}/terminalThemes/{id}/assets', merchant_id, id) | ||
| endpoint += create_query_string(query_params) | ||
| action = { method: 'post', url: endpoint } | ||
| @client.call_adyen_api(@service, action, {}, headers, @version) | ||
| end | ||
|
Comment on lines
+16
to
+21
Contributor
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. The def add_terminal_theme_asset_for_merchant(request, merchant_id, id, headers: {}, query_params: {})
endpoint = build_endpoint('/merchants/{merchantId}/terminalThemes/{id}/assets', merchant_id, id)
endpoint += create_query_string(query_params)
action = { method: 'post', url: endpoint }
@client.call_adyen_api(@service, action, request, headers, @version)
end |
||
|
|
||
| # Apply a terminal theme | ||
| def apply_terminal_theme_for_merchant(merchant_id, id, headers: {}) | ||
| endpoint = build_endpoint('/merchants/{merchantId}/terminalThemes/{id}/apply', merchant_id, id) | ||
|
|
||
| action = { method: 'post', url: endpoint } | ||
| @client.call_adyen_api(@service, action, {}, headers, @version) | ||
| end | ||
|
|
||
| # Create a terminal theme | ||
| def create_terminal_theme_for_merchant(request, merchant_id, headers: {}) | ||
| endpoint = build_endpoint('/merchants/{merchantId}/terminalThemes', merchant_id) | ||
|
|
||
| action = { method: 'post', url: endpoint } | ||
| @client.call_adyen_api(@service, action, request, headers, @version) | ||
| end | ||
|
|
||
| # Delete an asset from a terminal theme | ||
| def delete_terminal_theme_asset_for_merchant(merchant_id, id, headers: {}, query_params: {}) | ||
| endpoint = build_endpoint('/merchants/{merchantId}/terminalThemes/{id}/assets', merchant_id, id) | ||
| endpoint += create_query_string(query_params) | ||
| action = { method: 'delete', url: endpoint } | ||
| @client.call_adyen_api(@service, action, {}, headers, @version) | ||
| end | ||
|
|
||
| # Delete a terminal theme | ||
| def delete_terminal_theme_for_merchant(merchant_id, id, headers: {}) | ||
| endpoint = build_endpoint('/merchants/{merchantId}/terminalThemes/{id}', merchant_id, id) | ||
|
Check failure on line 49 in lib/adyen/services/management/terminal_themes_merchant_level_api.rb
|
||
|
|
||
| action = { method: 'delete', url: endpoint } | ||
| @client.call_adyen_api(@service, action, {}, headers, @version) | ||
| end | ||
|
|
||
| # Replace a theme asset | ||
| def edit_terminal_theme_asset_for_merchant(merchant_id, id, headers: {}, query_params: {}) | ||
| endpoint = build_endpoint('/merchants/{merchantId}/terminalThemes/{id}/assets/replace', merchant_id, id) | ||
| endpoint += create_query_string(query_params) | ||
| action = { method: 'post', url: endpoint } | ||
| @client.call_adyen_api(@service, action, {}, headers, @version) | ||
| end | ||
|
Comment on lines
+56
to
+61
Contributor
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. The def edit_terminal_theme_asset_for_merchant(request, merchant_id, id, headers: {}, query_params: {})
endpoint = build_endpoint('/merchants/{merchantId}/terminalThemes/{id}/assets/replace', merchant_id, id)
endpoint += create_query_string(query_params)
action = { method: 'post', url: endpoint }
@client.call_adyen_api(@service, action, request, headers, @version)
end |
||
|
|
||
| # Get a terminal theme | ||
| def get_terminal_theme_by_id_for_merchant(merchant_id, id, headers: {}) | ||
| endpoint = build_endpoint('/merchants/{merchantId}/terminalThemes/{id}', merchant_id, id) | ||
|
|
||
| action = { method: 'get', url: endpoint } | ||
| @client.call_adyen_api(@service, action, {}, headers, @version) | ||
| end | ||
|
|
||
| # List terminal themes | ||
| def list_terminal_themes_for_merchant(merchant_id, headers: {}, query_params: {}) | ||
| endpoint = build_endpoint('/merchants/{merchantId}/terminalThemes', merchant_id) | ||
| endpoint += create_query_string(query_params) | ||
| action = { method: 'get', url: endpoint } | ||
| @client.call_adyen_api(@service, action, {}, headers, @version) | ||
| end | ||
|
|
||
| # Unapply a terminal theme | ||
| def unapply_terminal_theme_for_merchant(merchant_id, headers: {}) | ||
| endpoint = build_endpoint('/merchants/{merchantId}/terminalThemes/unapply', merchant_id) | ||
|
|
||
| action = { method: 'post', url: endpoint } | ||
| @client.call_adyen_api(@service, action, {}, headers, @version) | ||
| end | ||
|
|
||
| # Update the metadata of a terminal theme | ||
| def update_terminal_theme_for_merchant(request, merchant_id, id, headers: {}) | ||
| endpoint = build_endpoint('/merchants/{merchantId}/terminalThemes/{id}', merchant_id, id) | ||
|
|
||
| action = { method: 'patch', url: endpoint } | ||
| @client.call_adyen_api(@service, action, request, headers, @version) | ||
| end | ||
|
|
||
| end | ||
| end | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| 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 TerminalThemesStoreLevelApi < Service | ||
| attr_accessor :service, :version | ||
|
|
||
| def initialize(client, version = DEFAULT_VERSION) | ||
| super(client, version, 'Management') | ||
| end | ||
|
|
||
| # Apply a terminal theme | ||
| def apply_terminal_theme_for_store(store_id, id, headers: {}) | ||
| endpoint = build_endpoint('/stores/{storeId}/terminalThemes/{id}/apply', store_id, id) | ||
|
|
||
| action = { method: 'post', url: endpoint } | ||
| @client.call_adyen_api(@service, action, {}, headers, @version) | ||
| end | ||
|
|
||
| # Unapply a terminal theme | ||
| def unapply_terminal_theme_for_store(store_id, headers: {}) | ||
| endpoint = build_endpoint('/stores/{storeId}/terminalThemes/unapply', store_id) | ||
|
|
||
| action = { method: 'post', url: endpoint } | ||
| @client.call_adyen_api(@service, action, {}, headers, @version) | ||
| end | ||
|
|
||
| end | ||
| end |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| 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 TerminalThemesTerminalLevelApi < Service | ||
| attr_accessor :service, :version | ||
|
|
||
| def initialize(client, version = DEFAULT_VERSION) | ||
| super(client, version, 'Management') | ||
| end | ||
|
|
||
| # Apply a terminal theme | ||
| def apply_terminal_theme_for_terminal(terminal_id, id, headers: {}) | ||
| endpoint = build_endpoint('/terminals/{terminalId}/terminalThemes/{id}/apply', terminal_id, id) | ||
|
|
||
| action = { method: 'post', url: endpoint } | ||
| @client.call_adyen_api(@service, action, {}, headers, @version) | ||
| end | ||
|
|
||
| # Unapply a terminal theme | ||
| def unapply_terminal_theme_for_terminal(terminal_id, headers: {}) | ||
| endpoint = build_endpoint('/terminals/{terminalId}/terminalThemes/unapply', terminal_id) | ||
|
|
||
| action = { method: 'post', url: endpoint } | ||
| @client.call_adyen_api(@service, action, {}, headers, @version) | ||
| end | ||
|
|
||
| end | ||
| end |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,8 @@ | ||
| { | ||
| "service": "management", | ||
| "project": "ruby", | ||
| "generatedAt": "2026-07-31T12:01:01Z", | ||
| "openapiCommitSha": "425d65d12163ebd4fe6fa6d2f859075817c81cba", | ||
| "automationCommitSha": "0c108bd8050cf480d2710b78b770afdfbdd89397", | ||
| "libraryCommitSha": "7f77a7b7aca2c2b22147ba4b996ada979f9decd9" | ||
| "generatedAt": "2026-10-22T14:18:40Z", | ||
| "openapiCommitSha": "2c1f3ab1e0385815899db9364a95e5aa5cf5568a", | ||
| "automationCommitSha": "b78db5c1f857f1d7d8d45116ce61f6266043fa60", | ||
| "libraryCommitSha": "773b42b07b93eceb706d79d666496a2c864f62fe" | ||
| } |
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
add_terminal_theme_asset_for_companymethod is missing therequestparameter in its signature. Since this is a POST request to add an asset, a request body containing the asset payload is required. Currently, an empty hash{}is hardcoded as the request payload in thecall_adyen_apicall, making it impossible for users to upload or specify the asset.