apidae 1.2.25 → 1.2.26

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 55a677481b1efaae797cfb4a8eee0934ba53f43f22798cbffcf75a6ffb1be7d4
4
- data.tar.gz: cfac72c0ac44ddbd30e6f2a0579da62dc31fb96c0e901389de0fda9c0ef6d371
3
+ metadata.gz: 4d9d3c13df72c795475b33e63bc75367147351c089ede7ba7149f06c24429fad
4
+ data.tar.gz: 7e5bd951da3d93328666ad3523463e4acb63383138aedb942723fe65ce28cf3b
5
5
  SHA512:
6
- metadata.gz: 2926c3b6b1010966dbe2bfd8822cc6eba1d712881d611139f0686c2fbcf326b8093f7136acf72e5507027696aa6b6eea36c3a52d4782a9967a58c042becd270c
7
- data.tar.gz: 772265b17f2cdeecee25670aa7faaa94f9c97b0b4b6c2e36d657326e84d071e23e02e7667541d69b8f93ffc67574c36739de97cd1a0c252648165c32f3550903
6
+ metadata.gz: 81b90a5d0fb55d40adcbd086f21b2ff0fd10480b8182a0f412e5e2cf2d3d5d253f72ae455c2cb0fc7558bc59e7e45e085ef4f7fc9077865f8f7046892dc35480
7
+ data.tar.gz: efdba9c55caa514b0dbc9dfc2f26f7e84903675b17e8d611c279f7e0dbae657e752d20cc075a2376f43997ce45c4c78ab9c5f38603467caf879e2e3d936e135a
@@ -251,8 +251,10 @@ module Apidae
251
251
  desc = rates_hash[:gratuit] ? {DEFAULT_LOCALE => 'gratuit'} : node_value(rates_hash, :tarifsEnClair, *locales)
252
252
  values = rates_hash[:periodes].blank? ? [] : rates_hash[:periodes].map {|p| build_rate(p, *locales)}
253
253
  methods = rates_hash[:modesPaiement].blank? ? [] : rates_hash[:modesPaiement].map {|p| p[:id]}
254
+
254
255
  {
255
256
  rates_desc: desc, rates: values, payment_methods: methods,
257
+ tax_included: rates_hash[:taxeDeSejourIncluse].blank? ? nil : (rates_hash[:taxeDeSejourIncluse] == 'OUI'),
256
258
  rates_desc_mode: rates_hash[:tarifsEnClairGenerationMode] == 'AUTOMATIQUE' ? MODE_AUTO : MODE_MANUAL,
257
259
  includes: node_value(rates_hash, :leTarifComprend, *locales),
258
260
  excludes: node_value(rates_hash, :leTarifNeComprendPas, *locales),
@@ -275,6 +277,8 @@ module Apidae
275
277
  age_min: presta_hash[:ageMin], age_max: presta_hash[:ageMax]} : {}),
276
278
  classification: nodes_ids(data_hash[:classement], data_hash[:classementPrefectoral], data_hash[:classification]) +
277
279
  lists_ids(data_hash[:classementsGuides]) + lists_ids(data_hash[:classements]),
280
+ classification_date: data_hash[:dateClassement],
281
+ classification_ref: data_hash[:numeroClassement],
278
282
  labels: lists_ids(data_hash[:labels], data_hash[:labelsChartesQualite], prestations_hash[:labelsTourismeHandicap]) +
279
283
  (node_id(data_hash, :typeLabel) ? [node_id(data_hash, :typeLabel)] : []),
280
284
  chains: lists_ids(data_hash[:chaines]) + nodes_ids(data_hash[:chaineEtLabel]),
@@ -288,7 +292,10 @@ module Apidae
288
292
  extra: apidae_obj.apidae_type == Obj::SPA ? node_value(data_hash, :formuleHebergement, *locales) : node_value(prestations_hash, :complementAccueil, *locales),
289
293
  duration: apidae_obj.apidae_type == Obj::SPA ? {days: data_hash[:nombreJours], nights: data_hash[:nombreNuits]} : data_hash[:dureeSeance],
290
294
  certifications: data_hash[:agrements].blank? ? [] : data_hash[:agrements].map {|a| {id: a[:type][:id], identifier: a[:numero]}},
291
- business: business_hash
295
+ business: (business_hash || {}).except(:sallesEquipeesPour, :sallesEquipement, :sallesRestauration, :sallesReunion, :sallesHebergement),
296
+ business_equipments: lists_ids((business_hash || {})[:sallesEquipeesPour], (business_hash || {})[:sallesEquipement],
297
+ (business_hash || {})[:sallesRestauration], (business_hash || {})[:sallesHebergement]),
298
+ business_rooms: (business_hash || {})[:sallesReunion]
292
299
  }
293
300
  end
294
301
 
@@ -332,6 +339,7 @@ module Apidae
332
339
  booking_hash[:visits_allowed] = visits_hash[:visitable] == true
333
340
  booking_hash[:visits_desc] = node_value(visits_hash, :complementVisite, *locales)
334
341
  booking_hash[:visits_duration] = visits_hash[:dureeMoyenneVisiteIndividuelle]
342
+ booking_hash[:visits_services] = lists_ids(visits_hash[:prestationsVisitesGroupees]) + lists_ids(visits_hash[:prestationsVisitesIndividuelles])
335
343
  end
336
344
  booking_hash
337
345
  end
@@ -14,14 +14,15 @@ module Apidae
14
14
  store_accessor :description_data, :short_desc, :long_desc, :theme_desc, :private_desc
15
15
  store_accessor :pictures_data, :pictures
16
16
  store_accessor :attachments_data, :attachments
17
- store_accessor :type_data, :categories, :themes, :capacity, :classification, :labels, :chains, :area, :track,
18
- :tricky_sections, :products, :audience, :animals, :animals_desc, :extra, :duration, :certifications, :business
17
+ store_accessor :type_data, :categories, :themes, :capacity, :classification, :classification_date,
18
+ :classification_ref, :labels, :chains, :area, :track, :tricky_sections, :products, :audience, :animals,
19
+ :animals_desc, :extra, :duration, :certifications, :business, :business_equipments, :business_rooms
19
20
  store_accessor :entity_data, :entity_id, :entity_name, :service_provider_id, :is_service_provider, :legal
20
21
  store_accessor :contact_data, :telephone, :email, :website, :google, :facebook, :twitter, :yelp, :trip_advisor, :fax,
21
22
  :mobile_website, :shorty_url, :contacts
22
23
  store_accessor :location_data, :address, :place, :latitude, :longitude, :access, :territories, :environments, :altitude, :map_reference
23
24
  store_accessor :openings_data, :openings_desc, :openings_desc_mode, :openings, :time_periods, :openings_extra
24
- store_accessor :rates_data, :rates_desc, :rates_desc_mode, :rates, :payment_methods, :includes, :excludes, :rates_extra
25
+ store_accessor :rates_data, :rates_desc, :rates_desc_mode, :rates, :payment_methods, :includes, :excludes, :rates_extra, :tax_included
25
26
  store_accessor :service_data, :services, :equipments, :comfort, :activities, :challenged, :languages
26
27
  store_accessor :booking_data, :booking_desc, :booking_entities, :visits_allowed, :visits_desc, :visits_duration
27
28
  store_accessor :tags_data, :promo, :internal, :linked
@@ -1,3 +1,3 @@
1
1
  module Apidae
2
- VERSION = "1.2.25"
2
+ VERSION = "1.2.26"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apidae
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.25
4
+ version: 1.2.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean-Baptiste Vilain
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-20 00:00:00.000000000 Z
11
+ date: 2022-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails