culturecreates / artsdata-planet-lavitrine

Export pipeline from Artsdata to LaVitrine
1 stars 0 forks source link

Remove extra nested AggregateOffer #20

Closed saumier closed 8 months ago

saumier commented 9 months ago

The nested offers for LaVitrine should NOT include the extra AggregateOffer with the "additionalType": "Paid". This is only for the Artsdata offer modelling, and should not be carried over to the LaVitrine model.

See discussion https://github.com/culturecreates/artsdata-planet-lavitrine/discussions/3#discussioncomment-7835731

"offers": {
            "@id": "http://kg.footlight.io/resource/placedesarts-com_nessuie-jamais-de-larmes-sans-gants#2023-12-13T150000-0500_WrappedOffer",
            "type": "AggregateOffer",
            "url": "https://placedesarts.com/fr/evenement/nessuie-jamais-de-larmes-sans-gants",
            "lowPrice": {
              "type": "xsd:decimal",
              "@value": "45.00"
            },
            "highPrice": {
              "type": "xsd:decimal",
              "@value": "55.00"
            },
            "offers": [
              {
                "@id": "http://kg.footlight.io/resource/placedesarts-com_nessuie-jamais-de-larmes-sans-gants#Offer_0",
                "type": "Offer",
                "availability": "InStock",
                "price": "45.00",
                "url": "https://am.ticketmaster.com/pda/fr-ca/virtual-venue/RDNEMTIxM1A="
              },
              ...
              {
                "@id": "http://kg.footlight.io/resource/placedesarts-com_nessuie-jamais-de-larmes-sans-gants#Offer_4",
                "type": "Offer",
                "availability": "InStock",
                "price": "55.00",
                "url": "https://am.ticketmaster.com/pda/fr-ca/virtual-venue/RDNEMTIxN1A="
              },
              **{
                "@id": "http://kg.footlight.io/resource/placedesarts-com_nessuie-jamais-de-larmes-sans-gants#AggregateOffer",
                "type": "AggregateOffer",
                "additionalType": "Paid"
              }**
            ]
          }