factpulse 4.1.2 → 4.3.0

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 (160) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -5
  3. data/Gemfile.lock +2 -2
  4. data/docs/AFNORBasicAuthentication.md +20 -0
  5. data/docs/AFNORCallbackAuthentication.md +49 -0
  6. data/docs/AFNORCallbackHeader.md +20 -0
  7. data/docs/AFNORCallbackParameters.md +24 -0
  8. data/docs/AFNORCallbackSignature.md +20 -0
  9. data/docs/{AFNORFacilityNature.md → AFNORContainsOrStrictOperator.md} +2 -2
  10. data/docs/AFNORCoreFlowInfo.md +26 -0
  11. data/docs/{AFNORDirectoryLinePayloadHistoryLegalUnitFacilityRoutingCode.md → AFNORDirectoryLinePayloadLegalUnitFacilityRoutingCode.md} +5 -5
  12. data/docs/AFNORDirectoryLinePayloadStatusLegalUnitFacilityRoutingCode.md +34 -0
  13. data/docs/AFNORDirectoryLineSearchPost200Response.md +1 -1
  14. data/docs/{AFNORDiffusionStatus.md → AFNORDirectoryLineStatus.md} +2 -2
  15. data/docs/AFNORError.md +4 -4
  16. data/docs/AFNORFacilityPayloadHistory.md +3 -3
  17. data/docs/AFNORFacilityPayloadIncluded.md +0 -2
  18. data/docs/AFNORFlow.md +16 -14
  19. data/docs/AFNORFlowExtension.md +26 -0
  20. data/docs/AFNORFlowInfo.md +3 -3
  21. data/docs/AFNORFlowInfoExtension.md +18 -0
  22. data/docs/AFNORFullFlowInfo.md +8 -8
  23. data/docs/AFNORFullFlowInfoExtension.md +20 -0
  24. data/docs/AFNORLegalUnitPayloadHistory.md +3 -1
  25. data/docs/AFNOROAuth2Authentication.md +22 -0
  26. data/docs/AFNORPDPPADirectoryServiceApi.md +4 -648
  27. data/docs/AFNORPDPPAFlowServiceApi.md +320 -1
  28. data/docs/AFNORRoutingCodeSearch.md +1 -1
  29. data/docs/AFNORRoutingCodeSearchFiltersRoutingCodeName.md +1 -1
  30. data/docs/AFNORRoutingCodeSearchFiltersRoutingIdentifier.md +1 -1
  31. data/docs/AFNORSearchDirectoryLine.md +2 -2
  32. data/docs/AFNORSearchDirectoryLineFiltersAddressingIdentifier.md +1 -1
  33. data/docs/AFNORSearchDirectoryLineFiltersAddressingSuffix.md +1 -1
  34. data/docs/AFNORSearchFlowFilters.md +1 -1
  35. data/docs/AFNORSearchSiren.md +1 -1
  36. data/docs/AFNORSearchSirenFiltersBusinessName.md +1 -1
  37. data/docs/AFNORSearchSirenFiltersSiren.md +1 -1
  38. data/docs/AFNORSearchSiret.md +2 -2
  39. data/docs/AFNORSearchSiretFiltersCountrySubdivision.md +1 -1
  40. data/docs/AFNORSearchSiretFiltersFacilityType.md +1 -1
  41. data/docs/AFNORSearchSiretFiltersLocality.md +1 -1
  42. data/docs/AFNORSearchSiretFiltersName.md +1 -1
  43. data/docs/AFNORSearchSiretFiltersPostalCode.md +1 -1
  44. data/docs/AFNORSearchSiretFiltersSiret.md +1 -1
  45. data/docs/AFNORSirenInstructions.md +18 -0
  46. data/docs/AFNORSiretInstructions.md +18 -0
  47. data/docs/{AFNORPlatformStatus.md → AFNORStrictOrStartWithOperator.md} +2 -2
  48. data/docs/AFNORWebhook.md +22 -0
  49. data/docs/AFNORWebhookIdParam.md +18 -0
  50. data/docs/AFNORWebhookMetadata.md +24 -0
  51. data/docs/AFNORWebhookParams.md +20 -0
  52. data/docs/AFNORWebhookPatchPayload.md +22 -0
  53. data/docs/ChorusProCredentials.md +8 -8
  54. data/docs/ChorusProDestination.md +1 -1
  55. data/docs/FactureElectroniqueRestApiSchemasCdarValidationErrorResponse.md +24 -0
  56. data/docs/FactureElectroniqueRestApiSchemasEreportingInvoiceTypeCode.md +15 -0
  57. data/docs/FactureElectroniqueRestApiSchemasProcessingChorusProCredentials.md +26 -0
  58. data/docs/GetChorusProIdRequest.md +1 -1
  59. data/docs/GetInvoiceRequest.md +1 -1
  60. data/docs/GetStructureRequest.md +1 -1
  61. data/docs/InvoiceInput.md +1 -1
  62. data/docs/SearchStructureRequest.md +1 -1
  63. data/docs/SimplifiedInvoiceData.md +1 -1
  64. data/docs/SubmitInvoiceRequest.md +1 -1
  65. data/docs/ValidateCDARResponse.md +2 -2
  66. data/docs/ValidationErrorResponse.md +2 -8
  67. data/lib/factpulse/api/afnorpdppa_directory_service_api.rb +3 -621
  68. data/lib/factpulse/api/afnorpdppa_flow_service_api.rb +303 -0
  69. data/lib/factpulse/models/afnor_algorithm.rb +4 -3
  70. data/lib/factpulse/models/afnor_basic_authentication.rb +190 -0
  71. data/lib/factpulse/models/afnor_callback_authentication.rb +105 -0
  72. data/lib/factpulse/models/afnor_callback_header.rb +190 -0
  73. data/lib/factpulse/models/afnor_callback_parameters.rb +193 -0
  74. data/lib/factpulse/models/{afnor_directory_line_payload_history_legal_unit_facility_routing_code_platform.rb → afnor_callback_signature.rb} +51 -16
  75. data/lib/factpulse/models/{afnor_diffusion_status.rb → afnor_contains_or_strict_operator.rb} +6 -6
  76. data/lib/factpulse/models/{afnor_routing_code_post201_response.rb → afnor_core_flow_info.rb} +103 -61
  77. data/lib/factpulse/models/afnor_directory_line_field.rb +1 -2
  78. data/lib/factpulse/models/{afnor_directory_line_payload_history_legal_unit_facility_routing_code.rb → afnor_directory_line_payload_legal_unit_facility_routing_code.rb} +36 -14
  79. data/lib/factpulse/models/{afnor_create_directory_line_body_addressing_information.rb → afnor_directory_line_payload_status_legal_unit_facility_routing_code.rb} +105 -56
  80. data/lib/factpulse/models/afnor_directory_line_search_post200_response.rb +1 -1
  81. data/lib/factpulse/models/{afnor_platform_status.rb → afnor_directory_line_status.rb} +5 -4
  82. data/lib/factpulse/models/afnor_error.rb +30 -39
  83. data/lib/factpulse/models/afnor_facility_payload_history.rb +11 -11
  84. data/lib/factpulse/models/afnor_facility_payload_included.rb +1 -10
  85. data/lib/factpulse/models/afnor_flow.rb +218 -57
  86. data/lib/factpulse/models/{afnor_update_patch_routing_code_body.rb → afnor_flow_extension.rb} +103 -66
  87. data/lib/factpulse/models/afnor_flow_info.rb +20 -4
  88. data/lib/factpulse/models/{afnor_create_directory_line_body_period.rb → afnor_flow_info_extension.rb} +26 -31
  89. data/lib/factpulse/models/afnor_full_flow_info.rb +79 -46
  90. data/lib/factpulse/models/afnor_full_flow_info_extension.rb +202 -0
  91. data/lib/factpulse/models/afnor_legal_unit_payload_history.rb +13 -4
  92. data/lib/factpulse/models/afnor_processing_rule.rb +4 -1
  93. data/lib/factpulse/models/afnor_routing_code_field.rb +1 -2
  94. data/lib/factpulse/models/afnor_routing_code_search_filters_routing_code_name.rb +1 -1
  95. data/lib/factpulse/models/afnor_routing_code_search_filters_routing_identifier.rb +1 -1
  96. data/lib/factpulse/models/afnor_search_directory_line_filters_addressing_identifier.rb +1 -1
  97. data/lib/factpulse/models/afnor_search_directory_line_filters_addressing_suffix.rb +1 -1
  98. data/lib/factpulse/models/afnor_search_flow_filters.rb +1 -0
  99. data/lib/factpulse/models/afnor_search_siren_filters_business_name.rb +1 -1
  100. data/lib/factpulse/models/afnor_search_siren_filters_siren.rb +1 -1
  101. data/lib/factpulse/models/afnor_search_siret_filters_country_subdivision.rb +1 -1
  102. data/lib/factpulse/models/afnor_search_siret_filters_facility_type.rb +1 -1
  103. data/lib/factpulse/models/afnor_search_siret_filters_locality.rb +1 -1
  104. data/lib/factpulse/models/afnor_search_siret_filters_name.rb +1 -1
  105. data/lib/factpulse/models/afnor_search_siret_filters_postal_code.rb +1 -1
  106. data/lib/factpulse/models/afnor_search_siret_filters_siret.rb +1 -1
  107. data/lib/factpulse/models/afnor_siren_field.rb +2 -2
  108. data/lib/factpulse/models/{afnor_update_patch_directory_line_body.rb → afnor_siren_instructions.rb} +12 -11
  109. data/lib/factpulse/models/afnor_siret_field.rb +3 -4
  110. data/lib/factpulse/models/{afnor_create_directory_line_body.rb → afnor_siret_instructions.rb} +12 -19
  111. data/lib/factpulse/models/{afnor_facility_nature.rb → afnor_strict_or_start_with_operator.rb} +6 -6
  112. data/lib/factpulse/models/{afnor_directory_line_post201_response.rb → afnor_webhook.rb} +55 -35
  113. data/lib/factpulse/models/{afnor_webhook_callback_content.rb → afnor_webhook_id_param.rb} +10 -11
  114. data/lib/factpulse/models/{afnor_legal_unit_payload_included_no_siren.rb → afnor_webhook_metadata.rb} +56 -33
  115. data/lib/factpulse/models/afnor_webhook_params.rb +190 -0
  116. data/lib/factpulse/models/{facture_electronique_rest_api_schemas_validation_validation_error_response.rb → afnor_webhook_patch_payload.rb} +29 -30
  117. data/lib/factpulse/models/afnoro_auth2_authentication.rb +216 -0
  118. data/lib/factpulse/models/chorus_pro_credentials.rb +94 -26
  119. data/lib/factpulse/models/chorus_pro_destination.rb +1 -1
  120. data/lib/factpulse/models/facture_electronique_rest_api_schemas_cdar_validation_error_response.rb +215 -0
  121. data/lib/factpulse/models/{facture_electronique_models_invoice_type_code.rb → facture_electronique_rest_api_schemas_ereporting_invoice_type_code.rb} +9 -20
  122. data/lib/factpulse/models/facture_electronique_rest_api_schemas_processing_chorus_pro_credentials.rb +191 -0
  123. data/lib/factpulse/models/get_chorus_pro_id_request.rb +1 -1
  124. data/lib/factpulse/models/get_invoice_request.rb +1 -1
  125. data/lib/factpulse/models/get_structure_request.rb +1 -1
  126. data/lib/factpulse/models/invoice_input.rb +1 -1
  127. data/lib/factpulse/models/invoice_type_code.rb +17 -6
  128. data/lib/factpulse/models/processing_rule.rb +4 -1
  129. data/lib/factpulse/models/search_structure_request.rb +1 -1
  130. data/lib/factpulse/models/simplified_invoice_data.rb +1 -1
  131. data/lib/factpulse/models/submit_invoice_request.rb +1 -1
  132. data/lib/factpulse/models/validate_cdar_response.rb +2 -2
  133. data/lib/factpulse/models/validation_error_response.rb +20 -67
  134. data/lib/factpulse/version.rb +1 -1
  135. data/lib/factpulse.rb +25 -22
  136. metadata +52 -46
  137. data/docs/AFNORAddressEdit.md +0 -30
  138. data/docs/AFNORAddressPatch.md +0 -30
  139. data/docs/AFNORAddressPut.md +0 -30
  140. data/docs/AFNORCreateDirectoryLineBody.md +0 -20
  141. data/docs/AFNORCreateDirectoryLineBodyAddressingInformation.md +0 -24
  142. data/docs/AFNORCreateDirectoryLineBodyPeriod.md +0 -20
  143. data/docs/AFNORCreateRoutingCodeBody.md +0 -32
  144. data/docs/AFNORDirectoryLinePayloadHistoryLegalUnitFacilityRoutingCodePlatform.md +0 -20
  145. data/docs/AFNORDirectoryLinePost201Response.md +0 -22
  146. data/docs/AFNORLegalUnitPayloadIncludedNoSiren.md +0 -22
  147. data/docs/AFNORRoutingCodePost201Response.md +0 -22
  148. data/docs/AFNORUpdatePatchDirectoryLineBody.md +0 -18
  149. data/docs/AFNORUpdatePatchRoutingCodeBody.md +0 -24
  150. data/docs/AFNORUpdatePutRoutingCodeBody.md +0 -24
  151. data/docs/AFNORWebhookCallbackContent.md +0 -18
  152. data/docs/FactureElectroniqueModelsInvoiceTypeCode.md +0 -15
  153. data/docs/FactureElectroniqueRestApiSchemasChorusProChorusProCredentials.md +0 -26
  154. data/docs/FactureElectroniqueRestApiSchemasValidationValidationErrorResponse.md +0 -18
  155. data/lib/factpulse/models/afnor_address_edit.rb +0 -353
  156. data/lib/factpulse/models/afnor_address_patch.rb +0 -386
  157. data/lib/factpulse/models/afnor_address_put.rb +0 -435
  158. data/lib/factpulse/models/afnor_create_routing_code_body.rb +0 -412
  159. data/lib/factpulse/models/afnor_update_put_routing_code_body.rb +0 -289
  160. data/lib/factpulse/models/facture_electronique_rest_api_schemas_chorus_pro_chorus_pro_credentials.rb +0 -259
@@ -16,31 +16,34 @@ require 'time'
16
16
  module FactPulse
17
17
  # The properties of a Flow resource
18
18
  class AFNORFlow < ApiModelBase
19
- # The flow submission date and time (the date and time when the flow was created on the system)
20
- attr_accessor :submitted_at
19
+ # The tracking id is an external identifier and is used to track the flow by the sender
20
+ attr_accessor :tracking_id
21
21
 
22
- # The last update date and time of the flow. When the flow is submitted updatedAt is equal to submittedAt. When the flow acknowledgment status is changed updatedAt date and time is updated.
23
- attr_accessor :updated_at
22
+ # Name of the file
23
+ attr_accessor :name
24
+
25
+ attr_accessor :processing_rule
26
+
27
+ attr_accessor :flow_syntax
28
+
29
+ attr_accessor :flow_profile
24
30
 
25
31
  # Unique identifier supporting UUID but not only, for flexibility purpose
26
32
  attr_accessor :flow_id
27
33
 
28
- # Unique identifier supporting UUID but not only, for flexibility purpose
29
- attr_accessor :tracking_id
34
+ # The flow submission date and time (the date and time when the flow was created on the system) This property should be used by the API consumer as a time reference to avoid clock synchronization issues
35
+ attr_accessor :submitted_at
30
36
 
31
- attr_accessor :flow_type
37
+ # The last update date and time of the flow. When the flow is submitted updatedAt is equal to submittedAt. When the flow acknowledgment status is changed updatedAt date and time is updated.
38
+ attr_accessor :updated_at
32
39
 
33
- attr_accessor :processing_rule
40
+ attr_accessor :flow_type
34
41
 
35
42
  # Says whether the processing rule has been computed or the processing rule was an input parameter
36
43
  attr_accessor :processing_rule_source
37
44
 
38
45
  attr_accessor :flow_direction
39
46
 
40
- attr_accessor :flow_syntax
41
-
42
- attr_accessor :flow_profile
43
-
44
47
  attr_accessor :acknowledgement
45
48
 
46
49
  class EnumAttributeValidator
@@ -68,16 +71,17 @@ module FactPulse
68
71
  # Attribute mapping from ruby-style variable name to JSON key.
69
72
  def self.attribute_map
70
73
  {
74
+ :'tracking_id' => :'trackingId',
75
+ :'name' => :'name',
76
+ :'processing_rule' => :'processingRule',
77
+ :'flow_syntax' => :'flowSyntax',
78
+ :'flow_profile' => :'flowProfile',
79
+ :'flow_id' => :'flowId',
71
80
  :'submitted_at' => :'submittedAt',
72
81
  :'updated_at' => :'updatedAt',
73
- :'flow_id' => :'flowId',
74
- :'tracking_id' => :'trackingId',
75
82
  :'flow_type' => :'flowType',
76
- :'processing_rule' => :'processingRule',
77
83
  :'processing_rule_source' => :'processingRuleSource',
78
84
  :'flow_direction' => :'flowDirection',
79
- :'flow_syntax' => :'flowSyntax',
80
- :'flow_profile' => :'flowProfile',
81
85
  :'acknowledgement' => :'acknowledgement'
82
86
  }
83
87
  end
@@ -95,16 +99,17 @@ module FactPulse
95
99
  # Attribute type mapping.
96
100
  def self.openapi_types
97
101
  {
102
+ :'tracking_id' => :'String',
103
+ :'name' => :'String',
104
+ :'processing_rule' => :'AFNORProcessingRule',
105
+ :'flow_syntax' => :'AFNORFlowSyntax',
106
+ :'flow_profile' => :'AFNORFlowProfile',
107
+ :'flow_id' => :'String',
98
108
  :'submitted_at' => :'Time',
99
109
  :'updated_at' => :'Time',
100
- :'flow_id' => :'String',
101
- :'tracking_id' => :'String',
102
110
  :'flow_type' => :'AFNORFlowType',
103
- :'processing_rule' => :'AFNORProcessingRule',
104
111
  :'processing_rule_source' => :'String',
105
112
  :'flow_direction' => :'AFNORFlowDirection',
106
- :'flow_syntax' => :'AFNORFlowSyntax',
107
- :'flow_profile' => :'AFNORFlowProfile',
108
113
  :'acknowledgement' => :'AFNORAcknowledgement'
109
114
  }
110
115
  end
@@ -115,6 +120,15 @@ module FactPulse
115
120
  ])
116
121
  end
117
122
 
123
+ # List of class defined in allOf (OpenAPI v3)
124
+ def self.openapi_all_of
125
+ [
126
+ :'AFNORCoreFlowInfo',
127
+ :'AFNORFlowExtension',
128
+ :'AFNORFullFlowInfoExtension'
129
+ ]
130
+ end
131
+
118
132
  # Initializes the object
119
133
  # @param [Hash] attributes Model attributes in the form of hash
120
134
  def initialize(attributes = {})
@@ -131,48 +145,70 @@ module FactPulse
131
145
  h[k.to_sym] = v
132
146
  }
133
147
 
134
- if attributes.key?(:'submitted_at')
135
- self.submitted_at = attributes[:'submitted_at']
148
+ if attributes.key?(:'tracking_id')
149
+ self.tracking_id = attributes[:'tracking_id']
136
150
  end
137
151
 
138
- if attributes.key?(:'updated_at')
139
- self.updated_at = attributes[:'updated_at']
152
+ if attributes.key?(:'name')
153
+ self.name = attributes[:'name']
154
+ else
155
+ self.name = nil
156
+ end
157
+
158
+ if attributes.key?(:'processing_rule')
159
+ self.processing_rule = attributes[:'processing_rule']
160
+ end
161
+
162
+ if attributes.key?(:'flow_syntax')
163
+ self.flow_syntax = attributes[:'flow_syntax']
164
+ else
165
+ self.flow_syntax = nil
166
+ end
167
+
168
+ if attributes.key?(:'flow_profile')
169
+ self.flow_profile = attributes[:'flow_profile']
140
170
  end
141
171
 
142
172
  if attributes.key?(:'flow_id')
143
173
  self.flow_id = attributes[:'flow_id']
174
+ else
175
+ self.flow_id = nil
144
176
  end
145
177
 
146
- if attributes.key?(:'tracking_id')
147
- self.tracking_id = attributes[:'tracking_id']
178
+ if attributes.key?(:'submitted_at')
179
+ self.submitted_at = attributes[:'submitted_at']
180
+ else
181
+ self.submitted_at = nil
148
182
  end
149
183
 
150
- if attributes.key?(:'flow_type')
151
- self.flow_type = attributes[:'flow_type']
184
+ if attributes.key?(:'updated_at')
185
+ self.updated_at = attributes[:'updated_at']
186
+ else
187
+ self.updated_at = nil
152
188
  end
153
189
 
154
- if attributes.key?(:'processing_rule')
155
- self.processing_rule = attributes[:'processing_rule']
190
+ if attributes.key?(:'flow_type')
191
+ self.flow_type = attributes[:'flow_type']
192
+ else
193
+ self.flow_type = nil
156
194
  end
157
195
 
158
196
  if attributes.key?(:'processing_rule_source')
159
197
  self.processing_rule_source = attributes[:'processing_rule_source']
198
+ else
199
+ self.processing_rule_source = nil
160
200
  end
161
201
 
162
202
  if attributes.key?(:'flow_direction')
163
203
  self.flow_direction = attributes[:'flow_direction']
164
- end
165
-
166
- if attributes.key?(:'flow_syntax')
167
- self.flow_syntax = attributes[:'flow_syntax']
168
- end
169
-
170
- if attributes.key?(:'flow_profile')
171
- self.flow_profile = attributes[:'flow_profile']
204
+ else
205
+ self.flow_direction = nil
172
206
  end
173
207
 
174
208
  if attributes.key?(:'acknowledgement')
175
209
  self.acknowledgement = attributes[:'acknowledgement']
210
+ else
211
+ self.acknowledgement = nil
176
212
  end
177
213
  end
178
214
 
@@ -181,12 +217,52 @@ module FactPulse
181
217
  def list_invalid_properties
182
218
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
183
219
  invalid_properties = Array.new
184
- if !@flow_id.nil? && @flow_id.to_s.length > 36
220
+ if !@tracking_id.nil? && @tracking_id.to_s.length > 36
221
+ invalid_properties.push('invalid value for "tracking_id", the character length must be smaller than or equal to 36.')
222
+ end
223
+
224
+ if @name.nil?
225
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
226
+ end
227
+
228
+ if @name.to_s.length > 255
229
+ invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 255.')
230
+ end
231
+
232
+ if @flow_syntax.nil?
233
+ invalid_properties.push('invalid value for "flow_syntax", flow_syntax cannot be nil.')
234
+ end
235
+
236
+ if @flow_id.nil?
237
+ invalid_properties.push('invalid value for "flow_id", flow_id cannot be nil.')
238
+ end
239
+
240
+ if @flow_id.to_s.length > 36
185
241
  invalid_properties.push('invalid value for "flow_id", the character length must be smaller than or equal to 36.')
186
242
  end
187
243
 
188
- if !@tracking_id.nil? && @tracking_id.to_s.length > 36
189
- invalid_properties.push('invalid value for "tracking_id", the character length must be smaller than or equal to 36.')
244
+ if @submitted_at.nil?
245
+ invalid_properties.push('invalid value for "submitted_at", submitted_at cannot be nil.')
246
+ end
247
+
248
+ if @updated_at.nil?
249
+ invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
250
+ end
251
+
252
+ if @flow_type.nil?
253
+ invalid_properties.push('invalid value for "flow_type", flow_type cannot be nil.')
254
+ end
255
+
256
+ if @processing_rule_source.nil?
257
+ invalid_properties.push('invalid value for "processing_rule_source", processing_rule_source cannot be nil.')
258
+ end
259
+
260
+ if @flow_direction.nil?
261
+ invalid_properties.push('invalid value for "flow_direction", flow_direction cannot be nil.')
262
+ end
263
+
264
+ if @acknowledgement.nil?
265
+ invalid_properties.push('invalid value for "acknowledgement", acknowledgement cannot be nil.')
190
266
  end
191
267
 
192
268
  invalid_properties
@@ -196,13 +272,61 @@ module FactPulse
196
272
  # @return true if the model is valid
197
273
  def valid?
198
274
  warn '[DEPRECATED] the `valid?` method is obsolete'
199
- return false if !@flow_id.nil? && @flow_id.to_s.length > 36
200
275
  return false if !@tracking_id.nil? && @tracking_id.to_s.length > 36
276
+ return false if @name.nil?
277
+ return false if @name.to_s.length > 255
278
+ return false if @flow_syntax.nil?
279
+ return false if @flow_id.nil?
280
+ return false if @flow_id.to_s.length > 36
281
+ return false if @submitted_at.nil?
282
+ return false if @updated_at.nil?
283
+ return false if @flow_type.nil?
284
+ return false if @processing_rule_source.nil?
201
285
  processing_rule_source_validator = EnumAttributeValidator.new('String', ["Input", "Computed"])
202
286
  return false unless processing_rule_source_validator.valid?(@processing_rule_source)
287
+ return false if @flow_direction.nil?
288
+ return false if @acknowledgement.nil?
203
289
  true
204
290
  end
205
291
 
292
+ # Custom attribute writer method with validation
293
+ # @param [Object] tracking_id Value to be assigned
294
+ def tracking_id=(tracking_id)
295
+ if tracking_id.nil?
296
+ fail ArgumentError, 'tracking_id cannot be nil'
297
+ end
298
+
299
+ if tracking_id.to_s.length > 36
300
+ fail ArgumentError, 'invalid value for "tracking_id", the character length must be smaller than or equal to 36.'
301
+ end
302
+
303
+ @tracking_id = tracking_id
304
+ end
305
+
306
+ # Custom attribute writer method with validation
307
+ # @param [Object] name Value to be assigned
308
+ def name=(name)
309
+ if name.nil?
310
+ fail ArgumentError, 'name cannot be nil'
311
+ end
312
+
313
+ if name.to_s.length > 255
314
+ fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 255.'
315
+ end
316
+
317
+ @name = name
318
+ end
319
+
320
+ # Custom attribute writer method with validation
321
+ # @param [Object] flow_syntax Value to be assigned
322
+ def flow_syntax=(flow_syntax)
323
+ if flow_syntax.nil?
324
+ fail ArgumentError, 'flow_syntax cannot be nil'
325
+ end
326
+
327
+ @flow_syntax = flow_syntax
328
+ end
329
+
206
330
  # Custom attribute writer method with validation
207
331
  # @param [Object] flow_id Value to be assigned
208
332
  def flow_id=(flow_id)
@@ -218,17 +342,33 @@ module FactPulse
218
342
  end
219
343
 
220
344
  # Custom attribute writer method with validation
221
- # @param [Object] tracking_id Value to be assigned
222
- def tracking_id=(tracking_id)
223
- if tracking_id.nil?
224
- fail ArgumentError, 'tracking_id cannot be nil'
345
+ # @param [Object] submitted_at Value to be assigned
346
+ def submitted_at=(submitted_at)
347
+ if submitted_at.nil?
348
+ fail ArgumentError, 'submitted_at cannot be nil'
225
349
  end
226
350
 
227
- if tracking_id.to_s.length > 36
228
- fail ArgumentError, 'invalid value for "tracking_id", the character length must be smaller than or equal to 36.'
351
+ @submitted_at = submitted_at
352
+ end
353
+
354
+ # Custom attribute writer method with validation
355
+ # @param [Object] updated_at Value to be assigned
356
+ def updated_at=(updated_at)
357
+ if updated_at.nil?
358
+ fail ArgumentError, 'updated_at cannot be nil'
229
359
  end
230
360
 
231
- @tracking_id = tracking_id
361
+ @updated_at = updated_at
362
+ end
363
+
364
+ # Custom attribute writer method with validation
365
+ # @param [Object] flow_type Value to be assigned
366
+ def flow_type=(flow_type)
367
+ if flow_type.nil?
368
+ fail ArgumentError, 'flow_type cannot be nil'
369
+ end
370
+
371
+ @flow_type = flow_type
232
372
  end
233
373
 
234
374
  # Custom attribute writer method checking allowed values (enum).
@@ -241,21 +381,42 @@ module FactPulse
241
381
  @processing_rule_source = processing_rule_source
242
382
  end
243
383
 
384
+ # Custom attribute writer method with validation
385
+ # @param [Object] flow_direction Value to be assigned
386
+ def flow_direction=(flow_direction)
387
+ if flow_direction.nil?
388
+ fail ArgumentError, 'flow_direction cannot be nil'
389
+ end
390
+
391
+ @flow_direction = flow_direction
392
+ end
393
+
394
+ # Custom attribute writer method with validation
395
+ # @param [Object] acknowledgement Value to be assigned
396
+ def acknowledgement=(acknowledgement)
397
+ if acknowledgement.nil?
398
+ fail ArgumentError, 'acknowledgement cannot be nil'
399
+ end
400
+
401
+ @acknowledgement = acknowledgement
402
+ end
403
+
244
404
  # Checks equality by comparing each attribute.
245
405
  # @param [Object] Object to be compared
246
406
  def ==(o)
247
407
  return true if self.equal?(o)
248
408
  self.class == o.class &&
409
+ tracking_id == o.tracking_id &&
410
+ name == o.name &&
411
+ processing_rule == o.processing_rule &&
412
+ flow_syntax == o.flow_syntax &&
413
+ flow_profile == o.flow_profile &&
414
+ flow_id == o.flow_id &&
249
415
  submitted_at == o.submitted_at &&
250
416
  updated_at == o.updated_at &&
251
- flow_id == o.flow_id &&
252
- tracking_id == o.tracking_id &&
253
417
  flow_type == o.flow_type &&
254
- processing_rule == o.processing_rule &&
255
418
  processing_rule_source == o.processing_rule_source &&
256
419
  flow_direction == o.flow_direction &&
257
- flow_syntax == o.flow_syntax &&
258
- flow_profile == o.flow_profile &&
259
420
  acknowledgement == o.acknowledgement
260
421
  end
261
422
 
@@ -268,7 +429,7 @@ module FactPulse
268
429
  # Calculates hash code according to all attributes.
269
430
  # @return [Integer] Hash code
270
431
  def hash
271
- [submitted_at, updated_at, flow_id, tracking_id, flow_type, processing_rule, processing_rule_source, flow_direction, flow_syntax, flow_profile, acknowledgement].hash
432
+ [tracking_id, name, processing_rule, flow_syntax, flow_profile, flow_id, submitted_at, updated_at, flow_type, processing_rule_source, flow_direction, acknowledgement].hash
272
433
  end
273
434
 
274
435
  # Builds the object from hash
@@ -14,16 +14,19 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module FactPulse
17
- class AFNORUpdatePatchRoutingCodeBody < ApiModelBase
18
- # Routing Identifier type.
19
- attr_accessor :routing_identifier_type
17
+ # Extension schema to build Flow schema
18
+ class AFNORFlowExtension < ApiModelBase
19
+ # The last update date and time of the flow. When the flow is submitted updatedAt is equal to submittedAt. When the flow acknowledgment status is changed updatedAt date and time is updated.
20
+ attr_accessor :updated_at
20
21
 
21
- # Name of the directory line routing code. This attribute is only returned if the directory line is defined at the SIREN / SIRET / Routing code mesh.
22
- attr_accessor :routing_code_name
22
+ attr_accessor :flow_type
23
23
 
24
- attr_accessor :administrative_status
24
+ # Says whether the processing rule has been computed or the processing rule was an input parameter
25
+ attr_accessor :processing_rule_source
25
26
 
26
- attr_accessor :address
27
+ attr_accessor :flow_direction
28
+
29
+ attr_accessor :acknowledgement
27
30
 
28
31
  class EnumAttributeValidator
29
32
  attr_reader :datatype
@@ -50,10 +53,11 @@ module FactPulse
50
53
  # Attribute mapping from ruby-style variable name to JSON key.
51
54
  def self.attribute_map
52
55
  {
53
- :'routing_identifier_type' => :'routingIdentifierType',
54
- :'routing_code_name' => :'routingCodeName',
55
- :'administrative_status' => :'administrativeStatus',
56
- :'address' => :'address'
56
+ :'updated_at' => :'updatedAt',
57
+ :'flow_type' => :'flowType',
58
+ :'processing_rule_source' => :'processingRuleSource',
59
+ :'flow_direction' => :'flowDirection',
60
+ :'acknowledgement' => :'acknowledgement'
57
61
  }
58
62
  end
59
63
 
@@ -70,10 +74,11 @@ module FactPulse
70
74
  # Attribute type mapping.
71
75
  def self.openapi_types
72
76
  {
73
- :'routing_identifier_type' => :'String',
74
- :'routing_code_name' => :'String',
75
- :'administrative_status' => :'AFNORRoutingCodeAdministrativeStatus',
76
- :'address' => :'AFNORAddressPatch'
77
+ :'updated_at' => :'Time',
78
+ :'flow_type' => :'AFNORFlowType',
79
+ :'processing_rule_source' => :'String',
80
+ :'flow_direction' => :'AFNORFlowDirection',
81
+ :'acknowledgement' => :'AFNORAcknowledgement'
77
82
  }
78
83
  end
79
84
 
@@ -87,32 +92,46 @@ module FactPulse
87
92
  # @param [Hash] attributes Model attributes in the form of hash
88
93
  def initialize(attributes = {})
89
94
  if (!attributes.is_a?(Hash))
90
- fail ArgumentError, "The input argument (attributes) must be a hash in `FactPulse::AFNORUpdatePatchRoutingCodeBody` initialize method"
95
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FactPulse::AFNORFlowExtension` initialize method"
91
96
  end
92
97
 
93
98
  # check to see if the attribute exists and convert string to symbol for hash key
94
99
  acceptable_attribute_map = self.class.acceptable_attribute_map
95
100
  attributes = attributes.each_with_object({}) { |(k, v), h|
96
101
  if (!acceptable_attribute_map.key?(k.to_sym))
97
- fail ArgumentError, "`#{k}` is not a valid attribute in `FactPulse::AFNORUpdatePatchRoutingCodeBody`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
102
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FactPulse::AFNORFlowExtension`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
98
103
  end
99
104
  h[k.to_sym] = v
100
105
  }
101
106
 
102
- if attributes.key?(:'routing_identifier_type')
103
- self.routing_identifier_type = attributes[:'routing_identifier_type']
107
+ if attributes.key?(:'updated_at')
108
+ self.updated_at = attributes[:'updated_at']
109
+ else
110
+ self.updated_at = nil
111
+ end
112
+
113
+ if attributes.key?(:'flow_type')
114
+ self.flow_type = attributes[:'flow_type']
115
+ else
116
+ self.flow_type = nil
104
117
  end
105
118
 
106
- if attributes.key?(:'routing_code_name')
107
- self.routing_code_name = attributes[:'routing_code_name']
119
+ if attributes.key?(:'processing_rule_source')
120
+ self.processing_rule_source = attributes[:'processing_rule_source']
121
+ else
122
+ self.processing_rule_source = nil
108
123
  end
109
124
 
110
- if attributes.key?(:'administrative_status')
111
- self.administrative_status = attributes[:'administrative_status']
125
+ if attributes.key?(:'flow_direction')
126
+ self.flow_direction = attributes[:'flow_direction']
127
+ else
128
+ self.flow_direction = nil
112
129
  end
113
130
 
114
- if attributes.key?(:'address')
115
- self.address = attributes[:'address']
131
+ if attributes.key?(:'acknowledgement')
132
+ self.acknowledgement = attributes[:'acknowledgement']
133
+ else
134
+ self.acknowledgement = nil
116
135
  end
117
136
  end
118
137
 
@@ -121,22 +140,24 @@ module FactPulse
121
140
  def list_invalid_properties
122
141
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
123
142
  invalid_properties = Array.new
124
- if !@routing_identifier_type.nil? && @routing_identifier_type.to_s.length > 4
125
- invalid_properties.push('invalid value for "routing_identifier_type", the character length must be smaller than or equal to 4.')
143
+ if @updated_at.nil?
144
+ invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
126
145
  end
127
146
 
128
- pattern = Regexp.new(/^(?!\s*$).+/)
129
- if !@routing_identifier_type.nil? && @routing_identifier_type !~ pattern
130
- invalid_properties.push("invalid value for \"routing_identifier_type\", must conform to the pattern #{pattern}.")
147
+ if @flow_type.nil?
148
+ invalid_properties.push('invalid value for "flow_type", flow_type cannot be nil.')
131
149
  end
132
150
 
133
- if !@routing_code_name.nil? && @routing_code_name.to_s.length > 100
134
- invalid_properties.push('invalid value for "routing_code_name", the character length must be smaller than or equal to 100.')
151
+ if @processing_rule_source.nil?
152
+ invalid_properties.push('invalid value for "processing_rule_source", processing_rule_source cannot be nil.')
135
153
  end
136
154
 
137
- pattern = Regexp.new(/^(?!\s*$).+/)
138
- if !@routing_code_name.nil? && @routing_code_name !~ pattern
139
- invalid_properties.push("invalid value for \"routing_code_name\", must conform to the pattern #{pattern}.")
155
+ if @flow_direction.nil?
156
+ invalid_properties.push('invalid value for "flow_direction", flow_direction cannot be nil.')
157
+ end
158
+
159
+ if @acknowledgement.nil?
160
+ invalid_properties.push('invalid value for "acknowledgement", acknowledgement cannot be nil.')
140
161
  end
141
162
 
142
163
  invalid_properties
@@ -146,49 +167,64 @@ module FactPulse
146
167
  # @return true if the model is valid
147
168
  def valid?
148
169
  warn '[DEPRECATED] the `valid?` method is obsolete'
149
- return false if !@routing_identifier_type.nil? && @routing_identifier_type.to_s.length > 4
150
- return false if !@routing_identifier_type.nil? && @routing_identifier_type !~ Regexp.new(/^(?!\s*$).+/)
151
- return false if !@routing_code_name.nil? && @routing_code_name.to_s.length > 100
152
- return false if !@routing_code_name.nil? && @routing_code_name !~ Regexp.new(/^(?!\s*$).+/)
170
+ return false if @updated_at.nil?
171
+ return false if @flow_type.nil?
172
+ return false if @processing_rule_source.nil?
173
+ processing_rule_source_validator = EnumAttributeValidator.new('String', ["Input", "Computed"])
174
+ return false unless processing_rule_source_validator.valid?(@processing_rule_source)
175
+ return false if @flow_direction.nil?
176
+ return false if @acknowledgement.nil?
153
177
  true
154
178
  end
155
179
 
156
180
  # Custom attribute writer method with validation
157
- # @param [Object] routing_identifier_type Value to be assigned
158
- def routing_identifier_type=(routing_identifier_type)
159
- if routing_identifier_type.nil?
160
- fail ArgumentError, 'routing_identifier_type cannot be nil'
181
+ # @param [Object] updated_at Value to be assigned
182
+ def updated_at=(updated_at)
183
+ if updated_at.nil?
184
+ fail ArgumentError, 'updated_at cannot be nil'
161
185
  end
162
186
 
163
- if routing_identifier_type.to_s.length > 4
164
- fail ArgumentError, 'invalid value for "routing_identifier_type", the character length must be smaller than or equal to 4.'
165
- end
187
+ @updated_at = updated_at
188
+ end
166
189
 
167
- pattern = Regexp.new(/^(?!\s*$).+/)
168
- if routing_identifier_type !~ pattern
169
- fail ArgumentError, "invalid value for \"routing_identifier_type\", must conform to the pattern #{pattern}."
190
+ # Custom attribute writer method with validation
191
+ # @param [Object] flow_type Value to be assigned
192
+ def flow_type=(flow_type)
193
+ if flow_type.nil?
194
+ fail ArgumentError, 'flow_type cannot be nil'
170
195
  end
171
196
 
172
- @routing_identifier_type = routing_identifier_type
197
+ @flow_type = flow_type
173
198
  end
174
199
 
175
- # Custom attribute writer method with validation
176
- # @param [Object] routing_code_name Value to be assigned
177
- def routing_code_name=(routing_code_name)
178
- if routing_code_name.nil?
179
- fail ArgumentError, 'routing_code_name cannot be nil'
200
+ # Custom attribute writer method checking allowed values (enum).
201
+ # @param [Object] processing_rule_source Object to be assigned
202
+ def processing_rule_source=(processing_rule_source)
203
+ validator = EnumAttributeValidator.new('String', ["Input", "Computed"])
204
+ unless validator.valid?(processing_rule_source)
205
+ fail ArgumentError, "invalid value for \"processing_rule_source\", must be one of #{validator.allowable_values}."
180
206
  end
207
+ @processing_rule_source = processing_rule_source
208
+ end
181
209
 
182
- if routing_code_name.to_s.length > 100
183
- fail ArgumentError, 'invalid value for "routing_code_name", the character length must be smaller than or equal to 100.'
210
+ # Custom attribute writer method with validation
211
+ # @param [Object] flow_direction Value to be assigned
212
+ def flow_direction=(flow_direction)
213
+ if flow_direction.nil?
214
+ fail ArgumentError, 'flow_direction cannot be nil'
184
215
  end
185
216
 
186
- pattern = Regexp.new(/^(?!\s*$).+/)
187
- if routing_code_name !~ pattern
188
- fail ArgumentError, "invalid value for \"routing_code_name\", must conform to the pattern #{pattern}."
217
+ @flow_direction = flow_direction
218
+ end
219
+
220
+ # Custom attribute writer method with validation
221
+ # @param [Object] acknowledgement Value to be assigned
222
+ def acknowledgement=(acknowledgement)
223
+ if acknowledgement.nil?
224
+ fail ArgumentError, 'acknowledgement cannot be nil'
189
225
  end
190
226
 
191
- @routing_code_name = routing_code_name
227
+ @acknowledgement = acknowledgement
192
228
  end
193
229
 
194
230
  # Checks equality by comparing each attribute.
@@ -196,10 +232,11 @@ module FactPulse
196
232
  def ==(o)
197
233
  return true if self.equal?(o)
198
234
  self.class == o.class &&
199
- routing_identifier_type == o.routing_identifier_type &&
200
- routing_code_name == o.routing_code_name &&
201
- administrative_status == o.administrative_status &&
202
- address == o.address
235
+ updated_at == o.updated_at &&
236
+ flow_type == o.flow_type &&
237
+ processing_rule_source == o.processing_rule_source &&
238
+ flow_direction == o.flow_direction &&
239
+ acknowledgement == o.acknowledgement
203
240
  end
204
241
 
205
242
  # @see the `==` method
@@ -211,7 +248,7 @@ module FactPulse
211
248
  # Calculates hash code according to all attributes.
212
249
  # @return [Integer] Hash code
213
250
  def hash
214
- [routing_identifier_type, routing_code_name, administrative_status, address].hash
251
+ [updated_at, flow_type, processing_rule_source, flow_direction, acknowledgement].hash
215
252
  end
216
253
 
217
254
  # Builds the object from hash