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
@@ -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, ID_INSTANCE].freeze
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
@@ -63,7 +63,7 @@ module FactPulse
63
63
  # Attribute type mapping.
64
64
  def self.openapi_types
65
65
  {
66
- :'op' => :'AFNORContainsOperator',
66
+ :'op' => :'AFNORContainsOrStrictOperator',
67
67
  :'value' => :'String'
68
68
  }
69
69
  end
@@ -63,7 +63,7 @@ module FactPulse
63
63
  # Attribute type mapping.
64
64
  def self.openapi_types
65
65
  {
66
- :'op' => :'AFNORContainsOperator',
66
+ :'op' => :'AFNORContainsOrStrictOperator',
67
67
  :'value' => :'String'
68
68
  }
69
69
  end
@@ -63,7 +63,7 @@ module FactPulse
63
63
  # Attribute type mapping.
64
64
  def self.openapi_types
65
65
  {
66
- :'op' => :'AFNORContainsOperator',
66
+ :'op' => :'AFNORContainsOrStrictOperator',
67
67
  :'value' => :'String'
68
68
  }
69
69
  end
@@ -63,7 +63,7 @@ module FactPulse
63
63
  # Attribute type mapping.
64
64
  def self.openapi_types
65
65
  {
66
- :'op' => :'AFNORStrictOperator',
66
+ :'op' => :'AFNORContainsOrStrictOperator',
67
67
  :'value' => :'String'
68
68
  }
69
69
  end
@@ -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
@@ -63,7 +63,7 @@ module FactPulse
63
63
  # Attribute type mapping.
64
64
  def self.openapi_types
65
65
  {
66
- :'op' => :'AFNORContainsOperator',
66
+ :'op' => :'AFNORContainsOrStrictOperator',
67
67
  :'value' => :'String'
68
68
  }
69
69
  end
@@ -63,7 +63,7 @@ module FactPulse
63
63
  # Attribute type mapping.
64
64
  def self.openapi_types
65
65
  {
66
- :'op' => :'AFNORContainsOperator',
66
+ :'op' => :'AFNORStrictOperator',
67
67
  :'value' => :'String'
68
68
  }
69
69
  end
@@ -63,7 +63,7 @@ module FactPulse
63
63
  # Attribute type mapping.
64
64
  def self.openapi_types
65
65
  {
66
- :'op' => :'AFNORContainsOperator',
66
+ :'op' => :'AFNORStrictOperator',
67
67
  :'value' => :'String'
68
68
  }
69
69
  end
@@ -62,7 +62,7 @@ module FactPulse
62
62
  # Attribute type mapping.
63
63
  def self.openapi_types
64
64
  {
65
- :'op' => :'AFNORContainsOperator',
65
+ :'op' => :'AFNORStrictOperator',
66
66
  :'value' => :'AFNORFacilityType'
67
67
  }
68
68
  end
@@ -63,7 +63,7 @@ module FactPulse
63
63
  # Attribute type mapping.
64
64
  def self.openapi_types
65
65
  {
66
- :'op' => :'AFNORContainsOperator',
66
+ :'op' => :'AFNORContainsOrStrictOperator',
67
67
  :'value' => :'String'
68
68
  }
69
69
  end
@@ -63,7 +63,7 @@ module FactPulse
63
63
  # Attribute type mapping.
64
64
  def self.openapi_types
65
65
  {
66
- :'op' => :'AFNORContainsOperator',
66
+ :'op' => :'AFNORContainsOrStrictOperator',
67
67
  :'value' => :'String'
68
68
  }
69
69
  end
@@ -63,7 +63,7 @@ module FactPulse
63
63
  # Attribute type mapping.
64
64
  def self.openapi_types
65
65
  {
66
- :'op' => :'AFNORContainsOperator',
66
+ :'op' => :'AFNORStrictOrStartWithOperator',
67
67
  :'value' => :'String'
68
68
  }
69
69
  end
@@ -63,7 +63,7 @@ module FactPulse
63
63
  # Attribute type mapping.
64
64
  def self.openapi_types
65
65
  {
66
- :'op' => :'AFNORContainsOperator',
66
+ :'op' => :'AFNORStrictOperator',
67
67
  :'value' => :'String'
68
68
  }
69
69
  end
@@ -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
- ID_INSTANCE = "idInstance".freeze
22
+ INSTRUCTIONS = "instructions".freeze
23
23
 
24
24
  def self.all_vars
25
- @all_vars ||= [SIREN, BUSINESS_NAME, ENTITY_TYPE, ADMINISTRATIVE_STATUS, ID_INSTANCE].freeze
25
+ @all_vars ||= [SIREN, BUSINESS_NAME, ENTITY_TYPE, ADMINISTRATIVE_STATUS, INSTRUCTIONS].freeze
26
26
  end
27
27
 
28
28
  # Builds the enum from string
@@ -14,14 +14,15 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module FactPulse
17
- class AFNORUpdatePatchDirectoryLineBody < ApiModelBase
18
- # Effective end date of the directory line.
19
- attr_accessor :date_to
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
- :'date_to' => :'dateTo'
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
- :'date_to' => :'Date'
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::AFNORUpdatePatchDirectoryLineBody` initialize method"
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::AFNORUpdatePatchDirectoryLineBody`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
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?(:'date_to')
68
- self.date_to = attributes[:'date_to']
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
- date_to == o.date_to
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
- [date_to].hash
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, ADDRESS, DIFFUSIBLE, ADMINISTRATIVE_STATUS, PM_STATUS, PM_ONLY, MANAGES_PAYMENT_STATUS, MANAGES_LEGAL_COMMITMENT, MANAGES_LEGAL_COMMITMENT_OR_SERVICE, SERVICE_CODE_STATUS, ID_INSTANCE].freeze
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
@@ -14,16 +14,15 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module FactPulse
17
- class AFNORCreateDirectoryLineBody < ApiModelBase
18
- attr_accessor :period
19
-
20
- attr_accessor :addressing_information
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
- :'period' => :'period',
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
- :'period' => :'AFNORCreateDirectoryLineBodyPeriod',
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::AFNORCreateDirectoryLineBody` initialize method"
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::AFNORCreateDirectoryLineBody`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
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?(:'period')
71
- self.period = attributes[:'period']
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
- period == o.period &&
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
- [period, addressing_information].hash
105
+ [is_sales_prospecting_forbidden].hash
113
106
  end
114
107
 
115
108
  # Builds the object from hash
@@ -14,12 +14,12 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module FactPulse
17
- class AFNORFacilityNature
18
- PRIVATE = "Private".freeze
19
- PUBLIC = "Public".freeze
17
+ class AFNORStrictOrStartWithOperator
18
+ START_WITH = "startWith".freeze
19
+ STRICT = "strict".freeze
20
20
 
21
21
  def self.all_vars
22
- @all_vars ||= [PRIVATE, PUBLIC].freeze
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 AFNORFacilityNature.all_vars.include?(value)
37
- raise "Invalid ENUM value #{value} for class #AFNORFacilityNature"
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 AFNORDirectoryLinePost201Response < ApiModelBase
18
- # Platform instance identifier in the directory
19
- attr_accessor :id_instance
17
+ class AFNORWebhook < ApiModelBase
18
+ attr_accessor :webhook_id
20
19
 
21
- # Addressing identifier of the directory line.
22
- attr_accessor :addressing_identifier
20
+ attr_accessor :callback
23
21
 
24
- # Effective start date of the directory line..
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
- :'id_instance' => :'idInstance',
31
- :'addressing_identifier' => :'addressingIdentifier',
32
- :'date_from' => :'dateFrom'
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
- :'id_instance' => :'Integer',
50
- :'addressing_identifier' => :'String',
51
- :'date_from' => :'Date'
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::AFNORDirectoryLinePost201Response` initialize method"
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::AFNORDirectoryLinePost201Response`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
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?(:'id_instance')
78
- self.id_instance = attributes[:'id_instance']
82
+ if attributes.key?(:'webhook_id')
83
+ self.webhook_id = attributes[:'webhook_id']
79
84
  end
80
85
 
81
- if attributes.key?(:'addressing_identifier')
82
- self.addressing_identifier = attributes[:'addressing_identifier']
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?(:'date_from')
86
- self.date_from = attributes[:'date_from']
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 !@addressing_identifier.nil? && @addressing_identifier.to_s.length > 125
96
- invalid_properties.push('invalid value for "addressing_identifier", the character length must be smaller than or equal to 125.')
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 !@addressing_identifier.nil? && @addressing_identifier.to_s.length > 125
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] addressing_identifier Value to be assigned
112
- def addressing_identifier=(addressing_identifier)
113
- if addressing_identifier.nil?
114
- fail ArgumentError, 'addressing_identifier cannot be nil'
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
- if addressing_identifier.to_s.length > 125
118
- fail ArgumentError, 'invalid value for "addressing_identifier", the character length must be smaller than or equal to 125.'
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
- @addressing_identifier = addressing_identifier
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
- id_instance == o.id_instance &&
130
- addressing_identifier == o.addressing_identifier &&
131
- date_from == o.date_from
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
- [id_instance, addressing_identifier, date_from].hash
163
+ [webhook_id, callback, metadata].hash
144
164
  end
145
165
 
146
166
  # Builds the object from hash