dataleon 0.1.0.pre.alpha.1

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.
Files changed (149) hide show
  1. checksums.yaml +7 -0
  2. data/.ignore +2 -0
  3. data/CHANGELOG.md +50 -0
  4. data/README.md +257 -0
  5. data/SECURITY.md +27 -0
  6. data/lib/dataleon/client.rb +80 -0
  7. data/lib/dataleon/errors.rb +214 -0
  8. data/lib/dataleon/file_part.rb +55 -0
  9. data/lib/dataleon/internal/transport/base_client.rb +563 -0
  10. data/lib/dataleon/internal/transport/pooled_net_requester.rb +201 -0
  11. data/lib/dataleon/internal/type/array_of.rb +168 -0
  12. data/lib/dataleon/internal/type/base_model.rb +531 -0
  13. data/lib/dataleon/internal/type/base_page.rb +55 -0
  14. data/lib/dataleon/internal/type/boolean.rb +77 -0
  15. data/lib/dataleon/internal/type/converter.rb +327 -0
  16. data/lib/dataleon/internal/type/enum.rb +131 -0
  17. data/lib/dataleon/internal/type/file_input.rb +108 -0
  18. data/lib/dataleon/internal/type/hash_of.rb +188 -0
  19. data/lib/dataleon/internal/type/request_parameters.rb +42 -0
  20. data/lib/dataleon/internal/type/union.rb +237 -0
  21. data/lib/dataleon/internal/type/unknown.rb +81 -0
  22. data/lib/dataleon/internal/util.rb +914 -0
  23. data/lib/dataleon/internal.rb +20 -0
  24. data/lib/dataleon/models/check.rb +50 -0
  25. data/lib/dataleon/models/companies/document_list_params.rb +16 -0
  26. data/lib/dataleon/models/companies/document_upload_params.rb +82 -0
  27. data/lib/dataleon/models/company_create_params.rb +228 -0
  28. data/lib/dataleon/models/company_delete_params.rb +14 -0
  29. data/lib/dataleon/models/company_list_params.rb +108 -0
  30. data/lib/dataleon/models/company_list_response.rb +8 -0
  31. data/lib/dataleon/models/company_registration.rb +964 -0
  32. data/lib/dataleon/models/company_retrieve_params.rb +30 -0
  33. data/lib/dataleon/models/company_update_params.rb +228 -0
  34. data/lib/dataleon/models/individual.rb +805 -0
  35. data/lib/dataleon/models/individual_create_params.rb +174 -0
  36. data/lib/dataleon/models/individual_delete_params.rb +14 -0
  37. data/lib/dataleon/models/individual_list_params.rb +108 -0
  38. data/lib/dataleon/models/individual_list_response.rb +8 -0
  39. data/lib/dataleon/models/individual_retrieve_params.rb +30 -0
  40. data/lib/dataleon/models/individual_update_params.rb +174 -0
  41. data/lib/dataleon/models/individuals/document_list_params.rb +16 -0
  42. data/lib/dataleon/models/individuals/document_response.rb +98 -0
  43. data/lib/dataleon/models/individuals/document_upload_params.rb +82 -0
  44. data/lib/dataleon/models/individuals/generic_document.rb +132 -0
  45. data/lib/dataleon/models/individuals/kbis.rb +326 -0
  46. data/lib/dataleon/models.rb +71 -0
  47. data/lib/dataleon/request_options.rb +77 -0
  48. data/lib/dataleon/resources/companies/documents.rb +65 -0
  49. data/lib/dataleon/resources/companies.rb +164 -0
  50. data/lib/dataleon/resources/individuals/documents.rb +65 -0
  51. data/lib/dataleon/resources/individuals.rb +164 -0
  52. data/lib/dataleon/version.rb +5 -0
  53. data/lib/dataleon.rb +79 -0
  54. data/manifest.yaml +15 -0
  55. data/rbi/dataleon/client.rbi +56 -0
  56. data/rbi/dataleon/errors.rbi +178 -0
  57. data/rbi/dataleon/file_part.rbi +37 -0
  58. data/rbi/dataleon/internal/transport/base_client.rbi +293 -0
  59. data/rbi/dataleon/internal/transport/pooled_net_requester.rbi +79 -0
  60. data/rbi/dataleon/internal/type/array_of.rbi +104 -0
  61. data/rbi/dataleon/internal/type/base_model.rbi +302 -0
  62. data/rbi/dataleon/internal/type/base_page.rbi +42 -0
  63. data/rbi/dataleon/internal/type/boolean.rbi +58 -0
  64. data/rbi/dataleon/internal/type/converter.rbi +216 -0
  65. data/rbi/dataleon/internal/type/enum.rbi +82 -0
  66. data/rbi/dataleon/internal/type/file_input.rbi +59 -0
  67. data/rbi/dataleon/internal/type/hash_of.rbi +104 -0
  68. data/rbi/dataleon/internal/type/request_parameters.rbi +29 -0
  69. data/rbi/dataleon/internal/type/union.rbi +128 -0
  70. data/rbi/dataleon/internal/type/unknown.rbi +58 -0
  71. data/rbi/dataleon/internal/util.rbi +487 -0
  72. data/rbi/dataleon/internal.rbi +16 -0
  73. data/rbi/dataleon/models/check.rbi +83 -0
  74. data/rbi/dataleon/models/companies/document_list_params.rbi +32 -0
  75. data/rbi/dataleon/models/companies/document_upload_params.rbi +266 -0
  76. data/rbi/dataleon/models/company_create_params.rbi +361 -0
  77. data/rbi/dataleon/models/company_delete_params.rbi +27 -0
  78. data/rbi/dataleon/models/company_list_params.rbi +182 -0
  79. data/rbi/dataleon/models/company_list_response.rbi +11 -0
  80. data/rbi/dataleon/models/company_registration.rbi +1628 -0
  81. data/rbi/dataleon/models/company_retrieve_params.rbi +57 -0
  82. data/rbi/dataleon/models/company_update_params.rbi +361 -0
  83. data/rbi/dataleon/models/individual.rbi +1281 -0
  84. data/rbi/dataleon/models/individual_create_params.rbi +323 -0
  85. data/rbi/dataleon/models/individual_delete_params.rbi +27 -0
  86. data/rbi/dataleon/models/individual_list_params.rbi +193 -0
  87. data/rbi/dataleon/models/individual_list_response.rbi +11 -0
  88. data/rbi/dataleon/models/individual_retrieve_params.rbi +57 -0
  89. data/rbi/dataleon/models/individual_update_params.rbi +323 -0
  90. data/rbi/dataleon/models/individuals/document_list_params.rbi +32 -0
  91. data/rbi/dataleon/models/individuals/document_response.rbi +190 -0
  92. data/rbi/dataleon/models/individuals/document_upload_params.rbi +266 -0
  93. data/rbi/dataleon/models/individuals/generic_document.rbi +252 -0
  94. data/rbi/dataleon/models/individuals/kbis.rbi +513 -0
  95. data/rbi/dataleon/models.rbi +33 -0
  96. data/rbi/dataleon/request_options.rbi +59 -0
  97. data/rbi/dataleon/resources/companies/documents.rbi +52 -0
  98. data/rbi/dataleon/resources/companies.rbi +135 -0
  99. data/rbi/dataleon/resources/individuals/documents.rbi +52 -0
  100. data/rbi/dataleon/resources/individuals.rbi +137 -0
  101. data/rbi/dataleon/version.rbi +5 -0
  102. data/sig/dataleon/client.rbs +28 -0
  103. data/sig/dataleon/errors.rbs +110 -0
  104. data/sig/dataleon/file_part.rbs +21 -0
  105. data/sig/dataleon/internal/transport/base_client.rbs +131 -0
  106. data/sig/dataleon/internal/transport/pooled_net_requester.rbs +45 -0
  107. data/sig/dataleon/internal/type/array_of.rbs +48 -0
  108. data/sig/dataleon/internal/type/base_model.rbs +102 -0
  109. data/sig/dataleon/internal/type/base_page.rbs +24 -0
  110. data/sig/dataleon/internal/type/boolean.rbs +26 -0
  111. data/sig/dataleon/internal/type/converter.rbs +79 -0
  112. data/sig/dataleon/internal/type/enum.rbs +32 -0
  113. data/sig/dataleon/internal/type/file_input.rbs +25 -0
  114. data/sig/dataleon/internal/type/hash_of.rbs +48 -0
  115. data/sig/dataleon/internal/type/request_parameters.rbs +17 -0
  116. data/sig/dataleon/internal/type/union.rbs +52 -0
  117. data/sig/dataleon/internal/type/unknown.rbs +26 -0
  118. data/sig/dataleon/internal/util.rbs +185 -0
  119. data/sig/dataleon/internal.rbs +9 -0
  120. data/sig/dataleon/models/check.rbs +50 -0
  121. data/sig/dataleon/models/companies/document_list_params.rbs +17 -0
  122. data/sig/dataleon/models/companies/document_upload_params.rbs +119 -0
  123. data/sig/dataleon/models/company_create_params.rbs +209 -0
  124. data/sig/dataleon/models/company_delete_params.rbs +15 -0
  125. data/sig/dataleon/models/company_list_params.rbs +120 -0
  126. data/sig/dataleon/models/company_list_response.rbs +7 -0
  127. data/sig/dataleon/models/company_registration.rbs +847 -0
  128. data/sig/dataleon/models/company_retrieve_params.rbs +32 -0
  129. data/sig/dataleon/models/company_update_params.rbs +209 -0
  130. data/sig/dataleon/models/individual.rbs +717 -0
  131. data/sig/dataleon/models/individual_create_params.rbs +172 -0
  132. data/sig/dataleon/models/individual_delete_params.rbs +15 -0
  133. data/sig/dataleon/models/individual_list_params.rbs +120 -0
  134. data/sig/dataleon/models/individual_list_response.rbs +7 -0
  135. data/sig/dataleon/models/individual_retrieve_params.rbs +32 -0
  136. data/sig/dataleon/models/individual_update_params.rbs +172 -0
  137. data/sig/dataleon/models/individuals/document_list_params.rbs +17 -0
  138. data/sig/dataleon/models/individuals/document_response.rbs +101 -0
  139. data/sig/dataleon/models/individuals/document_upload_params.rbs +119 -0
  140. data/sig/dataleon/models/individuals/generic_document.rbs +132 -0
  141. data/sig/dataleon/models/individuals/kbis.rbs +303 -0
  142. data/sig/dataleon/models.rbs +31 -0
  143. data/sig/dataleon/request_options.rbs +34 -0
  144. data/sig/dataleon/resources/companies/documents.rbs +22 -0
  145. data/sig/dataleon/resources/companies.rbs +50 -0
  146. data/sig/dataleon/resources/individuals/documents.rbs +22 -0
  147. data/sig/dataleon/resources/individuals.rbs +50 -0
  148. data/sig/dataleon/version.rbs +3 -0
  149. metadata +206 -0
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Dataleon
4
+ module Internal
5
+ extend Dataleon::Internal::Util::SorbetRuntimeSupport
6
+
7
+ OMIT =
8
+ Object.new.tap do
9
+ _1.define_singleton_method(:inspect) { "#<#{Dataleon::Internal}::OMIT>" }
10
+ end
11
+ .freeze
12
+
13
+ define_sorbet_constant!(:AnyHash) do
14
+ T.type_alias { T::Hash[Symbol, T.anything] }
15
+ end
16
+ define_sorbet_constant!(:FileInput) do
17
+ T.type_alias { T.any(Pathname, StringIO, IO, String, Dataleon::FilePart) }
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,50 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Dataleon
4
+ module Models
5
+ class Check < Dataleon::Internal::Type::BaseModel
6
+ # @!attribute masked
7
+ # Indicates whether the result or data is masked/hidden.
8
+ #
9
+ # @return [Boolean, nil]
10
+ optional :masked, Dataleon::Internal::Type::Boolean
11
+
12
+ # @!attribute message
13
+ # Additional message or explanation about the check result.
14
+ #
15
+ # @return [String, nil]
16
+ optional :message, String
17
+
18
+ # @!attribute name
19
+ # Name or type of the check performed.
20
+ #
21
+ # @return [String, nil]
22
+ optional :name, String
23
+
24
+ # @!attribute validate
25
+ # Result of the check, true if passed.
26
+ #
27
+ # @return [Boolean, nil]
28
+ optional :validate, Dataleon::Internal::Type::Boolean
29
+
30
+ # @!attribute weight
31
+ # Importance or weight of the check, often used in scoring.
32
+ #
33
+ # @return [Integer, nil]
34
+ optional :weight, Integer
35
+
36
+ # @!method initialize(masked: nil, message: nil, name: nil, validate: nil, weight: nil)
37
+ # Represents a verification check result.
38
+ #
39
+ # @param masked [Boolean] Indicates whether the result or data is masked/hidden.
40
+ #
41
+ # @param message [String] Additional message or explanation about the check result.
42
+ #
43
+ # @param name [String] Name or type of the check performed.
44
+ #
45
+ # @param validate [Boolean] Result of the check, true if passed.
46
+ #
47
+ # @param weight [Integer] Importance or weight of the check, often used in scoring.
48
+ end
49
+ end
50
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Dataleon
4
+ module Models
5
+ module Companies
6
+ # @see Dataleon::Resources::Companies::Documents#list
7
+ class DocumentListParams < Dataleon::Internal::Type::BaseModel
8
+ extend Dataleon::Internal::Type::RequestParameters::Converter
9
+ include Dataleon::Internal::Type::RequestParameters
10
+
11
+ # @!method initialize(request_options: {})
12
+ # @param request_options [Dataleon::RequestOptions, Hash{Symbol=>Object}]
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,82 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Dataleon
4
+ module Models
5
+ module Companies
6
+ # @see Dataleon::Resources::Companies::Documents#upload
7
+ class DocumentUploadParams < Dataleon::Internal::Type::BaseModel
8
+ extend Dataleon::Internal::Type::RequestParameters::Converter
9
+ include Dataleon::Internal::Type::RequestParameters
10
+
11
+ # @!attribute document_type
12
+ # Filter by document type for upload (must be one of the allowed values)
13
+ #
14
+ # @return [Symbol, Dataleon::Models::Companies::DocumentUploadParams::DocumentType]
15
+ required :document_type, enum: -> { Dataleon::Companies::DocumentUploadParams::DocumentType }
16
+
17
+ # @!attribute file
18
+ # File to upload (required)
19
+ #
20
+ # @return [Pathname, StringIO, IO, String, Dataleon::FilePart, nil]
21
+ optional :file, Dataleon::Internal::Type::FileInput
22
+
23
+ # @!attribute url
24
+ # URL of the file to upload (either `file` or `url` is required)
25
+ #
26
+ # @return [String, nil]
27
+ optional :url, String
28
+
29
+ # @!method initialize(document_type:, file: nil, url: nil, request_options: {})
30
+ # @param document_type [Symbol, Dataleon::Models::Companies::DocumentUploadParams::DocumentType] Filter by document type for upload (must be one of the allowed values)
31
+ #
32
+ # @param file [Pathname, StringIO, IO, String, Dataleon::FilePart] File to upload (required)
33
+ #
34
+ # @param url [String] URL of the file to upload (either `file` or `url` is required)
35
+ #
36
+ # @param request_options [Dataleon::RequestOptions, Hash{Symbol=>Object}]
37
+
38
+ # Filter by document type for upload (must be one of the allowed values)
39
+ module DocumentType
40
+ extend Dataleon::Internal::Type::Enum
41
+
42
+ LIASSE_FISCALE = :liasse_fiscale
43
+ AMORTISED_LOAN_SCHEDULE = :amortised_loan_schedule
44
+ INVOICE = :invoice
45
+ RECEIPT = :receipt
46
+ COMPANY_STATUTS = :company_statuts
47
+ REGISTRATION_COMPANY_CERTIFICATE = :registration_company_certificate
48
+ KBIS = :kbis
49
+ RIB = :rib
50
+ LIVRET_FAMILLE = :livret_famille
51
+ BIRTH_CERTIFICATE = :birth_certificate
52
+ PAYSLIP = :payslip
53
+ SOCIAL_SECURITY_CARD = :social_security_card
54
+ VEHICLE_REGISTRATION_CERTIFICATE = :vehicle_registration_certificate
55
+ CARTE_GRISE = :carte_grise
56
+ CRIMINAL_RECORD_EXTRACT = :criminal_record_extract
57
+ PROOF_OF_ADDRESS = :proof_of_address
58
+ IDENTITY_CARD_FRONT = :identity_card_front
59
+ IDENTITY_CARD_BACK = :identity_card_back
60
+ DRIVER_LICENSE_FRONT = :driver_license_front
61
+ DRIVER_LICENSE_BACK = :driver_license_back
62
+ IDENTITY_DOCUMENT = :identity_document
63
+ DRIVER_LICENSE = :driver_license
64
+ PASSPORT = :passport
65
+ TAX = :tax
66
+ CERTIFICATE_OF_INCORPORATION = :certificate_of_incorporation
67
+ CERTIFICATE_OF_GOOD_STANDING = :certificate_of_good_standing
68
+ LCB_FT_LAB_AML_POLICIES = :lcb_ft_lab_aml_policies
69
+ NIU_ENTREPRISE = :niu_entreprise
70
+ FINANCIAL_STATEMENTS = :financial_statements
71
+ RCCM = :rccm
72
+ PROOF_OF_SOURCE_FUNDS = :proof_of_source_funds
73
+ ORGANIZATIONAL_CHART = :organizational_chart
74
+ RISK_POLICIES = :risk_policies
75
+
76
+ # @!method self.values
77
+ # @return [Array<Symbol>]
78
+ end
79
+ end
80
+ end
81
+ end
82
+ end
@@ -0,0 +1,228 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Dataleon
4
+ module Models
5
+ # @see Dataleon::Resources::Companies#create
6
+ class CompanyCreateParams < Dataleon::Internal::Type::BaseModel
7
+ extend Dataleon::Internal::Type::RequestParameters::Converter
8
+ include Dataleon::Internal::Type::RequestParameters
9
+
10
+ # @!attribute company
11
+ # Main information about the company being registered.
12
+ #
13
+ # @return [Dataleon::Models::CompanyCreateParams::Company]
14
+ required :company, -> { Dataleon::CompanyCreateParams::Company }
15
+
16
+ # @!attribute workspace_id
17
+ # Unique identifier of the workspace in which the company is being created.
18
+ #
19
+ # @return [String]
20
+ required :workspace_id, String
21
+
22
+ # @!attribute source_id
23
+ # Optional identifier to track the origin of the request or integration from your
24
+ # system.
25
+ #
26
+ # @return [String, nil]
27
+ optional :source_id, String
28
+
29
+ # @!attribute technical_data
30
+ # Technical metadata and callback configuration.
31
+ #
32
+ # @return [Dataleon::Models::CompanyCreateParams::TechnicalData, nil]
33
+ optional :technical_data, -> { Dataleon::CompanyCreateParams::TechnicalData }
34
+
35
+ # @!method initialize(company:, workspace_id:, source_id: nil, technical_data: nil, request_options: {})
36
+ # Some parameter documentations has been truncated, see
37
+ # {Dataleon::Models::CompanyCreateParams} for more details.
38
+ #
39
+ # @param company [Dataleon::Models::CompanyCreateParams::Company] Main information about the company being registered.
40
+ #
41
+ # @param workspace_id [String] Unique identifier of the workspace in which the company is being created.
42
+ #
43
+ # @param source_id [String] Optional identifier to track the origin of the request or integration from your
44
+ #
45
+ # @param technical_data [Dataleon::Models::CompanyCreateParams::TechnicalData] Technical metadata and callback configuration.
46
+ #
47
+ # @param request_options [Dataleon::RequestOptions, Hash{Symbol=>Object}]
48
+
49
+ class Company < Dataleon::Internal::Type::BaseModel
50
+ # @!attribute name
51
+ # Legal name of the company.
52
+ #
53
+ # @return [String]
54
+ required :name, String
55
+
56
+ # @!attribute address
57
+ # Registered address of the company.
58
+ #
59
+ # @return [String, nil]
60
+ optional :address, String
61
+
62
+ # @!attribute commercial_name
63
+ # Commercial or trade name of the company, if different from the legal name.
64
+ #
65
+ # @return [String, nil]
66
+ optional :commercial_name, String
67
+
68
+ # @!attribute country
69
+ # ISO 3166-1 alpha-2 country code of company registration (e.g., "FR" for France).
70
+ #
71
+ # @return [String, nil]
72
+ optional :country, String
73
+
74
+ # @!attribute email
75
+ # Contact email address for the company.
76
+ #
77
+ # @return [String, nil]
78
+ optional :email, String
79
+
80
+ # @!attribute employer_identification_number
81
+ # Employer Identification Number (EIN) or equivalent.
82
+ #
83
+ # @return [String, nil]
84
+ optional :employer_identification_number, String
85
+
86
+ # @!attribute legal_form
87
+ # Legal structure of the company (e.g., SARL, SAS).
88
+ #
89
+ # @return [String, nil]
90
+ optional :legal_form, String
91
+
92
+ # @!attribute phone_number
93
+ # Contact phone number for the company.
94
+ #
95
+ # @return [String, nil]
96
+ optional :phone_number, String
97
+
98
+ # @!attribute registration_date
99
+ # Date of official company registration in YYYY-MM-DD format.
100
+ #
101
+ # @return [String, nil]
102
+ optional :registration_date, String
103
+
104
+ # @!attribute registration_id
105
+ # Official company registration identifier.
106
+ #
107
+ # @return [String, nil]
108
+ optional :registration_id, String
109
+
110
+ # @!attribute share_capital
111
+ # Declared share capital of the company, usually in euros.
112
+ #
113
+ # @return [String, nil]
114
+ optional :share_capital, String
115
+
116
+ # @!attribute status
117
+ # Current status of the company (e.g., active, inactive).
118
+ #
119
+ # @return [String, nil]
120
+ optional :status, String
121
+
122
+ # @!attribute tax_identification_number
123
+ # National tax identifier (e.g., VAT or TIN).
124
+ #
125
+ # @return [String, nil]
126
+ optional :tax_identification_number, String
127
+
128
+ # @!attribute type
129
+ # Type of company, such as "main" or "affiliated".
130
+ #
131
+ # @return [String, nil]
132
+ optional :type, String
133
+
134
+ # @!attribute website_url
135
+ # Company’s official website URL.
136
+ #
137
+ # @return [String, nil]
138
+ optional :website_url, String
139
+
140
+ # @!method initialize(name:, address: nil, commercial_name: nil, country: nil, email: nil, employer_identification_number: nil, legal_form: nil, phone_number: nil, registration_date: nil, registration_id: nil, share_capital: nil, status: nil, tax_identification_number: nil, type: nil, website_url: nil)
141
+ # Some parameter documentations has been truncated, see
142
+ # {Dataleon::Models::CompanyCreateParams::Company} for more details.
143
+ #
144
+ # Main information about the company being registered.
145
+ #
146
+ # @param name [String] Legal name of the company.
147
+ #
148
+ # @param address [String] Registered address of the company.
149
+ #
150
+ # @param commercial_name [String] Commercial or trade name of the company, if different from the legal name.
151
+ #
152
+ # @param country [String] ISO 3166-1 alpha-2 country code of company registration (e.g., "FR" for France).
153
+ #
154
+ # @param email [String] Contact email address for the company.
155
+ #
156
+ # @param employer_identification_number [String] Employer Identification Number (EIN) or equivalent.
157
+ #
158
+ # @param legal_form [String] Legal structure of the company (e.g., SARL, SAS).
159
+ #
160
+ # @param phone_number [String] Contact phone number for the company.
161
+ #
162
+ # @param registration_date [String] Date of official company registration in YYYY-MM-DD format.
163
+ #
164
+ # @param registration_id [String] Official company registration identifier.
165
+ #
166
+ # @param share_capital [String] Declared share capital of the company, usually in euros.
167
+ #
168
+ # @param status [String] Current status of the company (e.g., active, inactive).
169
+ #
170
+ # @param tax_identification_number [String] National tax identifier (e.g., VAT or TIN).
171
+ #
172
+ # @param type [String] Type of company, such as "main" or "affiliated".
173
+ #
174
+ # @param website_url [String] Company’s official website URL.
175
+ end
176
+
177
+ class TechnicalData < Dataleon::Internal::Type::BaseModel
178
+ # @!attribute active_aml_suspicions
179
+ # Flag indicating whether there are active research AML (Anti-Money Laundering)
180
+ # suspicions for the company when you apply for a new entry or get an existing
181
+ # one.
182
+ #
183
+ # @return [Boolean, nil]
184
+ optional :active_aml_suspicions, Dataleon::Internal::Type::Boolean
185
+
186
+ # @!attribute callback_url
187
+ # URL to receive a callback once the company is processed.
188
+ #
189
+ # @return [String, nil]
190
+ optional :callback_url, String
191
+
192
+ # @!attribute callback_url_notification
193
+ # URL to receive notifications about the processing state and status.
194
+ #
195
+ # @return [String, nil]
196
+ optional :callback_url_notification, String
197
+
198
+ # @!attribute language
199
+ # Preferred language for responses or notifications (e.g., "eng", "fra").
200
+ #
201
+ # @return [String, nil]
202
+ optional :language, String
203
+
204
+ # @!attribute raw_data
205
+ # Flag indicating whether to include raw data in the response.
206
+ #
207
+ # @return [Boolean, nil]
208
+ optional :raw_data, Dataleon::Internal::Type::Boolean
209
+
210
+ # @!method initialize(active_aml_suspicions: nil, callback_url: nil, callback_url_notification: nil, language: nil, raw_data: nil)
211
+ # Some parameter documentations has been truncated, see
212
+ # {Dataleon::Models::CompanyCreateParams::TechnicalData} for more details.
213
+ #
214
+ # Technical metadata and callback configuration.
215
+ #
216
+ # @param active_aml_suspicions [Boolean] Flag indicating whether there are active research AML (Anti-Money Laundering) su
217
+ #
218
+ # @param callback_url [String] URL to receive a callback once the company is processed.
219
+ #
220
+ # @param callback_url_notification [String] URL to receive notifications about the processing state and status.
221
+ #
222
+ # @param language [String] Preferred language for responses or notifications (e.g., "eng", "fra").
223
+ #
224
+ # @param raw_data [Boolean] Flag indicating whether to include raw data in the response.
225
+ end
226
+ end
227
+ end
228
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Dataleon
4
+ module Models
5
+ # @see Dataleon::Resources::Companies#delete
6
+ class CompanyDeleteParams < Dataleon::Internal::Type::BaseModel
7
+ extend Dataleon::Internal::Type::RequestParameters::Converter
8
+ include Dataleon::Internal::Type::RequestParameters
9
+
10
+ # @!method initialize(request_options: {})
11
+ # @param request_options [Dataleon::RequestOptions, Hash{Symbol=>Object}]
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,108 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Dataleon
4
+ module Models
5
+ # @see Dataleon::Resources::Companies#list
6
+ class CompanyListParams < Dataleon::Internal::Type::BaseModel
7
+ extend Dataleon::Internal::Type::RequestParameters::Converter
8
+ include Dataleon::Internal::Type::RequestParameters
9
+
10
+ # @!attribute end_date
11
+ # Filter companies created before this date (format YYYY-MM-DD)
12
+ #
13
+ # @return [Date, nil]
14
+ optional :end_date, Date
15
+
16
+ # @!attribute limit
17
+ # Number of results to return (between 1 and 100)
18
+ #
19
+ # @return [Integer, nil]
20
+ optional :limit, Integer
21
+
22
+ # @!attribute offset
23
+ # Number of results to skip (must be ≥ 0)
24
+ #
25
+ # @return [Integer, nil]
26
+ optional :offset, Integer
27
+
28
+ # @!attribute source_id
29
+ # Filter by source ID
30
+ #
31
+ # @return [String, nil]
32
+ optional :source_id, String
33
+
34
+ # @!attribute start_date
35
+ # Filter companies created after this date (format YYYY-MM-DD)
36
+ #
37
+ # @return [Date, nil]
38
+ optional :start_date, Date
39
+
40
+ # @!attribute state
41
+ # Filter by company state (must be one of the allowed values)
42
+ #
43
+ # @return [Symbol, Dataleon::Models::CompanyListParams::State, nil]
44
+ optional :state, enum: -> { Dataleon::CompanyListParams::State }
45
+
46
+ # @!attribute status
47
+ # Filter by individual status (must be one of the allowed values)
48
+ #
49
+ # @return [Symbol, Dataleon::Models::CompanyListParams::Status, nil]
50
+ optional :status, enum: -> { Dataleon::CompanyListParams::Status }
51
+
52
+ # @!attribute workspace_id
53
+ # Filter by workspace ID
54
+ #
55
+ # @return [String, nil]
56
+ optional :workspace_id, String
57
+
58
+ # @!method initialize(end_date: nil, limit: nil, offset: nil, source_id: nil, start_date: nil, state: nil, status: nil, workspace_id: nil, request_options: {})
59
+ # @param end_date [Date] Filter companies created before this date (format YYYY-MM-DD)
60
+ #
61
+ # @param limit [Integer] Number of results to return (between 1 and 100)
62
+ #
63
+ # @param offset [Integer] Number of results to skip (must be ≥ 0)
64
+ #
65
+ # @param source_id [String] Filter by source ID
66
+ #
67
+ # @param start_date [Date] Filter companies created after this date (format YYYY-MM-DD)
68
+ #
69
+ # @param state [Symbol, Dataleon::Models::CompanyListParams::State] Filter by company state (must be one of the allowed values)
70
+ #
71
+ # @param status [Symbol, Dataleon::Models::CompanyListParams::Status] Filter by individual status (must be one of the allowed values)
72
+ #
73
+ # @param workspace_id [String] Filter by workspace ID
74
+ #
75
+ # @param request_options [Dataleon::RequestOptions, Hash{Symbol=>Object}]
76
+
77
+ # Filter by company state (must be one of the allowed values)
78
+ module State
79
+ extend Dataleon::Internal::Type::Enum
80
+
81
+ VOID = :VOID
82
+ WAITING = :WAITING
83
+ STARTED = :STARTED
84
+ RUNNING = :RUNNING
85
+ PROCESSED = :PROCESSED
86
+ FAILED = :FAILED
87
+ ABORTED = :ABORTED
88
+ EXPIRED = :EXPIRED
89
+ DELETED = :DELETED
90
+
91
+ # @!method self.values
92
+ # @return [Array<Symbol>]
93
+ end
94
+
95
+ # Filter by individual status (must be one of the allowed values)
96
+ module Status
97
+ extend Dataleon::Internal::Type::Enum
98
+
99
+ REJECTED = :rejected
100
+ NEED_REVIEW = :need_review
101
+ APPROVED = :approved
102
+
103
+ # @!method self.values
104
+ # @return [Array<Symbol>]
105
+ end
106
+ end
107
+ end
108
+ end
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Dataleon
4
+ module Models
5
+ # @type [Dataleon::Internal::Type::Converter]
6
+ CompanyListResponse = Dataleon::Internal::Type::ArrayOf[-> { Dataleon::CompanyRegistration }]
7
+ end
8
+ end