1.3.6 • Published 24 days ago

iticket-seatingplan-dev v1.3.6

Weekly downloads
-
License
-
Repository
-
Last release
24 days ago

iticket-seatingplan docs

Installing the package:

 npm install iticket-seatingplan

Importing SeatingPlan module in your component:

import { SeatingPlan } from  'iticket-seatingplan'

Using the SeatingPlan component

<SeatingPlan
	eventId={eventId}
	showingUid={showingUid}
	sessionId={sessionId}
	showingId={showingId}
	priceAgeId={priceAgeId}
	quantity={quantity}
	price={price}
	callbackFunction={callbackFunction}
	apiKey={apiKey}
/>

SeatingPlan

PropTypeDescription
eventIdintegereventId of event.required
showingUidstringshowingUid of the selected showing.required
showingIdintegershowingId of the selected showing.required
sessionIdstringsessionId from the initial CreateBasket endpoint.required
priceAgeIdintegerpriceAgeId selected by user.required
quantityintegerquantity specified by user.required
pricefloatprice specified by user if it is dynamically priced. Must be >= priceMinimum and <= priceMaximum. If not supplied, default price will be applied.optional
apiKeystringAPI key provided by iTICKET.required
callbackFunctionfunctioncallbackFunction to listen for SeatingPlan events.required

callbackFunction

This function will be triggered any time there is an update to the basket or an error has occurred. Below is a sample callbackFunction that just console.logs an event:

const  callbackFunction  = (e) => {
console.log('event', e)
}

Sample callback results are as follows:

  • A seat has been added to cart:

     {
       "type":"cart-change",
       "details":[
          {
             "showingSeatId":4158647,
             "showingId": 84164,
             "rowName":"I",
             "columnName":"13",
             "price": 51,
             "priceAgeName": "ADULT",
          }
       ]
    }
  • An error has occurred, *e.g. price specified is greater than or less than the set priceMinimum and/or priceMaximum*

     {
       "type":"error",
       "details":{
          "error":{
             "code":403,
             "message":"Price specified not allowed."
          }
       }
    }
1.3.6

24 days ago

1.3.5

24 days ago

1.3.4

1 month ago

1.3.3

1 month ago

1.3.2

1 month ago

1.3.1

1 month ago

1.3.0

1 month ago

1.2.9

1 month ago

1.2.8

4 months ago

1.2.7

4 months ago

1.2.6

4 months ago

1.2.5

4 months ago

1.2.4

4 months ago

1.2.3

5 months ago

1.2.0

5 months ago

1.2.2

5 months ago

1.2.1

5 months ago

1.1.9

7 months ago

1.1.8

7 months ago

1.1.7

7 months ago

1.1.6

7 months ago

1.1.1

8 months ago

1.1.0

8 months ago

1.1.5

7 months ago

1.1.4

7 months ago

1.1.3

7 months ago

1.1.2

8 months ago

1.0.33

8 months ago

1.0.32

8 months ago

1.0.31

8 months ago

1.0.35

8 months ago

1.0.34

8 months ago

1.0.29

8 months ago

1.0.28

8 months ago

1.0.27

9 months ago

1.0.30

8 months ago

1.0.26

9 months ago

1.0.25

9 months ago

1.0.24

9 months ago

1.0.23

10 months ago

1.0.22

10 months ago

1.0.21

10 months ago

1.0.20

10 months ago

1.0.19

10 months ago

1.0.18

10 months ago

1.0.17

10 months ago

1.0.16

10 months ago

0.0.6

11 months ago

0.0.4

11 months ago

0.0.3

11 months ago

0.0.2

11 months ago

0.0.1

11 months ago