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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -5
- data/Gemfile.lock +2 -2
- data/docs/AFNORBasicAuthentication.md +20 -0
- data/docs/AFNORCallbackAuthentication.md +49 -0
- data/docs/AFNORCallbackHeader.md +20 -0
- data/docs/AFNORCallbackParameters.md +24 -0
- data/docs/AFNORCallbackSignature.md +20 -0
- data/docs/{AFNORFacilityNature.md → AFNORContainsOrStrictOperator.md} +2 -2
- data/docs/AFNORCoreFlowInfo.md +26 -0
- data/docs/{AFNORDirectoryLinePayloadHistoryLegalUnitFacilityRoutingCode.md → AFNORDirectoryLinePayloadLegalUnitFacilityRoutingCode.md} +5 -5
- data/docs/AFNORDirectoryLinePayloadStatusLegalUnitFacilityRoutingCode.md +34 -0
- data/docs/AFNORDirectoryLineSearchPost200Response.md +1 -1
- data/docs/{AFNORDiffusionStatus.md → AFNORDirectoryLineStatus.md} +2 -2
- data/docs/AFNORError.md +4 -4
- data/docs/AFNORFacilityPayloadHistory.md +3 -3
- data/docs/AFNORFacilityPayloadIncluded.md +0 -2
- data/docs/AFNORFlow.md +16 -14
- data/docs/AFNORFlowExtension.md +26 -0
- data/docs/AFNORFlowInfo.md +3 -3
- data/docs/AFNORFlowInfoExtension.md +18 -0
- data/docs/AFNORFullFlowInfo.md +8 -8
- data/docs/AFNORFullFlowInfoExtension.md +20 -0
- data/docs/AFNORLegalUnitPayloadHistory.md +3 -1
- data/docs/AFNOROAuth2Authentication.md +22 -0
- data/docs/AFNORPDPPADirectoryServiceApi.md +4 -648
- data/docs/AFNORPDPPAFlowServiceApi.md +320 -1
- data/docs/AFNORRoutingCodeSearch.md +1 -1
- data/docs/AFNORRoutingCodeSearchFiltersRoutingCodeName.md +1 -1
- data/docs/AFNORRoutingCodeSearchFiltersRoutingIdentifier.md +1 -1
- data/docs/AFNORSearchDirectoryLine.md +2 -2
- data/docs/AFNORSearchDirectoryLineFiltersAddressingIdentifier.md +1 -1
- data/docs/AFNORSearchDirectoryLineFiltersAddressingSuffix.md +1 -1
- data/docs/AFNORSearchFlowFilters.md +1 -1
- data/docs/AFNORSearchSiren.md +1 -1
- data/docs/AFNORSearchSirenFiltersBusinessName.md +1 -1
- data/docs/AFNORSearchSirenFiltersSiren.md +1 -1
- data/docs/AFNORSearchSiret.md +2 -2
- data/docs/AFNORSearchSiretFiltersCountrySubdivision.md +1 -1
- data/docs/AFNORSearchSiretFiltersFacilityType.md +1 -1
- data/docs/AFNORSearchSiretFiltersLocality.md +1 -1
- data/docs/AFNORSearchSiretFiltersName.md +1 -1
- data/docs/AFNORSearchSiretFiltersPostalCode.md +1 -1
- data/docs/AFNORSearchSiretFiltersSiret.md +1 -1
- data/docs/AFNORSirenInstructions.md +18 -0
- data/docs/AFNORSiretInstructions.md +18 -0
- data/docs/{AFNORPlatformStatus.md → AFNORStrictOrStartWithOperator.md} +2 -2
- data/docs/AFNORWebhook.md +22 -0
- data/docs/AFNORWebhookIdParam.md +18 -0
- data/docs/AFNORWebhookMetadata.md +24 -0
- data/docs/AFNORWebhookParams.md +20 -0
- data/docs/AFNORWebhookPatchPayload.md +22 -0
- data/docs/ChorusProCredentials.md +8 -8
- data/docs/ChorusProDestination.md +1 -1
- data/docs/FactureElectroniqueRestApiSchemasCdarValidationErrorResponse.md +24 -0
- data/docs/FactureElectroniqueRestApiSchemasEreportingInvoiceTypeCode.md +15 -0
- data/docs/FactureElectroniqueRestApiSchemasProcessingChorusProCredentials.md +26 -0
- data/docs/GetChorusProIdRequest.md +1 -1
- data/docs/GetInvoiceRequest.md +1 -1
- data/docs/GetStructureRequest.md +1 -1
- data/docs/InvoiceInput.md +1 -1
- data/docs/SearchStructureRequest.md +1 -1
- data/docs/SimplifiedInvoiceData.md +1 -1
- data/docs/SubmitInvoiceRequest.md +1 -1
- data/docs/ValidateCDARResponse.md +2 -2
- data/docs/ValidationErrorResponse.md +2 -8
- data/lib/factpulse/api/afnorpdppa_directory_service_api.rb +3 -621
- data/lib/factpulse/api/afnorpdppa_flow_service_api.rb +303 -0
- data/lib/factpulse/models/afnor_algorithm.rb +4 -3
- data/lib/factpulse/models/afnor_basic_authentication.rb +190 -0
- data/lib/factpulse/models/afnor_callback_authentication.rb +105 -0
- data/lib/factpulse/models/afnor_callback_header.rb +190 -0
- data/lib/factpulse/models/afnor_callback_parameters.rb +193 -0
- data/lib/factpulse/models/{afnor_directory_line_payload_history_legal_unit_facility_routing_code_platform.rb → afnor_callback_signature.rb} +51 -16
- data/lib/factpulse/models/{afnor_diffusion_status.rb → afnor_contains_or_strict_operator.rb} +6 -6
- data/lib/factpulse/models/{afnor_routing_code_post201_response.rb → afnor_core_flow_info.rb} +103 -61
- data/lib/factpulse/models/afnor_directory_line_field.rb +1 -2
- 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
- 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
- data/lib/factpulse/models/afnor_directory_line_search_post200_response.rb +1 -1
- data/lib/factpulse/models/{afnor_platform_status.rb → afnor_directory_line_status.rb} +5 -4
- data/lib/factpulse/models/afnor_error.rb +30 -39
- data/lib/factpulse/models/afnor_facility_payload_history.rb +11 -11
- data/lib/factpulse/models/afnor_facility_payload_included.rb +1 -10
- data/lib/factpulse/models/afnor_flow.rb +218 -57
- data/lib/factpulse/models/{afnor_update_patch_routing_code_body.rb → afnor_flow_extension.rb} +103 -66
- data/lib/factpulse/models/afnor_flow_info.rb +20 -4
- data/lib/factpulse/models/{afnor_create_directory_line_body_period.rb → afnor_flow_info_extension.rb} +26 -31
- data/lib/factpulse/models/afnor_full_flow_info.rb +79 -46
- data/lib/factpulse/models/afnor_full_flow_info_extension.rb +202 -0
- data/lib/factpulse/models/afnor_legal_unit_payload_history.rb +13 -4
- data/lib/factpulse/models/afnor_processing_rule.rb +4 -1
- data/lib/factpulse/models/afnor_routing_code_field.rb +1 -2
- data/lib/factpulse/models/afnor_routing_code_search_filters_routing_code_name.rb +1 -1
- data/lib/factpulse/models/afnor_routing_code_search_filters_routing_identifier.rb +1 -1
- data/lib/factpulse/models/afnor_search_directory_line_filters_addressing_identifier.rb +1 -1
- data/lib/factpulse/models/afnor_search_directory_line_filters_addressing_suffix.rb +1 -1
- data/lib/factpulse/models/afnor_search_flow_filters.rb +1 -0
- data/lib/factpulse/models/afnor_search_siren_filters_business_name.rb +1 -1
- data/lib/factpulse/models/afnor_search_siren_filters_siren.rb +1 -1
- data/lib/factpulse/models/afnor_search_siret_filters_country_subdivision.rb +1 -1
- data/lib/factpulse/models/afnor_search_siret_filters_facility_type.rb +1 -1
- data/lib/factpulse/models/afnor_search_siret_filters_locality.rb +1 -1
- data/lib/factpulse/models/afnor_search_siret_filters_name.rb +1 -1
- data/lib/factpulse/models/afnor_search_siret_filters_postal_code.rb +1 -1
- data/lib/factpulse/models/afnor_search_siret_filters_siret.rb +1 -1
- data/lib/factpulse/models/afnor_siren_field.rb +2 -2
- data/lib/factpulse/models/{afnor_update_patch_directory_line_body.rb → afnor_siren_instructions.rb} +12 -11
- data/lib/factpulse/models/afnor_siret_field.rb +3 -4
- data/lib/factpulse/models/{afnor_create_directory_line_body.rb → afnor_siret_instructions.rb} +12 -19
- data/lib/factpulse/models/{afnor_facility_nature.rb → afnor_strict_or_start_with_operator.rb} +6 -6
- data/lib/factpulse/models/{afnor_directory_line_post201_response.rb → afnor_webhook.rb} +55 -35
- data/lib/factpulse/models/{afnor_webhook_callback_content.rb → afnor_webhook_id_param.rb} +10 -11
- data/lib/factpulse/models/{afnor_legal_unit_payload_included_no_siren.rb → afnor_webhook_metadata.rb} +56 -33
- data/lib/factpulse/models/afnor_webhook_params.rb +190 -0
- data/lib/factpulse/models/{facture_electronique_rest_api_schemas_validation_validation_error_response.rb → afnor_webhook_patch_payload.rb} +29 -30
- data/lib/factpulse/models/afnoro_auth2_authentication.rb +216 -0
- data/lib/factpulse/models/chorus_pro_credentials.rb +94 -26
- data/lib/factpulse/models/chorus_pro_destination.rb +1 -1
- data/lib/factpulse/models/facture_electronique_rest_api_schemas_cdar_validation_error_response.rb +215 -0
- data/lib/factpulse/models/{facture_electronique_models_invoice_type_code.rb → facture_electronique_rest_api_schemas_ereporting_invoice_type_code.rb} +9 -20
- data/lib/factpulse/models/facture_electronique_rest_api_schemas_processing_chorus_pro_credentials.rb +191 -0
- data/lib/factpulse/models/get_chorus_pro_id_request.rb +1 -1
- data/lib/factpulse/models/get_invoice_request.rb +1 -1
- data/lib/factpulse/models/get_structure_request.rb +1 -1
- data/lib/factpulse/models/invoice_input.rb +1 -1
- data/lib/factpulse/models/invoice_type_code.rb +17 -6
- data/lib/factpulse/models/processing_rule.rb +4 -1
- data/lib/factpulse/models/search_structure_request.rb +1 -1
- data/lib/factpulse/models/simplified_invoice_data.rb +1 -1
- data/lib/factpulse/models/submit_invoice_request.rb +1 -1
- data/lib/factpulse/models/validate_cdar_response.rb +2 -2
- data/lib/factpulse/models/validation_error_response.rb +20 -67
- data/lib/factpulse/version.rb +1 -1
- data/lib/factpulse.rb +25 -22
- metadata +52 -46
- data/docs/AFNORAddressEdit.md +0 -30
- data/docs/AFNORAddressPatch.md +0 -30
- data/docs/AFNORAddressPut.md +0 -30
- data/docs/AFNORCreateDirectoryLineBody.md +0 -20
- data/docs/AFNORCreateDirectoryLineBodyAddressingInformation.md +0 -24
- data/docs/AFNORCreateDirectoryLineBodyPeriod.md +0 -20
- data/docs/AFNORCreateRoutingCodeBody.md +0 -32
- data/docs/AFNORDirectoryLinePayloadHistoryLegalUnitFacilityRoutingCodePlatform.md +0 -20
- data/docs/AFNORDirectoryLinePost201Response.md +0 -22
- data/docs/AFNORLegalUnitPayloadIncludedNoSiren.md +0 -22
- data/docs/AFNORRoutingCodePost201Response.md +0 -22
- data/docs/AFNORUpdatePatchDirectoryLineBody.md +0 -18
- data/docs/AFNORUpdatePatchRoutingCodeBody.md +0 -24
- data/docs/AFNORUpdatePutRoutingCodeBody.md +0 -24
- data/docs/AFNORWebhookCallbackContent.md +0 -18
- data/docs/FactureElectroniqueModelsInvoiceTypeCode.md +0 -15
- data/docs/FactureElectroniqueRestApiSchemasChorusProChorusProCredentials.md +0 -26
- data/docs/FactureElectroniqueRestApiSchemasValidationValidationErrorResponse.md +0 -18
- data/lib/factpulse/models/afnor_address_edit.rb +0 -353
- data/lib/factpulse/models/afnor_address_patch.rb +0 -386
- data/lib/factpulse/models/afnor_address_put.rb +0 -435
- data/lib/factpulse/models/afnor_create_routing_code_body.rb +0 -412
- data/lib/factpulse/models/afnor_update_put_routing_code_body.rb +0 -289
- data/lib/factpulse/models/facture_electronique_rest_api_schemas_chorus_pro_chorus_pro_credentials.rb +0 -259
|
@@ -46,7 +46,7 @@ module FactPulse
|
|
|
46
46
|
{
|
|
47
47
|
:'search' => :'AFNORSearchDirectoryLine',
|
|
48
48
|
:'total_number_of_results' => :'Integer',
|
|
49
|
-
:'results' => :'Array<
|
|
49
|
+
:'results' => :'Array<AFNORDirectoryLinePayloadStatusLegalUnitFacilityRoutingCode>'
|
|
50
50
|
}
|
|
51
51
|
end
|
|
52
52
|
|
|
@@ -14,12 +14,13 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module FactPulse
|
|
17
|
-
class
|
|
17
|
+
class AFNORDirectoryLineStatus
|
|
18
18
|
ENABLED = "Enabled".freeze
|
|
19
19
|
DISABLED = "Disabled".freeze
|
|
20
|
+
UPCOMING = "Upcoming".freeze
|
|
20
21
|
|
|
21
22
|
def self.all_vars
|
|
22
|
-
@all_vars ||= [ENABLED, DISABLED].freeze
|
|
23
|
+
@all_vars ||= [ENABLED, DISABLED, UPCOMING].freeze
|
|
23
24
|
end
|
|
24
25
|
|
|
25
26
|
# Builds the enum from string
|
|
@@ -33,8 +34,8 @@ module FactPulse
|
|
|
33
34
|
# @param [String] The enum value in the form of the string
|
|
34
35
|
# @return [String] The enum value
|
|
35
36
|
def build_from_hash(value)
|
|
36
|
-
return value if
|
|
37
|
-
raise "Invalid ENUM value #{value} for class #
|
|
37
|
+
return value if AFNORDirectoryLineStatus.all_vars.include?(value)
|
|
38
|
+
raise "Invalid ENUM value #{value} for class #AFNORDirectoryLineStatus"
|
|
38
39
|
end
|
|
39
40
|
end
|
|
40
41
|
end
|
|
@@ -14,13 +14,15 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module FactPulse
|
|
17
|
+
# Error code
|
|
17
18
|
class AFNORError < ApiModelBase
|
|
18
|
-
|
|
19
|
+
# Short numerical or alphanumerical code that identifies precisely a unique error.
|
|
20
|
+
attr_accessor :error_code
|
|
19
21
|
|
|
20
|
-
|
|
22
|
+
# Contains information on the error. Not intended to be displayed to an end user. For security reasons, a tradeoff between clarity & security shall be found.
|
|
23
|
+
attr_accessor :error_message
|
|
21
24
|
|
|
22
|
-
|
|
23
|
-
attr_accessor :status
|
|
25
|
+
attr_accessor :type
|
|
24
26
|
|
|
25
27
|
attr_accessor :details
|
|
26
28
|
|
|
@@ -29,9 +31,9 @@ module FactPulse
|
|
|
29
31
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
30
32
|
def self.attribute_map
|
|
31
33
|
{
|
|
34
|
+
:'error_code' => :'errorCode',
|
|
35
|
+
:'error_message' => :'errorMessage',
|
|
32
36
|
:'type' => :'type',
|
|
33
|
-
:'message' => :'message',
|
|
34
|
-
:'status' => :'status',
|
|
35
37
|
:'details' => :'details',
|
|
36
38
|
:'instance' => :'instance'
|
|
37
39
|
}
|
|
@@ -50,9 +52,9 @@ module FactPulse
|
|
|
50
52
|
# Attribute type mapping.
|
|
51
53
|
def self.openapi_types
|
|
52
54
|
{
|
|
55
|
+
:'error_code' => :'String',
|
|
56
|
+
:'error_message' => :'String',
|
|
53
57
|
:'type' => :'String',
|
|
54
|
-
:'message' => :'String',
|
|
55
|
-
:'status' => :'Integer',
|
|
56
58
|
:'details' => :'String',
|
|
57
59
|
:'instance' => :'String'
|
|
58
60
|
}
|
|
@@ -80,18 +82,20 @@ module FactPulse
|
|
|
80
82
|
h[k.to_sym] = v
|
|
81
83
|
}
|
|
82
84
|
|
|
83
|
-
if attributes.key?(:'
|
|
84
|
-
self.
|
|
85
|
+
if attributes.key?(:'error_code')
|
|
86
|
+
self.error_code = attributes[:'error_code']
|
|
85
87
|
else
|
|
86
|
-
self.
|
|
88
|
+
self.error_code = nil
|
|
87
89
|
end
|
|
88
90
|
|
|
89
|
-
if attributes.key?(:'
|
|
90
|
-
self.
|
|
91
|
+
if attributes.key?(:'error_message')
|
|
92
|
+
self.error_message = attributes[:'error_message']
|
|
91
93
|
end
|
|
92
94
|
|
|
93
|
-
if attributes.key?(:'
|
|
94
|
-
self.
|
|
95
|
+
if attributes.key?(:'type')
|
|
96
|
+
self.type = attributes[:'type']
|
|
97
|
+
else
|
|
98
|
+
self.type = 'about:blank'
|
|
95
99
|
end
|
|
96
100
|
|
|
97
101
|
if attributes.key?(:'details')
|
|
@@ -108,12 +112,8 @@ module FactPulse
|
|
|
108
112
|
def list_invalid_properties
|
|
109
113
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
110
114
|
invalid_properties = Array.new
|
|
111
|
-
if
|
|
112
|
-
invalid_properties.push('invalid value for "
|
|
113
|
-
end
|
|
114
|
-
|
|
115
|
-
if !@status.nil? && @status < 100
|
|
116
|
-
invalid_properties.push('invalid value for "status", must be greater than or equal to 100.')
|
|
115
|
+
if @error_code.nil?
|
|
116
|
+
invalid_properties.push('invalid value for "error_code", error_code cannot be nil.')
|
|
117
117
|
end
|
|
118
118
|
|
|
119
119
|
invalid_properties
|
|
@@ -123,27 +123,18 @@ module FactPulse
|
|
|
123
123
|
# @return true if the model is valid
|
|
124
124
|
def valid?
|
|
125
125
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
126
|
-
return false if
|
|
127
|
-
return false if !@status.nil? && @status < 100
|
|
126
|
+
return false if @error_code.nil?
|
|
128
127
|
true
|
|
129
128
|
end
|
|
130
129
|
|
|
131
130
|
# Custom attribute writer method with validation
|
|
132
|
-
# @param [Object]
|
|
133
|
-
def
|
|
134
|
-
if
|
|
135
|
-
fail ArgumentError, '
|
|
136
|
-
end
|
|
137
|
-
|
|
138
|
-
if status > 600
|
|
139
|
-
fail ArgumentError, 'invalid value for "status", must be smaller than or equal to 600.'
|
|
140
|
-
end
|
|
141
|
-
|
|
142
|
-
if status < 100
|
|
143
|
-
fail ArgumentError, 'invalid value for "status", must be greater than or equal to 100.'
|
|
131
|
+
# @param [Object] error_code Value to be assigned
|
|
132
|
+
def error_code=(error_code)
|
|
133
|
+
if error_code.nil?
|
|
134
|
+
fail ArgumentError, 'error_code cannot be nil'
|
|
144
135
|
end
|
|
145
136
|
|
|
146
|
-
@
|
|
137
|
+
@error_code = error_code
|
|
147
138
|
end
|
|
148
139
|
|
|
149
140
|
# Checks equality by comparing each attribute.
|
|
@@ -151,9 +142,9 @@ module FactPulse
|
|
|
151
142
|
def ==(o)
|
|
152
143
|
return true if self.equal?(o)
|
|
153
144
|
self.class == o.class &&
|
|
145
|
+
error_code == o.error_code &&
|
|
146
|
+
error_message == o.error_message &&
|
|
154
147
|
type == o.type &&
|
|
155
|
-
message == o.message &&
|
|
156
|
-
status == o.status &&
|
|
157
148
|
details == o.details &&
|
|
158
149
|
instance == o.instance
|
|
159
150
|
end
|
|
@@ -167,7 +158,7 @@ module FactPulse
|
|
|
167
158
|
# Calculates hash code according to all attributes.
|
|
168
159
|
# @return [Integer] Hash code
|
|
169
160
|
def hash
|
|
170
|
-
[
|
|
161
|
+
[error_code, error_message, type, details, instance].hash
|
|
171
162
|
end
|
|
172
163
|
|
|
173
164
|
# Builds the object from hash
|
|
@@ -26,10 +26,10 @@ module FactPulse
|
|
|
26
26
|
|
|
27
27
|
attr_accessor :facility_type
|
|
28
28
|
|
|
29
|
-
attr_accessor :diffusible
|
|
30
|
-
|
|
31
29
|
attr_accessor :administrative_status
|
|
32
30
|
|
|
31
|
+
attr_accessor :siret_instructions
|
|
32
|
+
|
|
33
33
|
attr_accessor :address
|
|
34
34
|
|
|
35
35
|
attr_accessor :b2g_additional_data
|
|
@@ -65,8 +65,8 @@ module FactPulse
|
|
|
65
65
|
:'siren' => :'siren',
|
|
66
66
|
:'name' => :'name',
|
|
67
67
|
:'facility_type' => :'facilityType',
|
|
68
|
-
:'diffusible' => :'diffusible',
|
|
69
68
|
:'administrative_status' => :'administrativeStatus',
|
|
69
|
+
:'siret_instructions' => :'siretInstructions',
|
|
70
70
|
:'address' => :'address',
|
|
71
71
|
:'b2g_additional_data' => :'b2gAdditionalData',
|
|
72
72
|
:'legal_unit' => :'legalUnit'
|
|
@@ -90,11 +90,11 @@ module FactPulse
|
|
|
90
90
|
:'siren' => :'String',
|
|
91
91
|
:'name' => :'String',
|
|
92
92
|
:'facility_type' => :'AFNORFacilityType',
|
|
93
|
-
:'diffusible' => :'AFNORDiffusionStatus',
|
|
94
93
|
:'administrative_status' => :'AFNORFacilityAdministrativeStatus',
|
|
94
|
+
:'siret_instructions' => :'AFNORSiretInstructions',
|
|
95
95
|
:'address' => :'AFNORAddressRead',
|
|
96
96
|
:'b2g_additional_data' => :'AFNORFacilityPayloadHistoryUleB2gAdditionalData',
|
|
97
|
-
:'legal_unit' => :'
|
|
97
|
+
:'legal_unit' => :'AFNORLegalUnitPayloadIncluded'
|
|
98
98
|
}
|
|
99
99
|
end
|
|
100
100
|
|
|
@@ -136,14 +136,14 @@ module FactPulse
|
|
|
136
136
|
self.facility_type = attributes[:'facility_type']
|
|
137
137
|
end
|
|
138
138
|
|
|
139
|
-
if attributes.key?(:'diffusible')
|
|
140
|
-
self.diffusible = attributes[:'diffusible']
|
|
141
|
-
end
|
|
142
|
-
|
|
143
139
|
if attributes.key?(:'administrative_status')
|
|
144
140
|
self.administrative_status = attributes[:'administrative_status']
|
|
145
141
|
end
|
|
146
142
|
|
|
143
|
+
if attributes.key?(:'siret_instructions')
|
|
144
|
+
self.siret_instructions = attributes[:'siret_instructions']
|
|
145
|
+
end
|
|
146
|
+
|
|
147
147
|
if attributes.key?(:'address')
|
|
148
148
|
self.address = attributes[:'address']
|
|
149
149
|
end
|
|
@@ -260,8 +260,8 @@ module FactPulse
|
|
|
260
260
|
siren == o.siren &&
|
|
261
261
|
name == o.name &&
|
|
262
262
|
facility_type == o.facility_type &&
|
|
263
|
-
diffusible == o.diffusible &&
|
|
264
263
|
administrative_status == o.administrative_status &&
|
|
264
|
+
siret_instructions == o.siret_instructions &&
|
|
265
265
|
address == o.address &&
|
|
266
266
|
b2g_additional_data == o.b2g_additional_data &&
|
|
267
267
|
legal_unit == o.legal_unit
|
|
@@ -276,7 +276,7 @@ module FactPulse
|
|
|
276
276
|
# Calculates hash code according to all attributes.
|
|
277
277
|
# @return [Integer] Hash code
|
|
278
278
|
def hash
|
|
279
|
-
[siret, siren, name, facility_type,
|
|
279
|
+
[siret, siren, name, facility_type, administrative_status, siret_instructions, address, b2g_additional_data, legal_unit].hash
|
|
280
280
|
end
|
|
281
281
|
|
|
282
282
|
# Builds the object from hash
|
|
@@ -26,8 +26,6 @@ module FactPulse
|
|
|
26
26
|
|
|
27
27
|
attr_accessor :facility_type
|
|
28
28
|
|
|
29
|
-
attr_accessor :diffusible
|
|
30
|
-
|
|
31
29
|
attr_accessor :administrative_status
|
|
32
30
|
|
|
33
31
|
attr_accessor :address
|
|
@@ -63,7 +61,6 @@ module FactPulse
|
|
|
63
61
|
:'siren' => :'siren',
|
|
64
62
|
:'name' => :'name',
|
|
65
63
|
:'facility_type' => :'facilityType',
|
|
66
|
-
:'diffusible' => :'diffusible',
|
|
67
64
|
:'administrative_status' => :'administrativeStatus',
|
|
68
65
|
:'address' => :'address',
|
|
69
66
|
:'b2g_additional_data' => :'b2gAdditionalData'
|
|
@@ -87,7 +84,6 @@ module FactPulse
|
|
|
87
84
|
:'siren' => :'String',
|
|
88
85
|
:'name' => :'String',
|
|
89
86
|
:'facility_type' => :'AFNORFacilityType',
|
|
90
|
-
:'diffusible' => :'AFNORDiffusionStatus',
|
|
91
87
|
:'administrative_status' => :'AFNORFacilityAdministrativeStatus',
|
|
92
88
|
:'address' => :'AFNORAddressRead',
|
|
93
89
|
:'b2g_additional_data' => :'AFNORFacilityPayloadHistoryUleB2gAdditionalData'
|
|
@@ -132,10 +128,6 @@ module FactPulse
|
|
|
132
128
|
self.facility_type = attributes[:'facility_type']
|
|
133
129
|
end
|
|
134
130
|
|
|
135
|
-
if attributes.key?(:'diffusible')
|
|
136
|
-
self.diffusible = attributes[:'diffusible']
|
|
137
|
-
end
|
|
138
|
-
|
|
139
131
|
if attributes.key?(:'administrative_status')
|
|
140
132
|
self.administrative_status = attributes[:'administrative_status']
|
|
141
133
|
end
|
|
@@ -252,7 +244,6 @@ module FactPulse
|
|
|
252
244
|
siren == o.siren &&
|
|
253
245
|
name == o.name &&
|
|
254
246
|
facility_type == o.facility_type &&
|
|
255
|
-
diffusible == o.diffusible &&
|
|
256
247
|
administrative_status == o.administrative_status &&
|
|
257
248
|
address == o.address &&
|
|
258
249
|
b2g_additional_data == o.b2g_additional_data
|
|
@@ -267,7 +258,7 @@ module FactPulse
|
|
|
267
258
|
# Calculates hash code according to all attributes.
|
|
268
259
|
# @return [Integer] Hash code
|
|
269
260
|
def hash
|
|
270
|
-
[siret, siren, name, facility_type,
|
|
261
|
+
[siret, siren, name, facility_type, administrative_status, address, b2g_additional_data].hash
|
|
271
262
|
end
|
|
272
263
|
|
|
273
264
|
# Builds the object from hash
|