-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsale_billing.proto
58 lines (48 loc) · 1.82 KB
/
sale_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
57
58
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 "gs_protobufs/protos/sale.proto";
import "google/protobuf/wrappers.proto";
package protos.sale_billing;
service SaleBillingService {
rpc GetPaginatedAsync(GetPaginatedSaleBillingsRequest) returns (GetPaginatedSaleBillingsResponse);
rpc GetByIdAsync(GetSaleBillingByIdRequest) returns (GetSaleBillingByIdResponse);
rpc PostAsync(CreateSaleBillingRequest) returns (custom_types.void.VoidValue);
rpc PutAsync(UpdateSaleBillingRequest) returns (custom_types.void.VoidValue);
rpc DeleteAsync(DeleteSaleBillingRequest) returns (custom_types.void.VoidValue);
}
message GetPaginatedSaleBillingsRequest {
google.protobuf.StringValue cursor = 1;
}
message GetPaginatedSaleBillingsResponse {
repeated GetSaleBillingByIdResponse saleBillings = 1;
google.protobuf.StringValue next_cursor = 2;
}
message GetSaleBillingByIdRequest {
string sale_billing_id = 1;
}
message GetSaleBillingByIdResponse {
string sale_billing_id = 1;
sale.GetSaleByIdResponse sale = 2;
string observations = 3;
custom_types.decimal_value.DecimalValue total_discount = 4;
protos.payment.GetPaymentByIdResponse payment = 5;
}
message CreateSaleBillingRequest {
string sale_id = 1;
string observations = 2;
custom_types.decimal_value.DecimalValue total_discount = 3;
protos.payment.CreatePaymentRequest payment = 4;
}
message UpdateSaleBillingRequest {
string sale_billing_id = 1;
string sale_id = 2;
string observations = 3;
custom_types.decimal_value.DecimalValue total_discount = 4;
protos.payment.GetPaymentByIdResponse payment = 5;
}
message DeleteSaleBillingRequest {
string sale_billing_id = 1;
}