@passly-nl/data 0.1.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/CODEOWNERS +1 -0
- package/LICENSE +21 -0
- package/README.md +19 -0
- package/dist/adapter/AddressAdapter.d.ts +3 -0
- package/dist/adapter/AuthAdapter.d.ts +6 -0
- package/dist/adapter/BuyerAdapter.d.ts +4 -0
- package/dist/adapter/CommonAdapter.d.ts +4 -0
- package/dist/adapter/DateTimeAdapter.d.ts +4 -0
- package/dist/adapter/EventAdapter.d.ts +22 -0
- package/dist/adapter/FileSystemAdapter.d.ts +4 -0
- package/dist/adapter/FinanceAdapter.d.ts +6 -0
- package/dist/adapter/FluxAdapter.d.ts +6 -0
- package/dist/adapter/MerchantAdapter.d.ts +8 -0
- package/dist/adapter/MerchantDashboardAdapter.d.ts +5 -0
- package/dist/adapter/OrderAdapter.d.ts +7 -0
- package/dist/adapter/PaymentAdapter.d.ts +7 -0
- package/dist/adapter/ProductAdapter.d.ts +4 -0
- package/dist/adapter/PublicPayAdapter.d.ts +4 -0
- package/dist/adapter/PublicShopAdapter.d.ts +13 -0
- package/dist/adapter/ReservationAdapter.d.ts +6 -0
- package/dist/adapter/TicketAdapter.d.ts +4 -0
- package/dist/adapter/index.d.ts +18 -0
- package/dist/dto/address/AddressDto.d.ts +20 -0
- package/dist/dto/address/index.d.ts +1 -0
- package/dist/dto/auth/TotpStateDto.d.ts +10 -0
- package/dist/dto/auth/UserDto.d.ts +23 -0
- package/dist/dto/auth/UserTokenDto.d.ts +23 -0
- package/dist/dto/auth/index.d.ts +3 -0
- package/dist/dto/common/StatusResponseDto.d.ts +8 -0
- package/dist/dto/common/index.d.ts +1 -0
- package/dist/dto/event/EventAvailabilityDto.d.ts +14 -0
- package/dist/dto/event/EventCountersDto.d.ts +10 -0
- package/dist/dto/event/EventDto.d.ts +29 -0
- package/dist/dto/event/EventStatisticsAttendanceDto.d.ts +10 -0
- package/dist/dto/event/EventStatisticsBuyerTotalsDto.d.ts +14 -0
- package/dist/dto/event/EventStatisticsFinancialDto.d.ts +9 -0
- package/dist/dto/event/EventStatisticsOrderTotalsDto.d.ts +12 -0
- package/dist/dto/event/EventStatisticsOrdersDto.d.ts +10 -0
- package/dist/dto/event/EventStatisticsScanTotalsDto.d.ts +10 -0
- package/dist/dto/event/EventStatisticsScansDto.d.ts +12 -0
- package/dist/dto/event/EventStatisticsScansPerAppTeamDto.d.ts +10 -0
- package/dist/dto/event/EventStatisticsSwapTotalsDto.d.ts +10 -0
- package/dist/dto/event/ShopDesignDto.d.ts +10 -0
- package/dist/dto/event/ShopDto.d.ts +35 -0
- package/dist/dto/event/ShopElementButtonDto.d.ts +12 -0
- package/dist/dto/event/ShopElementDividerDto.d.ts +10 -0
- package/dist/dto/event/ShopElementDto.d.ts +9 -0
- package/dist/dto/event/ShopElementHeadingDto.d.ts +10 -0
- package/dist/dto/event/ShopElementNoticeDto.d.ts +15 -0
- package/dist/dto/event/ShopElementProductDto.d.ts +7 -0
- package/dist/dto/event/ShopElementTextDto.d.ts +7 -0
- package/dist/dto/event/StockOverviewDto.d.ts +13 -0
- package/dist/dto/event/StockOverviewItemDto.d.ts +13 -0
- package/dist/dto/event/StockPoolDto.d.ts +25 -0
- package/dist/dto/event/TicketTemplateDto.d.ts +18 -0
- package/dist/dto/event/index.d.ts +25 -0
- package/dist/dto/fileSystem/PictureDto.d.ts +10 -0
- package/dist/dto/fileSystem/index.d.ts +1 -0
- package/dist/dto/finance/FinanceOverviewDto.d.ts +13 -0
- package/dist/dto/finance/InvoiceDto.d.ts +25 -0
- package/dist/dto/finance/InvoiceLineDto.d.ts +17 -0
- package/dist/dto/finance/index.d.ts +3 -0
- package/dist/dto/index.d.ts +14 -0
- package/dist/dto/merchant/ContractDto.d.ts +16 -0
- package/dist/dto/merchant/InvitationDto.d.ts +25 -0
- package/dist/dto/merchant/MerchantDashboardKeyMetricsDto.d.ts +22 -0
- package/dist/dto/merchant/MerchantDashboardUpcomingEventDto.d.ts +25 -0
- package/dist/dto/merchant/MerchantDto.d.ts +32 -0
- package/dist/dto/merchant/MerchantUserDto.d.ts +14 -0
- package/dist/dto/merchant/VatNumberDto.d.ts +19 -0
- package/dist/dto/merchant/index.d.ts +7 -0
- package/dist/dto/order/BuyerDto.d.ts +27 -0
- package/dist/dto/order/OrderDto.d.ts +37 -0
- package/dist/dto/order/OrderLineDto.d.ts +20 -0
- package/dist/dto/order/OrderPaymentProviderDto.d.ts +8 -0
- package/dist/dto/order/OrderProductDto.d.ts +12 -0
- package/dist/dto/order/index.d.ts +5 -0
- package/dist/dto/payment/CostDto.d.ts +16 -0
- package/dist/dto/payment/PaymentMethodDto.d.ts +10 -0
- package/dist/dto/payment/PaymentProviderDto.d.ts +12 -0
- package/dist/dto/payment/TransactionDto.d.ts +24 -0
- package/dist/dto/payment/index.d.ts +4 -0
- package/dist/dto/product/ProductDto.d.ts +30 -0
- package/dist/dto/product/index.d.ts +1 -0
- package/dist/dto/publicPay/PublicPaymentMethodDto.d.ts +10 -0
- package/dist/dto/publicPay/index.d.ts +1 -0
- package/dist/dto/publicShop/PublicShopCartProductDto.d.ts +10 -0
- package/dist/dto/publicShop/PublicShopDesignDto.d.ts +10 -0
- package/dist/dto/publicShop/PublicShopDto.d.ts +31 -0
- package/dist/dto/publicShop/PublicShopElementButtonDto.d.ts +12 -0
- package/dist/dto/publicShop/PublicShopElementDividerDto.d.ts +10 -0
- package/dist/dto/publicShop/PublicShopElementDto.d.ts +9 -0
- package/dist/dto/publicShop/PublicShopElementHeadingDto.d.ts +10 -0
- package/dist/dto/publicShop/PublicShopElementNoticeDto.d.ts +15 -0
- package/dist/dto/publicShop/PublicShopElementProductDto.d.ts +7 -0
- package/dist/dto/publicShop/PublicShopElementTextDto.d.ts +7 -0
- package/dist/dto/publicShop/PublicShopEventDto.d.ts +16 -0
- package/dist/dto/publicShop/PublicShopMerchantDto.d.ts +8 -0
- package/dist/dto/publicShop/PublicShopProductDto.d.ts +28 -0
- package/dist/dto/publicShop/PublicShopReservationDto.d.ts +14 -0
- package/dist/dto/publicShop/PublicShopReservationProductDetailsDto.d.ts +13 -0
- package/dist/dto/publicShop/PublicShopReservationProductDto.d.ts +9 -0
- package/dist/dto/publicShop/PublicShopTimeSlotDto.d.ts +15 -0
- package/dist/dto/publicShop/index.d.ts +17 -0
- package/dist/dto/reservation/ReservationDto.d.ts +16 -0
- package/dist/dto/reservation/ReservationItemDto.d.ts +9 -0
- package/dist/dto/reservation/ReservationProductDto.d.ts +13 -0
- package/dist/dto/reservation/index.d.ts +3 -0
- package/dist/dto/ticket/TicketDto.d.ts +31 -0
- package/dist/dto/ticket/index.d.ts +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +136 -0
- package/dist/service/AuthService.d.ts +11 -0
- package/dist/service/InvitationService.d.ts +7 -0
- package/dist/service/MeService.d.ts +12 -0
- package/dist/service/MerchantBuyerService.d.ts +7 -0
- package/dist/service/MerchantBuyersService.d.ts +5 -0
- package/dist/service/MerchantDashboardService.d.ts +6 -0
- package/dist/service/MerchantEventProductService.d.ts +10 -0
- package/dist/service/MerchantEventProductsService.d.ts +8 -0
- package/dist/service/MerchantEventService.d.ts +13 -0
- package/dist/service/MerchantEventShopService.d.ts +9 -0
- package/dist/service/MerchantEventShopsService.d.ts +8 -0
- package/dist/service/MerchantEventStatisticsService.d.ts +10 -0
- package/dist/service/MerchantEventStockPoolsService.d.ts +9 -0
- package/dist/service/MerchantEventTicketTemplateService.d.ts +11 -0
- package/dist/service/MerchantEventTicketTemplatesService.d.ts +9 -0
- package/dist/service/MerchantEventsService.d.ts +7 -0
- package/dist/service/MerchantFinanceInvoiceService.d.ts +6 -0
- package/dist/service/MerchantFinanceInvoicesService.d.ts +5 -0
- package/dist/service/MerchantFinanceService.d.ts +8 -0
- package/dist/service/MerchantOrderService.d.ts +9 -0
- package/dist/service/MerchantOrdersService.d.ts +5 -0
- package/dist/service/MerchantService.d.ts +14 -0
- package/dist/service/MerchantStatisticsService.d.ts +5 -0
- package/dist/service/MerchantTicketService.d.ts +7 -0
- package/dist/service/MerchantTicketsService.d.ts +5 -0
- package/dist/service/MerchantUsersService.d.ts +7 -0
- package/dist/service/MerchantsService.d.ts +5 -0
- package/dist/service/PublicOrderService.d.ts +7 -0
- package/dist/service/PublicShopService.d.ts +9 -0
- package/dist/service/ReservationService.d.ts +6 -0
- package/dist/service/ServicesService.d.ts +9 -0
- package/dist/service/UiSelectOptionsService.d.ts +6 -0
- package/dist/service/index.d.ts +32 -0
- package/dist/types/index.d.ts +9 -0
- package/dist/util/emptyNull.d.ts +1 -0
- package/dist/util/index.d.ts +4 -0
- package/dist/util/jsonBlob.d.ts +1 -0
- package/dist/util/optional.d.ts +4 -0
- package/dist/util/optionalArray.d.ts +1 -0
- package/package.json +62 -0
- package/src/adapter/AddressAdapter.ts +18 -0
- package/src/adapter/AuthAdapter.ts +42 -0
- package/src/adapter/BuyerAdapter.ts +22 -0
- package/src/adapter/CommonAdapter.ts +12 -0
- package/src/adapter/DateTimeAdapter.ts +11 -0
- package/src/adapter/EventAdapter.ts +237 -0
- package/src/adapter/FileSystemAdapter.ts +13 -0
- package/src/adapter/FinanceAdapter.ts +40 -0
- package/src/adapter/FluxAdapter.ts +21 -0
- package/src/adapter/MerchantAdapter.ts +70 -0
- package/src/adapter/MerchantDashboardAdapter.ts +29 -0
- package/src/adapter/OrderAdapter.ts +55 -0
- package/src/adapter/PaymentAdapter.ts +48 -0
- package/src/adapter/ProductAdapter.ts +24 -0
- package/src/adapter/PublicPayAdapter.ts +13 -0
- package/src/adapter/PublicShopAdapter.ts +149 -0
- package/src/adapter/ReservationAdapter.ts +33 -0
- package/src/adapter/TicketAdapter.ts +24 -0
- package/src/adapter/index.ts +18 -0
- package/src/dto/address/AddressDto.ts +88 -0
- package/src/dto/address/index.ts +1 -0
- package/src/dto/auth/TotpStateDto.ts +38 -0
- package/src/dto/auth/UserDto.ts +99 -0
- package/src/dto/auth/UserTokenDto.ts +91 -0
- package/src/dto/auth/index.ts +3 -0
- package/src/dto/common/StatusResponseDto.ts +28 -0
- package/src/dto/common/index.ts +1 -0
- package/src/dto/event/EventAvailabilityDto.ts +58 -0
- package/src/dto/event/EventCountersDto.ts +38 -0
- package/src/dto/event/EventDto.ts +121 -0
- package/src/dto/event/EventStatisticsAttendanceDto.ts +38 -0
- package/src/dto/event/EventStatisticsBuyerTotalsDto.ts +58 -0
- package/src/dto/event/EventStatisticsFinancialDto.ts +29 -0
- package/src/dto/event/EventStatisticsOrderTotalsDto.ts +48 -0
- package/src/dto/event/EventStatisticsOrdersDto.ts +30 -0
- package/src/dto/event/EventStatisticsScanTotalsDto.ts +38 -0
- package/src/dto/event/EventStatisticsScansDto.ts +40 -0
- package/src/dto/event/EventStatisticsScansPerAppTeamDto.ts +38 -0
- package/src/dto/event/EventStatisticsSwapTotalsDto.ts +38 -0
- package/src/dto/event/ShopDesignDto.ts +38 -0
- package/src/dto/event/ShopDto.ts +151 -0
- package/src/dto/event/ShopElementButtonDto.ts +41 -0
- package/src/dto/event/ShopElementDividerDto.ts +31 -0
- package/src/dto/event/ShopElementDto.ts +27 -0
- package/src/dto/event/ShopElementHeadingDto.ts +31 -0
- package/src/dto/event/ShopElementNoticeDto.ts +52 -0
- package/src/dto/event/ShopElementProductDto.ts +20 -0
- package/src/dto/event/ShopElementTextDto.ts +20 -0
- package/src/dto/event/StockOverviewDto.ts +49 -0
- package/src/dto/event/StockOverviewItemDto.ts +49 -0
- package/src/dto/event/StockPoolDto.ts +109 -0
- package/src/dto/event/TicketTemplateDto.ts +70 -0
- package/src/dto/event/index.ts +25 -0
- package/src/dto/fileSystem/PictureDto.ts +38 -0
- package/src/dto/fileSystem/index.ts +1 -0
- package/src/dto/finance/FinanceOverviewDto.ts +49 -0
- package/src/dto/finance/InvoiceDto.ts +101 -0
- package/src/dto/finance/InvoiceLineDto.ts +61 -0
- package/src/dto/finance/index.ts +3 -0
- package/src/dto/index.ts +14 -0
- package/src/dto/merchant/ContractDto.ts +60 -0
- package/src/dto/merchant/InvitationDto.ts +101 -0
- package/src/dto/merchant/MerchantDashboardKeyMetricsDto.ts +59 -0
- package/src/dto/merchant/MerchantDashboardUpcomingEventDto.ts +101 -0
- package/src/dto/merchant/MerchantDto.ts +140 -0
- package/src/dto/merchant/MerchantUserDto.ts +50 -0
- package/src/dto/merchant/VatNumberDto.ts +79 -0
- package/src/dto/merchant/index.ts +7 -0
- package/src/dto/order/BuyerDto.ts +111 -0
- package/src/dto/order/OrderDto.ts +161 -0
- package/src/dto/order/OrderLineDto.ts +80 -0
- package/src/dto/order/OrderPaymentProviderDto.ts +28 -0
- package/src/dto/order/OrderProductDto.ts +48 -0
- package/src/dto/order/index.ts +5 -0
- package/src/dto/payment/CostDto.ts +68 -0
- package/src/dto/payment/PaymentMethodDto.ts +38 -0
- package/src/dto/payment/PaymentProviderDto.ts +40 -0
- package/src/dto/payment/TransactionDto.ts +100 -0
- package/src/dto/payment/index.ts +4 -0
- package/src/dto/product/ProductDto.ts +130 -0
- package/src/dto/product/index.ts +1 -0
- package/src/dto/publicPay/PublicPaymentMethodDto.ts +38 -0
- package/src/dto/publicPay/index.ts +1 -0
- package/src/dto/publicShop/PublicShopCartProductDto.ts +38 -0
- package/src/dto/publicShop/PublicShopDesignDto.ts +38 -0
- package/src/dto/publicShop/PublicShopDto.ts +131 -0
- package/src/dto/publicShop/PublicShopElementButtonDto.ts +41 -0
- package/src/dto/publicShop/PublicShopElementDividerDto.ts +31 -0
- package/src/dto/publicShop/PublicShopElementDto.ts +27 -0
- package/src/dto/publicShop/PublicShopElementHeadingDto.ts +31 -0
- package/src/dto/publicShop/PublicShopElementNoticeDto.ts +52 -0
- package/src/dto/publicShop/PublicShopElementProductDto.ts +20 -0
- package/src/dto/publicShop/PublicShopElementTextDto.ts +20 -0
- package/src/dto/publicShop/PublicShopEventDto.ts +60 -0
- package/src/dto/publicShop/PublicShopMerchantDto.ts +28 -0
- package/src/dto/publicShop/PublicShopProductDto.ts +120 -0
- package/src/dto/publicShop/PublicShopReservationDto.ts +50 -0
- package/src/dto/publicShop/PublicShopReservationProductDetailsDto.ts +49 -0
- package/src/dto/publicShop/PublicShopReservationProductDto.ts +29 -0
- package/src/dto/publicShop/PublicShopTimeSlotDto.ts +59 -0
- package/src/dto/publicShop/index.ts +17 -0
- package/src/dto/reservation/ReservationDto.ts +60 -0
- package/src/dto/reservation/ReservationItemDto.ts +29 -0
- package/src/dto/reservation/ReservationProductDto.ts +49 -0
- package/src/dto/reservation/index.ts +3 -0
- package/src/dto/ticket/TicketDto.ts +131 -0
- package/src/dto/ticket/index.ts +1 -0
- package/src/index.ts +5 -0
- package/src/service/AuthService.ts +71 -0
- package/src/service/InvitationService.ts +35 -0
- package/src/service/MeService.ts +106 -0
- package/src/service/MerchantBuyerService.ts +37 -0
- package/src/service/MerchantBuyersService.ts +17 -0
- package/src/service/MerchantDashboardService.ts +23 -0
- package/src/service/MerchantEventProductService.ts +76 -0
- package/src/service/MerchantEventProductsService.ts +48 -0
- package/src/service/MerchantEventService.ts +115 -0
- package/src/service/MerchantEventShopService.ts +66 -0
- package/src/service/MerchantEventShopsService.ts +43 -0
- package/src/service/MerchantEventStatisticsService.ts +65 -0
- package/src/service/MerchantEventStockPoolsService.ts +54 -0
- package/src/service/MerchantEventTicketTemplateService.ts +75 -0
- package/src/service/MerchantEventTicketTemplatesService.ts +53 -0
- package/src/service/MerchantEventsService.ts +35 -0
- package/src/service/MerchantFinanceInvoiceService.ts +25 -0
- package/src/service/MerchantFinanceInvoicesService.ts +17 -0
- package/src/service/MerchantFinanceService.ts +36 -0
- package/src/service/MerchantOrderService.ts +55 -0
- package/src/service/MerchantOrdersService.ts +26 -0
- package/src/service/MerchantService.ts +117 -0
- package/src/service/MerchantStatisticsService.ts +14 -0
- package/src/service/MerchantTicketService.ts +35 -0
- package/src/service/MerchantTicketsService.ts +26 -0
- package/src/service/MerchantUsersService.ts +34 -0
- package/src/service/MerchantsService.ts +15 -0
- package/src/service/PublicOrderService.ts +35 -0
- package/src/service/PublicShopService.ts +49 -0
- package/src/service/ReservationService.ts +23 -0
- package/src/service/ServicesService.ts +18 -0
- package/src/service/UiSelectOptionsService.ts +33 -0
- package/src/service/index.ts +32 -0
- package/src/types/auth.ts +47 -0
- package/src/types/event.ts +28 -0
- package/src/types/finance.ts +14 -0
- package/src/types/general.ts +19 -0
- package/src/types/index.ts +9 -0
- package/src/types/order.ts +7 -0
- package/src/types/payment.ts +11 -0
- package/src/types/product.ts +2 -0
- package/src/types/publicShop.ts +7 -0
- package/src/types/ticket.ts +12 -0
- package/src/util/emptyNull.ts +9 -0
- package/src/util/index.ts +4 -0
- package/src/util/jsonBlob.ts +5 -0
- package/src/util/optional.ts +7 -0
- package/src/util/optionalArray.ts +7 -0
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { dto } from '@basmilius/http-client';
|
|
2
|
+
import type { CostDto, OrderDto, PaymentMethodDto } from '#data/dto';
|
|
3
|
+
import type { TransactionStatus } from '#data/types';
|
|
4
|
+
|
|
5
|
+
@dto
|
|
6
|
+
export class TransactionDto {
|
|
7
|
+
get id(): string {
|
|
8
|
+
return this.#id;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
set id(value: string) {
|
|
12
|
+
this.#id = value;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
get description(): string {
|
|
16
|
+
return this.#description;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
set description(value: string) {
|
|
20
|
+
this.#description = value;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
get status(): TransactionStatus {
|
|
24
|
+
return this.#status;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
set status(value: TransactionStatus) {
|
|
28
|
+
this.#status = value;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
get cost(): CostDto {
|
|
32
|
+
return this.#cost;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
set cost(value: CostDto) {
|
|
36
|
+
this.#cost = value;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
get metadata(): Record<string, unknown> {
|
|
40
|
+
return this.#metadata;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
set metadata(value: Record<string, unknown>) {
|
|
44
|
+
this.#metadata = value;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
get externalCheckoutUrl(): string | null {
|
|
48
|
+
return this.#externalCheckoutUrl;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
set externalCheckoutUrl(value: string | null) {
|
|
52
|
+
this.#externalCheckoutUrl = value;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
get externalDetails(): Record<string, any> | null {
|
|
56
|
+
return this.#externalDetails;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
set externalDetails(value: Record<string, any> | null) {
|
|
60
|
+
this.#externalDetails = value;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
get order(): OrderDto {
|
|
64
|
+
return this.#order;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
set order(value: OrderDto) {
|
|
68
|
+
this.#order = value;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
get paymentMethod(): PaymentMethodDto | null {
|
|
72
|
+
return this.#paymentMethod;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
set paymentMethod(value: PaymentMethodDto | null) {
|
|
76
|
+
this.#paymentMethod = value;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
#id: string;
|
|
80
|
+
#description: string;
|
|
81
|
+
#status: TransactionStatus;
|
|
82
|
+
#cost: CostDto;
|
|
83
|
+
#metadata: Record<string, unknown>;
|
|
84
|
+
#externalCheckoutUrl: string | null;
|
|
85
|
+
#externalDetails: Record<string, any> | null;
|
|
86
|
+
#order: OrderDto;
|
|
87
|
+
#paymentMethod: PaymentMethodDto | null;
|
|
88
|
+
|
|
89
|
+
constructor(id: string, description: string, status: TransactionStatus, cost: CostDto, metadata: Record<string, unknown>, externalCheckoutUrl: string | null, externalDetails: Record<string, any> | null, order: OrderDto, paymentMethod: PaymentMethodDto | null) {
|
|
90
|
+
this.#id = id;
|
|
91
|
+
this.#description = description;
|
|
92
|
+
this.#status = status;
|
|
93
|
+
this.#cost = cost;
|
|
94
|
+
this.#metadata = metadata;
|
|
95
|
+
this.#externalCheckoutUrl = externalCheckoutUrl;
|
|
96
|
+
this.#externalDetails = externalDetails;
|
|
97
|
+
this.#order = order;
|
|
98
|
+
this.#paymentMethod = paymentMethod;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { dto } from '@basmilius/http-client';
|
|
2
|
+
import type { CostDto, PictureDto, StockPoolDto } from '#data/dto';
|
|
3
|
+
import type { ProductType } from '#data/types';
|
|
4
|
+
|
|
5
|
+
@dto
|
|
6
|
+
export class ProductDto {
|
|
7
|
+
get id(): string {
|
|
8
|
+
return this.#id;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
set id(value: string) {
|
|
12
|
+
this.#id = value;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
get type(): ProductType {
|
|
16
|
+
return this.#type;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
set type(value: ProductType) {
|
|
20
|
+
this.#type = value;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
get name(): string {
|
|
24
|
+
return this.#name;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
set name(value: string) {
|
|
28
|
+
this.#name = value;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
get description(): string {
|
|
32
|
+
return this.#description;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
set description(value: string) {
|
|
36
|
+
this.#description = value;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
get price(): CostDto {
|
|
40
|
+
return this.#price;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
set price(value: CostDto) {
|
|
44
|
+
this.#price = value;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
get maxQuantity(): number {
|
|
48
|
+
return this.#maxQuantity;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
set maxQuantity(value: number) {
|
|
52
|
+
this.#maxQuantity = value;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
get isActive(): boolean {
|
|
56
|
+
return this.#isActive;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
set isActive(value: boolean) {
|
|
60
|
+
this.#isActive = value;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
get isSwappable(): boolean {
|
|
64
|
+
return this.#isSwappable;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
set isSwappable(value: boolean) {
|
|
68
|
+
this.#isSwappable = value;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
get remainingStock(): number {
|
|
72
|
+
return this.#remainingStock;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
set remainingStock(value: number) {
|
|
76
|
+
this.#remainingStock = value;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
get stock(): StockPoolDto {
|
|
80
|
+
return this.#stock;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
set stock(value: StockPoolDto) {
|
|
84
|
+
this.#stock = value;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
get image(): PictureDto {
|
|
88
|
+
return this.#image;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
set image(value: PictureDto) {
|
|
92
|
+
this.#image = value;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
get images(): PictureDto[] {
|
|
96
|
+
return this.#images;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
set images(value: PictureDto[]) {
|
|
100
|
+
this.#images = value;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
#id: string;
|
|
104
|
+
#type: ProductType;
|
|
105
|
+
#name: string;
|
|
106
|
+
#description: string;
|
|
107
|
+
#price: CostDto;
|
|
108
|
+
#maxQuantity: number;
|
|
109
|
+
#isActive: boolean;
|
|
110
|
+
#isSwappable: boolean;
|
|
111
|
+
#remainingStock: number;
|
|
112
|
+
#stock: StockPoolDto;
|
|
113
|
+
#image: PictureDto;
|
|
114
|
+
#images: PictureDto[];
|
|
115
|
+
|
|
116
|
+
constructor(id: string, type: ProductType, name: string, description: string, price: CostDto, maxQuantity: number, isActive: boolean, isSwappable: boolean, remainingStock: number, stock: StockPoolDto, image: PictureDto, images: PictureDto[]) {
|
|
117
|
+
this.#id = id;
|
|
118
|
+
this.#type = type;
|
|
119
|
+
this.#name = name;
|
|
120
|
+
this.#description = description;
|
|
121
|
+
this.#price = price;
|
|
122
|
+
this.#maxQuantity = maxQuantity;
|
|
123
|
+
this.#isActive = isActive;
|
|
124
|
+
this.#isSwappable = isSwappable;
|
|
125
|
+
this.#remainingStock = remainingStock;
|
|
126
|
+
this.#stock = stock;
|
|
127
|
+
this.#image = image;
|
|
128
|
+
this.#images = images;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ProductDto';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { dto } from '@basmilius/http-client';
|
|
2
|
+
|
|
3
|
+
@dto
|
|
4
|
+
export class PublicPaymentMethodDto {
|
|
5
|
+
get id(): string {
|
|
6
|
+
return this.#id;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
set id(value: string) {
|
|
10
|
+
this.#id = value;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
get name(): string {
|
|
14
|
+
return this.#name;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
set name(value: string) {
|
|
18
|
+
this.#name = value;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
get image(): string {
|
|
22
|
+
return this.#image;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
set image(value: string) {
|
|
26
|
+
this.#image = value;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
#id: string;
|
|
30
|
+
#name: string;
|
|
31
|
+
#image: string;
|
|
32
|
+
|
|
33
|
+
constructor(id: string, name: string, image: string) {
|
|
34
|
+
this.#id = id;
|
|
35
|
+
this.#name = name;
|
|
36
|
+
this.#image = image;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PublicPaymentMethodDto';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { dto } from '@basmilius/http-client';
|
|
2
|
+
|
|
3
|
+
@dto
|
|
4
|
+
export class PublicShopCartProductDto {
|
|
5
|
+
get productId(): string {
|
|
6
|
+
return this.#productId;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
set productId(value: string) {
|
|
10
|
+
this.#productId = value;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
get quantity(): number {
|
|
14
|
+
return this.#quantity;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
set quantity(value: number) {
|
|
18
|
+
this.#quantity = value;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
get timeSlotId(): string | null {
|
|
22
|
+
return this.#timeSlotId;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
set timeSlotId(value: string | null) {
|
|
26
|
+
this.#timeSlotId = value;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
#productId: string;
|
|
30
|
+
#quantity: number;
|
|
31
|
+
#timeSlotId: string | null;
|
|
32
|
+
|
|
33
|
+
constructor(productId: string, quantity: number, timeSlotId: string | null) {
|
|
34
|
+
this.#productId = productId;
|
|
35
|
+
this.#quantity = quantity;
|
|
36
|
+
this.#timeSlotId = timeSlotId;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { dto } from '@basmilius/http-client';
|
|
2
|
+
|
|
3
|
+
@dto
|
|
4
|
+
export class PublicShopDesignDto {
|
|
5
|
+
get backgroundColor(): string {
|
|
6
|
+
return this.#backgroundColor;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
set backgroundColor(value: string) {
|
|
10
|
+
this.#backgroundColor = value;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
get foregroundColor(): string {
|
|
14
|
+
return this.#foregroundColor;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
set foregroundColor(value: string) {
|
|
18
|
+
this.#foregroundColor = value;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
get primaryColor(): string {
|
|
22
|
+
return this.#primaryColor;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
set primaryColor(value: string) {
|
|
26
|
+
this.#primaryColor = value;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
#backgroundColor: string;
|
|
30
|
+
#foregroundColor: string;
|
|
31
|
+
#primaryColor: string;
|
|
32
|
+
|
|
33
|
+
constructor(backgroundColor: string, foregroundColor: string, primaryColor: string) {
|
|
34
|
+
this.#backgroundColor = backgroundColor;
|
|
35
|
+
this.#foregroundColor = foregroundColor;
|
|
36
|
+
this.#primaryColor = primaryColor;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { dto } from '@basmilius/http-client';
|
|
2
|
+
import type { DateTime } from 'luxon';
|
|
3
|
+
import type { PublicShopDesignDto, PublicShopElementDto, PublicShopEventDto, PublicShopMerchantDto } from '#data/dto';
|
|
4
|
+
import type { ShopFieldRequirement } from '#data/types';
|
|
5
|
+
|
|
6
|
+
@dto
|
|
7
|
+
export class PublicShopDto {
|
|
8
|
+
get id(): string {
|
|
9
|
+
return this.#id;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
set id(value: string) {
|
|
13
|
+
this.#id = value;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
get name(): string {
|
|
17
|
+
return this.#name;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
set name(value: string) {
|
|
21
|
+
this.#name = value;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
get startsOn(): DateTime {
|
|
25
|
+
return this.#startsOn;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
set startsOn(value: DateTime) {
|
|
29
|
+
this.#startsOn = value;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
get endsOn(): DateTime {
|
|
33
|
+
return this.#endsOn;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
set endsOn(value: DateTime) {
|
|
37
|
+
this.#endsOn = value;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
get fieldAddress(): ShopFieldRequirement {
|
|
41
|
+
return this.#fieldAddress;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
set fieldAddress(value: ShopFieldRequirement) {
|
|
45
|
+
this.#fieldAddress = value;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
get fieldBirthdate(): ShopFieldRequirement {
|
|
49
|
+
return this.#fieldBirthdate;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
set fieldBirthdate(value: ShopFieldRequirement) {
|
|
53
|
+
this.#fieldBirthdate = value;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
get fieldGender(): ShopFieldRequirement {
|
|
57
|
+
return this.#fieldGender;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
set fieldGender(value: ShopFieldRequirement) {
|
|
61
|
+
this.#fieldGender = value;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
get fieldPhoneNumber(): ShopFieldRequirement {
|
|
65
|
+
return this.#fieldPhoneNumber;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
set fieldPhoneNumber(value: ShopFieldRequirement) {
|
|
69
|
+
this.#fieldPhoneNumber = value;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
get design(): PublicShopDesignDto {
|
|
73
|
+
return this.#design;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
set design(value: PublicShopDesignDto) {
|
|
77
|
+
this.#design = value;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
get elements(): PublicShopElementDto[] | null {
|
|
81
|
+
return this.#elements;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
set elements(value: PublicShopElementDto[] | null) {
|
|
85
|
+
this.#elements = value;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
get event(): PublicShopEventDto {
|
|
89
|
+
return this.#event;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
set event(value: PublicShopEventDto) {
|
|
93
|
+
this.#event = value;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
get merchant(): PublicShopMerchantDto {
|
|
97
|
+
return this.#merchant;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
set merchant(value: PublicShopMerchantDto) {
|
|
101
|
+
this.#merchant = value;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
#id: string;
|
|
105
|
+
#name: string;
|
|
106
|
+
#startsOn: DateTime;
|
|
107
|
+
#endsOn: DateTime;
|
|
108
|
+
#fieldAddress: ShopFieldRequirement;
|
|
109
|
+
#fieldBirthdate: ShopFieldRequirement;
|
|
110
|
+
#fieldGender: ShopFieldRequirement;
|
|
111
|
+
#fieldPhoneNumber: ShopFieldRequirement;
|
|
112
|
+
#design: PublicShopDesignDto;
|
|
113
|
+
#elements: PublicShopElementDto[] | null;
|
|
114
|
+
#event: PublicShopEventDto;
|
|
115
|
+
#merchant: PublicShopMerchantDto;
|
|
116
|
+
|
|
117
|
+
constructor(id: string, name: string, startsOn: DateTime, endsOn: DateTime, fieldAddress: ShopFieldRequirement, fieldBirthdate: ShopFieldRequirement, fieldGender: ShopFieldRequirement, fieldPhoneNumber: ShopFieldRequirement, design: PublicShopDesignDto, elements: PublicShopElementDto[] | null, event: PublicShopEventDto, merchant: PublicShopMerchantDto) {
|
|
118
|
+
this.#id = id;
|
|
119
|
+
this.#name = name;
|
|
120
|
+
this.#startsOn = startsOn;
|
|
121
|
+
this.#endsOn = endsOn;
|
|
122
|
+
this.#fieldAddress = fieldAddress;
|
|
123
|
+
this.#fieldBirthdate = fieldBirthdate;
|
|
124
|
+
this.#fieldGender = fieldGender;
|
|
125
|
+
this.#fieldPhoneNumber = fieldPhoneNumber;
|
|
126
|
+
this.#design = design;
|
|
127
|
+
this.#elements = elements;
|
|
128
|
+
this.#event = event;
|
|
129
|
+
this.#merchant = merchant;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { dto } from '@basmilius/http-client';
|
|
2
|
+
import type { FluxIconName } from '@flux-ui/types';
|
|
3
|
+
import { PublicShopElementDto } from '#data/dto';
|
|
4
|
+
|
|
5
|
+
@dto
|
|
6
|
+
export class PublicShopElementButtonDto extends PublicShopElementDto {
|
|
7
|
+
get icon(): FluxIconName | null {
|
|
8
|
+
return this.#icon;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
set icon(value: FluxIconName | null) {
|
|
12
|
+
this.#icon = value;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
get text(): string {
|
|
16
|
+
return this.#text;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
set text(value: string) {
|
|
20
|
+
this.#text = value;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
get url(): string {
|
|
24
|
+
return this.#url;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
set url(value: string) {
|
|
28
|
+
this.#url = value;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
#icon: FluxIconName | null;
|
|
32
|
+
#text: string;
|
|
33
|
+
#url: string;
|
|
34
|
+
|
|
35
|
+
constructor(id: string, icon: FluxIconName | null, text: string, url: string) {
|
|
36
|
+
super(id, 'button');
|
|
37
|
+
this.#icon = icon;
|
|
38
|
+
this.#text = text;
|
|
39
|
+
this.#url = url;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { dto } from '@basmilius/http-client';
|
|
2
|
+
import type { FluxIconName } from '@flux-ui/types';
|
|
3
|
+
import { PublicShopElementDto } from '#data/dto';
|
|
4
|
+
|
|
5
|
+
@dto
|
|
6
|
+
export class PublicShopElementDividerDto extends PublicShopElementDto {
|
|
7
|
+
get icon(): FluxIconName | null {
|
|
8
|
+
return this.#icon;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
set icon(value: FluxIconName | null) {
|
|
12
|
+
this.#icon = value;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
get text(): string | null {
|
|
16
|
+
return this.#text;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
set text(value: string | null) {
|
|
20
|
+
this.#text = value;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
#icon: FluxIconName | null;
|
|
24
|
+
#text: string | null;
|
|
25
|
+
|
|
26
|
+
constructor(id: string, icon: FluxIconName | null, text: string | null) {
|
|
27
|
+
super(id, 'divider');
|
|
28
|
+
this.#icon = icon;
|
|
29
|
+
this.#text = text;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { PublicShopElementType } from '#data/types';
|
|
2
|
+
|
|
3
|
+
export abstract class PublicShopElementDto {
|
|
4
|
+
get id(): string {
|
|
5
|
+
return this.#id;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
set id(value: string) {
|
|
9
|
+
this.#id = value;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
get type(): PublicShopElementType {
|
|
13
|
+
return this.#type;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
set type(value: PublicShopElementType) {
|
|
17
|
+
this.#type = value;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
#id: string;
|
|
21
|
+
#type: PublicShopElementType;
|
|
22
|
+
|
|
23
|
+
protected constructor(id: string, type: PublicShopElementType) {
|
|
24
|
+
this.#id = id;
|
|
25
|
+
this.#type = type;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { dto } from '@basmilius/http-client';
|
|
2
|
+
import { PublicShopElementDto } from '#data/dto';
|
|
3
|
+
import type { HeadingLevel } from '#data/types';
|
|
4
|
+
|
|
5
|
+
@dto
|
|
6
|
+
export class PublicShopElementHeadingDto extends PublicShopElementDto {
|
|
7
|
+
get headingLevel(): HeadingLevel {
|
|
8
|
+
return this.#headingLevel;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
set headingLevel(value: HeadingLevel) {
|
|
12
|
+
this.#headingLevel = value;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
get title(): string {
|
|
16
|
+
return this.#title;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
set title(value: string) {
|
|
20
|
+
this.#title = value;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
#headingLevel: HeadingLevel;
|
|
24
|
+
#title: string;
|
|
25
|
+
|
|
26
|
+
constructor(id: string, headingLevel: HeadingLevel, title: string) {
|
|
27
|
+
super(id, 'heading');
|
|
28
|
+
this.#headingLevel = headingLevel;
|
|
29
|
+
this.#title = title;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { dto } from '@basmilius/http-client';
|
|
2
|
+
import type { FluxIconName } from '@flux-ui/types';
|
|
3
|
+
import { PublicShopElementDto } from '#data/dto';
|
|
4
|
+
import type { NoticeType } from '#data/types';
|
|
5
|
+
|
|
6
|
+
@dto
|
|
7
|
+
export class PublicShopElementNoticeDto extends PublicShopElementDto {
|
|
8
|
+
get icon(): FluxIconName {
|
|
9
|
+
return this.#icon;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
set icon(value: FluxIconName) {
|
|
13
|
+
this.#icon = value;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
get noticeType(): NoticeType {
|
|
17
|
+
return this.#noticeType;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
set noticeType(value: NoticeType) {
|
|
21
|
+
this.#noticeType = value;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
get title(): string | null {
|
|
25
|
+
return this.#title;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
set title(value: string | null) {
|
|
29
|
+
this.#title = value;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
get text(): string {
|
|
33
|
+
return this.#text;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
set text(value: string) {
|
|
37
|
+
this.#text = value;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
#icon: FluxIconName;
|
|
41
|
+
#noticeType: NoticeType;
|
|
42
|
+
#title: string | null;
|
|
43
|
+
#text: string;
|
|
44
|
+
|
|
45
|
+
constructor(id: string, icon: FluxIconName, noticeType: NoticeType, title: string | null, text: string) {
|
|
46
|
+
super(id, 'notice');
|
|
47
|
+
this.#icon = icon;
|
|
48
|
+
this.#noticeType = noticeType;
|
|
49
|
+
this.#title = title;
|
|
50
|
+
this.#text = text;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { dto } from '@basmilius/http-client';
|
|
2
|
+
import { PublicShopElementDto, type PublicShopProductDto } from '#data/dto';
|
|
3
|
+
|
|
4
|
+
@dto
|
|
5
|
+
export class PublicShopElementProductDto extends PublicShopElementDto {
|
|
6
|
+
get product(): PublicShopProductDto {
|
|
7
|
+
return this.#product;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
set product(value: PublicShopProductDto) {
|
|
11
|
+
this.#product = value;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
#product: PublicShopProductDto;
|
|
15
|
+
|
|
16
|
+
constructor(id: string, product: PublicShopProductDto) {
|
|
17
|
+
super(id, 'product');
|
|
18
|
+
this.#product = product;
|
|
19
|
+
}
|
|
20
|
+
}
|