spid-es 0.0.29 → 0.0.34

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: 914b31e7840c617f7853dc604a2f89bc73d13b6ffd112d1486e7545ad7436d7f
4
- data.tar.gz: 931465c5e2d56a53738da3b2d165f8a17231ba8009a22dfb7faf38edc88b7318
3
+ metadata.gz: 7ed5dd9deffda781e9e126176bdd46717f782238f4c8687b00b1175ad30e07ab
4
+ data.tar.gz: 52c1374518e92fbdc554a90097ec6153cbde8988a6b2e50cd0ade5d005730637
5
5
  SHA512:
6
- metadata.gz: 673f12a17aba77f61dad64c49cecaf5ccddc6a11238575765777b23b7b8c22dd0c4c085413527afff9ec621ebcd7d1418206172dbd30286abbb66f0bdcef99a7
7
- data.tar.gz: 1e4ec887b388b9a25eacfa0a2d98dac6852436cf77de558d49f2659345a486a640af3f815b66d2bcc4741362c48b8b8c427200df43fed7d1a8d6967277031867
6
+ metadata.gz: d40b64c97bdba22bdb724f78cb516458aed2151295698cd29f2e1ea5c82496ece03f66505800292f4e818d47148e0c2b03191047624de067967b7a3fcfb42061
7
+ data.tar.gz: 35cf2b17a7d6f36b11476df563309e64b5c93ea6d9145ffc31a697fdcea0256f06612323bf460ca2dfa3095ae44a7724f55bbd8d047d1ad3f44cd382d794fe7b
@@ -235,16 +235,9 @@ 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
-
241
- email_address = contact_person_aggregatore.add_element "md:EmailAddress"
242
- email_address.text = settings.hash_aggregatore['email_address']
243
-
244
- telephone_number = contact_person_aggregatore.add_element "md:TelephoneNumber"
245
- telephone_number.text = settings.hash_aggregatore['telephone_number']
246
238
 
247
239
  extensions_aggregatore = contact_person_aggregatore.add_element "md:Extensions"
240
+
248
241
  unless settings.hash_aggregatore['piva_aggregatore'].blank?
249
242
  vat_number_aggregatore = extensions_aggregatore.add_element "spid:VATNumber"
250
243
  vat_number_aggregatore.text = settings.hash_aggregatore['piva_aggregatore']
@@ -262,26 +255,56 @@ module Spid
262
255
 
263
256
  tipo_aggregatore = extensions_aggregatore.add_element "spid:PublicServicesFullAggregator"
264
257
 
258
+ unless settings.hash_aggregatore['soggetto_aggregatore'].blank?
259
+ company_aggregatore = contact_person_aggregatore.add_element "md:Company"
260
+ company_aggregatore.text = settings.hash_aggregatore['soggetto_aggregatore']
261
+ end
262
+
263
+ unless settings.hash_aggregatore['email_aggregatore'].blank?
264
+ email_address_aggregatore = contact_person_aggregatore.add_element "md:EmailAddress"
265
+ email_address_aggregatore.text = settings.hash_aggregatore['email_aggregatore']
266
+ end
267
+
268
+ unless settings.hash_aggregatore['telefono_aggregatore'].blank?
269
+ telephone_number_aggregatore = contact_person_aggregatore.add_element "md:TelephoneNumber"
270
+ telephone_number_aggregatore.text = settings.hash_aggregatore['telefono_aggregatore']
271
+ end
272
+
265
273
  contact_person_aggregato = root.add_element "md:ContactPerson", {
266
274
  "contactType" => "other",
267
275
  "spid:entityType" => "spid:aggregated"
268
276
  }
269
- company = contact_person_aggregato.add_element "md:Company"
270
- company.text = settings.organization['org_name']
271
277
 
272
278
  extensions_aggregato = contact_person_aggregato.add_element "md:Extensions"
273
- unless settings.hash_aggregatore['soggetto_aggregato']['vat_number'].blank?
274
- vat_number_aggregato = extensions_aggregato.add_element "spid:VATNumber"
275
- vat_number_aggregato.text = settings.hash_aggregatore['soggetto_aggregato']['vat_number']
276
- end
277
279
  unless settings.hash_aggregatore['soggetto_aggregato']['ipa_code'].blank?
278
280
  ipa_code_aggregato = extensions_aggregato.add_element "spid:IPACode"
279
281
  ipa_code_aggregato.text = settings.hash_aggregatore['soggetto_aggregato']['ipa_code']
280
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
281
287
  unless settings.hash_aggregatore['soggetto_aggregato']['fiscal_code'].blank?
282
288
  fiscal_code_aggregato = extensions_aggregato.add_element "spid:FiscalCode"
283
289
  fiscal_code_aggregato.text = settings.hash_aggregatore['soggetto_aggregato']['fiscal_code']
284
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_aggregato = contact_person_aggregato.add_element "md:Company"
296
+ company_aggregato.text = settings.organization['org_name']
297
+
298
+ unless settings.hash_aggregatore['soggetto_aggregato']['email_address'].blank?
299
+ email_address_aggregato = contact_person_aggregato.add_element "md:EmailAddress"
300
+ email_address_aggregato.text = settings.hash_aggregatore['soggetto_aggregato']['email_address']
301
+ end
302
+
303
+ unless settings.hash_aggregatore['soggetto_aggregato']['telephone_number'].blank?
304
+ telephone_number_aggregato = contact_person_aggregato.add_element "md:TelephoneNumber"
305
+ telephone_number_aggregato.text = settings.hash_aggregatore['soggetto_aggregato']['telephone_number']
306
+ end
307
+
285
308
  end
286
309
 
287
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.29'
5
+ s.version = '0.0.34'
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.29
4
+ version: 0.0.34
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-22 00:00:00.000000000 Z
11
+ date: 2020-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: canonix