@sendhome/common 1.0.177 → 1.0.179

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.
@@ -2,27 +2,12 @@ import { Subjects } from "../subjects/subjects";
2
2
  import { PaymentStatus } from "../types/payment-status";
3
3
  import { SendCountry } from "../types/send-country";
4
4
  import { ReceiveCountry } from "../types/receive-country";
5
- interface CardDetails {
6
- card_number: string;
7
- expiration_date: string;
8
- cvv: string;
9
- }
10
- interface PaypalDetails {
11
- email: string;
12
- }
13
- interface ApplePayDetails {
14
- apple_id: string;
15
- }
16
- interface BankTransferDetails {
17
- account_number: string;
18
- bank_name: string;
19
- }
20
- declare type PaymentDetails = CardDetails | PaypalDetails | ApplePayDetails | BankTransferDetails;
21
5
  export interface PaymentCreatedEvent {
22
6
  subject: Subjects.PaymentCreated;
23
7
  data: {
24
8
  id: string;
25
9
  payment_id: number;
10
+ payment_intent: string;
26
11
  payment_method: "card" | "paypal" | "applePay" | "bankTransfer";
27
12
  amount: number;
28
13
  company: string;
@@ -31,11 +16,9 @@ export interface PaymentCreatedEvent {
31
16
  order: string;
32
17
  send_country: SendCountry;
33
18
  receive_country: ReceiveCountry;
34
- details: PaymentDetails;
35
19
  created_at: Date;
36
20
  updated_at: Date;
37
21
  status: PaymentStatus;
38
22
  version: number;
39
23
  };
40
24
  }
41
- export {};
@@ -2,27 +2,12 @@ import { Subjects } from "../subjects/subjects";
2
2
  import { PaymentStatus } from "../types/payment-status";
3
3
  import { SendCountry } from "../types/send-country";
4
4
  import { ReceiveCountry } from "../types/receive-country";
5
- interface CardDetails {
6
- card_number: string;
7
- expiration_date: string;
8
- cvv: string;
9
- }
10
- interface PaypalDetails {
11
- email: string;
12
- }
13
- interface ApplePayDetails {
14
- apple_id: string;
15
- }
16
- interface BankTransferDetails {
17
- account_number: string;
18
- bank_name: string;
19
- }
20
- declare type PaymentDetails = CardDetails | PaypalDetails | ApplePayDetails | BankTransferDetails;
21
5
  export interface PaymentUpdatedEvent {
22
6
  subject: Subjects.PaymentUpdated;
23
7
  data: {
24
8
  id: string;
25
9
  payment_id: number;
10
+ payment_intent: string;
26
11
  payment_method: "card" | "paypal" | "applePay" | "bankTransfer";
27
12
  amount: number;
28
13
  company: string;
@@ -31,11 +16,9 @@ export interface PaymentUpdatedEvent {
31
16
  order: string;
32
17
  send_country: SendCountry;
33
18
  receive_country: ReceiveCountry;
34
- details: PaymentDetails;
35
19
  created_at: Date;
36
20
  updated_at: Date;
37
21
  status: PaymentStatus;
38
22
  version: number;
39
23
  };
40
24
  }
41
- export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sendhome/common",
3
- "version": "1.0.177",
3
+ "version": "1.0.179",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",