wsp-contracts 1.0.76 → 1.0.78

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,3 +1,4 @@
1
+ import { BasicCardDTO } from "../payments/DTOs";
1
2
  export interface MembershipDTO {
2
3
  parentUuid?: string | undefined;
3
4
  tenantUuid: string;
@@ -34,13 +35,11 @@ export interface MembershipDTO {
34
35
  [key: string]: unknown;
35
36
  }
36
37
  export interface UniquePaymentInfoDTO {
37
- name: string;
38
- startDate: string;
39
38
  currency: string;
40
39
  gateway: string;
41
- cardUuid?: string | undefined;
42
- cardMask?: string | undefined;
40
+ card?: BasicCardDTO | undefined;
43
41
  amount: number;
42
+ [key: string]: unknown;
44
43
  }
45
44
  export interface FinancePaymentInfoDTO {
46
45
  membershipUuid: string;
@@ -50,25 +49,19 @@ export interface FinancePaymentInfoDTO {
50
49
  currency: string;
51
50
  gateway: string;
52
51
  amount: number;
53
- cardUuid: string;
54
- cardMask: string;
52
+ card?: BasicCardDTO | undefined;
55
53
  [key: string]: unknown;
56
54
  }
57
55
  export interface RecurrencePaymentInfoDTO {
58
- name: string;
59
56
  membershipUuid: string;
60
- intervalType: string;
61
- intervalCycles: number;
62
- intervalCyclesCounter: number;
57
+ type: string;
58
+ cycles: number;
63
59
  startDate: string;
64
- lastPaymentDate?: string | undefined;
65
- nextPaymentDate?: string | undefined;
60
+ currency: string;
66
61
  gateway: string;
67
62
  amount: number;
68
- cardUuid?: string | undefined;
69
- cardMask?: string | undefined;
70
- recurrenceType: string;
71
- recurrenceTime: string;
63
+ card?: BasicCardDTO | undefined;
64
+ [key: string]: unknown;
72
65
  }
73
66
  export interface MembershipCreateAndPayDTO {
74
67
  membership: MembershipDTO;
@@ -0,0 +1,6 @@
1
+ export interface BasicCardDTO {
2
+ uuid: string;
3
+ gateway: string;
4
+ brand: string;
5
+ mask: string;
6
+ }
@@ -0,0 +1 @@
1
+ export * from './DTOs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wsp-contracts",
3
- "version": "1.0.76",
3
+ "version": "1.0.78",
4
4
  "description": "DTOs y event-schemas compartidos entre microservicios de WonaSports. Solo tipos (declarations).",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -14,7 +14,8 @@
14
14
  "./purchase": { "types": "./dist/purchase/index.d.ts" },
15
15
  "./membership": { "types": "./dist/membership/index.d.ts" },
16
16
  "./wallet": { "types": "./dist/wallet/index.d.ts" },
17
- "./notification": { "types": "./dist/notification/index.d.ts" }
17
+ "./notification": { "types": "./dist/notification/index.d.ts" },
18
+ "./payments": { "types": "./dist/payments/index.d.ts" }
18
19
  },
19
20
  "scripts": {
20
21
  "build": "tsc -p tsconfig.json",