@jealous-robot-dev/shared-types-responses 1.57.7 → 1.57.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,14 +1,17 @@
1
- import { EventTypes, PerformancePayoutStatus } from '@jealous-robot-dev/drophr-common';
1
+ import { EventTypes, PerformancePayoutStatus, TaxBehaviour } from '@jealous-robot-dev/drophr-common';
2
2
  export interface HostPayoutSeance {
3
3
  sid: string;
4
4
  total: number;
5
+ currency: string;
5
6
  duration: number;
6
7
  earnings: number;
7
8
  starts_at: number;
8
9
  customers: number;
9
- connect_fee: number;
10
- with_fx_fee: boolean;
11
10
  availability: number;
11
+ tax?: {
12
+ amount: number;
13
+ behaviour: TaxBehaviour;
14
+ };
12
15
  status: PerformancePayoutStatus;
13
16
  }
14
17
  export interface HostPayoutsEvt {
@@ -16,12 +19,14 @@ export interface HostPayoutsEvt {
16
19
  pic: string;
17
20
  name: string;
18
21
  type: EventTypes;
22
+ currency: string;
19
23
  total_income: number;
20
24
  last_updated: number;
21
25
  seances: HostPayoutSeance[];
22
26
  }
23
27
  export interface HostPayoutsMonth {
24
28
  id: number;
29
+ currency: string;
25
30
  work_hours: number;
26
31
  total_income: number;
27
32
  payouts_received: number;
@@ -35,9 +35,8 @@ export interface PaymentDetails {
35
35
  service_fee?: number;
36
36
  availability?: number;
37
37
  status?: string | null;
38
- with_connect_fee?: boolean;
39
- payoutStatus?: PerformancePayoutStatus;
40
- sales_tax?: {
38
+ payout_status?: PerformancePayoutStatus;
39
+ tax?: {
41
40
  amount: number;
42
41
  behaviour: TaxBehaviour;
43
42
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jealous-robot-dev/shared-types-responses",
3
- "version": "1.57.7",
3
+ "version": "1.57.8",
4
4
  "description": "Meetle common types of API responses",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",