spid-es 0.0.28 → 0.0.33

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cb8b587fc1cfcdcd48c3036862abaeb4ead7a9cdc4dd49e5d8eff6aa3f957b21
4
- data.tar.gz: 02c2db9b713ff0660ba9866fe3ad4b85f2ffb7329993df80a41da35f1f94d65a
3
+ metadata.gz: 678eabae1888696ae13ef20f1d9c3a6e180bb244453593798ff6535da3d180d5
4
+ data.tar.gz: fe6f4201824240ec8dffd40a3891d95a726170f3b40f358935bcfba9b220d060
5
5
  SHA512:
6
- metadata.gz: a505c385493da04481b3ff5846b4f7202485468946d10b6270fa9c5058aed656368784a383b73bfe6f8e046a78b06d4b91240ace162fd26859da25719d9ad44e
7
- data.tar.gz: 9b4f324436969186405ff0c76caa5bd9ef8dc00250266924d549c6d7244307635da631002758c0aaf9fb45c2aa0314f7274dd7b54df3dadd2421988fff2be706
6
+ metadata.gz: 0a52274c11b1d38726295bbaff4d7cbf9a2b7ec3ca06128e5c7b1c36bbf10ad4ae8a346078fd40808c7ac1361bade9ac57111328b99f8577484c4c2f231210bb
7
+ data.tar.gz: a30bb7df8b93cab978687467dee2e9eb42a6de0ce1af282de1e4387763609ee24b63b3954bec0665dc7586ad9fa10bdf8e9c058612fa62367688ce23da562d67
@@ -223,7 +223,7 @@ module Spid
223
223
  "xml:lang" => "it"
224
224
  }
225
225
 
226
- org_display_name.text = settings.organization['org_display_name']+(settings.aggregato ? " tramite #{settings.hash_aggregatore['soggetto_aggregatore']}" : '')
226
+ org_display_name.text = settings.organization['org_display_name'] #+(settings.aggregato ? " tramite #{settings.hash_aggregatore['soggetto_aggregatore']}" : '')
227
227
  org_url = organization.add_element "md:OrganizationURL", {
228
228
  "xml:lang" => "it"
229
229
  }
@@ -235,39 +235,76 @@ module Spid
235
235
  "contactType" => "other",
236
236
  "spid:entityType" => "spid:aggregator"
237
237
  }
238
- company = contact_person_aggregatore.add_element "md:Company"
239
- company.text = settings.hash_aggregatore['soggetto_aggregatore']
240
238
 
241
239
  extensions_aggregatore = contact_person_aggregatore.add_element "md:Extensions"
242
- vat_number_aggregatore = extensions_aggregatore.add_element "spid:VATNumber"
243
- vat_number_aggregatore.text = settings.hash_aggregatore['piva_aggregatore']
244
-
245
- ipa_code_aggregatore = extensions_aggregatore.add_element "spid:IPACode"
246
- ipa_code_aggregatore.text = settings.hash_aggregatore['cipa_aggregatore']
247
240
 
248
- fiscal_code_aggregatore = extensions_aggregatore.add_element "spid:FiscalCode"
249
- fiscal_code_aggregatore.text = settings.hash_aggregatore['cf_aggregatore']
241
+ unless settings.hash_aggregatore['piva_aggregatore'].blank?
242
+ vat_number_aggregatore = extensions_aggregatore.add_element "spid:VATNumber"
243
+ vat_number_aggregatore.text = settings.hash_aggregatore['piva_aggregatore']
244
+ end
245
+
246
+ unless settings.hash_aggregatore['cipa_aggregatore'].blank?
247
+ ipa_code_aggregatore = extensions_aggregatore.add_element "spid:IPACode"
248
+ ipa_code_aggregatore.text = settings.hash_aggregatore['cipa_aggregatore']
249
+ end
250
+
251
+ unless settings.hash_aggregatore['cf_aggregatore'].blank?
252
+ fiscal_code_aggregatore = extensions_aggregatore.add_element "spid:FiscalCode"
253
+ fiscal_code_aggregatore.text = settings.hash_aggregatore['cf_aggregatore']
254
+ end
255
+
256
+ tipo_aggregatore = extensions_aggregatore.add_element "spid:PublicServicesFullAggregator"
257
+
258
+ unless settings.hash_aggregatore['soggetto_aggregatore'].blank?
259
+ company = contact_person_aggregatore.add_element "md:Company"
260
+ company.text = settings.hash_aggregatore['soggetto_aggregatore']
261
+ end
262
+
263
+ unless settings.hash_aggregatore['email_aggregatore'].blank?
264
+ email_address = contact_person_aggregatore.add_element "md:EmailAddress"
265
+ email_address.text = settings.hash_aggregatore['email_aggregatore']
266
+ end
267
+
268
+ unless settings.hash_aggregatore['telefono_aggregatore'].blank?
269
+ telephone_number = contact_person_aggregatore.add_element "md:TelephoneNumber"
270
+ telephone_number.text = settings.hash_aggregatore['telefono_aggregatore']
271
+ end
250
272
 
251
273
  contact_person_aggregato = root.add_element "md:ContactPerson", {
252
274
  "contactType" => "other",
253
275
  "spid:entityType" => "spid:aggregated"
254
276
  }
255
- company = contact_person_aggregato.add_element "md:Company"
256
- company.text = settings.organization['org_name']
257
277
 
258
278
  extensions_aggregato = contact_person_aggregato.add_element "md:Extensions"
259
- unless settings.hash_aggregatore['soggetto_aggregato']['vat_number'].blank?
260
- vat_number_aggregato = extensions_aggregato.add_element "spid:VATNumber"
261
- vat_number_aggregato.text = settings.hash_aggregatore['soggetto_aggregato']['vat_number']
262
- end
263
279
  unless settings.hash_aggregatore['soggetto_aggregato']['ipa_code'].blank?
264
280
  ipa_code_aggregato = extensions_aggregato.add_element "spid:IPACode"
265
281
  ipa_code_aggregato.text = settings.hash_aggregatore['soggetto_aggregato']['ipa_code']
266
282
  end
283
+ unless settings.hash_aggregatore['soggetto_aggregato']['vat_number'].blank?
284
+ vat_number_aggregato = extensions_aggregato.add_element "spid:VATNumber"
285
+ vat_number_aggregato.text = settings.hash_aggregatore['soggetto_aggregato']['vat_number']
286
+ end
267
287
  unless settings.hash_aggregatore['soggetto_aggregato']['fiscal_code'].blank?
268
288
  fiscal_code_aggregato = extensions_aggregato.add_element "spid:FiscalCode"
269
289
  fiscal_code_aggregato.text = settings.hash_aggregatore['soggetto_aggregato']['fiscal_code']
270
290
  end
291
+ unless settings.hash_aggregatore['soggetto_aggregato']['ipa_code'].blank?
292
+ tipo_aggregato = extensions_aggregato.add_element "spid:Public"
293
+ end
294
+
295
+ company = contact_person_aggregato.add_element "md:Company"
296
+ company.text = settings.organization['org_name']
297
+
298
+ unless settings.hash_aggregatore['soggetto_aggregato']['email_address'].blank?
299
+ email_address = contact_person_aggregato.add_element "md:EmailAddress"
300
+ email_address.text = settings.hash_aggregatore['soggetto_aggregato']['email_address']
301
+ end
302
+
303
+ unless settings.hash_aggregatore['soggetto_aggregato']['telephone_number'].blank?
304
+ telephone_number = contact_person_aggregato.add_element "md:TelephoneNumber"
305
+ telephone_number.text = settings.hash_aggregatore['soggetto_aggregato']['telephone_number']
306
+ end
307
+
271
308
  end
272
309
 
273
310
  #meta_doc << REXML::XMLDecl.new(version='1.0', encoding='UTF-8')
@@ -2,7 +2,7 @@ $LOAD_PATH.push File.expand_path('../lib', __FILE__)
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'spid-es'
5
- s.version = '0.0.28'
5
+ s.version = '0.0.33'
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Fabiano Pavan"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spid-es
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.28
4
+ version: 0.0.33
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fabiano Pavan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-09 00:00:00.000000000 Z
11
+ date: 2020-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: canonix