factpulse 3.0.5 → 3.0.6

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 (207) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -3
  3. data/Gemfile.lock +1 -1
  4. data/docs/AdditionalDocument.md +26 -0
  5. data/docs/AllowanceCharge.md +32 -0
  6. data/docs/AllowanceTotalAmount.md +15 -0
  7. data/docs/{APIProfile.md → Amount.md} +2 -2
  8. data/docs/{DocumentType.md → BaseAmount.md} +2 -2
  9. data/docs/ChargeTotalAmount.md +15 -0
  10. data/docs/Contact.md +24 -0
  11. data/docs/ConvertErrorResponse.md +26 -0
  12. data/docs/ConvertPendingInputResponse.md +32 -0
  13. data/docs/ConvertResumeRequest.md +18 -0
  14. data/docs/ConvertSuccessResponse.md +36 -0
  15. data/docs/ConvertValidationFailedResponse.md +34 -0
  16. data/docs/DeliveryParty.md +24 -0
  17. data/docs/DocumentConversionApi.md +373 -0
  18. data/docs/DocumentTypeInfo.md +22 -0
  19. data/docs/ExtractionInfo.md +24 -0
  20. data/docs/FacturXInvoice.md +29 -1
  21. data/docs/FacturXProfile.md +15 -0
  22. data/docs/FileInfo.md +20 -0
  23. data/docs/FilesInfo.md +20 -0
  24. data/docs/GrossUnitPrice.md +15 -0
  25. data/docs/IncomingInvoice.md +1 -1
  26. data/docs/InvoiceLine.md +43 -9
  27. data/docs/InvoiceProcessingApi.md +8 -8
  28. data/docs/InvoiceReferences.md +26 -6
  29. data/docs/InvoiceTotals.md +10 -2
  30. data/docs/LineTotalAmount.md +15 -0
  31. data/docs/MissingField.md +28 -0
  32. data/docs/Payee.md +5 -1
  33. data/docs/PaymentCard.md +20 -0
  34. data/docs/Percentage.md +15 -0
  35. data/docs/PostalAddress.md +5 -1
  36. data/docs/PriceAllowanceAmount.md +15 -0
  37. data/docs/PriceBasisQuantity.md +15 -0
  38. data/docs/ProcessingOptions.md +3 -3
  39. data/docs/ProductCharacteristic.md +20 -0
  40. data/docs/ProductClassification.md +22 -0
  41. data/docs/Recipient.md +7 -1
  42. data/docs/RoundingAmount.md +15 -0
  43. data/docs/Supplier.md +17 -1
  44. data/docs/TaxRepresentative.md +22 -0
  45. data/docs/VATLine.md +2 -0
  46. data/docs/VATPointDateCode.md +15 -0
  47. data/docs/ValidationInfo.md +28 -0
  48. data/docs/VatRate.md +15 -0
  49. data/factpulse.gemspec +1 -1
  50. data/lib/factpulse/api/afnorpdppa_api.rb +1 -1
  51. data/lib/factpulse/api/afnorpdppa_directory_service_api.rb +1 -1
  52. data/lib/factpulse/api/afnorpdppa_flow_service_api.rb +1 -1
  53. data/lib/factpulse/api/chorus_pro_api.rb +1 -1
  54. data/lib/factpulse/api/document_conversion_api.rb +378 -0
  55. data/lib/factpulse/api/health_api.rb +1 -1
  56. data/lib/factpulse/api/invoice_processing_api.rb +9 -9
  57. data/lib/factpulse/api/pdfxml_verification_api.rb +1 -1
  58. data/lib/factpulse/api/user_api.rb +1 -1
  59. data/lib/factpulse/api_client.rb +1 -1
  60. data/lib/factpulse/api_error.rb +1 -1
  61. data/lib/factpulse/api_model_base.rb +1 -1
  62. data/lib/factpulse/configuration.rb +1 -1
  63. data/lib/factpulse/models/acknowledgment_status.rb +1 -1
  64. data/lib/factpulse/models/additional_document.rb +206 -0
  65. data/lib/factpulse/models/afnor_credentials.rb +1 -1
  66. data/lib/factpulse/models/afnor_destination.rb +1 -1
  67. data/lib/factpulse/models/afnor_health_check_response.rb +1 -1
  68. data/lib/factpulse/models/afnor_result.rb +1 -1
  69. data/lib/factpulse/models/allowance_charge.rb +252 -0
  70. data/lib/factpulse/models/allowance_reason_code.rb +1 -1
  71. data/lib/factpulse/models/allowance_total_amount.rb +104 -0
  72. data/lib/factpulse/models/amount.rb +104 -0
  73. data/lib/factpulse/models/amount_due.rb +2 -2
  74. data/lib/factpulse/models/api_error.rb +1 -1
  75. data/lib/factpulse/models/async_task_status.rb +1 -1
  76. data/lib/factpulse/models/base_amount.rb +104 -0
  77. data/lib/factpulse/models/bounding_box_schema.rb +1 -1
  78. data/lib/factpulse/models/celery_status.rb +1 -1
  79. data/lib/factpulse/models/certificate_info_response.rb +1 -1
  80. data/lib/factpulse/models/charge_total_amount.rb +104 -0
  81. data/lib/factpulse/models/chorus_pro_destination.rb +1 -1
  82. data/lib/factpulse/models/chorus_pro_result.rb +1 -1
  83. data/lib/factpulse/models/contact.rb +179 -0
  84. data/lib/factpulse/models/convert_error_response.rb +224 -0
  85. data/lib/factpulse/models/convert_pending_input_response.rb +322 -0
  86. data/lib/factpulse/models/convert_resume_request.rb +151 -0
  87. data/lib/factpulse/models/convert_success_response.rb +360 -0
  88. data/lib/factpulse/models/convert_validation_failed_response.rb +334 -0
  89. data/lib/factpulse/models/delivery_party.rb +179 -0
  90. data/lib/factpulse/models/destination.rb +1 -1
  91. data/lib/factpulse/models/document_type_info.rb +220 -0
  92. data/lib/factpulse/models/electronic_address.rb +1 -1
  93. data/lib/factpulse/models/enriched_invoice_info.rb +1 -1
  94. data/lib/factpulse/models/error_level.rb +1 -1
  95. data/lib/factpulse/models/error_source.rb +1 -1
  96. data/lib/factpulse/models/extraction_info.rb +217 -0
  97. data/lib/factpulse/models/factur_x_invoice.rb +150 -6
  98. data/lib/factpulse/models/{api_profile.rb → factur_x_profile.rb} +4 -4
  99. data/lib/factpulse/models/factur_xpdf_info.rb +1 -1
  100. data/lib/factpulse/models/facture_electronique_rest_api_schemas_chorus_pro_chorus_pro_credentials.rb +5 -5
  101. data/lib/factpulse/models/facture_electronique_rest_api_schemas_processing_chorus_pro_credentials.rb +1 -1
  102. data/lib/factpulse/models/field_status.rb +1 -1
  103. data/lib/factpulse/models/file_info.rb +161 -0
  104. data/lib/factpulse/models/files_info.rb +159 -0
  105. data/lib/factpulse/models/flow_direction.rb +1 -1
  106. data/lib/factpulse/models/flow_profile.rb +1 -1
  107. data/lib/factpulse/models/flow_summary.rb +1 -1
  108. data/lib/factpulse/models/flow_syntax.rb +1 -1
  109. data/lib/factpulse/models/flow_type.rb +1 -1
  110. data/lib/factpulse/models/generate_certificate_request.rb +6 -6
  111. data/lib/factpulse/models/generate_certificate_response.rb +1 -1
  112. data/lib/factpulse/models/get_chorus_pro_id_request.rb +2 -2
  113. data/lib/factpulse/models/get_chorus_pro_id_response.rb +1 -1
  114. data/lib/factpulse/models/get_invoice_request.rb +2 -2
  115. data/lib/factpulse/models/get_invoice_response.rb +1 -1
  116. data/lib/factpulse/models/get_structure_request.rb +3 -3
  117. data/lib/factpulse/models/get_structure_response.rb +1 -1
  118. data/lib/factpulse/models/global_allowance_amount.rb +2 -2
  119. data/lib/factpulse/models/gross_unit_price.rb +104 -0
  120. data/lib/factpulse/models/http_validation_error.rb +1 -1
  121. data/lib/factpulse/models/incoming_invoice.rb +2 -2
  122. data/lib/factpulse/models/incoming_supplier.rb +1 -1
  123. data/lib/factpulse/models/invoice_format.rb +1 -1
  124. data/lib/factpulse/models/invoice_line.rb +209 -25
  125. data/lib/factpulse/models/invoice_line_allowance_amount.rb +2 -2
  126. data/lib/factpulse/models/invoice_note.rb +1 -1
  127. data/lib/factpulse/models/invoice_references.rb +119 -16
  128. data/lib/factpulse/models/invoice_status.rb +1 -1
  129. data/lib/factpulse/models/invoice_totals.rb +52 -12
  130. data/lib/factpulse/models/invoice_totals_prepayment.rb +2 -2
  131. data/lib/factpulse/models/invoice_type_code.rb +1 -1
  132. data/lib/factpulse/models/invoicing_framework.rb +1 -1
  133. data/lib/factpulse/models/invoicing_framework_code.rb +1 -1
  134. data/lib/factpulse/models/line_net_amount.rb +2 -2
  135. data/lib/factpulse/models/line_total_amount.rb +104 -0
  136. data/lib/factpulse/models/mandatory_note_schema.rb +1 -1
  137. data/lib/factpulse/models/manual_rate.rb +2 -2
  138. data/lib/factpulse/models/manual_vat_rate.rb +2 -2
  139. data/lib/factpulse/models/missing_field.rb +269 -0
  140. data/lib/factpulse/models/operation_nature.rb +1 -1
  141. data/lib/factpulse/models/output_format.rb +1 -1
  142. data/lib/factpulse/models/page_dimensions_schema.rb +1 -1
  143. data/lib/factpulse/models/payee.rb +28 -6
  144. data/lib/factpulse/models/payment_card.rb +159 -0
  145. data/lib/factpulse/models/payment_means.rb +1 -1
  146. data/lib/factpulse/models/pdf_validation_result_api.rb +1 -1
  147. data/lib/factpulse/models/pdp_credentials.rb +6 -6
  148. data/lib/factpulse/models/percentage.rb +104 -0
  149. data/lib/factpulse/models/postal_address.rb +27 -7
  150. data/lib/factpulse/models/price_allowance_amount.rb +104 -0
  151. data/lib/factpulse/models/price_basis_quantity.rb +104 -0
  152. data/lib/factpulse/models/processing_options.rb +10 -10
  153. data/lib/factpulse/models/product_characteristic.rb +193 -0
  154. data/lib/factpulse/models/product_classification.rb +186 -0
  155. data/lib/factpulse/models/quantity.rb +2 -2
  156. data/lib/factpulse/models/recipient.rb +39 -7
  157. data/lib/factpulse/models/rounding_amount.rb +104 -0
  158. data/lib/factpulse/models/scheme_id.rb +12 -6
  159. data/lib/factpulse/models/search_flow_request.rb +8 -8
  160. data/lib/factpulse/models/search_flow_response.rb +1 -1
  161. data/lib/factpulse/models/search_services_response.rb +1 -1
  162. data/lib/factpulse/models/search_structure_request.rb +5 -5
  163. data/lib/factpulse/models/search_structure_response.rb +1 -1
  164. data/lib/factpulse/models/signature_info.rb +1 -1
  165. data/lib/factpulse/models/signature_info_api.rb +1 -1
  166. data/lib/factpulse/models/signature_parameters.rb +1 -1
  167. data/lib/factpulse/models/simplified_invoice_data.rb +1 -1
  168. data/lib/factpulse/models/structure_info.rb +1 -1
  169. data/lib/factpulse/models/structure_parameters.rb +1 -1
  170. data/lib/factpulse/models/structure_service.rb +1 -1
  171. data/lib/factpulse/models/submission_mode.rb +1 -1
  172. data/lib/factpulse/models/submit_complete_invoice_request.rb +1 -1
  173. data/lib/factpulse/models/submit_complete_invoice_response.rb +1 -1
  174. data/lib/factpulse/models/submit_flow_request.rb +7 -7
  175. data/lib/factpulse/models/submit_flow_response.rb +1 -1
  176. data/lib/factpulse/models/submit_gross_amount.rb +1 -1
  177. data/lib/factpulse/models/submit_invoice_request.rb +14 -14
  178. data/lib/factpulse/models/submit_invoice_response.rb +1 -1
  179. data/lib/factpulse/models/submit_net_amount.rb +1 -1
  180. data/lib/factpulse/models/submit_vat_amount.rb +1 -1
  181. data/lib/factpulse/models/supplementary_attachment.rb +1 -1
  182. data/lib/factpulse/models/supplier.rb +89 -7
  183. data/lib/factpulse/models/task_response.rb +1 -1
  184. data/lib/factpulse/models/tax_representative.rb +220 -0
  185. data/lib/factpulse/models/taxable_amount.rb +2 -2
  186. data/lib/factpulse/models/total_gross_amount.rb +2 -2
  187. data/lib/factpulse/models/total_net_amount.rb +2 -2
  188. data/lib/factpulse/models/total_vat_amount.rb +2 -2
  189. data/lib/factpulse/models/unit_net_price.rb +2 -2
  190. data/lib/factpulse/models/unit_of_measure.rb +1 -1
  191. data/lib/factpulse/models/validation_error.rb +1 -1
  192. data/lib/factpulse/models/validation_error_detail.rb +1 -1
  193. data/lib/factpulse/models/validation_error_loc_inner.rb +1 -1
  194. data/lib/factpulse/models/validation_error_response.rb +1 -1
  195. data/lib/factpulse/models/validation_info.rb +255 -0
  196. data/lib/factpulse/models/validation_success_response.rb +1 -1
  197. data/lib/factpulse/models/vat_accounting_code.rb +1 -1
  198. data/lib/factpulse/models/vat_amount.rb +2 -2
  199. data/lib/factpulse/models/vat_category.rb +1 -1
  200. data/lib/factpulse/models/vat_line.rb +13 -3
  201. data/lib/factpulse/models/{document_type.rb → vat_point_date_code.rb} +8 -10
  202. data/lib/factpulse/models/vat_rate.rb +104 -0
  203. data/lib/factpulse/models/verification_success_response.rb +1 -1
  204. data/lib/factpulse/models/verified_field_schema.rb +1 -1
  205. data/lib/factpulse/version.rb +2 -2
  206. data/lib/factpulse.rb +34 -3
  207. metadata +68 -6
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.18.0-SNAPSHOT
9
+ Generator version: 7.19.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -14,24 +14,57 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module FactPulse
17
- # Represents a line item in an invoice.
17
+ # Represents an invoice line item (BG-25).
18
18
  class InvoiceLine < ApiModelBase
19
+ # Invoice line identifier (BT-126).
19
20
  attr_accessor :line_number
20
21
 
22
+ attr_accessor :line_note
23
+
21
24
  attr_accessor :reference
22
25
 
26
+ attr_accessor :buyer_assigned_id
27
+
28
+ attr_accessor :product_global_id
29
+
30
+ attr_accessor :product_global_id_scheme
31
+
32
+ # Item name (BT-153).
23
33
  attr_accessor :item_name
24
34
 
35
+ attr_accessor :item_description
36
+
37
+ attr_accessor :origin_country
38
+
39
+ attr_accessor :characteristics
40
+
41
+ attr_accessor :classifications
42
+
25
43
  attr_accessor :quantity
26
44
 
45
+ # Invoiced quantity unit of measure code (BT-130).
27
46
  attr_accessor :unit
28
47
 
48
+ attr_accessor :gross_unit_price
49
+
29
50
  attr_accessor :unit_net_price
30
51
 
31
- attr_accessor :allowance_amount
52
+ attr_accessor :price_basis_quantity
53
+
54
+ attr_accessor :price_basis_unit
55
+
56
+ attr_accessor :price_allowance_amount
32
57
 
33
58
  attr_accessor :line_net_amount
34
59
 
60
+ attr_accessor :allowance_amount
61
+
62
+ attr_accessor :allowance_reason_code
63
+
64
+ attr_accessor :allowance_reason
65
+
66
+ attr_accessor :allowances_charges
67
+
35
68
  attr_accessor :vat_rate
36
69
 
37
70
  attr_accessor :manual_vat_rate
@@ -42,9 +75,13 @@ module FactPulse
42
75
 
43
76
  attr_accessor :period_end_date
44
77
 
45
- attr_accessor :allowance_reason_code
78
+ attr_accessor :purchase_order_line_ref
46
79
 
47
- attr_accessor :allowance_reason
80
+ attr_accessor :accounting_account
81
+
82
+ attr_accessor :additional_documents
83
+
84
+ attr_accessor :line_notes
48
85
 
49
86
  class EnumAttributeValidator
50
87
  attr_reader :datatype
@@ -72,20 +109,37 @@ module FactPulse
72
109
  def self.attribute_map
73
110
  {
74
111
  :'line_number' => :'line_number',
112
+ :'line_note' => :'line_note',
75
113
  :'reference' => :'reference',
114
+ :'buyer_assigned_id' => :'buyer_assigned_id',
115
+ :'product_global_id' => :'product_global_id',
116
+ :'product_global_id_scheme' => :'product_global_id_scheme',
76
117
  :'item_name' => :'item_name',
118
+ :'item_description' => :'item_description',
119
+ :'origin_country' => :'origin_country',
120
+ :'characteristics' => :'characteristics',
121
+ :'classifications' => :'classifications',
77
122
  :'quantity' => :'quantity',
78
123
  :'unit' => :'unit',
124
+ :'gross_unit_price' => :'gross_unit_price',
79
125
  :'unit_net_price' => :'unit_net_price',
80
- :'allowance_amount' => :'allowanceAmount',
126
+ :'price_basis_quantity' => :'price_basis_quantity',
127
+ :'price_basis_unit' => :'price_basis_unit',
128
+ :'price_allowance_amount' => :'price_allowance_amount',
81
129
  :'line_net_amount' => :'lineNetAmount',
130
+ :'allowance_amount' => :'allowanceAmount',
131
+ :'allowance_reason_code' => :'allowanceReasonCode',
132
+ :'allowance_reason' => :'allowanceReason',
133
+ :'allowances_charges' => :'allowances_charges',
82
134
  :'vat_rate' => :'vat_rate',
83
135
  :'manual_vat_rate' => :'manual_vat_rate',
84
136
  :'vat_category' => :'vat_category',
85
- :'period_start_date' => :'periodStartDate',
86
- :'period_end_date' => :'periodEndDate',
87
- :'allowance_reason_code' => :'allowanceReasonCode',
88
- :'allowance_reason' => :'allowanceReason'
137
+ :'period_start_date' => :'period_start_date',
138
+ :'period_end_date' => :'period_end_date',
139
+ :'purchase_order_line_ref' => :'purchase_order_line_ref',
140
+ :'accounting_account' => :'accounting_account',
141
+ :'additional_documents' => :'additional_documents',
142
+ :'line_notes' => :'line_notes'
89
143
  }
90
144
  end
91
145
 
@@ -103,34 +157,69 @@ module FactPulse
103
157
  def self.openapi_types
104
158
  {
105
159
  :'line_number' => :'Integer',
160
+ :'line_note' => :'String',
106
161
  :'reference' => :'String',
162
+ :'buyer_assigned_id' => :'String',
163
+ :'product_global_id' => :'String',
164
+ :'product_global_id_scheme' => :'String',
107
165
  :'item_name' => :'String',
166
+ :'item_description' => :'String',
167
+ :'origin_country' => :'String',
168
+ :'characteristics' => :'Array<ProductCharacteristic>',
169
+ :'classifications' => :'Array<ProductClassification>',
108
170
  :'quantity' => :'Quantity',
109
171
  :'unit' => :'UnitOfMeasure',
172
+ :'gross_unit_price' => :'GrossUnitPrice',
110
173
  :'unit_net_price' => :'UnitNetPrice',
111
- :'allowance_amount' => :'InvoiceLineAllowanceAmount',
174
+ :'price_basis_quantity' => :'PriceBasisQuantity',
175
+ :'price_basis_unit' => :'String',
176
+ :'price_allowance_amount' => :'PriceAllowanceAmount',
112
177
  :'line_net_amount' => :'LineNetAmount',
178
+ :'allowance_amount' => :'InvoiceLineAllowanceAmount',
179
+ :'allowance_reason_code' => :'AllowanceReasonCode',
180
+ :'allowance_reason' => :'String',
181
+ :'allowances_charges' => :'Array<AllowanceCharge>',
113
182
  :'vat_rate' => :'String',
114
183
  :'manual_vat_rate' => :'ManualVatRate',
115
184
  :'vat_category' => :'VATCategory',
116
185
  :'period_start_date' => :'String',
117
186
  :'period_end_date' => :'String',
118
- :'allowance_reason_code' => :'AllowanceReasonCode',
119
- :'allowance_reason' => :'String'
187
+ :'purchase_order_line_ref' => :'String',
188
+ :'accounting_account' => :'String',
189
+ :'additional_documents' => :'Array<AdditionalDocument>',
190
+ :'line_notes' => :'Array<InvoiceNote>'
120
191
  }
121
192
  end
122
193
 
123
194
  # List of attributes with nullable: true
124
195
  def self.openapi_nullable
125
196
  Set.new([
197
+ :'line_note',
126
198
  :'reference',
199
+ :'buyer_assigned_id',
200
+ :'product_global_id',
201
+ :'product_global_id_scheme',
202
+ :'item_description',
203
+ :'origin_country',
204
+ :'characteristics',
205
+ :'classifications',
206
+ :'gross_unit_price',
207
+ :'price_basis_quantity',
208
+ :'price_basis_unit',
209
+ :'price_allowance_amount',
210
+ :'line_net_amount',
127
211
  :'allowance_amount',
212
+ :'allowance_reason_code',
213
+ :'allowance_reason',
214
+ :'allowances_charges',
128
215
  :'vat_rate',
129
216
  :'vat_category',
130
217
  :'period_start_date',
131
218
  :'period_end_date',
132
- :'allowance_reason_code',
133
- :'allowance_reason'
219
+ :'purchase_order_line_ref',
220
+ :'accounting_account',
221
+ :'additional_documents',
222
+ :'line_notes'
134
223
  ])
135
224
  end
136
225
 
@@ -156,16 +245,52 @@ module FactPulse
156
245
  self.line_number = nil
157
246
  end
158
247
 
248
+ if attributes.key?(:'line_note')
249
+ self.line_note = attributes[:'line_note']
250
+ end
251
+
159
252
  if attributes.key?(:'reference')
160
253
  self.reference = attributes[:'reference']
161
254
  end
162
255
 
256
+ if attributes.key?(:'buyer_assigned_id')
257
+ self.buyer_assigned_id = attributes[:'buyer_assigned_id']
258
+ end
259
+
260
+ if attributes.key?(:'product_global_id')
261
+ self.product_global_id = attributes[:'product_global_id']
262
+ end
263
+
264
+ if attributes.key?(:'product_global_id_scheme')
265
+ self.product_global_id_scheme = attributes[:'product_global_id_scheme']
266
+ end
267
+
163
268
  if attributes.key?(:'item_name')
164
269
  self.item_name = attributes[:'item_name']
165
270
  else
166
271
  self.item_name = nil
167
272
  end
168
273
 
274
+ if attributes.key?(:'item_description')
275
+ self.item_description = attributes[:'item_description']
276
+ end
277
+
278
+ if attributes.key?(:'origin_country')
279
+ self.origin_country = attributes[:'origin_country']
280
+ end
281
+
282
+ if attributes.key?(:'characteristics')
283
+ if (value = attributes[:'characteristics']).is_a?(Array)
284
+ self.characteristics = value
285
+ end
286
+ end
287
+
288
+ if attributes.key?(:'classifications')
289
+ if (value = attributes[:'classifications']).is_a?(Array)
290
+ self.classifications = value
291
+ end
292
+ end
293
+
169
294
  if attributes.key?(:'quantity')
170
295
  self.quantity = attributes[:'quantity']
171
296
  else
@@ -178,20 +303,50 @@ module FactPulse
178
303
  self.unit = nil
179
304
  end
180
305
 
306
+ if attributes.key?(:'gross_unit_price')
307
+ self.gross_unit_price = attributes[:'gross_unit_price']
308
+ end
309
+
181
310
  if attributes.key?(:'unit_net_price')
182
311
  self.unit_net_price = attributes[:'unit_net_price']
183
312
  else
184
313
  self.unit_net_price = nil
185
314
  end
186
315
 
187
- if attributes.key?(:'allowance_amount')
188
- self.allowance_amount = attributes[:'allowance_amount']
316
+ if attributes.key?(:'price_basis_quantity')
317
+ self.price_basis_quantity = attributes[:'price_basis_quantity']
318
+ end
319
+
320
+ if attributes.key?(:'price_basis_unit')
321
+ self.price_basis_unit = attributes[:'price_basis_unit']
322
+ end
323
+
324
+ if attributes.key?(:'price_allowance_amount')
325
+ self.price_allowance_amount = attributes[:'price_allowance_amount']
189
326
  end
190
327
 
191
328
  if attributes.key?(:'line_net_amount')
192
329
  self.line_net_amount = attributes[:'line_net_amount']
193
330
  end
194
331
 
332
+ if attributes.key?(:'allowance_amount')
333
+ self.allowance_amount = attributes[:'allowance_amount']
334
+ end
335
+
336
+ if attributes.key?(:'allowance_reason_code')
337
+ self.allowance_reason_code = attributes[:'allowance_reason_code']
338
+ end
339
+
340
+ if attributes.key?(:'allowance_reason')
341
+ self.allowance_reason = attributes[:'allowance_reason']
342
+ end
343
+
344
+ if attributes.key?(:'allowances_charges')
345
+ if (value = attributes[:'allowances_charges']).is_a?(Array)
346
+ self.allowances_charges = value
347
+ end
348
+ end
349
+
195
350
  if attributes.key?(:'vat_rate')
196
351
  self.vat_rate = attributes[:'vat_rate']
197
352
  end
@@ -212,12 +367,24 @@ module FactPulse
212
367
  self.period_end_date = attributes[:'period_end_date']
213
368
  end
214
369
 
215
- if attributes.key?(:'allowance_reason_code')
216
- self.allowance_reason_code = attributes[:'allowance_reason_code']
370
+ if attributes.key?(:'purchase_order_line_ref')
371
+ self.purchase_order_line_ref = attributes[:'purchase_order_line_ref']
217
372
  end
218
373
 
219
- if attributes.key?(:'allowance_reason')
220
- self.allowance_reason = attributes[:'allowance_reason']
374
+ if attributes.key?(:'accounting_account')
375
+ self.accounting_account = attributes[:'accounting_account']
376
+ end
377
+
378
+ if attributes.key?(:'additional_documents')
379
+ if (value = attributes[:'additional_documents']).is_a?(Array)
380
+ self.additional_documents = value
381
+ end
382
+ end
383
+
384
+ if attributes.key?(:'line_notes')
385
+ if (value = attributes[:'line_notes']).is_a?(Array)
386
+ self.line_notes = value
387
+ end
221
388
  end
222
389
  end
223
390
 
@@ -317,20 +484,37 @@ module FactPulse
317
484
  return true if self.equal?(o)
318
485
  self.class == o.class &&
319
486
  line_number == o.line_number &&
487
+ line_note == o.line_note &&
320
488
  reference == o.reference &&
489
+ buyer_assigned_id == o.buyer_assigned_id &&
490
+ product_global_id == o.product_global_id &&
491
+ product_global_id_scheme == o.product_global_id_scheme &&
321
492
  item_name == o.item_name &&
493
+ item_description == o.item_description &&
494
+ origin_country == o.origin_country &&
495
+ characteristics == o.characteristics &&
496
+ classifications == o.classifications &&
322
497
  quantity == o.quantity &&
323
498
  unit == o.unit &&
499
+ gross_unit_price == o.gross_unit_price &&
324
500
  unit_net_price == o.unit_net_price &&
325
- allowance_amount == o.allowance_amount &&
501
+ price_basis_quantity == o.price_basis_quantity &&
502
+ price_basis_unit == o.price_basis_unit &&
503
+ price_allowance_amount == o.price_allowance_amount &&
326
504
  line_net_amount == o.line_net_amount &&
505
+ allowance_amount == o.allowance_amount &&
506
+ allowance_reason_code == o.allowance_reason_code &&
507
+ allowance_reason == o.allowance_reason &&
508
+ allowances_charges == o.allowances_charges &&
327
509
  vat_rate == o.vat_rate &&
328
510
  manual_vat_rate == o.manual_vat_rate &&
329
511
  vat_category == o.vat_category &&
330
512
  period_start_date == o.period_start_date &&
331
513
  period_end_date == o.period_end_date &&
332
- allowance_reason_code == o.allowance_reason_code &&
333
- allowance_reason == o.allowance_reason
514
+ purchase_order_line_ref == o.purchase_order_line_ref &&
515
+ accounting_account == o.accounting_account &&
516
+ additional_documents == o.additional_documents &&
517
+ line_notes == o.line_notes
334
518
  end
335
519
 
336
520
  # @see the `==` method
@@ -342,7 +526,7 @@ module FactPulse
342
526
  # Calculates hash code according to all attributes.
343
527
  # @return [Integer] Hash code
344
528
  def hash
345
- [line_number, reference, item_name, quantity, unit, unit_net_price, allowance_amount, line_net_amount, vat_rate, manual_vat_rate, vat_category, period_start_date, period_end_date, allowance_reason_code, allowance_reason].hash
529
+ [line_number, line_note, reference, buyer_assigned_id, product_global_id, product_global_id_scheme, item_name, item_description, origin_country, characteristics, classifications, quantity, unit, gross_unit_price, unit_net_price, price_basis_quantity, price_basis_unit, price_allowance_amount, line_net_amount, allowance_amount, allowance_reason_code, allowance_reason, allowances_charges, vat_rate, manual_vat_rate, vat_category, period_start_date, period_end_date, purchase_order_line_ref, accounting_account, additional_documents, line_notes].hash
346
530
  end
347
531
 
348
532
  # Builds the object from hash
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.18.0-SNAPSHOT
9
+ Generator version: 7.19.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module FactPulse
17
- # Allowance amount before tax. (Accepte number, string ou integer)
17
+ # Simple line allowance amount (BT-136). (Accepte number, string ou integer)
18
18
  module InvoiceLineAllowanceAmount
19
19
  class << self
20
20
  # List of class defined in anyOf (OpenAPI v3)
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.18.0-SNAPSHOT
9
+ Generator version: 7.19.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.18.0-SNAPSHOT
9
+ Generator version: 7.19.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -16,22 +16,45 @@ require 'time'
16
16
  module FactPulse
17
17
  # Contains various invoice references (currency, type, etc.).
18
18
  class InvoiceReferences < ApiModelBase
19
+ attr_accessor :business_process_id
20
+
21
+ # Invoice currency code (BT-5). ISO 4217.
19
22
  attr_accessor :invoice_currency
20
23
 
24
+ # Payment means type code (BT-81).
21
25
  attr_accessor :payment_means
22
26
 
27
+ attr_accessor :payment_means_text
28
+
23
29
  attr_accessor :invoice_type
24
30
 
31
+ # VAT accounting code.
25
32
  attr_accessor :vat_accounting_code
26
33
 
27
- attr_accessor :contract_reference
34
+ attr_accessor :buyer_reference
28
35
 
29
- attr_accessor :vat_exemption_reason
36
+ attr_accessor :contract_reference
30
37
 
31
38
  attr_accessor :purchase_order_reference
32
39
 
40
+ attr_accessor :seller_order_reference
41
+
42
+ attr_accessor :receiving_advice_reference
43
+
44
+ attr_accessor :despatch_advice_reference
45
+
46
+ attr_accessor :tender_reference
47
+
33
48
  attr_accessor :preceding_invoice_reference
34
49
 
50
+ attr_accessor :preceding_invoice_date
51
+
52
+ attr_accessor :project_reference
53
+
54
+ attr_accessor :project_name
55
+
56
+ attr_accessor :vat_exemption_reason
57
+
35
58
  class EnumAttributeValidator
36
59
  attr_reader :datatype
37
60
  attr_reader :allowable_values
@@ -57,14 +80,24 @@ module FactPulse
57
80
  # Attribute mapping from ruby-style variable name to JSON key.
58
81
  def self.attribute_map
59
82
  {
83
+ :'business_process_id' => :'business_process_id',
60
84
  :'invoice_currency' => :'invoice_currency',
61
85
  :'payment_means' => :'payment_means',
86
+ :'payment_means_text' => :'payment_means_text',
62
87
  :'invoice_type' => :'invoice_type',
63
88
  :'vat_accounting_code' => :'vat_accounting_code',
89
+ :'buyer_reference' => :'buyer_reference',
64
90
  :'contract_reference' => :'contract_reference',
65
- :'vat_exemption_reason' => :'vat_exemption_reason',
66
91
  :'purchase_order_reference' => :'purchase_order_reference',
67
- :'preceding_invoice_reference' => :'preceding_invoice_reference'
92
+ :'seller_order_reference' => :'seller_order_reference',
93
+ :'receiving_advice_reference' => :'receiving_advice_reference',
94
+ :'despatch_advice_reference' => :'despatch_advice_reference',
95
+ :'tender_reference' => :'tender_reference',
96
+ :'preceding_invoice_reference' => :'preceding_invoice_reference',
97
+ :'preceding_invoice_date' => :'preceding_invoice_date',
98
+ :'project_reference' => :'project_reference',
99
+ :'project_name' => :'project_name',
100
+ :'vat_exemption_reason' => :'vat_exemption_reason'
68
101
  }
69
102
  end
70
103
 
@@ -81,24 +114,44 @@ module FactPulse
81
114
  # Attribute type mapping.
82
115
  def self.openapi_types
83
116
  {
117
+ :'business_process_id' => :'String',
84
118
  :'invoice_currency' => :'String',
85
119
  :'payment_means' => :'PaymentMeans',
120
+ :'payment_means_text' => :'String',
86
121
  :'invoice_type' => :'InvoiceTypeCode',
87
122
  :'vat_accounting_code' => :'VATAccountingCode',
123
+ :'buyer_reference' => :'String',
88
124
  :'contract_reference' => :'String',
89
- :'vat_exemption_reason' => :'String',
90
125
  :'purchase_order_reference' => :'String',
91
- :'preceding_invoice_reference' => :'String'
126
+ :'seller_order_reference' => :'String',
127
+ :'receiving_advice_reference' => :'String',
128
+ :'despatch_advice_reference' => :'String',
129
+ :'tender_reference' => :'String',
130
+ :'preceding_invoice_reference' => :'String',
131
+ :'preceding_invoice_date' => :'String',
132
+ :'project_reference' => :'String',
133
+ :'project_name' => :'String',
134
+ :'vat_exemption_reason' => :'String'
92
135
  }
93
136
  end
94
137
 
95
138
  # List of attributes with nullable: true
96
139
  def self.openapi_nullable
97
140
  Set.new([
141
+ :'business_process_id',
142
+ :'payment_means_text',
143
+ :'buyer_reference',
98
144
  :'contract_reference',
99
- :'vat_exemption_reason',
100
145
  :'purchase_order_reference',
101
- :'preceding_invoice_reference'
146
+ :'seller_order_reference',
147
+ :'receiving_advice_reference',
148
+ :'despatch_advice_reference',
149
+ :'tender_reference',
150
+ :'preceding_invoice_reference',
151
+ :'preceding_invoice_date',
152
+ :'project_reference',
153
+ :'project_name',
154
+ :'vat_exemption_reason'
102
155
  ])
103
156
  end
104
157
 
@@ -118,6 +171,10 @@ module FactPulse
118
171
  h[k.to_sym] = v
119
172
  }
120
173
 
174
+ if attributes.key?(:'business_process_id')
175
+ self.business_process_id = attributes[:'business_process_id']
176
+ end
177
+
121
178
  if attributes.key?(:'invoice_currency')
122
179
  self.invoice_currency = attributes[:'invoice_currency']
123
180
  else
@@ -130,6 +187,10 @@ module FactPulse
130
187
  self.payment_means = nil
131
188
  end
132
189
 
190
+ if attributes.key?(:'payment_means_text')
191
+ self.payment_means_text = attributes[:'payment_means_text']
192
+ end
193
+
133
194
  if attributes.key?(:'invoice_type')
134
195
  self.invoice_type = attributes[:'invoice_type']
135
196
  else
@@ -142,21 +203,53 @@ module FactPulse
142
203
  self.vat_accounting_code = nil
143
204
  end
144
205
 
145
- if attributes.key?(:'contract_reference')
146
- self.contract_reference = attributes[:'contract_reference']
206
+ if attributes.key?(:'buyer_reference')
207
+ self.buyer_reference = attributes[:'buyer_reference']
147
208
  end
148
209
 
149
- if attributes.key?(:'vat_exemption_reason')
150
- self.vat_exemption_reason = attributes[:'vat_exemption_reason']
210
+ if attributes.key?(:'contract_reference')
211
+ self.contract_reference = attributes[:'contract_reference']
151
212
  end
152
213
 
153
214
  if attributes.key?(:'purchase_order_reference')
154
215
  self.purchase_order_reference = attributes[:'purchase_order_reference']
155
216
  end
156
217
 
218
+ if attributes.key?(:'seller_order_reference')
219
+ self.seller_order_reference = attributes[:'seller_order_reference']
220
+ end
221
+
222
+ if attributes.key?(:'receiving_advice_reference')
223
+ self.receiving_advice_reference = attributes[:'receiving_advice_reference']
224
+ end
225
+
226
+ if attributes.key?(:'despatch_advice_reference')
227
+ self.despatch_advice_reference = attributes[:'despatch_advice_reference']
228
+ end
229
+
230
+ if attributes.key?(:'tender_reference')
231
+ self.tender_reference = attributes[:'tender_reference']
232
+ end
233
+
157
234
  if attributes.key?(:'preceding_invoice_reference')
158
235
  self.preceding_invoice_reference = attributes[:'preceding_invoice_reference']
159
236
  end
237
+
238
+ if attributes.key?(:'preceding_invoice_date')
239
+ self.preceding_invoice_date = attributes[:'preceding_invoice_date']
240
+ end
241
+
242
+ if attributes.key?(:'project_reference')
243
+ self.project_reference = attributes[:'project_reference']
244
+ end
245
+
246
+ if attributes.key?(:'project_name')
247
+ self.project_name = attributes[:'project_name']
248
+ end
249
+
250
+ if attributes.key?(:'vat_exemption_reason')
251
+ self.vat_exemption_reason = attributes[:'vat_exemption_reason']
252
+ end
160
253
  end
161
254
 
162
255
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -224,14 +317,24 @@ module FactPulse
224
317
  def ==(o)
225
318
  return true if self.equal?(o)
226
319
  self.class == o.class &&
320
+ business_process_id == o.business_process_id &&
227
321
  invoice_currency == o.invoice_currency &&
228
322
  payment_means == o.payment_means &&
323
+ payment_means_text == o.payment_means_text &&
229
324
  invoice_type == o.invoice_type &&
230
325
  vat_accounting_code == o.vat_accounting_code &&
326
+ buyer_reference == o.buyer_reference &&
231
327
  contract_reference == o.contract_reference &&
232
- vat_exemption_reason == o.vat_exemption_reason &&
233
328
  purchase_order_reference == o.purchase_order_reference &&
234
- preceding_invoice_reference == o.preceding_invoice_reference
329
+ seller_order_reference == o.seller_order_reference &&
330
+ receiving_advice_reference == o.receiving_advice_reference &&
331
+ despatch_advice_reference == o.despatch_advice_reference &&
332
+ tender_reference == o.tender_reference &&
333
+ preceding_invoice_reference == o.preceding_invoice_reference &&
334
+ preceding_invoice_date == o.preceding_invoice_date &&
335
+ project_reference == o.project_reference &&
336
+ project_name == o.project_name &&
337
+ vat_exemption_reason == o.vat_exemption_reason
235
338
  end
236
339
 
237
340
  # @see the `==` method
@@ -243,7 +346,7 @@ module FactPulse
243
346
  # Calculates hash code according to all attributes.
244
347
  # @return [Integer] Hash code
245
348
  def hash
246
- [invoice_currency, payment_means, invoice_type, vat_accounting_code, contract_reference, vat_exemption_reason, purchase_order_reference, preceding_invoice_reference].hash
349
+ [business_process_id, invoice_currency, payment_means, payment_means_text, invoice_type, vat_accounting_code, buyer_reference, contract_reference, purchase_order_reference, seller_order_reference, receiving_advice_reference, despatch_advice_reference, tender_reference, preceding_invoice_reference, preceding_invoice_date, project_reference, project_name, vat_exemption_reason].hash
247
350
  end
248
351
 
249
352
  # Builds the object from hash
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.18.0-SNAPSHOT
9
+ Generator version: 7.19.0-SNAPSHOT
10
10
 
11
11
  =end
12
12