@platfformx/proto-contracts 1.5.4 → 1.5.6
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.
|
@@ -2,16 +2,15 @@ import { Observable } from "rxjs";
|
|
|
2
2
|
export declare const protobufPackage = "refund.v1";
|
|
3
3
|
export interface CreateRefundRequest {
|
|
4
4
|
providerId: string;
|
|
5
|
-
paymentId: string;
|
|
6
5
|
amount: number;
|
|
7
6
|
currency?: string | undefined;
|
|
8
7
|
}
|
|
9
8
|
export interface CreateRefundResponse {
|
|
10
9
|
ok: boolean;
|
|
11
|
-
|
|
10
|
+
refundProviderId: string;
|
|
12
11
|
}
|
|
13
12
|
export interface ConfirmRefundRequest {
|
|
14
|
-
|
|
13
|
+
refundProviderId: string;
|
|
15
14
|
status: string;
|
|
16
15
|
}
|
|
17
16
|
export interface ConfirmRefundResponse {
|
package/package.json
CHANGED
|
@@ -9,20 +9,19 @@ service RefundService {
|
|
|
9
9
|
|
|
10
10
|
message CreateRefundRequest {
|
|
11
11
|
string providerId = 1;
|
|
12
|
-
string paymentId = 2;
|
|
13
12
|
int64 amount = 32;
|
|
14
13
|
optional string currency = 4;
|
|
15
14
|
}
|
|
16
15
|
|
|
17
16
|
message CreateRefundResponse {
|
|
18
17
|
bool ok = 1;
|
|
19
|
-
string
|
|
18
|
+
string refundProviderId = 2;
|
|
20
19
|
}
|
|
21
20
|
message ConfirmRefundRequest {
|
|
22
|
-
string
|
|
21
|
+
string refundProviderId = 1;
|
|
23
22
|
string status = 2;
|
|
24
23
|
}
|
|
25
24
|
|
|
26
25
|
message ConfirmRefundResponse {
|
|
27
26
|
bool success = 1;
|
|
28
|
-
}
|
|
27
|
+
}
|