@bondsports/types 2.5.2 → 2.5.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/cart/dto/cart.dto.d.ts +1 -0
- package/dist/types/cart/dto/cart.dto.js.map +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/entity/Invoice.d.ts +3 -0
- package/dist/types/entity/Invoice.js.map +1 -1
- package/dist/types/invoice/dto/index.d.ts +0 -1
- package/dist/types/invoice/dto/index.js +0 -1
- package/dist/types/invoice/dto/index.js.map +1 -1
- package/dist/types/invoice/dto/organization-invoice.dto.d.ts +4 -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 -16
- package/dist/types/payment/dto/payment.dto.js +1 -7
- 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 +29 -0
- package/dist/types/payment/types/interfaces/stripe-service.interfaces.js +5 -0
- package/dist/types/payment/types/interfaces/stripe-service.interfaces.js.map +1 -1
- 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/reservations/dto/addon.dto.d.ts +6 -1
- package/dist/types/reservations/dto/addon.dto.js +5 -1
- package/dist/types/reservations/dto/addon.dto.js.map +1 -1
- package/dist/types/reservations/dto/reservation.dto.d.ts +2 -6
- package/dist/types/reservations/dto/reservation.dto.js +2 -5
- package/dist/types/reservations/dto/reservation.dto.js.map +1 -1
- package/dist/types/reservations/types/interfaces/reservation.interfaces.d.ts +12 -7
- 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/webhooks/entities/dispute-transfer-back-retry.entity.d.ts +10 -0
- package/dist/types/webhooks/entities/dispute-transfer-back-retry.entity.js +15 -0
- package/dist/types/webhooks/entities/dispute-transfer-back-retry.entity.js.map +1 -0
- package/dist/types/webhooks/entities/index.d.ts +1 -0
- package/dist/types/webhooks/entities/index.js +18 -0
- package/dist/types/webhooks/entities/index.js.map +1 -0
- package/dist/types/webhooks/index.d.ts +1 -0
- package/dist/types/webhooks/index.js +1 -0
- package/dist/types/webhooks/index.js.map +1 -1
- package/dist/types/webhooks/types/webhooks.enums.d.ts +7 -1
- package/dist/types/webhooks/types/webhooks.enums.js +8 -1
- package/dist/types/webhooks/types/webhooks.enums.js.map +1 -1
- package/package.json +1 -1
- package/dist/types/invoice/dto/reservation-invoice.dto.d.ts +0 -10
- package/dist/types/invoice/dto/reservation-invoice.dto.js +0 -8
- package/dist/types/invoice/dto/reservation-invoice.dto.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cart.dto.js","sourceRoot":"","sources":["../../../../src/types/cart/dto/cart.dto.ts"],"names":[],"mappings":";;;AAKA,uDAAwD;AACxD,8EAAyG;AAWzG,sDAAkF;AAWlF,MAAa,aAAc,SAAQ,4CAAyB;CAQ3D;AARD,sCAQC;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AG;AAAnE,wDAAmE;AAEnE,MAAa,qBAAqB;CAQjC;AARD,sDAQC;AAED,MAAa,yBAAyB;CAIrC;AAJD,8DAIC;AAED,MAAa,2BAA2B;CAIvC;AAJD,kEAIC;AAED,MAAa,mBAAmB;CAQ/B;AARD,kDAQC"}
|
|
@@ -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,EAAE,IAAI,IAAI,kBAAkB,IAAI,YAAY,CAAC,QAAQ,EAAE,CAAC;AACnH,CAAC,CAAC;AAJW,QAAA,0BAA0B,8BAIrC;AAEW,QAAA,gBAAgB,GAAG;IAC/B,aAAa,EAAE,oBAAoB;IACnC,YAAY,EAAE,mBAAmB;IACjC,cAAc,EAAE,gBAAgB;IAChC,iBAAiB,EAAE,wBAAwB;IAC3C,wBAAwB,EAAE,+BAA+B;IACzD,0BAA0B,EAAE,iCAAiC;IAC7D,2BAA2B,EAAE,kCAAkC;IAC/D,sBAAsB,EAAE,6BAA6B;IACrD,gBAAgB,EAAE,uBAAuB;IACzC,wBAAwB,EAAE,+BAA+B;IACzD,oCAAoC,EAAE,2CAA2C;
|
|
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,EAAE,IAAI,IAAI,kBAAkB,IAAI,YAAY,CAAC,QAAQ,EAAE,CAAC;AACnH,CAAC,CAAC;AAJW,QAAA,0BAA0B,8BAIrC;AAEW,QAAA,gBAAgB,GAAG;IAC/B,aAAa,EAAE,oBAAoB;IACnC,YAAY,EAAE,mBAAmB;IACjC,cAAc,EAAE,gBAAgB;IAChC,iBAAiB,EAAE,wBAAwB;IAC3C,wBAAwB,EAAE,+BAA+B;IACzD,0BAA0B,EAAE,iCAAiC;IAC7D,2BAA2B,EAAE,kCAAkC;IAC/D,sBAAsB,EAAE,6BAA6B;IACrD,gBAAgB,EAAE,uBAAuB;IACzC,wBAAwB,EAAE,+BAA+B;IACzD,oCAAoC,EAAE,2CAA2C;IACjF,wBAAwB,EAAE,+BAA+B;IACzD,wBAAwB,EAAE,+BAA+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"}
|
|
@@ -18,6 +18,5 @@ __exportStar(require("./invoice-history.dto"), exports);
|
|
|
18
18
|
__exportStar(require("./invoice.dto"), exports);
|
|
19
19
|
__exportStar(require("./lineItem.dto"), exports);
|
|
20
20
|
__exportStar(require("./organization-invoice.dto"), exports);
|
|
21
|
-
__exportStar(require("./reservation-invoice.dto"), exports);
|
|
22
21
|
__exportStar(require("./share-invoice.dto"), exports);
|
|
23
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/invoice/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,gDAA8B;AAC9B,iDAA+B;AAC/B,6DAA2C;AAC3C,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/invoice/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,gDAA8B;AAC9B,iDAA+B;AAC/B,6DAA2C;AAC3C,sDAAoC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PaginationSearchQuery } from '../../dto/general.dto';
|
|
2
|
+
import { SimpleFacilityDto } from '../../facilities/dto/facilities.dto';
|
|
2
3
|
import { DueDateTypeEnum, PaymentMethodTypeEnum, PaymentStatusEnum } from '../../payment/types/enums/payment.enums';
|
|
3
4
|
import { PlatformsEnum } from '../../services/enums.service';
|
|
4
5
|
export declare enum OrganizationInvoicePaymentStatusInputEnum {
|
|
@@ -44,10 +45,12 @@ export declare class GetOrganizationInvoicesQueryDto extends PaginationSearchQue
|
|
|
44
45
|
dueDateFrom?: Date;
|
|
45
46
|
dueDateTo?: Date;
|
|
46
47
|
orderBy?: OrganizationInvoicesOrderByEnum;
|
|
48
|
+
reservationId?: number;
|
|
47
49
|
}
|
|
48
50
|
export declare class OrganizationInvoiceDto {
|
|
49
51
|
invoiceId: number;
|
|
50
52
|
facilityIds: number[];
|
|
53
|
+
facilities: SimpleFacilityDto[];
|
|
51
54
|
payingUserName?: string;
|
|
52
55
|
payingUserId: number;
|
|
53
56
|
payingUserEmail?: string;
|
|
@@ -65,4 +68,5 @@ export declare class OrganizationInvoiceDto {
|
|
|
65
68
|
platform?: PlatformsEnum;
|
|
66
69
|
creatingUserName?: string;
|
|
67
70
|
creatingUserEmail?: string;
|
|
71
|
+
linkedAccountId?: number | null;
|
|
68
72
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization-invoice.dto.js","sourceRoot":"","sources":["../../../../src/types/invoice/dto/organization-invoice.dto.ts"],"names":[],"mappings":";;;AACA,uDAA8D;
|
|
1
|
+
{"version":3,"file":"organization-invoice.dto.js","sourceRoot":"","sources":["../../../../src/types/invoice/dto/organization-invoice.dto.ts"],"names":[],"mappings":";;;AACA,uDAA8D;AAM9D,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;CA0ClC;AA1CD,wDA0CC"}
|
|
@@ -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;
|
|
@@ -217,11 +206,6 @@ export declare class PaymentSettingsDto {
|
|
|
217
206
|
export declare class StripeAccountSessionDto {
|
|
218
207
|
clientSecret: string;
|
|
219
208
|
}
|
|
220
|
-
export declare class StripeConnectAccountQueryDto {
|
|
221
|
-
userId: number;
|
|
222
|
-
callbackUrl: string;
|
|
223
|
-
stripeReturn?: boolean;
|
|
224
|
-
}
|
|
225
209
|
export declare class StripeAccountStatusDto {
|
|
226
210
|
id?: string;
|
|
227
211
|
status?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdatePaymentStatusDto = exports.StripeAccountStatusDto = exports.
|
|
3
|
+
exports.UpdatePaymentStatusDto = exports.StripeAccountStatusDto = 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;
|
|
@@ -107,9 +104,6 @@ exports.PaymentSettingsDto = PaymentSettingsDto;
|
|
|
107
104
|
class StripeAccountSessionDto {
|
|
108
105
|
}
|
|
109
106
|
exports.StripeAccountSessionDto = StripeAccountSessionDto;
|
|
110
|
-
class StripeConnectAccountQueryDto {
|
|
111
|
-
}
|
|
112
|
-
exports.StripeConnectAccountQueryDto = StripeConnectAccountQueryDto;
|
|
113
107
|
class StripeAccountStatusDto {
|
|
114
108
|
}
|
|
115
109
|
exports.StripeAccountStatusDto = StripeAccountStatusDto;
|
|
@@ -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;AA0BzG,MAAa,aAAa;CAEzB;AAFD,sCAEC;AAED,MAAa,YAAY;CAExB;AAFD,oCAEC;AAED,MAAa,aAAc,SAAQ,YAAY;CAE9C;AAFD,sCAEC;AAED,MAAa,YAAa,SAAQ,sCAAmB;CAEpD;AAFD,oCAEC;AAED,MAAa,mBAAoB,SAAQ,YAAY;CAEpD;AAFD,kDAEC;AAED,MAAa,iCAAkC,SAAQ,YAAY;CAElE;AAFD,8EAEC;AAED,MAAa,YAAY;CAExB;AAFD,oCAEC;AAED,MAAa,YAAa,SAAQ,sCAAmB;CAEpD;AAFD,oCAEC;AAED,MAAa,uBAAwB,SAAQ,YAAY;CAExD;AAFD,0DAEC;AAED,MAAa,qBAAsB,SAAQ,YAAY;CAEtD;AAFD,sDAEC;AAED,MAAa,mBAAmB;CAI/B;AAJD,kDAIC;AAED,MAAa,mBAAmB;CAM/B;AAND,kDAMC;AAED,MAAa,wBAAwB;CAIpC;AAJD,4DAIC;AAED,MAAa,eAAgB,SAAQ,6BAAe;CAsBnD;AAtBD,0CAsBC;AAED,MAAa,YAAa,SAAQ,eAAe;CAQhD;AARD,oCAQC;AAED,MAAa,WAAW;CAMvB;AAND,kCAMC;AAED,MAAa,
|
|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AND,8CAMC;AAED,MAAa,aAAa;CAEzB;AAFD,sCAEC;AAED,MAAa,qBAAsB,SAAQ,YAAY;CAMtD;AAND,sDAMC;AAED,MAAa,0BAA2B,SAAQ,4CAAyB;CAIxE;AAJD,gEAIC;AAED,MAAa,oBAAoB;CAQhC;AARD,oDAQC;AAED,2CAA2C;AAC3C,MAAa,UAAW,SAAQ,kDAA0B;CA4FzD;AA5FD,gCA4FC;AAED,MAAa,gBAAiB,SAAQ,mBAAK;CAgB1C;AAhBD,4CAgBC;AAED,MAAa,kBAAkB;CAI9B;AAJD,gDAIC;AAED,MAAa,uBAAuB;CAEnC;AAFD,0DAEC;AAED,MAAa,sBAAsB;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
|
*/
|
|
@@ -15,7 +24,27 @@ export interface ICreateDisputeTransferBackParams {
|
|
|
15
24
|
chargeId: string;
|
|
16
25
|
disputeId: string;
|
|
17
26
|
amount: number;
|
|
27
|
+
/**
|
|
28
|
+
* Retry generation for the Stripe idempotency key. Omitted for the initial attempt.
|
|
29
|
+
* Each genuine retry passes a higher value so a cached `balance_insufficient` response
|
|
30
|
+
* does not block a later retry, while same-generation replays (concurrency, status-persist
|
|
31
|
+
* failure) still dedupe to a single transfer.
|
|
32
|
+
*/
|
|
33
|
+
retryAttempt?: number;
|
|
18
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* Result of creating a Stripe refund of a charge.
|
|
37
|
+
* `postDisputeTransferId` is present when the charge was funded by a won-dispute Connect transfer.
|
|
38
|
+
*/
|
|
39
|
+
export interface ICreateRefundOfChargeResult {
|
|
40
|
+
postDisputeTransferId?: string;
|
|
41
|
+
sourceTransferId?: string;
|
|
42
|
+
refund: Stripe.Refund;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Charge metadata key for the Connect transfer created when a destination-charge dispute is won.
|
|
46
|
+
*/
|
|
47
|
+
export declare const POST_DISPUTE_TRANSFER_ID_METADATA_KEY = "postDisputeTransferId";
|
|
19
48
|
export interface IStripeMetadata extends Stripe.MetadataParam {
|
|
20
49
|
organizationId: number;
|
|
21
50
|
customerId: number;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.POST_DISPUTE_TRANSFER_ID_METADATA_KEY = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Charge metadata key for the Connect transfer created when a destination-charge dispute is won.
|
|
6
|
+
*/
|
|
7
|
+
exports.POST_DISPUTE_TRANSFER_ID_METADATA_KEY = 'postDisputeTransferId';
|
|
3
8
|
//# sourceMappingURL=stripe-service.interfaces.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stripe-service.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/interfaces/stripe-service.interfaces.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"stripe-service.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/interfaces/stripe-service.interfaces.ts"],"names":[],"mappings":";;;AAiDA;;GAEG;AACU,QAAA,qCAAqC,GAAG,uBAAuB,CAAC"}
|
|
@@ -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"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SelectOptionsDto } from '../../dto/general.dto';
|
|
2
2
|
import { SimpleProductUserDto } from '../../dto/product-user';
|
|
3
|
+
import { SimpleInvoiceSlotDto } from '../../invoice/dto/invoice.dto';
|
|
3
4
|
import { SimpleProductDto } from '../../product-pricing/dto/product.dto';
|
|
4
5
|
import { Product } from '../../product-pricing/entities/product.entity';
|
|
5
6
|
import { ProductPackageLevelEnum } from '../../services/enums.service';
|
|
@@ -22,8 +23,12 @@ export declare class AddonDto extends BaseAddonDto implements IAddon {
|
|
|
22
23
|
product?: Product;
|
|
23
24
|
productUser?: SimpleProductUserDto;
|
|
24
25
|
}
|
|
26
|
+
export declare class ReservationAddonOptionDto extends Product {
|
|
27
|
+
parentFacilityIds: number[];
|
|
28
|
+
}
|
|
25
29
|
export declare class AddAddonsDto {
|
|
26
30
|
addons: AddonDto[];
|
|
31
|
+
facilityId?: number;
|
|
27
32
|
}
|
|
28
33
|
export declare class EditAddonsDto {
|
|
29
34
|
addons: EditAddonDto[];
|
|
@@ -49,7 +54,7 @@ export declare class AddonRowDto {
|
|
|
49
54
|
totalPrice: number;
|
|
50
55
|
approvalStatus: ReservationStatusEnum;
|
|
51
56
|
paymentStatus: ReservationPaymentStatusEnum;
|
|
52
|
-
|
|
57
|
+
invoice?: SimpleInvoiceSlotDto;
|
|
53
58
|
}
|
|
54
59
|
export declare class AddonFilterOptionsDto {
|
|
55
60
|
[AddonFilterOptionsEnum.APPROVAL_STATUS]: SelectOptionsDto[];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SimpleAddonDto = exports.AddonFilterOptionsDto = exports.AddonRowDto = exports.DraftAddonDto = exports.CreateDraftAddonDto = exports.EditAddonDto = exports.EditAddonsDto = exports.AddAddonsDto = exports.AddonDto = exports.BaseAddonDto = exports.SelectAddonDto = void 0;
|
|
3
|
+
exports.SimpleAddonDto = exports.AddonFilterOptionsDto = exports.AddonRowDto = exports.DraftAddonDto = exports.CreateDraftAddonDto = exports.EditAddonDto = exports.EditAddonsDto = exports.AddAddonsDto = exports.ReservationAddonOptionDto = exports.AddonDto = exports.BaseAddonDto = exports.SelectAddonDto = void 0;
|
|
4
|
+
const product_entity_1 = require("../../product-pricing/entities/product.entity");
|
|
4
5
|
const reservation_enums_1 = require("../types/enums/reservation.enums");
|
|
5
6
|
class SelectAddonDto {
|
|
6
7
|
}
|
|
@@ -11,6 +12,9 @@ exports.BaseAddonDto = BaseAddonDto;
|
|
|
11
12
|
class AddonDto extends BaseAddonDto {
|
|
12
13
|
}
|
|
13
14
|
exports.AddonDto = AddonDto;
|
|
15
|
+
class ReservationAddonOptionDto extends product_entity_1.Product {
|
|
16
|
+
}
|
|
17
|
+
exports.ReservationAddonOptionDto = ReservationAddonOptionDto;
|
|
14
18
|
class AddAddonsDto {
|
|
15
19
|
}
|
|
16
20
|
exports.AddAddonsDto = AddAddonsDto;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addon.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/addon.dto.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"addon.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/addon.dto.ts"],"names":[],"mappings":";;;AAKA,kFAAwE;AAExE,wEAK0C;AAG1C,MAAa,cAAc;CAI1B;AAJD,wCAIC;AAED,MAAa,YAAa,SAAQ,cAAc;CAI/C;AAJD,oCAIC;AAED,MAAa,QAAS,SAAQ,YAAY;CAczC;AAdD,4BAcC;AAED,MAAa,yBAA0B,SAAQ,wBAAO;CAErD;AAFD,8DAEC;AAED,MAAa,YAAY;CAIxB;AAJD,oCAIC;AAED,MAAa,aAAa;CAEzB;AAFD,sCAEC;AAED,MAAa,YAAY;CAMxB;AAND,oCAMC;AAED,MAAa,mBAAoB,SAAQ,YAAY;CAEpD;AAFD,kDAEC;AAED,MAAa,aAAc,SAAQ,YAAY;CAM9C;AAND,sCAMC;AAED,MAAa,WAAW;CAgBvB;AAhBD,kCAgBC;AAED,MAAa,qBAAqB;CAIjC;AAJD,sDAIC;AAHC,0CAAsB,CAAC,eAAe,EAEtC,0CAAsB,CAAC,cAAc;AAGvC,MAAa,cAAc;CAQ1B;AARD,wCAQC"}
|
|
@@ -8,7 +8,6 @@ import { PaginationQuery, PaginationSearchQuery, SimpleResourceDto } from '../..
|
|
|
8
8
|
import { Invoice } from '../../entity/Invoice';
|
|
9
9
|
import { FacilityDto } from '../../facilities/dto/facilities.dto';
|
|
10
10
|
import { InvoiceCartDto, SimpleInvoiceDto, UpdateInvoiceDto } from '../../invoice/dto/invoice.dto';
|
|
11
|
-
import { ReservationInvoiceDto } from '../../invoice/dto/reservation-invoice.dto';
|
|
12
11
|
import { OverrideProductsPricingDto } from '../../invoice/types/interfaces/invoice.interfaces';
|
|
13
12
|
import { ByOrganizationIdDto } from '../../organization/dto/organization.dto';
|
|
14
13
|
import { PaymentMethodToFundLeftDto } from '../../payment/dto/payment-method.dto';
|
|
@@ -90,7 +89,7 @@ export declare class SingleReservationDto extends ReservationDto {
|
|
|
90
89
|
organizationId: number;
|
|
91
90
|
customerId: number;
|
|
92
91
|
facilityId?: number;
|
|
93
|
-
|
|
92
|
+
invoicedAmount?: number | null;
|
|
94
93
|
payments?: SimplePaymentDto[];
|
|
95
94
|
applications?: AnswerTemplateDataDto[];
|
|
96
95
|
sport?: number;
|
|
@@ -155,14 +154,11 @@ export declare class SingleReservationIncludesDto {
|
|
|
155
154
|
includeCustomer?: boolean;
|
|
156
155
|
includeAddons?: boolean;
|
|
157
156
|
includeSeries?: boolean;
|
|
158
|
-
|
|
157
|
+
includeInvoiceAmount?: boolean;
|
|
159
158
|
includePayments?: boolean;
|
|
160
159
|
buildTree?: boolean;
|
|
161
160
|
includeApplications?: boolean;
|
|
162
161
|
}
|
|
163
|
-
export declare class GetReservationAddonsOptionsQueryDto extends PaginationSearchQuery {
|
|
164
|
-
facilitiesIds?: number[];
|
|
165
|
-
}
|
|
166
162
|
export declare class FindAddonsQueryParamsDto extends PaginationSearchQuery<AddonOrderByEnum> {
|
|
167
163
|
approvalStatus?: ReservationStatusEnum[];
|
|
168
164
|
paymentStatus?: ReservationPaymentStatusEnum[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetDraftReservationOptionsDto = exports.GetDraftReservationAddonsQueryDto = exports.DraftSlotsFilterResultDto = exports.SimpleDraftSegmentDto = exports.ByRentalProductId = exports.ByDraftReservationIdDto = exports.GetDraftReservationSlotsFiltersDto = exports.AddSegmentsDto = exports.InvoiceReservationItemsDto = exports.ChargeReservationResultDto = exports.UpdateCustomerSlotsColorsDto = exports.UpdateReservationSlotsColorsDto = exports.RemoveAddonsFinancialDataDto = exports.RemoveSlotsFinancialDataDto = exports.EditReservationDetailsDto = exports.EditItemsRefundMetaDto = exports.FindBySlotDto = exports.UpdateReservationStatusDto = exports.FindByAddonIdsDto = exports.FindBySlotIdsDto = exports.DuplicateSlotDto = exports.GetFilterOptionsDto = exports.FindByReservationDto = exports.getSlotFQueryParamsDto = exports.IncludeConflictsOptionsDto = exports.FindSlotsByFacilityIdFiltersDto = exports.FindReservationsByUserIdFiltersDto = exports.ReservationTableOptionsDto = exports.FindReservationsByOrganizationIdFiltersDto = exports.BookingDto = exports.BookingData = exports.UpdateReservationPriceDto = exports.CategoryPricesDto = exports.FindSlotsQueryParamsDto = exports.SlotsFilterDto = exports.FindAddonsQueryParamsDto = exports.
|
|
4
|
-
exports.EditReservationAddonsDto = exports.EditReservationItemsResultDto = exports.EditSlotsDto = exports.EditSlotsFinancialDetailsDto = exports.EditItemsRefundMetadataDto = exports.ReservationItemLineDto = exports.DuplicateReservationItemsDto = exports.DuplicateReservationDto = exports.PaginatedSlotsSharedDto = exports.ProblematicProductDto = exports.CreateReservationAddonsDto = exports.ReservationAddonsDto = exports.SegmentsAddonsGroupDto = exports.UpdateDraftSlotsDto = exports.GenerateReservationDto = exports.ByDraftSlotIdDto = exports.DraftIdsDto =
|
|
3
|
+
exports.GetDraftSlotsOptions = exports.GetDraftReservationOptionsDto = exports.GetDraftReservationAddonsQueryDto = exports.DraftSlotsFilterResultDto = exports.SimpleDraftSegmentDto = exports.ByRentalProductId = exports.ByDraftReservationIdDto = exports.GetDraftReservationSlotsFiltersDto = exports.AddSegmentsDto = exports.InvoiceReservationItemsDto = exports.ChargeReservationResultDto = exports.UpdateCustomerSlotsColorsDto = exports.UpdateReservationSlotsColorsDto = exports.RemoveAddonsFinancialDataDto = exports.RemoveSlotsFinancialDataDto = exports.EditReservationDetailsDto = exports.EditItemsRefundMetaDto = exports.FindBySlotDto = exports.UpdateReservationStatusDto = exports.FindByAddonIdsDto = exports.FindBySlotIdsDto = exports.DuplicateSlotDto = exports.GetFilterOptionsDto = exports.FindByReservationDto = exports.getSlotFQueryParamsDto = exports.IncludeConflictsOptionsDto = exports.FindSlotsByFacilityIdFiltersDto = exports.FindReservationsByUserIdFiltersDto = exports.ReservationTableOptionsDto = exports.FindReservationsByOrganizationIdFiltersDto = exports.BookingDto = exports.BookingData = exports.UpdateReservationPriceDto = exports.CategoryPricesDto = exports.FindSlotsQueryParamsDto = exports.SlotsFilterDto = exports.FindAddonsQueryParamsDto = exports.SingleReservationIncludesDto = exports.CreateReservationCartDto = exports.DraftReservationDto = exports.SimpleDraftReservationDto = exports.CreateDraftReservationDto = exports.SegmentsAddonsDto = exports.CreateSegmentsAddonsDto = exports.BaseReservationItemLineItemDataDto = exports.SingleReservationDto = exports.ReservationDto = exports.DuplicatedDetailsDto = exports.SimpleReservationDto = exports.ProductPricesDto = void 0;
|
|
4
|
+
exports.EditReservationAddonsDto = exports.EditReservationItemsResultDto = exports.EditSlotsDto = exports.EditSlotsFinancialDetailsDto = exports.EditItemsRefundMetadataDto = exports.ReservationItemLineDto = exports.DuplicateReservationItemsDto = exports.DuplicateReservationDto = exports.PaginatedSlotsSharedDto = exports.ProblematicProductDto = exports.CreateReservationAddonsDto = exports.ReservationAddonsDto = exports.SegmentsAddonsGroupDto = exports.UpdateDraftSlotsDto = exports.GenerateReservationDto = exports.ByDraftSlotIdDto = exports.DraftIdsDto = void 0;
|
|
5
5
|
const general_dto_1 = require("../../dto/general.dto");
|
|
6
6
|
const invoice_dto_1 = require("../../invoice/dto/invoice.dto");
|
|
7
7
|
const organization_dto_1 = require("../../organization/dto/organization.dto");
|
|
@@ -57,9 +57,6 @@ exports.CreateReservationCartDto = CreateReservationCartDto;
|
|
|
57
57
|
class SingleReservationIncludesDto {
|
|
58
58
|
}
|
|
59
59
|
exports.SingleReservationIncludesDto = SingleReservationIncludesDto;
|
|
60
|
-
class GetReservationAddonsOptionsQueryDto extends general_dto_1.PaginationSearchQuery {
|
|
61
|
-
}
|
|
62
|
-
exports.GetReservationAddonsOptionsQueryDto = GetReservationAddonsOptionsQueryDto;
|
|
63
60
|
class FindAddonsQueryParamsDto extends general_dto_1.PaginationSearchQuery {
|
|
64
61
|
}
|
|
65
62
|
exports.FindAddonsQueryParamsDto = FindAddonsQueryParamsDto;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reservation.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/reservation.dto.ts"],"names":[],"mappings":";;;;AAQA,uDAAkG;
|
|
1
|
+
{"version":3,"file":"reservation.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/reservation.dto.ts"],"names":[],"mappings":";;;;AAQA,uDAAkG;AAGlG,+DAAmG;AAEnG,8EAA8E;AAS9E,kEAAwF;AAiDxF,2CAA0F;AAK1F,MAAM,uBAAuB,GAAG,IAAI,CAAC;AACrC,MAAM,gBAAgB,GAAG,CAAC,CAAC;AAC3B,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAE7B,MAAa,gBAAgB;CAc5B;AAdD,4CAcC;AAED,MAAM,kBAAkB;CAgCvB;AAED,MAAa,oBAAqB,SAAQ,kBAAkB;CAM3D;AAND,oDAMC;AAED,MAAa,oBAAoB;CAQhC;AARD,oDAQC;AAED,MAAa,cAAe,SAAQ,oBAAoB;CA6BvD;AA7BD,wCA6BC;AAED,MAAa,oBAAqB,SAAQ,cAAc;CAkBvD;AAlBD,oDAkBC;AAED,MAAa,kCAAkC;CAc9C;AAdD,gFAcC;AAED,MAAM,oBAAqB,SAAQ,kCAAkC;CAEpE;AAED,MAAM,qBAAsB,SAAQ,kCAAkC;CAErE;AAED,MAAM,0BAA0B;CAM/B;AAED,MAAa,uBAAwB,SAAQ,0BAA0B;CAEtE;AAFD,0DAEC;AAED,MAAa,iBAAkB,SAAQ,uBAAuB;CAE7D;AAFD,8CAEC;AAED,MAAa,yBAA0B,SAAQ,kBAAkB;CAMhE;AAND,8DAMC;AAED,MAAa,yBAA0B,SAAQ,yBAAyB;CAIvE;AAJD,8DAIC;AAED,MAAa,mBAAoB,SAAQ,yBAAyB;CAsBjE;AAtBD,kDAsBC;AAED,MAAa,wBAAwB;CAUpC;AAVD,4DAUC;AAED,MAAa,4BAA4B;CAcxC;AAdD,oEAcC;AAED,MAAa,wBAAyB,SAAQ,mCAAuC;CAMpF;AAND,4DAMC;AAED,MAAa,cAAc;CAsB1B;AA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wBAAyB,SAAQ,yBAAa;CAE1D;AAFD,4DAEC"}
|
|
@@ -180,7 +180,6 @@ export interface ICalendarSlotCard extends Slot {
|
|
|
180
180
|
slotIndexInSeries?: number;
|
|
181
181
|
totalSlotsInSeries?: number;
|
|
182
182
|
}
|
|
183
|
-
type IPartialInvoice = Pick<Invoice, 'id' | 'createdAt' | 'price' | 'paymentStatus' | 'paidAmount' | 'payingUserId'>;
|
|
184
183
|
export interface IPartialPayment {
|
|
185
184
|
id: number;
|
|
186
185
|
ccBrand?: string;
|
|
@@ -192,11 +191,18 @@ export interface IPartialPayment {
|
|
|
192
191
|
status: FuturePaymentStatusEnum;
|
|
193
192
|
token?: string;
|
|
194
193
|
}
|
|
195
|
-
|
|
196
|
-
|
|
194
|
+
/**
|
|
195
|
+
* Addon product returned by addons-options, plus the reservation slot facilities whose rental parents package it.
|
|
196
|
+
*/
|
|
197
|
+
export interface IReservationAddonOption extends Product {
|
|
198
|
+
parentFacilityIds: number[];
|
|
197
199
|
}
|
|
198
|
-
|
|
199
|
-
|
|
200
|
+
/**
|
|
201
|
+
* Distinct rental product from an active reservation slot, with the facilities of those slots.
|
|
202
|
+
*/
|
|
203
|
+
export interface IReservationSlotParentFacility {
|
|
204
|
+
productId: number;
|
|
205
|
+
facilityIds: number[];
|
|
200
206
|
}
|
|
201
207
|
export interface ISingleReservation {
|
|
202
208
|
id: number;
|
|
@@ -208,11 +214,11 @@ export interface ISingleReservation {
|
|
|
208
214
|
approvalStatus: ReservationStatusEnum;
|
|
209
215
|
customer?: Customer;
|
|
210
216
|
description: string;
|
|
211
|
-
invoices?: IInvoice[];
|
|
212
217
|
name: string;
|
|
213
218
|
payments?: IPartialPayment[];
|
|
214
219
|
paymentStatus: PaymentStatusEnum;
|
|
215
220
|
price?: number;
|
|
221
|
+
invoicedAmount?: number | null;
|
|
216
222
|
privacySetting: PrivacySettingsEnum;
|
|
217
223
|
privateNotes: string;
|
|
218
224
|
publicNotes: string;
|
|
@@ -500,4 +506,3 @@ export interface IGenerateDraftReservationOptions {
|
|
|
500
506
|
reservationId?: string;
|
|
501
507
|
answers?: QuestionAnswersDto[];
|
|
502
508
|
}
|
|
503
|
-
export {};
|