@bondsports/types 2.4.103 → 2.4.104-a-1
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/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/cart/entities/cart.entity.d.ts +3 -0
- package/dist/types/cart/entities/cart.entity.js.map +1 -1
- package/dist/types/cart/types/consts/cart.consts.d.ts +1 -0
- package/dist/types/cart/types/consts/cart.consts.js +1 -0
- package/dist/types/cart/types/consts/cart.consts.js.map +1 -1
- package/dist/types/cart/types/interfaces/cart.interfaces.d.ts +0 -4
- package/dist/types/customers/types/consts/customers.consts.d.ts +2 -1
- package/dist/types/customers/types/consts/customers.consts.js +3 -2
- package/dist/types/customers/types/consts/customers.consts.js.map +1 -1
- package/dist/types/customers/types/interfaces.d.ts +1 -7
- package/dist/types/employees/types/interfaces/employee-facility-access.interfaces.d.ts +1 -0
- package/dist/types/entity/Invoice.d.ts +4 -0
- package/dist/types/entity/Invoice.js.map +1 -1
- package/dist/types/entity/LinkedAccounts.d.ts +0 -2
- package/dist/types/entity/LinkedAccounts.js.map +1 -1
- package/dist/types/folders/types/interfaces/folder-content.interfaces.d.ts +1 -1
- package/dist/types/gl-codes/dto/gl-code.dto.d.ts +11 -4
- package/dist/types/gl-codes/dto/gl-code.dto.js +6 -5
- package/dist/types/gl-codes/dto/gl-code.dto.js.map +1 -1
- package/dist/types/gl-codes/entities/gl-code-to-facility.entity.d.ts +10 -0
- package/dist/types/gl-codes/entities/gl-code-to-facility.entity.js +8 -0
- package/dist/types/gl-codes/entities/gl-code-to-facility.entity.js.map +1 -0
- package/dist/types/gl-codes/entities/gl-code.d.ts +2 -0
- package/dist/types/gl-codes/entities/gl-code.js.map +1 -1
- package/dist/types/gl-codes/entities/index.d.ts +1 -0
- package/dist/types/gl-codes/entities/index.js +1 -0
- package/dist/types/gl-codes/entities/index.js.map +1 -1
- package/dist/types/gl-codes/types/enums/gl-code.enum.d.ts +2 -1
- package/dist/types/gl-codes/types/enums/gl-code.enum.js +1 -0
- package/dist/types/gl-codes/types/enums/gl-code.enum.js.map +1 -1
- package/dist/types/gl-codes/types/interfaces/gl-code.interfaces.d.ts +6 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +1 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/invoice/dto/organization-invoice.dto.d.ts +2 -0
- package/dist/types/invoice/dto/organization-invoice.dto.js.map +1 -1
- package/dist/types/invoice/types/interfaces/invoice.interfaces.d.ts +20 -1
- package/dist/types/invoice/types/interfaces/invoice.interfaces.js.map +1 -1
- package/dist/types/membership/types/membership.interfaces.d.ts +2 -2
- package/dist/types/payment/dto/payment.dto.d.ts +4 -1
- package/dist/types/payment/dto/payment.dto.js.map +1 -1
- package/dist/types/payment/dto/refund.dto.d.ts +12 -4
- package/dist/types/payment/dto/refund.dto.js +8 -1
- package/dist/types/payment/dto/refund.dto.js.map +1 -1
- package/dist/types/payment/dto/void.dto.d.ts +2 -1
- package/dist/types/payment/dto/void.dto.js.map +1 -1
- package/dist/types/payment/entities/Payment.d.ts +2 -1
- package/dist/types/payment/entities/Payment.js.map +1 -1
- package/dist/types/payment/types/consts/index.d.ts +1 -0
- package/dist/types/payment/types/consts/index.js +1 -0
- package/dist/types/payment/types/consts/index.js.map +1 -1
- package/dist/types/payment/types/consts/linked-accounts.consts.d.ts +6 -0
- package/dist/types/payment/types/consts/linked-accounts.consts.js +20 -0
- package/dist/types/payment/types/consts/linked-accounts.consts.js.map +1 -0
- package/dist/types/payment/types/enums/linked-account.enums.d.ts +7 -1
- package/dist/types/payment/types/enums/linked-account.enums.js +8 -1
- package/dist/types/payment/types/enums/linked-account.enums.js.map +1 -1
- package/dist/types/payment/types/enums/refund.enums.d.ts +0 -1
- package/dist/types/payment/types/enums/refund.enums.js +0 -1
- package/dist/types/payment/types/enums/refund.enums.js.map +1 -1
- package/dist/types/payment/types/interfaces/index.d.ts +1 -0
- package/dist/types/payment/types/interfaces/index.js +1 -0
- package/dist/types/payment/types/interfaces/index.js.map +1 -1
- package/dist/types/payment/types/interfaces/linked-account.interfaces.d.ts +32 -0
- package/dist/types/payment/types/interfaces/linked-account.interfaces.js +3 -0
- package/dist/types/payment/types/interfaces/linked-account.interfaces.js.map +1 -0
- package/dist/types/payment/types/interfaces/payment.interfaces.d.ts +5 -4
- package/dist/types/payment/types/interfaces/pending-terminal-reconciler.interfaces.d.ts +2 -2
- package/dist/types/payment/types/interfaces/refund.interfaces.d.ts +21 -8
- package/dist/types/payment/types/interfaces/refund.interfaces.js.map +1 -1
- package/dist/types/payment/types/interfaces/stripe.interfaces.d.ts +11 -0
- package/dist/types/payment/types/interfaces/void.interfaces.d.ts +3 -1
- package/dist/types/payout-accounts/entities/index.d.ts +1 -0
- package/dist/types/payout-accounts/entities/index.js +18 -0
- package/dist/types/payout-accounts/entities/index.js.map +1 -0
- package/dist/types/payout-accounts/entities/payout-account.entity.d.ts +10 -0
- package/dist/types/payout-accounts/entities/payout-account.entity.js +8 -0
- package/dist/types/payout-accounts/entities/payout-account.entity.js.map +1 -0
- package/dist/types/payout-accounts/index.d.ts +2 -0
- package/dist/types/payout-accounts/index.js +19 -0
- package/dist/types/payout-accounts/index.js.map +1 -0
- package/dist/types/payout-accounts/types/dto/index.d.ts +1 -0
- package/dist/types/payout-accounts/types/dto/index.js +18 -0
- package/dist/types/payout-accounts/types/dto/index.js.map +1 -0
- package/dist/types/payout-accounts/types/dto/payout-account.dto.d.ts +50 -0
- package/dist/types/payout-accounts/types/dto/payout-account.dto.js +36 -0
- package/dist/types/payout-accounts/types/dto/payout-account.dto.js.map +1 -0
- package/dist/types/payout-accounts/types/index.d.ts +2 -0
- package/dist/types/payout-accounts/types/index.js +19 -0
- package/dist/types/payout-accounts/types/index.js.map +1 -0
- package/dist/types/payout-accounts/types/interfaces/index.d.ts +1 -0
- package/dist/types/payout-accounts/types/interfaces/index.js +18 -0
- package/dist/types/payout-accounts/types/interfaces/index.js.map +1 -0
- package/dist/types/payout-accounts/types/interfaces/payout-account.interfaces.d.ts +113 -0
- package/dist/types/payout-accounts/types/interfaces/payout-account.interfaces.js +11 -0
- package/dist/types/payout-accounts/types/interfaces/payout-account.interfaces.js.map +1 -0
- package/dist/types/product-pricing/types/consts/product-category.consts.d.ts +39 -39
- package/dist/types/product-pricing/types/interfaces/product-creation.interfaces.d.ts +6 -0
- package/dist/types/programs-seasons/dto/public-session-group.dto.js.map +1 -1
- package/dist/types/purchase/dto/purchase.dto.d.ts +11 -1
- package/dist/types/purchase/dto/purchase.dto.js +4 -1
- package/dist/types/purchase/dto/purchase.dto.js.map +1 -1
- package/dist/types/purchase/types/interfaces/purchase.interfaces.d.ts +2 -0
- package/dist/types/questionnaires/types/question-metadata.interfaces.d.ts +0 -1
- package/dist/types/services/interfaces.service.d.ts +1 -0
- package/dist/types/terminal/dto/terminal-actions.dto.d.ts +1 -0
- package/dist/types/terminal/dto/terminal-actions.dto.js.map +1 -1
- package/dist/types/terminal/types/interfaces/terminal-action-service.interfaces.d.ts +2 -2
- package/dist/types/webhooks/types/webhooks.enums.d.ts +2 -1
- package/dist/types/webhooks/types/webhooks.enums.js +1 -0
- package/dist/types/webhooks/types/webhooks.enums.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./payout-account.interfaces"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/payout-accounts/types/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { LinkedAccountStatus } from '../../../payment/types/enums/linked-account.enums';
|
|
2
|
+
import { IBaseLinkedAccount, IFindLinkedAccountsFilters } from '../../../payment/types/interfaces/linked-account.interfaces';
|
|
3
|
+
/**
|
|
4
|
+
* Minimal payout-account resolution result for charge-path and cart-lock callers.
|
|
5
|
+
*/
|
|
6
|
+
export interface IResolvedPayoutAccount {
|
|
7
|
+
linkedAccountId: number;
|
|
8
|
+
providerId: string | null;
|
|
9
|
+
status: LinkedAccountStatus | null;
|
|
10
|
+
}
|
|
11
|
+
export interface INullableFacilityId {
|
|
12
|
+
facilityId: number | null;
|
|
13
|
+
}
|
|
14
|
+
export interface IResolvedPayoutAccountRow extends IResolvedPayoutAccount, INullableFacilityId {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* PayoutAccount-level filters for the centralized payout-accounts query. Omitted or `null`
|
|
18
|
+
* `facilityIds` is unrestricted. An empty array matches the All Facilities sentinel only. A
|
|
19
|
+
* non-empty array matches those facilities plus the sentinel (`facilityId IS NULL`).
|
|
20
|
+
*/
|
|
21
|
+
export interface IFindPayoutAccountsFilters {
|
|
22
|
+
facilityIds?: number[] | null;
|
|
23
|
+
linkedAccountIds?: number[];
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Filters for the paginated payout-accounts grid.
|
|
27
|
+
*/
|
|
28
|
+
export type IListPayoutAccountFilters = Omit<IFindLinkedAccountsFilters, 'parentIds' | 'parentType' | 'providers'> & {
|
|
29
|
+
facilitiesIds?: number[];
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Raw page row of the payout-accounts grid: one distinct Connect account before facility ids are
|
|
33
|
+
* aggregated onto it.
|
|
34
|
+
*/
|
|
35
|
+
export interface ILinkedAccountsGridRow {
|
|
36
|
+
linkedAccountId: number;
|
|
37
|
+
providerId: string | null;
|
|
38
|
+
status: LinkedAccountStatus | null;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* One PayoutAccount anchor: a Connect account paired with the facility it covers, or with null for
|
|
42
|
+
* the All Facilities sentinel.
|
|
43
|
+
*/
|
|
44
|
+
export interface IPayoutAccountFacilityLink {
|
|
45
|
+
facilityId: number | null;
|
|
46
|
+
linkedAccountId: number;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* One grid row per Connect account, with facility ids aggregated across PayoutAccount rows.
|
|
50
|
+
* All Facilities and unassigned rows expose `facilityIds: []` so FE `canAccessAll` treats them as
|
|
51
|
+
* global-only for editing. `hasOrgDefault` distinguishes the sentinel from unassigned.
|
|
52
|
+
*/
|
|
53
|
+
export interface IPayoutAccountGridRow extends ILinkedAccountsGridRow {
|
|
54
|
+
facilityIds: number[];
|
|
55
|
+
hasOrgDefault: boolean;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Facilities-dialog payload: explicit payout assignments visible in the caller's scope.
|
|
59
|
+
* Modal options come from FE facility access; grey/disable with `assignedFacilityIds.includes(id)`.
|
|
60
|
+
* Uncovered-facilities banner is FE-only (accessible facilities minus grid coverage).
|
|
61
|
+
*/
|
|
62
|
+
export interface IPayoutAccountFacilityAssignments {
|
|
63
|
+
assignedFacilityIds: number[];
|
|
64
|
+
hasOrgDefault: boolean;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Coverage write payload shared by create and replace. `allFacilities: true` ignores `facilityIds`.
|
|
68
|
+
*/
|
|
69
|
+
export interface IPayoutAccountCoverage {
|
|
70
|
+
allFacilities: boolean;
|
|
71
|
+
facilityIds: number[];
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Bank details payload submitted for a Connect account.
|
|
75
|
+
* Currency is not accepted; Stripe is always called with the organization currency.
|
|
76
|
+
*/
|
|
77
|
+
export interface IUpdateBankDetails {
|
|
78
|
+
account_number: string;
|
|
79
|
+
address: string;
|
|
80
|
+
owner: string;
|
|
81
|
+
routing_number: string;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Create-payout-account payload. Authenticated user comes from the request, not the body.
|
|
85
|
+
*/
|
|
86
|
+
export interface ICreatePayoutAccountPayload extends IPayoutAccountCoverage {
|
|
87
|
+
callbackUrl: string;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Fresh Stripe Account Link for create and resume. Does not include missingBank.
|
|
91
|
+
*/
|
|
92
|
+
export interface IPayoutAccountOnboardingLink {
|
|
93
|
+
linkedAccountId: number;
|
|
94
|
+
providerId: string;
|
|
95
|
+
expire?: number;
|
|
96
|
+
status: LinkedAccountStatus | null;
|
|
97
|
+
url: string;
|
|
98
|
+
}
|
|
99
|
+
export interface IStripeAccountLink {
|
|
100
|
+
expiresAt?: number;
|
|
101
|
+
url: string;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Create/resume payload for AutoMapper: Bond linked account, Stripe Account Link, and the
|
|
105
|
+
* Connect account when create just minted one.
|
|
106
|
+
*/
|
|
107
|
+
export declare class PayoutAccountOnboardingLink {
|
|
108
|
+
accountLink: IStripeAccountLink;
|
|
109
|
+
linkedAccount: IBaseLinkedAccount;
|
|
110
|
+
stripeAccount?: {
|
|
111
|
+
id: string;
|
|
112
|
+
};
|
|
113
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PayoutAccountOnboardingLink = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Create/resume payload for AutoMapper: Bond linked account, Stripe Account Link, and the
|
|
6
|
+
* Connect account when create just minted one.
|
|
7
|
+
*/
|
|
8
|
+
class PayoutAccountOnboardingLink {
|
|
9
|
+
}
|
|
10
|
+
exports.PayoutAccountOnboardingLink = PayoutAccountOnboardingLink;
|
|
11
|
+
//# sourceMappingURL=payout-account.interfaces.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payout-account.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/payout-accounts/types/interfaces/payout-account.interfaces.ts"],"names":[],"mappings":";;;AAwHA;;;GAGG;AACH,MAAa,2BAA2B;CAMvC;AAND,kEAMC"}
|
|
@@ -230,28 +230,6 @@ declare const _RESERVATION_SETTINGS_TYPE_SCHEMA: z.ZodObject<{
|
|
|
230
230
|
};
|
|
231
231
|
resourceTypes?: [ResourceTypeEnum, ...ResourceTypeEnum[]];
|
|
232
232
|
approvalRequired?: boolean;
|
|
233
|
-
allowResourceSelection?: boolean;
|
|
234
|
-
prioritizedResourceAllocation?: Partial<Record<ResourceSubTypeEnum, [number, ...number[]]>>;
|
|
235
|
-
bookingDurations?: {
|
|
236
|
-
minDuration?: {
|
|
237
|
-
amount?: number;
|
|
238
|
-
unit?: TimeUnit;
|
|
239
|
-
};
|
|
240
|
-
maxDuration?: {
|
|
241
|
-
amount?: number;
|
|
242
|
-
unit?: TimeUnit;
|
|
243
|
-
};
|
|
244
|
-
durationStep?: {
|
|
245
|
-
amount?: number;
|
|
246
|
-
unit?: TimeUnit;
|
|
247
|
-
};
|
|
248
|
-
defaultDuration?: {
|
|
249
|
-
amount?: number;
|
|
250
|
-
unit?: TimeUnit;
|
|
251
|
-
};
|
|
252
|
-
};
|
|
253
|
-
slotStartTime?: number;
|
|
254
|
-
allowOverlappingStartTimes?: boolean;
|
|
255
233
|
memberships?: [{
|
|
256
234
|
name?: string;
|
|
257
235
|
id?: string;
|
|
@@ -277,49 +255,49 @@ declare const _RESERVATION_SETTINGS_TYPE_SCHEMA: z.ZodObject<{
|
|
|
277
255
|
unit?: TimeUnit;
|
|
278
256
|
};
|
|
279
257
|
}[]];
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
258
|
+
allowResourceSelection?: boolean;
|
|
259
|
+
prioritizedResourceAllocation?: Partial<Record<ResourceSubTypeEnum, [number, ...number[]]>>;
|
|
260
|
+
bookingDurations?: {
|
|
261
|
+
minDuration?: {
|
|
283
262
|
amount?: number;
|
|
284
263
|
unit?: TimeUnit;
|
|
285
264
|
};
|
|
286
|
-
|
|
265
|
+
maxDuration?: {
|
|
287
266
|
amount?: number;
|
|
288
267
|
unit?: TimeUnit;
|
|
289
268
|
};
|
|
290
|
-
|
|
269
|
+
durationStep?: {
|
|
291
270
|
amount?: number;
|
|
292
271
|
unit?: TimeUnit;
|
|
293
272
|
};
|
|
294
|
-
|
|
273
|
+
defaultDuration?: {
|
|
295
274
|
amount?: number;
|
|
296
275
|
unit?: TimeUnit;
|
|
297
276
|
};
|
|
298
277
|
};
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
minDuration?: {
|
|
278
|
+
slotStartTime?: number;
|
|
279
|
+
allowOverlappingStartTimes?: boolean;
|
|
280
|
+
}, {
|
|
281
|
+
default?: {
|
|
282
|
+
advanceBookingWindow?: {
|
|
305
283
|
amount?: number;
|
|
306
284
|
unit?: TimeUnit;
|
|
307
285
|
};
|
|
308
|
-
|
|
286
|
+
minimumBookingNotice?: {
|
|
309
287
|
amount?: number;
|
|
310
288
|
unit?: TimeUnit;
|
|
311
289
|
};
|
|
312
|
-
|
|
290
|
+
maxBookingHours?: {
|
|
313
291
|
amount?: number;
|
|
314
292
|
unit?: TimeUnit;
|
|
315
293
|
};
|
|
316
|
-
|
|
294
|
+
maxSequentialBookings?: {
|
|
317
295
|
amount?: number;
|
|
318
296
|
unit?: TimeUnit;
|
|
319
297
|
};
|
|
320
298
|
};
|
|
321
|
-
|
|
322
|
-
|
|
299
|
+
resourceTypes?: [ResourceTypeEnum, ...ResourceTypeEnum[]];
|
|
300
|
+
approvalRequired?: boolean;
|
|
323
301
|
memberships?: [{
|
|
324
302
|
name?: string;
|
|
325
303
|
id?: string;
|
|
@@ -345,6 +323,28 @@ declare const _RESERVATION_SETTINGS_TYPE_SCHEMA: z.ZodObject<{
|
|
|
345
323
|
unit?: TimeUnit;
|
|
346
324
|
};
|
|
347
325
|
}[]];
|
|
326
|
+
allowResourceSelection?: boolean;
|
|
327
|
+
prioritizedResourceAllocation?: Partial<Record<ResourceSubTypeEnum, [number, ...number[]]>>;
|
|
328
|
+
bookingDurations?: {
|
|
329
|
+
minDuration?: {
|
|
330
|
+
amount?: number;
|
|
331
|
+
unit?: TimeUnit;
|
|
332
|
+
};
|
|
333
|
+
maxDuration?: {
|
|
334
|
+
amount?: number;
|
|
335
|
+
unit?: TimeUnit;
|
|
336
|
+
};
|
|
337
|
+
durationStep?: {
|
|
338
|
+
amount?: number;
|
|
339
|
+
unit?: TimeUnit;
|
|
340
|
+
};
|
|
341
|
+
defaultDuration?: {
|
|
342
|
+
amount?: number;
|
|
343
|
+
unit?: TimeUnit;
|
|
344
|
+
};
|
|
345
|
+
};
|
|
346
|
+
slotStartTime?: number;
|
|
347
|
+
allowOverlappingStartTimes?: boolean;
|
|
348
348
|
}>;
|
|
349
349
|
declare const _GOODS_SETTINGS_TYPE_SCHEMA: z.ZodObject<{
|
|
350
350
|
colorCodeId: z.ZodNullable<z.ZodNumber>;
|
|
@@ -6,3 +6,9 @@ export interface IGetSourceProductDataResponse {
|
|
|
6
6
|
glCodes: ResourceGLsResponseDto[];
|
|
7
7
|
resourceSettings: ResourceSetting[];
|
|
8
8
|
}
|
|
9
|
+
export interface ICreateProductOptions {
|
|
10
|
+
skipEntitlements?: boolean;
|
|
11
|
+
skipGls?: boolean;
|
|
12
|
+
skipPaymentPlans?: boolean;
|
|
13
|
+
skipResources?: boolean;
|
|
14
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public-session-group.dto.js","sourceRoot":"","sources":["../../../../src/types/programs-seasons/dto/public-session-group.dto.ts"],"names":[],"mappings":";;;AACA,uDAA+D;AAE/D,8EAAyG;AAQ5F,QAAA,mCAAmC,GAAG,GAAG,CAAC;
|
|
1
|
+
{"version":3,"file":"public-session-group.dto.js","sourceRoot":"","sources":["../../../../src/types/programs-seasons/dto/public-session-group.dto.ts"],"names":[],"mappings":";;;AACA,uDAA+D;AAE/D,8EAAyG;AAQ5F,QAAA,mCAAmC,GAAG,GAAG,CAAC;AAEvD,MAAa,wBAAwB;CAMpC;AAND,4DAMC;AAED,MAAa,yBAAyB;CAUrC;AAVD,8DAUC;AAED,MAAa,0BAA0B;CAMtC;AAND,gEAMC;AAED,MAAa,qBAAsB,SAAQ,mBAAK;CAM/C;AAND,sDAMC;AAED,MAAa,qBAAsB,SAAQ,4CAAyB;CA4CnE;AA5CD,sDA4CC;AAED,MAAa,8BAA+B,SAAQ,6BAAe;CAkBlE;AAlBD,wEAkBC;AAED,MAAa,wBAAyB,SAAQ,sCAAmB;CAIhE;AAJD,4DAIC"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { UpdateCartPricesDto } from '../../cart/dto/cart.dto';
|
|
2
|
+
import { AddCartItemDto } from '../../cart/dto/cart-item.dto';
|
|
2
3
|
import { UserAnswersDto } from '../../dto/application.dto';
|
|
4
|
+
import { SaveCardTerminalInputDto } from '../../dto/userPaymentMethod.dto';
|
|
3
5
|
import { Customer } from '../../entity/Customer';
|
|
4
6
|
import { Invoice } from '../../entity/Invoice';
|
|
5
7
|
import { ProductsUsers } from '../../entity/ProductsUsers';
|
|
6
8
|
import { FindOrCreateFolderDto } from '../../folders/dto/folder.dto';
|
|
7
9
|
import { InvoiceCartDto } from '../../invoice/dto/invoice.dto';
|
|
8
10
|
import { ByOrganizationIdDto } from '../../organization/dto/organization.dto';
|
|
9
|
-
import { SaveCardTerminalInputDto } from '../../dto/userPaymentMethod.dto';
|
|
10
11
|
import { ScheduledPaymentDto } from '../../payment/dto/payment-plan.dto';
|
|
11
12
|
import { Payment } from '../../payment/entities/Payment';
|
|
12
13
|
import { AllowRedisplayEnum, FuturePaymentStatusEnum, PaymentMethodTypeEnum, PaymentStatusEnum } from '../../payment/types/enums/payment.enums';
|
|
@@ -66,6 +67,8 @@ export declare class PurchaseResourceDto implements IProductResource {
|
|
|
66
67
|
export declare class PurchaseProductDto {
|
|
67
68
|
id: number;
|
|
68
69
|
productId?: number;
|
|
70
|
+
/** Derived on the server from the validated product resources, never accepted from the request. */
|
|
71
|
+
facilityId?: number;
|
|
69
72
|
resources?: PurchaseResourceDto[];
|
|
70
73
|
userId?: number;
|
|
71
74
|
paymentStatus?: PaymentStatusEnum;
|
|
@@ -119,6 +122,13 @@ export declare class AddItemsDto {
|
|
|
119
122
|
allocateResource: boolean;
|
|
120
123
|
skipMail: boolean;
|
|
121
124
|
}
|
|
125
|
+
export declare class AddCartItemsToInvoiceDto {
|
|
126
|
+
cartItems: AddCartItemDto[];
|
|
127
|
+
shiftId?: number;
|
|
128
|
+
paymentInfo?: PurchasePaymentDto;
|
|
129
|
+
amountToPay?: number;
|
|
130
|
+
tipAmount?: number;
|
|
131
|
+
}
|
|
122
132
|
export declare class PartialPaymentAsUserDto {
|
|
123
133
|
invoiceId: number;
|
|
124
134
|
organizationId: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PurchaseCartDto = exports.BasicPurchaseDto = exports.PurchaseResultDto = exports.ValidateParticipantDto = exports.PartialPaymentAsUserDto = exports.AddItemsDto = exports.RedeemPunchCardRequestDto = exports.PartialPaymentRequestDto = exports.ScheduledPaymentRequestBodyDto = exports.ScheduledPaymentRequestDto = exports.ScheduledPaymentConsumerRequestDto = exports.PurchaseProductDto = exports.PurchaseResourceDto = exports.PurchaseRequestDto = exports.ChargeRentalsReuqestDto = exports.PurchasePaymentDto = void 0;
|
|
3
|
+
exports.PurchaseCartDto = exports.BasicPurchaseDto = exports.PurchaseResultDto = exports.ValidateParticipantDto = exports.PartialPaymentAsUserDto = exports.AddCartItemsToInvoiceDto = exports.AddItemsDto = exports.RedeemPunchCardRequestDto = exports.PartialPaymentRequestDto = exports.ScheduledPaymentRequestBodyDto = exports.ScheduledPaymentRequestDto = exports.ScheduledPaymentConsumerRequestDto = exports.PurchaseProductDto = exports.PurchaseResourceDto = exports.PurchaseRequestDto = exports.ChargeRentalsReuqestDto = exports.PurchasePaymentDto = void 0;
|
|
4
4
|
const invoice_dto_1 = require("../../invoice/dto/invoice.dto");
|
|
5
5
|
const organization_dto_1 = require("../../organization/dto/organization.dto");
|
|
6
6
|
class PurchasePaymentDto {
|
|
@@ -40,6 +40,9 @@ class AddItemsDto {
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
exports.AddItemsDto = AddItemsDto;
|
|
43
|
+
class AddCartItemsToInvoiceDto {
|
|
44
|
+
}
|
|
45
|
+
exports.AddCartItemsToInvoiceDto = AddCartItemsToInvoiceDto;
|
|
43
46
|
class PartialPaymentAsUserDto {
|
|
44
47
|
}
|
|
45
48
|
exports.PartialPaymentAsUserDto = PartialPaymentAsUserDto;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"purchase.dto.js","sourceRoot":"","sources":["../../../../src/types/purchase/dto/purchase.dto.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"purchase.dto.js","sourceRoot":"","sources":["../../../../src/types/purchase/dto/purchase.dto.ts"],"names":[],"mappings":";;;AASA,+DAA+D;AAC/D,8EAA8E;AAe9E,MAAa,kBAAkB;CAY9B;AAZD,gDAYC;AAED,MAAa,uBAAuB;CAkBnC;AAlBD,0DAkBC;AAED,MAAa,kBAAkB;CAiC9B;AAjCD,gDAiCC;AAED,MAAa,mBAAmB;CAsB/B;AAtBD,kDAsBC;AAED,MAAa,kBAAkB;CAqC9B;AArCD,gDAqCC;AAED,MAAa,kCAAkC;CAM9C;AAND,gFAMC;AAED,MAAa,0BAA2B,SAAQ,sCAAmB;CAIlE;AAJD,gEAIC;AAED,MAAa,8BAA8B;CAU1C;AAVD,wEAUC;AAED,MAAa,wBAAwB;CAkBpC;AAlBD,4DAkBC;AAED,MAAa,yBAAyB;CAQrC;AARD,8DAQC;AAED,MAAa,WAAW;IAAxB;QAGC,qBAAgB,GAAG,KAAK,CAAC;QAEzB,aAAQ,GAAG,KAAK,CAAC;IAClB,CAAC;CAAA;AAND,kCAMC;AAED,MAAa,wBAAwB;CAUpC;AAVD,4DAUC;AAED,MAAa,uBAAuB;CAUnC;AAVD,0DAUC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC;AAED,MAAa,iBAAiB;CAU7B;AAVD,8CAUC;AAED,MAAa,gBAAgB;CAI5B;AAJD,4CAIC;AAED,MAAa,eAAgB,SAAQ,4BAAc;CAkBlD;AAlBD,0CAkBC"}
|
|
@@ -43,6 +43,7 @@ export interface ILineItem {
|
|
|
43
43
|
parentLineItemId?: number;
|
|
44
44
|
productId: number;
|
|
45
45
|
userId?: number;
|
|
46
|
+
facilityId?: number;
|
|
46
47
|
currency: CurrencyEnum;
|
|
47
48
|
isTaxInclusive?: boolean;
|
|
48
49
|
ordinal?: number;
|
|
@@ -102,6 +103,7 @@ export interface IPurchaseCart extends IInvoiceCart {
|
|
|
102
103
|
installments?: ScheduledPaymentDto[];
|
|
103
104
|
parentPurchasedType?: ResourceNameTypeEnum;
|
|
104
105
|
paymentInfo?: PurchasePaymentDto;
|
|
106
|
+
tipAmount?: number;
|
|
105
107
|
updatePrices?: IUpdateCartPrices;
|
|
106
108
|
}
|
|
107
109
|
export interface IRegisteredResourcesResult {
|
|
@@ -12,6 +12,7 @@ export declare class TerminalPaymentIntentDto {
|
|
|
12
12
|
platform: PlatformsEnum;
|
|
13
13
|
setup_future_usage?: 'off_session';
|
|
14
14
|
cardSaveTerminalData?: SaveCardTerminalInputDto;
|
|
15
|
+
invoiceId: number;
|
|
15
16
|
}
|
|
16
17
|
export declare class TerminalProcessPaymentTippingDto {
|
|
17
18
|
eligible_amount: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"terminal-actions.dto.js","sourceRoot":"","sources":["../../../../src/types/terminal/dto/terminal-actions.dto.ts"],"names":[],"mappings":";;;AASA,MAAM,iCAAiC,GAAG,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"terminal-actions.dto.js","sourceRoot":"","sources":["../../../../src/types/terminal/dto/terminal-actions.dto.ts"],"names":[],"mappings":";;;AASA,MAAM,iCAAiC,GAAG,EAAE,CAAC;AAEhC,QAAA,mCAAmC,GAAG,GAAG,CAAC;AACvD,MAAM,+BAA+B,GAAG,EAAE,CAAC;AAE3C,MAAa,wBAAwB;CAcpC;AAdD,4DAcC;AAED,MAAa,gCAAgC;CAE5C;AAFD,4EAEC;AAED,MAAa,uCAAuC;CAInD;AAJD,0FAIC;AAED,MAAa,2CAA2C;CAEvD;AAFD,kGAEC;AAED;;;;;GAKG;AACH,MAAM,gCAAgC,GAAG,CAAC,GAA8B,EAAW,EAAE,CACpF,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,IAAI,GAAG,CAAC,cAAc,KAAK,SAAS,CAAC;AAElE,MAAa,yBAAyB;CAUrC;AAVD,8DAUC;AAED,MAAa,uBAAuB;CAEnC;AAFD,0DAEC;AAED,IAAY,4BAGX;AAHD,WAAY,4BAA4B;IACvC,uEAAuC,CAAA;IACvC,+DAA+B,CAAA;AAChC,CAAC,EAHW,4BAA4B,GAA5B,oCAA4B,KAA5B,oCAA4B,QAGvC;AAED,MAAa,wBAAwB;CAIpC;AAJD,4DAIC;AAED,MAAa,+BAA+B;CAM3C;AAND,0EAMC;AAED,MAAa,6BAA6B;CAQzC;AARD,sEAQC;AAED,MAAa,wBAAwB;CAQpC;AARD,4DAQC;AAED,MAAa,sBAAsB;CAIlC;AAJD,wDAIC;AAED,MAAa,4BAA4B;CAMxC;AAND,oEAMC;AAED,MAAa,iCAAiC;CAI7C;AAJD,8EAIC;AAED,MAAa,yBAAyB;CAIrC;AAJD,8DAIC;AAED,MAAa,yBAAyB;CAcrC;AAdD,8DAcC;AAED,MAAa,+BAA+B;CAM3C;AAND,0EAMC"}
|
|
@@ -67,12 +67,12 @@ export interface IActionLogTemplates {
|
|
|
67
67
|
export interface IExecuteActionTriggerParams {
|
|
68
68
|
organizationId: number;
|
|
69
69
|
readerId: string;
|
|
70
|
+
/** PaymentIntent id being re-dispatched; override/ghost cleanup must not cancel it. */
|
|
71
|
+
reservedTargetId?: string | null;
|
|
70
72
|
actionType: TerminalReaderActionTypeEnum;
|
|
71
73
|
dispatch: (readerId: string) => Promise<TerminalActionResponseDto>;
|
|
72
74
|
force?: boolean;
|
|
73
75
|
logTemplates: IActionLogTemplates;
|
|
74
|
-
/** PaymentIntent id being re-dispatched; override/ghost cleanup must not cancel it. */
|
|
75
|
-
reservedTargetId?: string | null;
|
|
76
76
|
}
|
|
77
77
|
export interface IForceActionTriggerParams extends IExecuteActionTriggerParams {
|
|
78
78
|
startedAt: number;
|
|
@@ -17,7 +17,8 @@ export declare enum StripeEventTypeEnum {
|
|
|
17
17
|
TRANSFER_REVERSED = "transfer.reversed",
|
|
18
18
|
CHARGE_DISPUTE_CREATED = "charge.dispute.created",
|
|
19
19
|
CHARGE_DISPUTE_UPDATED = "charge.dispute.updated",
|
|
20
|
-
CHARGE_DISPUTE_CLOSED = "charge.dispute.closed"
|
|
20
|
+
CHARGE_DISPUTE_CLOSED = "charge.dispute.closed",
|
|
21
|
+
ACCOUNT_UPDATED = "account.updated"
|
|
21
22
|
}
|
|
22
23
|
export declare enum PaymentIntentStatusEnum {
|
|
23
24
|
CANCELED = "canceled",
|
|
@@ -22,6 +22,7 @@ var StripeEventTypeEnum;
|
|
|
22
22
|
StripeEventTypeEnum["CHARGE_DISPUTE_CREATED"] = "charge.dispute.created";
|
|
23
23
|
StripeEventTypeEnum["CHARGE_DISPUTE_UPDATED"] = "charge.dispute.updated";
|
|
24
24
|
StripeEventTypeEnum["CHARGE_DISPUTE_CLOSED"] = "charge.dispute.closed";
|
|
25
|
+
StripeEventTypeEnum["ACCOUNT_UPDATED"] = "account.updated";
|
|
25
26
|
})(StripeEventTypeEnum = exports.StripeEventTypeEnum || (exports.StripeEventTypeEnum = {}));
|
|
26
27
|
var PaymentIntentStatusEnum;
|
|
27
28
|
(function (PaymentIntentStatusEnum) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.enums.js","sourceRoot":"","sources":["../../../../src/types/webhooks/types/webhooks.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"webhooks.enums.js","sourceRoot":"","sources":["../../../../src/types/webhooks/types/webhooks.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,mBAqBX;AArBD,WAAY,mBAAmB;IAC9B,wEAAiD,CAAA;IACjD,8EAAuD,CAAA;IACvD,4EAAqD,CAAA;IACrD,0EAAmD,CAAA;IACnD,8EAAuD,CAAA;IACvD,wFAAiE,CAAA;IACjE,0EAAmD,CAAA;IACnD,0EAAmD,CAAA;IACnD,wDAAiC,CAAA;IACjC,wDAAiC,CAAA;IACjC,4DAAqC,CAAA;IACrC,0DAAmC,CAAA;IACnC,sDAA+B,CAAA;IAC/B,4DAAqC,CAAA;IACrC,4DAAqC,CAAA;IACrC,8DAAuC,CAAA;IACvC,wEAAiD,CAAA;IACjD,wEAAiD,CAAA;IACjD,sEAA+C,CAAA;IAC/C,0DAAmC,CAAA;AACpC,CAAC,EArBW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAqB9B;AAED,IAAY,uBAQX;AARD,WAAY,uBAAuB;IAClC,gDAAqB,CAAA;IACrB,oDAAyB,CAAA;IACzB,8DAAmC,CAAA;IACnC,gEAAqC,CAAA;IACrC,0EAA+C,CAAA;IAC/C,8EAAmD,CAAA;IACnD,kDAAuB,CAAA;AACxB,CAAC,EARW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAQlC;AAED,IAAY,qBAEX;AAFD,WAAY,qBAAqB;IAChC,sEAA6C,CAAA;AAC9C,CAAC,EAFW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAEhC;AAED,IAAY,yBAGX;AAHD,WAAY,yBAAyB;IACpC,wCAAW,CAAA;IACX,0CAAa,CAAA;AACd,CAAC,EAHW,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAGpC"}
|