@carlosdiazz/lottodiz-shared 3.6.9 → 3.7.1

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.
@@ -24,7 +24,7 @@ export interface ProcessTicketPaymentInterface {
24
24
  pos: PosInterface;
25
25
  pos_user: PosUserInterface;
26
26
  }
27
- export interface ProcessTicketCancellationInterface {
27
+ export interface ProcessTicketCancelInterface {
28
28
  ticket: TicketInterface;
29
29
  group: GroupInterface;
30
30
  pos: PosInterface;
@@ -33,5 +33,5 @@ export interface ProcessTicketCancellationInterface {
33
33
  export interface FinancialTransactionServiceInterface {
34
34
  processTickeSale(dto: ProcessTicketSaleInterface): Promise<TicketInterface>;
35
35
  processTicketPayment(dto: ProcessTicketPaymentInterface): Promise<TicketInterface>;
36
- processTicketCancellation(dto: ProcessTicketCancellationInterface): Promise<TicketInterface>;
36
+ processTicketCancel(dto: ProcessTicketCancelInterface): Promise<TicketInterface>;
37
37
  }
@@ -9,3 +9,7 @@ export interface CreateTicketInterface {
9
9
  details: CreateTicketDetailInterface[];
10
10
  user?: UserInterface;
11
11
  }
12
+ export interface FindByCodeInterface {
13
+ code: string;
14
+ user?: UserInterface;
15
+ }
@@ -1,11 +1,11 @@
1
1
  import { ResponseFindTicketInterface, TicketInterface } from "./ticket.base";
2
- import { CreateTicketInterface } from "./create-ticket.base";
2
+ import { CreateTicketInterface, FindByCodeInterface } from "./create-ticket.base";
3
3
  import { ParamsTicketInterface } from "./params-ticket.base";
4
4
  import { ResponseInterface } from "../common";
5
5
  export interface TicketControllerInterface {
6
6
  create(dto: CreateTicketInterface): Promise<TicketInterface>;
7
7
  findAll(pagination: ParamsTicketInterface): Promise<TicketInterface[]>;
8
- findByCode(code: string): Promise<ResponseFindTicketInterface>;
9
- cancelByCode(code: string): Promise<ResponseInterface>;
10
- payByCode(code: string): Promise<ResponseInterface>;
8
+ findByCode(dto: FindByCodeInterface): Promise<ResponseFindTicketInterface>;
9
+ cancelByCode(dto: FindByCodeInterface): Promise<ResponseInterface>;
10
+ payByCode(dto: FindByCodeInterface): Promise<ResponseInterface>;
11
11
  }
@@ -5,7 +5,7 @@ import { ResponseInterface } from "../common";
5
5
  export interface TicketDatasourceInterface {
6
6
  create(dto: CreateTicketInterface): Promise<TicketInterface>;
7
7
  findAll(pagination: ParamsTicketInterface): Promise<TicketInterface[]>;
8
- findByCode(code: string): Promise<ResponseFindTicketInterface>;
8
+ findByCode(dto: string): Promise<ResponseFindTicketInterface>;
9
9
  cancelByCode(code: string): Promise<ResponseInterface>;
10
10
  payByCode(code: string): Promise<ResponseInterface>;
11
11
  }
@@ -1,11 +1,11 @@
1
1
  import { ResponseFindTicketInterface, TicketInterface } from "./ticket.base";
2
- import { CreateTicketInterface } from "./create-ticket.base";
2
+ import { CreateTicketInterface, FindByCodeInterface } from "./create-ticket.base";
3
3
  import { ParamsTicketInterface } from "./params-ticket.base";
4
4
  import { ResponseInterface } from "../common";
5
5
  export interface TicketServiceInterface {
6
6
  create(dto: CreateTicketInterface): Promise<TicketInterface>;
7
7
  findAll(pagination: ParamsTicketInterface): Promise<TicketInterface[]>;
8
- findByCode(code: string): Promise<ResponseFindTicketInterface>;
9
- cancelByCode(code: string): Promise<ResponseInterface>;
10
- payByCode(code: string): Promise<ResponseInterface>;
8
+ findByCode(dto: FindByCodeInterface): Promise<ResponseFindTicketInterface>;
9
+ cancelByCode(dto: FindByCodeInterface): Promise<ResponseInterface>;
10
+ payByCode(dto: FindByCodeInterface): Promise<ResponseInterface>;
11
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carlosdiazz/lottodiz-shared",
3
- "version": "3.6.9",
3
+ "version": "3.7.1",
4
4
  "description": "Shared Dtos, models, constants and utils",
5
5
  "main": "dist/index.js",
6
6
  "private": false,