@bondsports/types 2.5.0 → 2.5.2-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/README.md +71 -71
- 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 +15 -11
- package/dist/types/cart/types/consts/cart.consts.js +4 -0
- package/dist/types/cart/types/consts/cart.consts.js.map +1 -1
- package/dist/types/customers/types/interfaces.d.ts +1 -1
- package/dist/types/entity/Invoice.d.ts +3 -0
- package/dist/types/entity/Invoice.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 +5 -0
- package/dist/types/invoice/types/interfaces/invoice.interfaces.js.map +1 -1
- package/dist/types/payment/dto/payment.dto.d.ts +0 -11
- 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/linked-account.interfaces.d.ts +10 -0
- package/dist/types/payment/types/interfaces/payment.interfaces.d.ts +0 -13
- package/dist/types/payment/types/interfaces/payment.interfaces.js.map +1 -1
- 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 +22 -1
- package/dist/types/payout-accounts/types/dto/payout-account.dto.js +19 -1
- 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 +25 -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 -13
- 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
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CustomerMerge } from '../../customers-merge/entities/CustomerMerge';
|
|
2
2
|
import { UserAnswersDto } from '../../dto/application.dto';
|
|
3
3
|
import { Customer } from '../../entity/Customer';
|
|
4
|
+
import { LinkedAccounts } from '../../entity/LinkedAccounts';
|
|
4
5
|
import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
|
|
5
6
|
import { CurrencyEnum, PlatformsEnum } from '../../services/enums.service';
|
|
6
7
|
import { User } from '../../user/entities/User';
|
|
@@ -23,6 +24,8 @@ export declare class Cart extends OrganizationConnectionBaseEntity {
|
|
|
23
24
|
shiftId?: number;
|
|
24
25
|
parentId?: number;
|
|
25
26
|
invoiceId?: number;
|
|
27
|
+
linkedAccountId?: number | null;
|
|
28
|
+
linkedAccount?: LinkedAccounts | null;
|
|
26
29
|
answers?: UserAnswersDto[];
|
|
27
30
|
lastActiveTime: Date;
|
|
28
31
|
lastFetchedTime: Date;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cart.entity.js","sourceRoot":"","sources":["../../../../src/types/cart/entities/cart.entity.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"cart.entity.js","sourceRoot":"","sources":["../../../../src/types/cart/entities/cart.entity.ts"],"names":[],"mappings":";;;AAMA,oGAAiG;AASjG,MAAa,IAAK,SAAQ,mEAAgC;CA4DzD;AA5DD,oBA4DC"}
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
import { CartDiscountDto } from '../../dto/cart-item.dto';
|
|
2
2
|
export declare const uniqueCartDiscountTemplate: (discountItem: CartDiscountDto) => string;
|
|
3
3
|
export declare const CART_ERROR_CODES: {
|
|
4
|
-
INACTIVE_CART:
|
|
5
|
-
INVALID_CART:
|
|
6
|
-
CART_NOT_FOUND:
|
|
7
|
-
MISSING_CART_ITEM:
|
|
8
|
-
INVALID_PURCHASE_REQUEST:
|
|
9
|
-
PAYMENT_METHOD_NOT_ALLOWED:
|
|
10
|
-
INVALID_USER_PAYMENT_METHOD:
|
|
11
|
-
INVALID_PAYMENT_AMOUNT:
|
|
12
|
-
INVALID_PURCHASE:
|
|
13
|
-
CANNOT_PAY_WAITLIST_CART:
|
|
14
|
-
WAITLIST_DECLARED_BUT_ROOM_AVAILABLE:
|
|
4
|
+
readonly INACTIVE_CART: "CART.INACTIVE_CART";
|
|
5
|
+
readonly INVALID_CART: "CART.INVALID_CART";
|
|
6
|
+
readonly CART_NOT_FOUND: "CART.NOT_FOUND";
|
|
7
|
+
readonly MISSING_CART_ITEM: "CART.MISSING_CART_ITEM";
|
|
8
|
+
readonly INVALID_PURCHASE_REQUEST: "CART.INVALID_PURCHASE_REQUEST";
|
|
9
|
+
readonly PAYMENT_METHOD_NOT_ALLOWED: "CART.PAYMENT_METHOD_NOT_ALLOWED";
|
|
10
|
+
readonly INVALID_USER_PAYMENT_METHOD: "CART.INVALID_USER_PAYMENT_METHOD";
|
|
11
|
+
readonly INVALID_PAYMENT_AMOUNT: "CART.INVALID_PAYMENT_AMOUNT";
|
|
12
|
+
readonly INVALID_PURCHASE: "CART.INVALID_PURCHASE";
|
|
13
|
+
readonly CANNOT_PAY_WAITLIST_CART: "CART.CANNOT_PAY_WAITLIST_CART";
|
|
14
|
+
readonly WAITLIST_DECLARED_BUT_ROOM_AVAILABLE: "CART.WAITLIST_DECLARED_BUT_ROOM_AVAILABLE";
|
|
15
|
+
readonly LINKED_ACCOUNT_NOT_FOUND: "CART.LINKED_ACCOUNT_NOT_FOUND";
|
|
16
|
+
readonly PAYOUT_ACCOUNT_DIFFERENT: "CART.PAYOUT_ACCOUNT_DIFFERENT";
|
|
17
|
+
readonly PAYOUT_ACCOUNT_NOT_CHARGEABLE: "CART.PAYOUT_ACCOUNT_NOT_CHARGEABLE";
|
|
18
|
+
readonly PAYOUT_ACCOUNT_MISSING_PROVIDER: "CART.PAYOUT_ACCOUNT_MISSING_PROVIDER";
|
|
15
19
|
};
|
|
@@ -18,5 +18,9 @@ exports.CART_ERROR_CODES = {
|
|
|
18
18
|
INVALID_PURCHASE: 'CART.INVALID_PURCHASE',
|
|
19
19
|
CANNOT_PAY_WAITLIST_CART: 'CART.CANNOT_PAY_WAITLIST_CART',
|
|
20
20
|
WAITLIST_DECLARED_BUT_ROOM_AVAILABLE: 'CART.WAITLIST_DECLARED_BUT_ROOM_AVAILABLE',
|
|
21
|
+
LINKED_ACCOUNT_NOT_FOUND: 'CART.LINKED_ACCOUNT_NOT_FOUND',
|
|
22
|
+
PAYOUT_ACCOUNT_DIFFERENT: 'CART.PAYOUT_ACCOUNT_DIFFERENT',
|
|
23
|
+
PAYOUT_ACCOUNT_NOT_CHARGEABLE: 'CART.PAYOUT_ACCOUNT_NOT_CHARGEABLE',
|
|
24
|
+
PAYOUT_ACCOUNT_MISSING_PROVIDER: 'CART.PAYOUT_ACCOUNT_MISSING_PROVIDER',
|
|
21
25
|
};
|
|
22
26
|
//# sourceMappingURL=cart.consts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cart.consts.js","sourceRoot":"","sources":["../../../../../src/types/cart/types/consts/cart.consts.ts"],"names":[],"mappings":";;;AAEO,MAAM,0BAA0B,GAAG,CAAC,YAA6B,EAAU,EAAE;IACnF,MAAM,kBAAkB,GAAW,GAAG,YAAY,CAAC,UAAU,EAAE,CAAC;IAEhE,OAAO,GAAG,YAAY,CAAC,UAAU,IAAI,YAAY,CAAC,QAAQ,EAA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B;IACzD,6BAA6B,EAAE,oCAAoC;IACnE,+BAA+B,EAAE,sCAAsC;CAC9D,CAAC"}
|
|
@@ -17,6 +17,7 @@ import { InvoiceNote } from './InvoiceNote';
|
|
|
17
17
|
import { InvoiceToPayment } from './InvoiceToPayment';
|
|
18
18
|
import { LineItemHistory } from './LineItemHistory';
|
|
19
19
|
import { LineItems } from './LineItems';
|
|
20
|
+
import { LinkedAccounts } from './LinkedAccounts';
|
|
20
21
|
export declare class Invoice extends BondBaseEntity {
|
|
21
22
|
invoiceId?: string;
|
|
22
23
|
parentId?: number;
|
|
@@ -27,6 +28,8 @@ export declare class Invoice extends BondBaseEntity {
|
|
|
27
28
|
payingUserId?: number;
|
|
28
29
|
owner?: User;
|
|
29
30
|
organizationId?: number;
|
|
31
|
+
linkedAccountId?: number | null;
|
|
32
|
+
linkedAccount?: LinkedAccounts | null;
|
|
30
33
|
invoiceToPayments: InvoiceToPayment[];
|
|
31
34
|
payments: Payment[];
|
|
32
35
|
lineItems: LineItems[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Invoice.js","sourceRoot":"","sources":["../../../src/types/entity/Invoice.ts"],"names":[],"mappings":";;;AAqBA,qDAAkD;
|
|
1
|
+
{"version":3,"file":"Invoice.js","sourceRoot":"","sources":["../../../src/types/entity/Invoice.ts"],"names":[],"mappings":";;;AAqBA,qDAAkD;AAQlD,MAAa,OAAQ,SAAQ,+BAAc;CAmH1C;AAnHD,0BAmHC"}
|
|
@@ -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;
|
|
@@ -65,4 +66,5 @@ export declare class OrganizationInvoiceDto {
|
|
|
65
66
|
platform?: PlatformsEnum;
|
|
66
67
|
creatingUserName?: string;
|
|
67
68
|
creatingUserEmail?: string;
|
|
69
|
+
linkedAccountId?: number | null;
|
|
68
70
|
}
|
|
@@ -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;CAwClC;AAxCD,wDAwCC"}
|
|
@@ -12,6 +12,11 @@ import { InvoiceDto } from '../../dto/invoice.dto';
|
|
|
12
12
|
import { LineItemDto } from '../../dto/lineItem.dto';
|
|
13
13
|
import { GetOrganizationInvoicesQueryDto } from '../../dto/organization-invoice.dto';
|
|
14
14
|
export type TOrganizationInvoiceCustomerType = CustomerTypeEnum.USER | CustomerTypeEnum.FAMILY;
|
|
15
|
+
/** Cartless organization id and optional payout snapshot for `createNewInvoice`. */
|
|
16
|
+
export interface ICreateNewInvoiceOptions {
|
|
17
|
+
organizationId: number;
|
|
18
|
+
linkedAccountId?: number | null;
|
|
19
|
+
}
|
|
15
20
|
/** Resolved single-type customer restriction for organization invoice queries. */
|
|
16
21
|
export interface IOrganizationInvoiceCustomerFilter {
|
|
17
22
|
customerType: TOrganizationInvoiceCustomerType;
|
|
@@ -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":";;;AA+FA,MAAa,0BAA0B;CAEtC;AAFD,gEAEC"}
|
|
@@ -85,17 +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
|
-
}
|
|
99
88
|
export declare class SetupIntentDto {
|
|
100
89
|
customer: string;
|
|
101
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,2EAA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B;CAYlC;AAZD,wDAYC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC"}
|
|
@@ -11,6 +11,16 @@ export interface IFindLinkedAccountsFilters extends IPaginatedSearchQuery<Linked
|
|
|
11
11
|
providers?: StripeAccountTypesEnum[];
|
|
12
12
|
statuses?: LinkedAccountStatus[];
|
|
13
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* When `organizationId` is set, only organization-parent Connect rows for that org are returned.
|
|
16
|
+
* When `isChargeable` is true, missing, unchargeable, or provider-less rows throw.
|
|
17
|
+
* When `throwOnMissing` is true, a missing row throws even without `isChargeable`.
|
|
18
|
+
*/
|
|
19
|
+
export interface IGetLinkedAccountByIdOptions {
|
|
20
|
+
organizationId?: number;
|
|
21
|
+
isChargeable?: boolean;
|
|
22
|
+
throwOnMissing?: boolean;
|
|
23
|
+
}
|
|
14
24
|
/**
|
|
15
25
|
* Insert payload for an organization Stripe Connect linked account.
|
|
16
26
|
* `parentType` is always organization. Status and provider default in the service.
|
|
@@ -10,7 +10,6 @@ import { Payment } from '../../entities/Payment';
|
|
|
10
10
|
import { PaymentMethodTypeEnum, SubPaymentMethodTypeEnum } from '../enums/payment.enums';
|
|
11
11
|
import { RefundBuilderErrorCodesEnum, RefundTypeEnum } from '../enums/refund.enums';
|
|
12
12
|
import type { IRefundOperation } from './refund.interfaces';
|
|
13
|
-
import { ISaveCardTerminalInput } from './user-payment-method.interfaces';
|
|
14
13
|
export declare class PaymentResult {
|
|
15
14
|
paymentMethodId: string;
|
|
16
15
|
paymentMethodType: PaymentMethodTypeEnum;
|
|
@@ -183,15 +182,3 @@ export interface IHandleDisputeClosedLostParams {
|
|
|
183
182
|
export interface IRefundPaymentOptions {
|
|
184
183
|
isFullDisputeLoss?: boolean;
|
|
185
184
|
}
|
|
186
|
-
/**
|
|
187
|
-
* Params for creating a Stripe PaymentIntent when amount (dollars, fees included) and bondFee are already calculated.
|
|
188
|
-
*/
|
|
189
|
-
export interface ICreatePaymentIntentParams {
|
|
190
|
-
amount: number;
|
|
191
|
-
bondFee: number;
|
|
192
|
-
cardSaveTerminalData?: ISaveCardTerminalInput;
|
|
193
|
-
customer: string;
|
|
194
|
-
payment_method?: string;
|
|
195
|
-
payment_method_types: string[];
|
|
196
|
-
setup_future_usage?: 'off_session';
|
|
197
|
-
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/interfaces/payment.interfaces.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"payment.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/interfaces/payment.interfaces.ts"],"names":[],"mappings":";;;AAkBA,MAAa,aAAa;CAczB;AAdD,sCAcC;AAED,MAAa,eAAe;CAI3B;AAJD,0CAIC;AAiBD,MAAa,mBAAmB;CAQ/B;AARD,kDAQC"}
|
|
@@ -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,15 +1,36 @@
|
|
|
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
|
-
import { ICreatePayoutAccountPayload, IListPayoutAccountFilters, IPayoutAccountCoverage, IPayoutAccountFacilityAssignments, IPayoutAccountGridRow, IPayoutAccountOnboardingLink, IUpdateBankDetails } from '../interfaces/payout-account.interfaces';
|
|
5
|
+
import { ICreatePayoutAccountPayload, IListPayoutAccountFilters, IPayoutAccountCoverage, IPayoutAccountFacilityAssignments, IPayoutAccountGridRow, IPayoutAccountOnboardingLink, IResolvePayoutAccountsQuery, IResolvePayoutAccountsResult, IResolvedPayoutAccountFacility, IUpdateBankDetails } from '../interfaces/payout-account.interfaces';
|
|
5
6
|
export declare class ListPayoutAccountFiltersDto extends PaginationSearchQuery<LinkedAccountOrderByEnum> implements IListPayoutAccountFilters {
|
|
6
7
|
facilitiesIds?: number[];
|
|
7
8
|
search?: string;
|
|
8
9
|
orderBy?: LinkedAccountOrderByEnum;
|
|
9
10
|
statuses?: LinkedAccountStatus[];
|
|
10
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* Query DTO for resolving payout destinations for concrete facility ids.
|
|
14
|
+
*/
|
|
15
|
+
export declare class ResolvePayoutAccountsQueryDto implements IResolvePayoutAccountsQuery {
|
|
16
|
+
facilityIds?: number[];
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* One facility → payout destination for the resolve endpoint.
|
|
20
|
+
*/
|
|
21
|
+
export declare class ResolvedPayoutAccountFacilityDto implements IResolvedPayoutAccountFacility {
|
|
22
|
+
facilityId: number;
|
|
23
|
+
linkedAccountId: number | null;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Response for resolving facility payout destinations.
|
|
27
|
+
*/
|
|
28
|
+
export declare class ResolvePayoutAccountsDto implements IResolvePayoutAccountsResult {
|
|
29
|
+
accounts: ResolvedPayoutAccountFacilityDto[];
|
|
30
|
+
}
|
|
11
31
|
export declare class PayoutAccountGridDto implements IPayoutAccountGridRow {
|
|
12
32
|
facilityIds: number[];
|
|
33
|
+
facilities: SimpleFacilityDto[];
|
|
13
34
|
hasOrgDefault: boolean;
|
|
14
35
|
linkedAccountId: number;
|
|
15
36
|
providerId: string | null;
|
|
@@ -1,11 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PayoutAccountOnboardingLinkDto = exports.BankDetailsUpdateResponseDto = exports.UpdateBankDetailsDto = exports.PayoutAccountOnboardingLinkQueryDto = exports.CreatePayoutAccountDto = exports.UpdatePayoutAccountCoverageDto = exports.PayoutAccountParamsDto = exports.PayoutAccountFacilityAssignmentsDto = exports.PayoutAccountGridDto = exports.ListPayoutAccountFiltersDto = void 0;
|
|
3
|
+
exports.PayoutAccountOnboardingLinkDto = exports.BankDetailsUpdateResponseDto = exports.UpdateBankDetailsDto = exports.PayoutAccountOnboardingLinkQueryDto = exports.CreatePayoutAccountDto = exports.UpdatePayoutAccountCoverageDto = exports.PayoutAccountParamsDto = exports.PayoutAccountFacilityAssignmentsDto = exports.PayoutAccountGridDto = exports.ResolvePayoutAccountsDto = exports.ResolvedPayoutAccountFacilityDto = exports.ResolvePayoutAccountsQueryDto = exports.ListPayoutAccountFiltersDto = void 0;
|
|
4
4
|
const general_dto_1 = require("../../../dto/general.dto");
|
|
5
5
|
const organization_dto_1 = require("../../../organization/dto/organization.dto");
|
|
6
6
|
class ListPayoutAccountFiltersDto extends general_dto_1.PaginationSearchQuery {
|
|
7
7
|
}
|
|
8
8
|
exports.ListPayoutAccountFiltersDto = ListPayoutAccountFiltersDto;
|
|
9
|
+
/**
|
|
10
|
+
* Query DTO for resolving payout destinations for concrete facility ids.
|
|
11
|
+
*/
|
|
12
|
+
class ResolvePayoutAccountsQueryDto {
|
|
13
|
+
}
|
|
14
|
+
exports.ResolvePayoutAccountsQueryDto = ResolvePayoutAccountsQueryDto;
|
|
15
|
+
/**
|
|
16
|
+
* One facility → payout destination for the resolve endpoint.
|
|
17
|
+
*/
|
|
18
|
+
class ResolvedPayoutAccountFacilityDto {
|
|
19
|
+
}
|
|
20
|
+
exports.ResolvedPayoutAccountFacilityDto = ResolvedPayoutAccountFacilityDto;
|
|
21
|
+
/**
|
|
22
|
+
* Response for resolving facility payout destinations.
|
|
23
|
+
*/
|
|
24
|
+
class ResolvePayoutAccountsDto {
|
|
25
|
+
}
|
|
26
|
+
exports.ResolvePayoutAccountsDto = ResolvePayoutAccountsDto;
|
|
9
27
|
class PayoutAccountGridDto {
|
|
10
28
|
}
|
|
11
29
|
exports.PayoutAccountGridDto = PayoutAccountGridDto;
|
|
@@ -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;AAejF,MAAa,2BACZ,SAAQ,mCAA+C;CAUvD;AAXD,kEAWC;AAED;;GAEG;AACH,MAAa,6BAA6B;CAEzC;AAFD,sEAEC;AAED;;GAEG;AACH,MAAa,gCAAgC;CAI5C;AAJD,4EAIC;AAED;;GAEG;AACH,MAAa,wBAAwB;CAEpC;AAFD,4DAEC;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
|
/**
|
|
@@ -13,6 +14,26 @@ export interface INullableFacilityId {
|
|
|
13
14
|
}
|
|
14
15
|
export interface IResolvedPayoutAccountRow extends IResolvedPayoutAccount, INullableFacilityId {
|
|
15
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* Query for resolving payout destinations for a set of facility ids.
|
|
19
|
+
*/
|
|
20
|
+
export interface IResolvePayoutAccountsQuery {
|
|
21
|
+
facilityIds?: number[];
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* One facility → payout destination entry returned by the resolve endpoint.
|
|
25
|
+
* `linkedAccountId` is null when the facility has no coverage.
|
|
26
|
+
*/
|
|
27
|
+
export interface IResolvedPayoutAccountFacility {
|
|
28
|
+
facilityId: number;
|
|
29
|
+
linkedAccountId: number | null;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Response payload for resolving facility payout destinations.
|
|
33
|
+
*/
|
|
34
|
+
export interface IResolvePayoutAccountsResult {
|
|
35
|
+
accounts: IResolvedPayoutAccountFacility[];
|
|
36
|
+
}
|
|
16
37
|
/**
|
|
17
38
|
* PayoutAccount-level filters for the centralized payout-accounts query. Omitted or `null`
|
|
18
39
|
* `facilityIds` is unrestricted. An empty array matches the All Facilities sentinel only. A
|
|
@@ -47,10 +68,12 @@ export interface IPayoutAccountFacilityLink {
|
|
|
47
68
|
}
|
|
48
69
|
/**
|
|
49
70
|
* 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
|
|
71
|
+
* All Facilities and unassigned rows expose `facilityIds: []` / `facilities: []` so FE
|
|
72
|
+
* `canAccessAll` treats them as global-only for editing. `hasOrgDefault` distinguishes the
|
|
73
|
+
* sentinel from unassigned. `facilities` carries id+name for display.
|
|
52
74
|
*/
|
|
53
75
|
export interface IPayoutAccountGridRow extends ILinkedAccountsGridRow {
|
|
76
|
+
facilities: SimpleFacilityDto[];
|
|
54
77
|
facilityIds: number[];
|
|
55
78
|
hasOrgDefault: boolean;
|
|
56
79
|
}
|
|
@@ -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":";;;AAkJA;;;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,18 +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
|
-
}
|
|
16
6
|
export declare class TerminalProcessPaymentTippingDto {
|
|
17
7
|
eligible_amount: number;
|
|
18
8
|
}
|
|
@@ -24,11 +14,10 @@ export declare class TerminalProcessSetupIntentOverrideConfigDto {
|
|
|
24
14
|
allow_redisplay: 'always' | 'limited' | 'unspecified';
|
|
25
15
|
}
|
|
26
16
|
export declare class ProcessTerminalPaymentDto {
|
|
27
|
-
|
|
28
|
-
paymentIntentId?: string;
|
|
17
|
+
paymentIntentId: string;
|
|
29
18
|
force?: boolean;
|
|
30
19
|
overrideConfig?: TerminalProcessPaymentOverrideConfigDto;
|
|
31
|
-
idempotencyKey
|
|
20
|
+
idempotencyKey: string;
|
|
32
21
|
}
|
|
33
22
|
export declare class CancelTerminalActionDto {
|
|
34
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;
|