@bondsports/types 2.4.104-a-1 → 2.4.104-a-3
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/customers/types/interfaces.d.ts +1 -1
- package/dist/types/invoice/dto/organization-invoice.dto.d.ts +1 -0
- package/dist/types/invoice/dto/organization-invoice.dto.js.map +1 -1
- package/dist/types/invoice/types/interfaces/invoice.interfaces.d.ts +0 -5
- package/dist/types/invoice/types/interfaces/invoice.interfaces.js.map +1 -1
- package/dist/types/payment/dto/payment.dto.d.ts +0 -12
- package/dist/types/payment/dto/payment.dto.js +1 -4
- package/dist/types/payment/dto/payment.dto.js.map +1 -1
- package/dist/types/payment/types/interfaces/payment.interfaces.d.ts +0 -2
- package/dist/types/payment/types/interfaces/stripe-service.interfaces.d.ts +9 -0
- package/dist/types/payout-accounts/types/dto/payout-account.dto.d.ts +2 -0
- package/dist/types/payout-accounts/types/dto/payout-account.dto.js.map +1 -1
- package/dist/types/payout-accounts/types/interfaces/payout-account.interfaces.d.ts +5 -2
- package/dist/types/payout-accounts/types/interfaces/payout-account.interfaces.js.map +1 -1
- package/dist/types/product-pricing/types/interfaces/validate-resources.interfaces.d.ts +1 -1
- package/dist/types/purchase/dto/purchase.dto.d.ts +1 -1
- package/dist/types/purchase/types/interfaces/purchase.interfaces.d.ts +1 -1
- package/dist/types/repositories/team-identity/team-identity.types.d.ts +2 -2
- package/dist/types/services/interfaces.service.d.ts +1 -1
- package/dist/types/standings-integration/types/interfaces/my-team.interfaces.d.ts +15 -15
- package/dist/types/terminal/dto/terminal-actions.dto.d.ts +2 -14
- package/dist/types/terminal/dto/terminal-actions.dto.js +1 -12
- package/dist/types/terminal/dto/terminal-actions.dto.js.map +1 -1
- package/dist/types/user/types/user.interfaces.d.ts +1 -1
- package/package.json +1 -1
|
@@ -44,6 +44,7 @@ export declare class GetOrganizationInvoicesQueryDto extends PaginationSearchQue
|
|
|
44
44
|
dueDateFrom?: Date;
|
|
45
45
|
dueDateTo?: Date;
|
|
46
46
|
orderBy?: OrganizationInvoicesOrderByEnum;
|
|
47
|
+
reservationId?: number;
|
|
47
48
|
}
|
|
48
49
|
export declare class OrganizationInvoiceDto {
|
|
49
50
|
invoiceId: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization-invoice.dto.js","sourceRoot":"","sources":["../../../../src/types/invoice/dto/organization-invoice.dto.ts"],"names":[],"mappings":";;;AACA,uDAA8D;AAK9D,IAAY,yCAcX;AAdD,WAAY,yCAAyC;IACpD,kEAAqB,CAAA;IACrB,wEAA2B,CAAA;IAC3B,gEAAmB,CAAA;IACnB,kEAAqB,CAAA;IACrB,kEAAqB,CAAA;IACrB,sEAAyB,CAAA;IACzB,0DAAa,CAAA;IACb,kEAAqB,CAAA;IACrB,gFAAmC,CAAA;IACnC,8DAAiB,CAAA;IACjB,gEAAmB,CAAA;IACnB,oFAAuC,CAAA;IACvC,oEAAuB,CAAA;AACxB,CAAC,EAdW,yCAAyC,GAAzC,iDAAyC,KAAzC,iDAAyC,QAcpD;AAEY,QAAA,6CAA6C,GAAG,yCAAyC,CAAC,SAAS,CAAC;AAEjH,IAAY,+BAYX;AAZD,WAAY,+BAA+B;IAC1C,2DAAwB,CAAA;IACxB,sEAAmC,CAAA;IACnC,kEAA+B,CAAA;IAC/B,2DAAwB,CAAA;IACxB,uDAAoB,CAAA;IACpB,+DAA4B,CAAA;IAC5B,6DAA0B,CAAA;IAC1B,6DAA0B,CAAA;IAC1B,mEAAgC,CAAA;IAChC,kDAAe,CAAA;IACf,wDAAqB,CAAA;AACtB,CAAC,EAZW,+BAA+B,GAA/B,uCAA+B,KAA/B,uCAA+B,QAY1C;AAED,MAAa,+BAAgC,SAAQ,mCAAsD;
|
|
1
|
+
{"version":3,"file":"organization-invoice.dto.js","sourceRoot":"","sources":["../../../../src/types/invoice/dto/organization-invoice.dto.ts"],"names":[],"mappings":";;;AACA,uDAA8D;AAK9D,IAAY,yCAcX;AAdD,WAAY,yCAAyC;IACpD,kEAAqB,CAAA;IACrB,wEAA2B,CAAA;IAC3B,gEAAmB,CAAA;IACnB,kEAAqB,CAAA;IACrB,kEAAqB,CAAA;IACrB,sEAAyB,CAAA;IACzB,0DAAa,CAAA;IACb,kEAAqB,CAAA;IACrB,gFAAmC,CAAA;IACnC,8DAAiB,CAAA;IACjB,gEAAmB,CAAA;IACnB,oFAAuC,CAAA;IACvC,oEAAuB,CAAA;AACxB,CAAC,EAdW,yCAAyC,GAAzC,iDAAyC,KAAzC,iDAAyC,QAcpD;AAEY,QAAA,6CAA6C,GAAG,yCAAyC,CAAC,SAAS,CAAC;AAEjH,IAAY,+BAYX;AAZD,WAAY,+BAA+B;IAC1C,2DAAwB,CAAA;IACxB,sEAAmC,CAAA;IACnC,kEAA+B,CAAA;IAC/B,2DAAwB,CAAA;IACxB,uDAAoB,CAAA;IACpB,+DAA4B,CAAA;IAC5B,6DAA0B,CAAA;IAC1B,6DAA0B,CAAA;IAC1B,mEAAgC,CAAA;IAChC,kDAAe,CAAA;IACf,wDAAqB,CAAA;AACtB,CAAC,EAZW,+BAA+B,GAA/B,uCAA+B,KAA/B,uCAA+B,QAY1C;AAED,MAAa,+BAAgC,SAAQ,mCAAsD;CA4B1G;AA5BD,0EA4BC;AAED,MAAa,sBAAsB;CAsClC;AAtCD,wDAsCC"}
|
|
@@ -37,11 +37,6 @@ export interface InvoiceAndRelatedMethodDto {
|
|
|
37
37
|
futureInvoices?: InvoiceAndRelatedMethod[];
|
|
38
38
|
pendingInvoices?: InvoiceAndRelatedMethod[];
|
|
39
39
|
}
|
|
40
|
-
/** Optional fields for a cartless `createNewInvoice` call. */
|
|
41
|
-
export interface ICreateNewInvoiceOptions {
|
|
42
|
-
organizationId?: number;
|
|
43
|
-
linkedAccountId?: number | null;
|
|
44
|
-
}
|
|
45
40
|
export interface IInvoiceCart {
|
|
46
41
|
existingInvoiceId?: number;
|
|
47
42
|
shiftId?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invoice.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/invoice/types/interfaces/invoice.interfaces.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"invoice.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/invoice/types/interfaces/invoice.interfaces.ts"],"names":[],"mappings":";;;AAyFA,MAAa,0BAA0B;CAEtC;AAFD,gEAEC"}
|
|
@@ -85,18 +85,6 @@ export declare class StationsDto {
|
|
|
85
85
|
facilityId: number;
|
|
86
86
|
stationId: number;
|
|
87
87
|
}
|
|
88
|
-
export declare class PaymentIntentDto {
|
|
89
|
-
amount: number;
|
|
90
|
-
customer: string;
|
|
91
|
-
payment_method_types: string[];
|
|
92
|
-
platform: PlatformsEnum;
|
|
93
|
-
organizationId?: number;
|
|
94
|
-
creatorId?: number;
|
|
95
|
-
payment_method?: string;
|
|
96
|
-
setup_future_usage?: 'off_session';
|
|
97
|
-
cardSaveTerminalData?: SaveCardTerminalInputDto;
|
|
98
|
-
invoiceId: number;
|
|
99
|
-
}
|
|
100
88
|
export declare class SetupIntentDto {
|
|
101
89
|
customer: string;
|
|
102
90
|
cardSaveTerminalData: SaveCardTerminalInputDto;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdatePaymentStatusDto = exports.StripeAccountStatusDto = exports.StripeConnectAccountQueryDto = exports.StripeAccountSessionDto = exports.PaymentSettingsDto = exports.SimplePaymentDto = exports.PaymentDto = exports.GetPaymentMethodsDto = exports.GetPaymentMethodsOfUserDto = exports.SendPaymentRequestDto = exports.RevertMetaDto = exports.RemoveResourceDto = exports.NotePrivacyDto = exports.UpdateNoteContentDto = exports.CreateNoteDto = exports.AddToInvoiceDto = exports.SendReceiptDataDto = exports.SendPassPurchaseReceiptDto = exports.PaymentDataDto = exports.SetupIntentDto = exports.
|
|
3
|
+
exports.UpdatePaymentStatusDto = exports.StripeAccountStatusDto = exports.StripeConnectAccountQueryDto = exports.StripeAccountSessionDto = exports.PaymentSettingsDto = exports.SimplePaymentDto = exports.PaymentDto = exports.GetPaymentMethodsDto = exports.GetPaymentMethodsOfUserDto = exports.SendPaymentRequestDto = exports.RevertMetaDto = exports.RemoveResourceDto = exports.NotePrivacyDto = exports.UpdateNoteContentDto = exports.CreateNoteDto = exports.AddToInvoiceDto = exports.SendReceiptDataDto = exports.SendPassPurchaseReceiptDto = exports.PaymentDataDto = exports.SetupIntentDto = exports.StationsDto = exports.FindPayments = exports.ByPaymentFilter = exports.PaymentViaInvoiceHashDto = exports.GetPaymentsQueryDto = exports.GetInvoicesQueryDto = exports.InvoiceIdAndUserIdDto = exports.ByInvoiceAndCustomerDto = exports.ByInvoiceDto = exports.InvoiceIdDto = exports.GetPaymentByCustomerDeprecatedDto = exports.GetPaymentByUserDto = exports.ByPaymentDto = exports.GetPaymentDto = exports.PaymentIdDto = exports.CustomerIdDto = void 0;
|
|
4
4
|
const general_dto_1 = require("../../dto/general.dto");
|
|
5
5
|
const userPaymentMethod_dto_1 = require("../../dto/userPaymentMethod.dto");
|
|
6
6
|
const organization_dto_1 = require("../../organization/dto/organization.dto");
|
|
@@ -52,9 +52,6 @@ exports.FindPayments = FindPayments;
|
|
|
52
52
|
class StationsDto {
|
|
53
53
|
}
|
|
54
54
|
exports.StationsDto = StationsDto;
|
|
55
|
-
class PaymentIntentDto {
|
|
56
|
-
}
|
|
57
|
-
exports.PaymentIntentDto = PaymentIntentDto;
|
|
58
55
|
class SetupIntentDto {
|
|
59
56
|
}
|
|
60
57
|
exports.SetupIntentDto = SetupIntentDto;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment.dto.js","sourceRoot":"","sources":["../../../../src/types/payment/dto/payment.dto.ts"],"names":[],"mappings":";;;AAEA,uDAA+D;AAC/D,2EAAuG;AAQvG,8EAAyG;AA0Bz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ED,MAAa,sBAAsB;CAElC;AAFD,wDAEC"}
|
|
@@ -187,8 +187,6 @@ export interface IRefundPaymentOptions {
|
|
|
187
187
|
* Params for creating a Stripe PaymentIntent when amount (dollars, fees included) and bondFee are already calculated.
|
|
188
188
|
*/
|
|
189
189
|
export interface ICreatePaymentIntentParams {
|
|
190
|
-
destinationId?: string;
|
|
191
|
-
invoiceId: number;
|
|
192
190
|
amount: number;
|
|
193
191
|
bondFee: number;
|
|
194
192
|
cardSaveTerminalData?: ISaveCardTerminalInput;
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import Stripe from 'stripe';
|
|
2
2
|
import { TerminalPresentPaymentMethodTypeEnum } from '../../../terminal/dto/terminal-actions.enums';
|
|
3
|
+
/**
|
|
4
|
+
* Preview Smart Disputes fields returned by API version `2026-03-25.preview`.
|
|
5
|
+
* Basil-typed `Stripe.Dispute` does not include `smart_disputes`.
|
|
6
|
+
*/
|
|
7
|
+
export type TStripeDisputeWithSmartDisputes = Stripe.Dispute & {
|
|
8
|
+
smart_disputes?: {
|
|
9
|
+
status: string;
|
|
10
|
+
} | null;
|
|
11
|
+
};
|
|
3
12
|
/**
|
|
4
13
|
* Params for reversing a Connect transfer when a destination-charge dispute is created.
|
|
5
14
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PaginationSearchQuery } from '../../../dto/general.dto';
|
|
2
|
+
import { SimpleFacilityDto } from '../../../facilities/dto/facilities.dto';
|
|
2
3
|
import { ByOrganizationIdDto } from '../../../organization/dto/organization.dto';
|
|
3
4
|
import { LinkedAccountOrderByEnum, LinkedAccountStatus } from '../../../payment/types/enums/linked-account.enums';
|
|
4
5
|
import { ICreatePayoutAccountPayload, IListPayoutAccountFilters, IPayoutAccountCoverage, IPayoutAccountFacilityAssignments, IPayoutAccountGridRow, IPayoutAccountOnboardingLink, IUpdateBankDetails } from '../interfaces/payout-account.interfaces';
|
|
@@ -10,6 +11,7 @@ export declare class ListPayoutAccountFiltersDto extends PaginationSearchQuery<L
|
|
|
10
11
|
}
|
|
11
12
|
export declare class PayoutAccountGridDto implements IPayoutAccountGridRow {
|
|
12
13
|
facilityIds: number[];
|
|
14
|
+
facilities: SimpleFacilityDto[];
|
|
13
15
|
hasOrgDefault: boolean;
|
|
14
16
|
linkedAccountId: number;
|
|
15
17
|
providerId: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payout-account.dto.js","sourceRoot":"","sources":["../../../../../src/types/payout-accounts/types/dto/payout-account.dto.ts"],"names":[],"mappings":";;;AACA,0DAAiE;
|
|
1
|
+
{"version":3,"file":"payout-account.dto.js","sourceRoot":"","sources":["../../../../../src/types/payout-accounts/types/dto/payout-account.dto.ts"],"names":[],"mappings":";;;AACA,0DAAiE;AAEjE,iFAAiF;AAYjF,MAAa,2BACZ,SAAQ,mCAA+C;CAUvD;AAXD,kEAWC;AAED,MAAa,oBAAoB;CAYhC;AAZD,oDAYC;AAED,MAAa,mCAAmC;CAI/C;AAJD,kFAIC;AAED,MAAa,sBAAuB,SAAQ,sCAAmB;CAE9D;AAFD,wDAEC;AAED,MAAa,8BAA8B;CAI1C;AAJD,wEAIC;AAED,MAAa,sBAAuB,SAAQ,8BAA8B;CAEzE;AAFD,wDAEC;AAED,MAAa,mCAAmC;CAE/C;AAFD,kFAEC;AAED,MAAa,oBAAoB;CAQhC;AARD,oDAQC;AAED,MAAa,4BAA4B;CAExC;AAFD,oEAEC;AAED,MAAa,8BAA8B;CAU1C;AAVD,wEAUC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SimpleFacilityDto } from '../../../facilities/dto/facilities.dto';
|
|
1
2
|
import { LinkedAccountStatus } from '../../../payment/types/enums/linked-account.enums';
|
|
2
3
|
import { IBaseLinkedAccount, IFindLinkedAccountsFilters } from '../../../payment/types/interfaces/linked-account.interfaces';
|
|
3
4
|
/**
|
|
@@ -47,10 +48,12 @@ export interface IPayoutAccountFacilityLink {
|
|
|
47
48
|
}
|
|
48
49
|
/**
|
|
49
50
|
* One grid row per Connect account, with facility ids aggregated across PayoutAccount rows.
|
|
50
|
-
* All Facilities and unassigned rows expose `facilityIds: []`
|
|
51
|
-
* global-only for editing. `hasOrgDefault` distinguishes the
|
|
51
|
+
* All Facilities and unassigned rows expose `facilityIds: []` / `facilities: []` so FE
|
|
52
|
+
* `canAccessAll` treats them as global-only for editing. `hasOrgDefault` distinguishes the
|
|
53
|
+
* sentinel from unassigned. `facilities` carries id+name for display.
|
|
52
54
|
*/
|
|
53
55
|
export interface IPayoutAccountGridRow extends ILinkedAccountsGridRow {
|
|
56
|
+
facilities: SimpleFacilityDto[];
|
|
54
57
|
facilityIds: number[];
|
|
55
58
|
hasOrgDefault: boolean;
|
|
56
59
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payout-account.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/payout-accounts/types/interfaces/payout-account.interfaces.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"payout-account.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/payout-accounts/types/interfaces/payout-account.interfaces.ts"],"names":[],"mappings":";;;AA2HA;;;GAGG;AACH,MAAa,2BAA2B;CAMvC;AAND,kEAMC"}
|
|
@@ -8,9 +8,9 @@ export interface IValidateResourcesDict {
|
|
|
8
8
|
[ResourceNameTypeEnum.PROGRAM_SEASON]: Map<number, ProgramSeason>;
|
|
9
9
|
}
|
|
10
10
|
export interface IValidateResourcesOptions {
|
|
11
|
+
ageReferenceDate?: Date;
|
|
11
12
|
isWaitlistDeclared?: boolean;
|
|
12
13
|
onErrorCallback?: (error: Error, ...args: unknown[]) => void;
|
|
13
14
|
skipExistingRegistrationValidations?: boolean;
|
|
14
15
|
skipOptionalValidations?: boolean;
|
|
15
|
-
ageReferenceDate?: Date;
|
|
16
16
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { UpdateCartPricesDto } from '../../cart/dto/cart.dto';
|
|
2
1
|
import { AddCartItemDto } from '../../cart/dto/cart-item.dto';
|
|
2
|
+
import { UpdateCartPricesDto } from '../../cart/dto/cart.dto';
|
|
3
3
|
import { UserAnswersDto } from '../../dto/application.dto';
|
|
4
4
|
import { SaveCardTerminalInputDto } from '../../dto/userPaymentMethod.dto';
|
|
5
5
|
import { Customer } from '../../entity/Customer';
|
|
@@ -38,12 +38,12 @@ export interface ILineItem {
|
|
|
38
38
|
id?: number;
|
|
39
39
|
organizationId: number;
|
|
40
40
|
entitlementGroupId?: number;
|
|
41
|
+
facilityId?: number;
|
|
41
42
|
invoiceId?: number;
|
|
42
43
|
parentGroupId?: string;
|
|
43
44
|
parentLineItemId?: number;
|
|
44
45
|
productId: number;
|
|
45
46
|
userId?: number;
|
|
46
|
-
facilityId?: number;
|
|
47
47
|
currency: CurrencyEnum;
|
|
48
48
|
isTaxInclusive?: boolean;
|
|
49
49
|
ordinal?: number;
|
|
@@ -21,11 +21,11 @@ export interface IEnsureIdentityForFolderOptions {
|
|
|
21
21
|
sport?: SportsEnum;
|
|
22
22
|
}
|
|
23
23
|
export interface ITeamIdentityWithOrgName {
|
|
24
|
-
sourceOrganizationId: number;
|
|
25
24
|
logoMediaId: number | null;
|
|
26
|
-
|
|
25
|
+
sourceOrganizationId: number;
|
|
27
26
|
teamIdentityId: number;
|
|
28
27
|
createdAt: Date;
|
|
28
|
+
logoMediaUrl: string | null;
|
|
29
29
|
name: string;
|
|
30
30
|
organizationName: string;
|
|
31
31
|
sport: SportsEnum;
|
|
@@ -101,11 +101,11 @@ export interface ITokenResonse {
|
|
|
101
101
|
export interface IPayment {
|
|
102
102
|
id: number;
|
|
103
103
|
createdAt: Date;
|
|
104
|
+
facilityIds: number[];
|
|
104
105
|
invoices: number[];
|
|
105
106
|
paymentMethod: PaymentMethodTypeEnum;
|
|
106
107
|
status: PaymentStatusEnum;
|
|
107
108
|
total: number;
|
|
108
|
-
facilityIds: number[];
|
|
109
109
|
}
|
|
110
110
|
export interface IPaginationData<T> {
|
|
111
111
|
data: T[];
|
|
@@ -7,26 +7,26 @@ export interface IUpdateMyTeamProfileInput {
|
|
|
7
7
|
patch: UpdateMyTeamProfileBodyDto;
|
|
8
8
|
}
|
|
9
9
|
export interface IUpdateTeammateDetailsInput {
|
|
10
|
-
/** Authenticated caller performing the edit. */
|
|
11
|
-
userId: number;
|
|
12
|
-
teamFolderId: number;
|
|
13
10
|
/** FolderContent id of the teammate roster entry being edited. */
|
|
14
11
|
folderContentId: number;
|
|
12
|
+
teamFolderId: number;
|
|
13
|
+
/** Authenticated caller performing the edit. */
|
|
14
|
+
userId: number;
|
|
15
15
|
patch: UpdateTeammateDetailsBodyDto;
|
|
16
16
|
}
|
|
17
17
|
export interface IListMyPastTeamsInput {
|
|
18
|
-
userId: number;
|
|
19
18
|
programSeasonId: number;
|
|
19
|
+
userId: number;
|
|
20
20
|
}
|
|
21
21
|
export interface IListPastTeamRosterInput {
|
|
22
|
-
userId: number;
|
|
23
|
-
teamIdentityId: number;
|
|
24
22
|
/**
|
|
25
23
|
* When set, the roster is read from the newest linked folder other than the
|
|
26
24
|
* identity's folder in this season — matching rollover source resolution so
|
|
27
25
|
* the modal does not list players that rollover will skip.
|
|
28
26
|
*/
|
|
29
27
|
programSeasonId?: number;
|
|
28
|
+
teamIdentityId: number;
|
|
29
|
+
userId: number;
|
|
30
30
|
}
|
|
31
31
|
export interface IRemovePlayerFromTeamInput {
|
|
32
32
|
/** FolderContent id of the roster entry being removed. */
|
|
@@ -46,33 +46,33 @@ export interface IRemovalTemplatePlayer {
|
|
|
46
46
|
lastName?: string;
|
|
47
47
|
}
|
|
48
48
|
export interface IPlayerRemovedTemplateData {
|
|
49
|
+
organization_name?: string;
|
|
49
50
|
player_first_name: string;
|
|
50
51
|
player_last_name: string;
|
|
51
|
-
team_name: string;
|
|
52
|
-
removed_at: string;
|
|
53
|
-
season_name?: string;
|
|
54
52
|
program_name?: string;
|
|
55
|
-
|
|
53
|
+
removed_at: string;
|
|
56
54
|
removed_by_name?: string;
|
|
55
|
+
season_name?: string;
|
|
56
|
+
team_name: string;
|
|
57
57
|
}
|
|
58
58
|
export interface INotifyPlayerRemovedArgs {
|
|
59
59
|
organizationId: number;
|
|
60
|
-
removedByUserId: number;
|
|
61
60
|
playerUserId: number;
|
|
61
|
+
removedByUserId: number;
|
|
62
62
|
folder: Folder;
|
|
63
63
|
}
|
|
64
64
|
export interface INotifyPlayerOfRemovalArgs {
|
|
65
65
|
organizationId: number;
|
|
66
|
-
removedByUserId: number;
|
|
67
|
-
playerUserId: number;
|
|
68
66
|
facilityId?: number;
|
|
67
|
+
playerUserId: number;
|
|
68
|
+
removedByUserId: number;
|
|
69
69
|
teamFolderId: number;
|
|
70
|
-
player: User;
|
|
71
70
|
dynamicTemplateData: IPlayerRemovedTemplateData;
|
|
71
|
+
player: User;
|
|
72
72
|
}
|
|
73
73
|
export interface INotifyAdminsOfPlayerRemovalArgs {
|
|
74
74
|
organizationId: number;
|
|
75
|
-
removedByUserId: number;
|
|
76
75
|
facilityId?: number;
|
|
76
|
+
removedByUserId: number;
|
|
77
77
|
dynamicTemplateData: IPlayerRemovedTemplateData;
|
|
78
78
|
}
|
|
@@ -1,19 +1,8 @@
|
|
|
1
|
-
import { SaveCardTerminalInputDto } from '../../dto/userPaymentMethod.dto';
|
|
2
1
|
import { SetupIntentDto } from '../../payment/dto/payment.dto';
|
|
3
|
-
import { PlatformsEnum } from '../../services/enums.service';
|
|
4
2
|
import { TerminalActionCancelRequestReasonEnum } from '../types/enums/terminal-action.enums';
|
|
5
3
|
import { TerminalReaderActionStatusEnum, TerminalReaderActionTypeEnum } from '../types/enums/terminal-readers.enums';
|
|
6
4
|
import { TerminalPresentPaymentMethodTypeEnum } from './terminal-actions.enums';
|
|
7
5
|
export declare const TERMINAL_IDEMPOTENCY_KEY_MAX_LENGTH = 128;
|
|
8
|
-
export declare class TerminalPaymentIntentDto {
|
|
9
|
-
amount: number;
|
|
10
|
-
customer: string;
|
|
11
|
-
payment_method_types?: string[];
|
|
12
|
-
platform: PlatformsEnum;
|
|
13
|
-
setup_future_usage?: 'off_session';
|
|
14
|
-
cardSaveTerminalData?: SaveCardTerminalInputDto;
|
|
15
|
-
invoiceId: number;
|
|
16
|
-
}
|
|
17
6
|
export declare class TerminalProcessPaymentTippingDto {
|
|
18
7
|
eligible_amount: number;
|
|
19
8
|
}
|
|
@@ -25,11 +14,10 @@ export declare class TerminalProcessSetupIntentOverrideConfigDto {
|
|
|
25
14
|
allow_redisplay: 'always' | 'limited' | 'unspecified';
|
|
26
15
|
}
|
|
27
16
|
export declare class ProcessTerminalPaymentDto {
|
|
28
|
-
|
|
29
|
-
paymentIntentId?: string;
|
|
17
|
+
paymentIntentId: string;
|
|
30
18
|
force?: boolean;
|
|
31
19
|
overrideConfig?: TerminalProcessPaymentOverrideConfigDto;
|
|
32
|
-
idempotencyKey
|
|
20
|
+
idempotencyKey: string;
|
|
33
21
|
}
|
|
34
22
|
export declare class CancelTerminalActionDto {
|
|
35
23
|
reason: TerminalActionCancelRequestReasonEnum;
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TerminalCancelActionResponseDto = exports.TerminalActionResponseDto = exports.TerminalOverrideResultDto = exports.TerminalOverridePreviousActionDto = exports.TerminalActionInitiatedByDto = exports.TerminalActionStateDto = exports.ProcessTerminalRefundDto = exports.ProcessTerminalSetupIntentDto = exports.PresentTerminalPaymentMethodDto = exports.CollectTerminalInputsDto = exports.TerminalCollectInputTypeEnum = exports.CancelTerminalActionDto = exports.ProcessTerminalPaymentDto = exports.TerminalProcessSetupIntentOverrideConfigDto = exports.TerminalProcessPaymentOverrideConfigDto = exports.TerminalProcessPaymentTippingDto = exports.
|
|
4
|
-
const TERMINAL_PAYMENT_METHOD_TYPES_MAX = 10;
|
|
3
|
+
exports.TerminalCancelActionResponseDto = exports.TerminalActionResponseDto = exports.TerminalOverrideResultDto = exports.TerminalOverridePreviousActionDto = exports.TerminalActionInitiatedByDto = exports.TerminalActionStateDto = exports.ProcessTerminalRefundDto = exports.ProcessTerminalSetupIntentDto = exports.PresentTerminalPaymentMethodDto = exports.CollectTerminalInputsDto = exports.TerminalCollectInputTypeEnum = exports.CancelTerminalActionDto = exports.ProcessTerminalPaymentDto = exports.TerminalProcessSetupIntentOverrideConfigDto = exports.TerminalProcessPaymentOverrideConfigDto = exports.TerminalProcessPaymentTippingDto = exports.TERMINAL_IDEMPOTENCY_KEY_MAX_LENGTH = void 0;
|
|
5
4
|
exports.TERMINAL_IDEMPOTENCY_KEY_MAX_LENGTH = 128;
|
|
6
5
|
const TERMINAL_CARD_NUMBER_MAX_LENGTH = 19;
|
|
7
|
-
class TerminalPaymentIntentDto {
|
|
8
|
-
}
|
|
9
|
-
exports.TerminalPaymentIntentDto = TerminalPaymentIntentDto;
|
|
10
6
|
class TerminalProcessPaymentTippingDto {
|
|
11
7
|
}
|
|
12
8
|
exports.TerminalProcessPaymentTippingDto = TerminalProcessPaymentTippingDto;
|
|
@@ -16,13 +12,6 @@ exports.TerminalProcessPaymentOverrideConfigDto = TerminalProcessPaymentOverride
|
|
|
16
12
|
class TerminalProcessSetupIntentOverrideConfigDto {
|
|
17
13
|
}
|
|
18
14
|
exports.TerminalProcessSetupIntentOverrideConfigDto = TerminalProcessSetupIntentOverrideConfigDto;
|
|
19
|
-
/**
|
|
20
|
-
* Whether `idempotencyKey`'s validators should run on a process-payment body. They always run when the
|
|
21
|
-
* client supplied a key, and additionally when `paymentIntentId` is set, which makes the key mandatory:
|
|
22
|
-
* a reserved intent id holds the rest of the Stripe key steady across attempts, so without a rotating
|
|
23
|
-
* client key Stripe replays the first attempt's cached response — including its error — for 24 hours.
|
|
24
|
-
*/
|
|
25
|
-
const requiresIdempotencyKeyValidation = (dto) => Boolean(dto.paymentIntentId) || dto.idempotencyKey !== undefined;
|
|
26
15
|
class ProcessTerminalPaymentDto {
|
|
27
16
|
}
|
|
28
17
|
exports.ProcessTerminalPaymentDto = ProcessTerminalPaymentDto;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"terminal-actions.dto.js","sourceRoot":"","sources":["../../../../src/types/terminal/dto/terminal-actions.dto.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"terminal-actions.dto.js","sourceRoot":"","sources":["../../../../src/types/terminal/dto/terminal-actions.dto.ts"],"names":[],"mappings":";;;AAOa,QAAA,mCAAmC,GAAG,GAAG,CAAC;AACvD,MAAM,+BAA+B,GAAG,EAAE,CAAC;AAE3C,MAAa,gCAAgC;CAE5C;AAFD,4EAEC;AAED,MAAa,uCAAuC;CAInD;AAJD,0FAIC;AAED,MAAa,2CAA2C;CAEvD;AAFD,kGAEC;AAED,MAAa,yBAAyB;CAQrC;AARD,8DAQC;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"}
|
|
@@ -17,9 +17,9 @@ export interface IUpdateUser {
|
|
|
17
17
|
status?: string;
|
|
18
18
|
}
|
|
19
19
|
export interface IUpdateUserEntity {
|
|
20
|
-
about?: string;
|
|
21
20
|
addressId?: number | null;
|
|
22
21
|
currentAddressId?: number | null;
|
|
22
|
+
about?: string;
|
|
23
23
|
birthDate?: string;
|
|
24
24
|
email?: string;
|
|
25
25
|
firstName?: string;
|