@sniipwebmaster/agent-billing-client-grpcweb-ts 23.10.647 → 23.11.670

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.
@@ -125,6 +125,49 @@ export class AgentBillingServiceAPIServiceClient {
125
125
  this.methodDescriptorConnectAgent);
126
126
  }
127
127
 
128
+ methodDescriptorCreateManuallyAddedAgentBill = new grpcWeb.MethodDescriptor(
129
+ '/agentbillingserviceapi.AgentBillingServiceAPIService/CreateManuallyAddedAgentBill',
130
+ grpcWeb.MethodType.UNARY,
131
+ service_pb.CreateManuallyAddedAgentBillRequest,
132
+ service_pb.CreateAgentBillsResponse,
133
+ (request: service_pb.CreateManuallyAddedAgentBillRequest) => {
134
+ return request.serializeBinary();
135
+ },
136
+ service_pb.CreateAgentBillsResponse.deserializeBinary
137
+ );
138
+
139
+ createManuallyAddedAgentBill(
140
+ request: service_pb.CreateManuallyAddedAgentBillRequest,
141
+ metadata: grpcWeb.Metadata | null): Promise<service_pb.CreateAgentBillsResponse>;
142
+
143
+ createManuallyAddedAgentBill(
144
+ request: service_pb.CreateManuallyAddedAgentBillRequest,
145
+ metadata: grpcWeb.Metadata | null,
146
+ callback: (err: grpcWeb.RpcError,
147
+ response: service_pb.CreateAgentBillsResponse) => void): grpcWeb.ClientReadableStream<service_pb.CreateAgentBillsResponse>;
148
+
149
+ createManuallyAddedAgentBill(
150
+ request: service_pb.CreateManuallyAddedAgentBillRequest,
151
+ metadata: grpcWeb.Metadata | null,
152
+ callback?: (err: grpcWeb.RpcError,
153
+ response: service_pb.CreateAgentBillsResponse) => void) {
154
+ if (callback !== undefined) {
155
+ return this.client_.rpcCall(
156
+ this.hostname_ +
157
+ '/agentbillingserviceapi.AgentBillingServiceAPIService/CreateManuallyAddedAgentBill',
158
+ request,
159
+ metadata || {},
160
+ this.methodDescriptorCreateManuallyAddedAgentBill,
161
+ callback);
162
+ }
163
+ return this.client_.unaryCall(
164
+ this.hostname_ +
165
+ '/agentbillingserviceapi.AgentBillingServiceAPIService/CreateManuallyAddedAgentBill',
166
+ request,
167
+ metadata || {},
168
+ this.methodDescriptorCreateManuallyAddedAgentBill);
169
+ }
170
+
128
171
  methodDescriptorDeclineAgentInvitation = new grpcWeb.MethodDescriptor(
129
172
  '/agentbillingserviceapi.AgentBillingServiceAPIService/DeclineAgentInvitation',
130
173
  grpcWeb.MethodType.UNARY,
@@ -207,6 +207,80 @@ export namespace ConnectAgentRequest {
207
207
  }
208
208
  }
209
209
 
210
+ export class CreateAgentBillsResponse extends jspb.Message {
211
+ getResponsecode(): ResponseCode | undefined;
212
+ setResponsecode(value?: ResponseCode): CreateAgentBillsResponse;
213
+ hasResponsecode(): boolean;
214
+ clearResponsecode(): CreateAgentBillsResponse;
215
+
216
+ getUploadbatchid(): number;
217
+ setUploadbatchid(value: number): CreateAgentBillsResponse;
218
+
219
+ getAddedbillscount(): number;
220
+ setAddedbillscount(value: number): CreateAgentBillsResponse;
221
+
222
+ serializeBinary(): Uint8Array;
223
+ toObject(includeInstance?: boolean): CreateAgentBillsResponse.AsObject;
224
+ static toObject(includeInstance: boolean, msg: CreateAgentBillsResponse): CreateAgentBillsResponse.AsObject;
225
+ static serializeBinaryToWriter(message: CreateAgentBillsResponse, writer: jspb.BinaryWriter): void;
226
+ static deserializeBinary(bytes: Uint8Array): CreateAgentBillsResponse;
227
+ static deserializeBinaryFromReader(message: CreateAgentBillsResponse, reader: jspb.BinaryReader): CreateAgentBillsResponse;
228
+ }
229
+
230
+ export namespace CreateAgentBillsResponse {
231
+ export type AsObject = {
232
+ responsecode?: ResponseCode.AsObject,
233
+ uploadbatchid: number,
234
+ addedbillscount: number,
235
+ }
236
+ }
237
+
238
+ export class CreateManuallyAddedAgentBillRequest extends jspb.Message {
239
+ getClientuserid(): number;
240
+ setClientuserid(value: number): CreateManuallyAddedAgentBillRequest;
241
+
242
+ getUploadbatchid(): number;
243
+ setUploadbatchid(value: number): CreateManuallyAddedAgentBillRequest;
244
+
245
+ getBillercode(): string;
246
+ setBillercode(value: string): CreateManuallyAddedAgentBillRequest;
247
+
248
+ getReference(): string;
249
+ setReference(value: string): CreateManuallyAddedAgentBillRequest;
250
+
251
+ getAmount(): number;
252
+ setAmount(value: number): CreateManuallyAddedAgentBillRequest;
253
+
254
+ getDuedate(): string;
255
+ setDuedate(value: string): CreateManuallyAddedAgentBillRequest;
256
+
257
+ getInvoicenumber(): string;
258
+ setInvoicenumber(value: string): CreateManuallyAddedAgentBillRequest;
259
+
260
+ getDescription(): string;
261
+ setDescription(value: string): CreateManuallyAddedAgentBillRequest;
262
+
263
+ serializeBinary(): Uint8Array;
264
+ toObject(includeInstance?: boolean): CreateManuallyAddedAgentBillRequest.AsObject;
265
+ static toObject(includeInstance: boolean, msg: CreateManuallyAddedAgentBillRequest): CreateManuallyAddedAgentBillRequest.AsObject;
266
+ static serializeBinaryToWriter(message: CreateManuallyAddedAgentBillRequest, writer: jspb.BinaryWriter): void;
267
+ static deserializeBinary(bytes: Uint8Array): CreateManuallyAddedAgentBillRequest;
268
+ static deserializeBinaryFromReader(message: CreateManuallyAddedAgentBillRequest, reader: jspb.BinaryReader): CreateManuallyAddedAgentBillRequest;
269
+ }
270
+
271
+ export namespace CreateManuallyAddedAgentBillRequest {
272
+ export type AsObject = {
273
+ clientuserid: number,
274
+ uploadbatchid: number,
275
+ billercode: string,
276
+ reference: string,
277
+ amount: number,
278
+ duedate: string,
279
+ invoicenumber: string,
280
+ description: string,
281
+ }
282
+ }
283
+
210
284
  export class DeclineAgentInvitationRequest extends jspb.Message {
211
285
  getClientuserid(): number;
212
286
  setClientuserid(value: number): DeclineAgentInvitationRequest;
@@ -19,6 +19,8 @@ goog.exportSymbol('proto.agentbillingserviceapi.AgentBill', null, global);
19
19
  goog.exportSymbol('proto.agentbillingserviceapi.CancelAgentInviteRequest', null, global);
20
20
  goog.exportSymbol('proto.agentbillingserviceapi.Client', null, global);
21
21
  goog.exportSymbol('proto.agentbillingserviceapi.ConnectAgentRequest', null, global);
22
+ goog.exportSymbol('proto.agentbillingserviceapi.CreateAgentBillsResponse', null, global);
23
+ goog.exportSymbol('proto.agentbillingserviceapi.CreateManuallyAddedAgentBillRequest', null, global);
22
24
  goog.exportSymbol('proto.agentbillingserviceapi.DeclineAgentInvitationRequest', null, global);
23
25
  goog.exportSymbol('proto.agentbillingserviceapi.DeleteDeliveryBatchAsClientRequest', null, global);
24
26
  goog.exportSymbol('proto.agentbillingserviceapi.DeleteDeliveryBatchRequest', null, global);
@@ -147,6 +149,48 @@ if (goog.DEBUG && !COMPILED) {
147
149
  */
148
150
  proto.agentbillingserviceapi.ConnectAgentRequest.displayName = 'proto.agentbillingserviceapi.ConnectAgentRequest';
149
151
  }
152
+ /**
153
+ * Generated by JsPbCodeGenerator.
154
+ * @param {Array=} opt_data Optional initial data array, typically from a
155
+ * server response, or constructed directly in Javascript. The array is used
156
+ * in place and becomes part of the constructed object. It is not cloned.
157
+ * If no data is provided, the constructed object will be empty, but still
158
+ * valid.
159
+ * @extends {jspb.Message}
160
+ * @constructor
161
+ */
162
+ proto.agentbillingserviceapi.CreateAgentBillsResponse = function(opt_data) {
163
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
164
+ };
165
+ goog.inherits(proto.agentbillingserviceapi.CreateAgentBillsResponse, jspb.Message);
166
+ if (goog.DEBUG && !COMPILED) {
167
+ /**
168
+ * @public
169
+ * @override
170
+ */
171
+ proto.agentbillingserviceapi.CreateAgentBillsResponse.displayName = 'proto.agentbillingserviceapi.CreateAgentBillsResponse';
172
+ }
173
+ /**
174
+ * Generated by JsPbCodeGenerator.
175
+ * @param {Array=} opt_data Optional initial data array, typically from a
176
+ * server response, or constructed directly in Javascript. The array is used
177
+ * in place and becomes part of the constructed object. It is not cloned.
178
+ * If no data is provided, the constructed object will be empty, but still
179
+ * valid.
180
+ * @extends {jspb.Message}
181
+ * @constructor
182
+ */
183
+ proto.agentbillingserviceapi.CreateManuallyAddedAgentBillRequest = function(opt_data) {
184
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
185
+ };
186
+ goog.inherits(proto.agentbillingserviceapi.CreateManuallyAddedAgentBillRequest, jspb.Message);
187
+ if (goog.DEBUG && !COMPILED) {
188
+ /**
189
+ * @public
190
+ * @override
191
+ */
192
+ proto.agentbillingserviceapi.CreateManuallyAddedAgentBillRequest.displayName = 'proto.agentbillingserviceapi.CreateManuallyAddedAgentBillRequest';
193
+ }
150
194
  /**
151
195
  * Generated by JsPbCodeGenerator.
152
196
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -2149,6 +2193,557 @@ proto.agentbillingserviceapi.ConnectAgentRequest.prototype.setClientuserid = fun
2149
2193
 
2150
2194
 
2151
2195
 
2196
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2197
+ /**
2198
+ * Creates an object representation of this proto.
2199
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2200
+ * Optional fields that are not set will be set to undefined.
2201
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2202
+ * For the list of reserved names please see:
2203
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2204
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2205
+ * JSPB instance for transitional soy proto support:
2206
+ * http://goto/soy-param-migration
2207
+ * @return {!Object}
2208
+ */
2209
+ proto.agentbillingserviceapi.CreateAgentBillsResponse.prototype.toObject = function(opt_includeInstance) {
2210
+ return proto.agentbillingserviceapi.CreateAgentBillsResponse.toObject(opt_includeInstance, this);
2211
+ };
2212
+
2213
+
2214
+ /**
2215
+ * Static version of the {@see toObject} method.
2216
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2217
+ * the JSPB instance for transitional soy proto support:
2218
+ * http://goto/soy-param-migration
2219
+ * @param {!proto.agentbillingserviceapi.CreateAgentBillsResponse} msg The msg instance to transform.
2220
+ * @return {!Object}
2221
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2222
+ */
2223
+ proto.agentbillingserviceapi.CreateAgentBillsResponse.toObject = function(includeInstance, msg) {
2224
+ var f, obj = {
2225
+ responsecode: (f = msg.getResponsecode()) && proto.agentbillingserviceapi.ResponseCode.toObject(includeInstance, f),
2226
+ uploadbatchid: jspb.Message.getFieldWithDefault(msg, 2, 0),
2227
+ addedbillscount: jspb.Message.getFieldWithDefault(msg, 3, 0)
2228
+ };
2229
+
2230
+ if (includeInstance) {
2231
+ obj.$jspbMessageInstance = msg;
2232
+ }
2233
+ return obj;
2234
+ };
2235
+ }
2236
+
2237
+
2238
+ /**
2239
+ * Deserializes binary data (in protobuf wire format).
2240
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2241
+ * @return {!proto.agentbillingserviceapi.CreateAgentBillsResponse}
2242
+ */
2243
+ proto.agentbillingserviceapi.CreateAgentBillsResponse.deserializeBinary = function(bytes) {
2244
+ var reader = new jspb.BinaryReader(bytes);
2245
+ var msg = new proto.agentbillingserviceapi.CreateAgentBillsResponse;
2246
+ return proto.agentbillingserviceapi.CreateAgentBillsResponse.deserializeBinaryFromReader(msg, reader);
2247
+ };
2248
+
2249
+
2250
+ /**
2251
+ * Deserializes binary data (in protobuf wire format) from the
2252
+ * given reader into the given message object.
2253
+ * @param {!proto.agentbillingserviceapi.CreateAgentBillsResponse} msg The message object to deserialize into.
2254
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2255
+ * @return {!proto.agentbillingserviceapi.CreateAgentBillsResponse}
2256
+ */
2257
+ proto.agentbillingserviceapi.CreateAgentBillsResponse.deserializeBinaryFromReader = function(msg, reader) {
2258
+ while (reader.nextField()) {
2259
+ if (reader.isEndGroup()) {
2260
+ break;
2261
+ }
2262
+ var field = reader.getFieldNumber();
2263
+ switch (field) {
2264
+ case 1:
2265
+ var value = new proto.agentbillingserviceapi.ResponseCode;
2266
+ reader.readMessage(value,proto.agentbillingserviceapi.ResponseCode.deserializeBinaryFromReader);
2267
+ msg.setResponsecode(value);
2268
+ break;
2269
+ case 2:
2270
+ var value = /** @type {number} */ (reader.readInt64());
2271
+ msg.setUploadbatchid(value);
2272
+ break;
2273
+ case 3:
2274
+ var value = /** @type {number} */ (reader.readInt64());
2275
+ msg.setAddedbillscount(value);
2276
+ break;
2277
+ default:
2278
+ reader.skipField();
2279
+ break;
2280
+ }
2281
+ }
2282
+ return msg;
2283
+ };
2284
+
2285
+
2286
+ /**
2287
+ * Serializes the message to binary data (in protobuf wire format).
2288
+ * @return {!Uint8Array}
2289
+ */
2290
+ proto.agentbillingserviceapi.CreateAgentBillsResponse.prototype.serializeBinary = function() {
2291
+ var writer = new jspb.BinaryWriter();
2292
+ proto.agentbillingserviceapi.CreateAgentBillsResponse.serializeBinaryToWriter(this, writer);
2293
+ return writer.getResultBuffer();
2294
+ };
2295
+
2296
+
2297
+ /**
2298
+ * Serializes the given message to binary data (in protobuf wire
2299
+ * format), writing to the given BinaryWriter.
2300
+ * @param {!proto.agentbillingserviceapi.CreateAgentBillsResponse} message
2301
+ * @param {!jspb.BinaryWriter} writer
2302
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2303
+ */
2304
+ proto.agentbillingserviceapi.CreateAgentBillsResponse.serializeBinaryToWriter = function(message, writer) {
2305
+ var f = undefined;
2306
+ f = message.getResponsecode();
2307
+ if (f != null) {
2308
+ writer.writeMessage(
2309
+ 1,
2310
+ f,
2311
+ proto.agentbillingserviceapi.ResponseCode.serializeBinaryToWriter
2312
+ );
2313
+ }
2314
+ f = message.getUploadbatchid();
2315
+ if (f !== 0) {
2316
+ writer.writeInt64(
2317
+ 2,
2318
+ f
2319
+ );
2320
+ }
2321
+ f = message.getAddedbillscount();
2322
+ if (f !== 0) {
2323
+ writer.writeInt64(
2324
+ 3,
2325
+ f
2326
+ );
2327
+ }
2328
+ };
2329
+
2330
+
2331
+ /**
2332
+ * optional ResponseCode responseCode = 1;
2333
+ * @return {?proto.agentbillingserviceapi.ResponseCode}
2334
+ */
2335
+ proto.agentbillingserviceapi.CreateAgentBillsResponse.prototype.getResponsecode = function() {
2336
+ return /** @type{?proto.agentbillingserviceapi.ResponseCode} */ (
2337
+ jspb.Message.getWrapperField(this, proto.agentbillingserviceapi.ResponseCode, 1));
2338
+ };
2339
+
2340
+
2341
+ /**
2342
+ * @param {?proto.agentbillingserviceapi.ResponseCode|undefined} value
2343
+ * @return {!proto.agentbillingserviceapi.CreateAgentBillsResponse} returns this
2344
+ */
2345
+ proto.agentbillingserviceapi.CreateAgentBillsResponse.prototype.setResponsecode = function(value) {
2346
+ return jspb.Message.setWrapperField(this, 1, value);
2347
+ };
2348
+
2349
+
2350
+ /**
2351
+ * Clears the message field making it undefined.
2352
+ * @return {!proto.agentbillingserviceapi.CreateAgentBillsResponse} returns this
2353
+ */
2354
+ proto.agentbillingserviceapi.CreateAgentBillsResponse.prototype.clearResponsecode = function() {
2355
+ return this.setResponsecode(undefined);
2356
+ };
2357
+
2358
+
2359
+ /**
2360
+ * Returns whether this field is set.
2361
+ * @return {boolean}
2362
+ */
2363
+ proto.agentbillingserviceapi.CreateAgentBillsResponse.prototype.hasResponsecode = function() {
2364
+ return jspb.Message.getField(this, 1) != null;
2365
+ };
2366
+
2367
+
2368
+ /**
2369
+ * optional int64 uploadBatchId = 2;
2370
+ * @return {number}
2371
+ */
2372
+ proto.agentbillingserviceapi.CreateAgentBillsResponse.prototype.getUploadbatchid = function() {
2373
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2374
+ };
2375
+
2376
+
2377
+ /**
2378
+ * @param {number} value
2379
+ * @return {!proto.agentbillingserviceapi.CreateAgentBillsResponse} returns this
2380
+ */
2381
+ proto.agentbillingserviceapi.CreateAgentBillsResponse.prototype.setUploadbatchid = function(value) {
2382
+ return jspb.Message.setProto3IntField(this, 2, value);
2383
+ };
2384
+
2385
+
2386
+ /**
2387
+ * optional int64 addedBillsCount = 3;
2388
+ * @return {number}
2389
+ */
2390
+ proto.agentbillingserviceapi.CreateAgentBillsResponse.prototype.getAddedbillscount = function() {
2391
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
2392
+ };
2393
+
2394
+
2395
+ /**
2396
+ * @param {number} value
2397
+ * @return {!proto.agentbillingserviceapi.CreateAgentBillsResponse} returns this
2398
+ */
2399
+ proto.agentbillingserviceapi.CreateAgentBillsResponse.prototype.setAddedbillscount = function(value) {
2400
+ return jspb.Message.setProto3IntField(this, 3, value);
2401
+ };
2402
+
2403
+
2404
+
2405
+
2406
+
2407
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2408
+ /**
2409
+ * Creates an object representation of this proto.
2410
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2411
+ * Optional fields that are not set will be set to undefined.
2412
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2413
+ * For the list of reserved names please see:
2414
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2415
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2416
+ * JSPB instance for transitional soy proto support:
2417
+ * http://goto/soy-param-migration
2418
+ * @return {!Object}
2419
+ */
2420
+ proto.agentbillingserviceapi.CreateManuallyAddedAgentBillRequest.prototype.toObject = function(opt_includeInstance) {
2421
+ return proto.agentbillingserviceapi.CreateManuallyAddedAgentBillRequest.toObject(opt_includeInstance, this);
2422
+ };
2423
+
2424
+
2425
+ /**
2426
+ * Static version of the {@see toObject} method.
2427
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2428
+ * the JSPB instance for transitional soy proto support:
2429
+ * http://goto/soy-param-migration
2430
+ * @param {!proto.agentbillingserviceapi.CreateManuallyAddedAgentBillRequest} msg The msg instance to transform.
2431
+ * @return {!Object}
2432
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2433
+ */
2434
+ proto.agentbillingserviceapi.CreateManuallyAddedAgentBillRequest.toObject = function(includeInstance, msg) {
2435
+ var f, obj = {
2436
+ clientuserid: jspb.Message.getFieldWithDefault(msg, 1, 0),
2437
+ uploadbatchid: jspb.Message.getFieldWithDefault(msg, 2, 0),
2438
+ billercode: jspb.Message.getFieldWithDefault(msg, 3, ""),
2439
+ reference: jspb.Message.getFieldWithDefault(msg, 4, ""),
2440
+ amount: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
2441
+ duedate: jspb.Message.getFieldWithDefault(msg, 6, ""),
2442
+ invoicenumber: jspb.Message.getFieldWithDefault(msg, 7, ""),
2443
+ description: jspb.Message.getFieldWithDefault(msg, 8, "")
2444
+ };
2445
+
2446
+ if (includeInstance) {
2447
+ obj.$jspbMessageInstance = msg;
2448
+ }
2449
+ return obj;
2450
+ };
2451
+ }
2452
+
2453
+
2454
+ /**
2455
+ * Deserializes binary data (in protobuf wire format).
2456
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2457
+ * @return {!proto.agentbillingserviceapi.CreateManuallyAddedAgentBillRequest}
2458
+ */
2459
+ proto.agentbillingserviceapi.CreateManuallyAddedAgentBillRequest.deserializeBinary = function(bytes) {
2460
+ var reader = new jspb.BinaryReader(bytes);
2461
+ var msg = new proto.agentbillingserviceapi.CreateManuallyAddedAgentBillRequest;
2462
+ return proto.agentbillingserviceapi.CreateManuallyAddedAgentBillRequest.deserializeBinaryFromReader(msg, reader);
2463
+ };
2464
+
2465
+
2466
+ /**
2467
+ * Deserializes binary data (in protobuf wire format) from the
2468
+ * given reader into the given message object.
2469
+ * @param {!proto.agentbillingserviceapi.CreateManuallyAddedAgentBillRequest} msg The message object to deserialize into.
2470
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2471
+ * @return {!proto.agentbillingserviceapi.CreateManuallyAddedAgentBillRequest}
2472
+ */
2473
+ proto.agentbillingserviceapi.CreateManuallyAddedAgentBillRequest.deserializeBinaryFromReader = function(msg, reader) {
2474
+ while (reader.nextField()) {
2475
+ if (reader.isEndGroup()) {
2476
+ break;
2477
+ }
2478
+ var field = reader.getFieldNumber();
2479
+ switch (field) {
2480
+ case 1:
2481
+ var value = /** @type {number} */ (reader.readInt64());
2482
+ msg.setClientuserid(value);
2483
+ break;
2484
+ case 2:
2485
+ var value = /** @type {number} */ (reader.readInt64());
2486
+ msg.setUploadbatchid(value);
2487
+ break;
2488
+ case 3:
2489
+ var value = /** @type {string} */ (reader.readString());
2490
+ msg.setBillercode(value);
2491
+ break;
2492
+ case 4:
2493
+ var value = /** @type {string} */ (reader.readString());
2494
+ msg.setReference(value);
2495
+ break;
2496
+ case 5:
2497
+ var value = /** @type {number} */ (reader.readDouble());
2498
+ msg.setAmount(value);
2499
+ break;
2500
+ case 6:
2501
+ var value = /** @type {string} */ (reader.readString());
2502
+ msg.setDuedate(value);
2503
+ break;
2504
+ case 7:
2505
+ var value = /** @type {string} */ (reader.readString());
2506
+ msg.setInvoicenumber(value);
2507
+ break;
2508
+ case 8:
2509
+ var value = /** @type {string} */ (reader.readString());
2510
+ msg.setDescription(value);
2511
+ break;
2512
+ default:
2513
+ reader.skipField();
2514
+ break;
2515
+ }
2516
+ }
2517
+ return msg;
2518
+ };
2519
+
2520
+
2521
+ /**
2522
+ * Serializes the message to binary data (in protobuf wire format).
2523
+ * @return {!Uint8Array}
2524
+ */
2525
+ proto.agentbillingserviceapi.CreateManuallyAddedAgentBillRequest.prototype.serializeBinary = function() {
2526
+ var writer = new jspb.BinaryWriter();
2527
+ proto.agentbillingserviceapi.CreateManuallyAddedAgentBillRequest.serializeBinaryToWriter(this, writer);
2528
+ return writer.getResultBuffer();
2529
+ };
2530
+
2531
+
2532
+ /**
2533
+ * Serializes the given message to binary data (in protobuf wire
2534
+ * format), writing to the given BinaryWriter.
2535
+ * @param {!proto.agentbillingserviceapi.CreateManuallyAddedAgentBillRequest} message
2536
+ * @param {!jspb.BinaryWriter} writer
2537
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2538
+ */
2539
+ proto.agentbillingserviceapi.CreateManuallyAddedAgentBillRequest.serializeBinaryToWriter = function(message, writer) {
2540
+ var f = undefined;
2541
+ f = message.getClientuserid();
2542
+ if (f !== 0) {
2543
+ writer.writeInt64(
2544
+ 1,
2545
+ f
2546
+ );
2547
+ }
2548
+ f = message.getUploadbatchid();
2549
+ if (f !== 0) {
2550
+ writer.writeInt64(
2551
+ 2,
2552
+ f
2553
+ );
2554
+ }
2555
+ f = message.getBillercode();
2556
+ if (f.length > 0) {
2557
+ writer.writeString(
2558
+ 3,
2559
+ f
2560
+ );
2561
+ }
2562
+ f = message.getReference();
2563
+ if (f.length > 0) {
2564
+ writer.writeString(
2565
+ 4,
2566
+ f
2567
+ );
2568
+ }
2569
+ f = message.getAmount();
2570
+ if (f !== 0.0) {
2571
+ writer.writeDouble(
2572
+ 5,
2573
+ f
2574
+ );
2575
+ }
2576
+ f = message.getDuedate();
2577
+ if (f.length > 0) {
2578
+ writer.writeString(
2579
+ 6,
2580
+ f
2581
+ );
2582
+ }
2583
+ f = message.getInvoicenumber();
2584
+ if (f.length > 0) {
2585
+ writer.writeString(
2586
+ 7,
2587
+ f
2588
+ );
2589
+ }
2590
+ f = message.getDescription();
2591
+ if (f.length > 0) {
2592
+ writer.writeString(
2593
+ 8,
2594
+ f
2595
+ );
2596
+ }
2597
+ };
2598
+
2599
+
2600
+ /**
2601
+ * optional int64 clientUserId = 1;
2602
+ * @return {number}
2603
+ */
2604
+ proto.agentbillingserviceapi.CreateManuallyAddedAgentBillRequest.prototype.getClientuserid = function() {
2605
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2606
+ };
2607
+
2608
+
2609
+ /**
2610
+ * @param {number} value
2611
+ * @return {!proto.agentbillingserviceapi.CreateManuallyAddedAgentBillRequest} returns this
2612
+ */
2613
+ proto.agentbillingserviceapi.CreateManuallyAddedAgentBillRequest.prototype.setClientuserid = function(value) {
2614
+ return jspb.Message.setProto3IntField(this, 1, value);
2615
+ };
2616
+
2617
+
2618
+ /**
2619
+ * optional int64 uploadBatchId = 2;
2620
+ * @return {number}
2621
+ */
2622
+ proto.agentbillingserviceapi.CreateManuallyAddedAgentBillRequest.prototype.getUploadbatchid = function() {
2623
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2624
+ };
2625
+
2626
+
2627
+ /**
2628
+ * @param {number} value
2629
+ * @return {!proto.agentbillingserviceapi.CreateManuallyAddedAgentBillRequest} returns this
2630
+ */
2631
+ proto.agentbillingserviceapi.CreateManuallyAddedAgentBillRequest.prototype.setUploadbatchid = function(value) {
2632
+ return jspb.Message.setProto3IntField(this, 2, value);
2633
+ };
2634
+
2635
+
2636
+ /**
2637
+ * optional string billerCode = 3;
2638
+ * @return {string}
2639
+ */
2640
+ proto.agentbillingserviceapi.CreateManuallyAddedAgentBillRequest.prototype.getBillercode = function() {
2641
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2642
+ };
2643
+
2644
+
2645
+ /**
2646
+ * @param {string} value
2647
+ * @return {!proto.agentbillingserviceapi.CreateManuallyAddedAgentBillRequest} returns this
2648
+ */
2649
+ proto.agentbillingserviceapi.CreateManuallyAddedAgentBillRequest.prototype.setBillercode = function(value) {
2650
+ return jspb.Message.setProto3StringField(this, 3, value);
2651
+ };
2652
+
2653
+
2654
+ /**
2655
+ * optional string reference = 4;
2656
+ * @return {string}
2657
+ */
2658
+ proto.agentbillingserviceapi.CreateManuallyAddedAgentBillRequest.prototype.getReference = function() {
2659
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
2660
+ };
2661
+
2662
+
2663
+ /**
2664
+ * @param {string} value
2665
+ * @return {!proto.agentbillingserviceapi.CreateManuallyAddedAgentBillRequest} returns this
2666
+ */
2667
+ proto.agentbillingserviceapi.CreateManuallyAddedAgentBillRequest.prototype.setReference = function(value) {
2668
+ return jspb.Message.setProto3StringField(this, 4, value);
2669
+ };
2670
+
2671
+
2672
+ /**
2673
+ * optional double amount = 5;
2674
+ * @return {number}
2675
+ */
2676
+ proto.agentbillingserviceapi.CreateManuallyAddedAgentBillRequest.prototype.getAmount = function() {
2677
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
2678
+ };
2679
+
2680
+
2681
+ /**
2682
+ * @param {number} value
2683
+ * @return {!proto.agentbillingserviceapi.CreateManuallyAddedAgentBillRequest} returns this
2684
+ */
2685
+ proto.agentbillingserviceapi.CreateManuallyAddedAgentBillRequest.prototype.setAmount = function(value) {
2686
+ return jspb.Message.setProto3FloatField(this, 5, value);
2687
+ };
2688
+
2689
+
2690
+ /**
2691
+ * optional string dueDate = 6;
2692
+ * @return {string}
2693
+ */
2694
+ proto.agentbillingserviceapi.CreateManuallyAddedAgentBillRequest.prototype.getDuedate = function() {
2695
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
2696
+ };
2697
+
2698
+
2699
+ /**
2700
+ * @param {string} value
2701
+ * @return {!proto.agentbillingserviceapi.CreateManuallyAddedAgentBillRequest} returns this
2702
+ */
2703
+ proto.agentbillingserviceapi.CreateManuallyAddedAgentBillRequest.prototype.setDuedate = function(value) {
2704
+ return jspb.Message.setProto3StringField(this, 6, value);
2705
+ };
2706
+
2707
+
2708
+ /**
2709
+ * optional string invoiceNumber = 7;
2710
+ * @return {string}
2711
+ */
2712
+ proto.agentbillingserviceapi.CreateManuallyAddedAgentBillRequest.prototype.getInvoicenumber = function() {
2713
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
2714
+ };
2715
+
2716
+
2717
+ /**
2718
+ * @param {string} value
2719
+ * @return {!proto.agentbillingserviceapi.CreateManuallyAddedAgentBillRequest} returns this
2720
+ */
2721
+ proto.agentbillingserviceapi.CreateManuallyAddedAgentBillRequest.prototype.setInvoicenumber = function(value) {
2722
+ return jspb.Message.setProto3StringField(this, 7, value);
2723
+ };
2724
+
2725
+
2726
+ /**
2727
+ * optional string description = 8;
2728
+ * @return {string}
2729
+ */
2730
+ proto.agentbillingserviceapi.CreateManuallyAddedAgentBillRequest.prototype.getDescription = function() {
2731
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
2732
+ };
2733
+
2734
+
2735
+ /**
2736
+ * @param {string} value
2737
+ * @return {!proto.agentbillingserviceapi.CreateManuallyAddedAgentBillRequest} returns this
2738
+ */
2739
+ proto.agentbillingserviceapi.CreateManuallyAddedAgentBillRequest.prototype.setDescription = function(value) {
2740
+ return jspb.Message.setProto3StringField(this, 8, value);
2741
+ };
2742
+
2743
+
2744
+
2745
+
2746
+
2152
2747
  if (jspb.Message.GENERATE_TO_OBJECT) {
2153
2748
  /**
2154
2749
  * Creates an object representation of this proto.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sniipwebmaster/agent-billing-client-grpcweb-ts",
3
- "version": "23.10.647",
3
+ "version": "23.11.670",
4
4
  "description": "agent-billing-client-grpcweb-ts",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",