@protacon/muster-booking-frontend

1.23.6 • Public • Published

Muster booking frontend

Online booking frontend

Install

npm install @protacon/muster-booking-frontend

Usage

import BookingComponent from '@protacon/muster-booking-frontend'
import '@protacon/muster-booking-frontend/dist/styles.bundle.css'

...

render() {
	return (
		<BookingComponent
			locale="sv"
			timezone="Europe/Stockholm"
			apiEndpoint="https://.../booking.api/v1"
			chainId={2}
			googleApiKey="..."
			maxStations={5}

			// Optional. Preselect reservation params
			plateNumber="..."
			product="..." // Inspection | PostInspection | ConditionInspection
			stationId={...}

			// Optional. Start component with search reservation form, optionaly pass default values
			searchReservation={{
				bookingNumber: '...',
				lastName: '...',
			}}
			/>
	)
}

To start component with existing reservation payment navigate to page with component with search:

?continuePaymentReservationUid={reservationUid}&stationId={stationId}

Development

npm start
open http://localhost:8080/

Readme

Keywords

none

Package Sidebar

Install

npm i @protacon/muster-booking-frontend

Weekly Downloads

16

Version

1.23.6

License

SEE LICENSE IN LICENSE.md

Unpacked Size

238 kB

Total Files

14

Last publish

Collaborators

  • ptcs_seppo_storage
  • tarlepp
  • savpek
  • eerikkuoppala
  • nevant
  • tarvainen