@stamhoofd/backend 2.82.0 → 2.83.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +10 -10
- package/src/audit-logs/GroupLogger.ts +3 -3
- package/src/audit-logs/MemberResponsibilityRecordLogger.ts +1 -1
- package/src/audit-logs/OrderLogger.ts +1 -1
- package/src/audit-logs/RegistrationLogger.ts +1 -1
- package/src/endpoints/admin/members/ChargeMembersEndpoint.ts +4 -4
- package/src/endpoints/admin/memberships/ChargeMembershipsEndpoint.ts +1 -1
- package/src/endpoints/admin/organizations/ChargeOrganizationsEndpoint.ts +5 -5
- package/src/endpoints/admin/organizations/GetOrganizationsEndpoint.ts +1 -1
- package/src/endpoints/admin/organizations/PatchOrganizationsEndpoint.ts +8 -8
- package/src/endpoints/auth/CreateAdminEndpoint.ts +2 -2
- package/src/endpoints/auth/CreateTokenEndpoint.ts +10 -10
- package/src/endpoints/auth/ForgotPasswordEndpoint.ts +2 -2
- package/src/endpoints/auth/PatchUserEndpoint.ts +9 -9
- package/src/endpoints/auth/SignupEndpoint.ts +2 -2
- package/src/endpoints/auth/VerifyEmailEndpoint.ts +3 -3
- package/src/endpoints/global/audit-logs/GetAuditLogsEndpoint.ts +1 -1
- package/src/endpoints/global/email/GetEmailAddressEndpoint.ts +1 -1
- package/src/endpoints/global/email/GetEmailEndpoint.ts +1 -1
- package/src/endpoints/global/email/ManageEmailAddressEndpoint.ts +1 -1
- package/src/endpoints/global/email/PatchEmailEndpoint.ts +4 -4
- package/src/endpoints/global/events/GetEventNotificationsEndpoint.ts +1 -1
- package/src/endpoints/global/events/PatchEventNotificationsEndpoint.ts +1 -1
- package/src/endpoints/global/events/PatchEventsEndpoint.ts +22 -16
- package/src/endpoints/global/files/ExportToExcelEndpoint.ts +1 -1
- package/src/endpoints/global/files/UploadFile.ts +14 -2
- package/src/endpoints/global/files/UploadImage.ts +2 -2
- package/src/endpoints/global/members/GetMemberFamilyEndpoint.ts +2 -2
- package/src/endpoints/global/members/GetMembersEndpoint.ts +1 -1
- package/src/endpoints/global/members/PatchOrganizationMembersEndpoint.test.ts +11 -11
- package/src/endpoints/global/members/PatchOrganizationMembersEndpoint.ts +34 -34
- package/src/endpoints/global/organizations/CheckRegisterCodeEndpoint.ts +1 -1
- package/src/endpoints/global/organizations/CreateOrganizationEndpoint.ts +5 -5
- package/src/endpoints/global/platform/PatchPlatformEnpoint.ts +1 -1
- package/src/endpoints/global/registration/GetPaymentRegistrations.ts +2 -2
- package/src/endpoints/global/registration/PatchUserMembersEndpoint.test.ts +10 -10
- package/src/endpoints/global/registration/PatchUserMembersEndpoint.ts +4 -4
- package/src/endpoints/global/registration/RegisterMembersEndpoint.ts +37 -37
- package/src/endpoints/global/registration-periods/PatchRegistrationPeriodsEndpoint.ts +2 -2
- package/src/endpoints/organization/dashboard/documents/GetDocumentTemplateXML.ts +1 -1
- package/src/endpoints/organization/dashboard/documents/PatchDocumentEndpoint.ts +5 -5
- package/src/endpoints/organization/dashboard/documents/PatchDocumentTemplateEndpoint.ts +2 -2
- package/src/endpoints/organization/dashboard/email/CheckEmailBouncesEndpoint.ts +1 -1
- package/src/endpoints/organization/dashboard/email-templates/PatchEmailTemplatesEndpoint.ts +3 -3
- package/src/endpoints/organization/dashboard/organization/PatchOrganizationEndpoint.ts +9 -9
- package/src/endpoints/organization/dashboard/organization/SetOrganizationDomainEndpoint.ts +3 -3
- package/src/endpoints/organization/dashboard/payments/GetMemberBalanceEndpoint.ts +1 -1
- package/src/endpoints/organization/dashboard/payments/GetPaymentsEndpoint.ts +1 -1
- package/src/endpoints/organization/dashboard/payments/PatchBalanceItemsEndpoint.ts +11 -11
- package/src/endpoints/organization/dashboard/payments/PatchPaymentsEndpoint.ts +13 -13
- package/src/endpoints/organization/dashboard/registration-periods/PatchOrganizationRegistrationPeriodsEndpoint.ts +16 -16
- package/src/endpoints/organization/dashboard/stripe/DeleteStripeAccountEndpoint.ts +1 -1
- package/src/endpoints/organization/dashboard/stripe/GetStripeAccountLinkEndpoint.ts +1 -1
- package/src/endpoints/organization/dashboard/stripe/GetStripeLoginLinkEndpoint.ts +1 -1
- package/src/endpoints/organization/dashboard/stripe/UpdateStripeAccountEndpoint.ts +1 -1
- package/src/endpoints/organization/dashboard/users/CreateApiUserEndpoint.ts +1 -1
- package/src/endpoints/organization/dashboard/users/DeleteUserEndpoint.ts +2 -2
- package/src/endpoints/organization/dashboard/users/PatchApiUserEndpoint.ts +2 -2
- package/src/endpoints/organization/dashboard/webshops/CreateWebshopEndpoint.ts +4 -4
- package/src/endpoints/organization/dashboard/webshops/PatchDiscountCodesEndpoint.ts +2 -2
- package/src/endpoints/organization/dashboard/webshops/PatchWebshopEndpoint.ts +8 -8
- package/src/endpoints/organization/dashboard/webshops/PatchWebshopTicketsEndpoint.ts +1 -1
- package/src/endpoints/organization/shared/ExchangePaymentEndpoint.ts +1 -1
- package/src/endpoints/organization/shared/GetDocumentHtml.ts +2 -2
- package/src/endpoints/organization/shared/GetPaymentEndpoint.ts +1 -1
- package/src/endpoints/organization/webshops/CheckWebshopDiscountCodesEndpoint.ts +1 -1
- package/src/endpoints/organization/webshops/GetOrderByPaymentEndpoint.ts +2 -2
- package/src/endpoints/organization/webshops/GetOrderEndpoint.ts +1 -1
- package/src/endpoints/organization/webshops/GetTicketsEndpoint.ts +3 -3
- package/src/endpoints/organization/webshops/GetWebshopEndpoint.ts +1 -1
- package/src/endpoints/organization/webshops/PlaceOrderEndpoint.ts +10 -8
- package/src/excel-loaders/event-notifications.ts +11 -11
- package/src/excel-loaders/members.ts +34 -34
- package/src/excel-loaders/organizations.ts +23 -23
- package/src/excel-loaders/payments.ts +39 -39
- package/src/excel-loaders/receivable-balances.ts +21 -21
- package/src/helpers/AddressValidator.ts +6 -6
- package/src/helpers/AdminPermissionChecker.ts +7 -4
- package/src/helpers/AuthenticatedStructures.ts +8 -8
- package/src/helpers/BuckarooHelper.ts +1 -1
- package/src/helpers/Context.ts +3 -3
- package/src/helpers/FileCache.ts +7 -7
- package/src/helpers/ForwardHandler.ts +1 -1
- package/src/helpers/GlobalHelper.ts +6 -4
- package/src/helpers/MembershipCharger.ts +2 -2
- package/src/helpers/SetupStepUpdater.ts +1 -1
- package/src/helpers/StripeHelper.ts +7 -7
- package/src/helpers/XlsxTransformerColumnHelper.ts +18 -18
- package/src/services/DocumentService.ts +1 -1
- package/src/services/EventNotificationService.ts +1 -1
- package/src/services/MemberNumberService.ts +3 -3
- package/src/services/SSOService.ts +5 -5
- package/src/sql-filters/members.ts +1 -1
- package/tests/e2e/private-files.test.ts +3 -3
|
@@ -28,11 +28,11 @@ type Object = OrganizationWithResponsibilities;
|
|
|
28
28
|
// Assign to a typed variable to assure we have correct type checking in place
|
|
29
29
|
const sheet: XlsxTransformerSheet<Object, Object> = {
|
|
30
30
|
id: 'organizations',
|
|
31
|
-
name:
|
|
31
|
+
name: $t(`2a033cd8-b9e4-4a92-a8a6-b4a687d87e79`),
|
|
32
32
|
columns: [
|
|
33
33
|
{
|
|
34
34
|
id: 'id',
|
|
35
|
-
name:
|
|
35
|
+
name: $t(`29360811-3663-496c-8d8f-c9fdf9467a74`),
|
|
36
36
|
width: 40,
|
|
37
37
|
getValue: (object: Object) => ({
|
|
38
38
|
value: object.id,
|
|
@@ -40,7 +40,7 @@ const sheet: XlsxTransformerSheet<Object, Object> = {
|
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
id: 'uri',
|
|
43
|
-
name:
|
|
43
|
+
name: $t(`27cfaf26-6b88-4ebc-a50a-627a9f0f9e64`),
|
|
44
44
|
width: 20,
|
|
45
45
|
getValue: (object: Object) => ({
|
|
46
46
|
value: object.uri,
|
|
@@ -48,7 +48,7 @@ const sheet: XlsxTransformerSheet<Object, Object> = {
|
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
id: 'name',
|
|
51
|
-
name:
|
|
51
|
+
name: $t(`522fb6c5-6d4d-4d9c-94b7-3e282fb0ea1f`),
|
|
52
52
|
width: 50,
|
|
53
53
|
getValue: (object: Object) => ({
|
|
54
54
|
value: object.name,
|
|
@@ -56,13 +56,13 @@ const sheet: XlsxTransformerSheet<Object, Object> = {
|
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
58
|
id: 'tags',
|
|
59
|
-
name:
|
|
59
|
+
name: $t(`5f8c1ac5-a650-4046-80b6-0fe37fa12439`),
|
|
60
60
|
width: 50,
|
|
61
61
|
getValue: (object: Object) => {
|
|
62
62
|
const platform = PlatformStruct.shared;
|
|
63
63
|
|
|
64
64
|
return {
|
|
65
|
-
value: object.meta.tags.map(tag => platform.config.tags.find(t => t.id === tag)?.name ??
|
|
65
|
+
value: object.meta.tags.map(tag => platform.config.tags.find(t => t.id === tag)?.name ?? $t(`bd1e59c8-3d4c-4097-ab35-0ce7b20d0e50`)).join(', '),
|
|
66
66
|
};
|
|
67
67
|
},
|
|
68
68
|
},
|
|
@@ -75,7 +75,7 @@ const sheet: XlsxTransformerSheet<Object, Object> = {
|
|
|
75
75
|
|
|
76
76
|
const responsibilities: XlsxTransformerSheet<Object, MemberResponsibilityRecordWithMemberAndOrganization> = {
|
|
77
77
|
id: 'responsibilities',
|
|
78
|
-
name:
|
|
78
|
+
name: $t(`d0defb77-0a25-4b85-a03e-57569c5edf6c`),
|
|
79
79
|
transform(organization) {
|
|
80
80
|
return organization.responsibilities.map(r => MemberResponsibilityRecordWithMemberAndOrganization.create({
|
|
81
81
|
...r,
|
|
@@ -85,7 +85,7 @@ const responsibilities: XlsxTransformerSheet<Object, MemberResponsibilityRecordW
|
|
|
85
85
|
columns: [
|
|
86
86
|
{
|
|
87
87
|
id: 'organization.id',
|
|
88
|
-
name:
|
|
88
|
+
name: $t(`29360811-3663-496c-8d8f-c9fdf9467a74`),
|
|
89
89
|
width: 35,
|
|
90
90
|
getValue: (object: MemberResponsibilityRecordWithMemberAndOrganization) => ({
|
|
91
91
|
value: object.organization.id,
|
|
@@ -93,7 +93,7 @@ const responsibilities: XlsxTransformerSheet<Object, MemberResponsibilityRecordW
|
|
|
93
93
|
},
|
|
94
94
|
{
|
|
95
95
|
id: 'organization.uri',
|
|
96
|
-
name:
|
|
96
|
+
name: $t(`27cfaf26-6b88-4ebc-a50a-627a9f0f9e64`),
|
|
97
97
|
width: 20,
|
|
98
98
|
getValue: (object: MemberResponsibilityRecordWithMemberAndOrganization) => ({
|
|
99
99
|
value: object.organization.uri,
|
|
@@ -101,7 +101,7 @@ const responsibilities: XlsxTransformerSheet<Object, MemberResponsibilityRecordW
|
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
103
|
id: 'organization.name',
|
|
104
|
-
name:
|
|
104
|
+
name: $t(`c14b0320-cb84-4386-a39a-aa9ffb5eb886`),
|
|
105
105
|
width: 50,
|
|
106
106
|
getValue: (object: MemberResponsibilityRecordWithMemberAndOrganization) => ({
|
|
107
107
|
value: object.organization.name,
|
|
@@ -109,7 +109,7 @@ const responsibilities: XlsxTransformerSheet<Object, MemberResponsibilityRecordW
|
|
|
109
109
|
},
|
|
110
110
|
{
|
|
111
111
|
id: 'responsibility.name',
|
|
112
|
-
name:
|
|
112
|
+
name: $t(`d6fb6973-92f7-4d39-beeb-0f324c0fe865`),
|
|
113
113
|
width: 50,
|
|
114
114
|
getValue: (object: MemberResponsibilityRecordWithMemberAndOrganization) => {
|
|
115
115
|
const platform = PlatformStruct.shared;
|
|
@@ -117,18 +117,18 @@ const responsibilities: XlsxTransformerSheet<Object, MemberResponsibilityRecordW
|
|
|
117
117
|
|
|
118
118
|
if (!responsibility) {
|
|
119
119
|
return {
|
|
120
|
-
value:
|
|
120
|
+
value: $t(`2b1d05e5-6a0a-49d5-8510-8593eda94470`),
|
|
121
121
|
};
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
return {
|
|
125
|
-
value: responsibility.name + (responsibility.isGroupBased ? '
|
|
125
|
+
value: responsibility.name + (responsibility.isGroupBased ? ' ' + $t(`9ddd7aba-9426-4718-9eb0-673b615efcf4`) + ' ' + (object.group?.settings.name ?? $t(`eb6d556a-bcda-4ab4-ad39-3215b4734569`)) : ''),
|
|
126
126
|
};
|
|
127
127
|
},
|
|
128
128
|
},
|
|
129
129
|
{
|
|
130
130
|
id: 'responsibility.member.firstName',
|
|
131
|
-
name:
|
|
131
|
+
name: $t(`efca0579-0543-4636-a996-384bc9f0527e`),
|
|
132
132
|
width: 30,
|
|
133
133
|
getValue: (object: MemberResponsibilityRecordWithMemberAndOrganization) => ({
|
|
134
134
|
value: object.member.firstName,
|
|
@@ -136,7 +136,7 @@ const responsibilities: XlsxTransformerSheet<Object, MemberResponsibilityRecordW
|
|
|
136
136
|
},
|
|
137
137
|
{
|
|
138
138
|
id: 'responsibility.member.lastName',
|
|
139
|
-
name:
|
|
139
|
+
name: $t(`4a5e438e-08a1-411e-9b66-410eea7ded73`),
|
|
140
140
|
width: 30,
|
|
141
141
|
getValue: (object: MemberResponsibilityRecordWithMemberAndOrganization) => ({
|
|
142
142
|
value: object.member.details.lastName,
|
|
@@ -144,7 +144,7 @@ const responsibilities: XlsxTransformerSheet<Object, MemberResponsibilityRecordW
|
|
|
144
144
|
},
|
|
145
145
|
{
|
|
146
146
|
id: 'responsibility.member.email',
|
|
147
|
-
name:
|
|
147
|
+
name: $t(`a1b06e74-f581-4ea0-9e86-83f0c963fd4f`),
|
|
148
148
|
width: 50,
|
|
149
149
|
getValue: (object: MemberResponsibilityRecordWithMemberAndOrganization) => ({
|
|
150
150
|
value: object.member.details.email,
|
|
@@ -160,7 +160,7 @@ const responsibilities: XlsxTransformerSheet<Object, MemberResponsibilityRecordW
|
|
|
160
160
|
type PremiseWithOrganization = { organization: Object; premise: Premise };
|
|
161
161
|
const premises: XlsxTransformerSheet<Object, PremiseWithOrganization> = {
|
|
162
162
|
id: 'premises',
|
|
163
|
-
name:
|
|
163
|
+
name: $t(`9fe916f3-199d-4be2-b9c2-c96eeea31437`),
|
|
164
164
|
transform(organization) {
|
|
165
165
|
return organization.privateMeta?.premises.map(r => ({
|
|
166
166
|
organization,
|
|
@@ -170,7 +170,7 @@ const premises: XlsxTransformerSheet<Object, PremiseWithOrganization> = {
|
|
|
170
170
|
columns: [
|
|
171
171
|
{
|
|
172
172
|
id: 'organization.id',
|
|
173
|
-
name:
|
|
173
|
+
name: $t(`29360811-3663-496c-8d8f-c9fdf9467a74`),
|
|
174
174
|
width: 35,
|
|
175
175
|
getValue: (object: PremiseWithOrganization) => ({
|
|
176
176
|
value: object.organization.id,
|
|
@@ -178,7 +178,7 @@ const premises: XlsxTransformerSheet<Object, PremiseWithOrganization> = {
|
|
|
178
178
|
},
|
|
179
179
|
{
|
|
180
180
|
id: 'organization.uri',
|
|
181
|
-
name:
|
|
181
|
+
name: $t(`27cfaf26-6b88-4ebc-a50a-627a9f0f9e64`),
|
|
182
182
|
width: 20,
|
|
183
183
|
getValue: (object: PremiseWithOrganization) => ({
|
|
184
184
|
value: object.organization.uri,
|
|
@@ -186,7 +186,7 @@ const premises: XlsxTransformerSheet<Object, PremiseWithOrganization> = {
|
|
|
186
186
|
},
|
|
187
187
|
{
|
|
188
188
|
id: 'organization.name',
|
|
189
|
-
name:
|
|
189
|
+
name: $t(`c14b0320-cb84-4386-a39a-aa9ffb5eb886`),
|
|
190
190
|
width: 50,
|
|
191
191
|
getValue: (object: PremiseWithOrganization) => ({
|
|
192
192
|
value: object.organization.name,
|
|
@@ -194,7 +194,7 @@ const premises: XlsxTransformerSheet<Object, PremiseWithOrganization> = {
|
|
|
194
194
|
},
|
|
195
195
|
{
|
|
196
196
|
id: 'premise.name',
|
|
197
|
-
name:
|
|
197
|
+
name: $t(`522fb6c5-6d4d-4d9c-94b7-3e282fb0ea1f`),
|
|
198
198
|
width: 20,
|
|
199
199
|
getValue: (object: PremiseWithOrganization) => ({
|
|
200
200
|
value: object.premise.name,
|
|
@@ -202,13 +202,13 @@ const premises: XlsxTransformerSheet<Object, PremiseWithOrganization> = {
|
|
|
202
202
|
},
|
|
203
203
|
{
|
|
204
204
|
id: 'premise.type',
|
|
205
|
-
name:
|
|
205
|
+
name: $t(`f97ad8c1-31d2-4b61-9e09-3be86eaeba08`),
|
|
206
206
|
width: 20,
|
|
207
207
|
getValue: (object: PremiseWithOrganization) => {
|
|
208
208
|
const ids = object.premise.premiseTypeIds;
|
|
209
209
|
const platform = PlatformStruct.shared;
|
|
210
210
|
return {
|
|
211
|
-
value: ids.map(id => platform.config.premiseTypes.find(t => t.id === id)?.name ??
|
|
211
|
+
value: ids.map(id => platform.config.premiseTypes.find(t => t.id === id)?.name ?? $t(`bd1e59c8-3d4c-4097-ab35-0ce7b20d0e50`)).join(', '),
|
|
212
212
|
};
|
|
213
213
|
},
|
|
214
214
|
},
|
|
@@ -41,7 +41,7 @@ ExportToExcelEndpoint.loaders.set(ExcelExportType.Payments, {
|
|
|
41
41
|
sheets: [
|
|
42
42
|
{
|
|
43
43
|
id: 'payments',
|
|
44
|
-
name:
|
|
44
|
+
name: $t(`d4dbb3ee-ab9d-4231-be12-945b7d156900`),
|
|
45
45
|
columns: [
|
|
46
46
|
...getGeneralColumns(),
|
|
47
47
|
...getInvoiceColumns(),
|
|
@@ -53,7 +53,7 @@ ExportToExcelEndpoint.loaders.set(ExcelExportType.Payments, {
|
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
55
|
id: 'balanceItemPayments',
|
|
56
|
-
name:
|
|
56
|
+
name: $t(`fb8a50ba-0429-46f6-8a83-0602ba46bca7`),
|
|
57
57
|
transform: (data: PaymentGeneral): PaymentWithItem[] => data.balanceItemPayments.map(p => ({
|
|
58
58
|
payment: data,
|
|
59
59
|
balanceItemPayment: p,
|
|
@@ -102,7 +102,7 @@ function getBalanceItemColumns(): XlsxTransformerColumn<PaymentWithItem>[] {
|
|
|
102
102
|
return [
|
|
103
103
|
{
|
|
104
104
|
id: 'id',
|
|
105
|
-
name:
|
|
105
|
+
name: $t(`29360811-3663-496c-8d8f-c9fdf9467a74`),
|
|
106
106
|
width: 40,
|
|
107
107
|
getValue: (object: PaymentWithItem) => ({
|
|
108
108
|
value: object.balanceItemPayment.id,
|
|
@@ -115,7 +115,7 @@ function getBalanceItemColumns(): XlsxTransformerColumn<PaymentWithItem>[] {
|
|
|
115
115
|
},
|
|
116
116
|
{
|
|
117
117
|
id: 'paymentId',
|
|
118
|
-
name:
|
|
118
|
+
name: $t(`0601033f-1678-4781-96cd-1653448d689a`),
|
|
119
119
|
width: 40,
|
|
120
120
|
getValue: (object: PaymentWithItem) => ({
|
|
121
121
|
value: object.payment.id,
|
|
@@ -123,7 +123,7 @@ function getBalanceItemColumns(): XlsxTransformerColumn<PaymentWithItem>[] {
|
|
|
123
123
|
},
|
|
124
124
|
{
|
|
125
125
|
id: 'balanceItem.type',
|
|
126
|
-
name:
|
|
126
|
+
name: $t(`f97ad8c1-31d2-4b61-9e09-3be86eaeba08`),
|
|
127
127
|
width: 30,
|
|
128
128
|
getValue: (object: PaymentWithItem) => ({
|
|
129
129
|
value: getBalanceItemTypeName(object.balanceItemPayment.balanceItem.type),
|
|
@@ -131,7 +131,7 @@ function getBalanceItemColumns(): XlsxTransformerColumn<PaymentWithItem>[] {
|
|
|
131
131
|
},
|
|
132
132
|
{
|
|
133
133
|
id: 'balanceItem.category',
|
|
134
|
-
name:
|
|
134
|
+
name: $t(`c5d24ab8-a87a-481d-a470-23e9386199f3`),
|
|
135
135
|
width: 30,
|
|
136
136
|
getValue: (object: PaymentWithItem) => {
|
|
137
137
|
return {
|
|
@@ -141,7 +141,7 @@ function getBalanceItemColumns(): XlsxTransformerColumn<PaymentWithItem>[] {
|
|
|
141
141
|
},
|
|
142
142
|
{
|
|
143
143
|
id: 'balanceItem.description',
|
|
144
|
-
name:
|
|
144
|
+
name: $t(`9c4977db-1ce9-424b-92cf-4bbe7f6606fd`),
|
|
145
145
|
width: 40,
|
|
146
146
|
getValue: (object: PaymentWithItem) => ({
|
|
147
147
|
value: object.balanceItemPayment.balanceItem.description,
|
|
@@ -149,7 +149,7 @@ function getBalanceItemColumns(): XlsxTransformerColumn<PaymentWithItem>[] {
|
|
|
149
149
|
},
|
|
150
150
|
{
|
|
151
151
|
id: 'balanceItem.createdAt',
|
|
152
|
-
name:
|
|
152
|
+
name: $t(`10a1cf76-0757-4c92-9923-a19cd77fe24c`),
|
|
153
153
|
width: 16,
|
|
154
154
|
getValue: (object: PaymentWithItem) => ({
|
|
155
155
|
value: object.balanceItemPayment.balanceItem.createdAt,
|
|
@@ -162,7 +162,7 @@ function getBalanceItemColumns(): XlsxTransformerColumn<PaymentWithItem>[] {
|
|
|
162
162
|
},
|
|
163
163
|
{
|
|
164
164
|
id: 'balanceItem.dueAt',
|
|
165
|
-
name:
|
|
165
|
+
name: $t(`3d586760-01f3-42c3-82be-44cea7ad0820`),
|
|
166
166
|
width: 16,
|
|
167
167
|
getValue: (object: PaymentWithItem) => ({
|
|
168
168
|
value: object.balanceItemPayment.balanceItem.dueAt,
|
|
@@ -194,7 +194,7 @@ function getBalanceItemColumns(): XlsxTransformerColumn<PaymentWithItem>[] {
|
|
|
194
194
|
},
|
|
195
195
|
{
|
|
196
196
|
id: 'amount',
|
|
197
|
-
name:
|
|
197
|
+
name: $t(`f085f874-242d-47cb-a404-96eab69662ec`),
|
|
198
198
|
width: 20,
|
|
199
199
|
getValue: (object: PaymentWithItem) => ({
|
|
200
200
|
value: object.balanceItemPayment.amount,
|
|
@@ -207,7 +207,7 @@ function getBalanceItemColumns(): XlsxTransformerColumn<PaymentWithItem>[] {
|
|
|
207
207
|
},
|
|
208
208
|
{
|
|
209
209
|
id: 'unitPrice',
|
|
210
|
-
name:
|
|
210
|
+
name: $t(`7f7fdce2-1fcd-44c9-8c98-856aea11ffc3`),
|
|
211
211
|
width: 20,
|
|
212
212
|
getValue: (object: PaymentWithItem) => ({
|
|
213
213
|
value: object.balanceItemPayment.unitPrice / 100,
|
|
@@ -220,7 +220,7 @@ function getBalanceItemColumns(): XlsxTransformerColumn<PaymentWithItem>[] {
|
|
|
220
220
|
},
|
|
221
221
|
{
|
|
222
222
|
id: 'price',
|
|
223
|
-
name:
|
|
223
|
+
name: $t(`6f3104d4-9b8f-4946-8434-77202efae9f0`),
|
|
224
224
|
width: 20,
|
|
225
225
|
getValue: (object: PaymentWithItem) => ({
|
|
226
226
|
value: object.balanceItemPayment.price / 100,
|
|
@@ -238,7 +238,7 @@ function getGeneralColumns(): XlsxTransformerConcreteColumn<PaymentGeneral>[] {
|
|
|
238
238
|
return [
|
|
239
239
|
{
|
|
240
240
|
id: 'id',
|
|
241
|
-
name:
|
|
241
|
+
name: $t(`29360811-3663-496c-8d8f-c9fdf9467a74`),
|
|
242
242
|
width: 40,
|
|
243
243
|
getValue: (object: PaymentGeneralWithStripeAccount) => ({
|
|
244
244
|
value: object.id,
|
|
@@ -251,7 +251,7 @@ function getGeneralColumns(): XlsxTransformerConcreteColumn<PaymentGeneral>[] {
|
|
|
251
251
|
},
|
|
252
252
|
{
|
|
253
253
|
id: 'price',
|
|
254
|
-
name:
|
|
254
|
+
name: $t(`61b7b9cb-287a-4655-bac2-bb2d0b83fe47`),
|
|
255
255
|
width: 10,
|
|
256
256
|
getValue: (object: PaymentGeneralWithStripeAccount) => ({
|
|
257
257
|
value: object.price / 100,
|
|
@@ -264,7 +264,7 @@ function getGeneralColumns(): XlsxTransformerConcreteColumn<PaymentGeneral>[] {
|
|
|
264
264
|
},
|
|
265
265
|
{
|
|
266
266
|
id: 'status',
|
|
267
|
-
name:
|
|
267
|
+
name: $t(`d7003b29-cc92-4ef4-b07b-f283193ef2ae`),
|
|
268
268
|
width: 18,
|
|
269
269
|
getValue: (object: PaymentGeneralWithStripeAccount) => ({
|
|
270
270
|
value: PaymentStatusHelper.getNameCapitalized(object.status),
|
|
@@ -272,7 +272,7 @@ function getGeneralColumns(): XlsxTransformerConcreteColumn<PaymentGeneral>[] {
|
|
|
272
272
|
},
|
|
273
273
|
{
|
|
274
274
|
id: 'method',
|
|
275
|
-
name:
|
|
275
|
+
name: $t(`f12ffd5b-2138-41b4-8179-ae7ea2ce7621`),
|
|
276
276
|
width: 18,
|
|
277
277
|
getValue: (object: PaymentGeneralWithStripeAccount) => ({
|
|
278
278
|
value: PaymentMethodHelper.getNameCapitalized(object.method),
|
|
@@ -280,7 +280,7 @@ function getGeneralColumns(): XlsxTransformerConcreteColumn<PaymentGeneral>[] {
|
|
|
280
280
|
},
|
|
281
281
|
{
|
|
282
282
|
id: 'provider',
|
|
283
|
-
name:
|
|
283
|
+
name: $t(`126040d7-3625-45c5-b561-4bf6c5baac12`),
|
|
284
284
|
width: 16,
|
|
285
285
|
getValue: (object: PaymentGeneralWithStripeAccount) => ({
|
|
286
286
|
value: object.provider ?? PaymentMethodHelper.getNameCapitalized(object.method),
|
|
@@ -288,7 +288,7 @@ function getGeneralColumns(): XlsxTransformerConcreteColumn<PaymentGeneral>[] {
|
|
|
288
288
|
},
|
|
289
289
|
{
|
|
290
290
|
id: 'createdAt',
|
|
291
|
-
name:
|
|
291
|
+
name: $t(`e5902b28-754d-42cd-b245-f403d03b8c56`),
|
|
292
292
|
width: 16,
|
|
293
293
|
getValue: (object: PaymentGeneralWithStripeAccount) => ({
|
|
294
294
|
value: object.createdAt,
|
|
@@ -301,7 +301,7 @@ function getGeneralColumns(): XlsxTransformerConcreteColumn<PaymentGeneral>[] {
|
|
|
301
301
|
},
|
|
302
302
|
{
|
|
303
303
|
id: 'paidAt',
|
|
304
|
-
name:
|
|
304
|
+
name: $t(`297af5d5-1cb0-4862-b8d4-13416bdefa9f`),
|
|
305
305
|
width: 16,
|
|
306
306
|
getValue: (object: PaymentGeneralWithStripeAccount) => ({
|
|
307
307
|
value: object.paidAt,
|
|
@@ -314,7 +314,7 @@ function getGeneralColumns(): XlsxTransformerConcreteColumn<PaymentGeneral>[] {
|
|
|
314
314
|
},
|
|
315
315
|
{
|
|
316
316
|
id: 'description',
|
|
317
|
-
name:
|
|
317
|
+
name: $t(`151006be-86c2-48cd-bcd7-7c3bf9b76080`),
|
|
318
318
|
width: 60,
|
|
319
319
|
getValue: (object: PaymentGeneralWithStripeAccount) => ({
|
|
320
320
|
value: object.balanceItemPayments.map(p => p.toString()).join('\n'),
|
|
@@ -332,7 +332,7 @@ function getSettlementColumns(): XlsxTransformerColumn<PaymentGeneral>[] {
|
|
|
332
332
|
return [
|
|
333
333
|
{
|
|
334
334
|
id: 'settlement.reference',
|
|
335
|
-
name:
|
|
335
|
+
name: $t(`544a77e9-c915-4f47-afbf-c626396b0308`),
|
|
336
336
|
width: 21,
|
|
337
337
|
getValue: (object: PaymentGeneralWithStripeAccount) => {
|
|
338
338
|
return {
|
|
@@ -342,7 +342,7 @@ function getSettlementColumns(): XlsxTransformerColumn<PaymentGeneral>[] {
|
|
|
342
342
|
},
|
|
343
343
|
{
|
|
344
344
|
id: 'settlement.settledAt',
|
|
345
|
-
name:
|
|
345
|
+
name: $t(`fe56b791-fc88-4301-a59a-b5b185d1f124`),
|
|
346
346
|
width: 16,
|
|
347
347
|
getValue: (object: PaymentGeneralWithStripeAccount) => {
|
|
348
348
|
return {
|
|
@@ -357,7 +357,7 @@ function getSettlementColumns(): XlsxTransformerColumn<PaymentGeneral>[] {
|
|
|
357
357
|
},
|
|
358
358
|
{
|
|
359
359
|
id: 'settlement.amount',
|
|
360
|
-
name:
|
|
360
|
+
name: $t(`3790be02-581f-4713-8c4b-14cdf430f54a`),
|
|
361
361
|
width: 18,
|
|
362
362
|
getValue: (object: PaymentGeneralWithStripeAccount) => {
|
|
363
363
|
return {
|
|
@@ -377,7 +377,7 @@ function getStripeColumns(): XlsxTransformerColumn<PaymentGeneral>[] {
|
|
|
377
377
|
return [
|
|
378
378
|
{
|
|
379
379
|
id: 'transferFee',
|
|
380
|
-
name:
|
|
380
|
+
name: $t(`02754274-677a-4911-9a32-8422a8d9f827`),
|
|
381
381
|
width: 16,
|
|
382
382
|
getValue: (object: PaymentGeneralWithStripeAccount) => {
|
|
383
383
|
return {
|
|
@@ -392,7 +392,7 @@ function getStripeColumns(): XlsxTransformerColumn<PaymentGeneral>[] {
|
|
|
392
392
|
},
|
|
393
393
|
{
|
|
394
394
|
id: 'stripeAccountId',
|
|
395
|
-
name:
|
|
395
|
+
name: $t(`a7f32979-1ee8-47fe-a409-7b17ce9f9d39`),
|
|
396
396
|
width: 20,
|
|
397
397
|
getValue: (object: PaymentGeneralWithStripeAccount) => {
|
|
398
398
|
return {
|
|
@@ -402,7 +402,7 @@ function getStripeColumns(): XlsxTransformerColumn<PaymentGeneral>[] {
|
|
|
402
402
|
},
|
|
403
403
|
{
|
|
404
404
|
id: 'iban',
|
|
405
|
-
name:
|
|
405
|
+
name: $t(`f8dd1b1a-3da5-472d-bb46-8763537e53c8`),
|
|
406
406
|
width: 20,
|
|
407
407
|
getValue: (object: PaymentGeneralWithStripeAccount) => {
|
|
408
408
|
return {
|
|
@@ -412,7 +412,7 @@ function getStripeColumns(): XlsxTransformerColumn<PaymentGeneral>[] {
|
|
|
412
412
|
},
|
|
413
413
|
{
|
|
414
414
|
id: 'ibanName',
|
|
415
|
-
name:
|
|
415
|
+
name: $t(`04d9151b-cca1-4bce-b320-3e2b7da25575`),
|
|
416
416
|
width: 20,
|
|
417
417
|
getValue: (object: PaymentGeneralWithStripeAccount) => {
|
|
418
418
|
return {
|
|
@@ -427,7 +427,7 @@ function getTransferColumns(): XlsxTransformerColumn<PaymentGeneral>[] {
|
|
|
427
427
|
return [
|
|
428
428
|
{
|
|
429
429
|
id: 'transferDescription',
|
|
430
|
-
name:
|
|
430
|
+
name: $t(`dccdacf7-0760-4b17-8e03-fbfcda7a0b4f`),
|
|
431
431
|
width: 25,
|
|
432
432
|
getValue: (object: PaymentGeneralWithStripeAccount) => {
|
|
433
433
|
return {
|
|
@@ -437,7 +437,7 @@ function getTransferColumns(): XlsxTransformerColumn<PaymentGeneral>[] {
|
|
|
437
437
|
},
|
|
438
438
|
{
|
|
439
439
|
id: 'transferSettings.creditor',
|
|
440
|
-
name:
|
|
440
|
+
name: $t(`63c0eca3-d13a-4e13-a9d6-1fc54718fbba`),
|
|
441
441
|
width: 25,
|
|
442
442
|
getValue: (object: PaymentGeneralWithStripeAccount) => {
|
|
443
443
|
if (!object.transferSettings && object.stripeAccount && object.stripeAccount?.meta.bank_account_bank_name) {
|
|
@@ -453,7 +453,7 @@ function getTransferColumns(): XlsxTransformerColumn<PaymentGeneral>[] {
|
|
|
453
453
|
},
|
|
454
454
|
{
|
|
455
455
|
id: 'transferSettings.iban',
|
|
456
|
-
name:
|
|
456
|
+
name: $t(`6d5a8830-866d-4fe9-ae26-002a29b6054f`),
|
|
457
457
|
width: 30,
|
|
458
458
|
getValue: (object: PaymentGeneralWithStripeAccount) => {
|
|
459
459
|
if (!object.transferSettings && object.stripeAccount && object.stripeAccount?.meta.bank_account_last4) {
|
|
@@ -474,7 +474,7 @@ function getPayingOrganizationColumns(): XlsxTransformerColumn<PaymentGeneral>[]
|
|
|
474
474
|
return [
|
|
475
475
|
{
|
|
476
476
|
id: 'payingOrganization.id',
|
|
477
|
-
name:
|
|
477
|
+
name: $t(`bc1ac306-adaa-4e7b-a02f-47a1683c10b8`),
|
|
478
478
|
width: 40,
|
|
479
479
|
getValue: (object: PaymentGeneralWithStripeAccount) => {
|
|
480
480
|
return {
|
|
@@ -484,7 +484,7 @@ function getPayingOrganizationColumns(): XlsxTransformerColumn<PaymentGeneral>[]
|
|
|
484
484
|
},
|
|
485
485
|
{
|
|
486
486
|
id: 'payingOrganization.name',
|
|
487
|
-
name:
|
|
487
|
+
name: $t(`ffd75ec7-b80b-4b97-961f-21246df7d803`),
|
|
488
488
|
width: 30,
|
|
489
489
|
getValue: (object: PaymentGeneralWithStripeAccount) => {
|
|
490
490
|
return {
|
|
@@ -494,7 +494,7 @@ function getPayingOrganizationColumns(): XlsxTransformerColumn<PaymentGeneral>[]
|
|
|
494
494
|
},
|
|
495
495
|
{
|
|
496
496
|
id: 'payingOrganization.uri',
|
|
497
|
-
name:
|
|
497
|
+
name: $t(`a5332744-e6e1-4af9-b05c-cbc21515c4d0`),
|
|
498
498
|
width: 30,
|
|
499
499
|
getValue: (object: PaymentGeneralWithStripeAccount) => {
|
|
500
500
|
return {
|
|
@@ -513,7 +513,7 @@ function getInvoiceColumns(): XlsxTransformerColumn<PaymentGeneral>[] {
|
|
|
513
513
|
return [
|
|
514
514
|
{
|
|
515
515
|
id: 'customer.name',
|
|
516
|
-
name:
|
|
516
|
+
name: $t(`522fb6c5-6d4d-4d9c-94b7-3e282fb0ea1f`),
|
|
517
517
|
width: 30,
|
|
518
518
|
getValue: (object: PaymentGeneralWithStripeAccount) => {
|
|
519
519
|
return {
|
|
@@ -523,7 +523,7 @@ function getInvoiceColumns(): XlsxTransformerColumn<PaymentGeneral>[] {
|
|
|
523
523
|
},
|
|
524
524
|
{
|
|
525
525
|
id: 'customer.email',
|
|
526
|
-
name:
|
|
526
|
+
name: $t(`82f4b6ed-afee-4655-9f07-22802e0e7ad9`),
|
|
527
527
|
width: 40,
|
|
528
528
|
getValue: (object: PaymentGeneralWithStripeAccount) => {
|
|
529
529
|
return {
|
|
@@ -533,7 +533,7 @@ function getInvoiceColumns(): XlsxTransformerColumn<PaymentGeneral>[] {
|
|
|
533
533
|
},
|
|
534
534
|
{
|
|
535
535
|
id: 'customer.company.name',
|
|
536
|
-
name:
|
|
536
|
+
name: $t(`ea302250-6bae-409a-a547-78ff71181cfc`),
|
|
537
537
|
width: 30,
|
|
538
538
|
getValue: (object: PaymentGeneralWithStripeAccount) => {
|
|
539
539
|
return {
|
|
@@ -543,7 +543,7 @@ function getInvoiceColumns(): XlsxTransformerColumn<PaymentGeneral>[] {
|
|
|
543
543
|
},
|
|
544
544
|
{
|
|
545
545
|
id: 'customer.company.VATNumber',
|
|
546
|
-
name:
|
|
546
|
+
name: $t(`ee7d3d8e-9dc3-472f-900a-d1c1cc7e3947`),
|
|
547
547
|
width: 20,
|
|
548
548
|
getValue: (object: PaymentGeneralWithStripeAccount) => {
|
|
549
549
|
return {
|
|
@@ -553,7 +553,7 @@ function getInvoiceColumns(): XlsxTransformerColumn<PaymentGeneral>[] {
|
|
|
553
553
|
},
|
|
554
554
|
{
|
|
555
555
|
id: 'customer.company.companyNumber',
|
|
556
|
-
name:
|
|
556
|
+
name: $t(`12f64ea7-fb54-4178-8267-9de12bdf70d7`),
|
|
557
557
|
width: 20,
|
|
558
558
|
getValue: (object: PaymentGeneralWithStripeAccount) => {
|
|
559
559
|
return {
|
|
@@ -567,7 +567,7 @@ function getInvoiceColumns(): XlsxTransformerColumn<PaymentGeneral>[] {
|
|
|
567
567
|
}),
|
|
568
568
|
{
|
|
569
569
|
id: 'customer.company.administrationEmail',
|
|
570
|
-
name:
|
|
570
|
+
name: $t(`8eb5f50e-d00d-444d-979a-f80ae834eb9a`),
|
|
571
571
|
width: 30,
|
|
572
572
|
getValue: (object: PaymentGeneralWithStripeAccount) => {
|
|
573
573
|
return {
|