@aldiokta/protocgen 1.1.44 → 1.1.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/prisca/v1/account_assignment/account_assignment.proto +81 -0
- package/prisca/v1/account_group/account_group.proto +88 -0
- package/prisca/v1/bidding/bidding.proto +251 -0
- package/prisca/v1/chart_of_account/chart_of_account.proto +89 -0
- package/prisca/v1/core/access_manager/access_manager.proto +328 -0
- package/prisca/v1/core/auth/auth.proto +185 -0
- package/prisca/v1/core/chat_messaging/chat_messaging.proto +62 -0
- package/prisca/v1/core/company/company.proto +92 -0
- package/prisca/v1/core/currency/currency.proto +76 -0
- package/prisca/v1/core/department_material/department_material.proto +69 -0
- package/prisca/v1/core/employee/employee.proto +129 -0
- package/prisca/v1/core/file_upload/file_upload.proto +41 -0
- package/prisca/v1/core/incoterm/incoterm.proto +85 -0
- package/prisca/v1/core/item_transaction/item_transaction.proto +188 -0
- package/prisca/v1/core/job_grade/job_grade.proto +79 -0
- package/prisca/v1/core/job_position/job_position.proto +113 -0
- package/prisca/v1/core/job_title/job_title.proto +89 -0
- package/prisca/v1/core/line_of_activity/line_of_activity.proto +94 -0
- package/prisca/v1/core/line_of_approval/line_of_approval.proto +113 -0
- package/prisca/v1/core/link_data_source/link_data_source.proto +78 -0
- package/prisca/v1/core/location/location.proto +295 -0
- package/prisca/v1/core/material/material.proto +131 -0
- package/prisca/v1/core/material_group/material_group.proto +85 -0
- package/prisca/v1/core/material_type/material_type.proto +95 -0
- package/prisca/v1/core/messaging/email_template.proto +77 -0
- package/prisca/v1/core/messaging/messaging.proto +29 -0
- package/prisca/v1/core/messaging/notification.proto +144 -0
- package/prisca/v1/core/number_range/number_range.proto +89 -0
- package/prisca/v1/core/organization/organization.proto +94 -0
- package/prisca/v1/core/organization_level/organization_level.proto +77 -0
- package/prisca/v1/core/price_condition/price_condition.proto +97 -0
- package/prisca/v1/core/procurement/procurement.proto +54 -0
- package/prisca/v1/core/recipient_roles/recipient_roles.proto +10 -0
- package/prisca/v1/core/report/report.proto +90 -0
- package/prisca/v1/core/report/user_report.proto +74 -0
- package/prisca/v1/core/tax_code/tax_code.proto +82 -0
- package/prisca/v1/core/term_of_payment/term_of_payment.proto +74 -0
- package/prisca/v1/core/transaction_builder/transaction_builder.proto +366 -0
- package/prisca/v1/core/unit_of_measurement/unit_of_measurement.proto +89 -0
- package/prisca/v1/core/users/users.proto +55 -0
- package/prisca/v1/core/work_location/work_location.proto +122 -0
- package/prisca/v1/core/workflow/workflow.proto +220 -0
- package/prisca/v1/core/workspace/workspace.proto +48 -0
- package/prisca/v1/delivery_order/delivery_order.proto +116 -0
- package/prisca/v1/document_type/document_type.proto +89 -0
- package/prisca/v1/general_ledger_account/general_ledger_account.proto +100 -0
- package/prisca/v1/global/meta/meta.proto +57 -0
- package/prisca/v1/good_receipt/good_receipt.proto +118 -0
- package/prisca/v1/invoice/invoice.proto +170 -0
- package/prisca/v1/purchase_order/purchase_order.proto +292 -0
- package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx.proto +327 -0
- package/prisca/v1/purchasing_group/purchasing_group.proto +89 -0
- package/prisca/v1/purchasing_organization/purchasing_organization.proto +77 -0
- package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment.proto +81 -0
- package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant.proto +80 -0
- package/prisca/v1/quotation/quotation.proto +135 -0
- package/prisca/v1/request_for_quotation/request_for_quotation.proto +203 -0
- package/prisca/v1/valuation/valuation.proto +223 -0
- package/prisca/v1/vendor_domain/vendor_domain.proto +485 -0
- package/prisca/v1/account_assignment/account_assignment_grpc_pb.js +0 -199
- package/prisca/v1/account_assignment/account_assignment_pb.js +0 -2720
- package/prisca/v1/account_group/account_group_grpc_pb.js +0 -200
- package/prisca/v1/account_group/account_group_pb.js +0 -2983
- package/prisca/v1/bidding/bidding_grpc_pb.js +0 -350
- package/prisca/v1/bidding/bidding_pb.js +0 -8694
- package/prisca/v1/chart_of_account/chart_of_account_grpc_pb.js +0 -199
- package/prisca/v1/chart_of_account/chart_of_account_pb.js +0 -2953
- package/prisca/v1/core/access_manager/access_manager_grpc_pb.js +0 -577
- package/prisca/v1/core/access_manager/access_manager_pb.js +0 -10655
- package/prisca/v1/core/auth/auth_grpc_pb.js +0 -523
- package/prisca/v1/core/auth/auth_pb.js +0 -5833
- package/prisca/v1/core/chat_messaging/chat_messaging_grpc_pb.js +0 -111
- package/prisca/v1/core/chat_messaging/chat_messaging_pb.js +0 -1726
- package/prisca/v1/core/company/company_grpc_pb.js +0 -178
- package/prisca/v1/core/company/company_pb.js +0 -3094
- package/prisca/v1/core/currency/currency_grpc_pb.js +0 -177
- package/prisca/v1/core/currency/currency_pb.js +0 -2516
- package/prisca/v1/core/department_material/department_material_grpc_pb.js +0 -144
- package/prisca/v1/core/department_material/department_material_pb.js +0 -2161
- package/prisca/v1/core/employee/employee_grpc_pb.js +0 -206
- package/prisca/v1/core/employee/employee_pb.js +0 -4329
- package/prisca/v1/core/file_upload/file_upload_grpc_pb.js +0 -66
- package/prisca/v1/core/file_upload/file_upload_pb.js +0 -1136
- package/prisca/v1/core/incoterm/incoterm_grpc_pb.js +0 -177
- package/prisca/v1/core/incoterm/incoterm_pb.js +0 -2898
- package/prisca/v1/core/item_transaction/item_transaction_grpc_pb.js +0 -1
- package/prisca/v1/core/item_transaction/item_transaction_pb.js +0 -6038
- package/prisca/v1/core/job_grade/job_grade_grpc_pb.js +0 -178
- package/prisca/v1/core/job_grade/job_grade_pb.js +0 -2651
- package/prisca/v1/core/job_position/job_position_grpc_pb.js +0 -181
- package/prisca/v1/core/job_position/job_position_pb.js +0 -3808
- package/prisca/v1/core/job_title/job_title_grpc_pb.js +0 -178
- package/prisca/v1/core/job_title/job_title_pb.js +0 -3004
- package/prisca/v1/core/line_of_activity/line_of_activity_grpc_pb.js +0 -78
- package/prisca/v1/core/line_of_activity/line_of_activity_pb.js +0 -2503
- package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +0 -222
- package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +0 -3801
- package/prisca/v1/core/link_data_source/link_data_source_grpc_pb.js +0 -177
- package/prisca/v1/core/link_data_source/link_data_source_pb.js +0 -2606
- package/prisca/v1/core/location/location_grpc_pb.js +0 -837
- package/prisca/v1/core/location/location_pb.js +0 -11262
- package/prisca/v1/core/material/material_grpc_pb.js +0 -182
- package/prisca/v1/core/material/material_pb.js +0 -4226
- package/prisca/v1/core/material_group/material_group_grpc_pb.js +0 -178
- package/prisca/v1/core/material_group/material_group_pb.js +0 -2822
- package/prisca/v1/core/material_type/material_type_grpc_pb.js +0 -182
- package/prisca/v1/core/material_type/material_type_pb.js +0 -3098
- package/prisca/v1/core/messaging/email_template_grpc_pb.js +0 -177
- package/prisca/v1/core/messaging/email_template_pb.js +0 -2658
- package/prisca/v1/core/messaging/messaging_grpc_pb.js +0 -56
- package/prisca/v1/core/messaging/messaging_pb.js +0 -890
- package/prisca/v1/core/messaging/notification_grpc_pb.js +0 -331
- package/prisca/v1/core/messaging/notification_pb.js +0 -4775
- package/prisca/v1/core/number_range/number_range_grpc_pb.js +0 -178
- package/prisca/v1/core/number_range/number_range_pb.js +0 -2972
- package/prisca/v1/core/organization/organization_grpc_pb.js +0 -180
- package/prisca/v1/core/organization/organization_pb.js +0 -3078
- package/prisca/v1/core/organization_level/organization_level_grpc_pb.js +0 -178
- package/prisca/v1/core/organization_level/organization_level_pb.js +0 -2591
- package/prisca/v1/core/price_condition/price_condition_grpc_pb.js +0 -179
- package/prisca/v1/core/price_condition/price_condition_pb.js +0 -3175
- package/prisca/v1/core/procurement/procurement_grpc_pb.js +0 -146
- package/prisca/v1/core/procurement/procurement_pb.js +0 -1675
- package/prisca/v1/core/recipient_roles/recipient_roles_grpc_pb.js +0 -1
- package/prisca/v1/core/recipient_roles/recipient_roles_pb.js +0 -200
- package/prisca/v1/core/report/report_grpc_pb.js +0 -200
- package/prisca/v1/core/report/report_pb.js +0 -2816
- package/prisca/v1/core/report/user_report_grpc_pb.js +0 -179
- package/prisca/v1/core/report/user_report_pb.js +0 -2446
- package/prisca/v1/core/tax_code/tax_code_grpc_pb.js +0 -177
- package/prisca/v1/core/tax_code/tax_code_pb.js +0 -2778
- package/prisca/v1/core/term_of_payment/term_of_payment_grpc_pb.js +0 -177
- package/prisca/v1/core/term_of_payment/term_of_payment_pb.js +0 -2506
- package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +0 -652
- package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +0 -11953
- package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc_pb.js +0 -180
- package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +0 -2874
- package/prisca/v1/core/users/users_grpc_pb.js +0 -78
- package/prisca/v1/core/users/users_pb.js +0 -1647
- package/prisca/v1/core/work_location/work_location_grpc_pb.js +0 -179
- package/prisca/v1/core/work_location/work_location_pb.js +0 -4018
- package/prisca/v1/core/workflow/workflow_grpc_pb.js +0 -203
- package/prisca/v1/core/workflow/workflow_pb.js +0 -7631
- package/prisca/v1/core/workspace/workspace_grpc_pb.js +0 -101
- package/prisca/v1/core/workspace/workspace_pb.js +0 -1381
- package/prisca/v1/delivery_order/delivery_order_grpc_pb.js +0 -229
- package/prisca/v1/delivery_order/delivery_order_pb.js +0 -3647
- package/prisca/v1/document_type/document_type_grpc_pb.js +0 -200
- package/prisca/v1/document_type/document_type_pb.js +0 -3004
- package/prisca/v1/general_ledger_account/general_ledger_account_grpc_pb.js +0 -181
- package/prisca/v1/general_ledger_account/general_ledger_account_pb.js +0 -3322
- package/prisca/v1/global/meta/meta_grpc_pb.js +0 -1
- package/prisca/v1/global/meta/meta_pb.js +0 -1173
- package/prisca/v1/good_receipt/good_receipt_grpc_pb.js +0 -250
- package/prisca/v1/good_receipt/good_receipt_pb.js +0 -3945
- package/prisca/v1/invoice/invoice_grpc_pb.js +0 -273
- package/prisca/v1/invoice/invoice_pb.js +0 -5664
- package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +0 -263
- package/prisca/v1/purchase_order/purchase_order_pb.js +0 -9839
- package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +0 -600
- package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +0 -10795
- package/prisca/v1/purchasing_group/purchasing_group_grpc_pb.js +0 -178
- package/prisca/v1/purchasing_group/purchasing_group_pb.js +0 -2921
- package/prisca/v1/purchasing_organization/purchasing_organization_grpc_pb.js +0 -178
- package/prisca/v1/purchasing_organization/purchasing_organization_pb.js +0 -2418
- package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_grpc_pb.js +0 -179
- package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_pb.js +0 -2584
- package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_grpc_pb.js +0 -145
- package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_pb.js +0 -2537
- package/prisca/v1/quotation/quotation_grpc_pb.js +0 -240
- package/prisca/v1/quotation/quotation_pb.js +0 -4167
- package/prisca/v1/request_for_quotation/request_for_quotation_grpc_pb.js +0 -281
- package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +0 -7042
- package/prisca/v1/valuation/valuation_grpc_pb.js +0 -366
- package/prisca/v1/valuation/valuation_pb.js +0 -7806
- package/prisca/v1/vendor_domain/vendor_domain_grpc_pb.js +0 -290
- package/prisca/v1/vendor_domain/vendor_domain_pb.js +0 -14714
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/prisca/v1/general_ledger_account;general_ledger_account";
|
|
4
|
+
|
|
5
|
+
import "prisca/v1/global/meta/meta.proto";
|
|
6
|
+
import "prisca/v1/account_group/account_group.proto";
|
|
7
|
+
import "prisca/v1/chart_of_account/chart_of_account.proto";
|
|
8
|
+
import "prisca/v1/core/company/company.proto";
|
|
9
|
+
import "prisca/v1/core/currency/currency.proto";
|
|
10
|
+
|
|
11
|
+
service GeneralLedgerAccountService {
|
|
12
|
+
rpc CreateGeneralLedgerAccount(CreateGeneralLedgerAccountRequest)
|
|
13
|
+
returns (CreateGeneralLedgerAccountResponse);
|
|
14
|
+
rpc UpdateGeneralLedgerAccount(UpdateGeneralLedgerAccountRequest)
|
|
15
|
+
returns (UpdateGeneralLedgerAccountResponse);
|
|
16
|
+
rpc GetGeneralLedgerAccountById(GetGeneralLedgerAccountByIdRequest)
|
|
17
|
+
returns (GetGeneralLedgerAccountByIdResponse);
|
|
18
|
+
rpc GetListGeneralLedgerAccount(GetListGeneralLedgerAccountRequest)
|
|
19
|
+
returns (GetListGeneralLedgerAccountResponse);
|
|
20
|
+
rpc DeleteGeneralLedgerAccount(DeleteGeneralLedgerAccountRequest)
|
|
21
|
+
returns (DeleteGeneralLedgerAccountResponse);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
message GeneralLedgerAccount {
|
|
25
|
+
int64 id = 1;
|
|
26
|
+
string account_type = 2;
|
|
27
|
+
repeated GeneralLedgerLanguage language_description = 3;
|
|
28
|
+
string chart_of_account_ref = 4;
|
|
29
|
+
string account_group_ref = 5;
|
|
30
|
+
string references_id = 6;
|
|
31
|
+
string created_at = 7; // Use ISO 8601 format for date strings
|
|
32
|
+
string updated_at = 8; // Optional, nullable
|
|
33
|
+
string companies_references_id = 9;
|
|
34
|
+
string account_id = 10;
|
|
35
|
+
string currency_ref = 11;
|
|
36
|
+
optional AccountGroup account_group = 12;
|
|
37
|
+
optional ChartOfAccount chart_of_account = 13;
|
|
38
|
+
optional Company companies = 14;
|
|
39
|
+
optional Currency currency = 15;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
message GeneralLedgerLanguage {
|
|
43
|
+
string language_key = 1;
|
|
44
|
+
string short_text = 2;
|
|
45
|
+
string long_text = 3;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
message BaseGeneralLedgerAccount {
|
|
49
|
+
string account_type = 1;
|
|
50
|
+
repeated GeneralLedgerLanguage language_description = 2;
|
|
51
|
+
string chart_of_account_ref = 3;
|
|
52
|
+
string account_group_ref = 4;
|
|
53
|
+
string account_id = 5;
|
|
54
|
+
string currency_ref = 6;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
message CreateGeneralLedgerAccountRequest {
|
|
58
|
+
BaseGeneralLedgerAccount base_general_ledger_account = 1;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
message CreateGeneralLedgerAccountResponse {
|
|
62
|
+
GeneralLedgerAccount general_ledger_account = 1;
|
|
63
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
message UpdateGeneralLedgerAccountRequest {
|
|
67
|
+
string references_id = 1;
|
|
68
|
+
BaseGeneralLedgerAccount base_general_ledger_account = 2;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
message UpdateGeneralLedgerAccountResponse {
|
|
72
|
+
GeneralLedgerAccount general_ledger_account = 1;
|
|
73
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
message GetGeneralLedgerAccountByIdRequest { string references_id = 1; }
|
|
77
|
+
|
|
78
|
+
message GetGeneralLedgerAccountByIdResponse {
|
|
79
|
+
GeneralLedgerAccount general_ledger_account = 1;
|
|
80
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
message GetListGeneralLedgerAccountRequest {
|
|
84
|
+
prisca.v1.global.meta.PaginationRequest pagination = 1;
|
|
85
|
+
prisca.v1.global.meta.FilterRequest query = 2;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
message GetListGeneralLedgerAccountResponse {
|
|
89
|
+
repeated GeneralLedgerAccount general_ledger_accounts = 1;
|
|
90
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
message DeleteGeneralLedgerAccountRequest {
|
|
94
|
+
repeated string reference_ids = 1;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
message DeleteGeneralLedgerAccountResponse {
|
|
98
|
+
repeated string reference_ids = 1;
|
|
99
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
100
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
|
|
2
|
+
syntax="proto3";
|
|
3
|
+
option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/prisca/v1/global/meta";
|
|
4
|
+
package prisca.v1.global.meta;
|
|
5
|
+
import "google/protobuf/any.proto";
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
message PaginationRequest {
|
|
9
|
+
int32 offset = 1;
|
|
10
|
+
int32 limit = 2;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
message FilterRequest{
|
|
14
|
+
string filter = 1;
|
|
15
|
+
string order = 2;
|
|
16
|
+
string keyword = 3;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
message PaginationResponse {
|
|
20
|
+
int32 offset = 1;
|
|
21
|
+
int32 limit = 2;
|
|
22
|
+
int64 total_pages = 3;
|
|
23
|
+
int64 total_rows = 4;
|
|
24
|
+
int64 total_row_per_page = 5;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
message Meta {
|
|
28
|
+
int64 status_code = 1;
|
|
29
|
+
string message_code = 2;
|
|
30
|
+
string message = 3;
|
|
31
|
+
optional PaginationResponse pagination = 4;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
message ResponseJson {
|
|
35
|
+
Meta meta = 1;
|
|
36
|
+
optional google.protobuf.Any data = 2;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
// type Meta struct {
|
|
41
|
+
// StatusCode int `json:"status_code"`
|
|
42
|
+
// MessageCode string `json:"message_code"`
|
|
43
|
+
// Message string `json:"message"`
|
|
44
|
+
// Pagination *Pagination `json:"pagination"`
|
|
45
|
+
// }
|
|
46
|
+
|
|
47
|
+
// type Pagination struct {
|
|
48
|
+
// Total int `json:"total"`
|
|
49
|
+
// Offset int `json:"offset"`
|
|
50
|
+
// Limit int `json:"Limit"`
|
|
51
|
+
// }
|
|
52
|
+
|
|
53
|
+
// type ResponseJson struct {
|
|
54
|
+
// Data interface{} `json:"data"`
|
|
55
|
+
// Meta Meta `json:"meta"`
|
|
56
|
+
// }
|
|
57
|
+
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/prisca/v1/good_receipt";
|
|
4
|
+
import "prisca/v1/global/meta/meta.proto";
|
|
5
|
+
import "prisca/v1/vendor_domain/vendor_domain.proto";
|
|
6
|
+
import "prisca/v1/core/transaction_builder/transaction_builder.proto";
|
|
7
|
+
import "prisca/v1/core/item_transaction/item_transaction.proto";
|
|
8
|
+
import "prisca/v1/core/employee/employee.proto";
|
|
9
|
+
import "prisca/v1/purchase_order/purchase_order.proto";
|
|
10
|
+
import "prisca/v1/delivery_order/delivery_order.proto";
|
|
11
|
+
import "prisca/v1/core/file_upload/file_upload.proto";
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
service GoodReceiptService {
|
|
15
|
+
rpc CreateGoodReceipt(CreateGoodReceiptRequest) returns (CreateGoodReceiptRes);
|
|
16
|
+
rpc GetGoodReceiptById(GetByRefGoodReceiptReq) returns (GetGoodReceiptByIdResponse);
|
|
17
|
+
rpc GetGoodReceiptByIdDetail(GetByRefGoodReceiptReq) returns (GetGoodReceiptDetailResponse);
|
|
18
|
+
rpc GetListGoodReceipts(GetListGoodReceiptReq) returns (GetListGoodReceiptRes);
|
|
19
|
+
rpc UpdateGoodReceipt(UpdateGoodReceiptReq) returns (UpdateGoodReceiptRes);
|
|
20
|
+
rpc UpdateGoodReceiptStatus(UpdateGoodReceiptStatusReq) returns (UpdateGoodReceiptRes);
|
|
21
|
+
rpc UpdateGoodReceiptFile(UpdateGoodReceiptFileReq) returns (UpdateGoodReceiptRes);
|
|
22
|
+
rpc DeleteGoodReceipt(DeleteGoodReceiptRequest) returns (DeleteGoodReceiptResponse);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
message BaseGoodReceipt {
|
|
26
|
+
PurchaseOrder purchase_order =1 ;
|
|
27
|
+
string title = 2;
|
|
28
|
+
string good_receipt_number = 3;
|
|
29
|
+
string purchase_order_date = 4;
|
|
30
|
+
Vendor vendor = 5;
|
|
31
|
+
string posting_date = 6;
|
|
32
|
+
string date = 7;
|
|
33
|
+
string plant = 8;
|
|
34
|
+
string remarks = 9;
|
|
35
|
+
string status = 10;
|
|
36
|
+
repeated ItemTransaction item_transactions = 11;
|
|
37
|
+
repeated FileUploadReferencesReq files = 12;
|
|
38
|
+
string group_references = 13;
|
|
39
|
+
DeliveryOrder delivery_order = 14;
|
|
40
|
+
string delivery_order_number = 15;
|
|
41
|
+
string delivery_order_date = 16;
|
|
42
|
+
string purchase_order_number = 17;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
message CreateGoodReceiptRequest {
|
|
46
|
+
BaseGoodReceipt base_good_receipt = 1;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
message UpdateGoodReceiptReq {
|
|
50
|
+
string references_id = 1;
|
|
51
|
+
BaseGoodReceipt base_good_receipt = 2;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
message UpdateGoodReceiptStatusReq {
|
|
55
|
+
string status = 1;
|
|
56
|
+
string references_id = 2;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
message UpdateGoodReceiptFileReq {
|
|
60
|
+
string references_id = 1;
|
|
61
|
+
repeated FileUploadReferencesReq files = 2;
|
|
62
|
+
repeated BaseItemTransaction item_transactions = 3;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
message GetListGoodReceiptReq {
|
|
66
|
+
prisca.v1.global.meta.PaginationRequest pagination = 1;
|
|
67
|
+
prisca.v1.global.meta.FilterRequest query = 2;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
message GetByRefGoodReceiptReq {
|
|
72
|
+
string references_id = 1;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
message CreateGoodReceiptRes {
|
|
76
|
+
GoodReceipt good_receipt = 1;
|
|
77
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
message UpdateGoodReceiptRes {
|
|
81
|
+
GoodReceipt good_receipt = 1;
|
|
82
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
message GetGoodReceiptByIdResponse {
|
|
86
|
+
GoodReceipt good_receipt = 1;
|
|
87
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
message GetListGoodReceiptRes {
|
|
92
|
+
repeated GoodReceipt good_receipt = 1;
|
|
93
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
message DeleteGoodReceiptRequest {
|
|
97
|
+
repeated string reference_ids = 1;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
message GetGoodReceiptDetailResponse {
|
|
102
|
+
repeated TransactionBuilderFieldsDetail transaction_builder = 1;
|
|
103
|
+
repeated GetGoodReceiptItemPreload transaction_builder_items = 2;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
message GetGoodReceiptItemPreload {
|
|
107
|
+
repeated TransactionBuilderFieldsDetail transaction_builder_item = 1;
|
|
108
|
+
repeated GetGoodReceiptItemDetailPreload transaction_builder_item_details = 2;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
message GetGoodReceiptItemDetailPreload {
|
|
112
|
+
repeated TransactionBuilderFieldsDetail transaction_builder_item_detail = 1;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
message DeleteGoodReceiptResponse {
|
|
116
|
+
repeated string reference_ids = 1;
|
|
117
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
118
|
+
}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/prisca/v1/invoice";
|
|
4
|
+
import "prisca/v1/global/meta/meta.proto";
|
|
5
|
+
import "prisca/v1/vendor_domain/vendor_domain.proto";
|
|
6
|
+
import "prisca/v1/core/company/company.proto";
|
|
7
|
+
import "prisca/v1/core/item_transaction/item_transaction.proto";
|
|
8
|
+
import "prisca/v1/core/employee/employee.proto";
|
|
9
|
+
import "prisca/v1/purchase_order/purchase_order.proto";
|
|
10
|
+
import "prisca/v1/good_receipt/good_receipt.proto";
|
|
11
|
+
import "prisca/v1/core/file_upload/file_upload.proto";
|
|
12
|
+
import "prisca/v1/core/transaction_builder/transaction_builder.proto";
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
service InvoiceService {
|
|
16
|
+
rpc CreateInvoice(CreateInvoiceReq) returns (CreateInvoiceRes);
|
|
17
|
+
rpc UpdateInvoice(UpdateInvoiceReq) returns (UpdateInvoiceRes);
|
|
18
|
+
rpc UpdateInvoiceForCompany(UpdateInvoiceForCompanyReq) returns (UpdateInvoiceRes);
|
|
19
|
+
rpc UpdateInvoiceStatus(UpdateInvoiceStatusReq) returns (UpdateInvoiceRes);
|
|
20
|
+
rpc UpdateInvoiceFile(UpdateInvoiceFileReq) returns (UpdateInvoiceRes);
|
|
21
|
+
rpc GetInvoiceById(GetInvoiceByIdReq) returns (GetInvoiceByIdRes);
|
|
22
|
+
rpc GetInvoiceByIdDetail(GetInvoiceByIdReq) returns (GetInvoiceDetailRes);
|
|
23
|
+
rpc GetListInvoices(GetListInvoiceReq) returns (GetListInvoiceRes);
|
|
24
|
+
rpc DeleteInvoice(DeleteInvoiceRequest) returns
|
|
25
|
+
(DeleteInvoiceResponse);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
message BaseInvoice {
|
|
29
|
+
string purchase_order_references_id = 1;
|
|
30
|
+
string vendor_name = 2;
|
|
31
|
+
string invoice_subject = 3;
|
|
32
|
+
string invoice_number = 4;
|
|
33
|
+
string invoice_date = 5;
|
|
34
|
+
string plant = 6;
|
|
35
|
+
string invoice_type = 7;
|
|
36
|
+
repeated ItemTransaction item_transactions = 8;
|
|
37
|
+
repeated FileUploadReferencesReq files = 9;
|
|
38
|
+
string transaction_type = 10;
|
|
39
|
+
string tax_references = 11;
|
|
40
|
+
string status = 12;
|
|
41
|
+
string remarks = 13;
|
|
42
|
+
repeated FileUploadReferencesReq shipping_files = 14;
|
|
43
|
+
string custom_transaction = 15;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
message CreateInvoiceReq {
|
|
47
|
+
BaseInvoice base_invoice = 1;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
message CreateInvoiceRes {
|
|
51
|
+
Invoice invoice = 1;
|
|
52
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
message UpdateInvoiceForCompanyReq {
|
|
56
|
+
string references_id = 1;
|
|
57
|
+
string term_of_payment = 2;
|
|
58
|
+
string due_date = 3;
|
|
59
|
+
repeated ItemTransaction item_transactions = 4;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
message UpdateInvoiceReq {
|
|
63
|
+
string references_id = 1;
|
|
64
|
+
BaseInvoice base_invoice = 2;
|
|
65
|
+
}
|
|
66
|
+
message UpdateInvoiceStatusReq {
|
|
67
|
+
string status = 1;
|
|
68
|
+
string references_id = 2;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
message UpdateInvoiceFileReq {
|
|
72
|
+
string references_id = 1;
|
|
73
|
+
repeated FileUploadReferencesReq files = 2;
|
|
74
|
+
repeated BaseItemTransaction item_transactions = 3;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
message UpdateInvoiceRes {
|
|
78
|
+
Invoice invoice = 1;
|
|
79
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
message DeleteInvoiceRequest {
|
|
83
|
+
repeated string reference_ids = 1;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
message GetInvoiceByIdReq {
|
|
87
|
+
string references_id = 1;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
message GetInvoiceByIdRes {
|
|
91
|
+
Invoice invoice = 1;
|
|
92
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
message GetInvoiceDetailRes {
|
|
96
|
+
repeated TransactionBuilderFieldsDetail transaction_builder = 1;
|
|
97
|
+
repeated GetInvoiceItemPreload transaction_builder_items = 2;
|
|
98
|
+
repeated ItemInvoiceReference item_invoice_references = 3;
|
|
99
|
+
repeated ItemPurchaseOrder item_purchase_orders = 4;
|
|
100
|
+
repeated ItemGoodReceipt item_good_receipts = 5;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
message ItemInvoiceReference {
|
|
104
|
+
string invoice_number = 1;
|
|
105
|
+
string document_number = 2;
|
|
106
|
+
string references_id = 3;
|
|
107
|
+
string invoice_references_id = 4;
|
|
108
|
+
string remarks = 5;
|
|
109
|
+
string invoice_date = 6;
|
|
110
|
+
string description = 7;
|
|
111
|
+
string detail_description = 8;
|
|
112
|
+
bool include_vat = 9;
|
|
113
|
+
double income_tax = 10;
|
|
114
|
+
string quantity = 11;
|
|
115
|
+
repeated ItemTransactionPriceCondition price_condition = 12;
|
|
116
|
+
string price_before_tax = 13;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
message ItemPurchaseOrder {
|
|
120
|
+
string references_id = 1;
|
|
121
|
+
string purchase_order_number = 2;
|
|
122
|
+
string purchase_order_references_id = 3;
|
|
123
|
+
string description = 4;
|
|
124
|
+
string detail_description = 5;
|
|
125
|
+
string quantity = 6;
|
|
126
|
+
string unit_of_measure = 7;
|
|
127
|
+
repeated ItemTransactionPriceCondition price_condition = 8;
|
|
128
|
+
string price_before_tax = 9;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
message ItemGoodReceipt {
|
|
132
|
+
string references_id = 1;
|
|
133
|
+
string purchase_order_number = 2;
|
|
134
|
+
string purchase_order_references_id = 3;
|
|
135
|
+
string good_receipt_number = 4;
|
|
136
|
+
string description = 5;
|
|
137
|
+
string detail_description = 6;
|
|
138
|
+
string quantity = 7;
|
|
139
|
+
string purchase_order_quantity = 8;
|
|
140
|
+
string unit_of_measure = 9;
|
|
141
|
+
string price_before_tax = 10;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
message GetInvoiceItemPreload {
|
|
145
|
+
repeated TransactionBuilderFieldsDetail transaction_builder_item = 1;
|
|
146
|
+
repeated GetInvoiceItemDetailPreload transaction_builder_item_details = 2;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
message GetInvoiceItemDetailPreload {
|
|
150
|
+
repeated TransactionBuilderFieldsDetail transaction_builder_item_detail = 1;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
message GetListInvoiceReq {
|
|
154
|
+
prisca.v1.global.meta.PaginationRequest pagination = 1;
|
|
155
|
+
prisca.v1.global.meta.FilterRequest query = 2;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
message GetListInvoiceRes {
|
|
159
|
+
repeated Invoice invoices = 1;
|
|
160
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
message DeleteInvoiceResponse {
|
|
164
|
+
repeated string reference_ids = 1;
|
|
165
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|