@platfformx/proto-contracts 1.4.4 → 1.4.5

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.
@@ -3,7 +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
+ currency?: string | undefined;
7
7
  }
8
8
  export interface CreateRefundResponse {
9
9
  ok: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platfformx/proto-contracts",
3
- "version": "1.4.4",
3
+ "version": "1.4.5",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -6,12 +6,12 @@ service RefundService {
6
6
  rpc CreateRefund (CreateRefundRequest) returns (CreateRefundResponse);
7
7
  }
8
8
 
9
-
10
9
  message CreateRefundRequest {
11
- string payment_id = 1;
12
- int64 amount = 2;
13
- string currency = 3;
10
+ string payment_id = 1;
11
+ int64 amount = 2;
12
+ optional string currency = 3;
14
13
  }
14
+
15
15
  message CreateRefundResponse {
16
16
  bool ok = 1;
17
17
  }