@bondsports/types 2.4.99-a-2 → 2.4.99-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.
Files changed (40) hide show
  1. package/dist/tsconfig.build.tsbuildinfo +1 -1
  2. package/dist/types/cart/types/interfaces/cart.interfaces.d.ts +8 -0
  3. package/dist/types/index.d.ts +1 -0
  4. package/dist/types/index.js +1 -0
  5. package/dist/types/index.js.map +1 -1
  6. package/dist/types/payment/dto/payment.dto.d.ts +1 -0
  7. package/dist/types/payment/dto/payment.dto.js.map +1 -1
  8. package/dist/types/payment/dto/refund.dto.d.ts +12 -4
  9. package/dist/types/payment/dto/refund.dto.js +8 -1
  10. package/dist/types/payment/dto/refund.dto.js.map +1 -1
  11. package/dist/types/payment/dto/void.dto.d.ts +2 -1
  12. package/dist/types/payment/dto/void.dto.js.map +1 -1
  13. package/dist/types/payment/types/enums/refund.enums.d.ts +0 -1
  14. package/dist/types/payment/types/enums/refund.enums.js +0 -1
  15. package/dist/types/payment/types/enums/refund.enums.js.map +1 -1
  16. package/dist/types/payment/types/interfaces/payment.interfaces.d.ts +2 -3
  17. package/dist/types/payment/types/interfaces/refund.interfaces.d.ts +21 -8
  18. package/dist/types/payment/types/interfaces/refund.interfaces.js.map +1 -1
  19. package/dist/types/payment/types/interfaces/void.interfaces.d.ts +2 -2
  20. package/dist/types/payout-accounts/entities/index.d.ts +1 -0
  21. package/dist/types/payout-accounts/entities/index.js +18 -0
  22. package/dist/types/payout-accounts/entities/index.js.map +1 -0
  23. package/dist/types/payout-accounts/entities/payout-account.entity.d.ts +10 -0
  24. package/dist/types/payout-accounts/entities/payout-account.entity.js +8 -0
  25. package/dist/types/payout-accounts/entities/payout-account.entity.js.map +1 -0
  26. package/dist/types/payout-accounts/index.d.ts +2 -0
  27. package/dist/types/payout-accounts/index.js +19 -0
  28. package/dist/types/payout-accounts/index.js.map +1 -0
  29. package/dist/types/payout-accounts/types/index.d.ts +1 -0
  30. package/dist/types/payout-accounts/types/index.js +18 -0
  31. package/dist/types/payout-accounts/types/index.js.map +1 -0
  32. package/dist/types/payout-accounts/types/interfaces/index.d.ts +1 -0
  33. package/dist/types/payout-accounts/types/interfaces/index.js +18 -0
  34. package/dist/types/payout-accounts/types/interfaces/index.js.map +1 -0
  35. package/dist/types/payout-accounts/types/interfaces/payout-account.interfaces.d.ts +12 -0
  36. package/dist/types/payout-accounts/types/interfaces/payout-account.interfaces.js +3 -0
  37. package/dist/types/payout-accounts/types/interfaces/payout-account.interfaces.js.map +1 -0
  38. package/dist/types/reservations/entities/addon.entity.d.ts +2 -0
  39. package/dist/types/reservations/entities/addon.entity.js.map +1 -1
  40. package/package.json +1 -1
@@ -104,6 +104,14 @@ export interface IMergeCartItemsResult extends IMergedCartItemsResult {
104
104
  export interface ICreateCartResult extends IMergedCartItemsResult {
105
105
  cart: Cart;
106
106
  }
107
+ export interface IUpdateCartPricesResult {
108
+ cart: Cart;
109
+ /**
110
+ * Exact-unit-price split siblings keyed by the original cart item key (`unique` / getUniqueKey).
111
+ * Only entries that were cloned into two rows; in-place single-row corrections are omitted.
112
+ */
113
+ splitAddonCartItemsMap: Map<string, CartItem[]>;
114
+ }
107
115
  export interface IUpdateProductPrice {
108
116
  priceId: number;
109
117
  productId: number;
@@ -40,6 +40,7 @@ export * from './online-booking';
40
40
  export * from './online-rentals';
41
41
  export * from './organization';
42
42
  export * from './payment';
43
+ export * from './payout-accounts';
43
44
  export * from './pricing';
44
45
  export * from './product-pricing';
45
46
  export * from './programs';
@@ -56,6 +56,7 @@ __exportStar(require("./online-booking"), exports);
56
56
  __exportStar(require("./online-rentals"), exports);
57
57
  __exportStar(require("./organization"), exports);
58
58
  __exportStar(require("./payment"), exports);
59
+ __exportStar(require("./payout-accounts"), exports);
59
60
  __exportStar(require("./pricing"), exports);
60
61
  __exportStar(require("./product-pricing"), exports);
61
62
  __exportStar(require("./programs"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,+CAA6B;AAC7B,2CAAyB;AACzB,4CAA0B;AAC1B,+CAA6B;AAC7B,yCAAuB;AACvB,yCAAuB;AACvB,4DAA0C;AAC1C,8CAA4B;AAC5B,oDAAkC;AAClC,wCAAsB;AACtB,8CAA4B;AAC5B,sDAAoC;AACpC,2CAAyB;AACzB,2CAAyB;AACzB,2CAAyB;AACzB,+CAA6B;AAC7B,kDAAgC;AAChC,wCAAsB;AACtB,4CAA0B;AAC1B,4CAA0B;AAC1B,wDAAsC;AACtC,6CAA2B;AAC3B,uDAAqC;AACrC,2CAAyB;AACzB,iDAA+B;AAC/B,gDAA8B;AAC9B,4CAA0B;AAC1B,4CAA0B;AAC1B,2CAAyB;AACzB,qDAAmC;AACnC,sDAAoC;AACpC,0CAAwB;AACxB,0CAAwB;AACxB,+CAA6B;AAC7B,mDAAiC;AACjC,0CAAwB;AACxB,kDAAgC;AAChC,mDAAiC;AACjC,mDAAiC;AACjC,iDAA+B;AAC/B,4CAA0B;AAC1B,4CAA0B;AAC1B,oDAAkC;AAClC,6CAA2B;AAC3B,qDAAmC;AACnC,+CAA6B;AAC7B,+CAA6B;AAC7B,6CAA2B;AAC3B,mDAAiC;AACjC,0CAAwB;AACxB,iDAA+B;AAC/B,iDAA+B;AAC/B,sDAAoC;AACpC,8CAA4B;AAC5B,0CAAwB;AACxB,6CAA2B;AAC3B,yDAAuC;AACvC,2CAAyB;AACzB,0DAAwC;AACxC,6CAA2B;AAC3B,0CAAwB;AACxB,0CAAwB;AACxB,8CAA4B;AAC5B,6CAA2B;AAC3B,uDAAqC;AACrC,yCAAuB;AACvB,oDAAkC;AAClC,wDAAsC;AACtC,yCAAuB;AACvB,4CAA0B;AAC1B,6CAA2B;AAC3B,4CAA0B;AAC1B,6CAA2B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,+CAA6B;AAC7B,2CAAyB;AACzB,4CAA0B;AAC1B,+CAA6B;AAC7B,yCAAuB;AACvB,yCAAuB;AACvB,4DAA0C;AAC1C,8CAA4B;AAC5B,oDAAkC;AAClC,wCAAsB;AACtB,8CAA4B;AAC5B,sDAAoC;AACpC,2CAAyB;AACzB,2CAAyB;AACzB,2CAAyB;AACzB,+CAA6B;AAC7B,kDAAgC;AAChC,wCAAsB;AACtB,4CAA0B;AAC1B,4CAA0B;AAC1B,wDAAsC;AACtC,6CAA2B;AAC3B,uDAAqC;AACrC,2CAAyB;AACzB,iDAA+B;AAC/B,gDAA8B;AAC9B,4CAA0B;AAC1B,4CAA0B;AAC1B,2CAAyB;AACzB,qDAAmC;AACnC,sDAAoC;AACpC,0CAAwB;AACxB,0CAAwB;AACxB,+CAA6B;AAC7B,mDAAiC;AACjC,0CAAwB;AACxB,kDAAgC;AAChC,mDAAiC;AACjC,mDAAiC;AACjC,iDAA+B;AAC/B,4CAA0B;AAC1B,oDAAkC;AAClC,4CAA0B;AAC1B,oDAAkC;AAClC,6CAA2B;AAC3B,qDAAmC;AACnC,+CAA6B;AAC7B,+CAA6B;AAC7B,6CAA2B;AAC3B,mDAAiC;AACjC,0CAAwB;AACxB,iDAA+B;AAC/B,iDAA+B;AAC/B,sDAAoC;AACpC,8CAA4B;AAC5B,0CAAwB;AACxB,6CAA2B;AAC3B,yDAAuC;AACvC,2CAAyB;AACzB,0DAAwC;AACxC,6CAA2B;AAC3B,0CAAwB;AACxB,0CAAwB;AACxB,8CAA4B;AAC5B,6CAA2B;AAC3B,uDAAqC;AACrC,yCAAuB;AACvB,oDAAkC;AAClC,wDAAsC;AACtC,yCAAuB;AACvB,4CAA0B;AAC1B,6CAA2B;AAC3B,4CAA0B;AAC1B,6CAA2B"}
@@ -195,6 +195,7 @@ export declare class PaymentDto extends BasePaymentMethodFieldsDto {
195
195
  installments?: FutureInstallment[];
196
196
  totalFeesAmount?: number;
197
197
  tipAmount?: number;
198
+ facilityIds?: number[];
198
199
  lineItems: LineItems[];
199
200
  invoiceToPayments: InvoiceToPayment[];
200
201
  stripePaymentMethodId?: string;
@@ -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,gBAAgB;CAkB5B;AAlBD,4CAkBC;AAED,MAAa,cAAc;CAI1B;AAJD,wCAIC;AAED,MAAa,cAAc;CAI1B;AAJD,wCAIC;AAED,MAAa,0BAA0B;CAItC;AAJD,gEAIC;AAED,MAAa,kBAAkB;CAM9B;AAND,gDAMC;AAED,MAAa,eAAgB,SAAQ,YAAY;CA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ment.enums';
2
2
  import { RefundTypeEnum } from '../types/enums/refund.enums';
3
+ import type { IRefund } from '../types/interfaces/refund.interfaces';
3
4
  import { RevertMetaDto } from './payment.dto';
5
+ import { VoidLineItemDto } from './void.dto';
4
6
  export declare class RevertPaymentsDto {
5
7
  invoiceId: number;
6
8
  paymentsIds: number[];
@@ -22,7 +24,6 @@ export declare class PaymentMethodDto {
22
24
  }
23
25
  export declare class RefundBaseDto {
24
26
  invoiceId: number;
25
- lineItems?: RefundAmountDto[];
26
27
  fees?: RefundAmountDto[];
27
28
  refundLineItemAmountDict?: {
28
29
  [id: number]: number;
@@ -31,12 +32,19 @@ export declare class RefundBaseDto {
31
32
  reasonId: number;
32
33
  note?: string;
33
34
  shiftId?: number;
34
- meta?: RevertMetaDto;
35
35
  }
36
- export declare class RefundDto extends RefundBaseDto {
37
- refundType: RefundTypeEnum;
36
+ export declare class RefundDto extends RefundBaseDto implements IRefund {
37
+ lineItems?: RefundAmountDto[];
38
38
  }
39
39
  /**
40
40
  */
41
+ export declare class RefundAndVoidLineItemDto extends VoidLineItemDto {
42
+ refundAmount?: number;
43
+ }
44
+ /**
45
+ * Each line item may refund less than it voids; entries with no `refundAmount` are voided only.
46
+ */
41
47
  export declare class RefundAndVoidDto extends RefundBaseDto {
48
+ lineItems: RefundAndVoidLineItemDto[];
49
+ meta?: RevertMetaDto;
42
50
  }
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RefundAndVoidDto = exports.RefundDto = exports.RefundBaseDto = exports.PaymentMethodDto = exports.RefundAmountDto = exports.RevertPaymentsDto = void 0;
3
+ exports.RefundAndVoidDto = exports.RefundAndVoidLineItemDto = exports.RefundDto = exports.RefundBaseDto = exports.PaymentMethodDto = exports.RefundAmountDto = exports.RevertPaymentsDto = void 0;
4
+ const void_dto_1 = require("./void.dto");
4
5
  class RevertPaymentsDto {
5
6
  }
6
7
  exports.RevertPaymentsDto = RevertPaymentsDto;
@@ -18,6 +19,12 @@ class RefundDto extends RefundBaseDto {
18
19
  exports.RefundDto = RefundDto;
19
20
  /**
20
21
  */
22
+ class RefundAndVoidLineItemDto extends void_dto_1.VoidLineItemDto {
23
+ }
24
+ exports.RefundAndVoidLineItemDto = RefundAndVoidLineItemDto;
25
+ /**
26
+ * Each line item may refund less than it voids; entries with no `refundAmount` are voided only.
27
+ */
21
28
  class RefundAndVoidDto extends RefundBaseDto {
22
29
  }
23
30
  exports.RefundAndVoidDto = RefundAndVoidDto;
@@ -1 +1 @@
1
- {"version":3,"file":"refund.dto.js","sourceRoot":"","sources":["../../../../src/types/payment/dto/refund.dto.ts"],"names":[],"mappings":";;;AAMA,MAAa,iBAAiB;CAY7B;AAZD,8CAYC;AAED,MAAa,eAAe;CAM3B;AAND,0CAMC;AAED,MAAa,gBAAgB;CAQ5B;AARD,4CAQC;AAED,MAAa,aAAa;CAkBzB;AAlBD,sCAkBC;AAED,MAAa,SAAU,SAAQ,aAAa;CAE3C;AAFD,8BAEC;AAED;GACG;AACH,MAAa,gBAAiB,SAAQ,aAAa;CAAG;AAAtD,4CAAsD"}
1
+ {"version":3,"file":"refund.dto.js","sourceRoot":"","sources":["../../../../src/types/payment/dto/refund.dto.ts"],"names":[],"mappings":";;;AAMA,yCAA6C;AAE7C,MAAa,iBAAiB;CAY7B;AAZD,8CAYC;AAED,MAAa,eAAe;CAM3B;AAND,0CAMC;AAED,MAAa,gBAAgB;CAQ5B;AARD,4CAQC;AAED,MAAa,aAAa;CAczB;AAdD,sCAcC;AAED,MAAa,SAAU,SAAQ,aAAa;CAE3C;AAFD,8BAEC;AAED;GACG;AACH,MAAa,wBAAyB,SAAQ,0BAAe;CAE5D;AAFD,4DAEC;AAED;;GAEG;AACH,MAAa,gBAAiB,SAAQ,aAAa;CAIlD;AAJD,4CAIC"}
@@ -1,7 +1,8 @@
1
1
  import { IVoid, IVoidLineItem } from '../types/interfaces/void.interfaces';
2
2
  import { CreateNoteDto, RevertMetaDto } from './payment.dto';
3
3
  export declare class VoidLineItemDto implements IVoidLineItem {
4
- id: number;
4
+ id?: number;
5
+ groupId?: string;
5
6
  quantity?: number;
6
7
  amount?: number;
7
8
  isEdit?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"void.dto.js","sourceRoot":"","sources":["../../../../src/types/payment/dto/void.dto.ts"],"names":[],"mappings":";;;AAKA,MAAa,eAAe;CAQ3B;AARD,0CAQC;AAED,MAAa,OAAO;CAUnB;AAVD,0BAUC"}
1
+ {"version":3,"file":"void.dto.js","sourceRoot":"","sources":["../../../../src/types/payment/dto/void.dto.ts"],"names":[],"mappings":";;;AAKA,MAAa,eAAe;CAU3B;AAVD,0CAUC;AAED,MAAa,OAAO;CAUnB;AAVD,0BAUC"}
@@ -1,6 +1,5 @@
1
1
  export declare enum RefundTypeEnum {
2
2
  LEAVE_BALANCE = "leave_balance",
3
- REDUCE_BALANCE = "reduce_balance",
4
3
  FAILED_PAYMENT = "failed_payment",
5
4
  CHARGEBACK = "chargeback"
6
5
  }
@@ -4,7 +4,6 @@ exports.RefundItemTypeEnum = exports.RefundBuilderErrorCodesEnum = exports.Refun
4
4
  var RefundTypeEnum;
5
5
  (function (RefundTypeEnum) {
6
6
  RefundTypeEnum["LEAVE_BALANCE"] = "leave_balance";
7
- RefundTypeEnum["REDUCE_BALANCE"] = "reduce_balance";
8
7
  RefundTypeEnum["FAILED_PAYMENT"] = "failed_payment";
9
8
  RefundTypeEnum["CHARGEBACK"] = "chargeback";
10
9
  })(RefundTypeEnum = exports.RefundTypeEnum || (exports.RefundTypeEnum = {}));
@@ -1 +1 @@
1
- {"version":3,"file":"refund.enums.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/enums/refund.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAKX;AALD,WAAY,cAAc;IACzB,iDAA+B,CAAA;IAC/B,mDAAiC,CAAA;IACjC,mDAAiC,CAAA;IACjC,2CAAyB,CAAA;AAC1B,CAAC,EALW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAKzB;AAED,IAAY,2BAUX;AAVD,WAAY,2BAA2B;IACtC,6FAA8D,CAAA;IAC9D,+FAAgE,CAAA;IAChE,2GAA4E,CAAA;IAC5E,yFAA0D,CAAA;IAC1D,qHAAsF,CAAA;IACtF,+GAAgF,CAAA;IAChF,mHAAoF,CAAA;IACpF,2HAA4F,CAAA;IAC5F,mGAAoE,CAAA;AACrE,CAAC,EAVW,2BAA2B,GAA3B,mCAA2B,KAA3B,mCAA2B,QAUtC;AAED,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC7B,4CAAsB,CAAA;IACtB,iCAAW,CAAA;AACZ,CAAC,EAHW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAG7B"}
1
+ {"version":3,"file":"refund.enums.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/enums/refund.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAIX;AAJD,WAAY,cAAc;IACzB,iDAA+B,CAAA;IAC/B,mDAAiC,CAAA;IACjC,2CAAyB,CAAA;AAC1B,CAAC,EAJW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAIzB;AAED,IAAY,2BAUX;AAVD,WAAY,2BAA2B;IACtC,6FAA8D,CAAA;IAC9D,+FAAgE,CAAA;IAChE,2GAA4E,CAAA;IAC5E,yFAA0D,CAAA;IAC1D,qHAAsF,CAAA;IACtF,+GAAgF,CAAA;IAChF,mHAAoF,CAAA;IACpF,2HAA4F,CAAA;IAC5F,mGAAoE,CAAA;AACrE,CAAC,EAVW,2BAA2B,GAA3B,mCAA2B,KAA3B,mCAA2B,QAUtC;AAED,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC7B,4CAAsB,CAAA;IACtB,iCAAW,CAAA;AACZ,CAAC,EAHW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAG7B"}
@@ -6,10 +6,10 @@ import { ReservationPaymentStatusEnum, ReservationStatusEnum } from '../../../re
6
6
  import { PlatformsEnum } from '../../../services/enums.service';
7
7
  import { LockModeEnum } from '../../../util/models/types/orm.types';
8
8
  import { CreateNoteDto } from '../../dto/payment.dto';
9
- import { RefundDto } from '../../dto/refund.dto';
10
9
  import { Payment } from '../../entities/Payment';
11
10
  import { PaymentMethodTypeEnum, SubPaymentMethodTypeEnum } from '../enums/payment.enums';
12
11
  import { RefundBuilderErrorCodesEnum, RefundTypeEnum } from '../enums/refund.enums';
12
+ import type { IRefundOperation } from './refund.interfaces';
13
13
  import { ISaveCardTerminalInput } from './user-payment-method.interfaces';
14
14
  export declare class PaymentResult {
15
15
  paymentMethodId: string;
@@ -168,12 +168,11 @@ export interface IBuildRefundDtoByPaymentAllocationInput {
168
168
  refundType: RefundTypeEnum;
169
169
  }
170
170
  /**
171
- * Returns a plain RefundDto on success or an error-code object on validation failure.
172
171
  * Error codes are used instead of exceptions because these are expected business
173
172
  * validation outcomes (not exceptional conditions), and the caller maps them to
174
173
  * domain-specific responses.
175
174
  */
176
- export type TBuildRefundDtoByPaymentAllocationResult = RefundDto | {
175
+ export type TBuildRefundDtoByPaymentAllocationResult = IRefundOperation | {
177
176
  errorCode: RefundBuilderErrorCodesEnum;
178
177
  };
179
178
  export interface IHandleDisputeClosedLostParams {
@@ -1,9 +1,26 @@
1
1
  import { Invoice } from '../../../entity/Invoice';
2
- import { LineItems } from '../../../entity/LineItems';
3
- import { PaymentFee } from '../../../fee/entities/PaymentFee';
4
- import { RefundAmountDto } from '../../dto/refund.dto';
5
- import { RefundBuilderErrorCodesEnum, RefundItemTypeEnum } from '../enums/refund.enums';
2
+ import { PaymentMethodDto, RefundAmountDto } from '../../dto/refund.dto';
3
+ import { RefundBuilderErrorCodesEnum, RefundItemTypeEnum, RefundTypeEnum } from '../enums/refund.enums';
6
4
  import { PaymentsResults } from './payment.interfaces';
5
+ /**
6
+ */
7
+ export interface IRefund {
8
+ invoiceId: number;
9
+ reasonId: number;
10
+ shiftId?: number;
11
+ fees?: RefundAmountDto[];
12
+ lineItems?: RefundAmountDto[];
13
+ note?: string;
14
+ refunds: PaymentMethodDto[];
15
+ }
16
+ /**
17
+ */
18
+ export interface IRefundOperation extends IRefund {
19
+ refundLineItemAmountDict?: {
20
+ [id: number]: number;
21
+ };
22
+ refundType?: RefundTypeEnum;
23
+ }
7
24
  export declare class RefundResult extends PaymentsResults {
8
25
  successfulLineItems: RefundAmountDto[];
9
26
  failedLineItems: RefundAmountDto[];
@@ -18,10 +35,6 @@ export declare class RefundsResult extends PaymentsResults {
18
35
  failedFees: Map<number, RefundAmountDto>;
19
36
  totalAmountProcessed: number;
20
37
  }
21
- export interface RefundItems {
22
- negativePaymentFees: PaymentFee[];
23
- refundLineItems: LineItems[];
24
- }
25
38
  export interface RefundItemId {
26
39
  id: number;
27
40
  refundItemType: RefundItemTypeEnum;
@@ -1 +1 @@
1
- {"version":3,"file":"refund.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/interfaces/refund.interfaces.ts"],"names":[],"mappings":";;;AAOA,6DAAuD;AAEvD,MAAa,YAAa,SAAQ,oCAAe;CAUhD;AAVD,oCAUC;AAED,MAAa,aAAc,SAAQ,oCAAe;CAMjD;AAND,sCAMC"}
1
+ {"version":3,"file":"refund.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/interfaces/refund.interfaces.ts"],"names":[],"mappings":";;;AAKA,6DAAuD;AAqBvD,MAAa,YAAa,SAAQ,oCAAe;CAUhD;AAVD,oCAUC;AAED,MAAa,aAAc,SAAQ,oCAAe;CAMjD;AAND,sCAMC"}
@@ -12,13 +12,13 @@ export interface IVoidValidationsResult {
12
12
  voidDataDict: IVoidLineItemsDict;
13
13
  }
14
14
  export interface IVoidLineItem {
15
- id: number;
15
+ id?: number;
16
+ groupId?: string;
16
17
  amount?: number;
17
18
  isEdit?: boolean;
18
19
  markAsRefunded?: boolean;
19
20
  percentage?: number;
20
21
  quantity?: number;
21
- refundedAmount?: number;
22
22
  }
23
23
  export interface IVoid {
24
24
  reasonId?: number;
@@ -0,0 +1 @@
1
+ export * from './payout-account.entity';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./payout-account.entity"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/payout-accounts/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC"}
@@ -0,0 +1,10 @@
1
+ import { LinkedAccounts } from '../../entity/LinkedAccounts';
2
+ import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
3
+ import { Facility } from '../../facilities/entities/Facility';
4
+ export declare class PayoutAccount extends OrganizationConnectionBaseEntity {
5
+ linkedAccountId: number;
6
+ facilityId: number | null;
7
+ deletedAt?: Date;
8
+ linkedAccount: LinkedAccounts;
9
+ facility?: Facility | null;
10
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PayoutAccount = void 0;
4
+ const OrganizationConnectionBaseEntity_1 = require("../../entity/OrganizationConnectionBaseEntity");
5
+ class PayoutAccount extends OrganizationConnectionBaseEntity_1.OrganizationConnectionBaseEntity {
6
+ }
7
+ exports.PayoutAccount = PayoutAccount;
8
+ //# sourceMappingURL=payout-account.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payout-account.entity.js","sourceRoot":"","sources":["../../../../src/types/payout-accounts/entities/payout-account.entity.ts"],"names":[],"mappings":";;;AAGA,oGAAiG;AAGjG,MAAa,aAAc,SAAQ,mEAAgC;CAUlE;AAVD,sCAUC"}
@@ -0,0 +1,2 @@
1
+ export * from './entities';
2
+ export * from './types';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./entities"), exports);
18
+ __exportStar(require("./types"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/payout-accounts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,0CAAwB"}
@@ -0,0 +1 @@
1
+ export * from './interfaces';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./interfaces"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/payout-accounts/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B"}
@@ -0,0 +1 @@
1
+ export * from './payout-account.interfaces';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./payout-account.interfaces"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/payout-accounts/types/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C"}
@@ -0,0 +1,12 @@
1
+ import { LinkedAccountStatus } from '../../../payment/types/enums/linked-account.enums';
2
+ /**
3
+ * Minimal payout-account resolution result for charge-path and cart-lock callers.
4
+ */
5
+ export interface IResolvedPayoutAccount {
6
+ linkedAccountId: number;
7
+ providerId: string | null;
8
+ status: LinkedAccountStatus | null;
9
+ }
10
+ export interface IResolvedPayoutAccountRow extends IResolvedPayoutAccount {
11
+ facilityId: number | null;
12
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=payout-account.interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payout-account.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/payout-accounts/types/interfaces/payout-account.interfaces.ts"],"names":[],"mappings":""}
@@ -1,4 +1,5 @@
1
1
  import { Invoice } from '../../entity/Invoice';
2
+ import { LineItems } from '../../entity/LineItems';
2
3
  import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
3
4
  import { ProductsUsers } from '../../entity/ProductsUsers';
4
5
  import { Product } from '../../product-pricing/entities/product.entity';
@@ -30,4 +31,5 @@ export declare class Addon extends OrganizationConnectionBaseEntity {
30
31
  reservation?: Reservation;
31
32
  slot?: Slot;
32
33
  cartItemId?: string;
34
+ lineItem?: LineItems;
33
35
  }
@@ -1 +1 @@
1
- {"version":3,"file":"addon.entity.js","sourceRoot":"","sources":["../../../../src/types/reservations/entities/addon.entity.ts"],"names":[],"mappings":";;;AAGA,oGAAiG;AAWjG,MAAa,KAAM,SAAQ,mEAAgC;CA6C1D;AA7CD,sBA6CC"}
1
+ {"version":3,"file":"addon.entity.js","sourceRoot":"","sources":["../../../../src/types/reservations/entities/addon.entity.ts"],"names":[],"mappings":";;;AAIA,oGAAiG;AAWjG,MAAa,KAAM,SAAQ,mEAAgC;CA+C1D;AA/CD,sBA+CC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.4.99-a-2",
3
+ "version": "2.4.99-a-4",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {