@bondsports/types 2.1.63 → 2.1.64

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,7 @@
1
1
  import { ResourceNameTypeEnum } from '../../services/enums.service';
2
2
  import { PaymentMethodTypeEnum, SubPaymentMethodTypeEnum } from '../types/enums/payment.enums';
3
+ import { FeeDto } from '../../fee/dto/fee.dto';
4
+ import { UserPaymentMethod } from '../../entity/user-payment-method';
3
5
  export interface IConnectedResource {
4
6
  resourceId: number;
5
7
  resourceType: ResourceNameTypeEnum;
@@ -27,3 +29,9 @@ export declare class UserPaymentMethodDto {
27
29
  importedId?: string;
28
30
  deletedAt?: Date;
29
31
  }
32
+ export declare class UserPaymentMethodOption {
33
+ paymentMethodType: PaymentMethodTypeEnum;
34
+ subPaymentMethodType?: SubPaymentMethodTypeEnum;
35
+ fee?: FeeDto;
36
+ options?: UserPaymentMethod[];
37
+ }
@@ -1,10 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UserPaymentMethodDto = exports.UpdateConnectedResourcePaymentMethodDto = void 0;
3
+ exports.UserPaymentMethodOption = exports.UserPaymentMethodDto = exports.UpdateConnectedResourcePaymentMethodDto = void 0;
4
4
  class UpdateConnectedResourcePaymentMethodDto {
5
5
  }
6
6
  exports.UpdateConnectedResourcePaymentMethodDto = UpdateConnectedResourcePaymentMethodDto;
7
7
  class UserPaymentMethodDto {
8
8
  }
9
9
  exports.UserPaymentMethodDto = UserPaymentMethodDto;
10
+ class UserPaymentMethodOption {
11
+ }
12
+ exports.UserPaymentMethodOption = UserPaymentMethodOption;
10
13
  //# sourceMappingURL=payment-method.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"payment-method.dto.js","sourceRoot":"","sources":["../../../../src/types/payment/dto/payment-method.dto.ts"],"names":[],"mappings":";;;AAWA,MAAa,uCAAuC;CAUnD;AAVD,0FAUC;AAED,MAAa,oBAAoB;CAsBhC;AAtBD,oDAsBC"}
1
+ {"version":3,"file":"payment-method.dto.js","sourceRoot":"","sources":["../../../../src/types/payment/dto/payment-method.dto.ts"],"names":[],"mappings":";;;AAaA,MAAa,uCAAuC;CAUnD;AAVD,0FAUC;AAED,MAAa,oBAAoB;CAsBhC;AAtBD,oDAsBC;AAED,MAAa,uBAAuB;CAQnC;AARD,0DAQC"}
@@ -2,4 +2,5 @@ export * from './discount.consts';
2
2
  export * from './payment.consts';
3
3
  export * from './promo-code.consts';
4
4
  export * from './refund.consts';
5
+ export * from './user-payment-method.consts';
5
6
  export * from './void.consts';
@@ -18,5 +18,6 @@ __exportStar(require("./discount.consts"), exports);
18
18
  __exportStar(require("./payment.consts"), exports);
19
19
  __exportStar(require("./promo-code.consts"), exports);
20
20
  __exportStar(require("./refund.consts"), exports);
21
+ __exportStar(require("./user-payment-method.consts"), exports);
21
22
  __exportStar(require("./void.consts"), exports);
22
23
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/consts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,mDAAiC;AACjC,sDAAoC;AACpC,kDAAgC;AAChC,gDAA8B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/consts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,mDAAiC;AACjC,sDAAoC;AACpC,kDAAgC;AAChC,+DAA6C;AAC7C,gDAA8B"}
@@ -0,0 +1,2 @@
1
+ import { PaymentMethodTypeEnum } from '../enums/payment.enums';
2
+ export declare const DISPLAYABLE_PAYMENT_METHOD_TYPES: PaymentMethodTypeEnum[];
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DISPLAYABLE_PAYMENT_METHOD_TYPES = void 0;
4
+ const payment_enums_1 = require("../enums/payment.enums");
5
+ exports.DISPLAYABLE_PAYMENT_METHOD_TYPES = [payment_enums_1.PaymentMethodTypeEnum.ACH, payment_enums_1.PaymentMethodTypeEnum.CARD];
6
+ //# sourceMappingURL=user-payment-method.consts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-payment-method.consts.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/consts/user-payment-method.consts.ts"],"names":[],"mappings":";;;AAAA,0DAA8D;AAEjD,QAAA,gCAAgC,GAAG,CAAC,qCAAqB,CAAC,GAAG,EAAE,qCAAqB,CAAC,IAAI,CAAC,CAAC"}
@@ -1,5 +1,8 @@
1
+ import { UserPaymentMethod } from '../../../entity/user-payment-method';
2
+ import { PaymentMethodTypeEnum } from '../enums/payment.enums';
1
3
  export interface IFindUserPaymentMethodsOptions {
2
4
  withDeleted?: boolean;
3
5
  ignoreError?: boolean;
4
6
  skipValidations?: boolean;
5
7
  }
8
+ export type PaymentMethodByTypeMap = Map<PaymentMethodTypeEnum, UserPaymentMethod[]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.1.63",
3
+ "version": "2.1.64",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {