@bondsports/types 2.3.14 → 2.3.15-d-0

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.
@@ -1,8 +1,8 @@
1
+ import { UserPaymentMethodSimpleDto } from '../../../payment/dto/payment-method.dto';
1
2
  import { Cart } from '../../../cart/entities/cart.entity';
2
3
  import { IValidateCartOptions } from '../../../cart/types/interfaces/cart.interfaces';
3
4
  import { Invoice } from '../../../entity/Invoice';
4
5
  import { LineItems } from '../../../entity/LineItems';
5
- import { UserPaymentMethod } from '../../../entity/user-payment-method';
6
6
  import { PurchaseProductDto } from '../../../purchase/dto/purchase.dto';
7
7
  import { ProductPricesDto } from '../../../reservations/dto/reservation.dto';
8
8
  import { IOverrideProductsPricing } from '../../../reservations/types/interfaces/reservation.interfaces';
@@ -11,9 +11,8 @@ import { InvoiceDto } from '../../dto/invoice.dto';
11
11
  import { LineItemDto } from '../../dto/lineItem.dto';
12
12
  export interface InvoiceAndRelatedMethod {
13
13
  invoice: Invoice;
14
- paymentMethod?: DisplayedMethodFields;
14
+ paymentMethod?: UserPaymentMethodSimpleDto;
15
15
  }
16
- export type DisplayedMethodFields = Pick<UserPaymentMethod, 'ccBrand' | 'ccLast4' | 'paymentMethodType' | 'paymentMethodId'>;
17
16
  export interface InvoiceAndMethodIds {
18
17
  invoiceId: number;
19
18
  pmId: number;
@@ -1 +1 @@
1
- {"version":3,"file":"invoice.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/invoice/types/interfaces/invoice.interfaces.ts"],"names":[],"mappings":";;;AAiEA,MAAa,0BAA0B;CAEtC;AAFD,gEAEC"}
1
+ {"version":3,"file":"invoice.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/invoice/types/interfaces/invoice.interfaces.ts"],"names":[],"mappings":";;;AA6DA,MAAa,0BAA0B;CAEtC;AAFD,gEAEC"}
@@ -4,13 +4,34 @@ export interface INotificationRecipients {
4
4
  bcc?: string | string[];
5
5
  interpolationData?: Record<string, unknown>;
6
6
  }
7
+ /**
8
+ * If organizationId is provided, fromDisplayName will be the organization name if not provided.
9
+ * If replyToOrganization is true and organizationId is provided, replyTo will be the organization email if not provided.
10
+ */
7
11
  export interface INotificationSender {
12
+ /**
13
+ */
8
14
  userId?: number;
15
+ /**
16
+ */
9
17
  organizationId?: number;
18
+ /**
19
+ */
10
20
  facilityId?: number;
21
+ /**
22
+ */
11
23
  replyTo?: string;
24
+ /**
25
+ */
26
+ replyToOrganization?: boolean;
27
+ /**
28
+ */
12
29
  fromDisplayName?: string;
13
30
  }
31
+ export interface INotificationOrganizationFields {
32
+ organization_name?: string;
33
+ organization_email?: string;
34
+ }
14
35
  export interface INotificationDynamicContent {
15
36
  bodyHtml: string;
16
37
  bodyText?: string;
@@ -3,7 +3,7 @@ import { OrderByEnum, ResourceNameTypeEnum } from '../../services/enums.service'
3
3
  import { ResourceSortByEnum } from '../types/enums/connected-resources.enums';
4
4
  declare class ConnectedResourcesFilters extends PaginationQuery {
5
5
  search?: string;
6
- paymentMethodIds: string[];
6
+ userPaymentMethodIds?: number[];
7
7
  resourceTypes?: ResourceNameTypeEnum[];
8
8
  }
9
9
  export declare class GetResourcesByFiltersDto extends ConnectedResourcesFilters {
@@ -12,12 +12,14 @@ export interface IConnectedResource {
12
12
  createdAt: Date;
13
13
  paymentMethodType?: PaymentMethodTypeEnum;
14
14
  paymentMethodId?: string;
15
+ userPaymentMethodId: number;
15
16
  ccBrand?: string;
16
17
  ccLast4?: string;
17
18
  invoiceId?: number;
18
19
  membershipId?: number;
19
20
  }
20
21
  export declare class UserPaymentMethodSimpleDto {
22
+ id?: number;
21
23
  paymentMethodId?: string;
22
24
  paymentMethodType?: PaymentMethodTypeEnum;
23
25
  ccLast4?: string;
@@ -37,7 +39,8 @@ export declare class UpdateConnectedResourcePaymentMethodDto {
37
39
  resourceId: number;
38
40
  organizationId: number;
39
41
  resourceType: ResourceNameTypeEnum;
40
- paymentMethodId: string;
42
+ userPaymentMethodId: number;
43
+ paymentMethodId?: string;
41
44
  paymentMethodType: PaymentMethodTypeEnum;
42
45
  }
43
46
  export declare class UserPaymentMethodDto {
@@ -1 +1 @@
1
- {"version":3,"file":"payment-method.dto.js","sourceRoot":"","sources":["../../../../src/types/payment/dto/payment-method.dto.ts"],"names":[],"mappings":";;;AAIA,sDAAmE;AAiBnE,MAAa,0BAA0B;CAQtC;AARD,gEAQC;AAED,MAAa,oBAAoB;CAgBhC;AAhBD,oDAgBC;AAED,MAAa,uCAAuC;CAUnD;AAVD,0FAUC;AAED,MAAa,oBAAoB;CA0BhC;AA1BD,oDA0BC;AAED,MAAa,uBAAuB;CAQnC;AARD,0DAQC;AAED,MAAa,6BAA8B,SAAQ,oBAAS;CAE3D;AAFD,sEAEC;AAED,MAAa,0BAA0B;CAYtC;AAZD,gEAYC"}
1
+ {"version":3,"file":"payment-method.dto.js","sourceRoot":"","sources":["../../../../src/types/payment/dto/payment-method.dto.ts"],"names":[],"mappings":";;;AAIA,sDAAmE;AAkBnE,MAAa,0BAA0B;CAUtC;AAVD,gEAUC;AAED,MAAa,oBAAoB;CAgBhC;AAhBD,oDAgBC;AAED,MAAa,uCAAuC;CAYnD;AAZD,0FAYC;AAED,MAAa,oBAAoB;CA0BhC;AA1BD,oDA0BC;AAED,MAAa,uBAAuB;CAQnC;AARD,0DAQC;AAED,MAAa,6BAA8B,SAAQ,oBAAS;CAE3D;AAFD,sEAEC;AAED,MAAa,0BAA0B;CAYtC;AAZD,gEAYC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.3.14",
3
+ "version": "2.3.15-d-0",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {