@bondsports/types 0.0.56 → 0.0.59

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/build/index.d.ts CHANGED
@@ -2,13 +2,6 @@ import { BaseEntity } from 'typeorm';
2
2
  import { Stripe } from 'stripe';
3
3
  import moment from 'moment';
4
4
  export { TypesProvider } from './provider';
5
- export declare class BasicActivityTimesDto {
6
- dayOfWeek: number;
7
- close: string;
8
- open: string;
9
- availabilityStartDate?: string;
10
- availabilityEndDate?: string;
11
- }
12
5
  export declare class QuestionAnswersDto {
13
6
  questionId: number;
14
7
  value: any;
@@ -20,6 +13,13 @@ export declare class UserAnswersDto {
20
13
  export declare class GetByQuestionnaireIdsDto {
21
14
  questionnaireIds: string;
22
15
  }
16
+ export declare class BasicActivityTimesDto {
17
+ dayOfWeek: number;
18
+ close: string;
19
+ open: string;
20
+ availabilityStartDate?: string;
21
+ availabilityEndDate?: string;
22
+ }
23
23
  export declare class FindBookingTypeSettingDto {
24
24
  organizationId: number;
25
25
  facilityId: number;
@@ -27,64 +27,6 @@ export declare class FindBookingTypeSettingDto {
27
27
  bookingDate: string;
28
28
  bookingTime: string;
29
29
  }
30
- export declare class FindByMembershipIdDto extends ByOrganizationIdDto {
31
- membershipId: number;
32
- }
33
- export declare class ImportProductsFromDB {
34
- buDate: string;
35
- }
36
- export declare class ImportCustomerFromCSV {
37
- fileName: string;
38
- startIndex?: number;
39
- }
40
- export declare class ImportProgramsFileDto extends ImportCustomerFromCSV {
41
- resolveInvoices: string;
42
- }
43
- export declare class ImportDashCustomerDto extends ImportCustomerFromCSV {
44
- membershipId: number;
45
- onlyDashIds: string;
46
- }
47
- export declare class ImportRentalsFromCSV extends ImportCustomerFromCSV {
48
- facilityId: number;
49
- }
50
- export declare class ByOrganizationIdCustomerIdDto extends ByOrganizationIdDto {
51
- customerId: number;
52
- }
53
- export declare class FindCustomersByOrganizationIdFiltersDto extends PaginationQuery {
54
- nameSearch?: string;
55
- fuzzy?: string;
56
- customerType?: CustomerTypeEnum;
57
- customersIds?: string;
58
- }
59
- export declare class AddCustomerNotesDto {
60
- customerNotes: CustomerNoteDto[];
61
- }
62
- export declare class CustomerNoteDto {
63
- id?: number;
64
- description: string;
65
- pinToTop?: boolean;
66
- }
67
- export declare class AddEditCustomerDto {
68
- firstName?: string;
69
- lastName?: string;
70
- entityId?: number;
71
- entityType?: CustomerTypeEnum;
72
- email?: string;
73
- color?: string;
74
- street?: string;
75
- city?: string;
76
- state?: string;
77
- zip?: string;
78
- phoneNumber?: string;
79
- mainMediaId?: number;
80
- creatorId?: number;
81
- creatorType?: ResourceNameTypeEnum;
82
- userCreatorId?: number;
83
- gender?: GenderEnum;
84
- birthDate?: string;
85
- emergencyContactName?: string;
86
- emergencyContactPhone?: string;
87
- }
88
30
  export declare class FindEventByIdDto {
89
31
  eventId: number;
90
32
  organizationId: number;
@@ -186,6 +128,64 @@ export declare class FindEventAttendeeOptionsDto extends PaginationRangeQuery {
186
128
  isWaiverSigned?: string;
187
129
  statuses?: string;
188
130
  }
131
+ export declare class FindByMembershipIdDto extends ByOrganizationIdDto {
132
+ membershipId: number;
133
+ }
134
+ export declare class ImportProductsFromDB {
135
+ buDate: string;
136
+ }
137
+ export declare class ImportCustomerFromCSV {
138
+ fileName: string;
139
+ startIndex?: number;
140
+ }
141
+ export declare class ImportProgramsFileDto extends ImportCustomerFromCSV {
142
+ resolveInvoices: string;
143
+ }
144
+ export declare class ImportDashCustomerDto extends ImportCustomerFromCSV {
145
+ membershipId: number;
146
+ onlyDashIds: string;
147
+ }
148
+ export declare class ImportRentalsFromCSV extends ImportCustomerFromCSV {
149
+ facilityId: number;
150
+ }
151
+ export declare class ByOrganizationIdCustomerIdDto extends ByOrganizationIdDto {
152
+ customerId: number;
153
+ }
154
+ export declare class FindCustomersByOrganizationIdFiltersDto extends PaginationQuery {
155
+ nameSearch?: string;
156
+ fuzzy?: string;
157
+ customerType?: CustomerTypeEnum;
158
+ customersIds?: string;
159
+ }
160
+ export declare class AddCustomerNotesDto {
161
+ customerNotes: CustomerNoteDto[];
162
+ }
163
+ export declare class CustomerNoteDto {
164
+ id?: number;
165
+ description: string;
166
+ pinToTop?: boolean;
167
+ }
168
+ export declare class AddEditCustomerDto {
169
+ firstName?: string;
170
+ lastName?: string;
171
+ entityId?: number;
172
+ entityType?: CustomerTypeEnum;
173
+ email?: string;
174
+ color?: string;
175
+ street?: string;
176
+ city?: string;
177
+ state?: string;
178
+ zip?: string;
179
+ phoneNumber?: string;
180
+ mainMediaId?: number;
181
+ creatorId?: number;
182
+ creatorType?: ResourceNameTypeEnum;
183
+ userCreatorId?: number;
184
+ gender?: GenderEnum;
185
+ birthDate?: string;
186
+ emergencyContactName?: string;
187
+ emergencyContactPhone?: string;
188
+ }
189
189
  export declare class AddressDto {
190
190
  city: string;
191
191
  state: string;
@@ -1140,6 +1140,14 @@ export declare class AthleteSports extends BondBaseEntity {
1140
1140
  sports: number | null;
1141
1141
  levelOfPlay: LevelOfPlayEnum | null;
1142
1142
  }
1143
+ export declare class BlockedDate extends BondBaseEntity {
1144
+ entityType: ResourceNameTypeEnum;
1145
+ entityId: number;
1146
+ name: string;
1147
+ startDate: Date;
1148
+ endDate: Date;
1149
+ deletedAt?: Date;
1150
+ }
1143
1151
  export declare class BondBaseEntity extends BaseEntity {
1144
1152
  id: number;
1145
1153
  createdAt: Date;
@@ -1178,14 +1186,6 @@ export declare class Configuration extends BondBaseEntity {
1178
1186
  key: string;
1179
1187
  value: string;
1180
1188
  }
1181
- export declare class BlockedDate extends BondBaseEntity {
1182
- entityType: ResourceNameTypeEnum;
1183
- entityId: number;
1184
- name: string;
1185
- startDate: Date;
1186
- endDate: Date;
1187
- deletedAt?: Date;
1188
- }
1189
1189
  export declare class Connection extends BondBaseEntity {
1190
1190
  connType: number | null;
1191
1191
  from: number | null;
@@ -1246,6 +1246,12 @@ export declare class CustomerCreditTransaction extends OrganizationConnectionBas
1246
1246
  order: Order;
1247
1247
  invoice: Invoice;
1248
1248
  }
1249
+ export declare class CustomerNote extends OrganizationConnectionBaseEntity {
1250
+ customerId?: number;
1251
+ description: string;
1252
+ pinToTop?: boolean;
1253
+ customer: Customer;
1254
+ }
1249
1255
  export declare class Division extends BondBaseEntity {
1250
1256
  name: string;
1251
1257
  ordinal?: number;
@@ -1254,12 +1260,6 @@ export declare class Division extends BondBaseEntity {
1254
1260
  isDefault: boolean;
1255
1261
  groups: Group[];
1256
1262
  }
1257
- export declare class CustomerNote extends OrganizationConnectionBaseEntity {
1258
- customerId?: number;
1259
- description: string;
1260
- pinToTop?: boolean;
1261
- customer: Customer;
1262
- }
1263
1263
  export declare class EmergencyContact extends OrganizationConnectionBaseEntity {
1264
1264
  customerId: number;
1265
1265
  name: string | null;
@@ -1422,17 +1422,6 @@ export declare class GroupsInDivisions extends BondBaseEntity {
1422
1422
  divisionId: number;
1423
1423
  deletedAt?: Date;
1424
1424
  }
1425
- export declare class InvoiceMails extends OrganizationConnectionBaseEntity {
1426
- email: string;
1427
- status: EEmailStatus;
1428
- templateId: string;
1429
- userId: number;
1430
- invoiceId: number;
1431
- paymentId: number;
1432
- sendingUserId: number;
1433
- mailParams?: any;
1434
- memo?: string;
1435
- }
1436
1425
  export declare class Invoice extends OrganizationConnectionBaseEntity {
1437
1426
  price: number;
1438
1427
  paymentProcessorId: string;
@@ -1460,6 +1449,17 @@ export declare class Invoice extends OrganizationConnectionBaseEntity {
1460
1449
  refundReasonId?: number;
1461
1450
  refundNote?: string;
1462
1451
  }
1452
+ export declare class InvoiceMails extends OrganizationConnectionBaseEntity {
1453
+ email: string;
1454
+ status: EEmailStatus;
1455
+ templateId: string;
1456
+ userId: number;
1457
+ invoiceId: number;
1458
+ paymentId: number;
1459
+ sendingUserId: number;
1460
+ mailParams?: any;
1461
+ memo?: string;
1462
+ }
1463
1463
  export declare class InvoiceNote extends OrganizationConnectionBaseEntity {
1464
1464
  content: string;
1465
1465
  creatingUserId: number;
@@ -2057,6 +2057,17 @@ export declare class RefundReason extends OrganizationConnectionBaseEntity {
2057
2057
  ordinal: number;
2058
2058
  deletedAt: Date;
2059
2059
  }
2060
+ export declare class RegistrationConstraint extends OrganizationConnectionBaseEntity {
2061
+ resourceType: ResourceNameTypeEnum;
2062
+ resourceId: number;
2063
+ openNumDays?: number;
2064
+ openNumMinutes?: number;
2065
+ openTime?: string;
2066
+ closeNumDays?: number;
2067
+ closeNumMinutes?: number;
2068
+ closeTime?: string;
2069
+ deletedAt?: Date;
2070
+ }
2060
2071
  export declare class Reservations extends OrganizationConnectionBaseEntity {
2061
2072
  name?: string;
2062
2073
  description?: string;
@@ -2117,17 +2128,6 @@ export declare class Resource extends OrganizationConnectionBaseEntity {
2117
2128
  purchasedResources: PurchasedResource[];
2118
2129
  linkSEO: string;
2119
2130
  }
2120
- export declare class RegistrationConstraint extends OrganizationConnectionBaseEntity {
2121
- resourceType: ResourceNameTypeEnum;
2122
- resourceId: number;
2123
- openNumDays?: number;
2124
- openNumMinutes?: number;
2125
- openTime?: string;
2126
- closeNumDays?: number;
2127
- closeNumMinutes?: number;
2128
- closeTime?: string;
2129
- deletedAt?: Date;
2130
- }
2131
2131
  export declare class ResourceGroup extends OrganizationConnectionBaseEntity {
2132
2132
  name: string;
2133
2133
  facilityId: number;
@@ -2143,6 +2143,20 @@ export declare class School extends BondBaseEntity {
2143
2143
  phone: string | null;
2144
2144
  dataId: number | null;
2145
2145
  }
2146
+ export declare class SeasonAttendee extends BondBaseEntity {
2147
+ status: RequestStatusEnum;
2148
+ paymentStatus: PaymentStatusEnum;
2149
+ paymentId?: number;
2150
+ productId?: number;
2151
+ attendeeId: number;
2152
+ attendee: User;
2153
+ seasonId: number;
2154
+ season: ProgramSeason;
2155
+ productUserId?: number;
2156
+ answerTitleIds?: number[];
2157
+ deletedAt?: Date;
2158
+ purchasedResource: PurchasedResource;
2159
+ }
2146
2160
  export declare class SeasonDivisions extends BondBaseEntity {
2147
2161
  name: string | null;
2148
2162
  ordinal: number | null;
@@ -2164,20 +2178,6 @@ export declare class SeasonPool extends BondBaseEntity {
2164
2178
  purchasedResource: PurchasedResource;
2165
2179
  season: LeagueSeason;
2166
2180
  }
2167
- export declare class SeasonAttendee extends BondBaseEntity {
2168
- status: RequestStatusEnum;
2169
- paymentStatus: PaymentStatusEnum;
2170
- paymentId?: number;
2171
- productId?: number;
2172
- attendeeId: number;
2173
- attendee: User;
2174
- seasonId: number;
2175
- season: ProgramSeason;
2176
- productUserId?: number;
2177
- answerTitleIds?: number[];
2178
- deletedAt?: Date;
2179
- purchasedResource: PurchasedResource;
2180
- }
2181
2181
  export declare class SeasonTeam extends BondBaseEntity {
2182
2182
  seasonId: number | null;
2183
2183
  teamId: number | null;
@@ -3101,6 +3101,7 @@ export interface ISlotReservationData {
3101
3101
  slotType: SlotTypeEnum;
3102
3102
  slotId: number;
3103
3103
  eventId: number;
3104
+ isPrivate: boolean;
3104
3105
  }
3105
3106
  export interface IRawEventInSchedule extends IEventInSchedule {
3106
3107
  parentSessionId: number;
@@ -3129,6 +3130,7 @@ export interface IRawSlotInSchedule {
3129
3130
  slotType: SlotTypeEnum;
3130
3131
  slotId: number;
3131
3132
  eventId: number;
3133
+ isPrivate: boolean;
3132
3134
  }
3133
3135
  export interface IPurchasedResourcesRaw {
3134
3136
  purchasedId: number;
@@ -3393,6 +3395,17 @@ export declare class Lock extends BondBaseEntity {
3393
3395
  name: string;
3394
3396
  locked?: Date;
3395
3397
  }
3398
+ export declare class CreateMonitorConfigDto {
3399
+ facilityId: number;
3400
+ name: string;
3401
+ code: string;
3402
+ config: any;
3403
+ }
3404
+ export declare class MonitorConfig extends OrganizationConnectionBaseEntity {
3405
+ facilityId: number;
3406
+ code: string;
3407
+ config?: any;
3408
+ }
3396
3409
  export declare class ByOrganizationIdDto {
3397
3410
  organizationId: number;
3398
3411
  }
@@ -3461,189 +3474,6 @@ export declare class OrganizationUsers extends BondBaseEntity {
3461
3474
  organisationId: number | null;
3462
3475
  userId: number | null;
3463
3476
  }
3464
- export declare class CreateMonitorConfigDto {
3465
- facilityId: number;
3466
- name: string;
3467
- code: string;
3468
- config: any;
3469
- }
3470
- export declare class MonitorConfig extends OrganizationConnectionBaseEntity {
3471
- facilityId: number;
3472
- code: string;
3473
- config?: any;
3474
- }
3475
- export declare class CustomerIdDto {
3476
- customerId: number;
3477
- }
3478
- export declare class PaymentIdDto {
3479
- paymentId: number;
3480
- }
3481
- export declare class InvoiceIdDto {
3482
- invoiceId: number;
3483
- }
3484
- export declare class ByOrganizationIdAndInvoiceIdDto extends ByOrganizationIdDto {
3485
- invoiceId: number;
3486
- }
3487
- export declare class GetInvoicesQueryDto {
3488
- extended?: boolean;
3489
- }
3490
- export declare class GetPaymentsQueryDto {
3491
- extended?: boolean;
3492
- }
3493
- export declare class InvoiceViaOrderHashDto {
3494
- customerId: number;
3495
- orderHash: string;
3496
- }
3497
- export declare class DiscountDto {
3498
- lineItemId: number;
3499
- price: number;
3500
- entitlementGroupId: number;
3501
- description?: string;
3502
- }
3503
- export declare class LineItemIdDto {
3504
- lineItemId: number;
3505
- }
3506
- export declare class ByPaymentFilter extends PaginationQuery {
3507
- paymentType?: string;
3508
- paymentStatus?: string;
3509
- }
3510
- export declare class FindPayments extends ByPaymentFilter {
3511
- }
3512
- export declare class BasicInstallmentDataDto extends ByOrganizationIdAndInvoiceIdDto {
3513
- userId: number;
3514
- }
3515
- export declare class CreateScheduledPaymentsDto extends BasicInstallmentDataDto {
3516
- payments: ScheduledPaymentDto[];
3517
- paymentMethodType: PaymentMethodTypeEnum;
3518
- payemntMethodId: string;
3519
- }
3520
- export declare class ScheduledPaymentDto {
3521
- plannedDate: Date;
3522
- price: number;
3523
- }
3524
- export declare class FutureInstallmentsIdsDto {
3525
- paymentsIds: number[];
3526
- }
3527
- export declare class StationsDto {
3528
- organizationId: number;
3529
- facilityId: number;
3530
- stationId: number;
3531
- }
3532
- export declare class PaymentIntentDto {
3533
- amount: number;
3534
- customer: string;
3535
- currency: string;
3536
- capture_method: string;
3537
- payment_method_types: string[];
3538
- organizationId: number;
3539
- creatorId: number;
3540
- }
3541
- export declare class PaymentDataDto {
3542
- paymentMethodType: PaymentMethodTypeEnum;
3543
- payemntMethodId: string;
3544
- }
3545
- export declare class SendReceiptDataDto {
3546
- invoiceId: number;
3547
- deliveryMethod: 'email' | 'sms';
3548
- sendToAddress?: string;
3549
- }
3550
- export declare class PaymentPlanSchduleDto {
3551
- date: Date;
3552
- percent?: number;
3553
- }
3554
- export declare class PaymentPlanDto {
3555
- months?: number;
3556
- dayOfMonth?: number;
3557
- schedule?: PaymentPlanSchduleDto[];
3558
- }
3559
- export declare class CalcPaymentPlanDto extends PaymentPlanDto {
3560
- amountToSplit: number;
3561
- }
3562
- export declare class AddToOrderDto {
3563
- orderId: number;
3564
- userId: number;
3565
- productsToAdd: PurchaseProductDto[];
3566
- resourcesToRemove: PurchaseProductDto[];
3567
- }
3568
- export declare class CreateNoteDto {
3569
- content: string;
3570
- isPublic: boolean;
3571
- }
3572
- export declare class UpdateNoteContentDto extends CreateNoteDto {
3573
- id: number;
3574
- }
3575
- export declare class NotePrivacyDto {
3576
- filter: string;
3577
- }
3578
- export declare class RevertMetaDto {
3579
- removedResources: RemoveResourceDto[];
3580
- }
3581
- export declare class RemoveResourceDto {
3582
- resourceType: ResourceNameTypeEnum;
3583
- resourceId: number;
3584
- lineItemId: number;
3585
- }
3586
- export declare class SendRequestDto {
3587
- orderId: number;
3588
- userId: number;
3589
- sendToEmail: string;
3590
- memo?: string;
3591
- }
3592
- export declare class RefundDto {
3593
- orderId: number;
3594
- lineItems: RefundLineItemAmountDto[];
3595
- refundLineItemAmountDict?: {
3596
- [id: number]: number;
3597
- };
3598
- refunds: PaymentMethodDto[];
3599
- refundType: RefundTypeEnum;
3600
- reasonId: number;
3601
- note?: string;
3602
- shiftId?: number;
3603
- meta?: RevertMetaDto;
3604
- }
3605
- export declare class PaymentMethodDto {
3606
- paymentMethodType: PaymentMethodTypeEnum;
3607
- amount: number;
3608
- paymentMethodId?: string;
3609
- }
3610
- export declare class RefundLineItemAmountDto {
3611
- id: number;
3612
- refundAmount: number;
3613
- }
3614
- export declare class VoidDto {
3615
- lineItems: VoidLineItemDto[];
3616
- meta?: RevertMetaDto;
3617
- }
3618
- export declare class VoidLineItemDto {
3619
- id: number;
3620
- quantity?: number;
3621
- isEdit?: boolean;
3622
- amount?: number;
3623
- }
3624
- export declare class ChangeRolePermissionsDto {
3625
- permissionIds: number[];
3626
- }
3627
- export declare class CreateRoleDto {
3628
- name: string;
3629
- }
3630
- export declare class Permission extends BondBaseEntity {
3631
- name: string;
3632
- deletedAt?: Date;
3633
- }
3634
- export declare class Role extends OrganizationConnectionBaseEntity {
3635
- name: string;
3636
- deletedAt?: Date;
3637
- permissions: Permission[];
3638
- usersRoles: UserRole[];
3639
- }
3640
- export declare class UserRole extends OrganizationConnectionBaseEntity {
3641
- deletedAt?: Date;
3642
- userId: number;
3643
- roleId: number;
3644
- role: Role;
3645
- user: User;
3646
- }
3647
3477
  export declare class LineItemDto {
3648
3478
  id?: number;
3649
3479
  orderId?: number;
@@ -3726,6 +3556,17 @@ export declare class PurchasedResourceDto {
3726
3556
  endDate?: string;
3727
3557
  endTime?: string;
3728
3558
  }
3559
+ export declare class SegmentDto {
3560
+ id?: number;
3561
+ title: string;
3562
+ isPrivate: boolean;
3563
+ resourceIds: number[];
3564
+ sportId?: number;
3565
+ series: SeriesDto[];
3566
+ addonIds?: number[];
3567
+ publicNotesForSlots?: string;
3568
+ privateNotesForSlots?: string;
3569
+ }
3729
3570
  export declare class ReservationDto {
3730
3571
  id?: number;
3731
3572
  organizationId?: number;
@@ -3865,17 +3706,6 @@ export declare class ValidateEditSlotsDto extends UpdateSlotsDto {
3865
3706
  export declare class AddAddonsDto {
3866
3707
  addons: ProductPricesDto[];
3867
3708
  }
3868
- export declare class SegmentDto {
3869
- id?: number;
3870
- title: string;
3871
- isPrivate: boolean;
3872
- resourceIds: number[];
3873
- sportId?: number;
3874
- series: SeriesDto[];
3875
- addonIds?: number[];
3876
- publicNotesForSlots?: string;
3877
- privateNotesForSlots?: string;
3878
- }
3879
3709
  export declare class SeriesDto {
3880
3710
  id?: number;
3881
3711
  startDate: string;
@@ -4156,6 +3986,178 @@ export declare class Slot extends OrganizationConnectionBaseEntity {
4156
3986
  changeLineItems?: LineItems[];
4157
3987
  updatedLineItem?: LineItems;
4158
3988
  }
3989
+ export declare class ChangeRolePermissionsDto {
3990
+ permissionIds: number[];
3991
+ }
3992
+ export declare class CreateRoleDto {
3993
+ name: string;
3994
+ }
3995
+ export declare class Permission extends BondBaseEntity {
3996
+ name: string;
3997
+ deletedAt?: Date;
3998
+ }
3999
+ export declare class Role extends OrganizationConnectionBaseEntity {
4000
+ name: string;
4001
+ deletedAt?: Date;
4002
+ permissions: Permission[];
4003
+ usersRoles: UserRole[];
4004
+ }
4005
+ export declare class UserRole extends OrganizationConnectionBaseEntity {
4006
+ deletedAt?: Date;
4007
+ userId: number;
4008
+ roleId: number;
4009
+ role: Role;
4010
+ user: User;
4011
+ }
4012
+ export declare class CustomerIdDto {
4013
+ customerId: number;
4014
+ }
4015
+ export declare class PaymentIdDto {
4016
+ paymentId: number;
4017
+ }
4018
+ export declare class InvoiceIdDto {
4019
+ invoiceId: number;
4020
+ }
4021
+ export declare class ByOrganizationIdAndInvoiceIdDto extends ByOrganizationIdDto {
4022
+ invoiceId: number;
4023
+ }
4024
+ export declare class GetInvoicesQueryDto {
4025
+ extended?: boolean;
4026
+ }
4027
+ export declare class GetPaymentsQueryDto {
4028
+ extended?: boolean;
4029
+ }
4030
+ export declare class InvoiceViaOrderHashDto {
4031
+ customerId: number;
4032
+ orderHash: string;
4033
+ }
4034
+ export declare class DiscountDto {
4035
+ lineItemId: number;
4036
+ price: number;
4037
+ entitlementGroupId: number;
4038
+ description?: string;
4039
+ }
4040
+ export declare class LineItemIdDto {
4041
+ lineItemId: number;
4042
+ }
4043
+ export declare class ByPaymentFilter extends PaginationQuery {
4044
+ paymentType?: string;
4045
+ paymentStatus?: string;
4046
+ }
4047
+ export declare class FindPayments extends ByPaymentFilter {
4048
+ }
4049
+ export declare class BasicInstallmentDataDto extends ByOrganizationIdAndInvoiceIdDto {
4050
+ userId: number;
4051
+ }
4052
+ export declare class CreateScheduledPaymentsDto extends BasicInstallmentDataDto {
4053
+ payments: ScheduledPaymentDto[];
4054
+ paymentMethodType: PaymentMethodTypeEnum;
4055
+ payemntMethodId: string;
4056
+ }
4057
+ export declare class ScheduledPaymentDto {
4058
+ plannedDate: Date;
4059
+ price: number;
4060
+ }
4061
+ export declare class FutureInstallmentsIdsDto {
4062
+ paymentsIds: number[];
4063
+ }
4064
+ export declare class StationsDto {
4065
+ organizationId: number;
4066
+ facilityId: number;
4067
+ stationId: number;
4068
+ }
4069
+ export declare class PaymentIntentDto {
4070
+ amount: number;
4071
+ customer: string;
4072
+ currency: string;
4073
+ capture_method: string;
4074
+ payment_method_types: string[];
4075
+ organizationId: number;
4076
+ creatorId: number;
4077
+ }
4078
+ export declare class PaymentDataDto {
4079
+ paymentMethodType: PaymentMethodTypeEnum;
4080
+ payemntMethodId: string;
4081
+ }
4082
+ export declare class SendReceiptDataDto {
4083
+ invoiceId: number;
4084
+ deliveryMethod: 'email' | 'sms';
4085
+ sendToAddress?: string;
4086
+ }
4087
+ export declare class PaymentPlanSchduleDto {
4088
+ date: Date;
4089
+ percent?: number;
4090
+ }
4091
+ export declare class PaymentPlanDto {
4092
+ months?: number;
4093
+ dayOfMonth?: number;
4094
+ schedule?: PaymentPlanSchduleDto[];
4095
+ }
4096
+ export declare class CalcPaymentPlanDto extends PaymentPlanDto {
4097
+ amountToSplit: number;
4098
+ }
4099
+ export declare class AddToOrderDto {
4100
+ orderId: number;
4101
+ userId: number;
4102
+ productsToAdd: PurchaseProductDto[];
4103
+ resourcesToRemove: PurchaseProductDto[];
4104
+ }
4105
+ export declare class CreateNoteDto {
4106
+ content: string;
4107
+ isPublic: boolean;
4108
+ }
4109
+ export declare class UpdateNoteContentDto extends CreateNoteDto {
4110
+ id: number;
4111
+ }
4112
+ export declare class NotePrivacyDto {
4113
+ filter: string;
4114
+ }
4115
+ export declare class RevertMetaDto {
4116
+ removedResources: RemoveResourceDto[];
4117
+ }
4118
+ export declare class RemoveResourceDto {
4119
+ resourceType: ResourceNameTypeEnum;
4120
+ resourceId: number;
4121
+ lineItemId: number;
4122
+ }
4123
+ export declare class SendRequestDto {
4124
+ orderId: number;
4125
+ userId: number;
4126
+ sendToEmail: string;
4127
+ memo?: string;
4128
+ }
4129
+ export declare class RefundDto {
4130
+ orderId: number;
4131
+ lineItems: RefundLineItemAmountDto[];
4132
+ refundLineItemAmountDict?: {
4133
+ [id: number]: number;
4134
+ };
4135
+ refunds: PaymentMethodDto[];
4136
+ refundType: RefundTypeEnum;
4137
+ reasonId: number;
4138
+ note?: string;
4139
+ shiftId?: number;
4140
+ meta?: RevertMetaDto;
4141
+ }
4142
+ export declare class PaymentMethodDto {
4143
+ paymentMethodType: PaymentMethodTypeEnum;
4144
+ amount: number;
4145
+ paymentMethodId?: string;
4146
+ }
4147
+ export declare class RefundLineItemAmountDto {
4148
+ id: number;
4149
+ refundAmount: number;
4150
+ }
4151
+ export declare class VoidDto {
4152
+ lineItems: VoidLineItemDto[];
4153
+ meta?: RevertMetaDto;
4154
+ }
4155
+ export declare class VoidLineItemDto {
4156
+ id: number;
4157
+ quantity?: number;
4158
+ isEdit?: boolean;
4159
+ amount?: number;
4160
+ }
4159
4161
  export declare class CloseShiftDto {
4160
4162
  closingCashAmount: number;
4161
4163
  }