@bondsports/types 0.0.59 → 0.0.60

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,6 +2,13 @@ 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
+ }
5
12
  export declare class QuestionAnswersDto {
6
13
  questionId: number;
7
14
  value: any;
@@ -13,13 +20,6 @@ export declare class UserAnswersDto {
13
20
  export declare class GetByQuestionnaireIdsDto {
14
21
  questionnaireIds: string;
15
22
  }
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,6 +27,64 @@ 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
+ }
30
88
  export declare class FindEventByIdDto {
31
89
  eventId: number;
32
90
  organizationId: number;
@@ -128,64 +186,6 @@ export declare class FindEventAttendeeOptionsDto extends PaginationRangeQuery {
128
186
  isWaiverSigned?: string;
129
187
  statuses?: string;
130
188
  }
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;
@@ -876,50 +876,6 @@ export declare class MoveParticipantDto {
876
876
  resourceId: number;
877
877
  orderId: number;
878
878
  }
879
- export declare class FindProgramsByOrganizationIdDto {
880
- organizationId: number;
881
- programType?: ProgramTypesEnum;
882
- }
883
- export declare class FindProgramByIdDto {
884
- programId: number;
885
- }
886
- export declare class FindProgramByOrgIdAndIdDto {
887
- programId: number;
888
- organizationId: number;
889
- }
890
- export declare class BaseProgramDto {
891
- type: ProgramTypesEnum;
892
- name: string;
893
- sport: SportsEnum;
894
- minAge: string;
895
- maxAge: string;
896
- gender: GenderEnum;
897
- level?: LevelOfPlayEnum[];
898
- description?: string;
899
- GL?: string;
900
- status: PublishingStatusEnum;
901
- organizationId: number;
902
- userCreatorId: number;
903
- highlights: ProgramHighlights[];
904
- longDescription?: string;
905
- requiredProductIds: number[];
906
- }
907
- export declare class CreateProgramDto extends BaseProgramDto {
908
- }
909
- export declare class UpdateProgramDto extends BaseProgramDto {
910
- programId: number;
911
- mainMediaId: number;
912
- }
913
- export declare class UpdateProgramStatusDto {
914
- programId: number;
915
- status: PublishingStatusEnum;
916
- }
917
- export declare class ProgramHighlightDto {
918
- data: string;
919
- ordinal: number;
920
- type: ProgramHighlightTypeEnum;
921
- title: string;
922
- }
923
879
  export declare class PurchasePaymentDto {
924
880
  token: string;
925
881
  type: PaymentMethodTypeEnum;
@@ -998,6 +954,50 @@ export declare class CreateResourceGroupDto {
998
954
  }
999
955
  export declare class UpdateResourceGroupDto extends CreateResourceGroupDto {
1000
956
  }
957
+ export declare class FindProgramsByOrganizationIdDto {
958
+ organizationId: number;
959
+ programType?: ProgramTypesEnum;
960
+ }
961
+ export declare class FindProgramByIdDto {
962
+ programId: number;
963
+ }
964
+ export declare class FindProgramByOrgIdAndIdDto {
965
+ programId: number;
966
+ organizationId: number;
967
+ }
968
+ export declare class BaseProgramDto {
969
+ type: ProgramTypesEnum;
970
+ name: string;
971
+ sport: SportsEnum;
972
+ minAge: string;
973
+ maxAge: string;
974
+ gender: GenderEnum;
975
+ level?: LevelOfPlayEnum[];
976
+ description?: string;
977
+ GL?: string;
978
+ status: PublishingStatusEnum;
979
+ organizationId: number;
980
+ userCreatorId: number;
981
+ highlights: ProgramHighlights[];
982
+ longDescription?: string;
983
+ requiredProductIds: number[];
984
+ }
985
+ export declare class CreateProgramDto extends BaseProgramDto {
986
+ }
987
+ export declare class UpdateProgramDto extends BaseProgramDto {
988
+ programId: number;
989
+ mainMediaId: number;
990
+ }
991
+ export declare class UpdateProgramStatusDto {
992
+ programId: number;
993
+ status: PublishingStatusEnum;
994
+ }
995
+ export declare class ProgramHighlightDto {
996
+ data: string;
997
+ ordinal: number;
998
+ type: ProgramHighlightTypeEnum;
999
+ title: string;
1000
+ }
1001
1001
  export declare class ResourceDto {
1002
1002
  type: ResourceNameTypeEnum;
1003
1003
  id: number;
@@ -2128,13 +2128,6 @@ export declare class Resource extends OrganizationConnectionBaseEntity {
2128
2128
  purchasedResources: PurchasedResource[];
2129
2129
  linkSEO: string;
2130
2130
  }
2131
- export declare class ResourceGroup extends OrganizationConnectionBaseEntity {
2132
- name: string;
2133
- facilityId: number;
2134
- parentSlotId: number;
2135
- childrenSlotIds: number[];
2136
- deletedAt?: Date;
2137
- }
2138
2131
  export declare class School extends BondBaseEntity {
2139
2132
  name: string | null;
2140
2133
  alias: string[] | null;
@@ -2347,6 +2340,13 @@ export declare class WebflowOrganizationConfiguration extends OrganizationConnec
2347
2340
  membershipCollectionId?: string;
2348
2341
  programsCollectionId?: string;
2349
2342
  }
2343
+ export declare class ResourceGroup extends OrganizationConnectionBaseEntity {
2344
+ name: string;
2345
+ facilityId: number;
2346
+ parentSlotId: number;
2347
+ childrenSlotIds: number[];
2348
+ deletedAt?: Date;
2349
+ }
2350
2350
  export declare enum EntitlementTermsTypesEnum {
2351
2351
  QUESTION = "question",
2352
2352
  CITY = "city",
@@ -3234,11 +3234,22 @@ export interface IReservationCreatorData {
3234
3234
  endDate: string;
3235
3235
  sportId: number;
3236
3236
  }
3237
- export declare class ColumnNumericTransformer {
3238
- to(data: number): number;
3239
- from(data: string): number;
3237
+ export declare class ProductIdsDto {
3238
+ productIds?: number[];
3239
+ }
3240
+ export declare class ProductImportDto {
3241
+ product: Product;
3242
+ prices: Price[];
3243
+ resourceIds: number[];
3244
+ oldId: number;
3245
+ }
3246
+ export declare class PunchPassDto {
3247
+ CustomerID: string;
3248
+ QuantityLeft: number;
3249
+ BondProgramID: number;
3250
+ BondSessionID: number;
3251
+ ProductID: number;
3240
3252
  }
3241
- export declare function convertToNumber(data: string): number;
3242
3253
  export declare class AddImportedCustomerDto extends AddEditCustomerDto {
3243
3254
  name?: string;
3244
3255
  genderStr?: string;
@@ -3253,57 +3264,6 @@ export declare class AddFamilyDto {
3253
3264
  parents: AddImportedCustomerDto[];
3254
3265
  children: AddImportedCustomerDto[];
3255
3266
  }
3256
- export declare enum ImportPaymentTypeEnum {
3257
- CREDIT_CARD = "card",
3258
- ACH = "ach",
3259
- CASH = "cash",
3260
- CHECK = "check",
3261
- CARD_ON_TERMINAL = "card-on-terminal",
3262
- OTHER = "other"
3263
- }
3264
- export declare class ImportedInvoiceLineDto {
3265
- invoiceID?: string;
3266
- description: string;
3267
- createdDate: string;
3268
- createdTime: string;
3269
- quantity: string;
3270
- price: string;
3271
- total: string;
3272
- customerID: string;
3273
- resourceType: string;
3274
- resourceID: string;
3275
- }
3276
- export declare class ImportedInvoiceDto {
3277
- customerId?: string;
3278
- total?: string;
3279
- amountDue?: string;
3280
- payments?: ImportedPaymentDto[];
3281
- lines: any;
3282
- }
3283
- export declare class ImportedPaymentDto {
3284
- invoiceID: string;
3285
- type: ImportPaymentTypeEnum;
3286
- description: string;
3287
- paid: string;
3288
- date: string;
3289
- time: string;
3290
- }
3291
- export declare class ProductIdsDto {
3292
- productIds?: number[];
3293
- }
3294
- export declare class ProductImportDto {
3295
- product: Product;
3296
- prices: Price[];
3297
- resourceIds: number[];
3298
- oldId: number;
3299
- }
3300
- export declare class PunchPassDto {
3301
- CustomerID: string;
3302
- QuantityLeft: number;
3303
- BondProgramID: number;
3304
- BondSessionID: number;
3305
- ProductID: number;
3306
- }
3307
3267
  export declare class ImportedSlotProductDto {
3308
3268
  slotID?: string;
3309
3269
  name?: string;
@@ -3355,6 +3315,46 @@ export declare class ImportedReservationDto {
3355
3315
  slots?: ImportedSlotDto[];
3356
3316
  addons?: ImportedSlotProductDto[];
3357
3317
  }
3318
+ export declare enum ImportPaymentTypeEnum {
3319
+ CREDIT_CARD = "card",
3320
+ ACH = "ach",
3321
+ CASH = "cash",
3322
+ CHECK = "check",
3323
+ CARD_ON_TERMINAL = "card-on-terminal",
3324
+ OTHER = "other"
3325
+ }
3326
+ export declare class ImportedInvoiceLineDto {
3327
+ invoiceID?: string;
3328
+ description: string;
3329
+ createdDate: string;
3330
+ createdTime: string;
3331
+ quantity: string;
3332
+ price: string;
3333
+ total: string;
3334
+ customerID: string;
3335
+ resourceType: string;
3336
+ resourceID: string;
3337
+ }
3338
+ export declare class ImportedInvoiceDto {
3339
+ customerId?: string;
3340
+ total?: string;
3341
+ amountDue?: string;
3342
+ payments?: ImportedPaymentDto[];
3343
+ lines: any;
3344
+ }
3345
+ export declare class ImportedPaymentDto {
3346
+ invoiceID: string;
3347
+ type: ImportPaymentTypeEnum;
3348
+ description: string;
3349
+ paid: string;
3350
+ date: string;
3351
+ time: string;
3352
+ }
3353
+ export declare class ColumnNumericTransformer {
3354
+ to(data: number): number;
3355
+ from(data: string): number;
3356
+ }
3357
+ export declare function convertToNumber(data: string): number;
3358
3358
  export declare class GameSlots extends BondBaseEntity {
3359
3359
  entityType: string;
3360
3360
  entityId: number;
@@ -3474,6 +3474,155 @@ export declare class OrganizationUsers extends BondBaseEntity {
3474
3474
  organisationId: number | null;
3475
3475
  userId: number | null;
3476
3476
  }
3477
+ export declare class RefundDto {
3478
+ orderId: number;
3479
+ lineItems: RefundLineItemAmountDto[];
3480
+ refundLineItemAmountDict?: {
3481
+ [id: number]: number;
3482
+ };
3483
+ refunds: PaymentMethodDto[];
3484
+ refundType: RefundTypeEnum;
3485
+ reasonId: number;
3486
+ note?: string;
3487
+ shiftId?: number;
3488
+ meta?: RevertMetaDto;
3489
+ }
3490
+ export declare class PaymentMethodDto {
3491
+ paymentMethodType: PaymentMethodTypeEnum;
3492
+ amount: number;
3493
+ paymentMethodId?: string;
3494
+ }
3495
+ export declare class RefundLineItemAmountDto {
3496
+ id: number;
3497
+ refundAmount: number;
3498
+ }
3499
+ export declare class CustomerIdDto {
3500
+ customerId: number;
3501
+ }
3502
+ export declare class PaymentIdDto {
3503
+ paymentId: number;
3504
+ }
3505
+ export declare class InvoiceIdDto {
3506
+ invoiceId: number;
3507
+ }
3508
+ export declare class ByOrganizationIdAndInvoiceIdDto extends ByOrganizationIdDto {
3509
+ invoiceId: number;
3510
+ }
3511
+ export declare class GetInvoicesQueryDto {
3512
+ extended?: boolean;
3513
+ }
3514
+ export declare class GetPaymentsQueryDto {
3515
+ extended?: boolean;
3516
+ }
3517
+ export declare class InvoiceViaOrderHashDto {
3518
+ customerId: number;
3519
+ orderHash: string;
3520
+ }
3521
+ export declare class DiscountDto {
3522
+ lineItemId: number;
3523
+ price: number;
3524
+ entitlementGroupId: number;
3525
+ description?: string;
3526
+ }
3527
+ export declare class LineItemIdDto {
3528
+ lineItemId: number;
3529
+ }
3530
+ export declare class ByPaymentFilter extends PaginationQuery {
3531
+ paymentType?: string;
3532
+ paymentStatus?: string;
3533
+ }
3534
+ export declare class FindPayments extends ByPaymentFilter {
3535
+ }
3536
+ export declare class BasicInstallmentDataDto extends ByOrganizationIdAndInvoiceIdDto {
3537
+ userId: number;
3538
+ }
3539
+ export declare class CreateScheduledPaymentsDto extends BasicInstallmentDataDto {
3540
+ payments: ScheduledPaymentDto[];
3541
+ paymentMethodType: PaymentMethodTypeEnum;
3542
+ payemntMethodId: string;
3543
+ }
3544
+ export declare class ScheduledPaymentDto {
3545
+ plannedDate: Date;
3546
+ price: number;
3547
+ }
3548
+ export declare class FutureInstallmentsIdsDto {
3549
+ paymentsIds: number[];
3550
+ }
3551
+ export declare class StationsDto {
3552
+ organizationId: number;
3553
+ facilityId: number;
3554
+ stationId: number;
3555
+ }
3556
+ export declare class PaymentIntentDto {
3557
+ amount: number;
3558
+ customer: string;
3559
+ currency: string;
3560
+ capture_method: string;
3561
+ payment_method_types: string[];
3562
+ organizationId: number;
3563
+ creatorId: number;
3564
+ }
3565
+ export declare class PaymentDataDto {
3566
+ paymentMethodType: PaymentMethodTypeEnum;
3567
+ payemntMethodId: string;
3568
+ }
3569
+ export declare class SendReceiptDataDto {
3570
+ invoiceId: number;
3571
+ deliveryMethod: 'email' | 'sms';
3572
+ sendToAddress?: string;
3573
+ }
3574
+ export declare class PaymentPlanSchduleDto {
3575
+ date: Date;
3576
+ percent?: number;
3577
+ }
3578
+ export declare class PaymentPlanDto {
3579
+ months?: number;
3580
+ dayOfMonth?: number;
3581
+ schedule?: PaymentPlanSchduleDto[];
3582
+ }
3583
+ export declare class CalcPaymentPlanDto extends PaymentPlanDto {
3584
+ amountToSplit: number;
3585
+ }
3586
+ export declare class AddToOrderDto {
3587
+ orderId: number;
3588
+ userId: number;
3589
+ productsToAdd: PurchaseProductDto[];
3590
+ resourcesToRemove: PurchaseProductDto[];
3591
+ }
3592
+ export declare class CreateNoteDto {
3593
+ content: string;
3594
+ isPublic: boolean;
3595
+ }
3596
+ export declare class UpdateNoteContentDto extends CreateNoteDto {
3597
+ id: number;
3598
+ }
3599
+ export declare class NotePrivacyDto {
3600
+ filter: string;
3601
+ }
3602
+ export declare class RevertMetaDto {
3603
+ removedResources: RemoveResourceDto[];
3604
+ }
3605
+ export declare class RemoveResourceDto {
3606
+ resourceType: ResourceNameTypeEnum;
3607
+ resourceId: number;
3608
+ lineItemId: number;
3609
+ }
3610
+ export declare class SendRequestDto {
3611
+ orderId: number;
3612
+ userId: number;
3613
+ sendToEmail: string;
3614
+ memo?: string;
3615
+ }
3616
+ export declare class VoidDto {
3617
+ lineItems: VoidLineItemDto[];
3618
+ meta?: RevertMetaDto;
3619
+ }
3620
+ export declare class VoidLineItemDto {
3621
+ id: number;
3622
+ quantity?: number;
3623
+ isEdit?: boolean;
3624
+ amount?: number;
3625
+ }
3477
3626
  export declare class LineItemDto {
3478
3627
  id?: number;
3479
3628
  orderId?: number;
@@ -3556,17 +3705,6 @@ export declare class PurchasedResourceDto {
3556
3705
  endDate?: string;
3557
3706
  endTime?: string;
3558
3707
  }
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
- }
3570
3708
  export declare class ReservationDto {
3571
3709
  id?: number;
3572
3710
  organizationId?: number;
@@ -3706,6 +3844,17 @@ export declare class ValidateEditSlotsDto extends UpdateSlotsDto {
3706
3844
  export declare class AddAddonsDto {
3707
3845
  addons: ProductPricesDto[];
3708
3846
  }
3847
+ export declare class SegmentDto {
3848
+ id?: number;
3849
+ title: string;
3850
+ isPrivate: boolean;
3851
+ resourceIds: number[];
3852
+ sportId?: number;
3853
+ series: SeriesDto[];
3854
+ addonIds?: number[];
3855
+ publicNotesForSlots?: string;
3856
+ privateNotesForSlots?: string;
3857
+ }
3709
3858
  export declare class SeriesDto {
3710
3859
  id?: number;
3711
3860
  startDate: string;
@@ -4009,155 +4158,6 @@ export declare class UserRole extends OrganizationConnectionBaseEntity {
4009
4158
  role: Role;
4010
4159
  user: User;
4011
4160
  }
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
- }
4161
4161
  export declare class CloseShiftDto {
4162
4162
  closingCashAmount: number;
4163
4163
  }