Skip to content

Commit 0ea21cf

Browse files
committed
feat: add tixly ticket system
KK-1215 KK-1219. Add the Tixly external ticket system next to Ticketmaster and Lippupiste. The implementation is the same between the all 3 of them.
1 parent 9ab5966 commit 0ea21cf

8 files changed

Lines changed: 99 additions & 8 deletions

File tree

src/common/translation/en.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,9 @@
168168
},
169169
"LIPPUPISTE": {
170170
"label": "Lippupiste"
171+
},
172+
"TIXLY": {
173+
"label": "Tixly"
171174
}
172175
}
173176
},

src/common/translation/fi.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,9 @@
168168
},
169169
"LIPPUPISTE": {
170170
"label": "Lippupiste"
171+
},
172+
"TIXLY": {
173+
"label": "Tixly"
171174
}
172175
}
173176
},

src/common/translation/sv.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,9 @@
168168
},
169169
"LIPPUPISTE": {
170170
"label": "Lippupiste"
171+
},
172+
"TIXLY": {
173+
"label": "Tixly"
171174
}
172175
}
173176
},

src/domain/api/generatedTypes/graphql.tsx

Lines changed: 62 additions & 8 deletions
Large diffs are not rendered by default.

src/domain/events/choices.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,8 @@ export const ticketSystemChoices = [
2828
id: TicketSystem.Lippupiste,
2929
name: 'events.fields.ticketSystem.choices.LIPPUPISTE.label',
3030
},
31+
{
32+
id: TicketSystem.Tixly,
33+
name: 'events.fields.ticketSystem.choices.TIXLY.label',
34+
},
3135
];

src/domain/events/mutations/EventMutations.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ export const addEventMutation = gql`
1919
url
2020
endTime
2121
}
22+
... on TixlyEventTicketSystem {
23+
url
24+
endTime
25+
}
2226
}
2327
translations {
2428
languageCode
@@ -66,6 +70,10 @@ export const updateEventMutation = gql`
6670
url
6771
endTime
6872
}
73+
... on TixlyEventTicketSystem {
74+
url
75+
endTime
76+
}
6977
}
7078
}
7179
}

src/domain/events/queries/EventQueries.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ export const eventsQuery = gql`
3636
url
3737
endTime
3838
}
39+
... on TixlyEventTicketSystem {
40+
url
41+
endTime
42+
}
3943
}
4044
}
4145
}
@@ -92,6 +96,12 @@ export const eventQuery = gql`
9296
url
9397
endTime
9498
}
99+
... on TixlyEventTicketSystem {
100+
usedPasswordCount
101+
freePasswordCount
102+
url
103+
endTime
104+
}
95105
}
96106
}
97107
}

src/domain/occurrences/mutations/OccurrenceMutations.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ export const addOccurrenceMutation = gql`
2929
... on LippupisteOccurrenceTicketSystem {
3030
url
3131
}
32+
... on TixlyOccurrenceTicketSystem {
33+
url
34+
}
3235
}
3336
}
3437
}
@@ -87,6 +90,9 @@ export const updateOccurrenceMutation = gql`
8790
... on LippupisteOccurrenceTicketSystem {
8891
url
8992
}
93+
... on TixlyOccurrenceTicketSystem {
94+
url
95+
}
9096
}
9197
}
9298
}

0 commit comments

Comments
 (0)