factpulse 3.0.5 → 3.0.7
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -3
- data/Gemfile.lock +1 -1
- data/docs/AdditionalDocument.md +26 -0
- data/docs/AllowanceCharge.md +32 -0
- data/docs/AllowanceTotalAmount.md +15 -0
- data/docs/{APIProfile.md → Amount.md} +2 -2
- data/docs/{DocumentType.md → BaseAmount.md} +2 -2
- data/docs/ChargeTotalAmount.md +15 -0
- data/docs/Contact.md +24 -0
- data/docs/ConvertErrorResponse.md +26 -0
- data/docs/ConvertPendingInputResponse.md +32 -0
- data/docs/ConvertResumeRequest.md +18 -0
- data/docs/ConvertSuccessResponse.md +36 -0
- data/docs/ConvertValidationFailedResponse.md +34 -0
- data/docs/DeliveryParty.md +24 -0
- data/docs/DocumentConversionApi.md +373 -0
- data/docs/DocumentTypeInfo.md +22 -0
- data/docs/ExtractionInfo.md +24 -0
- data/docs/FacturXInvoice.md +29 -1
- data/docs/FacturXProfile.md +15 -0
- data/docs/FileInfo.md +20 -0
- data/docs/FilesInfo.md +20 -0
- data/docs/GrossUnitPrice.md +15 -0
- data/docs/IncomingInvoice.md +1 -1
- data/docs/InvoiceLine.md +43 -9
- data/docs/InvoiceProcessingApi.md +8 -8
- data/docs/InvoiceReferences.md +26 -6
- data/docs/InvoiceTotals.md +10 -2
- data/docs/LineTotalAmount.md +15 -0
- data/docs/MissingField.md +28 -0
- data/docs/Payee.md +5 -1
- data/docs/PaymentCard.md +20 -0
- data/docs/Percentage.md +15 -0
- data/docs/PostalAddress.md +5 -1
- data/docs/PriceAllowanceAmount.md +15 -0
- data/docs/PriceBasisQuantity.md +15 -0
- data/docs/ProcessingOptions.md +3 -3
- data/docs/ProductCharacteristic.md +20 -0
- data/docs/ProductClassification.md +22 -0
- data/docs/Recipient.md +7 -1
- data/docs/RoundingAmount.md +15 -0
- data/docs/Supplier.md +17 -1
- data/docs/TaxRepresentative.md +22 -0
- data/docs/VATLine.md +2 -0
- data/docs/VATPointDateCode.md +15 -0
- data/docs/ValidationInfo.md +28 -0
- data/docs/VatRate.md +15 -0
- data/factpulse.gemspec +1 -1
- data/lib/factpulse/api/afnorpdppa_api.rb +1 -1
- data/lib/factpulse/api/afnorpdppa_directory_service_api.rb +1 -1
- data/lib/factpulse/api/afnorpdppa_flow_service_api.rb +1 -1
- data/lib/factpulse/api/chorus_pro_api.rb +1 -1
- data/lib/factpulse/api/document_conversion_api.rb +378 -0
- data/lib/factpulse/api/health_api.rb +1 -1
- data/lib/factpulse/api/invoice_processing_api.rb +9 -9
- data/lib/factpulse/api/pdfxml_verification_api.rb +1 -1
- data/lib/factpulse/api/user_api.rb +1 -1
- data/lib/factpulse/api_client.rb +1 -1
- data/lib/factpulse/api_error.rb +1 -1
- data/lib/factpulse/api_model_base.rb +1 -1
- data/lib/factpulse/configuration.rb +1 -1
- data/lib/factpulse/models/acknowledgment_status.rb +1 -1
- data/lib/factpulse/models/additional_document.rb +206 -0
- data/lib/factpulse/models/afnor_credentials.rb +1 -1
- data/lib/factpulse/models/afnor_destination.rb +1 -1
- data/lib/factpulse/models/afnor_health_check_response.rb +1 -1
- data/lib/factpulse/models/afnor_result.rb +1 -1
- data/lib/factpulse/models/allowance_charge.rb +252 -0
- data/lib/factpulse/models/allowance_reason_code.rb +1 -1
- data/lib/factpulse/models/allowance_total_amount.rb +104 -0
- data/lib/factpulse/models/amount.rb +104 -0
- data/lib/factpulse/models/amount_due.rb +2 -2
- data/lib/factpulse/models/api_error.rb +1 -1
- data/lib/factpulse/models/async_task_status.rb +1 -1
- data/lib/factpulse/models/base_amount.rb +104 -0
- data/lib/factpulse/models/bounding_box_schema.rb +1 -1
- data/lib/factpulse/models/celery_status.rb +1 -1
- data/lib/factpulse/models/certificate_info_response.rb +1 -1
- data/lib/factpulse/models/charge_total_amount.rb +104 -0
- data/lib/factpulse/models/chorus_pro_destination.rb +1 -1
- data/lib/factpulse/models/chorus_pro_result.rb +1 -1
- data/lib/factpulse/models/contact.rb +179 -0
- data/lib/factpulse/models/convert_error_response.rb +224 -0
- data/lib/factpulse/models/convert_pending_input_response.rb +322 -0
- data/lib/factpulse/models/convert_resume_request.rb +151 -0
- data/lib/factpulse/models/convert_success_response.rb +360 -0
- data/lib/factpulse/models/convert_validation_failed_response.rb +334 -0
- data/lib/factpulse/models/delivery_party.rb +179 -0
- data/lib/factpulse/models/destination.rb +1 -1
- data/lib/factpulse/models/document_type_info.rb +220 -0
- data/lib/factpulse/models/electronic_address.rb +1 -1
- data/lib/factpulse/models/enriched_invoice_info.rb +1 -1
- data/lib/factpulse/models/error_level.rb +1 -1
- data/lib/factpulse/models/error_source.rb +1 -1
- data/lib/factpulse/models/extraction_info.rb +217 -0
- data/lib/factpulse/models/factur_x_invoice.rb +150 -6
- data/lib/factpulse/models/{api_profile.rb → factur_x_profile.rb} +4 -4
- data/lib/factpulse/models/factur_xpdf_info.rb +1 -1
- data/lib/factpulse/models/facture_electronique_rest_api_schemas_chorus_pro_chorus_pro_credentials.rb +5 -5
- data/lib/factpulse/models/facture_electronique_rest_api_schemas_processing_chorus_pro_credentials.rb +1 -1
- data/lib/factpulse/models/field_status.rb +1 -1
- data/lib/factpulse/models/file_info.rb +161 -0
- data/lib/factpulse/models/files_info.rb +159 -0
- data/lib/factpulse/models/flow_direction.rb +1 -1
- data/lib/factpulse/models/flow_profile.rb +1 -1
- data/lib/factpulse/models/flow_summary.rb +1 -1
- data/lib/factpulse/models/flow_syntax.rb +1 -1
- data/lib/factpulse/models/flow_type.rb +1 -1
- data/lib/factpulse/models/generate_certificate_request.rb +6 -6
- data/lib/factpulse/models/generate_certificate_response.rb +1 -1
- data/lib/factpulse/models/get_chorus_pro_id_request.rb +2 -2
- data/lib/factpulse/models/get_chorus_pro_id_response.rb +1 -1
- data/lib/factpulse/models/get_invoice_request.rb +2 -2
- data/lib/factpulse/models/get_invoice_response.rb +1 -1
- data/lib/factpulse/models/get_structure_request.rb +3 -3
- data/lib/factpulse/models/get_structure_response.rb +1 -1
- data/lib/factpulse/models/global_allowance_amount.rb +2 -2
- data/lib/factpulse/models/gross_unit_price.rb +104 -0
- data/lib/factpulse/models/http_validation_error.rb +1 -1
- data/lib/factpulse/models/incoming_invoice.rb +2 -2
- data/lib/factpulse/models/incoming_supplier.rb +1 -1
- data/lib/factpulse/models/invoice_format.rb +1 -1
- data/lib/factpulse/models/invoice_line.rb +209 -25
- data/lib/factpulse/models/invoice_line_allowance_amount.rb +2 -2
- data/lib/factpulse/models/invoice_note.rb +1 -1
- data/lib/factpulse/models/invoice_references.rb +119 -16
- data/lib/factpulse/models/invoice_status.rb +1 -1
- data/lib/factpulse/models/invoice_totals.rb +52 -12
- data/lib/factpulse/models/invoice_totals_prepayment.rb +2 -2
- data/lib/factpulse/models/invoice_type_code.rb +1 -1
- data/lib/factpulse/models/invoicing_framework.rb +1 -1
- data/lib/factpulse/models/invoicing_framework_code.rb +1 -1
- data/lib/factpulse/models/line_net_amount.rb +2 -2
- data/lib/factpulse/models/line_total_amount.rb +104 -0
- data/lib/factpulse/models/mandatory_note_schema.rb +1 -1
- data/lib/factpulse/models/manual_rate.rb +2 -2
- data/lib/factpulse/models/manual_vat_rate.rb +2 -2
- data/lib/factpulse/models/missing_field.rb +269 -0
- data/lib/factpulse/models/operation_nature.rb +1 -1
- data/lib/factpulse/models/output_format.rb +1 -1
- data/lib/factpulse/models/page_dimensions_schema.rb +1 -1
- data/lib/factpulse/models/payee.rb +28 -6
- data/lib/factpulse/models/payment_card.rb +159 -0
- data/lib/factpulse/models/payment_means.rb +1 -1
- data/lib/factpulse/models/pdf_validation_result_api.rb +1 -1
- data/lib/factpulse/models/pdp_credentials.rb +6 -6
- data/lib/factpulse/models/percentage.rb +104 -0
- data/lib/factpulse/models/postal_address.rb +27 -7
- data/lib/factpulse/models/price_allowance_amount.rb +104 -0
- data/lib/factpulse/models/price_basis_quantity.rb +104 -0
- data/lib/factpulse/models/processing_options.rb +10 -10
- data/lib/factpulse/models/product_characteristic.rb +193 -0
- data/lib/factpulse/models/product_classification.rb +186 -0
- data/lib/factpulse/models/quantity.rb +2 -2
- data/lib/factpulse/models/recipient.rb +39 -7
- data/lib/factpulse/models/rounding_amount.rb +104 -0
- data/lib/factpulse/models/scheme_id.rb +9 -3
- data/lib/factpulse/models/search_flow_request.rb +8 -8
- data/lib/factpulse/models/search_flow_response.rb +1 -1
- data/lib/factpulse/models/search_services_response.rb +1 -1
- data/lib/factpulse/models/search_structure_request.rb +5 -5
- data/lib/factpulse/models/search_structure_response.rb +1 -1
- data/lib/factpulse/models/signature_info.rb +1 -1
- data/lib/factpulse/models/signature_info_api.rb +1 -1
- data/lib/factpulse/models/signature_parameters.rb +1 -1
- data/lib/factpulse/models/simplified_invoice_data.rb +1 -1
- data/lib/factpulse/models/structure_info.rb +1 -1
- data/lib/factpulse/models/structure_parameters.rb +1 -1
- data/lib/factpulse/models/structure_service.rb +1 -1
- data/lib/factpulse/models/submission_mode.rb +1 -1
- data/lib/factpulse/models/submit_complete_invoice_request.rb +1 -1
- data/lib/factpulse/models/submit_complete_invoice_response.rb +1 -1
- data/lib/factpulse/models/submit_flow_request.rb +7 -7
- data/lib/factpulse/models/submit_flow_response.rb +1 -1
- data/lib/factpulse/models/submit_gross_amount.rb +1 -1
- data/lib/factpulse/models/submit_invoice_request.rb +14 -14
- data/lib/factpulse/models/submit_invoice_response.rb +1 -1
- data/lib/factpulse/models/submit_net_amount.rb +1 -1
- data/lib/factpulse/models/submit_vat_amount.rb +1 -1
- data/lib/factpulse/models/supplementary_attachment.rb +1 -1
- data/lib/factpulse/models/supplier.rb +89 -7
- data/lib/factpulse/models/task_response.rb +1 -1
- data/lib/factpulse/models/tax_representative.rb +220 -0
- data/lib/factpulse/models/taxable_amount.rb +2 -2
- data/lib/factpulse/models/total_gross_amount.rb +2 -2
- data/lib/factpulse/models/total_net_amount.rb +2 -2
- data/lib/factpulse/models/total_vat_amount.rb +2 -2
- data/lib/factpulse/models/unit_net_price.rb +2 -2
- data/lib/factpulse/models/unit_of_measure.rb +1 -1
- data/lib/factpulse/models/validation_error.rb +1 -1
- data/lib/factpulse/models/validation_error_detail.rb +1 -1
- data/lib/factpulse/models/validation_error_loc_inner.rb +1 -1
- data/lib/factpulse/models/validation_error_response.rb +1 -1
- data/lib/factpulse/models/validation_info.rb +255 -0
- data/lib/factpulse/models/validation_success_response.rb +1 -1
- data/lib/factpulse/models/vat_accounting_code.rb +1 -1
- data/lib/factpulse/models/vat_amount.rb +2 -2
- data/lib/factpulse/models/vat_category.rb +1 -1
- data/lib/factpulse/models/vat_line.rb +13 -3
- data/lib/factpulse/models/{document_type.rb → vat_point_date_code.rb} +8 -10
- data/lib/factpulse/models/vat_rate.rb +104 -0
- data/lib/factpulse/models/verification_success_response.rb +1 -1
- data/lib/factpulse/models/verified_field_schema.rb +1 -1
- data/lib/factpulse/version.rb +2 -2
- data/lib/factpulse.rb +34 -3
- 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.
|
|
9
|
+
Generator version: 7.19.0-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,18 +14,24 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module FactPulse
|
|
17
|
-
# Information about the supplier
|
|
17
|
+
# Information about the supplier / seller (BG-4).
|
|
18
18
|
class Supplier < ApiModelBase
|
|
19
19
|
attr_accessor :electronic_address
|
|
20
20
|
|
|
21
21
|
attr_accessor :supplier_id
|
|
22
22
|
|
|
23
|
+
attr_accessor :private_id
|
|
24
|
+
|
|
23
25
|
attr_accessor :supplier_bank_account_code
|
|
24
26
|
|
|
25
27
|
attr_accessor :supplier_service_id
|
|
26
28
|
|
|
27
29
|
attr_accessor :name
|
|
28
30
|
|
|
31
|
+
attr_accessor :trading_business_name
|
|
32
|
+
|
|
33
|
+
attr_accessor :legal_description
|
|
34
|
+
|
|
29
35
|
attr_accessor :siren
|
|
30
36
|
|
|
31
37
|
attr_accessor :siret
|
|
@@ -34,21 +40,39 @@ module FactPulse
|
|
|
34
40
|
|
|
35
41
|
attr_accessor :iban
|
|
36
42
|
|
|
43
|
+
attr_accessor :bic
|
|
44
|
+
|
|
45
|
+
attr_accessor :bank_account_name
|
|
46
|
+
|
|
47
|
+
attr_accessor :proprietary_id
|
|
48
|
+
|
|
37
49
|
attr_accessor :postal_address
|
|
38
50
|
|
|
51
|
+
attr_accessor :contact
|
|
52
|
+
|
|
53
|
+
attr_accessor :global_ids
|
|
54
|
+
|
|
39
55
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
40
56
|
def self.attribute_map
|
|
41
57
|
{
|
|
42
58
|
:'electronic_address' => :'electronic_address',
|
|
43
59
|
:'supplier_id' => :'supplier_id',
|
|
60
|
+
:'private_id' => :'private_id',
|
|
44
61
|
:'supplier_bank_account_code' => :'supplier_bank_account_code',
|
|
45
62
|
:'supplier_service_id' => :'supplier_service_id',
|
|
46
63
|
:'name' => :'name',
|
|
64
|
+
:'trading_business_name' => :'trading_business_name',
|
|
65
|
+
:'legal_description' => :'legal_description',
|
|
47
66
|
:'siren' => :'siren',
|
|
48
67
|
:'siret' => :'siret',
|
|
49
68
|
:'vat_number' => :'vat_number',
|
|
50
69
|
:'iban' => :'iban',
|
|
51
|
-
:'
|
|
70
|
+
:'bic' => :'bic',
|
|
71
|
+
:'bank_account_name' => :'bank_account_name',
|
|
72
|
+
:'proprietary_id' => :'proprietaryId',
|
|
73
|
+
:'postal_address' => :'postal_address',
|
|
74
|
+
:'contact' => :'contact',
|
|
75
|
+
:'global_ids' => :'global_ids'
|
|
52
76
|
}
|
|
53
77
|
end
|
|
54
78
|
|
|
@@ -67,14 +91,22 @@ module FactPulse
|
|
|
67
91
|
{
|
|
68
92
|
:'electronic_address' => :'ElectronicAddress',
|
|
69
93
|
:'supplier_id' => :'Integer',
|
|
94
|
+
:'private_id' => :'String',
|
|
70
95
|
:'supplier_bank_account_code' => :'Integer',
|
|
71
96
|
:'supplier_service_id' => :'Integer',
|
|
72
97
|
:'name' => :'String',
|
|
98
|
+
:'trading_business_name' => :'String',
|
|
99
|
+
:'legal_description' => :'String',
|
|
73
100
|
:'siren' => :'String',
|
|
74
101
|
:'siret' => :'String',
|
|
75
102
|
:'vat_number' => :'String',
|
|
76
103
|
:'iban' => :'String',
|
|
77
|
-
:'
|
|
104
|
+
:'bic' => :'String',
|
|
105
|
+
:'bank_account_name' => :'String',
|
|
106
|
+
:'proprietary_id' => :'String',
|
|
107
|
+
:'postal_address' => :'PostalAddress',
|
|
108
|
+
:'contact' => :'Contact',
|
|
109
|
+
:'global_ids' => :'Array<ElectronicAddress>'
|
|
78
110
|
}
|
|
79
111
|
end
|
|
80
112
|
|
|
@@ -82,14 +114,22 @@ module FactPulse
|
|
|
82
114
|
def self.openapi_nullable
|
|
83
115
|
Set.new([
|
|
84
116
|
:'electronic_address',
|
|
117
|
+
:'private_id',
|
|
85
118
|
:'supplier_bank_account_code',
|
|
86
119
|
:'supplier_service_id',
|
|
87
120
|
:'name',
|
|
121
|
+
:'trading_business_name',
|
|
122
|
+
:'legal_description',
|
|
88
123
|
:'siren',
|
|
89
124
|
:'siret',
|
|
90
125
|
:'vat_number',
|
|
91
126
|
:'iban',
|
|
92
|
-
:'
|
|
127
|
+
:'bic',
|
|
128
|
+
:'bank_account_name',
|
|
129
|
+
:'proprietary_id',
|
|
130
|
+
:'postal_address',
|
|
131
|
+
:'contact',
|
|
132
|
+
:'global_ids'
|
|
93
133
|
])
|
|
94
134
|
end
|
|
95
135
|
|
|
@@ -121,6 +161,10 @@ module FactPulse
|
|
|
121
161
|
self.supplier_id = nil
|
|
122
162
|
end
|
|
123
163
|
|
|
164
|
+
if attributes.key?(:'private_id')
|
|
165
|
+
self.private_id = attributes[:'private_id']
|
|
166
|
+
end
|
|
167
|
+
|
|
124
168
|
if attributes.key?(:'supplier_bank_account_code')
|
|
125
169
|
self.supplier_bank_account_code = attributes[:'supplier_bank_account_code']
|
|
126
170
|
end
|
|
@@ -133,6 +177,14 @@ module FactPulse
|
|
|
133
177
|
self.name = attributes[:'name']
|
|
134
178
|
end
|
|
135
179
|
|
|
180
|
+
if attributes.key?(:'trading_business_name')
|
|
181
|
+
self.trading_business_name = attributes[:'trading_business_name']
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
if attributes.key?(:'legal_description')
|
|
185
|
+
self.legal_description = attributes[:'legal_description']
|
|
186
|
+
end
|
|
187
|
+
|
|
136
188
|
if attributes.key?(:'siren')
|
|
137
189
|
self.siren = attributes[:'siren']
|
|
138
190
|
end
|
|
@@ -149,9 +201,31 @@ module FactPulse
|
|
|
149
201
|
self.iban = attributes[:'iban']
|
|
150
202
|
end
|
|
151
203
|
|
|
204
|
+
if attributes.key?(:'bic')
|
|
205
|
+
self.bic = attributes[:'bic']
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
if attributes.key?(:'bank_account_name')
|
|
209
|
+
self.bank_account_name = attributes[:'bank_account_name']
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
if attributes.key?(:'proprietary_id')
|
|
213
|
+
self.proprietary_id = attributes[:'proprietary_id']
|
|
214
|
+
end
|
|
215
|
+
|
|
152
216
|
if attributes.key?(:'postal_address')
|
|
153
217
|
self.postal_address = attributes[:'postal_address']
|
|
154
218
|
end
|
|
219
|
+
|
|
220
|
+
if attributes.key?(:'contact')
|
|
221
|
+
self.contact = attributes[:'contact']
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
if attributes.key?(:'global_ids')
|
|
225
|
+
if (value = attributes[:'global_ids']).is_a?(Array)
|
|
226
|
+
self.global_ids = value
|
|
227
|
+
end
|
|
228
|
+
end
|
|
155
229
|
end
|
|
156
230
|
|
|
157
231
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -191,14 +265,22 @@ module FactPulse
|
|
|
191
265
|
self.class == o.class &&
|
|
192
266
|
electronic_address == o.electronic_address &&
|
|
193
267
|
supplier_id == o.supplier_id &&
|
|
268
|
+
private_id == o.private_id &&
|
|
194
269
|
supplier_bank_account_code == o.supplier_bank_account_code &&
|
|
195
270
|
supplier_service_id == o.supplier_service_id &&
|
|
196
271
|
name == o.name &&
|
|
272
|
+
trading_business_name == o.trading_business_name &&
|
|
273
|
+
legal_description == o.legal_description &&
|
|
197
274
|
siren == o.siren &&
|
|
198
275
|
siret == o.siret &&
|
|
199
276
|
vat_number == o.vat_number &&
|
|
200
277
|
iban == o.iban &&
|
|
201
|
-
|
|
278
|
+
bic == o.bic &&
|
|
279
|
+
bank_account_name == o.bank_account_name &&
|
|
280
|
+
proprietary_id == o.proprietary_id &&
|
|
281
|
+
postal_address == o.postal_address &&
|
|
282
|
+
contact == o.contact &&
|
|
283
|
+
global_ids == o.global_ids
|
|
202
284
|
end
|
|
203
285
|
|
|
204
286
|
# @see the `==` method
|
|
@@ -210,7 +292,7 @@ module FactPulse
|
|
|
210
292
|
# Calculates hash code according to all attributes.
|
|
211
293
|
# @return [Integer] Hash code
|
|
212
294
|
def hash
|
|
213
|
-
[electronic_address, supplier_id, supplier_bank_account_code, supplier_service_id, name, siren, siret, vat_number, iban, postal_address].hash
|
|
295
|
+
[electronic_address, supplier_id, private_id, supplier_bank_account_code, supplier_service_id, name, trading_business_name, legal_description, siren, siret, vat_number, iban, bic, bank_account_name, proprietary_id, postal_address, contact, global_ids].hash
|
|
214
296
|
end
|
|
215
297
|
|
|
216
298
|
# Builds the object from hash
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#FactPulse REST API
|
|
3
|
+
|
|
4
|
+
# REST API for electronic invoicing in France: Factur-X, AFNOR PDP/PA, electronic signatures. ## 🎯 Main Features ### 📄 Factur-X Invoice Generation - **Formats**: XML only or PDF/A-3 with embedded XML - **Profiles**: MINIMUM, BASIC, EN16931, EXTENDED - **Standards**: EN 16931 (EU directive 2014/55), ISO 19005-3 (PDF/A-3), CII (UN/CEFACT) - **🆕 Simplified Format**: Generation from SIRET + auto-enrichment (Chorus Pro API + Business Search) ### ✅ Validation and Compliance - **XML Validation**: Schematron (45 to 210+ rules depending on profile) - **PDF Validation**: PDF/A-3, Factur-X XMP metadata, electronic signatures - **VeraPDF**: Strict PDF/A validation (146+ ISO 19005-3 rules) - **Asynchronous Processing**: Celery support for heavy validations (VeraPDF) ### 📡 AFNOR PDP/PA Integration (XP Z12-013) - **Flow Submission**: Send invoices to Partner Dematerialization Platforms - **Flow Search**: View submitted invoices - **Download**: Retrieve PDF/A-3 with XML - **Directory Service**: Company search (SIREN/SIRET) - **Multi-client**: Support for multiple PDP configs per user (stored credentials or zero-storage) ### ✍️ PDF Electronic Signature - **Standards**: PAdES-B-B, PAdES-B-T (RFC 3161 timestamping), PAdES-B-LT (long-term archival) - **eIDAS Levels**: SES (self-signed), AdES (commercial CA), QES (QTSP) - **Validation**: Cryptographic integrity and certificate verification - **Certificate Generation**: Self-signed X.509 certificates for testing ### 🔄 Asynchronous Processing - **Celery**: Asynchronous generation, validation and signing - **Polling**: Status tracking via `/tasks/{task_id}/status` - **No timeout**: Ideal for large files or heavy validations ## 🔒 Authentication All requests require a **JWT token** in the Authorization header: ``` Authorization: Bearer YOUR_JWT_TOKEN ``` ### How to obtain a JWT token? #### 🔑 Method 1: `/api/token/` API (Recommended) **URL:** `https://www.factpulse.fr/api/token/` This method is **recommended** for integration in your applications and CI/CD workflows. **Prerequisites:** Having set a password on your account **For users registered via email/password:** - You already have a password, use it directly **For users registered via OAuth (Google/GitHub):** - You must first set a password at: https://www.factpulse.fr/accounts/password/set/ - Once the password is created, you can use the API **Request example:** ```bash curl -X POST https://www.factpulse.fr/api/token/ \\ -H \"Content-Type: application/json\" \\ -d '{ \"username\": \"your_email@example.com\", \"password\": \"your_password\" }' ``` **Optional `client_uid` parameter:** To select credentials for a specific client (PA/PDP, Chorus Pro, signing certificates), add `client_uid`: ```bash curl -X POST https://www.factpulse.fr/api/token/ \\ -H \"Content-Type: application/json\" \\ -d '{ \"username\": \"your_email@example.com\", \"password\": \"your_password\", \"client_uid\": \"550e8400-e29b-41d4-a716-446655440000\" }' ``` The `client_uid` will be included in the JWT and allow the API to automatically use: - AFNOR/PDP credentials configured for this client - Chorus Pro credentials configured for this client - Electronic signature certificates configured for this client **Response:** ```json { \"access\": \"eyJ0eXAiOiJKV1QiLCJhbGc...\", // Access token (validity: 30 min) \"refresh\": \"eyJ0eXAiOiJKV1QiLCJhbGc...\" // Refresh token (validity: 7 days) } ``` **Advantages:** - ✅ Full automation (CI/CD, scripts) - ✅ Programmatic token management - ✅ Refresh token support for automatic access renewal - ✅ Easy integration in any language/tool #### 🖥️ Method 2: Dashboard Generation (Alternative) **URL:** https://www.factpulse.fr/dashboard/ This method is suitable for quick tests or occasional use via the graphical interface. **How it works:** - Log in to the dashboard - Use the \"Generate Test Token\" or \"Generate Production Token\" buttons - Works for **all** users (OAuth and email/password), without requiring a password **Token types:** - **Test Token**: 24h validity, 1000 calls/day quota (free) - **Production Token**: 7 days validity, quota based on your plan **Advantages:** - ✅ Quick for API testing - ✅ No password required - ✅ Simple visual interface **Disadvantages:** - ❌ Requires manual action - ❌ No refresh token - ❌ Less suited for automation ### 📚 Full Documentation For more information on authentication and API usage: https://www.factpulse.fr/documentation-api/
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.19.0-SNAPSHOT
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module FactPulse
|
|
17
|
+
# Seller tax representative (BG-11). The tax representative is required when the seller is not established in the country where VAT is due.
|
|
18
|
+
class TaxRepresentative < ApiModelBase
|
|
19
|
+
# Tax representative name (BT-62).
|
|
20
|
+
attr_accessor :name
|
|
21
|
+
|
|
22
|
+
# Tax representative VAT identifier (BT-63).
|
|
23
|
+
attr_accessor :vat_number
|
|
24
|
+
|
|
25
|
+
# Tax representative postal address (BG-12).
|
|
26
|
+
attr_accessor :postal_address
|
|
27
|
+
|
|
28
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
29
|
+
def self.attribute_map
|
|
30
|
+
{
|
|
31
|
+
:'name' => :'name',
|
|
32
|
+
:'vat_number' => :'vat_number',
|
|
33
|
+
:'postal_address' => :'postal_address'
|
|
34
|
+
}
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Returns attribute mapping this model knows about
|
|
38
|
+
def self.acceptable_attribute_map
|
|
39
|
+
attribute_map
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# Returns all the JSON keys this model knows about
|
|
43
|
+
def self.acceptable_attributes
|
|
44
|
+
acceptable_attribute_map.values
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# Attribute type mapping.
|
|
48
|
+
def self.openapi_types
|
|
49
|
+
{
|
|
50
|
+
:'name' => :'String',
|
|
51
|
+
:'vat_number' => :'String',
|
|
52
|
+
:'postal_address' => :'PostalAddress'
|
|
53
|
+
}
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# List of attributes with nullable: true
|
|
57
|
+
def self.openapi_nullable
|
|
58
|
+
Set.new([
|
|
59
|
+
])
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# Initializes the object
|
|
63
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
64
|
+
def initialize(attributes = {})
|
|
65
|
+
if (!attributes.is_a?(Hash))
|
|
66
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `FactPulse::TaxRepresentative` initialize method"
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
70
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
71
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
72
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
73
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `FactPulse::TaxRepresentative`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
74
|
+
end
|
|
75
|
+
h[k.to_sym] = v
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
if attributes.key?(:'name')
|
|
79
|
+
self.name = attributes[:'name']
|
|
80
|
+
else
|
|
81
|
+
self.name = nil
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
if attributes.key?(:'vat_number')
|
|
85
|
+
self.vat_number = attributes[:'vat_number']
|
|
86
|
+
else
|
|
87
|
+
self.vat_number = nil
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
if attributes.key?(:'postal_address')
|
|
91
|
+
self.postal_address = attributes[:'postal_address']
|
|
92
|
+
else
|
|
93
|
+
self.postal_address = nil
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
98
|
+
# @return Array for valid properties with the reasons
|
|
99
|
+
def list_invalid_properties
|
|
100
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
101
|
+
invalid_properties = Array.new
|
|
102
|
+
if @name.nil?
|
|
103
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
if @vat_number.nil?
|
|
107
|
+
invalid_properties.push('invalid value for "vat_number", vat_number cannot be nil.')
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
if @postal_address.nil?
|
|
111
|
+
invalid_properties.push('invalid value for "postal_address", postal_address cannot be nil.')
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
invalid_properties
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# Check to see if the all the properties in the model are valid
|
|
118
|
+
# @return true if the model is valid
|
|
119
|
+
def valid?
|
|
120
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
121
|
+
return false if @name.nil?
|
|
122
|
+
return false if @vat_number.nil?
|
|
123
|
+
return false if @postal_address.nil?
|
|
124
|
+
true
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
# Custom attribute writer method with validation
|
|
128
|
+
# @param [Object] name Value to be assigned
|
|
129
|
+
def name=(name)
|
|
130
|
+
if name.nil?
|
|
131
|
+
fail ArgumentError, 'name cannot be nil'
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
@name = name
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# Custom attribute writer method with validation
|
|
138
|
+
# @param [Object] vat_number Value to be assigned
|
|
139
|
+
def vat_number=(vat_number)
|
|
140
|
+
if vat_number.nil?
|
|
141
|
+
fail ArgumentError, 'vat_number cannot be nil'
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
@vat_number = vat_number
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
# Custom attribute writer method with validation
|
|
148
|
+
# @param [Object] postal_address Value to be assigned
|
|
149
|
+
def postal_address=(postal_address)
|
|
150
|
+
if postal_address.nil?
|
|
151
|
+
fail ArgumentError, 'postal_address cannot be nil'
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
@postal_address = postal_address
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
# Checks equality by comparing each attribute.
|
|
158
|
+
# @param [Object] Object to be compared
|
|
159
|
+
def ==(o)
|
|
160
|
+
return true if self.equal?(o)
|
|
161
|
+
self.class == o.class &&
|
|
162
|
+
name == o.name &&
|
|
163
|
+
vat_number == o.vat_number &&
|
|
164
|
+
postal_address == o.postal_address
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
# @see the `==` method
|
|
168
|
+
# @param [Object] Object to be compared
|
|
169
|
+
def eql?(o)
|
|
170
|
+
self == o
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
# Calculates hash code according to all attributes.
|
|
174
|
+
# @return [Integer] Hash code
|
|
175
|
+
def hash
|
|
176
|
+
[name, vat_number, postal_address].hash
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
# Builds the object from hash
|
|
180
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
181
|
+
# @return [Object] Returns the model itself
|
|
182
|
+
def self.build_from_hash(attributes)
|
|
183
|
+
return nil unless attributes.is_a?(Hash)
|
|
184
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
185
|
+
transformed_hash = {}
|
|
186
|
+
openapi_types.each_pair do |key, type|
|
|
187
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
188
|
+
transformed_hash["#{key}"] = nil
|
|
189
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
190
|
+
# check to ensure the input is an array given that the attribute
|
|
191
|
+
# is documented as an array but the input is not
|
|
192
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
193
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
194
|
+
end
|
|
195
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
196
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
197
|
+
end
|
|
198
|
+
end
|
|
199
|
+
new(transformed_hash)
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
# Returns the object in the form of hash
|
|
203
|
+
# @return [Hash] Returns the object in the form of hash
|
|
204
|
+
def to_hash
|
|
205
|
+
hash = {}
|
|
206
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
207
|
+
value = self.send(attr)
|
|
208
|
+
if value.nil?
|
|
209
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
210
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
hash[param] = _to_hash(value)
|
|
214
|
+
end
|
|
215
|
+
hash
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
end
|
|
@@ -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.
|
|
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
|
-
#
|
|
17
|
+
# VAT category taxable amount (BT-116). Can be negative for correction invoices.
|
|
18
18
|
module TaxableAmount
|
|
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.
|
|
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
|
-
#
|
|
17
|
+
# Invoice total amount with VAT (BT-112). Can be negative for correction invoices.
|
|
18
18
|
module TotalGrossAmount
|
|
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.
|
|
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
|
-
#
|
|
17
|
+
# Invoice total amount without VAT (BT-109). Can be negative for correction invoices.
|
|
18
18
|
module TotalNetAmount
|
|
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.
|
|
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
|
-
#
|
|
17
|
+
# Invoice total VAT amount (BT-110). Can be negative for correction invoices.
|
|
18
18
|
module TotalVATAmount
|
|
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.
|
|
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
|
-
#
|
|
17
|
+
# Item net price after line discount (BT-146).
|
|
18
18
|
module UnitNetPrice
|
|
19
19
|
class << self
|
|
20
20
|
# List of class defined in anyOf (OpenAPI v3)
|