2020-01-30 11:41:24 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
package accounting;
|
2020-03-31 06:58:22 +00:00
|
|
|
option go_package = "github.com/nspcc-dev/neofs-api-go/accounting";
|
2020-02-05 12:14:39 +00:00
|
|
|
option csharp_namespace = "NeoFS.API.Accounting";
|
2020-01-30 11:41:24 +00:00
|
|
|
|
|
|
|
import "service/meta.proto";
|
|
|
|
import "service/verify.proto";
|
2020-08-05 16:49:16 +00:00
|
|
|
import "refs/types.proto";
|
2020-01-30 11:41:24 +00:00
|
|
|
|
|
|
|
// Accounting is a service that provides access for accounting balance
|
|
|
|
// information
|
|
|
|
service Accounting {
|
|
|
|
// Balance returns current balance status of the NeoFS user
|
|
|
|
rpc Balance(BalanceRequest) returns (BalanceResponse);
|
|
|
|
}
|
|
|
|
|
|
|
|
message BalanceRequest {
|
2020-08-05 16:49:16 +00:00
|
|
|
// OwnerID carries user identifier in NeoFS system.
|
|
|
|
refs.OwnerID OwnerID = 1;
|
2020-01-30 11:41:24 +00:00
|
|
|
// RequestMetaHeader contains information about request meta headers (should be embedded into message)
|
2020-08-05 17:10:04 +00:00
|
|
|
service.RequestMetaHeader Meta = 98;
|
2020-01-30 11:41:24 +00:00
|
|
|
// RequestVerificationHeader is a set of signatures of every NeoFS Node that processed request (should be embedded into message)
|
2020-08-05 17:10:04 +00:00
|
|
|
service.RequestVerificationHeader Verify = 99;
|
2020-01-30 11:41:24 +00:00
|
|
|
}
|
|
|
|
|
2020-08-05 17:32:10 +00:00
|
|
|
// Decimal represents the decimal numbers.
|
|
|
|
message Decimal {
|
|
|
|
// Value carries number value.
|
|
|
|
int64 Value = 1;
|
|
|
|
|
|
|
|
// Precision carries value precision.
|
|
|
|
uint32 Precision = 2;
|
|
|
|
}
|
|
|
|
|
2020-01-30 11:41:24 +00:00
|
|
|
message BalanceResponse {
|
|
|
|
// Balance contains current account balance state
|
2020-08-05 17:32:10 +00:00
|
|
|
Decimal Balance = 1;
|
2020-01-30 11:41:24 +00:00
|
|
|
}
|