2020-05-11 20:57:46 +02:00
|
|
|
// Copyright (C) 2019 Storj Labs, Inc.
|
|
|
|
// See LICENSE for copying information.
|
|
|
|
|
|
|
|
syntax = "proto3";
|
|
|
|
option go_package = "storj.io/common/pb";
|
|
|
|
|
|
|
|
package nodestats;
|
|
|
|
|
|
|
|
import "gogo.proto";
|
|
|
|
import "google/protobuf/timestamp.proto";
|
|
|
|
|
|
|
|
service Payments {
|
|
|
|
rpc PrepareInvoiceRecords(PrepareInvoiceRecordsRequest) returns (PrepareInvoiceRecordsResponse);
|
|
|
|
rpc ApplyInvoiceRecords(ApplyInvoiceRecordsRequest) returns (ApplyInvoiceRecordsResponse);
|
|
|
|
rpc ApplyInvoiceCoupons(ApplyInvoiceCouponsRequest) returns (ApplyInvoiceCouponsResponse);
|
|
|
|
rpc ApplyInvoiceCredits(ApplyInvoiceCreditsRequest) returns (ApplyInvoiceCreditsResponse);
|
|
|
|
rpc CreateInvoices(CreateInvoicesRequest) returns (CreateInvoicesResponse);
|
|
|
|
}
|
|
|
|
|
|
|
|
message PrepareInvoiceRecordsRequest {
|
|
|
|
google.protobuf.Timestamp period = 1 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false];
|
|
|
|
}
|
|
|
|
|
|
|
|
message PrepareInvoiceRecordsResponse {}
|
|
|
|
|
2020-05-29 15:08:11 +02:00
|
|
|
message ApplyInvoiceRecordsRequest {
|
|
|
|
google.protobuf.Timestamp period = 1 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false];
|
|
|
|
}
|
|
|
|
|
2020-05-11 20:57:46 +02:00
|
|
|
message ApplyInvoiceRecordsResponse {}
|
|
|
|
|
2020-05-29 15:08:11 +02:00
|
|
|
message ApplyInvoiceCouponsRequest {
|
|
|
|
google.protobuf.Timestamp period = 1 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false];
|
|
|
|
}
|
|
|
|
|
2020-05-11 20:57:46 +02:00
|
|
|
message ApplyInvoiceCouponsResponse {}
|
|
|
|
|
2020-05-29 15:08:11 +02:00
|
|
|
message ApplyInvoiceCreditsRequest {
|
|
|
|
google.protobuf.Timestamp period = 1 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false];
|
|
|
|
}
|
|
|
|
|
2020-05-11 20:57:46 +02:00
|
|
|
message ApplyInvoiceCreditsResponse {}
|
|
|
|
|
2020-05-29 15:08:11 +02:00
|
|
|
message CreateInvoicesRequest {
|
|
|
|
google.protobuf.Timestamp period = 1 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false];
|
|
|
|
}
|
|
|
|
|
2020-05-11 20:57:46 +02:00
|
|
|
message CreateInvoicesResponse {}
|