@restorecommerce/protos 0.6.4 → 0.6.7
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/CHANGELOG.md +27 -0
- package/io/restorecommerce/invoice.proto +21 -5
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.6.7](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@0.6.6...@restorecommerce/protos@0.6.7) (2022-04-20)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @restorecommerce/protos
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [0.6.6](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@0.6.5...@restorecommerce/protos@0.6.6) (2022-04-05)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @restorecommerce/protos
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [0.6.5](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@0.6.4...@restorecommerce/protos@0.6.5) (2022-03-29)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
* **protos:** updated invoice proto ([c927dae](https://github.com/restorecommerce/libs/commit/c927dae3ee9a4b8f47b0844feaa615a15a7f1afd))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
## [0.6.4](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@0.6.3...@restorecommerce/protos@0.6.4) (2022-02-22)
|
|
7
34
|
|
|
8
35
|
|
|
@@ -18,6 +18,16 @@ service Service {
|
|
|
18
18
|
rpc Delete (io.restorecommerce.resourcebase.DeleteRequest) returns (io.restorecommerce.resourcebase.DeleteResponse);
|
|
19
19
|
rpc Update (InvoiceList) returns (InvoiceListResponse);
|
|
20
20
|
rpc Upsert (InvoiceList) returns (InvoiceListResponse);
|
|
21
|
+
rpc GenerateInvoiceNumber(RequestInvoiceNumber) returns (InvoiceNumberResponse);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
message RequestInvoiceNumber {
|
|
25
|
+
google.protobuf.Any context = 1;
|
|
26
|
+
io.restorecommerce.auth.Subject subject = 3;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
message InvoiceNumberResponse {
|
|
30
|
+
string invoice_no = 1;
|
|
21
31
|
}
|
|
22
32
|
|
|
23
33
|
message Deleted {
|
|
@@ -77,11 +87,14 @@ message InvoicePositions {
|
|
|
77
87
|
io.restorecommerce.organization.Organization recipient_organization = 6;
|
|
78
88
|
io.restorecommerce.organization.Organization sender_organization = 7;
|
|
79
89
|
google.protobuf.Any payment_method_details = 8;
|
|
90
|
+
string invoice_no = 9; // optional invoice number if not it will be generated by service
|
|
91
|
+
double from_date = 10; // value performance from date
|
|
92
|
+
double to_date = 11; // value performance to date
|
|
80
93
|
}
|
|
81
94
|
|
|
82
95
|
message RecipientCustomer {
|
|
83
96
|
string id = 1; // customer id - used to store the resource in DB
|
|
84
|
-
string customer_number = 2; // displayed in invoice
|
|
97
|
+
string customer_number = 2; // displayed in invoice
|
|
85
98
|
}
|
|
86
99
|
|
|
87
100
|
message BillingAddress {
|
|
@@ -95,6 +108,8 @@ message BillingAddress {
|
|
|
95
108
|
string telephone = 9;
|
|
96
109
|
string timezone = 10;
|
|
97
110
|
string economic_area = 11;
|
|
111
|
+
string locality = 12;
|
|
112
|
+
string organization_name = 13;
|
|
98
113
|
}
|
|
99
114
|
|
|
100
115
|
message InvoicePosition {
|
|
@@ -105,15 +120,16 @@ message InvoicePosition {
|
|
|
105
120
|
|
|
106
121
|
message InvoiceRow {
|
|
107
122
|
string product = 1;
|
|
108
|
-
|
|
123
|
+
double pricePerUnit = 2;
|
|
109
124
|
uint32 quantity = 3;
|
|
110
125
|
string vat = 4;
|
|
111
|
-
|
|
126
|
+
double amount = 5;
|
|
127
|
+
double contract_start_date = 6; // if there is any contract associated with product
|
|
112
128
|
}
|
|
113
129
|
|
|
114
130
|
message InvoicePrice {
|
|
115
|
-
|
|
116
|
-
|
|
131
|
+
double gross = 1;
|
|
132
|
+
double net = 2;
|
|
117
133
|
}
|
|
118
134
|
|
|
119
135
|
message TriggerInvoices {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@restorecommerce/protos",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.7",
|
|
4
4
|
"description": "Protobuf descriptors for Restorecommerce services",
|
|
5
5
|
"author": "n-fuse GmbH",
|
|
6
6
|
"repository": {
|
|
@@ -15,5 +15,5 @@
|
|
|
15
15
|
"protobufs"
|
|
16
16
|
],
|
|
17
17
|
"scripts": {},
|
|
18
|
-
"gitHead": "
|
|
18
|
+
"gitHead": "bc9bea7088f12bf1e539559cb840ec4c66b2a5f9"
|
|
19
19
|
}
|