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
|
@@ -25,6 +25,8 @@ module FactPulse
|
|
|
25
25
|
|
|
26
26
|
attr_accessor :administrative_status
|
|
27
27
|
|
|
28
|
+
attr_accessor :instructions
|
|
29
|
+
|
|
28
30
|
class EnumAttributeValidator
|
|
29
31
|
attr_reader :datatype
|
|
30
32
|
attr_reader :allowable_values
|
|
@@ -53,7 +55,8 @@ module FactPulse
|
|
|
53
55
|
:'siren' => :'siren',
|
|
54
56
|
:'business_name' => :'businessName',
|
|
55
57
|
:'entity_type' => :'entityType',
|
|
56
|
-
:'administrative_status' => :'administrativeStatus'
|
|
58
|
+
:'administrative_status' => :'administrativeStatus',
|
|
59
|
+
:'instructions' => :'instructions'
|
|
57
60
|
}
|
|
58
61
|
end
|
|
59
62
|
|
|
@@ -73,7 +76,8 @@ module FactPulse
|
|
|
73
76
|
:'siren' => :'String',
|
|
74
77
|
:'business_name' => :'String',
|
|
75
78
|
:'entity_type' => :'AFNOREntityType',
|
|
76
|
-
:'administrative_status' => :'AFNORLegalUnitAdministrativeStatus'
|
|
79
|
+
:'administrative_status' => :'AFNORLegalUnitAdministrativeStatus',
|
|
80
|
+
:'instructions' => :'AFNORSirenInstructions'
|
|
77
81
|
}
|
|
78
82
|
end
|
|
79
83
|
|
|
@@ -114,6 +118,10 @@ module FactPulse
|
|
|
114
118
|
if attributes.key?(:'administrative_status')
|
|
115
119
|
self.administrative_status = attributes[:'administrative_status']
|
|
116
120
|
end
|
|
121
|
+
|
|
122
|
+
if attributes.key?(:'instructions')
|
|
123
|
+
self.instructions = attributes[:'instructions']
|
|
124
|
+
end
|
|
117
125
|
end
|
|
118
126
|
|
|
119
127
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -188,7 +196,8 @@ module FactPulse
|
|
|
188
196
|
siren == o.siren &&
|
|
189
197
|
business_name == o.business_name &&
|
|
190
198
|
entity_type == o.entity_type &&
|
|
191
|
-
administrative_status == o.administrative_status
|
|
199
|
+
administrative_status == o.administrative_status &&
|
|
200
|
+
instructions == o.instructions
|
|
192
201
|
end
|
|
193
202
|
|
|
194
203
|
# @see the `==` method
|
|
@@ -200,7 +209,7 @@ module FactPulse
|
|
|
200
209
|
# Calculates hash code according to all attributes.
|
|
201
210
|
# @return [Integer] Hash code
|
|
202
211
|
def hash
|
|
203
|
-
[siren, business_name, entity_type, administrative_status].hash
|
|
212
|
+
[siren, business_name, entity_type, administrative_status, instructions].hash
|
|
204
213
|
end
|
|
205
214
|
|
|
206
215
|
# Builds the object from hash
|
|
@@ -18,12 +18,15 @@ module FactPulse
|
|
|
18
18
|
B2_B = "B2B".freeze
|
|
19
19
|
B2_B_INT = "B2BInt".freeze
|
|
20
20
|
B2_C = "B2C".freeze
|
|
21
|
+
B2_G = "B2G".freeze
|
|
22
|
+
B2_G_INT = "B2GInt".freeze
|
|
21
23
|
OUT_OF_SCOPE = "OutOfScope".freeze
|
|
24
|
+
B2_G_OUT_OF_SCOPE = "B2GOutOfScope".freeze
|
|
22
25
|
ARCHIVE_ONLY = "ArchiveOnly".freeze
|
|
23
26
|
NOT_APPLICABLE = "NotApplicable".freeze
|
|
24
27
|
|
|
25
28
|
def self.all_vars
|
|
26
|
-
@all_vars ||= [B2_B, B2_B_INT, B2_C, OUT_OF_SCOPE, ARCHIVE_ONLY, NOT_APPLICABLE].freeze
|
|
29
|
+
@all_vars ||= [B2_B, B2_B_INT, B2_C, B2_G, B2_G_INT, OUT_OF_SCOPE, B2_G_OUT_OF_SCOPE, ARCHIVE_ONLY, NOT_APPLICABLE].freeze
|
|
27
30
|
end
|
|
28
31
|
|
|
29
32
|
# Builds the enum from string
|
|
@@ -22,10 +22,9 @@ module FactPulse
|
|
|
22
22
|
MANAGES_LEGAL_COMMITMENT_CODE = "managesLegalCommitmentCode".freeze
|
|
23
23
|
ADMINISTRATIVE_STATUS = "administrativeStatus".freeze
|
|
24
24
|
ADDRESS = "address".freeze
|
|
25
|
-
ID_INSTANCE = "idInstance".freeze
|
|
26
25
|
|
|
27
26
|
def self.all_vars
|
|
28
|
-
@all_vars ||= [SIRET, ROUTING_IDENTIFIER_TYPE, ROUTING_CODE_NAME, ROUTING_IDENTIFIER, MANAGES_LEGAL_COMMITMENT_CODE, ADMINISTRATIVE_STATUS, ADDRESS
|
|
27
|
+
@all_vars ||= [SIRET, ROUTING_IDENTIFIER_TYPE, ROUTING_CODE_NAME, ROUTING_IDENTIFIER, MANAGES_LEGAL_COMMITMENT_CODE, ADMINISTRATIVE_STATUS, ADDRESS].freeze
|
|
29
28
|
end
|
|
30
29
|
|
|
31
30
|
# Builds the enum from string
|
|
@@ -16,6 +16,7 @@ require 'time'
|
|
|
16
16
|
module FactPulse
|
|
17
17
|
# Filtering criteria, at least one is required
|
|
18
18
|
class AFNORSearchFlowFilters < ApiModelBase
|
|
19
|
+
# The comparison with current date is strict : updatedAt > updatedAfter
|
|
19
20
|
attr_accessor :updated_after
|
|
20
21
|
|
|
21
22
|
attr_accessor :updated_before
|
|
@@ -19,10 +19,10 @@ module FactPulse
|
|
|
19
19
|
BUSINESS_NAME = "businessName".freeze
|
|
20
20
|
ENTITY_TYPE = "entityType".freeze
|
|
21
21
|
ADMINISTRATIVE_STATUS = "administrativeStatus".freeze
|
|
22
|
-
|
|
22
|
+
INSTRUCTIONS = "instructions".freeze
|
|
23
23
|
|
|
24
24
|
def self.all_vars
|
|
25
|
-
@all_vars ||= [SIREN, BUSINESS_NAME, ENTITY_TYPE, ADMINISTRATIVE_STATUS,
|
|
25
|
+
@all_vars ||= [SIREN, BUSINESS_NAME, ENTITY_TYPE, ADMINISTRATIVE_STATUS, INSTRUCTIONS].freeze
|
|
26
26
|
end
|
|
27
27
|
|
|
28
28
|
# Builds the enum from string
|
data/lib/factpulse/models/{afnor_update_patch_directory_line_body.rb → afnor_siren_instructions.rb}
RENAMED
|
@@ -14,14 +14,15 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module FactPulse
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
# Instructions regarding the SIREN
|
|
18
|
+
class AFNORSirenInstructions < ApiModelBase
|
|
19
|
+
# Indicates whether the information is forbidden from being used for sales prospecting purposes.
|
|
20
|
+
attr_accessor :is_sales_prospecting_forbidden
|
|
20
21
|
|
|
21
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
22
23
|
def self.attribute_map
|
|
23
24
|
{
|
|
24
|
-
:'
|
|
25
|
+
:'is_sales_prospecting_forbidden' => :'isSalesProspectingForbidden'
|
|
25
26
|
}
|
|
26
27
|
end
|
|
27
28
|
|
|
@@ -38,7 +39,7 @@ module FactPulse
|
|
|
38
39
|
# Attribute type mapping.
|
|
39
40
|
def self.openapi_types
|
|
40
41
|
{
|
|
41
|
-
:'
|
|
42
|
+
:'is_sales_prospecting_forbidden' => :'Boolean'
|
|
42
43
|
}
|
|
43
44
|
end
|
|
44
45
|
|
|
@@ -52,20 +53,20 @@ module FactPulse
|
|
|
52
53
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
53
54
|
def initialize(attributes = {})
|
|
54
55
|
if (!attributes.is_a?(Hash))
|
|
55
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `FactPulse::
|
|
56
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `FactPulse::AFNORSirenInstructions` initialize method"
|
|
56
57
|
end
|
|
57
58
|
|
|
58
59
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
59
60
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
60
61
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
61
62
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
62
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `FactPulse::
|
|
63
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `FactPulse::AFNORSirenInstructions`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
63
64
|
end
|
|
64
65
|
h[k.to_sym] = v
|
|
65
66
|
}
|
|
66
67
|
|
|
67
|
-
if attributes.key?(:'
|
|
68
|
-
self.
|
|
68
|
+
if attributes.key?(:'is_sales_prospecting_forbidden')
|
|
69
|
+
self.is_sales_prospecting_forbidden = attributes[:'is_sales_prospecting_forbidden']
|
|
69
70
|
end
|
|
70
71
|
end
|
|
71
72
|
|
|
@@ -89,7 +90,7 @@ module FactPulse
|
|
|
89
90
|
def ==(o)
|
|
90
91
|
return true if self.equal?(o)
|
|
91
92
|
self.class == o.class &&
|
|
92
|
-
|
|
93
|
+
is_sales_prospecting_forbidden == o.is_sales_prospecting_forbidden
|
|
93
94
|
end
|
|
94
95
|
|
|
95
96
|
# @see the `==` method
|
|
@@ -101,7 +102,7 @@ module FactPulse
|
|
|
101
102
|
# Calculates hash code according to all attributes.
|
|
102
103
|
# @return [Integer] Hash code
|
|
103
104
|
def hash
|
|
104
|
-
[
|
|
105
|
+
[is_sales_prospecting_forbidden].hash
|
|
105
106
|
end
|
|
106
107
|
|
|
107
108
|
# Builds the object from hash
|
|
@@ -19,19 +19,18 @@ module FactPulse
|
|
|
19
19
|
SIREN = "siren".freeze
|
|
20
20
|
NAME = "name".freeze
|
|
21
21
|
FACILITY_TYPE = "facilityType".freeze
|
|
22
|
-
ADDRESS = "address".freeze
|
|
23
|
-
DIFFUSIBLE = "diffusible".freeze
|
|
24
22
|
ADMINISTRATIVE_STATUS = "administrativeStatus".freeze
|
|
23
|
+
SIRET_INSTRUCTIONS = "siretInstructions".freeze
|
|
24
|
+
ADDRESS = "address".freeze
|
|
25
25
|
PM_STATUS = "pmStatus".freeze
|
|
26
26
|
PM_ONLY = "pmOnly".freeze
|
|
27
27
|
MANAGES_PAYMENT_STATUS = "managesPaymentStatus".freeze
|
|
28
28
|
MANAGES_LEGAL_COMMITMENT = "managesLegalCommitment".freeze
|
|
29
29
|
MANAGES_LEGAL_COMMITMENT_OR_SERVICE = "managesLegalCommitmentOrService".freeze
|
|
30
30
|
SERVICE_CODE_STATUS = "serviceCodeStatus".freeze
|
|
31
|
-
ID_INSTANCE = "idInstance".freeze
|
|
32
31
|
|
|
33
32
|
def self.all_vars
|
|
34
|
-
@all_vars ||= [SIRET, SIREN, NAME, FACILITY_TYPE,
|
|
33
|
+
@all_vars ||= [SIRET, SIREN, NAME, FACILITY_TYPE, ADMINISTRATIVE_STATUS, SIRET_INSTRUCTIONS, ADDRESS, PM_STATUS, PM_ONLY, MANAGES_PAYMENT_STATUS, MANAGES_LEGAL_COMMITMENT, MANAGES_LEGAL_COMMITMENT_OR_SERVICE, SERVICE_CODE_STATUS].freeze
|
|
35
34
|
end
|
|
36
35
|
|
|
37
36
|
# Builds the enum from string
|
data/lib/factpulse/models/{afnor_create_directory_line_body.rb → afnor_siret_instructions.rb}
RENAMED
|
@@ -14,16 +14,15 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module FactPulse
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
attr_accessor :
|
|
17
|
+
# Instructions regarding the SIRET
|
|
18
|
+
class AFNORSiretInstructions < ApiModelBase
|
|
19
|
+
# Indicates whether the information is forbidden from being used for sales prospecting purposes.
|
|
20
|
+
attr_accessor :is_sales_prospecting_forbidden
|
|
21
21
|
|
|
22
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
23
|
def self.attribute_map
|
|
24
24
|
{
|
|
25
|
-
:'
|
|
26
|
-
:'addressing_information' => :'addressingInformation'
|
|
25
|
+
:'is_sales_prospecting_forbidden' => :'isSalesProspectingForbidden'
|
|
27
26
|
}
|
|
28
27
|
end
|
|
29
28
|
|
|
@@ -40,8 +39,7 @@ module FactPulse
|
|
|
40
39
|
# Attribute type mapping.
|
|
41
40
|
def self.openapi_types
|
|
42
41
|
{
|
|
43
|
-
:'
|
|
44
|
-
:'addressing_information' => :'AFNORCreateDirectoryLineBodyAddressingInformation'
|
|
42
|
+
:'is_sales_prospecting_forbidden' => :'Boolean'
|
|
45
43
|
}
|
|
46
44
|
end
|
|
47
45
|
|
|
@@ -55,24 +53,20 @@ module FactPulse
|
|
|
55
53
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
56
54
|
def initialize(attributes = {})
|
|
57
55
|
if (!attributes.is_a?(Hash))
|
|
58
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `FactPulse::
|
|
56
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `FactPulse::AFNORSiretInstructions` initialize method"
|
|
59
57
|
end
|
|
60
58
|
|
|
61
59
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
62
60
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
63
61
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
64
62
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
65
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `FactPulse::
|
|
63
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `FactPulse::AFNORSiretInstructions`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
66
64
|
end
|
|
67
65
|
h[k.to_sym] = v
|
|
68
66
|
}
|
|
69
67
|
|
|
70
|
-
if attributes.key?(:'
|
|
71
|
-
self.
|
|
72
|
-
end
|
|
73
|
-
|
|
74
|
-
if attributes.key?(:'addressing_information')
|
|
75
|
-
self.addressing_information = attributes[:'addressing_information']
|
|
68
|
+
if attributes.key?(:'is_sales_prospecting_forbidden')
|
|
69
|
+
self.is_sales_prospecting_forbidden = attributes[:'is_sales_prospecting_forbidden']
|
|
76
70
|
end
|
|
77
71
|
end
|
|
78
72
|
|
|
@@ -96,8 +90,7 @@ module FactPulse
|
|
|
96
90
|
def ==(o)
|
|
97
91
|
return true if self.equal?(o)
|
|
98
92
|
self.class == o.class &&
|
|
99
|
-
|
|
100
|
-
addressing_information == o.addressing_information
|
|
93
|
+
is_sales_prospecting_forbidden == o.is_sales_prospecting_forbidden
|
|
101
94
|
end
|
|
102
95
|
|
|
103
96
|
# @see the `==` method
|
|
@@ -109,7 +102,7 @@ module FactPulse
|
|
|
109
102
|
# Calculates hash code according to all attributes.
|
|
110
103
|
# @return [Integer] Hash code
|
|
111
104
|
def hash
|
|
112
|
-
[
|
|
105
|
+
[is_sales_prospecting_forbidden].hash
|
|
113
106
|
end
|
|
114
107
|
|
|
115
108
|
# Builds the object from hash
|
data/lib/factpulse/models/{afnor_facility_nature.rb → afnor_strict_or_start_with_operator.rb}
RENAMED
|
@@ -14,12 +14,12 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module FactPulse
|
|
17
|
-
class
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
class AFNORStrictOrStartWithOperator
|
|
18
|
+
START_WITH = "startWith".freeze
|
|
19
|
+
STRICT = "strict".freeze
|
|
20
20
|
|
|
21
21
|
def self.all_vars
|
|
22
|
-
@all_vars ||= [
|
|
22
|
+
@all_vars ||= [START_WITH, STRICT].freeze
|
|
23
23
|
end
|
|
24
24
|
|
|
25
25
|
# Builds the enum from string
|
|
@@ -33,8 +33,8 @@ module FactPulse
|
|
|
33
33
|
# @param [String] The enum value in the form of the string
|
|
34
34
|
# @return [String] The enum value
|
|
35
35
|
def build_from_hash(value)
|
|
36
|
-
return value if
|
|
37
|
-
raise "Invalid ENUM value #{value} for class #
|
|
36
|
+
return value if AFNORStrictOrStartWithOperator.all_vars.include?(value)
|
|
37
|
+
raise "Invalid ENUM value #{value} for class #AFNORStrictOrStartWithOperator"
|
|
38
38
|
end
|
|
39
39
|
end
|
|
40
40
|
end
|
|
@@ -14,22 +14,19 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module FactPulse
|
|
17
|
-
class
|
|
18
|
-
|
|
19
|
-
attr_accessor :id_instance
|
|
17
|
+
class AFNORWebhook < ApiModelBase
|
|
18
|
+
attr_accessor :webhook_id
|
|
20
19
|
|
|
21
|
-
|
|
22
|
-
attr_accessor :addressing_identifier
|
|
20
|
+
attr_accessor :callback
|
|
23
21
|
|
|
24
|
-
|
|
25
|
-
attr_accessor :date_from
|
|
22
|
+
attr_accessor :metadata
|
|
26
23
|
|
|
27
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
28
25
|
def self.attribute_map
|
|
29
26
|
{
|
|
30
|
-
:'
|
|
31
|
-
:'
|
|
32
|
-
:'
|
|
27
|
+
:'webhook_id' => :'webhookId',
|
|
28
|
+
:'callback' => :'callback',
|
|
29
|
+
:'metadata' => :'metadata'
|
|
33
30
|
}
|
|
34
31
|
end
|
|
35
32
|
|
|
@@ -46,9 +43,9 @@ module FactPulse
|
|
|
46
43
|
# Attribute type mapping.
|
|
47
44
|
def self.openapi_types
|
|
48
45
|
{
|
|
49
|
-
:'
|
|
50
|
-
:'
|
|
51
|
-
:'
|
|
46
|
+
:'webhook_id' => :'String',
|
|
47
|
+
:'callback' => :'AFNORCallbackParameters',
|
|
48
|
+
:'metadata' => :'AFNORWebhookMetadata'
|
|
52
49
|
}
|
|
53
50
|
end
|
|
54
51
|
|
|
@@ -58,32 +55,44 @@ module FactPulse
|
|
|
58
55
|
])
|
|
59
56
|
end
|
|
60
57
|
|
|
58
|
+
# List of class defined in allOf (OpenAPI v3)
|
|
59
|
+
def self.openapi_all_of
|
|
60
|
+
[
|
|
61
|
+
:'AFNORWebhookIdParam',
|
|
62
|
+
:'AFNORWebhookParams'
|
|
63
|
+
]
|
|
64
|
+
end
|
|
65
|
+
|
|
61
66
|
# Initializes the object
|
|
62
67
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
63
68
|
def initialize(attributes = {})
|
|
64
69
|
if (!attributes.is_a?(Hash))
|
|
65
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `FactPulse::
|
|
70
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `FactPulse::AFNORWebhook` initialize method"
|
|
66
71
|
end
|
|
67
72
|
|
|
68
73
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
69
74
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
70
75
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
71
76
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
72
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `FactPulse::
|
|
77
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `FactPulse::AFNORWebhook`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
73
78
|
end
|
|
74
79
|
h[k.to_sym] = v
|
|
75
80
|
}
|
|
76
81
|
|
|
77
|
-
if attributes.key?(:'
|
|
78
|
-
self.
|
|
82
|
+
if attributes.key?(:'webhook_id')
|
|
83
|
+
self.webhook_id = attributes[:'webhook_id']
|
|
79
84
|
end
|
|
80
85
|
|
|
81
|
-
if attributes.key?(:'
|
|
82
|
-
self.
|
|
86
|
+
if attributes.key?(:'callback')
|
|
87
|
+
self.callback = attributes[:'callback']
|
|
88
|
+
else
|
|
89
|
+
self.callback = nil
|
|
83
90
|
end
|
|
84
91
|
|
|
85
|
-
if attributes.key?(:'
|
|
86
|
-
self.
|
|
92
|
+
if attributes.key?(:'metadata')
|
|
93
|
+
self.metadata = attributes[:'metadata']
|
|
94
|
+
else
|
|
95
|
+
self.metadata = nil
|
|
87
96
|
end
|
|
88
97
|
end
|
|
89
98
|
|
|
@@ -92,8 +101,12 @@ module FactPulse
|
|
|
92
101
|
def list_invalid_properties
|
|
93
102
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
94
103
|
invalid_properties = Array.new
|
|
95
|
-
if
|
|
96
|
-
invalid_properties.push('invalid value for "
|
|
104
|
+
if @callback.nil?
|
|
105
|
+
invalid_properties.push('invalid value for "callback", callback cannot be nil.')
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
if @metadata.nil?
|
|
109
|
+
invalid_properties.push('invalid value for "metadata", metadata cannot be nil.')
|
|
97
110
|
end
|
|
98
111
|
|
|
99
112
|
invalid_properties
|
|
@@ -103,22 +116,29 @@ module FactPulse
|
|
|
103
116
|
# @return true if the model is valid
|
|
104
117
|
def valid?
|
|
105
118
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
106
|
-
return false if
|
|
119
|
+
return false if @callback.nil?
|
|
120
|
+
return false if @metadata.nil?
|
|
107
121
|
true
|
|
108
122
|
end
|
|
109
123
|
|
|
110
124
|
# Custom attribute writer method with validation
|
|
111
|
-
# @param [Object]
|
|
112
|
-
def
|
|
113
|
-
if
|
|
114
|
-
fail ArgumentError, '
|
|
125
|
+
# @param [Object] callback Value to be assigned
|
|
126
|
+
def callback=(callback)
|
|
127
|
+
if callback.nil?
|
|
128
|
+
fail ArgumentError, 'callback cannot be nil'
|
|
115
129
|
end
|
|
116
130
|
|
|
117
|
-
|
|
118
|
-
|
|
131
|
+
@callback = callback
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
# Custom attribute writer method with validation
|
|
135
|
+
# @param [Object] metadata Value to be assigned
|
|
136
|
+
def metadata=(metadata)
|
|
137
|
+
if metadata.nil?
|
|
138
|
+
fail ArgumentError, 'metadata cannot be nil'
|
|
119
139
|
end
|
|
120
140
|
|
|
121
|
-
@
|
|
141
|
+
@metadata = metadata
|
|
122
142
|
end
|
|
123
143
|
|
|
124
144
|
# Checks equality by comparing each attribute.
|
|
@@ -126,9 +146,9 @@ module FactPulse
|
|
|
126
146
|
def ==(o)
|
|
127
147
|
return true if self.equal?(o)
|
|
128
148
|
self.class == o.class &&
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
149
|
+
webhook_id == o.webhook_id &&
|
|
150
|
+
callback == o.callback &&
|
|
151
|
+
metadata == o.metadata
|
|
132
152
|
end
|
|
133
153
|
|
|
134
154
|
# @see the `==` method
|
|
@@ -140,7 +160,7 @@ module FactPulse
|
|
|
140
160
|
# Calculates hash code according to all attributes.
|
|
141
161
|
# @return [Integer] Hash code
|
|
142
162
|
def hash
|
|
143
|
-
[
|
|
163
|
+
[webhook_id, callback, metadata].hash
|
|
144
164
|
end
|
|
145
165
|
|
|
146
166
|
# Builds the object from hash
|