@myclub_se/data-access 3.1.6 → 3.1.8
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/esm2022/lib/api-models/api-bookable-item.mjs +1 -1
- package/esm2022/lib/api-models/api-booking-calendar-application-time.mjs +1 -1
- package/esm2022/lib/api-models/api-booking-calendar-slot-session.mjs +1 -1
- package/esm2022/lib/api-models/api-booking-calendar-slot.mjs +1 -1
- package/esm2022/lib/api-models/api-booking-calendar.mjs +1 -1
- package/esm2022/lib/api-models/api-invoice/api-payment-attempt-create.mjs +12 -2
- package/esm2022/lib/api-models/api-invoice/api-payment-attempt.mjs +1 -1
- package/esm2022/lib/api-models/api-invoice/api-payment-order.mjs +2 -0
- package/esm2022/lib/api-models/api-invoice/index.mjs +2 -1
- package/esm2022/lib/models/activity-type.mjs +3 -3
- package/esm2022/lib/models/bookable-item.mjs +4 -2
- package/esm2022/lib/models/booking-calendar-application-time.mjs +6 -2
- package/esm2022/lib/models/booking-calendar-slot-session.mjs +8 -2
- package/esm2022/lib/models/booking-calendar-slot.mjs +5 -2
- package/esm2022/lib/models/booking-calendar.mjs +8 -2
- package/esm2022/lib/models/booking-slot-filter.mjs +4 -1
- package/esm2022/lib/models/invoice/index.mjs +2 -1
- package/esm2022/lib/models/invoice/payment-attempt.mjs +4 -2
- package/esm2022/lib/models/invoice/payment-order.mjs +25 -0
- package/esm2022/lib/services/activity.service.mjs +17 -6
- package/esm2022/lib/services/bookable.service.mjs +46 -14
- package/esm2022/lib/services/booking-calendar.service.mjs +94 -26
- package/esm2022/lib/services/constant.service.mjs +9 -1
- package/esm2022/lib/services/constants.mjs +2 -0
- package/esm2022/lib/services/factories/bookable-item-factory.mjs +2 -2
- package/esm2022/lib/services/factories/booking-calendar-application-time-factory.mjs +2 -2
- package/esm2022/lib/services/factories/booking-calendar-factory.mjs +2 -2
- package/esm2022/lib/services/factories/booking-calendar-slot-factory.mjs +2 -2
- package/esm2022/lib/services/factories/booking-calendar-slot-session-factory.mjs +2 -2
- package/esm2022/lib/services/factories/payment-attempt-factory.mjs +2 -2
- package/esm2022/lib/services/factories/payment-order-factory.mjs +5 -0
- package/esm2022/lib/services/feature-flags.service.mjs +5 -2
- package/esm2022/lib/services/invoice/index.mjs +2 -1
- package/esm2022/lib/services/invoice/payment-attempt.service.mjs +44 -19
- package/esm2022/lib/services/invoice/payment-order.service.mjs +46 -0
- package/esm2022/lib/services/member.service.mjs +5 -2
- package/esm2022/lib/services/team.service.mjs +5 -2
- package/esm2022/lib/store/actions/booking.actions.mjs +19 -1
- package/esm2022/lib/store/actions/constant.actions.mjs +13 -1
- package/esm2022/lib/store/actions/invoice.actions.mjs +105 -37
- package/esm2022/lib/store/effects/booking.effects.mjs +49 -3
- package/esm2022/lib/store/effects/constant.effects.mjs +8 -2
- package/esm2022/lib/store/effects/invoice.effects.mjs +89 -29
- package/esm2022/lib/store/reducers/booking.reducers.mjs +63 -12
- package/esm2022/lib/store/reducers/constant.reducer.mjs +14 -2
- package/esm2022/lib/store/reducers/invoice.reducer.mjs +4 -4
- package/esm2022/lib/store/selectors/booking.selectors.mjs +4 -1
- package/esm2022/lib/store/selectors/constant.selectors.mjs +3 -1
- package/esm2022/lib/store/selectors/invoice.selectors.mjs +3 -1
- package/esm2022/lib/store/state/booking.state.mjs +4 -1
- package/esm2022/lib/store/state/constant.state.mjs +3 -1
- package/esm2022/lib/store/state/invoice.state.mjs +3 -1
- package/fesm2022/myclub_se-data-access.mjs +689 -152
- package/fesm2022/myclub_se-data-access.mjs.map +1 -1
- package/lib/api-models/api-bookable-item.d.ts +1 -0
- package/lib/api-models/api-booking-calendar-application-time.d.ts +2 -0
- package/lib/api-models/api-booking-calendar-slot-session.d.ts +3 -0
- package/lib/api-models/api-booking-calendar-slot.d.ts +1 -0
- package/lib/api-models/api-booking-calendar.d.ts +2 -0
- package/lib/api-models/api-invoice/api-payment-attempt-create.d.ts +7 -1
- package/lib/api-models/api-invoice/api-payment-attempt.d.ts +2 -1
- package/lib/api-models/api-invoice/api-payment-order.d.ts +13 -0
- package/lib/api-models/api-invoice/index.d.ts +1 -0
- package/lib/models/bookable-item.d.ts +2 -1
- package/lib/models/booking-calendar-application-time.d.ts +3 -1
- package/lib/models/booking-calendar-slot-session.d.ts +4 -1
- package/lib/models/booking-calendar-slot.d.ts +3 -1
- package/lib/models/booking-calendar.d.ts +5 -1
- package/lib/models/booking-slot-filter.d.ts +1 -0
- package/lib/models/invoice/index.d.ts +1 -0
- package/lib/models/invoice/payment-attempt.d.ts +3 -2
- package/lib/models/invoice/payment-order.d.ts +14 -0
- package/lib/services/bookable.service.d.ts +2 -1
- package/lib/services/booking-calendar.service.d.ts +2 -0
- package/lib/services/constant.service.d.ts +2 -0
- package/lib/services/constants.d.ts +1 -0
- package/lib/services/factories/payment-order-factory.d.ts +3 -0
- package/lib/services/invoice/index.d.ts +1 -0
- package/lib/services/invoice/payment-attempt.service.d.ts +14 -7
- package/lib/services/invoice/payment-order.service.d.ts +18 -0
- package/lib/store/actions/booking.actions.d.ts +60 -0
- package/lib/store/actions/constant.actions.d.ts +28 -0
- package/lib/store/actions/invoice.actions.d.ts +335 -55
- package/lib/store/effects/booking.effects.d.ts +15 -0
- package/lib/store/effects/constant.effects.d.ts +10 -0
- package/lib/store/effects/invoice.effects.d.ts +89 -25
- package/lib/store/selectors/booking.selectors.d.ts +3 -0
- package/lib/store/selectors/constant.selectors.d.ts +2 -0
- package/lib/store/selectors/invoice.selectors.d.ts +2 -0
- package/lib/store/state/booking.state.d.ts +4 -1
- package/lib/store/state/constant.state.d.ts +2 -0
- package/lib/store/state/invoice.state.d.ts +3 -1
- package/package.json +1 -1
|
@@ -22,10 +22,12 @@ export interface ApiBookingCalendarApplicationTime {
|
|
|
22
22
|
readonly created: string;
|
|
23
23
|
readonly bookable_name: string;
|
|
24
24
|
bookable_zones_taken: number;
|
|
25
|
+
bookable_zones_taken_display: string;
|
|
25
26
|
bookable_part_id: string | null;
|
|
26
27
|
readonly bookable_part_name: string | null;
|
|
27
28
|
readonly bookable_id: string;
|
|
28
29
|
member_id: string | null;
|
|
29
30
|
readonly member_name: string | null;
|
|
30
31
|
readonly member_email: string | null;
|
|
32
|
+
readonly price: number;
|
|
31
33
|
}
|
|
@@ -14,6 +14,7 @@ export interface ApiBookingCalendarSlotSession {
|
|
|
14
14
|
readonly slot_index: number;
|
|
15
15
|
comment: string | null;
|
|
16
16
|
bookable_zones_taken: number;
|
|
17
|
+
bookable_zones_taken_display: string;
|
|
17
18
|
bookable_part_id: string | null;
|
|
18
19
|
readonly bookable_part_name: string | null;
|
|
19
20
|
readonly bookable_id: string;
|
|
@@ -27,4 +28,6 @@ export interface ApiBookingCalendarSlotSession {
|
|
|
27
28
|
member_id: string | null;
|
|
28
29
|
readonly member_name: string | null;
|
|
29
30
|
readonly member_email: string | null;
|
|
31
|
+
readonly price: number;
|
|
32
|
+
readonly payment_order_id: string | null;
|
|
30
33
|
}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import { ApiPaymentAttempt } from './api-payment-attempt';
|
|
2
|
-
export declare class
|
|
2
|
+
export declare class ApiInvoicePaymentAttemptCreate implements Pick<ApiPaymentAttempt, 'type' | 'invoice_id'> {
|
|
3
3
|
invoice_id: ApiPaymentAttempt['invoice_id'];
|
|
4
4
|
type: ApiPaymentAttempt['type'];
|
|
5
5
|
telephone_number: string;
|
|
6
6
|
constructor(invoice_id: ApiPaymentAttempt['invoice_id'], type: ApiPaymentAttempt['type'], telephone_number: string);
|
|
7
7
|
}
|
|
8
|
+
export declare class ApiPaymentOrderPaymentAttemptCreate implements Pick<ApiPaymentAttempt, 'type' | 'payment_order_id'> {
|
|
9
|
+
payment_order_id: ApiPaymentAttempt['payment_order_id'];
|
|
10
|
+
type: ApiPaymentAttempt['type'];
|
|
11
|
+
telephone_number: string;
|
|
12
|
+
constructor(payment_order_id: ApiPaymentAttempt['payment_order_id'], type: ApiPaymentAttempt['type'], telephone_number: string);
|
|
13
|
+
}
|
|
@@ -4,7 +4,8 @@ export interface ApiPaymentAttempt {
|
|
|
4
4
|
readonly amount: number;
|
|
5
5
|
readonly error: unknown;
|
|
6
6
|
readonly id: number;
|
|
7
|
-
invoice_id
|
|
7
|
+
invoice_id?: string;
|
|
8
|
+
payment_order_id?: string;
|
|
8
9
|
paid_date: string;
|
|
9
10
|
readonly payment_data: ApiPaymentAttemptCreditCardDataType | ApiPaymentAttemptSwishDataType | ApiPaymentAttemptZimplerDataType | null;
|
|
10
11
|
status: PaymentAttemptStatusType;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ApiCreditCard, ApiSwish } from './api-invoice-payments';
|
|
2
|
+
export interface ApiPaymentOrder {
|
|
3
|
+
amount: number;
|
|
4
|
+
credit_card: ApiCreditCard | null;
|
|
5
|
+
club_name: string;
|
|
6
|
+
id: string;
|
|
7
|
+
is_paid: boolean;
|
|
8
|
+
member_id: string;
|
|
9
|
+
organisation_name: string;
|
|
10
|
+
swish: ApiSwish | null;
|
|
11
|
+
full_title: string;
|
|
12
|
+
pay_until: string;
|
|
13
|
+
}
|
|
@@ -6,5 +6,6 @@ export * from './api-member-invoice-row';
|
|
|
6
6
|
export * from './api-search-member-invoice';
|
|
7
7
|
export * from './api-payment-attempt';
|
|
8
8
|
export * from './api-payment-attempt-create';
|
|
9
|
+
export * from './api-payment-order';
|
|
9
10
|
export * from './api-swish-qr-code';
|
|
10
11
|
export * from './api-unpaid-member-invoice';
|
|
@@ -12,6 +12,7 @@ export declare class BookableItem {
|
|
|
12
12
|
description: string;
|
|
13
13
|
tags?: BookableTag[] | null | undefined;
|
|
14
14
|
parts?: BookablePart[] | null | undefined;
|
|
15
|
+
next_available_datetime?: string | null | undefined;
|
|
15
16
|
static asFormGroup(bookable?: BookableItem): FormGroup<{
|
|
16
17
|
id: FormControl<string | null>;
|
|
17
18
|
club_id: FormControl<string | null>;
|
|
@@ -23,5 +24,5 @@ export declare class BookableItem {
|
|
|
23
24
|
tags: FormArray<FormGroup<any>>;
|
|
24
25
|
parts: FormArray<FormGroup<any>>;
|
|
25
26
|
}>;
|
|
26
|
-
constructor(id: string, club_id: string, section_id: string | null, group_id: string | null, active: boolean, name: string, location_id: string | null, description: string, tags?: BookableTag[] | null | undefined, parts?: BookablePart[] | null | undefined);
|
|
27
|
+
constructor(id: string, club_id: string, section_id: string | null, group_id: string | null, active: boolean, name: string, location_id: string | null, description: string, tags?: BookableTag[] | null | undefined, parts?: BookablePart[] | null | undefined, next_available_datetime?: string | null | undefined);
|
|
27
28
|
}
|
|
@@ -23,6 +23,7 @@ export declare class BookingCalendarApplicationTime {
|
|
|
23
23
|
readonly slot_last_repeating_date: string | null;
|
|
24
24
|
readonly created: string;
|
|
25
25
|
bookable_zones_taken: number;
|
|
26
|
+
bookable_zones_taken_display: string;
|
|
26
27
|
bookable_part_id: string | null;
|
|
27
28
|
readonly bookable_part_name: string | null;
|
|
28
29
|
readonly bookable_id: string;
|
|
@@ -30,6 +31,7 @@ export declare class BookingCalendarApplicationTime {
|
|
|
30
31
|
member_id: string | null;
|
|
31
32
|
readonly member_name: string | null;
|
|
32
33
|
readonly member_email: string | null;
|
|
34
|
+
readonly price: number;
|
|
33
35
|
static asFormGroup(session?: BookingCalendarApplicationTime): FormGroup<{
|
|
34
36
|
id: FormControl<string | null>;
|
|
35
37
|
section_id: FormControl<string | null>;
|
|
@@ -49,5 +51,5 @@ export declare class BookingCalendarApplicationTime {
|
|
|
49
51
|
bookable_part_id: FormControl<string | null>;
|
|
50
52
|
member_id: FormControl<string | null>;
|
|
51
53
|
}>;
|
|
52
|
-
constructor(id: string, section_id: string | null, slot_id: string, team_id: string | null, title: string, end_time: string, section_name: string | null, start_time: string, team_name: string | null, applicant_comment: string | null, reviewer_comment: string | null, status: string, repeat: boolean, activity_type_id: string | null, color: string | null, slot_start_time: string, slot_end_time: string, slot_day: string, slot_number_of_available_sessions: string, slot_last_repeating_date: string | null, created: string, bookable_zones_taken: number, bookable_part_id: string | null, bookable_part_name: string | null, bookable_id: string, bookable_name: string | null, member_id: string | null, member_name: string | null, member_email: string | null);
|
|
54
|
+
constructor(id: string, section_id: string | null, slot_id: string, team_id: string | null, title: string, end_time: string, section_name: string | null, start_time: string, team_name: string | null, applicant_comment: string | null, reviewer_comment: string | null, status: string, repeat: boolean, activity_type_id: string | null, color: string | null, slot_start_time: string, slot_end_time: string, slot_day: string, slot_number_of_available_sessions: string, slot_last_repeating_date: string | null, created: string, bookable_zones_taken: number, bookable_zones_taken_display: string, bookable_part_id: string | null, bookable_part_name: string | null, bookable_id: string, bookable_name: string | null, member_id: string | null, member_name: string | null, member_email: string | null, price?: number);
|
|
53
55
|
}
|
|
@@ -22,6 +22,7 @@ export declare class BookingCalendarSlotSession {
|
|
|
22
22
|
update_repeating: boolean;
|
|
23
23
|
update_until_date: string | null;
|
|
24
24
|
bookable_zones_taken: number;
|
|
25
|
+
bookable_zones_taken_display: string;
|
|
25
26
|
bookable_part_id: string | null;
|
|
26
27
|
readonly bookable_part_name: string | null;
|
|
27
28
|
readonly bookable_name: string | null;
|
|
@@ -29,6 +30,8 @@ export declare class BookingCalendarSlotSession {
|
|
|
29
30
|
member_id: string | null;
|
|
30
31
|
readonly member_name: string | null;
|
|
31
32
|
readonly member_email: string | null;
|
|
33
|
+
readonly price: number;
|
|
34
|
+
readonly payment_order_id: string | null;
|
|
32
35
|
static asFormGroup(session?: BookingCalendarSlotSession): FormGroup<{
|
|
33
36
|
id: FormControl<string | null>;
|
|
34
37
|
section_id: FormControl<string | null>;
|
|
@@ -51,5 +54,5 @@ export declare class BookingCalendarSlotSession {
|
|
|
51
54
|
bookable_part_id: FormControl<string | null>;
|
|
52
55
|
member_id: FormControl<string | null>;
|
|
53
56
|
}>;
|
|
54
|
-
constructor(id: string, section_id: string | null, slot_id: string, team_id: string | null, title: string, end_time: string, section_name: string | null, start_time: string, team_name: string | null, is_overbooked: boolean, last_repeating_date: string | null, type: string, slot_index: number, comment: string | null, day: string, repeat: boolean, activity_type_id: string | null, color: string | null, update_repeating: boolean, update_until_date: string | null, bookable_zones_taken: number, bookable_part_id: string | null, bookable_part_name: string | null, bookable_name: string | null, bookable_id: string, member_id: string | null, member_name: string | null, member_email: string | null);
|
|
57
|
+
constructor(id: string, section_id: string | null, slot_id: string, team_id: string | null, title: string, end_time: string, section_name: string | null, start_time: string, team_name: string | null, is_overbooked: boolean, last_repeating_date: string | null, type: string, slot_index: number, comment: string | null, day: string, repeat: boolean, activity_type_id: string | null, color: string | null, update_repeating: boolean, update_until_date: string | null, bookable_zones_taken: number, bookable_zones_taken_display: string, bookable_part_id: string | null, bookable_part_name: string | null, bookable_name: string | null, bookable_id: string, member_id: string | null, member_name: string | null, member_email: string | null, price: number, payment_order_id: string | null);
|
|
55
58
|
}
|
|
@@ -30,6 +30,7 @@ export declare class BookingCalendarSlot {
|
|
|
30
30
|
last_repeating_date?: string | null | undefined;
|
|
31
31
|
bookable_name?: string | null | undefined;
|
|
32
32
|
bookable_id?: string | undefined;
|
|
33
|
+
price: number | null;
|
|
33
34
|
static asFormGroup(slot?: BookingCalendarSlot): FormGroup<{
|
|
34
35
|
id: FormControl<string | null>;
|
|
35
36
|
calendar_id: FormControl<string | null>;
|
|
@@ -49,6 +50,7 @@ export declare class BookingCalendarSlot {
|
|
|
49
50
|
reserved_time: FormControl<moment.Moment | null>;
|
|
50
51
|
reserved_time_position: FormControl<string | null>;
|
|
51
52
|
bookable_id: FormControl<string | null>;
|
|
53
|
+
price: FormControl<number | null>;
|
|
52
54
|
}>;
|
|
53
|
-
constructor(id: string, calendar_id: string, calendar_status: string, color: string, day: string, end_time: string, group_id: string | null, number_of_available_sessions: number, sessions: Array<BookingCalendarSlotSession>, open_sessions: Array<BookingCalendarSlotSession>, start_time: string, type: BookingCalendarSlotType, repeat: string, update_repeating: boolean, update_until_date: string | null, reserved_time_enabled: boolean, repeat_num?: number | null | undefined, repeat_to_day?: string | null | undefined, repeat_type?: string | null | undefined, reserved_time?: string | null | undefined, reserved_time_position?: BookingCalendarSlotReservedTimePosition | null | undefined, application_times?: BookingCalendarApplicationTime[] | null | undefined, last_repeating_date?: string | null | undefined, bookable_name?: string | null | undefined, bookable_id?: string | undefined);
|
|
55
|
+
constructor(id: string, calendar_id: string, calendar_status: string, color: string, day: string, end_time: string, group_id: string | null, number_of_available_sessions: number, sessions: Array<BookingCalendarSlotSession>, open_sessions: Array<BookingCalendarSlotSession>, start_time: string, type: BookingCalendarSlotType, repeat: string, update_repeating: boolean, update_until_date: string | null, reserved_time_enabled: boolean, repeat_num?: number | null | undefined, repeat_to_day?: string | null | undefined, repeat_type?: string | null | undefined, reserved_time?: string | null | undefined, reserved_time_position?: BookingCalendarSlotReservedTimePosition | null | undefined, application_times?: BookingCalendarApplicationTime[] | null | undefined, last_repeating_date?: string | null | undefined, bookable_name?: string | null | undefined, bookable_id?: string | undefined, price?: number | null);
|
|
54
56
|
}
|
|
@@ -15,6 +15,8 @@ export declare class BookingCalendar {
|
|
|
15
15
|
allow_team_export: boolean;
|
|
16
16
|
allow_repeated_bookings: boolean;
|
|
17
17
|
is_default: boolean;
|
|
18
|
+
payment_limit_in_minutes: number;
|
|
19
|
+
price_per_hour: number;
|
|
18
20
|
available_for_teams?: SearchTeam[] | null | undefined;
|
|
19
21
|
bookable_groups?: BookableGroup[] | null | undefined;
|
|
20
22
|
type?: string | null | undefined;
|
|
@@ -36,6 +38,8 @@ export declare class BookingCalendar {
|
|
|
36
38
|
allow_team_export: FormControl<boolean | null>;
|
|
37
39
|
allow_repeated_bookings: FormControl<boolean | null>;
|
|
38
40
|
type: FormControl<string | null>;
|
|
41
|
+
price_per_hour: FormControl<number | null>;
|
|
42
|
+
payment_limit_in_minutes: FormControl<number | null>;
|
|
39
43
|
}>;
|
|
40
|
-
constructor(id: string, club_id: string, section_id: string | null, team_id: string | null, club_name: string, name: string, section_name: string | null, team_name: string | null, status: string | null, max_application_number: number, allow_team_export: boolean, allow_repeated_bookings: boolean, is_default: boolean, available_for_teams?: SearchTeam[] | null | undefined, bookable_groups?: BookableGroup[] | null | undefined, type?: string | null | undefined, type_display?: string | null | undefined);
|
|
44
|
+
constructor(id: string, club_id: string, section_id: string | null, team_id: string | null, club_name: string, name: string, section_name: string | null, team_name: string | null, status: string | null, max_application_number: number, allow_team_export: boolean, allow_repeated_bookings: boolean, is_default: boolean, payment_limit_in_minutes?: number, price_per_hour?: number, available_for_teams?: SearchTeam[] | null | undefined, bookable_groups?: BookableGroup[] | null | undefined, type?: string | null | undefined, type_display?: string | null | undefined);
|
|
41
45
|
}
|
|
@@ -13,5 +13,6 @@ export declare class BookingSlotFilter {
|
|
|
13
13
|
sortBy: string | null;
|
|
14
14
|
constructor(startDate?: string | null, endDate?: string | null, calendarIds?: string[] | null, locationIds?: string[] | null, bookableItemIds?: string[] | null, tagIds?: string[] | null, teamIds?: string[] | null, bookableGroupIds?: string[] | null, activityTypeIds?: string[] | null, hasOpenSessions?: boolean | null, showApplicationTimes?: boolean | null, sortBy?: string | null);
|
|
15
15
|
static fromFilter(filter: BookingSlotFilter): BookingSlotFilter;
|
|
16
|
+
static fromDates(startDate: string, endDate: string, calendarIds: string[], hasOpenSessions?: boolean | null, showApplicationTimes?: boolean | null): BookingSlotFilter;
|
|
16
17
|
toParams(): any;
|
|
17
18
|
}
|
|
@@ -3,6 +3,7 @@ export * from './member-invoice';
|
|
|
3
3
|
export * from './member-invoice-row';
|
|
4
4
|
export * from './payment-attempt';
|
|
5
5
|
export * from './payment-attempt-data-types';
|
|
6
|
+
export * from './payment-order';
|
|
6
7
|
export * from './payment-types/index';
|
|
7
8
|
export * from './search-member-invoice';
|
|
8
9
|
export * from './swish-qr-code';
|
|
@@ -4,10 +4,11 @@ export declare class PaymentAttempt {
|
|
|
4
4
|
readonly id: number;
|
|
5
5
|
readonly amount: number;
|
|
6
6
|
readonly error: unknown;
|
|
7
|
-
invoiceId: string;
|
|
7
|
+
invoiceId: string | undefined | null;
|
|
8
|
+
paymentOrderId: string | undefined | null;
|
|
8
9
|
paidDate: string;
|
|
9
10
|
readonly paymentData: PaymentAttemptCreditCardDataType | PaymentAttemptSwishDataType | PaymentAttemptZimplerDataType;
|
|
10
11
|
status: PaymentAttemptStatusType;
|
|
11
12
|
readonly type: PaymentAttemptType;
|
|
12
|
-
constructor(id: number, amount: number, error: unknown, invoiceId: string, paidDate: string, paymentData: PaymentAttemptCreditCardDataType | PaymentAttemptSwishDataType | PaymentAttemptZimplerDataType, status: PaymentAttemptStatusType, type: PaymentAttemptType);
|
|
13
|
+
constructor(id: number, amount: number, error: unknown, invoiceId: string | undefined | null, paymentOrderId: string | undefined | null, paidDate: string, paymentData: PaymentAttemptCreditCardDataType | PaymentAttemptSwishDataType | PaymentAttemptZimplerDataType, status: PaymentAttemptStatusType, type: PaymentAttemptType);
|
|
13
14
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CreditCard, Swish } from './payment-types';
|
|
2
|
+
export declare class PaymentOrder {
|
|
3
|
+
id: string;
|
|
4
|
+
amount: number;
|
|
5
|
+
creditCard: CreditCard | null;
|
|
6
|
+
clubName: string;
|
|
7
|
+
isPaid: boolean;
|
|
8
|
+
memberId: string;
|
|
9
|
+
organisationName: string;
|
|
10
|
+
swish: Swish | null;
|
|
11
|
+
full_title: string;
|
|
12
|
+
pay_until: string;
|
|
13
|
+
constructor(id: string, amount: number, creditCard: CreditCard | null, clubName: string, isPaid: boolean, memberId: string, organisationName: string, swish: Swish | null, full_title: string, pay_until: string);
|
|
14
|
+
}
|
|
@@ -6,9 +6,10 @@ export declare class BookableService {
|
|
|
6
6
|
constructor(apiService: ApiService);
|
|
7
7
|
getBookableItems(role: Role, itemId: string): import("rxjs").Observable<import("../models").Collection<BookableItem>>;
|
|
8
8
|
getTeamBookableItems(teamId: string): import("rxjs").Observable<import("../models").Collection<BookableItem>>;
|
|
9
|
-
getMemberBookableItems(memberId: string): import("rxjs").Observable<import("../models").Collection<BookableItem>>;
|
|
9
|
+
getMemberBookableItems(memberId: string, date?: string | null): import("rxjs").Observable<import("../models").Collection<BookableItem>>;
|
|
10
10
|
getClubBookableItems(clubId: string): import("rxjs").Observable<import("../models").Collection<BookableItem>>;
|
|
11
11
|
getSectionBookableItems(sectionId: string): import("rxjs").Observable<import("../models").Collection<BookableItem>>;
|
|
12
|
+
getMemberBookableItem(memberId: string, bookableId: string): import("rxjs").Observable<BookableItem>;
|
|
12
13
|
updateBookableItem(role: Role, clubOrSectionOrTeamId: string, bookableItem: Partial<BookableItem>): import("rxjs").Observable<BookableItem>;
|
|
13
14
|
updateClubBookableItem(clubId: string, bookableItem: Partial<BookableItem>): import("rxjs").Observable<BookableItem>;
|
|
14
15
|
updateSectionBookableItem(sectionId: string, bookableItem: Partial<BookableItem>): import("rxjs").Observable<BookableItem>;
|
|
@@ -60,6 +60,8 @@ export declare class BookingCalendarService {
|
|
|
60
60
|
deleteBookingCalendarSlotRepeatable(role: Role, clubOrSectionOrTeamId: string, id: string, deleteUntilDate: string | null): import("rxjs").Observable<boolean>;
|
|
61
61
|
private deleteClubBookingCalendarSlotRepeatable;
|
|
62
62
|
private deleteSectionBookingCalendarSlotRepeatable;
|
|
63
|
+
getMemberBookingCalendarSlotSessions(memberId: string): import("rxjs").Observable<import("../models").Collection<BookingCalendarSlotSession>>;
|
|
64
|
+
getMemberBookingCalendarBookableSlots(memberId: string, bookableId: string, startDate: string, endDate: string): import("rxjs").Observable<import("../models").Collection<BookingCalendarSlot>>;
|
|
63
65
|
createBookingCalendarSlotSession(role: Role, itemId: string, session: Partial<BookingCalendarSlotSession>): import("rxjs").Observable<BookingCalendarSlotSession>;
|
|
64
66
|
private createClubBookingCalendarSlotSession;
|
|
65
67
|
private createSectionBookingCalendarSlotSession;
|
|
@@ -15,6 +15,8 @@ export declare class ConstantService {
|
|
|
15
15
|
getActivityRepeatTypeOptions(): Observable<Array<OptionInterface>>;
|
|
16
16
|
getCountries(): Observable<Array<OptionInterface>>;
|
|
17
17
|
getBookingSlotTypes(): Observable<Array<OptionInterface>>;
|
|
18
|
+
getTeamBookingSlotTypes(): Observable<Array<OptionInterface>>;
|
|
19
|
+
getMemberBookingSlotTypes(): Observable<Array<OptionInterface>>;
|
|
18
20
|
getBookingSlotReservedTimePositions(): Observable<Array<OptionInterface>>;
|
|
19
21
|
getBookingSlotSessionTypes(): Observable<Array<OptionInterface>>;
|
|
20
22
|
getBookingCalendarStatuses(): Observable<Array<OptionInterface>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const invalidRoleError: Error;
|
|
@@ -5,13 +5,20 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
export declare class PaymentAttemptService {
|
|
6
6
|
private apiService;
|
|
7
7
|
constructor(apiService: ApiService);
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
createMemberInvoicePaymentAttempt(memberId: string, invoiceId: string, type: PaymentAttemptType, phoneNumber?: string): import("rxjs").Observable<PaymentAttempt>;
|
|
9
|
+
createPublicInvoicePaymentAttempt(invoiceId: string, token: string, type: PaymentAttemptType, phoneNumber?: string): import("rxjs").Observable<PaymentAttempt>;
|
|
10
|
+
getMemberInvoicePaymentAttempt(memberId: string, invoiceId: string, id: number): import("rxjs").Observable<PaymentAttempt>;
|
|
11
|
+
getMemberInvoiceSwishQRCode(memberId: string, invoiceId: string, id: number): import("rxjs").Observable<SwishQrCode>;
|
|
12
|
+
getPublicInvoicePaymentAttempt(invoiceId: string, token: string, id: number): import("rxjs").Observable<PaymentAttempt>;
|
|
13
|
+
getPublicInvoiceSwishQRCode(invoiceId: string, token: string, id: number): import("rxjs").Observable<SwishQrCode>;
|
|
14
|
+
createMemberPaymentOrderPaymentAttempt(memberId: string, paymentOrderId: string, type: PaymentAttemptType, phoneNumber?: string): import("rxjs").Observable<PaymentAttempt>;
|
|
15
|
+
createPublicPaymentOrderPaymentAttempt(paymentOrderId: string, token: string, type: PaymentAttemptType, phoneNumber?: string): import("rxjs").Observable<PaymentAttempt>;
|
|
16
|
+
getMemberPaymentOrderPaymentAttempt(memberId: string, paymentOrderId: string, id: number): import("rxjs").Observable<PaymentAttempt>;
|
|
17
|
+
getMemberPaymentOrderSwishQRCode(memberId: string, paymentOrderId: string, id: number): import("rxjs").Observable<SwishQrCode>;
|
|
18
|
+
getPublicPaymentOrderPaymentAttempt(paymentOrderId: string, token: string, id: number): import("rxjs").Observable<PaymentAttempt>;
|
|
19
|
+
getPublicPaymentOrderSwishQRCode(paymentOrderId: string, token: string, id: number): import("rxjs").Observable<SwishQrCode>;
|
|
20
|
+
private createInvoicePaymentAttempt;
|
|
21
|
+
private createPaymentOrderPaymentAttempt;
|
|
15
22
|
private getPaymentAttempt;
|
|
16
23
|
private getSwishQRCode;
|
|
17
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<PaymentAttemptService, never>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ApiService } from '../api.service';
|
|
2
|
+
import { ClubImage, PaymentOrder } from '../../models';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class PaymentOrderService {
|
|
5
|
+
private apiService;
|
|
6
|
+
constructor(apiService: ApiService);
|
|
7
|
+
getMemberPaymentOrder(memberId: string, paymentOrderId: string): import("rxjs").Observable<PaymentOrder>;
|
|
8
|
+
deleteMemberPaymentOrder(memberId: string, paymentOrderId: string): import("rxjs").Observable<boolean>;
|
|
9
|
+
getMemberPaymentOrders(memberId: string, filterParams?: {
|
|
10
|
+
[key: string]: string;
|
|
11
|
+
}): import("rxjs").Observable<import("../../models").Collection<PaymentOrder>>;
|
|
12
|
+
getPublicPaymentOrder(paymentOrderId: string, token: string): import("rxjs").Observable<PaymentOrder>;
|
|
13
|
+
getPublicPaymentOrderLogo(paymentOrderId: string, token: string): import("rxjs").Observable<ClubImage>;
|
|
14
|
+
private getPaymentOrder;
|
|
15
|
+
private getPaymentOrders;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PaymentOrderService, never>;
|
|
17
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PaymentOrderService>;
|
|
18
|
+
}
|
|
@@ -4,6 +4,9 @@ export declare enum BookingActionTypes {
|
|
|
4
4
|
ListCalendar = "[Booking] List calendars",
|
|
5
5
|
ListCalendarSuccess = "[Booking] List calendars success",
|
|
6
6
|
ListCalendarFailure = "[Booking] List calendars failure",
|
|
7
|
+
ListMemberCalendar = "[Booking] List member calendars",
|
|
8
|
+
ListMemberCalendarSuccess = "[Booking] List member calendars success",
|
|
9
|
+
ListMemberCalendarFailure = "[Booking] List member calendars failure",
|
|
7
10
|
ListLocation = "[Booking] List locations",
|
|
8
11
|
ListLocationSuccess = "[Booking] List locations success",
|
|
9
12
|
ListLocationFailure = "[Booking] List locations failure",
|
|
@@ -76,6 +79,12 @@ export declare enum BookingActionTypes {
|
|
|
76
79
|
DeleteBookingCalendarRepeatableSlot = "[Booking] Delete booking calendar repeatable slot",
|
|
77
80
|
DeleteBookingCalendarRepeatableSlotSuccess = "[Booking] Delete booking calendar repeatable slot success",
|
|
78
81
|
DeleteBookingCalendarRepeatableSlotFailure = "[Booking] Delete booking calendar repeatable slot failure",
|
|
82
|
+
ListMemberBookingCalendarSlotSession = "[Booking] List member booking calendar slot session",
|
|
83
|
+
ListMemberBookingCalendarSlotSessionSuccess = "[Booking] List member booking calendar slot session success",
|
|
84
|
+
ListMemberBookingCalendarSlotSessionFailure = "[Booking] List member booking calendar slot session failure",
|
|
85
|
+
ListMemberBookingCalendarBookableSlots = "[Booking] List member booking calendar bookable slots",
|
|
86
|
+
ListMemberBookingCalendarBookableSlotsSuccess = "[Booking] List member booking calendar bookable slots success",
|
|
87
|
+
ListMemberBookingCalendarBookableSlotsFailure = "[Booking] List member booking calendar bookable slots failure",
|
|
79
88
|
CreateBookingCalendarSlotSession = "[Booking] Create booking calendar slot session",
|
|
80
89
|
CreateBookingCalendarSlotSessionSuccess = "[Booking] Create booking calendar slot session success",
|
|
81
90
|
CreateBookingCalendarSlotSessionFailure = "[Booking] Create booking calendar slot session failure",
|
|
@@ -110,6 +119,21 @@ export declare const listCalendarFailureAction: import("@ngrx/store").ActionCrea
|
|
|
110
119
|
}) => {
|
|
111
120
|
payload: HttpErrorResponse;
|
|
112
121
|
} & import("@ngrx/store").Action<BookingActionTypes.ListCalendarFailure>>;
|
|
122
|
+
export declare const listMemberCalendarAction: import("@ngrx/store").ActionCreator<BookingActionTypes.ListMemberCalendar, (props: {
|
|
123
|
+
memberIds: Array<string>;
|
|
124
|
+
}) => {
|
|
125
|
+
memberIds: Array<string>;
|
|
126
|
+
} & import("@ngrx/store").Action<BookingActionTypes.ListMemberCalendar>>;
|
|
127
|
+
export declare const listMemberCalendarSuccessAction: import("@ngrx/store").ActionCreator<BookingActionTypes.ListMemberCalendarSuccess, (props: {
|
|
128
|
+
bookingCalendarsMap: Map<string, Array<BookingCalendar>>;
|
|
129
|
+
}) => {
|
|
130
|
+
bookingCalendarsMap: Map<string, Array<BookingCalendar>>;
|
|
131
|
+
} & import("@ngrx/store").Action<BookingActionTypes.ListMemberCalendarSuccess>>;
|
|
132
|
+
export declare const listMemberCalendarFailureAction: import("@ngrx/store").ActionCreator<BookingActionTypes.ListMemberCalendarFailure, (props: {
|
|
133
|
+
payload: HttpErrorResponse;
|
|
134
|
+
}) => {
|
|
135
|
+
payload: HttpErrorResponse;
|
|
136
|
+
} & import("@ngrx/store").Action<BookingActionTypes.ListMemberCalendarFailure>>;
|
|
113
137
|
export declare const listLocationAction: import("@ngrx/store").ActionCreator<BookingActionTypes.ListLocation, (props: {
|
|
114
138
|
role: Role;
|
|
115
139
|
clubOrSectionOrTeamId: string;
|
|
@@ -552,6 +576,42 @@ export declare const deleteBookingCalendarRepeatableSlotFailureAction: import("@
|
|
|
552
576
|
}) => {
|
|
553
577
|
payload: HttpErrorResponse;
|
|
554
578
|
} & import("@ngrx/store").Action<BookingActionTypes.DeleteBookingCalendarRepeatableSlotFailure>>;
|
|
579
|
+
export declare const listMemberBookingCalendarSlotSessionAction: import("@ngrx/store").ActionCreator<BookingActionTypes.ListMemberBookingCalendarSlotSession, (props: {
|
|
580
|
+
memberIds: Array<string>;
|
|
581
|
+
}) => {
|
|
582
|
+
memberIds: Array<string>;
|
|
583
|
+
} & import("@ngrx/store").Action<BookingActionTypes.ListMemberBookingCalendarSlotSession>>;
|
|
584
|
+
export declare const listMemberBookingCalendarSlotSessionSuccessAction: import("@ngrx/store").ActionCreator<BookingActionTypes.ListMemberBookingCalendarSlotSessionSuccess, (props: {
|
|
585
|
+
sessionsMap: Map<string, Array<BookingCalendarSlotSession>>;
|
|
586
|
+
}) => {
|
|
587
|
+
sessionsMap: Map<string, Array<BookingCalendarSlotSession>>;
|
|
588
|
+
} & import("@ngrx/store").Action<BookingActionTypes.ListMemberBookingCalendarSlotSessionSuccess>>;
|
|
589
|
+
export declare const listMemberBookingCalendarSlotSessionFailureAction: import("@ngrx/store").ActionCreator<BookingActionTypes.ListMemberBookingCalendarSlotSessionFailure, (props: {
|
|
590
|
+
payload: HttpErrorResponse;
|
|
591
|
+
}) => {
|
|
592
|
+
payload: HttpErrorResponse;
|
|
593
|
+
} & import("@ngrx/store").Action<BookingActionTypes.ListMemberBookingCalendarSlotSessionFailure>>;
|
|
594
|
+
export declare const listMemberBookingCalendarBookableSlotsAction: import("@ngrx/store").ActionCreator<BookingActionTypes.ListMemberBookingCalendarBookableSlots, (props: {
|
|
595
|
+
bookableId: string;
|
|
596
|
+
memberIds: Array<string>;
|
|
597
|
+
startDate: string;
|
|
598
|
+
endDate: string;
|
|
599
|
+
}) => {
|
|
600
|
+
bookableId: string;
|
|
601
|
+
memberIds: Array<string>;
|
|
602
|
+
startDate: string;
|
|
603
|
+
endDate: string;
|
|
604
|
+
} & import("@ngrx/store").Action<BookingActionTypes.ListMemberBookingCalendarBookableSlots>>;
|
|
605
|
+
export declare const listMemberBookingCalendarBookableSlotsSuccessAction: import("@ngrx/store").ActionCreator<BookingActionTypes.ListMemberBookingCalendarBookableSlotsSuccess, (props: {
|
|
606
|
+
slotsMap: Map<string, Array<BookingCalendarSlot>>;
|
|
607
|
+
}) => {
|
|
608
|
+
slotsMap: Map<string, Array<BookingCalendarSlot>>;
|
|
609
|
+
} & import("@ngrx/store").Action<BookingActionTypes.ListMemberBookingCalendarBookableSlotsSuccess>>;
|
|
610
|
+
export declare const listMemberBookingCalendarBookableSlotsFailureAction: import("@ngrx/store").ActionCreator<BookingActionTypes.ListMemberBookingCalendarBookableSlotsFailure, (props: {
|
|
611
|
+
payload: HttpErrorResponse;
|
|
612
|
+
}) => {
|
|
613
|
+
payload: HttpErrorResponse;
|
|
614
|
+
} & import("@ngrx/store").Action<BookingActionTypes.ListMemberBookingCalendarBookableSlotsFailure>>;
|
|
555
615
|
export declare const createBookingCalendarSlotSessionAction: import("@ngrx/store").ActionCreator<BookingActionTypes.CreateBookingCalendarSlotSession, (props: {
|
|
556
616
|
role: Role;
|
|
557
617
|
clubOrSectionOrTeamId: string;
|
|
@@ -38,6 +38,12 @@ export declare enum ConstantActionType {
|
|
|
38
38
|
RetrieveBookingSlotTypes = "[Constant] Retrieve Booking Slot Types",
|
|
39
39
|
RetrieveBookingSlotTypesSuccess = "[Constant] Retrieve Booking Slot Types success",
|
|
40
40
|
RetrieveBookingSlotTypesFailure = "[Constant] Retrieve Booking Slot Types failure",
|
|
41
|
+
RetrieveTeamBookingSlotTypes = "[Constant] Retrieve Team Booking Slot Types",
|
|
42
|
+
RetrieveTeamBookingSlotTypesSuccess = "[Constant] Retrieve Team Booking Slot Types success",
|
|
43
|
+
RetrieveTeamBookingSlotTypesFailure = "[Constant] Retrieve Team Booking Slot Types failure",
|
|
44
|
+
RetrieveMemberBookingSlotTypes = "[Constant] Retrieve Member Booking Slot Types",
|
|
45
|
+
RetrieveMemberBookingSlotTypesSuccess = "[Constant] Retrieve Member Booking Slot Types success",
|
|
46
|
+
RetrieveMemberBookingSlotTypesFailure = "[Constant] Retrieve Member Booking Slot Types failure",
|
|
41
47
|
RetrieveBookingSlotReservedTimePositions = "[Constant] Retrieve Booking Slot Reserved Time Positions",
|
|
42
48
|
RetrieveBookingSlotReservedTimePositionsSuccess = "[Constant] Retrieve Booking Slot Reserved Time Positions success",
|
|
43
49
|
RetrieveBookingSlotReservedTimePositionsFailure = "[Constant] Retrieve Booking Slot Reserved Time Positions failure",
|
|
@@ -186,6 +192,28 @@ export declare const retrieveBookingSlotTypesFailureAction: import("@ngrx/store"
|
|
|
186
192
|
}) => {
|
|
187
193
|
payload: HttpErrorResponse;
|
|
188
194
|
} & import("@ngrx/store").Action<ConstantActionType.RetrieveBookingSlotTypesFailure>>;
|
|
195
|
+
export declare const retrieveTeamBookingSlotTypesAction: import("@ngrx/store").ActionCreator<ConstantActionType.RetrieveTeamBookingSlotTypes, () => import("@ngrx/store").Action<ConstantActionType.RetrieveTeamBookingSlotTypes>>;
|
|
196
|
+
export declare const retrieveTeamBookingSlotTypesSuccessAction: import("@ngrx/store").ActionCreator<ConstantActionType.RetrieveTeamBookingSlotTypesSuccess, (props: {
|
|
197
|
+
payload: Array<OptionInterface>;
|
|
198
|
+
}) => {
|
|
199
|
+
payload: Array<OptionInterface>;
|
|
200
|
+
} & import("@ngrx/store").Action<ConstantActionType.RetrieveTeamBookingSlotTypesSuccess>>;
|
|
201
|
+
export declare const retrieveTeamBookingSlotTypesFailureAction: import("@ngrx/store").ActionCreator<ConstantActionType.RetrieveTeamBookingSlotTypesFailure, (props: {
|
|
202
|
+
payload: HttpErrorResponse;
|
|
203
|
+
}) => {
|
|
204
|
+
payload: HttpErrorResponse;
|
|
205
|
+
} & import("@ngrx/store").Action<ConstantActionType.RetrieveTeamBookingSlotTypesFailure>>;
|
|
206
|
+
export declare const retrieveMemberBookingSlotTypesAction: import("@ngrx/store").ActionCreator<ConstantActionType.RetrieveMemberBookingSlotTypes, () => import("@ngrx/store").Action<ConstantActionType.RetrieveMemberBookingSlotTypes>>;
|
|
207
|
+
export declare const retrieveMemberBookingSlotTypesSuccessAction: import("@ngrx/store").ActionCreator<ConstantActionType.RetrieveMemberBookingSlotTypesSuccess, (props: {
|
|
208
|
+
payload: Array<OptionInterface>;
|
|
209
|
+
}) => {
|
|
210
|
+
payload: Array<OptionInterface>;
|
|
211
|
+
} & import("@ngrx/store").Action<ConstantActionType.RetrieveMemberBookingSlotTypesSuccess>>;
|
|
212
|
+
export declare const retrieveMemberBookingSlotTypesFailureAction: import("@ngrx/store").ActionCreator<ConstantActionType.RetrieveMemberBookingSlotTypesFailure, (props: {
|
|
213
|
+
payload: HttpErrorResponse;
|
|
214
|
+
}) => {
|
|
215
|
+
payload: HttpErrorResponse;
|
|
216
|
+
} & import("@ngrx/store").Action<ConstantActionType.RetrieveMemberBookingSlotTypesFailure>>;
|
|
189
217
|
export declare const retrieveBookingSlotReservedTimePositionsAction: import("@ngrx/store").ActionCreator<ConstantActionType.RetrieveBookingSlotReservedTimePositions, () => import("@ngrx/store").Action<ConstantActionType.RetrieveBookingSlotReservedTimePositions>>;
|
|
190
218
|
export declare const retrieveBookingSlotReservedTimePositionsSuccessAction: import("@ngrx/store").ActionCreator<ConstantActionType.RetrieveBookingSlotReservedTimePositionsSuccess, (props: {
|
|
191
219
|
payload: Array<OptionInterface>;
|