@platfformx/proto-contracts 1.3.15 → 1.4.0
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.
|
@@ -13,7 +13,7 @@ export interface CreatePaymentResponse {
|
|
|
13
13
|
clientSecret: string;
|
|
14
14
|
}
|
|
15
15
|
export interface ConfirmPaymentRequest {
|
|
16
|
-
|
|
16
|
+
paymentId: string;
|
|
17
17
|
status: string;
|
|
18
18
|
}
|
|
19
19
|
export interface ConfirmPaymentResponse {
|
|
@@ -34,10 +34,10 @@ export interface GetUserPaymentMethodsResponse {
|
|
|
34
34
|
}
|
|
35
35
|
export interface PaymentInfo {
|
|
36
36
|
id: string;
|
|
37
|
-
bank: string;
|
|
38
37
|
brand: string;
|
|
39
|
-
first6: string;
|
|
40
38
|
last4: string;
|
|
39
|
+
expMonth: number;
|
|
40
|
+
expYear: number;
|
|
41
41
|
}
|
|
42
42
|
export interface DeletePaymentMethodRequest {
|
|
43
43
|
paymentMethodId: string;
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@ service PaymentService {
|
|
|
15
15
|
message CreatePaymentRequest {
|
|
16
16
|
string user_id = 1;
|
|
17
17
|
string currency = 2;
|
|
18
|
-
|
|
18
|
+
int64 amount = 3;
|
|
19
19
|
string order_id = 4;
|
|
20
20
|
optional string payment_method_id = 5;
|
|
21
21
|
optional bool save_payment_method = 6;
|
|
@@ -27,7 +27,7 @@ message CreatePaymentResponse {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
message ConfirmPaymentRequest {
|
|
30
|
-
string
|
|
30
|
+
string payment_id = 1;
|
|
31
31
|
string status = 2;
|
|
32
32
|
}
|
|
33
33
|
message ConfirmPaymentResponse {
|
|
@@ -52,11 +52,10 @@ message GetUserPaymentMethodsResponse {
|
|
|
52
52
|
|
|
53
53
|
message PaymentInfo {
|
|
54
54
|
string id = 1;
|
|
55
|
-
string
|
|
56
|
-
string
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
55
|
+
string brand = 2;
|
|
56
|
+
string last4 = 3;
|
|
57
|
+
int32 exp_month = 4;
|
|
58
|
+
int32 exp_year = 5;
|
|
60
59
|
}
|
|
61
60
|
|
|
62
61
|
message DeletePaymentMethodRequest {
|