diff --git a/lib/adyen/services/documentCollector.rb b/lib/adyen/services/documentCollector.rb new file mode 100644 index 00000000..0010cea9 --- /dev/null +++ b/lib/adyen/services/documentCollector.rb @@ -0,0 +1,24 @@ +require_relative 'documentCollector/documents_api' + +module Adyen + + # NOTE: This class is auto generated by OpenAPI Generator + # Ref: https://openapi-generator.tech + # + # Do not edit the class manually. + class DocumentCollector + attr_accessor :service, :version + + DEFAULT_VERSION = 1 + def initialize(client, version = DEFAULT_VERSION) + @service = 'DocumentCollector' + @client = client + @version = version + end + + def documents_api + @documents_api ||= Adyen::DocumentsApi.new(@client, @version) + end + + end +end diff --git a/lib/adyen/services/documentCollector/documents_api.rb b/lib/adyen/services/documentCollector/documents_api.rb new file mode 100644 index 00000000..94b6afba --- /dev/null +++ b/lib/adyen/services/documentCollector/documents_api.rb @@ -0,0 +1,24 @@ +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 DocumentsApi < Service + attr_accessor :service, :version + + def initialize(client, version = DEFAULT_VERSION) + super(client, version, 'DocumentCollector') + end + + # Upload a document + def upload_cross_border_invoice(headers: {}) + endpoint = build_endpoint('/crossBorderInvoices') + + action = { method: 'post', url: endpoint } + @client.call_adyen_api(@service, action, {}, headers, @version) + end + + end +end diff --git a/sdk-generation-log/documentcollector.json b/sdk-generation-log/documentcollector.json new file mode 100644 index 00000000..8f1368c9 --- /dev/null +++ b/sdk-generation-log/documentcollector.json @@ -0,0 +1,8 @@ +{ + "service": "documentcollector", + "project": "ruby", + "generatedAt": "2026-10-22T14:18:38Z", + "openapiCommitSha": "2c1f3ab1e0385815899db9364a95e5aa5cf5568a", + "automationCommitSha": "b78db5c1f857f1d7d8d45116ce61f6266043fa60", + "libraryCommitSha": "773b42b07b93eceb706d79d666496a2c864f62fe" +}