payroll.pb.go 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.34.2
  4. // protoc v5.27.1
  5. // source: payroll/v1/payroll.proto
  6. package payrollpb
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. timestamppb "google.golang.org/protobuf/types/known/timestamppb"
  11. )
  12. // RunPayrollCycleRequest is the generated request message.
  13. type RunPayrollCycleRequest struct {
  14. state protoimpl.MessageState
  15. sizeCache protoimpl.SizeCache
  16. unknownFields protoimpl.UnknownFields
  17. CycleId string `protobuf:"bytes,1,opt,name=cycle_id,json=cycleId,proto3" json:"cycle_id,omitempty"`
  18. DryRun bool `protobuf:"varint,2,opt,name=dry_run,json=dryRun,proto3" json:"dry_run,omitempty"`
  19. Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"`
  20. }
  21. func (x *RunPayrollCycleRequest) GetCycleId() string {
  22. if x != nil {
  23. return x.CycleId
  24. }
  25. return ""
  26. }
  27. func (x *RunPayrollCycleRequest) GetDryRun() bool {
  28. if x != nil {
  29. return x.DryRun
  30. }
  31. return false
  32. }
  33. func (x *RunPayrollCycleRequest) GetReason() string {
  34. if x != nil {
  35. return x.Reason
  36. }
  37. return ""
  38. }
  39. func (x *RunPayrollCycleRequest) Reset() { *x = RunPayrollCycleRequest{} }
  40. func (x *RunPayrollCycleRequest) String() string { return protoimpl.X.MessageStringOf(x) }
  41. // RunPayrollCycleResponse is the generated response message.
  42. type RunPayrollCycleResponse struct {
  43. state protoimpl.MessageState
  44. sizeCache protoimpl.SizeCache
  45. unknownFields protoimpl.UnknownFields
  46. CycleId string `protobuf:"bytes,1,opt,name=cycle_id,json=cycleId,proto3" json:"cycle_id,omitempty"`
  47. Payslips []*Payslip `protobuf:"bytes,2,rep,name=payslips,proto3" json:"payslips,omitempty"`
  48. GrossCents int64 `protobuf:"varint,3,opt,name=gross_cents,json=grossCents,proto3" json:"gross_cents,omitempty"`
  49. NetCents int64 `protobuf:"varint,4,opt,name=net_cents,json=netCents,proto3" json:"net_cents,omitempty"`
  50. }
  51. func (x *RunPayrollCycleResponse) GetPayslips() []*Payslip {
  52. if x != nil {
  53. return x.Payslips
  54. }
  55. return nil
  56. }
  57. func (x *RunPayrollCycleResponse) Reset() { *x = RunPayrollCycleResponse{} }
  58. func (x *RunPayrollCycleResponse) String() string { return protoimpl.X.MessageStringOf(x) }
  59. // Payslip is the generated payslip message.
  60. type Payslip struct {
  61. state protoimpl.MessageState
  62. sizeCache protoimpl.SizeCache
  63. unknownFields protoimpl.UnknownFields
  64. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  65. CycleId string `protobuf:"bytes,2,opt,name=cycle_id,json=cycleId,proto3" json:"cycle_id,omitempty"`
  66. EmployeeId string `protobuf:"bytes,3,opt,name=employee_id,json=employeeId,proto3" json:"employee_id,omitempty"`
  67. GrossCents int64 `protobuf:"varint,4,opt,name=gross_cents,json=grossCents,proto3" json:"gross_cents,omitempty"`
  68. DeductionCents int64 `protobuf:"varint,5,opt,name=deduction_cents,json=deductionCents,proto3" json:"deduction_cents,omitempty"`
  69. NetCents int64 `protobuf:"varint,6,opt,name=net_cents,json=netCents,proto3" json:"net_cents,omitempty"`
  70. PeriodFrom *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=period_from,json=periodFrom,proto3" json:"period_from,omitempty"`
  71. PeriodTo *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=period_to,json=periodTo,proto3" json:"period_to,omitempty"`
  72. }
  73. func (x *Payslip) GetId() string {
  74. if x != nil {
  75. return x.Id
  76. }
  77. return ""
  78. }
  79. func (x *Payslip) GetNetCents() int64 {
  80. if x != nil {
  81. return x.NetCents
  82. }
  83. return 0
  84. }
  85. func (x *Payslip) Reset() { *x = Payslip{} }
  86. func (x *Payslip) String() string { return protoimpl.X.MessageStringOf(x) }
  87. // PayrollCycle is the generated cycle message.
  88. type PayrollCycle struct {
  89. state protoimpl.MessageState
  90. sizeCache protoimpl.SizeCache
  91. unknownFields protoimpl.UnknownFields
  92. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  93. Start *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=start,proto3" json:"start,omitempty"`
  94. End *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=end,proto3" json:"end,omitempty"`
  95. Status string `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"`
  96. }
  97. func (x *PayrollCycle) GetId() string {
  98. if x != nil {
  99. return x.Id
  100. }
  101. return ""
  102. }
  103. func (x *PayrollCycle) Reset() { *x = PayrollCycle{} }
  104. func (x *PayrollCycle) String() string { return protoimpl.X.MessageStringOf(x) }
  105. var file_payroll_v1_payroll_proto_rawDesc = []byte{
  106. 0x0a, 0x18, 0x70, 0x61, 0x79, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x79,
  107. 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x70, 0x61, 0x79, 0x72,
  108. }
  109. var file_payroll_v1_payroll_proto_goTypes = []any{
  110. (*RunPayrollCycleRequest)(nil),
  111. (*RunPayrollCycleResponse)(nil),
  112. (*Payslip)(nil),
  113. (*PayrollCycle)(nil),
  114. }
  115. var File_payroll_v1_payroll_proto protoreflect.FileDescriptor