You've already forked npm-core-sdk
Latest generation
This commit is contained in:
38
billing.ts
38
billing.ts
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.10.0 with parameter use_proto_field_name
|
||||
// @generated by protobuf-ts 2.11.0 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "billing.proto" (package "api", syntax proto3)
|
||||
// tslint:disable
|
||||
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
||||
@@ -20,27 +20,27 @@ import { MessageType } from "@protobuf-ts/runtime";
|
||||
*/
|
||||
export interface GenerateRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string OrganisationID = 1 [json_name = "OrganisationID"];
|
||||
* @generated from protobuf field: string OrganisationID = 1
|
||||
*/
|
||||
OrganisationID: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Comment = 2 [json_name = "Comment"];
|
||||
* @generated from protobuf field: string Comment = 2
|
||||
*/
|
||||
Comment: string;
|
||||
/**
|
||||
* UTC date/time in <a href='https://en.wikipedia.org/wiki/ISO_8601'>ISO 8601</a> format
|
||||
*
|
||||
* @generated from protobuf field: string FromDate = 3 [json_name = "FromDate"];
|
||||
* @generated from protobuf field: string FromDate = 3
|
||||
*/
|
||||
FromDate: string;
|
||||
/**
|
||||
* UTC date/time in <a href='https://en.wikipedia.org/wiki/ISO_8601'>ISO 8601</a> format
|
||||
*
|
||||
* @generated from protobuf field: string ToDate = 4 [json_name = "ToDate"];
|
||||
* @generated from protobuf field: string ToDate = 4
|
||||
*/
|
||||
ToDate: string;
|
||||
/**
|
||||
* @generated from protobuf field: api.GenerateBillingFormat OutputFormat = 5 [json_name = "OutputFormat"];
|
||||
* @generated from protobuf field: api.GenerateBillingFormat OutputFormat = 5
|
||||
*/
|
||||
OutputFormat: GenerateBillingFormat;
|
||||
}
|
||||
@@ -53,7 +53,7 @@ export interface GenerateRequest {
|
||||
*/
|
||||
export interface GenerateResult {
|
||||
/**
|
||||
* @generated from protobuf field: string Output = 1 [json_name = "Output"];
|
||||
* @generated from protobuf field: string Output = 1
|
||||
*/
|
||||
Output: string;
|
||||
}
|
||||
@@ -101,19 +101,19 @@ class GenerateRequest$Type extends MessageType<GenerateRequest> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string OrganisationID = 1 [json_name = "OrganisationID"];*/ 1:
|
||||
case /* string OrganisationID */ 1:
|
||||
message.OrganisationID = reader.string();
|
||||
break;
|
||||
case /* string Comment = 2 [json_name = "Comment"];*/ 2:
|
||||
case /* string Comment */ 2:
|
||||
message.Comment = reader.string();
|
||||
break;
|
||||
case /* string FromDate = 3 [json_name = "FromDate"];*/ 3:
|
||||
case /* string FromDate */ 3:
|
||||
message.FromDate = reader.string();
|
||||
break;
|
||||
case /* string ToDate = 4 [json_name = "ToDate"];*/ 4:
|
||||
case /* string ToDate */ 4:
|
||||
message.ToDate = reader.string();
|
||||
break;
|
||||
case /* api.GenerateBillingFormat OutputFormat = 5 [json_name = "OutputFormat"];*/ 5:
|
||||
case /* api.GenerateBillingFormat OutputFormat */ 5:
|
||||
message.OutputFormat = reader.int32();
|
||||
break;
|
||||
default:
|
||||
@@ -128,19 +128,19 @@ class GenerateRequest$Type extends MessageType<GenerateRequest> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: GenerateRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string OrganisationID = 1 [json_name = "OrganisationID"]; */
|
||||
/* string OrganisationID = 1; */
|
||||
if (message.OrganisationID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.OrganisationID);
|
||||
/* string Comment = 2 [json_name = "Comment"]; */
|
||||
/* string Comment = 2; */
|
||||
if (message.Comment !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Comment);
|
||||
/* string FromDate = 3 [json_name = "FromDate"]; */
|
||||
/* string FromDate = 3; */
|
||||
if (message.FromDate !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.FromDate);
|
||||
/* string ToDate = 4 [json_name = "ToDate"]; */
|
||||
/* string ToDate = 4; */
|
||||
if (message.ToDate !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.ToDate);
|
||||
/* api.GenerateBillingFormat OutputFormat = 5 [json_name = "OutputFormat"]; */
|
||||
/* api.GenerateBillingFormat OutputFormat = 5; */
|
||||
if (message.OutputFormat !== 0)
|
||||
writer.tag(5, WireType.Varint).int32(message.OutputFormat);
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -172,7 +172,7 @@ class GenerateResult$Type extends MessageType<GenerateResult> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string Output = 1 [json_name = "Output"];*/ 1:
|
||||
case /* string Output */ 1:
|
||||
message.Output = reader.string();
|
||||
break;
|
||||
default:
|
||||
@@ -187,7 +187,7 @@ class GenerateResult$Type extends MessageType<GenerateResult> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: GenerateResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string Output = 1 [json_name = "Output"]; */
|
||||
/* string Output = 1; */
|
||||
if (message.Output !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.Output);
|
||||
let u = options.writeUnknownFields;
|
||||
|
||||
Reference in New Issue
Block a user