@nimee/shared-types 1.0.105 → 1.0.106

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.
@@ -7,7 +7,10 @@
7
7
  /// <reference types="mongoose/types/schemaoptions" />
8
8
  import mongoose from "mongoose";
9
9
  import { IPaymentSeasonTicketIterationType } from "./seasonTicket";
10
+ import { IPaymentCouponTypeEnum } from "./coupon";
10
11
  export interface IEndUserSeasonTicketModel {
12
+ discountType?: IPaymentCouponTypeEnum;
13
+ discountValue?: number;
11
14
  externalId?: string;
12
15
  externalCode?: string;
13
16
  paymentDate?: Date;
@@ -1 +1 @@
1
- {"version":3,"file":"endUserSeasonTicket.js","sourceRoot":"","sources":["../../src/payment/endUserSeasonTicket.ts"],"names":[],"mappings":";;;AAoCA,IAAY,uBAOX;AAPD,WAAY,uBAAuB;IACjC,4CAAiB,CAAA;IACjB,8CAAmB,CAAA;IACnB,kDAAuB,CAAA;IACvB,4CAAiB,CAAA;IACjB,kDAAuB,CAAA;IACvB,8CAAmB,CAAA;AACrB,CAAC,EAPW,uBAAuB,uCAAvB,uBAAuB,QAOlC"}
1
+ {"version":3,"file":"endUserSeasonTicket.js","sourceRoot":"","sources":["../../src/payment/endUserSeasonTicket.ts"],"names":[],"mappings":";;;AAuCA,IAAY,uBAOX;AAPD,WAAY,uBAAuB;IACjC,4CAAiB,CAAA;IACjB,8CAAmB,CAAA;IACnB,kDAAuB,CAAA;IACvB,4CAAiB,CAAA;IACjB,kDAAuB,CAAA;IACvB,8CAAmB,CAAA;AACrB,CAAC,EAPW,uBAAuB,uCAAvB,uBAAuB,QAOlC"}
@@ -1,4 +1,4 @@
1
- import { IChargeModel, IFeeCollectionType } from "../payment";
1
+ import { IChargeModel, IEndUserSeasonTicketModel, IFeeCollectionType } from "../payment";
2
2
  import { IUserEventModel } from "./userEvent";
3
3
  export interface IEventOrderModel {
4
4
  event?: string;
@@ -20,5 +20,5 @@ export interface IEventOrderModel {
20
20
  nimiFee?: number;
21
21
  utm?: string;
22
22
  nimiFeePercentage?: number;
23
- endUserSeasonTicket?: string;
23
+ endUserSeasonTicket?: IEndUserSeasonTicketModel;
24
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nimee/shared-types",
3
- "version": "1.0.105",
3
+ "version": "1.0.106",
4
4
  "description": "Types and interfaces that any service can access if needed",
5
5
  "main": "dist/index.js",
6
6
  "author": "dan goldberg",
@@ -1,6 +1,9 @@
1
1
  import mongoose from "mongoose";
2
2
  import { IPaymentSeasonTicketIterationType } from "./seasonTicket";
3
+ import { IPaymentCouponTypeEnum } from "./coupon";
3
4
  export interface IEndUserSeasonTicketModel {
5
+ discountType?: IPaymentCouponTypeEnum;
6
+ discountValue?: number;
4
7
  externalId?: string; // the id of the season ticket in the payment service
5
8
  externalCode?: string; // the code of the season ticket in the payment service
6
9
  paymentDate?: Date;
@@ -1,4 +1,4 @@
1
- import { IChargeModel, IFeeCollectionType } from "../payment";
1
+ import { IChargeModel, IEndUserSeasonTicketModel, IFeeCollectionType } from "../payment";
2
2
  import { IUserEventModel } from "./userEvent";
3
3
  export interface IEventOrderModel {
4
4
  event?: string;
@@ -20,5 +20,5 @@ export interface IEventOrderModel {
20
20
  nimiFee?: number;
21
21
  utm?: string;
22
22
  nimiFeePercentage?: number;
23
- endUserSeasonTicket?: string;
23
+ endUserSeasonTicket?: IEndUserSeasonTicketModel;
24
24
  }