PluginProbe ʕ •ᴥ•ʔ
Booking for Appointments and Events Calendar – Amelia / 2.4.4
Booking for Appointments and Events Calendar – Amelia v2.4.4
2.4.4 2.4.3 2.4.2 2.4.1 2.4 trunk 1.2.1 1.2.10 1.2.11 1.2.12 1.2.13 1.2.14 1.2.15 1.2.16 1.2.17 1.2.18 1.2.19 1.2.2 1.2.20 1.2.21 1.2.22 1.2.23 1.2.24 1.2.25 1.2.26 1.2.27 1.2.28 1.2.29 1.2.3 1.2.30 1.2.31 1.2.32 1.2.33 1.2.34 1.2.35 1.2.36 1.2.37 1.2.38 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.1.3 2.2 2.2.1 2.3
ameliabooking / v3 / src / store / modules / attendee.js
ameliabooking / v3 / src / store / modules Last commit date
appointment.js 2 days ago appointmentWaitingListOptions.js 2 days ago attendee.js 2 days ago auth.js 2 days ago bookableType.js 2 days ago booking.js 2 days ago cabinet.js 2 days ago cabinetFilters.js 2 days ago coupon.js 2 days ago customFields.js 2 days ago customerInfo.js 2 days ago employee.js 2 days ago entities.js 2 days ago event.js 2 days ago eventBooking.js 2 days ago eventEntities.js 2 days ago eventWaitingListOptions.js 2 days ago pagination.js 2 days ago params.js 2 days ago payment.js 2 days ago persons.js 2 days ago recurring.js 2 days ago shortcodeParams.js 2 days ago stepByStepFilters.js 2 days ago tickets.js 2 days ago
attendee.js
139 lines
1 function getDefaultAttendee() {
2 return {
3 id: null,
4 type: 'event',
5 eventId: null,
6 customerId: null,
7 customer: null,
8 persons: 1,
9 customFields: {},
10 ticketsData: [],
11 status: 'approved',
12 couponCode: '',
13 validateCoupon: false,
14 isBackendOrCabinet: true,
15 createPaymentLinks: false,
16 tax: null,
17 price: 0,
18 aggregatedPrice: true,
19 coupon: null,
20 payment: { gateway: 'onSite' },
21 payments: [],
22 active: false,
23 }
24 }
25
26 export default {
27 namespaced: true,
28
29 state: getDefaultAttendee(),
30
31 getters: {
32 getDefaultAttendee() {
33 return getDefaultAttendee()
34 },
35
36 getAttendee(state) {
37 return state
38 },
39
40 getId(state) {
41 return state.id
42 },
43
44 getEventId(state) {
45 return state.eventId
46 },
47
48 getCustomerId(state) {
49 return state.customerId
50 },
51
52 getCustomer(state) {
53 return state.customer
54 },
55
56 getStatus(state) {
57 return state.status
58 },
59
60 getPersons(state) {
61 return state.persons
62 },
63
64 getTickets(state) {
65 return state.ticketsData
66 },
67
68 getCustomFields(state) {
69 return state.customFields
70 },
71
72 getTax(state) {
73 return state.tax
74 },
75
76 getPrice(state) {
77 return state.price
78 },
79
80 getAggregatedPrice(state) {
81 return state.aggregatedPrice
82 },
83
84 getCoupon(state) {
85 return state.coupon
86 },
87
88 getPayment(state) {
89 return state.payment
90 },
91
92 getPayments(state) {
93 return state.payments
94 },
95
96 getActive(state) {
97 return state.active
98 },
99 },
100
101 mutations: {
102 setAttendee(state, payload = {}) {
103 Object.assign(state, getDefaultAttendee(), payload)
104 },
105
106 setCustomerId(state, payload) {
107 state.customerId = payload
108 },
109
110 setStatus(state, payload) {
111 state.status = payload
112 },
113
114 setPersons(state, payload) {
115 state.persons = payload
116 },
117
118 setTickets(state, payload) {
119 state.tickets = payload
120 },
121
122 setCustomFields(state, payload) {
123 state.customFields[payload.id].value = payload.value
124 },
125
126 setAggregatedPrice(state, payload) {
127 state.aggregatedPrice = payload
128 },
129
130 setCoupon(state, payload) {
131 state.coupon = payload
132 },
133
134 setActive(state, payload) {
135 state.active = payload
136 },
137 },
138 }
139