2020-08-13 12:43:47 +00:00
|
|
|
package accounting
|
2020-08-12 19:06:10 +00:00
|
|
|
|
|
|
|
import (
|
2020-08-14 16:00:16 +00:00
|
|
|
refs "github.com/nspcc-dev/neofs-api-go/v2/refs/grpc"
|
2020-08-20 10:41:55 +00:00
|
|
|
session "github.com/nspcc-dev/neofs-api-go/v2/session/grpc"
|
2020-08-12 19:06:10 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// SetOwnerId sets identifier of the account owner.
|
|
|
|
func (m *BalanceRequest_Body) SetOwnerId(v *refs.OwnerID) {
|
|
|
|
if m != nil {
|
|
|
|
m.OwnerId = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetBody sets body of the request.
|
|
|
|
func (m *BalanceRequest) SetBody(v *BalanceRequest_Body) {
|
|
|
|
if m != nil {
|
|
|
|
m.Body = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the request.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *BalanceRequest) SetMetaHeader(v *session.RequestMetaHeader) {
|
2020-08-12 19:06:10 +00:00
|
|
|
if m != nil {
|
|
|
|
m.MetaHeader = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the request.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *BalanceRequest) SetVerifyHeader(v *session.RequestVerificationHeader) {
|
2020-08-12 19:06:10 +00:00
|
|
|
if m != nil {
|
|
|
|
m.VerifyHeader = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetBalance sets balance value of the response.
|
|
|
|
func (m *BalanceResponse_Body) SetBalance(v *Decimal) {
|
|
|
|
if m != nil {
|
|
|
|
m.Balance = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetBody sets body of the response.
|
|
|
|
func (m *BalanceResponse) SetBody(v *BalanceResponse_Body) {
|
|
|
|
if m != nil {
|
|
|
|
m.Body = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the response.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *BalanceResponse) SetMetaHeader(v *session.ResponseMetaHeader) {
|
2020-08-12 19:06:10 +00:00
|
|
|
if m != nil {
|
|
|
|
m.MetaHeader = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the response.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *BalanceResponse) SetVerifyHeader(v *session.ResponseVerificationHeader) {
|
2020-08-12 19:06:10 +00:00
|
|
|
if m != nil {
|
|
|
|
m.VerifyHeader = v
|
|
|
|
}
|
|
|
|
}
|