@stackcine/contracts 1.8.0 → 1.8.1
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.
- package/gen/ts/payment.ts +1 -1
- package/package.json +1 -1
- package/proto/payment.proto +19 -19
package/gen/ts/payment.ts
CHANGED
package/package.json
CHANGED
package/proto/payment.proto
CHANGED
|
@@ -3,38 +3,38 @@ syntax = "proto3";
|
|
|
3
3
|
package payment.v1;
|
|
4
4
|
|
|
5
5
|
service PaymentService {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
rpc CreatePayment(CreatePaymentRequest) returns (CreatePaymentResponse);
|
|
7
|
+
rpc ProcessPaymentEvent(ProcessPaymentEventRequest) returns (ProcessPaymentEventResponse);
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
message CreatePaymentRequest {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
string user_id = 1;
|
|
12
|
+
string screening_id = 2;
|
|
13
|
+
repeated SeatInput seats = 3;
|
|
14
|
+
optional string payment_method_id = 4;
|
|
15
|
+
bool save_payment_method = 5;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
message CreatePaymentResponse {
|
|
19
|
-
|
|
19
|
+
string url = 1;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
message ProcessPaymentEventRequest {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
23
|
+
string event = 1;
|
|
24
|
+
string payment_id = 2;
|
|
25
|
+
string booking_id = 3;
|
|
26
|
+
string user_id = 4;
|
|
27
|
+
bool save_payment_method = 5;
|
|
28
|
+
string provider_methdod_id = 6;
|
|
29
|
+
string card_first6 = 7;
|
|
30
|
+
string card_last4 = 8;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
message ProcessPaymentEventResponse {
|
|
34
|
-
|
|
34
|
+
bool ok = 1;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
message SeatInput {
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
string seat_id = 1;
|
|
39
|
+
int32 price = 2;
|
|
40
40
|
}
|