@platfformx/proto-contracts 1.3.15 → 1.4.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.
@@ -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;
@@ -3,6 +3,7 @@ export declare const protobufPackage = "refund.v1";
3
3
  export interface CreateRefundRequest {
4
4
  paymentId: string;
5
5
  amount: number;
6
+ currency: string;
6
7
  }
7
8
  export interface CreateRefundResponse {
8
9
  ok: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platfformx/proto-contracts",
3
- "version": "1.3.15",
3
+ "version": "1.4.1",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -15,7 +15,7 @@ service PaymentService {
15
15
  message CreatePaymentRequest {
16
16
  string user_id = 1;
17
17
  string currency = 2;
18
- double amount = 3;
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 provider_id = 1;
30
+ string providerId = 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 bank = 2;
56
- string brand = 3;
57
- string first6 = 4;
58
- string last4 = 5;
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 {
@@ -9,7 +9,8 @@ service RefundService {
9
9
 
10
10
  message CreateRefundRequest {
11
11
  string payment_id = 1;
12
- double amount = 2;
12
+ int64 amount = 2;
13
+ string currency = 3;
13
14
  }
14
15
  message CreateRefundResponse {
15
16
  bool ok = 1;