@bondsports/types 2.4.104-a-2 → 2.4.104-a-4
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/types/consts/cart.consts.d.ts +15 -12
- package/dist/types/cart/types/consts/cart.consts.js +3 -0
- package/dist/types/cart/types/consts/cart.consts.js.map +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 +5 -0
- package/dist/types/invoice/types/interfaces/invoice.interfaces.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/payout-accounts/types/interfaces/payout-account.interfaces.d.ts +3 -5
- package/dist/types/payout-accounts/types/interfaces/payout-account.interfaces.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,16 +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:
|
|
15
|
-
|
|
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";
|
|
16
19
|
};
|
|
@@ -18,6 +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',
|
|
21
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',
|
|
22
25
|
};
|
|
23
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;IACjF,wBAAwB,EAAE,+BAA+B;
|
|
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"}
|
|
@@ -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;CA4B1G;AA5BD,0EA4BC;AAED,MAAa,sBAAsB;
|
|
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"}
|
|
@@ -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,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
|
/**
|
|
@@ -49,14 +50,11 @@ export interface IPayoutAccountFacilityLink {
|
|
|
49
50
|
* One grid row per Connect account, with facility ids aggregated across PayoutAccount rows.
|
|
50
51
|
* All Facilities and unassigned rows expose `facilityIds: []` / `facilities: []` so FE
|
|
51
52
|
* `canAccessAll` treats them as global-only for editing. `hasOrgDefault` distinguishes the
|
|
52
|
-
* sentinel from unassigned. `facilities` carries id+name for display
|
|
53
|
+
* sentinel from unassigned. `facilities` carries id+name for display.
|
|
53
54
|
*/
|
|
54
55
|
export interface IPayoutAccountGridRow extends ILinkedAccountsGridRow {
|
|
56
|
+
facilities: SimpleFacilityDto[];
|
|
55
57
|
facilityIds: number[];
|
|
56
|
-
facilities: {
|
|
57
|
-
id: number;
|
|
58
|
-
name: string;
|
|
59
|
-
}[];
|
|
60
58
|
hasOrgDefault: boolean;
|
|
61
59
|
}
|
|
62
60
|
/**
|
|
@@ -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"}
|