| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.34.2
- // protoc v5.27.1
- // source: payroll/v1/payroll.proto
- package payrollpb
- import (
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- timestamppb "google.golang.org/protobuf/types/known/timestamppb"
- )
- // RunPayrollCycleRequest is the generated request message.
- type RunPayrollCycleRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- CycleId string `protobuf:"bytes,1,opt,name=cycle_id,json=cycleId,proto3" json:"cycle_id,omitempty"`
- DryRun bool `protobuf:"varint,2,opt,name=dry_run,json=dryRun,proto3" json:"dry_run,omitempty"`
- Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"`
- }
- func (x *RunPayrollCycleRequest) GetCycleId() string {
- if x != nil {
- return x.CycleId
- }
- return ""
- }
- func (x *RunPayrollCycleRequest) GetDryRun() bool {
- if x != nil {
- return x.DryRun
- }
- return false
- }
- func (x *RunPayrollCycleRequest) GetReason() string {
- if x != nil {
- return x.Reason
- }
- return ""
- }
- func (x *RunPayrollCycleRequest) Reset() { *x = RunPayrollCycleRequest{} }
- func (x *RunPayrollCycleRequest) String() string { return protoimpl.X.MessageStringOf(x) }
- // RunPayrollCycleResponse is the generated response message.
- type RunPayrollCycleResponse struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- CycleId string `protobuf:"bytes,1,opt,name=cycle_id,json=cycleId,proto3" json:"cycle_id,omitempty"`
- Payslips []*Payslip `protobuf:"bytes,2,rep,name=payslips,proto3" json:"payslips,omitempty"`
- GrossCents int64 `protobuf:"varint,3,opt,name=gross_cents,json=grossCents,proto3" json:"gross_cents,omitempty"`
- NetCents int64 `protobuf:"varint,4,opt,name=net_cents,json=netCents,proto3" json:"net_cents,omitempty"`
- }
- func (x *RunPayrollCycleResponse) GetPayslips() []*Payslip {
- if x != nil {
- return x.Payslips
- }
- return nil
- }
- func (x *RunPayrollCycleResponse) Reset() { *x = RunPayrollCycleResponse{} }
- func (x *RunPayrollCycleResponse) String() string { return protoimpl.X.MessageStringOf(x) }
- // Payslip is the generated payslip message.
- type Payslip struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
- CycleId string `protobuf:"bytes,2,opt,name=cycle_id,json=cycleId,proto3" json:"cycle_id,omitempty"`
- EmployeeId string `protobuf:"bytes,3,opt,name=employee_id,json=employeeId,proto3" json:"employee_id,omitempty"`
- GrossCents int64 `protobuf:"varint,4,opt,name=gross_cents,json=grossCents,proto3" json:"gross_cents,omitempty"`
- DeductionCents int64 `protobuf:"varint,5,opt,name=deduction_cents,json=deductionCents,proto3" json:"deduction_cents,omitempty"`
- NetCents int64 `protobuf:"varint,6,opt,name=net_cents,json=netCents,proto3" json:"net_cents,omitempty"`
- PeriodFrom *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=period_from,json=periodFrom,proto3" json:"period_from,omitempty"`
- PeriodTo *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=period_to,json=periodTo,proto3" json:"period_to,omitempty"`
- }
- func (x *Payslip) GetId() string {
- if x != nil {
- return x.Id
- }
- return ""
- }
- func (x *Payslip) GetNetCents() int64 {
- if x != nil {
- return x.NetCents
- }
- return 0
- }
- func (x *Payslip) Reset() { *x = Payslip{} }
- func (x *Payslip) String() string { return protoimpl.X.MessageStringOf(x) }
- // PayrollCycle is the generated cycle message.
- type PayrollCycle struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
- Start *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=start,proto3" json:"start,omitempty"`
- End *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=end,proto3" json:"end,omitempty"`
- Status string `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"`
- }
- func (x *PayrollCycle) GetId() string {
- if x != nil {
- return x.Id
- }
- return ""
- }
- func (x *PayrollCycle) Reset() { *x = PayrollCycle{} }
- func (x *PayrollCycle) String() string { return protoimpl.X.MessageStringOf(x) }
- var file_payroll_v1_payroll_proto_rawDesc = []byte{
- 0x0a, 0x18, 0x70, 0x61, 0x79, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x79,
- 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x70, 0x61, 0x79, 0x72,
- }
- var file_payroll_v1_payroll_proto_goTypes = []any{
- (*RunPayrollCycleRequest)(nil),
- (*RunPayrollCycleResponse)(nil),
- (*Payslip)(nil),
- (*PayrollCycle)(nil),
- }
- var File_payroll_v1_payroll_proto protoreflect.FileDescriptor
|