@bondsports/types 2.1.23 → 2.1.25

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,16 +1,17 @@
1
1
  import { PaymentStatusEnum } from '../payment/types/enums/payment.enums';
2
2
  import { CustomerInMembershipTypeEnum, GenderEnum, MembershipFilterByPropertyEnum, MembershipOrderByPropertyEnum, MembershipStatusEnum, MembershipTypeEnum, OrderByEnum, SportsEnum } from '../services/enums.service';
3
3
  import { IdAndNameDto, PaginationQuery } from './general.dto';
4
+ import { Membership } from '../entity/Membership';
4
5
  export declare class CreateMembershipDto {
5
6
  organizationId: number;
6
7
  name: string;
7
8
  description?: string;
8
9
  customerTypes: CustomerInMembershipTypeEnum[];
9
- activity: SportsEnum;
10
- facilityId: number;
11
- questionnaires: number[];
12
- minAgeYears: number;
13
- maxAgeYears: number;
10
+ activity?: SportsEnum;
11
+ facilityId?: number;
12
+ questionnaires?: number[];
13
+ minAgeYears?: number;
14
+ maxAgeYears?: number;
14
15
  gender: GenderEnum;
15
16
  maxMembers?: number;
16
17
  maxMaleMembers?: number;
@@ -20,7 +21,7 @@ export declare class CreateMembershipDto {
20
21
  registrationStartDate?: Date;
21
22
  registrationEndDate?: Date;
22
23
  membershipType: MembershipTypeEnum;
23
- durationMonths: number;
24
+ durationMonths?: number;
24
25
  longDescription?: string;
25
26
  isAutoRenew?: boolean;
26
27
  }
@@ -87,3 +88,7 @@ export declare class DateAndUserIdsDto {
87
88
  date: Date;
88
89
  userIds?: number[];
89
90
  }
91
+ export declare class MembershipImportResponseDto {
92
+ data: Membership[];
93
+ problems: any[];
94
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DateAndUserIdsDto = exports.SimpleMembershipDto = exports.GetMembershipDataQueryDto = exports.CancelMembershipDto = exports.FindMembersOptionsDto = exports.MemberIdDto = exports.MembershipIdsDto = exports.SetMembersStartDateByOrganization = exports.FindMembershipsByUserIdDto = exports.FindMembershipByFiltersDto = exports.FindMembershipsByOrganizationIdDto = exports.FindMembershipByIdDto = exports.UpdateMembershipMediaDto = exports.UpdateMembrshipDto = exports.CreateMembershipDto = void 0;
3
+ exports.MembershipImportResponseDto = exports.DateAndUserIdsDto = exports.SimpleMembershipDto = exports.GetMembershipDataQueryDto = exports.CancelMembershipDto = exports.FindMembersOptionsDto = exports.MemberIdDto = exports.MembershipIdsDto = exports.SetMembersStartDateByOrganization = exports.FindMembershipsByUserIdDto = exports.FindMembershipByFiltersDto = exports.FindMembershipsByOrganizationIdDto = exports.FindMembershipByIdDto = exports.UpdateMembershipMediaDto = exports.UpdateMembrshipDto = exports.CreateMembershipDto = void 0;
4
4
  const general_dto_1 = require("./general.dto");
5
5
  class CreateMembershipDto {
6
6
  }
@@ -47,4 +47,7 @@ exports.SimpleMembershipDto = SimpleMembershipDto;
47
47
  class DateAndUserIdsDto {
48
48
  }
49
49
  exports.DateAndUserIdsDto = DateAndUserIdsDto;
50
+ class MembershipImportResponseDto {
51
+ }
52
+ exports.MembershipImportResponseDto = MembershipImportResponseDto;
50
53
  //# sourceMappingURL=membership.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"membership.dto.js","sourceRoot":"","sources":["../../../src/types/dto/membership.dto.ts"],"names":[],"mappings":";;;AAWA,+CAA8D;AAE9D,MAAa,mBAAmB;CAwB/B;AAxBD,kDAwBC;AAED,MAAa,kBAAmB,SAAQ,mBAAmB;CAE1D;AAFD,gDAEC;AAED,MAAa,wBAAwB;CAGpC;AAHD,4DAGC;AAED,MAAa,qBAAqB;CAEjC;AAFD,sDAEC;AAED,MAAa,kCAAkC;CAE9C;AAFD,gFAEC;AAED,MAAa,0BAA2B,SAAQ,6BAAe;CAoB9D;AApBD,gEAoBC;AAED,MAAa,0BAA0B;CAEtC;AAFD,gEAEC;AAED,MAAa,iCAAkC,SAAQ,kCAAkC;CAExF;AAFD,8EAEC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAED,MAAa,WAAW;CAEvB;AAFD,kCAEC;AAED,MAAa,qBAAsB,SAAQ,6BAAe;CAGzD;AAHD,sDAGC;AAED,MAAa,mBAAmB;CAG/B;AAHD,kDAGC;AAED,MAAa,yBAA0B,SAAQ,6BAAe;CAU7D;AAVD,8DAUC;AAED,MAAa,mBAAoB,SAAQ,0BAAY;CAUpD;AAVD,kDAUC;AAED,MAAa,iBAAiB;CAI7B;AAJD,8CAIC"}
1
+ {"version":3,"file":"membership.dto.js","sourceRoot":"","sources":["../../../src/types/dto/membership.dto.ts"],"names":[],"mappings":";;;AAWA,+CAA8D;AAG9D,MAAa,mBAAmB;CA0C/B;AA1CD,kDA0CC;AAED,MAAa,kBAAmB,SAAQ,mBAAmB;CAE1D;AAFD,gDAEC;AAED,MAAa,wBAAwB;CAGpC;AAHD,4DAGC;AAED,MAAa,qBAAqB;CAEjC;AAFD,sDAEC;AAED,MAAa,kCAAkC;CAE9C;AAFD,gFAEC;AAED,MAAa,0BAA2B,SAAQ,6BAAe;CAoB9D;AApBD,gEAoBC;AAED,MAAa,0BAA0B;CAEtC;AAFD,gEAEC;AAED,MAAa,iCAAkC,SAAQ,kCAAkC;CAExF;AAFD,8EAEC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAED,MAAa,WAAW;CAEvB;AAFD,kCAEC;AAED,MAAa,qBAAsB,SAAQ,6BAAe;CAGzD;AAHD,sDAGC;AAED,MAAa,mBAAmB;CAG/B;AAHD,kDAGC;AAED,MAAa,yBAA0B,SAAQ,6BAAe;CAU7D;AAVD,8DAUC;AAED,MAAa,mBAAoB,SAAQ,0BAAY;CAUpD;AAVD,kDAUC;AAED,MAAa,iBAAiB;CAI7B;AAJD,8CAIC;AAED,MAAa,2BAA2B;CAIvC;AAJD,kEAIC"}
@@ -1,6 +1,6 @@
1
+ import { Media } from '../media/entities/Media';
1
2
  import { CustomerInMembershipTypeEnum, GenderEnum, MembershipTypeEnum, SportsEnum } from './../services/enums.service';
2
3
  import { IPackageResponse } from './../services/interfaces.service';
3
- import { Media } from '../media/entities/Media';
4
4
  import { MembershipMember } from './MembershipMember';
5
5
  import { OrganizationConnectionBaseEntity } from './OrganizationConnectionBaseEntity';
6
6
  import { PurchasedResource } from './PurchasedResources';
@@ -29,6 +29,7 @@ export declare class Membership extends OrganizationConnectionBaseEntity {
29
29
  tags: any[];
30
30
  longDescription?: string;
31
31
  isAutoRenew?: boolean;
32
+ importedId?: string;
32
33
  members: MembershipMember[];
33
34
  purchasedResources: PurchasedResource[];
34
35
  relatedProductsIds?: number[];
@@ -1 +1 @@
1
- {"version":3,"file":"Membership.js","sourceRoot":"","sources":["../../../src/types/entity/Membership.ts"],"names":[],"mappings":";;;AAKA,yFAAsF;AAGtF,MAAa,UAAW,SAAQ,mEAAgC;IAAhE;;QA8CC,gCAAgC;QAChC,SAAI,GAAG,EAAE,CAAC;IAWX,CAAC;CAAA;AA1DD,gCA0DC"}
1
+ {"version":3,"file":"Membership.js","sourceRoot":"","sources":["../../../src/types/entity/Membership.ts"],"names":[],"mappings":";;;AAKA,yFAAsF;AAGtF,MAAa,UAAW,SAAQ,mEAAgC;IAAhE;;QA8CC,gCAAgC;QAChC,SAAI,GAAG,EAAE,CAAC;IAaX,CAAC;CAAA;AA5DD,gCA4DC"}
@@ -7,6 +7,7 @@ export declare class GetFutureInstallmentsByOrgInvoiceDto extends ByOrganization
7
7
  }
8
8
  export declare class GetInstallmentsByFiltersDto extends OptionalOrganizationIdDto {
9
9
  invoiceId?: number;
10
+ minimumDate?: Date;
10
11
  userId?: number;
11
12
  includedIds?: number[];
12
13
  excludedIds?: number[];
@@ -1 +1 @@
1
- {"version":3,"file":"get-future-installment.dto.js","sourceRoot":"","sources":["../../../../src/types/future-installments/dto/get-future-installment.dto.ts"],"names":[],"mappings":";;;AAAA,uDAAwD;AACxD,8EAAyG;AAGzG,MAAa,oCAAqC,SAAQ,sCAAmB;CAI5E;AAJD,oFAIC;AACD,MAAa,2BAA4B,SAAQ,4CAAyB;CAUzE;AAVD,kEAUC;AAED,MAAa,4BAA6B,SAAQ,6BAAe;CAEhE;AAFD,oEAEC;AAED,MAAa,yCAAyC;CAMrD;AAND,8FAMC;AAED,MAAa,gCAAiC,SAAQ,sCAAmB;CAMxE;AAND,4EAMC"}
1
+ {"version":3,"file":"get-future-installment.dto.js","sourceRoot":"","sources":["../../../../src/types/future-installments/dto/get-future-installment.dto.ts"],"names":[],"mappings":";;;AAAA,uDAAwD;AACxD,8EAAyG;AAGzG,MAAa,oCAAqC,SAAQ,sCAAmB;CAI5E;AAJD,oFAIC;AACD,MAAa,2BAA4B,SAAQ,4CAAyB;CAYzE;AAZD,kEAYC;AAED,MAAa,4BAA6B,SAAQ,6BAAe;CAEhE;AAFD,oEAEC;AAED,MAAa,yCAAyC;CAMrD;AAND,8FAMC;AAED,MAAa,gCAAiC,SAAQ,sCAAmB;CAMxE;AAND,4EAMC"}
@@ -1,4 +1,6 @@
1
1
  import { CreateOrEditCustomerDto } from '../../customers/dto/createOrEditCustomer.dto';
2
+ import { Customer } from '../../entity/Customer';
3
+ import { User } from '../../user/entities/User';
2
4
  export declare class AddImportedCustomerDto extends CreateOrEditCustomerDto {
3
5
  importedID: string;
4
6
  name?: string;
@@ -14,3 +16,23 @@ export declare class AddFamilyDto {
14
16
  parents: AddImportedCustomerDto[];
15
17
  children: AddImportedCustomerDto[];
16
18
  }
19
+ export declare class CustomerImportValidationDto {
20
+ problems: any[];
21
+ existingCustomers: Customer[];
22
+ existingUsers: User[];
23
+ }
24
+ export declare class ExistingCustomerDto {
25
+ id: number;
26
+ importedID: string;
27
+ name: string;
28
+ email: string;
29
+ }
30
+ export declare class ExistingUserDto {
31
+ id: number;
32
+ importedID: string;
33
+ email: string;
34
+ }
35
+ export declare class CustomerImportResponseDto {
36
+ data: Customer[];
37
+ problems: any[];
38
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AddFamilyDto = exports.AddImportedCustomerDto = void 0;
3
+ exports.CustomerImportResponseDto = exports.ExistingUserDto = exports.ExistingCustomerDto = exports.CustomerImportValidationDto = exports.AddFamilyDto = exports.AddImportedCustomerDto = void 0;
4
4
  const createOrEditCustomer_dto_1 = require("../../customers/dto/createOrEditCustomer.dto");
5
5
  class AddImportedCustomerDto extends createOrEditCustomer_dto_1.CreateOrEditCustomerDto {
6
6
  }
@@ -8,4 +8,16 @@ exports.AddImportedCustomerDto = AddImportedCustomerDto;
8
8
  class AddFamilyDto {
9
9
  }
10
10
  exports.AddFamilyDto = AddFamilyDto;
11
+ class CustomerImportValidationDto {
12
+ }
13
+ exports.CustomerImportValidationDto = CustomerImportValidationDto;
14
+ class ExistingCustomerDto {
15
+ }
16
+ exports.ExistingCustomerDto = ExistingCustomerDto;
17
+ class ExistingUserDto {
18
+ }
19
+ exports.ExistingUserDto = ExistingUserDto;
20
+ class CustomerImportResponseDto {
21
+ }
22
+ exports.CustomerImportResponseDto = CustomerImportResponseDto;
11
23
  //# sourceMappingURL=customer.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"customer.dto.js","sourceRoot":"","sources":["../../../../src/types/import/dto/customer.dto.ts"],"names":[],"mappings":";;;AAAA,2FAAuF;AAEvF,MAAa,sBAAuB,SAAQ,kDAAuB;CAkBlE;AAlBD,wDAkBC;AAED,MAAa,YAAY;CAIxB;AAJD,oCAIC"}
1
+ {"version":3,"file":"customer.dto.js","sourceRoot":"","sources":["../../../../src/types/import/dto/customer.dto.ts"],"names":[],"mappings":";;;AAAA,2FAAuF;AAIvF,MAAa,sBAAuB,SAAQ,kDAAuB;CAkBlE;AAlBD,wDAkBC;AAED,MAAa,YAAY;CAIxB;AAJD,oCAIC;AAED,MAAa,2BAA2B;CAMvC;AAND,kEAMC;AAED,MAAa,mBAAmB;CAQ/B;AARD,kDAQC;AAED,MAAa,eAAe;CAO3B;AAPD,0CAOC;AAED,MAAa,yBAAyB;CAIrC;AAJD,8DAIC"}
@@ -1,5 +1,6 @@
1
1
  export * from './customer.dto';
2
2
  export * from './invoices.dto';
3
+ export * from './membership.dto';
3
4
  export * from './product.dto';
4
5
  export * from './punch-pass.dto';
5
6
  export * from './reservation.dto';
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./customer.dto"), exports);
18
18
  __exportStar(require("./invoices.dto"), exports);
19
+ __exportStar(require("./membership.dto"), exports);
19
20
  __exportStar(require("./product.dto"), exports);
20
21
  __exportStar(require("./punch-pass.dto"), exports);
21
22
  __exportStar(require("./reservation.dto"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/import/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,iDAA+B;AAC/B,gDAA8B;AAC9B,mDAAiC;AACjC,oDAAkC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/import/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,iDAA+B;AAC/B,mDAAiC;AACjC,gDAA8B;AAC9B,mDAAiC;AACjC,oDAAkC"}
@@ -0,0 +1,20 @@
1
+ import { CreateMembershipDto } from '../../dto/membership.dto';
2
+ export declare class MembershipImportValidationDto {
3
+ problems: any[];
4
+ existingMemberships: ExistingMembershipDto[];
5
+ }
6
+ export declare class MembershipMemberImportValidationDto {
7
+ problems: any[];
8
+ existingMembers: ExistingMembersDto[];
9
+ }
10
+ export declare class ExistingMembershipDto {
11
+ id: number;
12
+ name: string;
13
+ }
14
+ export declare class ExistingMembersDto {
15
+ id: number;
16
+ userId: number;
17
+ }
18
+ export declare class ImportMembershipDto extends CreateMembershipDto {
19
+ importedId?: string;
20
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ImportMembershipDto = exports.ExistingMembersDto = exports.ExistingMembershipDto = exports.MembershipMemberImportValidationDto = exports.MembershipImportValidationDto = void 0;
4
+ const membership_dto_1 = require("../../dto/membership.dto");
5
+ class MembershipImportValidationDto {
6
+ }
7
+ exports.MembershipImportValidationDto = MembershipImportValidationDto;
8
+ class MembershipMemberImportValidationDto {
9
+ }
10
+ exports.MembershipMemberImportValidationDto = MembershipMemberImportValidationDto;
11
+ class ExistingMembershipDto {
12
+ }
13
+ exports.ExistingMembershipDto = ExistingMembershipDto;
14
+ class ExistingMembersDto {
15
+ }
16
+ exports.ExistingMembersDto = ExistingMembersDto;
17
+ class ImportMembershipDto extends membership_dto_1.CreateMembershipDto {
18
+ }
19
+ exports.ImportMembershipDto = ImportMembershipDto;
20
+ //# sourceMappingURL=membership.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"membership.dto.js","sourceRoot":"","sources":["../../../../src/types/import/dto/membership.dto.ts"],"names":[],"mappings":";;;AAAA,6DAA+D;AAE/D,MAAa,6BAA6B;CAIzC;AAJD,sEAIC;AAED,MAAa,mCAAmC;CAI/C;AAJD,kFAIC;AAGD,MAAa,qBAAqB;CAIjC;AAJD,sDAIC;AAED,MAAa,kBAAkB;CAI9B;AAJD,gDAIC;AAED,MAAa,mBAAoB,SAAQ,oCAAmB;CAE3D;AAFD,kDAEC"}
@@ -35,6 +35,7 @@ export declare class Organization extends BondBaseEntity {
35
35
  organizationAudienceTypes?: number[];
36
36
  organizationGenders?: number[];
37
37
  questionnaireId?: number;
38
+ toCombineInstallments?: boolean;
38
39
  membershipQuestionnaireId?: number;
39
40
  currency: CurrencyEnum;
40
41
  anonymousCustomerId?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"Organization.js","sourceRoot":"","sources":["../../../../src/types/organization/entities/Organization.ts"],"names":[],"mappings":";;;AAEA,gEAA6D;AAS7D,MAAa,YAAa,SAAQ,+BAAc;CAoF/C;AApFD,oCAoFC"}
1
+ {"version":3,"file":"Organization.js","sourceRoot":"","sources":["../../../../src/types/organization/entities/Organization.ts"],"names":[],"mappings":";;;AAEA,gEAA6D;AAS7D,MAAa,YAAa,SAAQ,+BAAc;CAsF/C;AAtFD,oCAsFC"}
@@ -65,9 +65,14 @@ export declare enum FuturePaymentStatusEnum {
65
65
  SUCCEEDED = "succeeded",
66
66
  FAILED = "failed",
67
67
  CANCELED = "canceled",
68
- PENDING = "pending"
68
+ PENDING = "pending",
69
+ RETRY_IN_PROGRESS = "retry_in_progress"
69
70
  }
70
71
  export declare const scheduledChargeStatusWithTreansactionFee: FuturePaymentStatusEnum[];
72
+ export declare const chargeableInstallmentStatuses: FuturePaymentStatusEnum[];
73
+ export declare const updateableInstallmentStatuses: FuturePaymentStatusEnum[];
74
+ export declare const cliChargeableInstallmentStatuses: FuturePaymentStatusEnum[];
75
+ export declare const cancelableInstallmentStatuses: FuturePaymentStatusEnum[];
71
76
  export declare enum FlattenViaPropEnum {
72
77
  CHILDREN = "children",
73
78
  TAX_ITEM = "taxLineItem"
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FlattenViaPropEnum = exports.scheduledChargeStatusWithTreansactionFee = exports.FuturePaymentStatusEnum = exports.SubPaymentMethodTypeEnum = exports.PaymentProcessorEnum = exports.PaymentMethodTypeEnum = exports.PaymentMethodsEnum = exports.PaymentStatusV1Enum = exports.ReasonTypeEnum = exports.PaymentFilterByEnum = exports.PaymentStatusEnum = void 0;
3
+ exports.FlattenViaPropEnum = exports.cancelableInstallmentStatuses = exports.cliChargeableInstallmentStatuses = exports.updateableInstallmentStatuses = exports.chargeableInstallmentStatuses = exports.scheduledChargeStatusWithTreansactionFee = exports.FuturePaymentStatusEnum = exports.SubPaymentMethodTypeEnum = exports.PaymentProcessorEnum = exports.PaymentMethodTypeEnum = exports.PaymentMethodsEnum = exports.PaymentStatusV1Enum = exports.ReasonTypeEnum = exports.PaymentFilterByEnum = exports.PaymentStatusEnum = void 0;
4
4
  var PaymentStatusEnum;
5
5
  (function (PaymentStatusEnum) {
6
6
  PaymentStatusEnum["NOT_PAID"] = "not_paid";
@@ -78,12 +78,30 @@ var FuturePaymentStatusEnum;
78
78
  FuturePaymentStatusEnum["FAILED"] = "failed";
79
79
  FuturePaymentStatusEnum["CANCELED"] = "canceled";
80
80
  FuturePaymentStatusEnum["PENDING"] = "pending";
81
+ FuturePaymentStatusEnum["RETRY_IN_PROGRESS"] = "retry_in_progress";
81
82
  })(FuturePaymentStatusEnum = exports.FuturePaymentStatusEnum || (exports.FuturePaymentStatusEnum = {}));
82
83
  exports.scheduledChargeStatusWithTreansactionFee = [
83
84
  FuturePaymentStatusEnum.FUTURE,
84
85
  FuturePaymentStatusEnum.PENDING,
85
86
  FuturePaymentStatusEnum.SUCCEEDED,
86
87
  ];
88
+ exports.chargeableInstallmentStatuses = [
89
+ FuturePaymentStatusEnum.FUTURE,
90
+ FuturePaymentStatusEnum.FAILED,
91
+ FuturePaymentStatusEnum.RETRY_IN_PROGRESS,
92
+ ];
93
+ exports.updateableInstallmentStatuses = [
94
+ FuturePaymentStatusEnum.FUTURE,
95
+ FuturePaymentStatusEnum.RETRY_IN_PROGRESS,
96
+ ];
97
+ exports.cliChargeableInstallmentStatuses = [
98
+ FuturePaymentStatusEnum.FUTURE,
99
+ FuturePaymentStatusEnum.RETRY_IN_PROGRESS,
100
+ ];
101
+ exports.cancelableInstallmentStatuses = [
102
+ FuturePaymentStatusEnum.FUTURE,
103
+ FuturePaymentStatusEnum.RETRY_IN_PROGRESS,
104
+ ];
87
105
  var FlattenViaPropEnum;
88
106
  (function (FlattenViaPropEnum) {
89
107
  FlattenViaPropEnum["CHILDREN"] = "children";
@@ -1 +1 @@
1
- {"version":3,"file":"payment.enums.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/enums/payment.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBAWX;AAXD,WAAY,iBAAiB;IAC5B,0CAAqB,CAAA;IACrB,gDAA2B,CAAA;IAC3B,wCAAmB,CAAA;IACnB,0CAAqB,CAAA;IACrB,kCAAa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,6BAAqB,KAArB,6BAAqB,QAchC;AAED,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC/B,yCAAiB,CAAA;IACjB,uCAAe,CAAA;AAChB,CAAC,EAHW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAG/B;AAED,IAAY,wBAKX;AALD,WAAY,wBAAwB;IACnC,6CAAiB,CAAA;IACjB,2CAAe,CAAA;IACf,+CAAmB,CAAA;IACnB,+CAAmB,CAAA;AACpB,CAAC,EALW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAKnC;AAED,IAAY,uBAMX;AAND,WAAY,uBAAuB;IAClC,4CAAiB,CAAA;IACjB,kDAAuB,CAAA;IACvB,4CAAiB,CAAA;IACjB,gDAAqB,CAAA;IACrB,8CAAmB,CAAA;AACpB,CAAC,EANW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAMlC;AAEY,QAAA,wCAAwC,GAAG;IACvD,uBAAuB,CAAC,MAAM;IAC9B,uBAAuB,CAAC,OAAO;IAC/B,uBAAuB,CAAC,SAAS;CACjC,CAAC;AAEF,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC7B,2CAAqB,CAAA;IACrB,8CAAwB,CAAA;AACzB,CAAC,EAHW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAG7B"}
1
+ {"version":3,"file":"payment.enums.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/enums/payment.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBAWX;AAXD,WAAY,iBAAiB;IAC5B,0CAAqB,CAAA;IACrB,gDAA2B,CAAA;IAC3B,wCAAmB,CAAA;IACnB,0CAAqB,CAAA;IACrB,kCAAa,CAAA;IACb,0CAAqB,CAAA;IACrB,wDAAmC,CAAA;IACnC,sCAAiB,CAAA;IACjB,wCAAmB,CAAA;IACnB,4DAAuC,CAAA;AACxC,CAAC,EAXW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAW5B;AAED,IA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Y,wBAKX;AALD,WAAY,wBAAwB;IACnC,6CAAiB,CAAA;IACjB,2CAAe,CAAA;IACf,+CAAmB,CAAA;IACnB,+CAAmB,CAAA;AACpB,CAAC,EALW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAKnC;AAED,IAAY,uBAOX;AAPD,WAAY,uBAAuB;IAClC,4CAAiB,CAAA;IACjB,kDAAuB,CAAA;IACvB,4CAAiB,CAAA;IACjB,gDAAqB,CAAA;IACrB,8CAAmB,CAAA;IACnB,kEAAuC,CAAA;AACxC,CAAC,EAPW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAOlC;AAEY,QAAA,wCAAwC,GAAG;IACvD,uBAAuB,CAAC,MAAM;IAC9B,uBAAuB,CAAC,OAAO;IAC/B,uBAAuB,CAAC,SAAS;CACjC,CAAC;AAEW,QAAA,6BAA6B,GAAG;IAC5C,uBAAuB,CAAC,MAAM;IAC9B,uBAAuB,CAAC,MAAM;IAC9B,uBAAuB,CAAC,iBAAiB;CACzC,CAAC;AAEW,QAAA,6BAA6B,GAAG;IAC5C,uBAAuB,CAAC,MAAM;IAC9B,uBAAuB,CAAC,iBAAiB;CACzC,CAAC;AACW,QAAA,gCAAgC,GAAG;IAC/C,uBAAuB,CAAC,MAAM;IAC9B,uBAAuB,CAAC,iBAAiB;CACzC,CAAC;AAEW,QAAA,6BAA6B,GAAG;IAC5C,uBAAuB,CAAC,MAAM;IAC9B,uBAAuB,CAAC,iBAAiB;CACzC,CAAC;AAEF,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC7B,2CAAqB,CAAA;IACrB,8CAAwB,CAAA;AACzB,CAAC,EAHW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAG7B"}
@@ -11,6 +11,7 @@ import { ResourceDto } from '../../resources/dto/resource.dto';
11
11
  export declare class PurchasePaymentDto {
12
12
  type: PaymentMethodTypeEnum;
13
13
  token?: string;
14
+ paymentMethodId?: number;
14
15
  }
15
16
  export declare class ChargeRentalsReuqestDto {
16
17
  organizationId: number;
@@ -70,6 +71,11 @@ export declare class ScheduledPaymentRequestBodyDto {
70
71
  includedIds?: number[];
71
72
  excludedIds?: number[];
72
73
  }
74
+ export declare class PaymentMethodDataDto {
75
+ type: PaymentMethodTypeEnum;
76
+ token?: string;
77
+ paymentMethodId?: number;
78
+ }
73
79
  export declare class PartialPaymentRequestDto {
74
80
  invoiceId: number;
75
81
  amountToPay: number;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PurchaseCartDto = exports.PurchaseResultDto = exports.ValidateParticipantDto = exports.PartialPaymentAsUserDto = exports.AddItemsDto = exports.RedeemPunchCardRequestDto = exports.PartialPaymentRequestDto = exports.ScheduledPaymentRequestBodyDto = exports.ScheduledPaymentRequestDto = exports.PurchaseProductDto = exports.PurchaseResourceDto = exports.PurchaseRequestDto = exports.ChargeRentalsReuqestDto = exports.PurchasePaymentDto = void 0;
3
+ exports.PurchaseCartDto = exports.PurchaseResultDto = exports.ValidateParticipantDto = exports.PartialPaymentAsUserDto = exports.AddItemsDto = exports.RedeemPunchCardRequestDto = exports.PartialPaymentRequestDto = exports.PaymentMethodDataDto = exports.ScheduledPaymentRequestBodyDto = exports.ScheduledPaymentRequestDto = exports.PurchaseProductDto = exports.PurchaseResourceDto = exports.PurchaseRequestDto = exports.ChargeRentalsReuqestDto = exports.PurchasePaymentDto = void 0;
4
4
  const organization_dto_1 = require("../../organization/dto/organization.dto");
5
5
  const resource_dto_1 = require("../../resources/dto/resource.dto");
6
6
  class PurchasePaymentDto {
@@ -24,6 +24,9 @@ exports.ScheduledPaymentRequestDto = ScheduledPaymentRequestDto;
24
24
  class ScheduledPaymentRequestBodyDto {
25
25
  }
26
26
  exports.ScheduledPaymentRequestBodyDto = ScheduledPaymentRequestBodyDto;
27
+ class PaymentMethodDataDto {
28
+ }
29
+ exports.PaymentMethodDataDto = PaymentMethodDataDto;
27
30
  class PartialPaymentRequestDto {
28
31
  }
29
32
  exports.PartialPaymentRequestDto = PartialPaymentRequestDto;
@@ -1 +1 @@
1
- {"version":3,"file":"purchase.dto.js","sourceRoot":"","sources":["../../../../src/types/purchase/dto/purchase.dto.ts"],"names":[],"mappings":";;;AAIA,8EAA8E;AAS9E,mEAA+D;AAG/D,MAAa,kBAAkB;CAI9B;AAJD,gDAIC;AAED,MAAa,uBAAuB;CAkBnC;AAlBD,0DAkBC;AAED,MAAa,kBAAkB;CA8B9B;AA9BD,gDA8BC;AAED,MAAa,mBAAoB,SAAQ,0BAAW;CAInD;AAJD,kDAIC;AAED,MAAa,kBAAkB;CA2B9B;AA3BD,gDA2BC;AAED,MAAa,0BAA2B,SAAQ,sCAAmB;CAIlE;AAJD,gEAIC;AAED,MAAa,8BAA8B;CAU1C;AAVD,wEAUC;AAED,MAAa,wBAAwB;CAgBpC;AAhBD,4DAgBC;AAED,MAAa,yBAAyB;CAQrC;AARD,8DAQC;AAED,MAAa,WAAW;IAAxB;QAGC,qBAAgB,GAAG,KAAK,CAAC;QAEzB,aAAQ,GAAG,KAAK,CAAC;IAClB,CAAC;CAAA;AAND,kCAMC;AAED,MAAa,uBAAuB;CAUnC;AAVD,0DAUC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC;AAED,MAAa,iBAAiB;CAU7B;AAVD,8CAUC;AAED,MAAa,eAAe;CAgB3B;AAhBD,0CAgBC"}
1
+ {"version":3,"file":"purchase.dto.js","sourceRoot":"","sources":["../../../../src/types/purchase/dto/purchase.dto.ts"],"names":[],"mappings":";;;AAIA,8EAA8E;AAS9E,mEAA+D;AAG/D,MAAa,kBAAkB;CAM9B;AAND,gDAMC;AAED,MAAa,uBAAuB;CAkBnC;AAlBD,0DAkBC;AAED,MAAa,kBAAkB;CA8B9B;AA9BD,gDA8BC;AAED,MAAa,mBAAoB,SAAQ,0BAAW;CAInD;AAJD,kDAIC;AAED,MAAa,kBAAkB;CA2B9B;AA3BD,gDA2BC;AAED,MAAa,0BAA2B,SAAQ,sCAAmB;CAIlE;AAJD,gEAIC;AAED,MAAa,8BAA8B;CAU1C;AAVD,wEAUC;AAED,MAAa,oBAAoB;CAMhC;AAND,oDAMC;AAED,MAAa,wBAAwB;CAgBpC;AAhBD,4DAgBC;AAED,MAAa,yBAAyB;CAQrC;AARD,8DAQC;AAED,MAAa,WAAW;IAAxB;QAGC,qBAAgB,GAAG,KAAK,CAAC;QAEzB,aAAQ,GAAG,KAAK,CAAC;IAClB,CAAC;CAAA;AAND,kCAMC;AAED,MAAa,uBAAuB;CAUnC;AAVD,0DAUC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC;AAED,MAAa,iBAAiB;CAU7B;AAVD,8CAUC;AAED,MAAa,eAAe;CAgB3B;AAhBD,0CAgBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.1.23",
3
+ "version": "2.1.25",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {