@dev-crew-berlin/enter-js-utils 0.94.0 → 0.95.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.
@@ -1252,11 +1252,7 @@ export type components = {
1252
1252
  paid: boolean;
1253
1253
  /** Title */
1254
1254
  title?: string | null;
1255
- /**
1256
- * Provider
1257
- * @enum {string}
1258
- */
1259
- provider: "manual" | "sepa" | "sofort" | "credit" | "prepay" | "call2pay" | "handypay" | "paypal" | "stripe";
1255
+ provider: components["schemas"]["PaymentProvider"];
1260
1256
  /** Reference */
1261
1257
  reference?: string | null;
1262
1258
  /** Amount */
@@ -1292,7 +1288,10 @@ export type components = {
1292
1288
  attendeeId: string;
1293
1289
  /** Instancename */
1294
1290
  instanceName: string;
1291
+ provider?: components["schemas"]["PaymentProvider"] | null;
1295
1292
  };
1293
+ /** @enum {string} */
1294
+ PaymentProvider: "manual" | "sepa" | "credit" | "bank_transfer" | "paypal" | "stripe";
1296
1295
  /** PublicAttendee */
1297
1296
  "PublicAttendee-Input": {
1298
1297
  /** Id */
@@ -23,7 +23,10 @@ export function parseRegistrationToken(tokenString, options) {
23
23
  return success({
24
24
  attendeeId: payload.attendee_id,
25
25
  sessionType: payload.session_type ?? 'register',
26
- email: payload.email,
26
+ email: payload.email ? {
27
+ name: payload.email.name,
28
+ mailingId: payload.email.mailing_id
29
+ } : undefined,
27
30
  flags: payload.flags ?? {},
28
31
  isExpired
29
32
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dev-crew-berlin/enter-js-utils",
3
- "version": "0.94.0",
3
+ "version": "0.95.0",
4
4
  "description": "utils such as vaildation and other helpers to work with data from the enter app",
5
5
  "files": [
6
6
  "dist",