@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,79 @@
|
|
|
1
|
+
import { dto } from '@basmilius/http-client';
|
|
2
|
+
import type { DateTime } from 'luxon';
|
|
3
|
+
|
|
4
|
+
@dto
|
|
5
|
+
export class VatNumberDto {
|
|
6
|
+
get id(): string {
|
|
7
|
+
return this.#id;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
set id(value: string) {
|
|
11
|
+
this.#id = value;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
get vatNumber(): string {
|
|
15
|
+
return this.#vatNumber;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
set vatNumber(value: string) {
|
|
19
|
+
this.#vatNumber = value;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
get name(): string {
|
|
23
|
+
return this.#name;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
set name(value: string) {
|
|
27
|
+
this.#name = value;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
get address(): string {
|
|
31
|
+
return this.#address;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
set address(value: string) {
|
|
35
|
+
this.#address = value;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
get countryCode(): string {
|
|
39
|
+
return this.#countryCode;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
set countryCode(value: string) {
|
|
43
|
+
this.#countryCode = value;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
get createdOn(): DateTime {
|
|
47
|
+
return this.#createdOn;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
set createdOn(value: DateTime) {
|
|
51
|
+
this.#createdOn = value;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
get updatedOn(): DateTime {
|
|
55
|
+
return this.#updatedOn;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
set updatedOn(value: DateTime) {
|
|
59
|
+
this.#updatedOn = value;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
#id: string;
|
|
63
|
+
#vatNumber: string;
|
|
64
|
+
#name: string;
|
|
65
|
+
#address: string;
|
|
66
|
+
#countryCode: string;
|
|
67
|
+
#createdOn: DateTime;
|
|
68
|
+
#updatedOn: DateTime;
|
|
69
|
+
|
|
70
|
+
constructor(id: string, vatNumber: string, name: string, address: string, countryCode: string, createdOn: DateTime, updatedOn: DateTime) {
|
|
71
|
+
this.#id = id;
|
|
72
|
+
this.#vatNumber = vatNumber;
|
|
73
|
+
this.#name = name;
|
|
74
|
+
this.#address = address;
|
|
75
|
+
this.#countryCode = countryCode;
|
|
76
|
+
this.#createdOn = createdOn;
|
|
77
|
+
this.#updatedOn = updatedOn;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './ContractDto';
|
|
2
|
+
export * from './InvitationDto';
|
|
3
|
+
export * from './MerchantDashboardKeyMetricsDto';
|
|
4
|
+
export * from './MerchantDashboardUpcomingEventDto';
|
|
5
|
+
export * from './MerchantDto';
|
|
6
|
+
export * from './MerchantUserDto';
|
|
7
|
+
export * from './VatNumberDto';
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { dto } from '@basmilius/http-client';
|
|
2
|
+
import type { DateTime } from 'luxon';
|
|
3
|
+
import type { AddressDto } from '#data/dto';
|
|
4
|
+
import type { Gender } from '#data/types';
|
|
5
|
+
|
|
6
|
+
@dto
|
|
7
|
+
export class BuyerDto {
|
|
8
|
+
get id(): string {
|
|
9
|
+
return this.#id;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
set id(value: string) {
|
|
13
|
+
this.#id = value;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
get firstName(): string {
|
|
17
|
+
return this.#firstName;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
set firstName(value: string) {
|
|
21
|
+
this.#firstName = value;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
get lastName(): string {
|
|
25
|
+
return this.#lastName;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
set lastName(value: string) {
|
|
29
|
+
this.#lastName = value;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
get email(): string {
|
|
33
|
+
return this.#email;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
set email(value: string) {
|
|
37
|
+
this.#email = value;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
get phoneNumber(): string {
|
|
41
|
+
return this.#phoneNumber;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
set phoneNumber(value: string) {
|
|
45
|
+
this.#phoneNumber = value;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
get dateOfBirth(): DateTime {
|
|
49
|
+
return this.#dateOfBirth;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
set dateOfBirth(value: DateTime) {
|
|
53
|
+
this.#dateOfBirth = value;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
get gender(): Gender {
|
|
57
|
+
return this.#gender;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
set gender(value: Gender) {
|
|
61
|
+
this.#gender = value;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
get orderCount(): number {
|
|
65
|
+
return this.#orderCount;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
set orderCount(value: number) {
|
|
69
|
+
this.#orderCount = value;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
get fullName(): string {
|
|
73
|
+
return this.#fullName;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
set fullName(value: string) {
|
|
77
|
+
this.#fullName = value;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
get address(): AddressDto | null {
|
|
81
|
+
return this.#address;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
set address(value: AddressDto | null) {
|
|
85
|
+
this.#address = value;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
#id: string;
|
|
89
|
+
#firstName: string;
|
|
90
|
+
#lastName: string;
|
|
91
|
+
#email: string;
|
|
92
|
+
#phoneNumber: string;
|
|
93
|
+
#dateOfBirth: DateTime;
|
|
94
|
+
#gender: Gender;
|
|
95
|
+
#orderCount: number;
|
|
96
|
+
#fullName: string;
|
|
97
|
+
#address: AddressDto | null;
|
|
98
|
+
|
|
99
|
+
constructor(id: string, firstName: string, lastName: string, email: string, phoneNumber: string, dateOfBirth: DateTime, gender: Gender, orderCount: number, fullName: string, address: AddressDto | null) {
|
|
100
|
+
this.#id = id;
|
|
101
|
+
this.#firstName = firstName;
|
|
102
|
+
this.#lastName = lastName;
|
|
103
|
+
this.#email = email;
|
|
104
|
+
this.#phoneNumber = phoneNumber;
|
|
105
|
+
this.#dateOfBirth = dateOfBirth;
|
|
106
|
+
this.#gender = gender;
|
|
107
|
+
this.#orderCount = orderCount;
|
|
108
|
+
this.#fullName = fullName;
|
|
109
|
+
this.#address = address;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { dto } from '@basmilius/http-client';
|
|
2
|
+
import type { DateTime } from 'luxon';
|
|
3
|
+
import type { BuyerDto, CostDto, EventDto, OrderLineDto, OrderPaymentProviderDto, PublicShopDto, TransactionDto } from '#data/dto';
|
|
4
|
+
import type { OrderOrigin, OrderType } from '#data/types';
|
|
5
|
+
|
|
6
|
+
@dto
|
|
7
|
+
export class OrderDto {
|
|
8
|
+
get id(): string {
|
|
9
|
+
return this.#id;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
set id(value: string) {
|
|
13
|
+
this.#id = value;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
get code(): string {
|
|
17
|
+
return this.#code;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
set code(value: string) {
|
|
21
|
+
this.#code = value;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
get origin(): OrderOrigin {
|
|
25
|
+
return this.#origin;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
set origin(value: OrderOrigin) {
|
|
29
|
+
this.#origin = value;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
get type(): OrderType {
|
|
33
|
+
return this.#type;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
set type(value: OrderType) {
|
|
37
|
+
this.#type = value;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
get createdOn(): DateTime {
|
|
41
|
+
return this.#createdOn;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
set createdOn(value: DateTime) {
|
|
45
|
+
this.#createdOn = value;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
get paymentProvider(): OrderPaymentProviderDto | null {
|
|
49
|
+
return this.#paymentProvider;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
set paymentProvider(value: OrderPaymentProviderDto | null) {
|
|
53
|
+
this.#paymentProvider = value;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
get platformCost(): CostDto {
|
|
57
|
+
return this.#platformCost;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
set platformCost(value: CostDto) {
|
|
61
|
+
this.#platformCost = value;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
get subTotal(): CostDto {
|
|
65
|
+
return this.#subTotal;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
set subTotal(value: CostDto) {
|
|
69
|
+
this.#subTotal = value;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
get total(): CostDto {
|
|
73
|
+
return this.#total;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
set total(value: CostDto) {
|
|
77
|
+
this.#total = value;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
get url(): string {
|
|
81
|
+
return this.#url;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
set url(value: string) {
|
|
85
|
+
this.#url = value;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
get buyer(): BuyerDto | null {
|
|
89
|
+
return this.#buyer;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
set buyer(value: BuyerDto | null) {
|
|
93
|
+
this.#buyer = value;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
get event(): EventDto | null {
|
|
97
|
+
return this.#event;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
set event(value: EventDto | null) {
|
|
101
|
+
this.#event = value;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
get lines(): OrderLineDto[] | null {
|
|
105
|
+
return this.#lines;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
set lines(value: OrderLineDto[] | null) {
|
|
109
|
+
this.#lines = value;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
get shop(): PublicShopDto | null {
|
|
113
|
+
return this.#shop;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
set shop(value: PublicShopDto | null) {
|
|
117
|
+
this.#shop = value;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
get transaction(): TransactionDto | null {
|
|
121
|
+
return this.#transaction;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
set transaction(value: TransactionDto | null) {
|
|
125
|
+
this.#transaction = value;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
#id: string;
|
|
129
|
+
#code: string;
|
|
130
|
+
#origin: OrderOrigin;
|
|
131
|
+
#type: OrderType;
|
|
132
|
+
#createdOn: DateTime;
|
|
133
|
+
#paymentProvider: OrderPaymentProviderDto | null;
|
|
134
|
+
#platformCost: CostDto;
|
|
135
|
+
#subTotal: CostDto;
|
|
136
|
+
#total: CostDto;
|
|
137
|
+
#url: string;
|
|
138
|
+
#buyer: BuyerDto | null;
|
|
139
|
+
#event: EventDto | null;
|
|
140
|
+
#lines: OrderLineDto[] | null;
|
|
141
|
+
#shop: PublicShopDto | null;
|
|
142
|
+
#transaction: TransactionDto | null;
|
|
143
|
+
|
|
144
|
+
constructor(id: string, code: string, origin: OrderOrigin, type: OrderType, createdOn: DateTime, paymentProvider: OrderPaymentProviderDto | null, platformCost: CostDto, subTotal: CostDto, total: CostDto, url: string, buyer: BuyerDto | null, event: EventDto | null, lines: OrderLineDto[] | null, shop: PublicShopDto | null, transaction: TransactionDto | null) {
|
|
145
|
+
this.#id = id;
|
|
146
|
+
this.#code = code;
|
|
147
|
+
this.#origin = origin;
|
|
148
|
+
this.#type = type;
|
|
149
|
+
this.#createdOn = createdOn;
|
|
150
|
+
this.#paymentProvider = paymentProvider;
|
|
151
|
+
this.#platformCost = platformCost;
|
|
152
|
+
this.#subTotal = subTotal;
|
|
153
|
+
this.#total = total;
|
|
154
|
+
this.#url = url;
|
|
155
|
+
this.#buyer = buyer;
|
|
156
|
+
this.#event = event;
|
|
157
|
+
this.#lines = lines;
|
|
158
|
+
this.#shop = shop;
|
|
159
|
+
this.#transaction = transaction;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { dto } from '@basmilius/http-client';
|
|
2
|
+
import type { DateTime } from 'luxon';
|
|
3
|
+
import type { CostDto, OrderProductDto } from '#data/dto';
|
|
4
|
+
|
|
5
|
+
@dto
|
|
6
|
+
export class OrderLineDto {
|
|
7
|
+
get id(): string {
|
|
8
|
+
return this.#id;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
set id(value: string) {
|
|
12
|
+
this.#id = value;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
get price(): CostDto {
|
|
16
|
+
return this.#price;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
set price(value: CostDto) {
|
|
20
|
+
this.#price = value;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
get quantity(): number {
|
|
24
|
+
return this.#quantity;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
set quantity(value: number) {
|
|
28
|
+
this.#quantity = value;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
get product(): OrderProductDto {
|
|
32
|
+
return this.#product;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
set product(value: OrderProductDto) {
|
|
36
|
+
this.#product = value;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
get subTotal(): CostDto {
|
|
40
|
+
return this.#subTotal;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
set subTotal(value: CostDto) {
|
|
44
|
+
this.#subTotal = value;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
get createdOn(): DateTime {
|
|
48
|
+
return this.#createdOn;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
set createdOn(value: DateTime) {
|
|
52
|
+
this.#createdOn = value;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
get updatedOn(): DateTime {
|
|
56
|
+
return this.#updatedOn;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
set updatedOn(value: DateTime) {
|
|
60
|
+
this.#updatedOn = value;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
#id: string;
|
|
64
|
+
#price: CostDto;
|
|
65
|
+
#quantity: number;
|
|
66
|
+
#product: OrderProductDto;
|
|
67
|
+
#subTotal: CostDto;
|
|
68
|
+
#createdOn: DateTime;
|
|
69
|
+
#updatedOn: DateTime;
|
|
70
|
+
|
|
71
|
+
constructor(id: string, price: CostDto, quantity: number, product: OrderProductDto, subTotal: CostDto, createdOn: DateTime, updatedOn: DateTime) {
|
|
72
|
+
this.#id = id;
|
|
73
|
+
this.#price = price;
|
|
74
|
+
this.#quantity = quantity;
|
|
75
|
+
this.#product = product;
|
|
76
|
+
this.#subTotal = subTotal;
|
|
77
|
+
this.#createdOn = createdOn;
|
|
78
|
+
this.#updatedOn = updatedOn;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { dto } from '@basmilius/http-client';
|
|
2
|
+
|
|
3
|
+
@dto
|
|
4
|
+
export class OrderPaymentProviderDto {
|
|
5
|
+
get name(): string {
|
|
6
|
+
return this.#name;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
set name(value: string) {
|
|
10
|
+
this.#name = value;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
get url(): string {
|
|
14
|
+
return this.#url;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
set url(value: string) {
|
|
18
|
+
this.#url = value;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
#name: string;
|
|
22
|
+
#url: string;
|
|
23
|
+
|
|
24
|
+
constructor(name: string, url: string) {
|
|
25
|
+
this.#name = name;
|
|
26
|
+
this.#url = url;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { dto } from '@basmilius/http-client';
|
|
2
|
+
|
|
3
|
+
@dto
|
|
4
|
+
export class OrderProductDto {
|
|
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 description(): string {
|
|
22
|
+
return this.#description;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
set description(value: string) {
|
|
26
|
+
this.#description = value;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
get image(): string | null {
|
|
30
|
+
return this.#image;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
set image(value: string | null) {
|
|
34
|
+
this.#image = value;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
#id: string;
|
|
38
|
+
#name: string;
|
|
39
|
+
#description: string;
|
|
40
|
+
#image: string | null;
|
|
41
|
+
|
|
42
|
+
constructor(id: string, name: string, description: string, image: string | null) {
|
|
43
|
+
this.#id = id;
|
|
44
|
+
this.#name = name;
|
|
45
|
+
this.#description = description;
|
|
46
|
+
this.#image = image;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { dto } from '@basmilius/http-client';
|
|
2
|
+
|
|
3
|
+
@dto
|
|
4
|
+
export class CostDto {
|
|
5
|
+
get currencyCode(): string {
|
|
6
|
+
return this.#currencyCode;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
set currencyCode(value: string) {
|
|
10
|
+
this.#currencyCode = value;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
get currencyDecimals(): number {
|
|
14
|
+
return this.#currencyDecimals;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
set currencyDecimals(value: number) {
|
|
18
|
+
this.#currencyDecimals = value;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
get currencySign(): string {
|
|
22
|
+
return this.#currencySign;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
set currencySign(value: string) {
|
|
26
|
+
this.#currencySign = value;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
get decimal(): number {
|
|
30
|
+
return this.#decimal;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
set decimal(value: number) {
|
|
34
|
+
this.#decimal = value;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
get formatted(): string {
|
|
38
|
+
return this.#formatted;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
set formatted(value: string) {
|
|
42
|
+
this.#formatted = value;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
get cents(): number {
|
|
46
|
+
return this.#cents;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
set cents(value: number) {
|
|
50
|
+
this.#cents = value;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
#currencyCode: string;
|
|
54
|
+
#currencyDecimals: number;
|
|
55
|
+
#currencySign: string;
|
|
56
|
+
#decimal: number;
|
|
57
|
+
#formatted: string;
|
|
58
|
+
#cents: number;
|
|
59
|
+
|
|
60
|
+
constructor(currencyCode: string, currencyDecimals: number, currencySign: string, decimal: number, formatted: string, cents: number) {
|
|
61
|
+
this.#currencyCode = currencyCode;
|
|
62
|
+
this.#currencyDecimals = currencyDecimals;
|
|
63
|
+
this.#currencySign = currencySign;
|
|
64
|
+
this.#decimal = decimal;
|
|
65
|
+
this.#formatted = formatted;
|
|
66
|
+
this.#cents = cents;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { dto } from '@basmilius/http-client';
|
|
2
|
+
|
|
3
|
+
@dto
|
|
4
|
+
export class PaymentMethodDto {
|
|
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,40 @@
|
|
|
1
|
+
import { dto } from '@basmilius/http-client';
|
|
2
|
+
import type { PaymentMethodDto } from '#data/dto';
|
|
3
|
+
import type { PaymentProviderType } from '#data/types';
|
|
4
|
+
|
|
5
|
+
@dto
|
|
6
|
+
export class PaymentProviderDto {
|
|
7
|
+
get id(): string {
|
|
8
|
+
return this.#id;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
set id(value: string) {
|
|
12
|
+
this.#id = value;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
get type(): PaymentProviderType {
|
|
16
|
+
return this.#type;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
set type(value: PaymentProviderType) {
|
|
20
|
+
this.#type = value;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
get methods(): PaymentMethodDto[] {
|
|
24
|
+
return this.#methods;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
set methods(value: PaymentMethodDto[]) {
|
|
28
|
+
this.#methods = value;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
#id: string;
|
|
32
|
+
#type: PaymentProviderType;
|
|
33
|
+
#methods: PaymentMethodDto[];
|
|
34
|
+
|
|
35
|
+
constructor(id: string, type: PaymentProviderType, methods: PaymentMethodDto[]) {
|
|
36
|
+
this.#id = id;
|
|
37
|
+
this.#type = type;
|
|
38
|
+
this.#methods = methods;
|
|
39
|
+
}
|
|
40
|
+
}
|