@jealous-robot-dev/shared-types-responses 1.55.9 → 1.55.11
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,10 @@
|
|
1
|
-
import { EventTypes,
|
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
|
14
|
-
|
15
|
-
|
16
|
-
SUCCEDED = "SUCCEDED",
|
17
|
-
FAILED = "FAILED"
|
19
|
+
export interface SalesTaxDetails {
|
20
|
+
amount: number;
|
21
|
+
behaviour: TaxBehaviour;
|
18
22
|
}
|
19
|
-
export interface
|
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
|
50
|
-
|
51
|
-
|
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.
|
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
|
}
|