-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubscription_billing.proto
56 lines (46 loc) · 1.93 KB
/
subscription_billing.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
syntax = "proto3";
option csharp_namespace = "GsServer.Protobufs";
import "gs_protobufs/protos/custom_types/decimal_value.proto";
import "gs_protobufs/protos/custom_types/void_value.proto";
import "gs_protobufs/protos/payment.proto";
import "google/protobuf/wrappers.proto";
package protos.subscription_billing;
service SubscriptionBillingService {
rpc GetPaginatedAsync(GetPaginatedSubscriptionBillingsRequest) returns (GetPaginatedSubscriptionBillingsResponse);
rpc GetByIdAsync(GetSubscriptionBillingByIdRequest) returns (GetSubscriptionBillingByIdResponse);
rpc PostAsync(CreateSubscriptionBillingRequest) returns (custom_types.void.VoidValue);
rpc PutAsync(UpdateSubscriptionBillingRequest) returns (custom_types.void.VoidValue);
rpc DeleteAsync(DeleteSubscriptionBillingRequest) returns (custom_types.void.VoidValue);
}
message GetPaginatedSubscriptionBillingsRequest {
google.protobuf.StringValue cursor = 1;
}
message GetPaginatedSubscriptionBillingsResponse {
repeated GetSubscriptionBillingByIdResponse subscriptionBillings = 1;
google.protobuf.StringValue next_cursor = 2;
}
message GetSubscriptionBillingByIdRequest {
string subscription_billing_id = 1;
}
message GetSubscriptionBillingByIdResponse {
string subscription_billing_id = 1;
string observations = 2;
custom_types.decimal_value.DecimalValue total_discount = 3;
protos.payment.GetPaymentByIdResponse payment = 4;
}
message CreateSubscriptionBillingRequest {
string subscription_id = 1;
string observations = 2;
custom_types.decimal_value.DecimalValue total_discount = 3;
protos.payment.CreatePaymentRequest payment = 4;
}
message UpdateSubscriptionBillingRequest {
string subscription_billing_id = 1;
string subscription_id = 2;
string observations = 3;
custom_types.decimal_value.DecimalValue total_discount = 4;
protos.payment.GetPaymentByIdResponse payment = 5;
}
message DeleteSubscriptionBillingRequest {
string subscription_billing_id = 1;
}