@just-education-org/rpc-contracts 1.17.0 → 1.17.2
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.
|
@@ -6,6 +6,8 @@ export interface CreatePaymentRequest {
|
|
|
6
6
|
seats: SeatInput[];
|
|
7
7
|
paymentMethodId?: string | undefined;
|
|
8
8
|
savePaymentMethod: boolean;
|
|
9
|
+
/** ISO 4217, lowercase (e.g. "usd or uah"), as required by Stripe */
|
|
10
|
+
currency: string;
|
|
9
11
|
}
|
|
10
12
|
export interface CreatePaymentResponse {
|
|
11
13
|
url: string;
|
|
@@ -17,10 +19,10 @@ export interface ProcessPaymentEventRequest {
|
|
|
17
19
|
bookingId: string;
|
|
18
20
|
userId: string;
|
|
19
21
|
savePaymentMethod: boolean;
|
|
20
|
-
|
|
22
|
+
providerMethodId?: string | undefined;
|
|
21
23
|
/** bin */
|
|
22
|
-
cardFirst6
|
|
23
|
-
cardLast4
|
|
24
|
+
cardFirst6?: string | undefined;
|
|
25
|
+
cardLast4?: string | undefined;
|
|
24
26
|
}
|
|
25
27
|
export interface ProcessPaymentEventResponse {
|
|
26
28
|
ok: boolean;
|
package/package.json
CHANGED
package/proto/payment.proto
CHANGED
|
@@ -13,6 +13,7 @@ message CreatePaymentRequest {
|
|
|
13
13
|
repeated SeatInput seats = 3;
|
|
14
14
|
optional string payment_method_id = 4;
|
|
15
15
|
bool save_payment_method = 5;
|
|
16
|
+
string currency = 6; // ISO 4217, lowercase (e.g. "usd or uah"), as required by Stripe
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
message CreatePaymentResponse {
|
|
@@ -25,9 +26,9 @@ message ProcessPaymentEventRequest {
|
|
|
25
26
|
string booking_id = 3;
|
|
26
27
|
string user_id = 4;
|
|
27
28
|
bool save_payment_method = 5;
|
|
28
|
-
string
|
|
29
|
-
string card_first6 = 7; // bin
|
|
30
|
-
string card_last4 = 8;
|
|
29
|
+
optional string provider_method_id = 6;
|
|
30
|
+
optional string card_first6 = 7; // bin
|
|
31
|
+
optional string card_last4 = 8;
|
|
31
32
|
}
|
|
32
33
|
|
|
33
34
|
message ProcessPaymentEventResponse {
|