e-invoice-api 0.1.0.pre.alpha.5

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 (233) hide show
  1. checksums.yaml +7 -0
  2. data/.ignore +2 -0
  3. data/CHANGELOG.md +57 -0
  4. data/README.md +285 -0
  5. data/SECURITY.md +27 -0
  6. data/lib/e_invoice_api/client.rb +94 -0
  7. data/lib/e_invoice_api/errors.rb +192 -0
  8. data/lib/e_invoice_api/file_part.rb +55 -0
  9. data/lib/e_invoice_api/internal/documents_number_page.rb +96 -0
  10. data/lib/e_invoice_api/internal/transport/base_client.rb +555 -0
  11. data/lib/e_invoice_api/internal/transport/pooled_net_requester.rb +209 -0
  12. data/lib/e_invoice_api/internal/type/array_of.rb +162 -0
  13. data/lib/e_invoice_api/internal/type/base_model.rb +482 -0
  14. data/lib/e_invoice_api/internal/type/base_page.rb +55 -0
  15. data/lib/e_invoice_api/internal/type/boolean.rb +71 -0
  16. data/lib/e_invoice_api/internal/type/converter.rb +292 -0
  17. data/lib/e_invoice_api/internal/type/enum.rb +148 -0
  18. data/lib/e_invoice_api/internal/type/file_input.rb +103 -0
  19. data/lib/e_invoice_api/internal/type/hash_of.rb +182 -0
  20. data/lib/e_invoice_api/internal/type/request_parameters.rb +42 -0
  21. data/lib/e_invoice_api/internal/type/union.rb +236 -0
  22. data/lib/e_invoice_api/internal/type/unknown.rb +75 -0
  23. data/lib/e_invoice_api/internal/util.rb +914 -0
  24. data/lib/e_invoice_api/internal.rb +20 -0
  25. data/lib/e_invoice_api/models/certificate.rb +34 -0
  26. data/lib/e_invoice_api/models/currency_code.rb +28 -0
  27. data/lib/e_invoice_api/models/document_attachment_create.rb +33 -0
  28. data/lib/e_invoice_api/models/document_create.rb +521 -0
  29. data/lib/e_invoice_api/models/document_create_params.rb +14 -0
  30. data/lib/e_invoice_api/models/document_delete_params.rb +14 -0
  31. data/lib/e_invoice_api/models/document_delete_response.rb +16 -0
  32. data/lib/e_invoice_api/models/document_direction.rb +15 -0
  33. data/lib/e_invoice_api/models/document_response.rb +418 -0
  34. data/lib/e_invoice_api/models/document_retrieve_params.rb +14 -0
  35. data/lib/e_invoice_api/models/document_send_params.rb +44 -0
  36. data/lib/e_invoice_api/models/document_state.rb +18 -0
  37. data/lib/e_invoice_api/models/document_type.rb +15 -0
  38. data/lib/e_invoice_api/models/documents/attachment_add_params.rb +22 -0
  39. data/lib/e_invoice_api/models/documents/attachment_delete_params.rb +22 -0
  40. data/lib/e_invoice_api/models/documents/attachment_delete_response.rb +18 -0
  41. data/lib/e_invoice_api/models/documents/attachment_list_params.rb +16 -0
  42. data/lib/e_invoice_api/models/documents/attachment_list_response.rb +11 -0
  43. data/lib/e_invoice_api/models/documents/attachment_retrieve_params.rb +22 -0
  44. data/lib/e_invoice_api/models/documents/document_attachment.rb +44 -0
  45. data/lib/e_invoice_api/models/documents/ubl_get_params.rb +16 -0
  46. data/lib/e_invoice_api/models/documents/ubl_get_response.rb +72 -0
  47. data/lib/e_invoice_api/models/inbox_list_credit_notes_params.rb +30 -0
  48. data/lib/e_invoice_api/models/inbox_list_invoices_params.rb +30 -0
  49. data/lib/e_invoice_api/models/inbox_list_params.rb +78 -0
  50. data/lib/e_invoice_api/models/lookup_retrieve_params.rb +26 -0
  51. data/lib/e_invoice_api/models/lookup_retrieve_response.rb +491 -0
  52. data/lib/e_invoice_api/models/outbox_list_draft_documents_params.rb +30 -0
  53. data/lib/e_invoice_api/models/outbox_list_received_documents_params.rb +78 -0
  54. data/lib/e_invoice_api/models/paginated_document_response.rb +39 -0
  55. data/lib/e_invoice_api/models/payment_detail_create.rb +33 -0
  56. data/lib/e_invoice_api/models/ubl_document_validation.rb +97 -0
  57. data/lib/e_invoice_api/models/unit_of_measure_code.rb +104 -0
  58. data/lib/e_invoice_api/models/validate_validate_json_params.rb +14 -0
  59. data/lib/e_invoice_api/models/validate_validate_peppol_id_params.rb +26 -0
  60. data/lib/e_invoice_api/models/validate_validate_peppol_id_response.rb +80 -0
  61. data/lib/e_invoice_api/models/validate_validate_ubl_params.rb +20 -0
  62. data/lib/e_invoice_api/models/webhook_create_params.rb +32 -0
  63. data/lib/e_invoice_api/models/webhook_delete_params.rb +14 -0
  64. data/lib/e_invoice_api/models/webhook_delete_response.rb +18 -0
  65. data/lib/e_invoice_api/models/webhook_list_params.rb +14 -0
  66. data/lib/e_invoice_api/models/webhook_list_response.rb +8 -0
  67. data/lib/e_invoice_api/models/webhook_response.rb +42 -0
  68. data/lib/e_invoice_api/models/webhook_retrieve_params.rb +14 -0
  69. data/lib/e_invoice_api/models/webhook_update_params.rb +32 -0
  70. data/lib/e_invoice_api/models.rb +105 -0
  71. data/lib/e_invoice_api/request_options.rb +77 -0
  72. data/lib/e_invoice_api/resources/documents/attachments.rb +109 -0
  73. data/lib/e_invoice_api/resources/documents/ubl.rb +35 -0
  74. data/lib/e_invoice_api/resources/documents.rb +188 -0
  75. data/lib/e_invoice_api/resources/inbox.rb +101 -0
  76. data/lib/e_invoice_api/resources/lookup.rb +43 -0
  77. data/lib/e_invoice_api/resources/outbox.rb +76 -0
  78. data/lib/e_invoice_api/resources/validate.rb +168 -0
  79. data/lib/e_invoice_api/resources/webhooks.rb +117 -0
  80. data/lib/e_invoice_api/version.rb +5 -0
  81. data/lib/e_invoice_api.rb +107 -0
  82. data/manifest.yaml +15 -0
  83. data/rbi/e_invoice_api/client.rbi +64 -0
  84. data/rbi/e_invoice_api/errors.rbi +162 -0
  85. data/rbi/e_invoice_api/file_part.rbi +37 -0
  86. data/rbi/e_invoice_api/internal/documents_number_page.rbi +28 -0
  87. data/rbi/e_invoice_api/internal/transport/base_client.rbi +298 -0
  88. data/rbi/e_invoice_api/internal/transport/pooled_net_requester.rbi +80 -0
  89. data/rbi/e_invoice_api/internal/type/array_of.rbi +104 -0
  90. data/rbi/e_invoice_api/internal/type/base_model.rbi +304 -0
  91. data/rbi/e_invoice_api/internal/type/base_page.rbi +43 -0
  92. data/rbi/e_invoice_api/internal/type/boolean.rbi +56 -0
  93. data/rbi/e_invoice_api/internal/type/converter.rbi +162 -0
  94. data/rbi/e_invoice_api/internal/type/enum.rbi +82 -0
  95. data/rbi/e_invoice_api/internal/type/file_input.rbi +59 -0
  96. data/rbi/e_invoice_api/internal/type/hash_of.rbi +104 -0
  97. data/rbi/e_invoice_api/internal/type/request_parameters.rbi +31 -0
  98. data/rbi/e_invoice_api/internal/type/union.rbi +116 -0
  99. data/rbi/e_invoice_api/internal/type/unknown.rbi +56 -0
  100. data/rbi/e_invoice_api/internal/util.rbi +487 -0
  101. data/rbi/e_invoice_api/internal.rbi +18 -0
  102. data/rbi/e_invoice_api/models/certificate.rbi +54 -0
  103. data/rbi/e_invoice_api/models/currency_code.rbi +34 -0
  104. data/rbi/e_invoice_api/models/document_attachment_create.rbi +57 -0
  105. data/rbi/e_invoice_api/models/document_create.rbi +638 -0
  106. data/rbi/e_invoice_api/models/document_create_params.rbi +30 -0
  107. data/rbi/e_invoice_api/models/document_delete_params.rbi +30 -0
  108. data/rbi/e_invoice_api/models/document_delete_response.rbi +26 -0
  109. data/rbi/e_invoice_api/models/document_direction.rbi +22 -0
  110. data/rbi/e_invoice_api/models/document_response.rbi +504 -0
  111. data/rbi/e_invoice_api/models/document_retrieve_params.rbi +30 -0
  112. data/rbi/e_invoice_api/models/document_send_params.rbi +65 -0
  113. data/rbi/e_invoice_api/models/document_state.rbi +24 -0
  114. data/rbi/e_invoice_api/models/document_type.rbi +21 -0
  115. data/rbi/e_invoice_api/models/documents/attachment_add_params.rbi +43 -0
  116. data/rbi/e_invoice_api/models/documents/attachment_delete_params.rbi +43 -0
  117. data/rbi/e_invoice_api/models/documents/attachment_delete_response.rbi +28 -0
  118. data/rbi/e_invoice_api/models/documents/attachment_list_params.rbi +34 -0
  119. data/rbi/e_invoice_api/models/documents/attachment_list_response.rbi +15 -0
  120. data/rbi/e_invoice_api/models/documents/attachment_retrieve_params.rbi +43 -0
  121. data/rbi/e_invoice_api/models/documents/document_attachment.rbi +72 -0
  122. data/rbi/e_invoice_api/models/documents/ubl_get_params.rbi +34 -0
  123. data/rbi/e_invoice_api/models/documents/ubl_get_response.rbi +97 -0
  124. data/rbi/e_invoice_api/models/inbox_list_credit_notes_params.rbi +60 -0
  125. data/rbi/e_invoice_api/models/inbox_list_invoices_params.rbi +60 -0
  126. data/rbi/e_invoice_api/models/inbox_list_params.rbi +105 -0
  127. data/rbi/e_invoice_api/models/lookup_retrieve_params.rbi +45 -0
  128. data/rbi/e_invoice_api/models/lookup_retrieve_response.rbi +852 -0
  129. data/rbi/e_invoice_api/models/outbox_list_draft_documents_params.rbi +60 -0
  130. data/rbi/e_invoice_api/models/outbox_list_received_documents_params.rbi +108 -0
  131. data/rbi/e_invoice_api/models/paginated_document_response.rbi +56 -0
  132. data/rbi/e_invoice_api/models/payment_detail_create.rbi +56 -0
  133. data/rbi/e_invoice_api/models/ubl_document_validation.rbi +159 -0
  134. data/rbi/e_invoice_api/models/unit_of_measure_code.rbi +149 -0
  135. data/rbi/e_invoice_api/models/validate_validate_json_params.rbi +30 -0
  136. data/rbi/e_invoice_api/models/validate_validate_peppol_id_params.rbi +45 -0
  137. data/rbi/e_invoice_api/models/validate_validate_peppol_id_response.rbi +141 -0
  138. data/rbi/e_invoice_api/models/validate_validate_ubl_params.rbi +41 -0
  139. data/rbi/e_invoice_api/models/webhook_create_params.rbi +54 -0
  140. data/rbi/e_invoice_api/models/webhook_delete_params.rbi +30 -0
  141. data/rbi/e_invoice_api/models/webhook_delete_response.rbi +27 -0
  142. data/rbi/e_invoice_api/models/webhook_list_params.rbi +27 -0
  143. data/rbi/e_invoice_api/models/webhook_list_response.rbi +11 -0
  144. data/rbi/e_invoice_api/models/webhook_response.rbi +57 -0
  145. data/rbi/e_invoice_api/models/webhook_retrieve_params.rbi +30 -0
  146. data/rbi/e_invoice_api/models/webhook_update_params.rbi +51 -0
  147. data/rbi/e_invoice_api/models.rbi +70 -0
  148. data/rbi/e_invoice_api/request_options.rbi +59 -0
  149. data/rbi/e_invoice_api/resources/documents/attachments.rbi +58 -0
  150. data/rbi/e_invoice_api/resources/documents/ubl.rbi +24 -0
  151. data/rbi/e_invoice_api/resources/documents.rbi +164 -0
  152. data/rbi/e_invoice_api/resources/inbox.rbi +93 -0
  153. data/rbi/e_invoice_api/resources/lookup.rbi +31 -0
  154. data/rbi/e_invoice_api/resources/outbox.rbi +72 -0
  155. data/rbi/e_invoice_api/resources/validate.rbi +145 -0
  156. data/rbi/e_invoice_api/resources/webhooks.rbi +72 -0
  157. data/rbi/e_invoice_api/version.rbi +5 -0
  158. data/sig/e_invoice_api/client.rbs +36 -0
  159. data/sig/e_invoice_api/errors.rbs +101 -0
  160. data/sig/e_invoice_api/file_part.rbs +21 -0
  161. data/sig/e_invoice_api/internal/documents_number_page.rbs +17 -0
  162. data/sig/e_invoice_api/internal/transport/base_client.rbs +131 -0
  163. data/sig/e_invoice_api/internal/transport/pooled_net_requester.rbs +45 -0
  164. data/sig/e_invoice_api/internal/type/array_of.rbs +48 -0
  165. data/sig/e_invoice_api/internal/type/base_model.rbs +102 -0
  166. data/sig/e_invoice_api/internal/type/base_page.rbs +24 -0
  167. data/sig/e_invoice_api/internal/type/boolean.rbs +26 -0
  168. data/sig/e_invoice_api/internal/type/converter.rbs +56 -0
  169. data/sig/e_invoice_api/internal/type/enum.rbs +32 -0
  170. data/sig/e_invoice_api/internal/type/file_input.rbs +25 -0
  171. data/sig/e_invoice_api/internal/type/hash_of.rbs +48 -0
  172. data/sig/e_invoice_api/internal/type/request_parameters.rbs +19 -0
  173. data/sig/e_invoice_api/internal/type/union.rbs +52 -0
  174. data/sig/e_invoice_api/internal/type/unknown.rbs +26 -0
  175. data/sig/e_invoice_api/internal/util.rbs +185 -0
  176. data/sig/e_invoice_api/internal.rbs +9 -0
  177. data/sig/e_invoice_api/models/certificate.rbs +26 -0
  178. data/sig/e_invoice_api/models/currency_code.rbs +42 -0
  179. data/sig/e_invoice_api/models/document_attachment_create.rbs +39 -0
  180. data/sig/e_invoice_api/models/document_create.rbs +403 -0
  181. data/sig/e_invoice_api/models/document_create_params.rbs +15 -0
  182. data/sig/e_invoice_api/models/document_delete_params.rbs +15 -0
  183. data/sig/e_invoice_api/models/document_delete_response.rbs +13 -0
  184. data/sig/e_invoice_api/models/document_direction.rbs +14 -0
  185. data/sig/e_invoice_api/models/document_response.rbs +358 -0
  186. data/sig/e_invoice_api/models/document_retrieve_params.rbs +15 -0
  187. data/sig/e_invoice_api/models/document_send_params.rbs +46 -0
  188. data/sig/e_invoice_api/models/document_state.rbs +17 -0
  189. data/sig/e_invoice_api/models/document_type.rbs +14 -0
  190. data/sig/e_invoice_api/models/documents/attachment_add_params.rbs +26 -0
  191. data/sig/e_invoice_api/models/documents/attachment_delete_params.rbs +26 -0
  192. data/sig/e_invoice_api/models/documents/attachment_delete_response.rbs +15 -0
  193. data/sig/e_invoice_api/models/documents/attachment_list_params.rbs +17 -0
  194. data/sig/e_invoice_api/models/documents/attachment_list_response.rbs +10 -0
  195. data/sig/e_invoice_api/models/documents/attachment_retrieve_params.rbs +26 -0
  196. data/sig/e_invoice_api/models/documents/document_attachment.rbs +48 -0
  197. data/sig/e_invoice_api/models/documents/ubl_get_params.rbs +17 -0
  198. data/sig/e_invoice_api/models/documents/ubl_get_response.rbs +69 -0
  199. data/sig/e_invoice_api/models/inbox_list_credit_notes_params.rbs +32 -0
  200. data/sig/e_invoice_api/models/inbox_list_invoices_params.rbs +32 -0
  201. data/sig/e_invoice_api/models/inbox_list_params.rbs +65 -0
  202. data/sig/e_invoice_api/models/lookup_retrieve_params.rbs +23 -0
  203. data/sig/e_invoice_api/models/lookup_retrieve_response.rbs +365 -0
  204. data/sig/e_invoice_api/models/outbox_list_draft_documents_params.rbs +32 -0
  205. data/sig/e_invoice_api/models/outbox_list_received_documents_params.rbs +65 -0
  206. data/sig/e_invoice_api/models/paginated_document_response.rbs +40 -0
  207. data/sig/e_invoice_api/models/payment_detail_create.rbs +35 -0
  208. data/sig/e_invoice_api/models/ubl_document_validation.rbs +98 -0
  209. data/sig/e_invoice_api/models/unit_of_measure_code.rbs +192 -0
  210. data/sig/e_invoice_api/models/validate_validate_json_params.rbs +15 -0
  211. data/sig/e_invoice_api/models/validate_validate_peppol_id_params.rbs +23 -0
  212. data/sig/e_invoice_api/models/validate_validate_peppol_id_response.rbs +65 -0
  213. data/sig/e_invoice_api/models/validate_validate_ubl_params.rbs +24 -0
  214. data/sig/e_invoice_api/models/webhook_create_params.rbs +34 -0
  215. data/sig/e_invoice_api/models/webhook_delete_params.rbs +15 -0
  216. data/sig/e_invoice_api/models/webhook_delete_response.rbs +13 -0
  217. data/sig/e_invoice_api/models/webhook_list_params.rbs +15 -0
  218. data/sig/e_invoice_api/models/webhook_list_response.rbs +7 -0
  219. data/sig/e_invoice_api/models/webhook_response.rbs +42 -0
  220. data/sig/e_invoice_api/models/webhook_retrieve_params.rbs +15 -0
  221. data/sig/e_invoice_api/models/webhook_update_params.rbs +32 -0
  222. data/sig/e_invoice_api/models.rbs +65 -0
  223. data/sig/e_invoice_api/request_options.rbs +36 -0
  224. data/sig/e_invoice_api/resources/documents/attachments.rbs +32 -0
  225. data/sig/e_invoice_api/resources/documents/ubl.rbs +14 -0
  226. data/sig/e_invoice_api/resources/documents.rbs +76 -0
  227. data/sig/e_invoice_api/resources/inbox.rbs +31 -0
  228. data/sig/e_invoice_api/resources/lookup.rbs +12 -0
  229. data/sig/e_invoice_api/resources/outbox.rbs +25 -0
  230. data/sig/e_invoice_api/resources/validate.rbs +62 -0
  231. data/sig/e_invoice_api/resources/webhooks.rbs +36 -0
  232. data/sig/e_invoice_api/version.rbs +3 -0
  233. metadata +290 -0
@@ -0,0 +1,97 @@
1
+ # frozen_string_literal: true
2
+
3
+ module EInvoiceAPI
4
+ module Models
5
+ # @see EInvoiceAPI::Resources::Validate#validate_json
6
+ class UblDocumentValidation < EInvoiceAPI::Internal::Type::BaseModel
7
+ # @!attribute id
8
+ #
9
+ # @return [String]
10
+ required :id, String
11
+
12
+ # @!attribute file_name
13
+ #
14
+ # @return [String, nil]
15
+ required :file_name, String, nil?: true
16
+
17
+ # @!attribute is_valid
18
+ #
19
+ # @return [Boolean]
20
+ required :is_valid, EInvoiceAPI::Internal::Type::Boolean
21
+
22
+ # @!attribute issues
23
+ #
24
+ # @return [Array<EInvoiceAPI::Models::UblDocumentValidation::Issue>]
25
+ required :issues, -> { EInvoiceAPI::Internal::Type::ArrayOf[EInvoiceAPI::UblDocumentValidation::Issue] }
26
+
27
+ # @!attribute ubl_document
28
+ #
29
+ # @return [String, nil]
30
+ optional :ubl_document, String, nil?: true
31
+
32
+ # @!method initialize(id:, file_name:, is_valid:, issues:, ubl_document: nil)
33
+ # @param id [String]
34
+ # @param file_name [String, nil]
35
+ # @param is_valid [Boolean]
36
+ # @param issues [Array<EInvoiceAPI::Models::UblDocumentValidation::Issue>]
37
+ # @param ubl_document [String, nil]
38
+
39
+ class Issue < EInvoiceAPI::Internal::Type::BaseModel
40
+ # @!attribute message
41
+ #
42
+ # @return [String]
43
+ required :message, String
44
+
45
+ # @!attribute schematron
46
+ #
47
+ # @return [String]
48
+ required :schematron, String
49
+
50
+ # @!attribute type
51
+ #
52
+ # @return [Symbol, EInvoiceAPI::Models::UblDocumentValidation::Issue::Type]
53
+ required :type, enum: -> { EInvoiceAPI::UblDocumentValidation::Issue::Type }
54
+
55
+ # @!attribute flag
56
+ #
57
+ # @return [String, nil]
58
+ optional :flag, String, nil?: true
59
+
60
+ # @!attribute location
61
+ #
62
+ # @return [String, nil]
63
+ optional :location, String, nil?: true
64
+
65
+ # @!attribute rule_id
66
+ #
67
+ # @return [String, nil]
68
+ optional :rule_id, String, nil?: true
69
+
70
+ # @!attribute test_
71
+ #
72
+ # @return [String, nil]
73
+ optional :test_, String, api_name: :test, nil?: true
74
+
75
+ # @!method initialize(message:, schematron:, type:, flag: nil, location: nil, rule_id: nil, test_: nil)
76
+ # @param message [String]
77
+ # @param schematron [String]
78
+ # @param type [Symbol, EInvoiceAPI::Models::UblDocumentValidation::Issue::Type]
79
+ # @param flag [String, nil]
80
+ # @param location [String, nil]
81
+ # @param rule_id [String, nil]
82
+ # @param test_ [String, nil]
83
+
84
+ # @see EInvoiceAPI::Models::UblDocumentValidation::Issue#type
85
+ module Type
86
+ extend EInvoiceAPI::Internal::Type::Enum
87
+
88
+ ERROR = :error
89
+ WARNING = :warning
90
+
91
+ # @!method self.values
92
+ # @return [Array<Symbol>]
93
+ end
94
+ end
95
+ end
96
+ end
97
+ end
@@ -0,0 +1,104 @@
1
+ # frozen_string_literal: true
2
+
3
+ module EInvoiceAPI
4
+ module Models
5
+ # Unit of Measure Codes from UNECERec20 used in Peppol BIS Billing 3.0.
6
+ module UnitOfMeasureCode
7
+ extend EInvoiceAPI::Internal::Type::Enum
8
+
9
+ UNIT_OF_MEASURE_CODE_10 = :"10"
10
+ UNIT_OF_MEASURE_CODE_11 = :"11"
11
+ UNIT_OF_MEASURE_CODE_13 = :"13"
12
+ UNIT_OF_MEASURE_CODE_14 = :"14"
13
+ UNIT_OF_MEASURE_CODE_15 = :"15"
14
+ UNIT_OF_MEASURE_CODE_20 = :"20"
15
+ UNIT_OF_MEASURE_CODE_21 = :"21"
16
+ UNIT_OF_MEASURE_CODE_22 = :"22"
17
+ UNIT_OF_MEASURE_CODE_23 = :"23"
18
+ UNIT_OF_MEASURE_CODE_24 = :"24"
19
+ UNIT_OF_MEASURE_CODE_25 = :"25"
20
+ UNIT_OF_MEASURE_CODE_27 = :"27"
21
+ UNIT_OF_MEASURE_CODE_28 = :"28"
22
+ UNIT_OF_MEASURE_CODE_33 = :"33"
23
+ UNIT_OF_MEASURE_CODE_34 = :"34"
24
+ UNIT_OF_MEASURE_CODE_35 = :"35"
25
+ UNIT_OF_MEASURE_CODE_37 = :"37"
26
+ UNIT_OF_MEASURE_CODE_38 = :"38"
27
+ UNIT_OF_MEASURE_CODE_40 = :"40"
28
+ UNIT_OF_MEASURE_CODE_41 = :"41"
29
+ UNIT_OF_MEASURE_CODE_56 = :"56"
30
+ UNIT_OF_MEASURE_CODE_57 = :"57"
31
+ UNIT_OF_MEASURE_CODE_58 = :"58"
32
+ UNIT_OF_MEASURE_CODE_59 = :"59"
33
+ UNIT_OF_MEASURE_CODE_60 = :"60"
34
+ UNIT_OF_MEASURE_CODE_61 = :"61"
35
+ UNIT_OF_MEASURE_CODE_74 = :"74"
36
+ UNIT_OF_MEASURE_CODE_77 = :"77"
37
+ UNIT_OF_MEASURE_CODE_80 = :"80"
38
+ UNIT_OF_MEASURE_CODE_81 = :"81"
39
+ UNIT_OF_MEASURE_CODE_85 = :"85"
40
+ UNIT_OF_MEASURE_CODE_87 = :"87"
41
+ UNIT_OF_MEASURE_CODE_89 = :"89"
42
+ UNIT_OF_MEASURE_CODE_91 = :"91"
43
+ UNIT_OF_MEASURE_CODE_1_I = :"1I"
44
+ EA = :EA
45
+ E01 = :E01
46
+ E07 = :E07
47
+ E09 = :E09
48
+ E10 = :E10
49
+ E12 = :E12
50
+ E14 = :E14
51
+ E17 = :E17
52
+ E20 = :E20
53
+ E23 = :E23
54
+ E25 = :E25
55
+ E27 = :E27
56
+ E31 = :E31
57
+ E34 = :E34
58
+ E35 = :E35
59
+ E36 = :E36
60
+ E37 = :E37
61
+ E38 = :E38
62
+ E39 = :E39
63
+ E40 = :E40
64
+ E41 = :E41
65
+ E42 = :E42
66
+ E43 = :E43
67
+ E44 = :E44
68
+ E45 = :E45
69
+ E46 = :E46
70
+ E47 = :E47
71
+ E48 = :E48
72
+ E49 = :E49
73
+ E50 = :E50
74
+ E51 = :E51
75
+ E52 = :E52
76
+ E53 = :E53
77
+ E54 = :E54
78
+ E55 = :E55
79
+ E56 = :E56
80
+ E57 = :E57
81
+ E58 = :E58
82
+ E60 = :E60
83
+ E62 = :E62
84
+ E65 = :E65
85
+ E66 = :E66
86
+ E67 = :E67
87
+ E69 = :E69
88
+ E70 = :E70
89
+ E71 = :E71
90
+ E73 = :E73
91
+ E75 = :E75
92
+ E76 = :E76
93
+ UNIT_OF_MEASURE_CODE_2_A = :"2A"
94
+ UNIT_OF_MEASURE_CODE_2_B = :"2B"
95
+ UNIT_OF_MEASURE_CODE_2_C = :"2C"
96
+ ZZ = :ZZ
97
+ NAR = :NAR
98
+ C62 = :C62
99
+
100
+ # @!method self.values
101
+ # @return [Array<Symbol>]
102
+ end
103
+ end
104
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module EInvoiceAPI
4
+ module Models
5
+ # @see EInvoiceAPI::Resources::Validate#validate_json
6
+ class ValidateValidateJsonParams < EInvoiceAPI::Models::DocumentCreate
7
+ extend EInvoiceAPI::Internal::Type::RequestParameters::Converter
8
+ include EInvoiceAPI::Internal::Type::RequestParameters
9
+
10
+ # @!method initialize(request_options: {})
11
+ # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}]
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ module EInvoiceAPI
4
+ module Models
5
+ # @see EInvoiceAPI::Resources::Validate#validate_peppol_id
6
+ class ValidateValidatePeppolIDParams < EInvoiceAPI::Internal::Type::BaseModel
7
+ extend EInvoiceAPI::Internal::Type::RequestParameters::Converter
8
+ include EInvoiceAPI::Internal::Type::RequestParameters
9
+
10
+ # @!attribute peppol_id
11
+ # Peppol ID in the format `<scheme>:<id>`. Example: `0208:1018265814` for a
12
+ # Belgian company.
13
+ #
14
+ # @return [String]
15
+ required :peppol_id, String
16
+
17
+ # @!method initialize(peppol_id:, request_options: {})
18
+ # Some parameter documentations has been truncated, see
19
+ # {EInvoiceAPI::Models::ValidateValidatePeppolIDParams} for more details.
20
+ #
21
+ # @param peppol_id [String] Peppol ID in the format `<scheme>:<id>`. Example: `0208:1018265814` for a Belgia
22
+ #
23
+ # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}]
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,80 @@
1
+ # frozen_string_literal: true
2
+
3
+ module EInvoiceAPI
4
+ module Models
5
+ # @see EInvoiceAPI::Resources::Validate#validate_peppol_id
6
+ class ValidateValidatePeppolIDResponse < EInvoiceAPI::Internal::Type::BaseModel
7
+ # @!attribute business_card
8
+ # Business card information for the Peppol ID
9
+ #
10
+ # @return [EInvoiceAPI::Models::ValidateValidatePeppolIDResponse::BusinessCard, nil]
11
+ required :business_card,
12
+ -> { EInvoiceAPI::Models::ValidateValidatePeppolIDResponse::BusinessCard },
13
+ nil?: true
14
+
15
+ # @!attribute business_card_valid
16
+ # Whether a business card is set at the SMP
17
+ #
18
+ # @return [Boolean]
19
+ required :business_card_valid, EInvoiceAPI::Internal::Type::Boolean
20
+
21
+ # @!attribute dns_valid
22
+ # Whether the DNS resolves to a valid SMP
23
+ #
24
+ # @return [Boolean]
25
+ required :dns_valid, EInvoiceAPI::Internal::Type::Boolean
26
+
27
+ # @!attribute is_valid
28
+ # Whether the Peppol ID is valid and registered in the Peppol network
29
+ #
30
+ # @return [Boolean]
31
+ required :is_valid, EInvoiceAPI::Internal::Type::Boolean
32
+
33
+ # @!attribute supported_document_types
34
+ #
35
+ # @return [Array<String>, nil]
36
+ optional :supported_document_types, EInvoiceAPI::Internal::Type::ArrayOf[String]
37
+
38
+ # @!method initialize(business_card:, business_card_valid:, dns_valid:, is_valid:, supported_document_types: nil)
39
+ # Response for a Peppol ID validation request.
40
+ #
41
+ # This model represents the validation result of a Peppol ID in the Peppol
42
+ # network, including whether the ID is valid and what document types it supports.
43
+ #
44
+ # @param business_card [EInvoiceAPI::Models::ValidateValidatePeppolIDResponse::BusinessCard, nil] Business card information for the Peppol ID
45
+ #
46
+ # @param business_card_valid [Boolean] Whether a business card is set at the SMP
47
+ #
48
+ # @param dns_valid [Boolean] Whether the DNS resolves to a valid SMP
49
+ #
50
+ # @param is_valid [Boolean] Whether the Peppol ID is valid and registered in the Peppol network
51
+ #
52
+ # @param supported_document_types [Array<String>]
53
+
54
+ # @see EInvoiceAPI::Models::ValidateValidatePeppolIDResponse#business_card
55
+ class BusinessCard < EInvoiceAPI::Internal::Type::BaseModel
56
+ # @!attribute country_code
57
+ #
58
+ # @return [String, nil]
59
+ optional :country_code, String, nil?: true
60
+
61
+ # @!attribute name
62
+ #
63
+ # @return [String, nil]
64
+ optional :name, String, nil?: true
65
+
66
+ # @!attribute registration_date
67
+ #
68
+ # @return [Date, nil]
69
+ optional :registration_date, Date, nil?: true
70
+
71
+ # @!method initialize(country_code: nil, name: nil, registration_date: nil)
72
+ # Business card information for the Peppol ID
73
+ #
74
+ # @param country_code [String, nil]
75
+ # @param name [String, nil]
76
+ # @param registration_date [Date, nil]
77
+ end
78
+ end
79
+ end
80
+ end
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ module EInvoiceAPI
4
+ module Models
5
+ # @see EInvoiceAPI::Resources::Validate#validate_ubl
6
+ class ValidateValidateUblParams < EInvoiceAPI::Internal::Type::BaseModel
7
+ extend EInvoiceAPI::Internal::Type::RequestParameters::Converter
8
+ include EInvoiceAPI::Internal::Type::RequestParameters
9
+
10
+ # @!attribute file
11
+ #
12
+ # @return [Pathname, StringIO, IO, String, EInvoiceAPI::FilePart]
13
+ required :file, EInvoiceAPI::Internal::Type::FileInput
14
+
15
+ # @!method initialize(file:, request_options: {})
16
+ # @param file [Pathname, StringIO, IO, String, EInvoiceAPI::FilePart]
17
+ # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}]
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,32 @@
1
+ # frozen_string_literal: true
2
+
3
+ module EInvoiceAPI
4
+ module Models
5
+ # @see EInvoiceAPI::Resources::Webhooks#create
6
+ class WebhookCreateParams < EInvoiceAPI::Internal::Type::BaseModel
7
+ extend EInvoiceAPI::Internal::Type::RequestParameters::Converter
8
+ include EInvoiceAPI::Internal::Type::RequestParameters
9
+
10
+ # @!attribute events
11
+ #
12
+ # @return [Array<String>]
13
+ required :events, EInvoiceAPI::Internal::Type::ArrayOf[String]
14
+
15
+ # @!attribute url
16
+ #
17
+ # @return [String]
18
+ required :url, String
19
+
20
+ # @!attribute enabled
21
+ #
22
+ # @return [Boolean, nil]
23
+ optional :enabled, EInvoiceAPI::Internal::Type::Boolean
24
+
25
+ # @!method initialize(events:, url:, enabled: nil, request_options: {})
26
+ # @param events [Array<String>]
27
+ # @param url [String]
28
+ # @param enabled [Boolean]
29
+ # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}]
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module EInvoiceAPI
4
+ module Models
5
+ # @see EInvoiceAPI::Resources::Webhooks#delete
6
+ class WebhookDeleteParams < EInvoiceAPI::Internal::Type::BaseModel
7
+ extend EInvoiceAPI::Internal::Type::RequestParameters::Converter
8
+ include EInvoiceAPI::Internal::Type::RequestParameters
9
+
10
+ # @!method initialize(request_options: {})
11
+ # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}]
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ module EInvoiceAPI
4
+ module Models
5
+ # @see EInvoiceAPI::Resources::Webhooks#delete
6
+ class WebhookDeleteResponse < EInvoiceAPI::Internal::Type::BaseModel
7
+ # @!attribute is_deleted
8
+ #
9
+ # @return [Boolean]
10
+ required :is_deleted, EInvoiceAPI::Internal::Type::Boolean
11
+
12
+ # @!method initialize(is_deleted:)
13
+ # Model for webhook deletion.
14
+ #
15
+ # @param is_deleted [Boolean]
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module EInvoiceAPI
4
+ module Models
5
+ # @see EInvoiceAPI::Resources::Webhooks#list
6
+ class WebhookListParams < EInvoiceAPI::Internal::Type::BaseModel
7
+ extend EInvoiceAPI::Internal::Type::RequestParameters::Converter
8
+ include EInvoiceAPI::Internal::Type::RequestParameters
9
+
10
+ # @!method initialize(request_options: {})
11
+ # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}]
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ module EInvoiceAPI
4
+ module Models
5
+ # @type [EInvoiceAPI::Internal::Type::Converter]
6
+ WebhookListResponse = EInvoiceAPI::Internal::Type::ArrayOf[-> { EInvoiceAPI::WebhookResponse }]
7
+ end
8
+ end
@@ -0,0 +1,42 @@
1
+ # frozen_string_literal: true
2
+
3
+ module EInvoiceAPI
4
+ module Models
5
+ # @see EInvoiceAPI::Resources::Webhooks#create
6
+ class WebhookResponse < EInvoiceAPI::Internal::Type::BaseModel
7
+ # @!attribute id
8
+ #
9
+ # @return [String]
10
+ required :id, String
11
+
12
+ # @!attribute events
13
+ #
14
+ # @return [Array<String>]
15
+ required :events, EInvoiceAPI::Internal::Type::ArrayOf[String]
16
+
17
+ # @!attribute secret
18
+ #
19
+ # @return [String]
20
+ required :secret, String
21
+
22
+ # @!attribute url
23
+ #
24
+ # @return [String]
25
+ required :url, String
26
+
27
+ # @!attribute enabled
28
+ #
29
+ # @return [Boolean, nil]
30
+ optional :enabled, EInvoiceAPI::Internal::Type::Boolean
31
+
32
+ # @!method initialize(id:, events:, secret:, url:, enabled: nil)
33
+ # Response model for webhook API endpoints.
34
+ #
35
+ # @param id [String]
36
+ # @param events [Array<String>]
37
+ # @param secret [String]
38
+ # @param url [String]
39
+ # @param enabled [Boolean]
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module EInvoiceAPI
4
+ module Models
5
+ # @see EInvoiceAPI::Resources::Webhooks#retrieve
6
+ class WebhookRetrieveParams < EInvoiceAPI::Internal::Type::BaseModel
7
+ extend EInvoiceAPI::Internal::Type::RequestParameters::Converter
8
+ include EInvoiceAPI::Internal::Type::RequestParameters
9
+
10
+ # @!method initialize(request_options: {})
11
+ # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}]
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,32 @@
1
+ # frozen_string_literal: true
2
+
3
+ module EInvoiceAPI
4
+ module Models
5
+ # @see EInvoiceAPI::Resources::Webhooks#update
6
+ class WebhookUpdateParams < EInvoiceAPI::Internal::Type::BaseModel
7
+ extend EInvoiceAPI::Internal::Type::RequestParameters::Converter
8
+ include EInvoiceAPI::Internal::Type::RequestParameters
9
+
10
+ # @!attribute enabled
11
+ #
12
+ # @return [Boolean, nil]
13
+ optional :enabled, EInvoiceAPI::Internal::Type::Boolean, nil?: true
14
+
15
+ # @!attribute events
16
+ #
17
+ # @return [Array<String>, nil]
18
+ optional :events, EInvoiceAPI::Internal::Type::ArrayOf[String], nil?: true
19
+
20
+ # @!attribute url
21
+ #
22
+ # @return [String, nil]
23
+ optional :url, String, nil?: true
24
+
25
+ # @!method initialize(enabled: nil, events: nil, url: nil, request_options: {})
26
+ # @param enabled [Boolean, nil]
27
+ # @param events [Array<String>, nil]
28
+ # @param url [String, nil]
29
+ # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}]
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,105 @@
1
+ # frozen_string_literal: true
2
+
3
+ module EInvoiceAPI
4
+ [EInvoiceAPI::Internal::Type::BaseModel, *EInvoiceAPI::Internal::Type::BaseModel.subclasses].each do |cls|
5
+ cls.define_sorbet_constant!(:OrHash) { T.type_alias { T.any(cls, EInvoiceAPI::Internal::AnyHash) } }
6
+ end
7
+
8
+ EInvoiceAPI::Internal::Util.walk_namespaces(EInvoiceAPI::Models).each do |mod|
9
+ case mod
10
+ in EInvoiceAPI::Internal::Type::Enum | EInvoiceAPI::Internal::Type::Union
11
+ mod.constants.each do |name|
12
+ case mod.const_get(name)
13
+ in true | false
14
+ mod.define_sorbet_constant!(:TaggedBoolean) { T.type_alias { T::Boolean } }
15
+ mod.define_sorbet_constant!(:OrBoolean) { T.type_alias { T::Boolean } }
16
+ in Integer
17
+ mod.define_sorbet_constant!(:TaggedInteger) { T.type_alias { Integer } }
18
+ mod.define_sorbet_constant!(:OrInteger) { T.type_alias { Integer } }
19
+ in Float
20
+ mod.define_sorbet_constant!(:TaggedFloat) { T.type_alias { Float } }
21
+ mod.define_sorbet_constant!(:OrFloat) { T.type_alias { Float } }
22
+ in Symbol
23
+ mod.define_sorbet_constant!(:TaggedSymbol) { T.type_alias { Symbol } }
24
+ mod.define_sorbet_constant!(:OrSymbol) { T.type_alias { T.any(Symbol, String) } }
25
+ else
26
+ end
27
+ end
28
+ else
29
+ end
30
+ end
31
+
32
+ EInvoiceAPI::Internal::Util.walk_namespaces(EInvoiceAPI::Models)
33
+ .lazy
34
+ .grep(EInvoiceAPI::Internal::Type::Union)
35
+ .each do |mod|
36
+ const = :Variants
37
+ next if mod.sorbet_constant_defined?(const)
38
+
39
+ mod.define_sorbet_constant!(const) { T.type_alias { mod.to_sorbet_type } }
40
+ end
41
+
42
+ Certificate = EInvoiceAPI::Models::Certificate
43
+
44
+ CurrencyCode = EInvoiceAPI::Models::CurrencyCode
45
+
46
+ DocumentAttachmentCreate = EInvoiceAPI::Models::DocumentAttachmentCreate
47
+
48
+ DocumentCreate = EInvoiceAPI::Models::DocumentCreate
49
+
50
+ DocumentCreateParams = EInvoiceAPI::Models::DocumentCreateParams
51
+
52
+ DocumentDeleteParams = EInvoiceAPI::Models::DocumentDeleteParams
53
+
54
+ DocumentDirection = EInvoiceAPI::Models::DocumentDirection
55
+
56
+ DocumentResponse = EInvoiceAPI::Models::DocumentResponse
57
+
58
+ DocumentRetrieveParams = EInvoiceAPI::Models::DocumentRetrieveParams
59
+
60
+ Documents = EInvoiceAPI::Models::Documents
61
+
62
+ DocumentSendParams = EInvoiceAPI::Models::DocumentSendParams
63
+
64
+ DocumentState = EInvoiceAPI::Models::DocumentState
65
+
66
+ DocumentType = EInvoiceAPI::Models::DocumentType
67
+
68
+ InboxListCreditNotesParams = EInvoiceAPI::Models::InboxListCreditNotesParams
69
+
70
+ InboxListInvoicesParams = EInvoiceAPI::Models::InboxListInvoicesParams
71
+
72
+ InboxListParams = EInvoiceAPI::Models::InboxListParams
73
+
74
+ LookupRetrieveParams = EInvoiceAPI::Models::LookupRetrieveParams
75
+
76
+ OutboxListDraftDocumentsParams = EInvoiceAPI::Models::OutboxListDraftDocumentsParams
77
+
78
+ OutboxListReceivedDocumentsParams = EInvoiceAPI::Models::OutboxListReceivedDocumentsParams
79
+
80
+ PaginatedDocumentResponse = EInvoiceAPI::Models::PaginatedDocumentResponse
81
+
82
+ PaymentDetailCreate = EInvoiceAPI::Models::PaymentDetailCreate
83
+
84
+ UblDocumentValidation = EInvoiceAPI::Models::UblDocumentValidation
85
+
86
+ UnitOfMeasureCode = EInvoiceAPI::Models::UnitOfMeasureCode
87
+
88
+ ValidateValidateJsonParams = EInvoiceAPI::Models::ValidateValidateJsonParams
89
+
90
+ ValidateValidatePeppolIDParams = EInvoiceAPI::Models::ValidateValidatePeppolIDParams
91
+
92
+ ValidateValidateUblParams = EInvoiceAPI::Models::ValidateValidateUblParams
93
+
94
+ WebhookCreateParams = EInvoiceAPI::Models::WebhookCreateParams
95
+
96
+ WebhookDeleteParams = EInvoiceAPI::Models::WebhookDeleteParams
97
+
98
+ WebhookListParams = EInvoiceAPI::Models::WebhookListParams
99
+
100
+ WebhookResponse = EInvoiceAPI::Models::WebhookResponse
101
+
102
+ WebhookRetrieveParams = EInvoiceAPI::Models::WebhookRetrieveParams
103
+
104
+ WebhookUpdateParams = EInvoiceAPI::Models::WebhookUpdateParams
105
+ end