PluginProbe ʕ •ᴥ•ʔ
Booking for Appointments and Events Calendar – Amelia / 2.4.6
Booking for Appointments and Events Calendar – Amelia v2.4.6
2.4.7 2.4.6 2.4.5 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 1 month ago appointmentWaitingListOptions.js 1 month ago attendee.js 1 month ago auth.js 1 month ago bookableType.js 1 month ago booking.js 1 month ago cabinet.js 1 month ago cabinetFilters.js 1 month ago coupon.js 1 month ago customFields.js 1 month ago customerInfo.js 1 month ago employee.js 1 month ago entities.js 3 weeks ago event.js 1 month ago eventBooking.js 1 month ago eventEntities.js 3 weeks ago eventWaitingListOptions.js 1 month ago pagination.js 1 month ago params.js 1 month ago payment.js 1 month ago persons.js 1 month ago recurring.js 1 month ago shortcodeParams.js 1 month ago stepByStepFilters.js 1 month ago tickets.js 5 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