Impacts migration de la route GET /v1/products/{product_id}/accommodations

  • Outdated
  • July 5, 2022
  • 1 related route

Context

In order to improve accommodations' presentation, we will have multiple plans instead of one


As a frontend developer I want to display multiple plans In order to better present accommodations when they have multiple floors


Impacts

Route to call: GET/v2/products/{product_id}/accommodations

Input parameters : unchanged

Output model:

[
  {
    "id": "S5+",
    "label": "Suite Famille Espace Exclusive Collection – Front de Mer, Rénovée",
    "exclusive_collection": true,
    "description": "Face à la mer, cette Suite est le lieu idéal pour un séjour en famille. Le bois clair mêlé aux tonalités bleu-grises composent un décor paisible. La chambre parentale dispose d’un canapé susceptible de se transformer en lit pour les plus petits. Les enfants profitent de leur espace séparé. Dehors se succèdent la terrasse, le jardin et l’océan.",
    "seller_description": "Les Suites de l'espace Tiara sont composées de la sorte :\nSas d'entrée avec 3 portes :\n- Porte de droite donnant sur la chambre des enfants avec 2 lits, dressing, télévision et fenêtre ( bloquée à la moitie par une vis pour éviter l’ouverture entière de celle-ci et assurer plus de sécurité).\n- Porte centrale donnant sur une salle d’eau avec douche, vasque et WC.\n- Porte de gauche donnant sur la chambre parentale ou le coin salon est séparé par moitié par un panneau de bois / salle de bain avec baignoire séparée par une porte et toilettes séparées aussi.\n",
    "area": {
      "min": 70,
      "max": 70,
      "unit": "m²"
    },
    "capacity": {
      "min": 1,
      "max": 5
    },
    "ranking": "HIGH",
    "comfort_type": {
      "id": "typeoflodging_comfort_type_suite",
      "label": "Suite"
    },
    "total_stock": 24,
    "connecting_room": false,
    "family_room": false,
    "reduced_mobility_access": false,
    "view": {
      "id": "sea_view",
      "label": "Vue Mer"
    },
    "accommodation_categories": [
      {
        "id": "000020",
        "label": "Espace Exclusive Collection"
      }
    ],
    "strengths": [
      {
        "id": "lounge",
        "label": "Salon"
      },
      {
        "id": "separate_rooms",
        "label": "Chambres séparées"
      }
    ],
    "equipments": [
      {
        "id": "MAT_a_conditioning",
        "label": "Climatisation",
        "ranking": "VERY_HIGH"
      },
      {
        "id": "MAT_000438",
        "label": "Bain de soleil",
        "ranking": "HIGH"
      },
      {
        "id": "MAT_baby_bed",
        "label": "Lit bébé (dès la réservation)",
        "ranking": "HIGH"
      },
      {
        "id": "MAT_baby_welcome_pack",
        "label": "Club Med Baby Welcome ",
        "ranking": "HIGH"
      },
      {
        "id": "MAT_000005",
        "label": "Téléphone",
        "ranking": "MEDIUM"
      },
      {
        "id": "MAT_000211",
        "label": "Accès Wi-Fi",
        "ranking": "MEDIUM"
      },
      {
        "id": "MAT_000223",
        "label": "Télévision",
        "ranking": "MEDIUM"
      },
      {
        "id": "MAT_000428",
        "label": "Banquette",
        "ranking": "MEDIUM"
      },
      {
        "id": "MAT_000181",
        "label": "Machine expresso",
        "ranking": "LOW"
      },
      {
        "id": "MAT_000294",
        "label": "Bouilloire - Nécessaire à café et à thé",
        "ranking": "LOW"
      },
      {
        "id": "MAT_000232",
        "label": "Fer et planche à repasser dans la chambre",
        "ranking": "VERY_LOW"
      },
      {
        "id": "MAT_000261",
        "label": "Parapluie",
        "ranking": "VERY_LOW"
      },
      {
        "id": "MAT_safe",
        "label": "Coffre-fort",
        "ranking": "VERY_LOW"
      },
      {
        "id": "MAT_000408",
        "label": "Prises électriques type A: 100 -127 V",
        "ranking": ""
      },
      {
        "id": "MAT_equipment_usb_socket",
        "label": "Prise USB",
        "ranking": ""
      },
      {
        "id": "MAT_socket_type_b___100_127_v",
        "label": "Prise électrique type B : 100-127 V",
        "ranking": ""
      }
    ],
    "services": [
      {
        "id": "MST_ACT_SERLGT_000313",
        "label": "Champagne servi à la flûte dans le lounge privé (18h-23h)",
        "ranking": "VERY_HIGH"
      },
      {
        "id": "MST_ACT_SERLGT_000329",
        "label": "Piscine réservée aux G.M® logés dans des Suites",
        "ranking": "VERY_HIGH"
      },
      {
        "id": "MST_ACT_SERLGT_upgrade_transfer_package",
        "label": "Transfert privilégié pour les G.M® avec le Forfait séjour et transport",
        "ranking": "VERY_HIGH"
      },
      {
        "id": "MST_ACT_SERLGT_000321",
        "label": "Prise en charge des bagages en chambre",
        "ranking": "HIGH"
      },
      {
        "id": "MST_ACT_SERLGT_000336",
        "label": "Room service du petit déjeuner continental inclus",
        "ranking": "HIGH"
      },
      {
        "id": "MST_ACT_SERLGT_000338",
        "label": "Réservation prioritaire au Club Med Spa",
        "ranking": "HIGH"
      },
      {
        "id": "MST_ACT_SERLGT_000339",
        "label": "Service de bar et snacking privatif à la conciergerie",
        "ranking": "HIGH"
      },
      {
        "id": "MST_ACT_SERLGT_000340",
        "label": "Service de conciergerie",
        "ranking": "HIGH"
      },
      {
        "id": "MST_ACT_SERLGT_ROOM_SERVICE_COST",
        "label": "Room service avec supplément de 11h à 23h",
        "ranking": "HIGH"
      },
      {
        "id": "MST_ACT_SERLGT_priority_specialty_restaurant",
        "label": "Réservation prioritaire au Restaurant de Spécialités",
        "ranking": "HIGH"
      },
      {
        "id": "MST_ACT_minibar_refilled_daily",
        "label": "Minibar (boissons non-alcoolisées) - approvisionné quotidiennement",
        "ranking": "HIGH"
      },
      {
        "id": "MST_ACT_SERLGT_000317",
        "label": "Déjeuner offert en cas d'arrivée avant 15h",
        "ranking": "MEDIUM"
      },
      {
        "id": "MST_ACT_SERLGT_000341",
        "label": "Préparation de la chambre pour la nuit",
        "ranking": "VERY_LOW"
      },
      {
        "id": "MST_ACT_SERLGT_000439",
        "label": "Serviette de plage",
        "ranking": "VERY_LOW"
      },
      {
        "id": "MST_ACT_SERLGT_000418",
        "label": "Service de blanchisserie (à la carte)",
        "ranking": ""
      },
      {
        "id": "MST_ACT_SERLGT_000483",
        "label": "Service de ménage à l'heure de votre convenance",
        "ranking": ""
      }
    ],
    "opening_dates": [
      {
        "opening": "20220302",
        "closing": "20220429"
      },
      {
        "opening": "20220507",
        "closing": "20220914"
      },
      {
        "opening": "20220918",
        "closing": "20221115"
      },
      {
        "opening": "20221120",
        "closing": "20230630"
      }
    ],
    "images": [
      "https://ns.clubmed.com/dream/RESORTS_3T___4T/Caraibes_et_Cotes_Americaines/Punta_Cana/238211-ubp95qpbf2-swhr.jpg",
      "https://ns.clubmed.com/dream/RESORTS_3T___4T/Caraibes_et_Cotes_Americaines/Punta_Cana/238193-6cbjfkipwx-swhr.jpg",
      "https://ns.clubmed.com/dream/RESORTS_3T___4T/Caraibes_et_Cotes_Americaines/Punta_Cana/238214-x9hfmcdoee-swhr.jpg",
      "https://ns.clubmed.com/dream/RESORTS_3T___4T/Caraibes_et_Cotes_Americaines/Punta_Cana/238217-amgisrdep6-swhr.jpg"
    ],
    "bathroom_equipments": [
      {
        "id": "typeoflodging_bathroom_facilities_bath",
        "label": "Baignoire"
      },
      {
        "id": "typeoflodging_bathroom_facilities_shower",
        "label": "Douche"
      },
      {
        "id": "typeoflodging_bathroom_facilities_double_washbasin",
        "label": "Double Vasque"
      },
      {
        "id": "typeoflodging_bathroom_facilities_separate_toilets",
        "label": "Toilettes séparées"
      },
      {
        "id": "typeoflodging_bathroom_facilities_bathrobes",
        "label": "Peignoir"
      },
      {
        "id": "typeoflodging_bathroom_facilities_slippers",
        "label": "Chaussons"
      },
      {
        "id": "typeoflodging_bathroom_facilities_hair_dryer",
        "label": "Sèche-cheveux"
      },
      {
        "id": "typeoflodging_bathroom_facilities_magnifying_mirror",
        "label": "Miroir de beauté"
      },
      {
        "id": "typeoflodging_bathroom_facilities_branded_amenities",
        "label": "Produits d'accueil (shampoing, gel douche, crème) "
      },
      {
        "id": "typeoflodging_bathroom_facilities_accessories_amenities",
        "label": "Produits d'accueil : accessoires (bonnet de douche, vanity kit, kit manucure, etc.)"
      }
    ],
    "outside_facilities": [
      {
        "id": "typeoflodging_outside_facilities_furnished_terrace",
        "label": "Terrasse aménagée",
        "area": null
      }
    ],
    "restriction_information": [],
    "_links": [
      {
        "rel": "self",
        "method": "GET",
        "href": "https://api.clubmed.com/v1/products/PCAC/accommodations/S5+"
      },
      {
        "rel": "accommodation_categories",
        "method": "GET",
        "href": "https://api.clubmed.com/v0/products/PCAC/accommodation_categories/000020"
      }
    ],
    "associated_accommodations": [],
-    "plan": "https://ns.clubmed.com/dream/PLANS_CHAMBRES/Caraibes_et_Cotes_Americaines/Punta_Cana/318733-o5ydao6gw9-swhr.jpg",
+    "plans": [
+      "https://ns.clubmed.com/dream/PLANS_CHAMBRES/Caraibes_et_Cotes_Americaines/Punta_Cana/318733-o5ydao6gw9-swhr.jpg"
+    ]
  }
]