@jealous-robot-dev/shared-types-responses 1.55.10 → 1.55.11

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,4 +1,10 @@
1
- import { EventTypes, UserAddress } from '@jealous-robot-dev/drophr-common';
1
+ import { EventTypes, TaxBehaviour } from '@jealous-robot-dev/drophr-common';
2
+ export declare enum BookingResultResponse {
3
+ REDIRECT_TO_GUESTROOM = "REDIRECT_TO_GUESTROOM",
4
+ NOT_FOUND = "NOT_FOUND",
5
+ SUCCEDED = "SUCCEDED",
6
+ FAILED = "FAILED"
7
+ }
2
8
  export interface BookedEventPayload {
3
9
  id: string;
4
10
  pic: string;
@@ -10,13 +16,11 @@ export interface BookedEventPayload {
10
16
  type: EventTypes;
11
17
  starts_at: number;
12
18
  }
13
- export declare enum BookingResultResponse {
14
- REDIRECT_TO_GUESTROOM = "REDIRECT_TO_GUESTROOM",
15
- NOT_FOUND = "NOT_FOUND",
16
- SUCCEDED = "SUCCEDED",
17
- FAILED = "FAILED"
19
+ export interface SalesTaxDetails {
20
+ amount: number;
21
+ behaviour: TaxBehaviour;
18
22
  }
19
- export interface CheckoutEventDetails {
23
+ export interface CheckoutDetails {
20
24
  event_details: {
21
25
  pic: string;
22
26
  name: string;
@@ -36,17 +40,13 @@ export interface CheckoutEventDetails {
36
40
  net: number;
37
41
  currency: string;
38
42
  service_fee: number;
43
+ tax?: SalesTaxDetails;
39
44
  };
40
45
  };
41
- stripe: {
42
- amount: number;
43
- currency: string;
44
- public_key: string;
45
- intent_secret: string | null;
46
- default_address: UserAddress | null;
47
- };
48
46
  }
49
- export declare enum FeeChargingReponses {
50
- SUCCEDED = "SUCCEDED",
51
- FAILED = "FAILED"
47
+ export interface CheckoutSubmission {
48
+ amount: number;
49
+ currency: string;
50
+ public_key: string;
51
+ intent_secret: string;
52
52
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FeeChargingReponses = exports.BookingResultResponse = void 0;
3
+ exports.BookingResultResponse = void 0;
4
4
  var BookingResultResponse;
5
5
  (function (BookingResultResponse) {
6
6
  BookingResultResponse["REDIRECT_TO_GUESTROOM"] = "REDIRECT_TO_GUESTROOM";
@@ -8,8 +8,3 @@ var BookingResultResponse;
8
8
  BookingResultResponse["SUCCEDED"] = "SUCCEDED";
9
9
  BookingResultResponse["FAILED"] = "FAILED";
10
10
  })(BookingResultResponse = exports.BookingResultResponse || (exports.BookingResultResponse = {}));
11
- var FeeChargingReponses;
12
- (function (FeeChargingReponses) {
13
- FeeChargingReponses["SUCCEDED"] = "SUCCEDED";
14
- FeeChargingReponses["FAILED"] = "FAILED";
15
- })(FeeChargingReponses = exports.FeeChargingReponses || (exports.FeeChargingReponses = {}));
@@ -1,4 +1,4 @@
1
- import { EventTypes, PaymentType, PerformancePayoutStatus } from '@jealous-robot-dev/drophr-common';
1
+ import { EventTypes, PaymentType, PerformancePayoutStatus, TaxBehaviour } from '@jealous-robot-dev/drophr-common';
2
2
  export interface PaymentHistoryTransaction {
3
3
  id: string;
4
4
  amount: number;
@@ -30,7 +30,6 @@ export interface PaymentDetails {
30
30
  ts: number;
31
31
  amount: number;
32
32
  currency: string;
33
- vat?: number;
34
33
  flat_fee?: number;
35
34
  refund_fee?: number;
36
35
  service_fee?: number;
@@ -38,5 +37,9 @@ export interface PaymentDetails {
38
37
  status?: string | null;
39
38
  with_connect_fee?: boolean;
40
39
  payoutStatus?: PerformancePayoutStatus;
40
+ sales_tax: {
41
+ amount: number;
42
+ behaviour: TaxBehaviour;
43
+ };
41
44
  };
42
45
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jealous-robot-dev/shared-types-responses",
3
- "version": "1.55.10",
3
+ "version": "1.55.11",
4
4
  "description": "Meetle common types of API responses",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",