@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.
Files changed (178) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/account_assignment/account_assignment.proto +81 -0
  3. package/prisca/v1/account_group/account_group.proto +88 -0
  4. package/prisca/v1/bidding/bidding.proto +251 -0
  5. package/prisca/v1/chart_of_account/chart_of_account.proto +89 -0
  6. package/prisca/v1/core/access_manager/access_manager.proto +328 -0
  7. package/prisca/v1/core/auth/auth.proto +185 -0
  8. package/prisca/v1/core/chat_messaging/chat_messaging.proto +62 -0
  9. package/prisca/v1/core/company/company.proto +92 -0
  10. package/prisca/v1/core/currency/currency.proto +76 -0
  11. package/prisca/v1/core/department_material/department_material.proto +69 -0
  12. package/prisca/v1/core/employee/employee.proto +129 -0
  13. package/prisca/v1/core/file_upload/file_upload.proto +41 -0
  14. package/prisca/v1/core/incoterm/incoterm.proto +85 -0
  15. package/prisca/v1/core/item_transaction/item_transaction.proto +188 -0
  16. package/prisca/v1/core/job_grade/job_grade.proto +79 -0
  17. package/prisca/v1/core/job_position/job_position.proto +113 -0
  18. package/prisca/v1/core/job_title/job_title.proto +89 -0
  19. package/prisca/v1/core/line_of_activity/line_of_activity.proto +94 -0
  20. package/prisca/v1/core/line_of_approval/line_of_approval.proto +113 -0
  21. package/prisca/v1/core/link_data_source/link_data_source.proto +78 -0
  22. package/prisca/v1/core/location/location.proto +295 -0
  23. package/prisca/v1/core/material/material.proto +131 -0
  24. package/prisca/v1/core/material_group/material_group.proto +85 -0
  25. package/prisca/v1/core/material_type/material_type.proto +95 -0
  26. package/prisca/v1/core/messaging/email_template.proto +77 -0
  27. package/prisca/v1/core/messaging/messaging.proto +29 -0
  28. package/prisca/v1/core/messaging/notification.proto +144 -0
  29. package/prisca/v1/core/number_range/number_range.proto +89 -0
  30. package/prisca/v1/core/organization/organization.proto +94 -0
  31. package/prisca/v1/core/organization_level/organization_level.proto +77 -0
  32. package/prisca/v1/core/price_condition/price_condition.proto +97 -0
  33. package/prisca/v1/core/procurement/procurement.proto +54 -0
  34. package/prisca/v1/core/recipient_roles/recipient_roles.proto +10 -0
  35. package/prisca/v1/core/report/report.proto +90 -0
  36. package/prisca/v1/core/report/user_report.proto +74 -0
  37. package/prisca/v1/core/tax_code/tax_code.proto +82 -0
  38. package/prisca/v1/core/term_of_payment/term_of_payment.proto +74 -0
  39. package/prisca/v1/core/transaction_builder/transaction_builder.proto +366 -0
  40. package/prisca/v1/core/unit_of_measurement/unit_of_measurement.proto +89 -0
  41. package/prisca/v1/core/users/users.proto +55 -0
  42. package/prisca/v1/core/work_location/work_location.proto +122 -0
  43. package/prisca/v1/core/workflow/workflow.proto +220 -0
  44. package/prisca/v1/core/workspace/workspace.proto +48 -0
  45. package/prisca/v1/delivery_order/delivery_order.proto +116 -0
  46. package/prisca/v1/document_type/document_type.proto +89 -0
  47. package/prisca/v1/general_ledger_account/general_ledger_account.proto +100 -0
  48. package/prisca/v1/global/meta/meta.proto +57 -0
  49. package/prisca/v1/good_receipt/good_receipt.proto +118 -0
  50. package/prisca/v1/invoice/invoice.proto +170 -0
  51. package/prisca/v1/purchase_order/purchase_order.proto +292 -0
  52. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx.proto +327 -0
  53. package/prisca/v1/purchasing_group/purchasing_group.proto +89 -0
  54. package/prisca/v1/purchasing_organization/purchasing_organization.proto +77 -0
  55. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment.proto +81 -0
  56. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant.proto +80 -0
  57. package/prisca/v1/quotation/quotation.proto +135 -0
  58. package/prisca/v1/request_for_quotation/request_for_quotation.proto +203 -0
  59. package/prisca/v1/valuation/valuation.proto +223 -0
  60. package/prisca/v1/vendor_domain/vendor_domain.proto +485 -0
  61. package/prisca/v1/account_assignment/account_assignment_grpc_pb.js +0 -199
  62. package/prisca/v1/account_assignment/account_assignment_pb.js +0 -2720
  63. package/prisca/v1/account_group/account_group_grpc_pb.js +0 -200
  64. package/prisca/v1/account_group/account_group_pb.js +0 -2983
  65. package/prisca/v1/bidding/bidding_grpc_pb.js +0 -350
  66. package/prisca/v1/bidding/bidding_pb.js +0 -8694
  67. package/prisca/v1/chart_of_account/chart_of_account_grpc_pb.js +0 -199
  68. package/prisca/v1/chart_of_account/chart_of_account_pb.js +0 -2953
  69. package/prisca/v1/core/access_manager/access_manager_grpc_pb.js +0 -577
  70. package/prisca/v1/core/access_manager/access_manager_pb.js +0 -10655
  71. package/prisca/v1/core/auth/auth_grpc_pb.js +0 -523
  72. package/prisca/v1/core/auth/auth_pb.js +0 -5833
  73. package/prisca/v1/core/chat_messaging/chat_messaging_grpc_pb.js +0 -111
  74. package/prisca/v1/core/chat_messaging/chat_messaging_pb.js +0 -1726
  75. package/prisca/v1/core/company/company_grpc_pb.js +0 -178
  76. package/prisca/v1/core/company/company_pb.js +0 -3094
  77. package/prisca/v1/core/currency/currency_grpc_pb.js +0 -177
  78. package/prisca/v1/core/currency/currency_pb.js +0 -2516
  79. package/prisca/v1/core/department_material/department_material_grpc_pb.js +0 -144
  80. package/prisca/v1/core/department_material/department_material_pb.js +0 -2161
  81. package/prisca/v1/core/employee/employee_grpc_pb.js +0 -206
  82. package/prisca/v1/core/employee/employee_pb.js +0 -4329
  83. package/prisca/v1/core/file_upload/file_upload_grpc_pb.js +0 -66
  84. package/prisca/v1/core/file_upload/file_upload_pb.js +0 -1136
  85. package/prisca/v1/core/incoterm/incoterm_grpc_pb.js +0 -177
  86. package/prisca/v1/core/incoterm/incoterm_pb.js +0 -2898
  87. package/prisca/v1/core/item_transaction/item_transaction_grpc_pb.js +0 -1
  88. package/prisca/v1/core/item_transaction/item_transaction_pb.js +0 -6038
  89. package/prisca/v1/core/job_grade/job_grade_grpc_pb.js +0 -178
  90. package/prisca/v1/core/job_grade/job_grade_pb.js +0 -2651
  91. package/prisca/v1/core/job_position/job_position_grpc_pb.js +0 -181
  92. package/prisca/v1/core/job_position/job_position_pb.js +0 -3808
  93. package/prisca/v1/core/job_title/job_title_grpc_pb.js +0 -178
  94. package/prisca/v1/core/job_title/job_title_pb.js +0 -3004
  95. package/prisca/v1/core/line_of_activity/line_of_activity_grpc_pb.js +0 -78
  96. package/prisca/v1/core/line_of_activity/line_of_activity_pb.js +0 -2503
  97. package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +0 -222
  98. package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +0 -3801
  99. package/prisca/v1/core/link_data_source/link_data_source_grpc_pb.js +0 -177
  100. package/prisca/v1/core/link_data_source/link_data_source_pb.js +0 -2606
  101. package/prisca/v1/core/location/location_grpc_pb.js +0 -837
  102. package/prisca/v1/core/location/location_pb.js +0 -11262
  103. package/prisca/v1/core/material/material_grpc_pb.js +0 -182
  104. package/prisca/v1/core/material/material_pb.js +0 -4226
  105. package/prisca/v1/core/material_group/material_group_grpc_pb.js +0 -178
  106. package/prisca/v1/core/material_group/material_group_pb.js +0 -2822
  107. package/prisca/v1/core/material_type/material_type_grpc_pb.js +0 -182
  108. package/prisca/v1/core/material_type/material_type_pb.js +0 -3098
  109. package/prisca/v1/core/messaging/email_template_grpc_pb.js +0 -177
  110. package/prisca/v1/core/messaging/email_template_pb.js +0 -2658
  111. package/prisca/v1/core/messaging/messaging_grpc_pb.js +0 -56
  112. package/prisca/v1/core/messaging/messaging_pb.js +0 -890
  113. package/prisca/v1/core/messaging/notification_grpc_pb.js +0 -331
  114. package/prisca/v1/core/messaging/notification_pb.js +0 -4775
  115. package/prisca/v1/core/number_range/number_range_grpc_pb.js +0 -178
  116. package/prisca/v1/core/number_range/number_range_pb.js +0 -2972
  117. package/prisca/v1/core/organization/organization_grpc_pb.js +0 -180
  118. package/prisca/v1/core/organization/organization_pb.js +0 -3078
  119. package/prisca/v1/core/organization_level/organization_level_grpc_pb.js +0 -178
  120. package/prisca/v1/core/organization_level/organization_level_pb.js +0 -2591
  121. package/prisca/v1/core/price_condition/price_condition_grpc_pb.js +0 -179
  122. package/prisca/v1/core/price_condition/price_condition_pb.js +0 -3175
  123. package/prisca/v1/core/procurement/procurement_grpc_pb.js +0 -146
  124. package/prisca/v1/core/procurement/procurement_pb.js +0 -1675
  125. package/prisca/v1/core/recipient_roles/recipient_roles_grpc_pb.js +0 -1
  126. package/prisca/v1/core/recipient_roles/recipient_roles_pb.js +0 -200
  127. package/prisca/v1/core/report/report_grpc_pb.js +0 -200
  128. package/prisca/v1/core/report/report_pb.js +0 -2816
  129. package/prisca/v1/core/report/user_report_grpc_pb.js +0 -179
  130. package/prisca/v1/core/report/user_report_pb.js +0 -2446
  131. package/prisca/v1/core/tax_code/tax_code_grpc_pb.js +0 -177
  132. package/prisca/v1/core/tax_code/tax_code_pb.js +0 -2778
  133. package/prisca/v1/core/term_of_payment/term_of_payment_grpc_pb.js +0 -177
  134. package/prisca/v1/core/term_of_payment/term_of_payment_pb.js +0 -2506
  135. package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +0 -652
  136. package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +0 -11953
  137. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc_pb.js +0 -180
  138. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +0 -2874
  139. package/prisca/v1/core/users/users_grpc_pb.js +0 -78
  140. package/prisca/v1/core/users/users_pb.js +0 -1647
  141. package/prisca/v1/core/work_location/work_location_grpc_pb.js +0 -179
  142. package/prisca/v1/core/work_location/work_location_pb.js +0 -4018
  143. package/prisca/v1/core/workflow/workflow_grpc_pb.js +0 -203
  144. package/prisca/v1/core/workflow/workflow_pb.js +0 -7631
  145. package/prisca/v1/core/workspace/workspace_grpc_pb.js +0 -101
  146. package/prisca/v1/core/workspace/workspace_pb.js +0 -1381
  147. package/prisca/v1/delivery_order/delivery_order_grpc_pb.js +0 -229
  148. package/prisca/v1/delivery_order/delivery_order_pb.js +0 -3647
  149. package/prisca/v1/document_type/document_type_grpc_pb.js +0 -200
  150. package/prisca/v1/document_type/document_type_pb.js +0 -3004
  151. package/prisca/v1/general_ledger_account/general_ledger_account_grpc_pb.js +0 -181
  152. package/prisca/v1/general_ledger_account/general_ledger_account_pb.js +0 -3322
  153. package/prisca/v1/global/meta/meta_grpc_pb.js +0 -1
  154. package/prisca/v1/global/meta/meta_pb.js +0 -1173
  155. package/prisca/v1/good_receipt/good_receipt_grpc_pb.js +0 -250
  156. package/prisca/v1/good_receipt/good_receipt_pb.js +0 -3945
  157. package/prisca/v1/invoice/invoice_grpc_pb.js +0 -273
  158. package/prisca/v1/invoice/invoice_pb.js +0 -5664
  159. package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +0 -263
  160. package/prisca/v1/purchase_order/purchase_order_pb.js +0 -9839
  161. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +0 -600
  162. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +0 -10795
  163. package/prisca/v1/purchasing_group/purchasing_group_grpc_pb.js +0 -178
  164. package/prisca/v1/purchasing_group/purchasing_group_pb.js +0 -2921
  165. package/prisca/v1/purchasing_organization/purchasing_organization_grpc_pb.js +0 -178
  166. package/prisca/v1/purchasing_organization/purchasing_organization_pb.js +0 -2418
  167. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_grpc_pb.js +0 -179
  168. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_pb.js +0 -2584
  169. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_grpc_pb.js +0 -145
  170. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_pb.js +0 -2537
  171. package/prisca/v1/quotation/quotation_grpc_pb.js +0 -240
  172. package/prisca/v1/quotation/quotation_pb.js +0 -4167
  173. package/prisca/v1/request_for_quotation/request_for_quotation_grpc_pb.js +0 -281
  174. package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +0 -7042
  175. package/prisca/v1/valuation/valuation_grpc_pb.js +0 -366
  176. package/prisca/v1/valuation/valuation_pb.js +0 -7806
  177. package/prisca/v1/vendor_domain/vendor_domain_grpc_pb.js +0 -290
  178. 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
+