Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions backend/app/DomainObjects/Enums/OrderAuditAction.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

namespace HiEvents\DomainObjects\Enums;

enum OrderAuditAction: string
{
use BaseEnum;

case ATTENDEE_UPDATED = 'ATTENDEE_UPDATED';
case ORDER_UPDATED = 'ORDER_UPDATED';
case ATTENDEE_EMAIL_RESENT = 'ATTENDEE_EMAIL_RESENT';
case ORDER_EMAIL_RESENT = 'ORDER_EMAIL_RESENT';
}
1 change: 1 addition & 0 deletions backend/app/DomainObjects/Enums/OrganizerReportTypes.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ enum OrganizerReportTypes: string
case EVENTS_PERFORMANCE = 'events_performance';
case TAX_SUMMARY = 'tax_summary';
case CHECK_IN_SUMMARY = 'check_in_summary';
case PLATFORM_FEES = 'platform_fees';
}
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ abstract class EventSettingDomainObjectAbstract extends \HiEvents\DomainObjects\
final public const SHOW_MARKETING_OPT_IN = 'show_marketing_opt_in';
final public const HOMEPAGE_THEME_SETTINGS = 'homepage_theme_settings';
final public const PASS_PLATFORM_FEE_TO_BUYER = 'pass_platform_fee_to_buyer';
final public const ALLOW_ATTENDEE_SELF_EDIT = 'allow_attendee_self_edit';

protected int $id;
protected int $event_id;
Expand Down Expand Up @@ -117,6 +118,7 @@ abstract class EventSettingDomainObjectAbstract extends \HiEvents\DomainObjects\
protected bool $show_marketing_opt_in = true;
protected array|string|null $homepage_theme_settings = null;
protected bool $pass_platform_fee_to_buyer = false;
protected bool $allow_attendee_self_edit = true;

public function toArray(): array
{
Expand Down Expand Up @@ -174,6 +176,7 @@ public function toArray(): array
'show_marketing_opt_in' => $this->show_marketing_opt_in ?? null,
'homepage_theme_settings' => $this->homepage_theme_settings ?? null,
'pass_platform_fee_to_buyer' => $this->pass_platform_fee_to_buyer ?? null,
'allow_attendee_self_edit' => $this->allow_attendee_self_edit ?? null,
];
}

Expand Down Expand Up @@ -760,4 +763,15 @@ public function getPassPlatformFeeToBuyer(): bool
{
return $this->pass_platform_fee_to_buyer;
}

public function setAllowAttendeeSelfEdit(bool $allow_attendee_self_edit): self
{
$this->allow_attendee_self_edit = $allow_attendee_self_edit;
return $this;
}

public function getAllowAttendeeSelfEdit(): bool
{
return $this->allow_attendee_self_edit;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,188 @@
<?php

namespace HiEvents\DomainObjects\Generated;

/**
* THIS FILE IS AUTOGENERATED - DO NOT EDIT IT DIRECTLY.
* @package HiEvents\DomainObjects\Generated
*/
abstract class OrderAuditLogDomainObjectAbstract extends \HiEvents\DomainObjects\AbstractDomainObject
{
final public const SINGULAR_NAME = 'order_audit_log';
final public const PLURAL_NAME = 'order_audit_logs';
final public const ID = 'id';
final public const EVENT_ID = 'event_id';
final public const ORDER_ID = 'order_id';
final public const ATTENDEE_ID = 'attendee_id';
final public const ACTION = 'action';
final public const OLD_VALUES = 'old_values';
final public const NEW_VALUES = 'new_values';
final public const CHANGED_FIELDS = 'changed_fields';
final public const IP_ADDRESS = 'ip_address';
final public const USER_AGENT = 'user_agent';
final public const CREATED_AT = 'created_at';
final public const UPDATED_AT = 'updated_at';

protected int $id;
protected int $event_id;
protected int $order_id;
protected ?int $attendee_id = null;
protected string $action;
protected array|string|null $old_values = null;
protected array|string|null $new_values = null;
protected ?string $changed_fields = null;
protected ?string $ip_address = null;
protected ?string $user_agent = null;
protected ?string $created_at = null;
protected ?string $updated_at = null;

public function toArray(): array
{
return [
'id' => $this->id ?? null,
'event_id' => $this->event_id ?? null,
'order_id' => $this->order_id ?? null,
'attendee_id' => $this->attendee_id ?? null,
'action' => $this->action ?? null,
'old_values' => $this->old_values ?? null,
'new_values' => $this->new_values ?? null,
'changed_fields' => $this->changed_fields ?? null,
'ip_address' => $this->ip_address ?? null,
'user_agent' => $this->user_agent ?? null,
'created_at' => $this->created_at ?? null,
'updated_at' => $this->updated_at ?? null,
];
}

public function setId(int $id): self
{
$this->id = $id;
return $this;
}

public function getId(): int
{
return $this->id;
}

public function setEventId(int $event_id): self
{
$this->event_id = $event_id;
return $this;
}

public function getEventId(): int
{
return $this->event_id;
}

public function setOrderId(int $order_id): self
{
$this->order_id = $order_id;
return $this;
}

public function getOrderId(): int
{
return $this->order_id;
}

public function setAttendeeId(?int $attendee_id): self
{
$this->attendee_id = $attendee_id;
return $this;
}

public function getAttendeeId(): ?int
{
return $this->attendee_id;
}

public function setAction(string $action): self
{
$this->action = $action;
return $this;
}

public function getAction(): string
{
return $this->action;
}

public function setOldValues(array|string|null $old_values): self
{
$this->old_values = $old_values;
return $this;
}

public function getOldValues(): array|string|null
{
return $this->old_values;
}

public function setNewValues(array|string|null $new_values): self
{
$this->new_values = $new_values;
return $this;
}

public function getNewValues(): array|string|null
{
return $this->new_values;
}

public function setChangedFields(?string $changed_fields): self
{
$this->changed_fields = $changed_fields;
return $this;
}

public function getChangedFields(): ?string
{
return $this->changed_fields;
}

public function setIpAddress(?string $ip_address): self
{
$this->ip_address = $ip_address;
return $this;
}

public function getIpAddress(): ?string
{
return $this->ip_address;
}

public function setUserAgent(?string $user_agent): self
{
$this->user_agent = $user_agent;
return $this;
}

public function getUserAgent(): ?string
{
return $this->user_agent;
}

public function setCreatedAt(?string $created_at): self
{
$this->created_at = $created_at;
return $this;
}

public function getCreatedAt(): ?string
{
return $this->created_at;
}

public function setUpdatedAt(?string $updated_at): self
{
$this->updated_at = $updated_at;
return $this;
}

public function getUpdatedAt(): ?string
{
return $this->updated_at;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ abstract class OrderItemDomainObjectAbstract extends \HiEvents\DomainObjects\Abs
final public const TOTAL_SERVICE_FEE = 'total_service_fee';
final public const TAXES_AND_FEES_ROLLUP = 'taxes_and_fees_rollup';
final public const PRODUCT_TYPE = 'product_type';
final public const BUNDLE_GROUP_ID = 'bundle_group_id';
final public const IS_BUNDLE_PRIMARY = 'is_bundle_primary';

protected int $id;
protected int $order_id;
Expand All @@ -43,8 +41,6 @@ abstract class OrderItemDomainObjectAbstract extends \HiEvents\DomainObjects\Abs
protected ?float $total_service_fee = 0.0;
protected array|string|null $taxes_and_fees_rollup = null;
protected string $product_type = 'TICKET';
protected ?string $bundle_group_id = null;
protected bool $is_bundle_primary = false;

public function toArray(): array
{
Expand All @@ -64,8 +60,6 @@ public function toArray(): array
'total_service_fee' => $this->total_service_fee ?? null,
'taxes_and_fees_rollup' => $this->taxes_and_fees_rollup ?? null,
'product_type' => $this->product_type ?? null,
'bundle_group_id' => $this->bundle_group_id ?? null,
'is_bundle_primary' => $this->is_bundle_primary ?? null,
];
}

Expand Down Expand Up @@ -233,26 +227,4 @@ public function getProductType(): string
{
return $this->product_type;
}

public function setBundleGroupId(?string $bundle_group_id): self
{
$this->bundle_group_id = $bundle_group_id;
return $this;
}

public function getBundleGroupId(): ?string
{
return $this->bundle_group_id;
}

public function setIsBundlePrimary(bool $is_bundle_primary): self
{
$this->is_bundle_primary = $is_bundle_primary;
return $this;
}

public function getIsBundlePrimary(): bool
{
return $this->is_bundle_primary;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ abstract class OrganizerSettingDomainObjectAbstract extends \HiEvents\DomainObje
final public const DEFAULT_ATTENDEE_DETAILS_COLLECTION_METHOD = 'default_attendee_details_collection_method';
final public const DEFAULT_SHOW_MARKETING_OPT_IN = 'default_show_marketing_opt_in';
final public const DEFAULT_PASS_PLATFORM_FEE_TO_BUYER = 'default_pass_platform_fee_to_buyer';
final public const DEFAULT_ALLOW_ATTENDEE_SELF_EDIT = 'default_allow_attendee_self_edit';

protected int $id;
protected int $organizer_id;
Expand All @@ -47,6 +48,7 @@ abstract class OrganizerSettingDomainObjectAbstract extends \HiEvents\DomainObje
protected string $default_attendee_details_collection_method = 'PER_TICKET';
protected bool $default_show_marketing_opt_in = true;
protected bool $default_pass_platform_fee_to_buyer = false;
protected bool $default_allow_attendee_self_edit = true;

public function toArray(): array
{
Expand All @@ -69,6 +71,7 @@ public function toArray(): array
'default_attendee_details_collection_method' => $this->default_attendee_details_collection_method ?? null,
'default_show_marketing_opt_in' => $this->default_show_marketing_opt_in ?? null,
'default_pass_platform_fee_to_buyer' => $this->default_pass_platform_fee_to_buyer ?? null,
'default_allow_attendee_self_edit' => $this->default_allow_attendee_self_edit ?? null,
];
}

Expand Down Expand Up @@ -270,4 +273,15 @@ public function getDefaultPassPlatformFeeToBuyer(): bool
{
return $this->default_pass_platform_fee_to_buyer;
}

public function setDefaultAllowAttendeeSelfEdit(bool $default_allow_attendee_self_edit): self
{
$this->default_allow_attendee_self_edit = $default_allow_attendee_self_edit;
return $this;
}

public function getDefaultAllowAttendeeSelfEdit(): bool
{
return $this->default_allow_attendee_self_edit;
}
}
7 changes: 7 additions & 0 deletions backend/app/DomainObjects/OrderAuditLogDomainObject.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

namespace HiEvents\DomainObjects;

class OrderAuditLogDomainObject extends Generated\OrderAuditLogDomainObjectAbstract
{
}
18 changes: 18 additions & 0 deletions backend/app/Exceptions/SelfServiceDisabledException.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

declare(strict_types=1);

namespace HiEvents\Exceptions;

use Exception;

class SelfServiceDisabledException extends Exception
{
public function __construct(
string $message = 'Self-service management is disabled for this event',
int $code = 403,
?Exception $previous = null
) {
parent::__construct($message, $code, $previous);
}
}
Loading
Loading