@sniipwebmaster/agent-billing-client-grpcweb-ts 24.15.3552 → 24.15.3572

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.
@@ -341,6 +341,49 @@ export class AgentBillingServiceAPIServiceClient {
341
341
  this.methodDescriptorCreateManuallyAddedAgentBill);
342
342
  }
343
343
 
344
+ methodDescriptorCopyExistingAgentBill = new grpcWeb.MethodDescriptor(
345
+ '/agentbillingserviceapi.AgentBillingServiceAPIService/CopyExistingAgentBill',
346
+ grpcWeb.MethodType.UNARY,
347
+ service_pb.CopyExistingAgentBillRequest,
348
+ service_pb.CreateAgentBillsResponse,
349
+ (request: service_pb.CopyExistingAgentBillRequest) => {
350
+ return request.serializeBinary();
351
+ },
352
+ service_pb.CreateAgentBillsResponse.deserializeBinary
353
+ );
354
+
355
+ copyExistingAgentBill(
356
+ request: service_pb.CopyExistingAgentBillRequest,
357
+ metadata?: grpcWeb.Metadata | null): Promise<service_pb.CreateAgentBillsResponse>;
358
+
359
+ copyExistingAgentBill(
360
+ request: service_pb.CopyExistingAgentBillRequest,
361
+ metadata: grpcWeb.Metadata | null,
362
+ callback: (err: grpcWeb.RpcError,
363
+ response: service_pb.CreateAgentBillsResponse) => void): grpcWeb.ClientReadableStream<service_pb.CreateAgentBillsResponse>;
364
+
365
+ copyExistingAgentBill(
366
+ request: service_pb.CopyExistingAgentBillRequest,
367
+ metadata?: grpcWeb.Metadata | null,
368
+ callback?: (err: grpcWeb.RpcError,
369
+ response: service_pb.CreateAgentBillsResponse) => void) {
370
+ if (callback !== undefined) {
371
+ return this.client_.rpcCall(
372
+ this.hostname_ +
373
+ '/agentbillingserviceapi.AgentBillingServiceAPIService/CopyExistingAgentBill',
374
+ request,
375
+ metadata || {},
376
+ this.methodDescriptorCopyExistingAgentBill,
377
+ callback);
378
+ }
379
+ return this.client_.unaryCall(
380
+ this.hostname_ +
381
+ '/agentbillingserviceapi.AgentBillingServiceAPIService/CopyExistingAgentBill',
382
+ request,
383
+ metadata || {},
384
+ this.methodDescriptorCopyExistingAgentBill);
385
+ }
386
+
344
387
  methodDescriptorImportAgentBillInternal = new grpcWeb.MethodDescriptor(
345
388
  '/agentbillingserviceapi.AgentBillingServiceAPIService/ImportAgentBillInternal',
346
389
  grpcWeb.MethodType.UNARY,
@@ -615,6 +615,56 @@ export namespace CreateManuallyAddedAgentBillRequest {
615
615
  }
616
616
  }
617
617
 
618
+ export class CopyExistingAgentBillRequest extends jspb.Message {
619
+ getClientuserid(): number;
620
+ setClientuserid(value: number): CopyExistingAgentBillRequest;
621
+
622
+ getBillid(): number;
623
+ setBillid(value: number): CopyExistingAgentBillRequest;
624
+
625
+ getBillconfigid(): number;
626
+ setBillconfigid(value: number): CopyExistingAgentBillRequest;
627
+
628
+ getReference(): string;
629
+ setReference(value: string): CopyExistingAgentBillRequest;
630
+
631
+ getAmount(): number;
632
+ setAmount(value: number): CopyExistingAgentBillRequest;
633
+
634
+ getDuedate(): string;
635
+ setDuedate(value: string): CopyExistingAgentBillRequest;
636
+
637
+ getInvoicenumber(): string;
638
+ setInvoicenumber(value: string): CopyExistingAgentBillRequest;
639
+
640
+ getDescription(): string;
641
+ setDescription(value: string): CopyExistingAgentBillRequest;
642
+
643
+ getAttachmentid(): number;
644
+ setAttachmentid(value: number): CopyExistingAgentBillRequest;
645
+
646
+ serializeBinary(): Uint8Array;
647
+ toObject(includeInstance?: boolean): CopyExistingAgentBillRequest.AsObject;
648
+ static toObject(includeInstance: boolean, msg: CopyExistingAgentBillRequest): CopyExistingAgentBillRequest.AsObject;
649
+ static serializeBinaryToWriter(message: CopyExistingAgentBillRequest, writer: jspb.BinaryWriter): void;
650
+ static deserializeBinary(bytes: Uint8Array): CopyExistingAgentBillRequest;
651
+ static deserializeBinaryFromReader(message: CopyExistingAgentBillRequest, reader: jspb.BinaryReader): CopyExistingAgentBillRequest;
652
+ }
653
+
654
+ export namespace CopyExistingAgentBillRequest {
655
+ export type AsObject = {
656
+ clientuserid: number,
657
+ billid: number,
658
+ billconfigid: number,
659
+ reference: string,
660
+ amount: number,
661
+ duedate: string,
662
+ invoicenumber: string,
663
+ description: string,
664
+ attachmentid: number,
665
+ }
666
+ }
667
+
618
668
  export class CreateAgentBillRequest extends jspb.Message {
619
669
  getClientuserid(): number;
620
670
  setClientuserid(value: number): CreateAgentBillRequest;
@@ -40,6 +40,7 @@ goog.exportSymbol('proto.agentbillingserviceapi.CancelAgentInviteRequest', null,
40
40
  goog.exportSymbol('proto.agentbillingserviceapi.CheckConnectionRequest', null, global);
41
41
  goog.exportSymbol('proto.agentbillingserviceapi.Client', null, global);
42
42
  goog.exportSymbol('proto.agentbillingserviceapi.ConnectAgentRequest', null, global);
43
+ goog.exportSymbol('proto.agentbillingserviceapi.CopyExistingAgentBillRequest', null, global);
43
44
  goog.exportSymbol('proto.agentbillingserviceapi.CreateAgentAttachmentRequest', null, global);
44
45
  goog.exportSymbol('proto.agentbillingserviceapi.CreateAgentAttachmentResponse', null, global);
45
46
  goog.exportSymbol('proto.agentbillingserviceapi.CreateAgentBillRequest', null, global);
@@ -486,6 +487,27 @@ if (goog.DEBUG && !COMPILED) {
486
487
  */
487
488
  proto.agentbillingserviceapi.CreateManuallyAddedAgentBillRequest.displayName = 'proto.agentbillingserviceapi.CreateManuallyAddedAgentBillRequest';
488
489
  }
490
+ /**
491
+ * Generated by JsPbCodeGenerator.
492
+ * @param {Array=} opt_data Optional initial data array, typically from a
493
+ * server response, or constructed directly in Javascript. The array is used
494
+ * in place and becomes part of the constructed object. It is not cloned.
495
+ * If no data is provided, the constructed object will be empty, but still
496
+ * valid.
497
+ * @extends {jspb.Message}
498
+ * @constructor
499
+ */
500
+ proto.agentbillingserviceapi.CopyExistingAgentBillRequest = function(opt_data) {
501
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
502
+ };
503
+ goog.inherits(proto.agentbillingserviceapi.CopyExistingAgentBillRequest, jspb.Message);
504
+ if (goog.DEBUG && !COMPILED) {
505
+ /**
506
+ * @public
507
+ * @override
508
+ */
509
+ proto.agentbillingserviceapi.CopyExistingAgentBillRequest.displayName = 'proto.agentbillingserviceapi.CopyExistingAgentBillRequest';
510
+ }
489
511
  /**
490
512
  * Generated by JsPbCodeGenerator.
491
513
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -6901,6 +6923,376 @@ proto.agentbillingserviceapi.CreateManuallyAddedAgentBillRequest.prototype.setAt
6901
6923
 
6902
6924
 
6903
6925
 
6926
+
6927
+
6928
+ if (jspb.Message.GENERATE_TO_OBJECT) {
6929
+ /**
6930
+ * Creates an object representation of this proto.
6931
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
6932
+ * Optional fields that are not set will be set to undefined.
6933
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6934
+ * For the list of reserved names please see:
6935
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6936
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6937
+ * JSPB instance for transitional soy proto support:
6938
+ * http://goto/soy-param-migration
6939
+ * @return {!Object}
6940
+ */
6941
+ proto.agentbillingserviceapi.CopyExistingAgentBillRequest.prototype.toObject = function(opt_includeInstance) {
6942
+ return proto.agentbillingserviceapi.CopyExistingAgentBillRequest.toObject(opt_includeInstance, this);
6943
+ };
6944
+
6945
+
6946
+ /**
6947
+ * Static version of the {@see toObject} method.
6948
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6949
+ * the JSPB instance for transitional soy proto support:
6950
+ * http://goto/soy-param-migration
6951
+ * @param {!proto.agentbillingserviceapi.CopyExistingAgentBillRequest} msg The msg instance to transform.
6952
+ * @return {!Object}
6953
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6954
+ */
6955
+ proto.agentbillingserviceapi.CopyExistingAgentBillRequest.toObject = function(includeInstance, msg) {
6956
+ var f, obj = {
6957
+ clientuserid: jspb.Message.getFieldWithDefault(msg, 1, 0),
6958
+ billid: jspb.Message.getFieldWithDefault(msg, 2, 0),
6959
+ billconfigid: jspb.Message.getFieldWithDefault(msg, 3, 0),
6960
+ reference: jspb.Message.getFieldWithDefault(msg, 4, ""),
6961
+ amount: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
6962
+ duedate: jspb.Message.getFieldWithDefault(msg, 6, ""),
6963
+ invoicenumber: jspb.Message.getFieldWithDefault(msg, 7, ""),
6964
+ description: jspb.Message.getFieldWithDefault(msg, 8, ""),
6965
+ attachmentid: jspb.Message.getFieldWithDefault(msg, 9, 0)
6966
+ };
6967
+
6968
+ if (includeInstance) {
6969
+ obj.$jspbMessageInstance = msg;
6970
+ }
6971
+ return obj;
6972
+ };
6973
+ }
6974
+
6975
+
6976
+ /**
6977
+ * Deserializes binary data (in protobuf wire format).
6978
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
6979
+ * @return {!proto.agentbillingserviceapi.CopyExistingAgentBillRequest}
6980
+ */
6981
+ proto.agentbillingserviceapi.CopyExistingAgentBillRequest.deserializeBinary = function(bytes) {
6982
+ var reader = new jspb.BinaryReader(bytes);
6983
+ var msg = new proto.agentbillingserviceapi.CopyExistingAgentBillRequest;
6984
+ return proto.agentbillingserviceapi.CopyExistingAgentBillRequest.deserializeBinaryFromReader(msg, reader);
6985
+ };
6986
+
6987
+
6988
+ /**
6989
+ * Deserializes binary data (in protobuf wire format) from the
6990
+ * given reader into the given message object.
6991
+ * @param {!proto.agentbillingserviceapi.CopyExistingAgentBillRequest} msg The message object to deserialize into.
6992
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6993
+ * @return {!proto.agentbillingserviceapi.CopyExistingAgentBillRequest}
6994
+ */
6995
+ proto.agentbillingserviceapi.CopyExistingAgentBillRequest.deserializeBinaryFromReader = function(msg, reader) {
6996
+ while (reader.nextField()) {
6997
+ if (reader.isEndGroup()) {
6998
+ break;
6999
+ }
7000
+ var field = reader.getFieldNumber();
7001
+ switch (field) {
7002
+ case 1:
7003
+ var value = /** @type {number} */ (reader.readInt64());
7004
+ msg.setClientuserid(value);
7005
+ break;
7006
+ case 2:
7007
+ var value = /** @type {number} */ (reader.readInt64());
7008
+ msg.setBillid(value);
7009
+ break;
7010
+ case 3:
7011
+ var value = /** @type {number} */ (reader.readInt64());
7012
+ msg.setBillconfigid(value);
7013
+ break;
7014
+ case 4:
7015
+ var value = /** @type {string} */ (reader.readString());
7016
+ msg.setReference(value);
7017
+ break;
7018
+ case 5:
7019
+ var value = /** @type {number} */ (reader.readDouble());
7020
+ msg.setAmount(value);
7021
+ break;
7022
+ case 6:
7023
+ var value = /** @type {string} */ (reader.readString());
7024
+ msg.setDuedate(value);
7025
+ break;
7026
+ case 7:
7027
+ var value = /** @type {string} */ (reader.readString());
7028
+ msg.setInvoicenumber(value);
7029
+ break;
7030
+ case 8:
7031
+ var value = /** @type {string} */ (reader.readString());
7032
+ msg.setDescription(value);
7033
+ break;
7034
+ case 9:
7035
+ var value = /** @type {number} */ (reader.readInt64());
7036
+ msg.setAttachmentid(value);
7037
+ break;
7038
+ default:
7039
+ reader.skipField();
7040
+ break;
7041
+ }
7042
+ }
7043
+ return msg;
7044
+ };
7045
+
7046
+
7047
+ /**
7048
+ * Serializes the message to binary data (in protobuf wire format).
7049
+ * @return {!Uint8Array}
7050
+ */
7051
+ proto.agentbillingserviceapi.CopyExistingAgentBillRequest.prototype.serializeBinary = function() {
7052
+ var writer = new jspb.BinaryWriter();
7053
+ proto.agentbillingserviceapi.CopyExistingAgentBillRequest.serializeBinaryToWriter(this, writer);
7054
+ return writer.getResultBuffer();
7055
+ };
7056
+
7057
+
7058
+ /**
7059
+ * Serializes the given message to binary data (in protobuf wire
7060
+ * format), writing to the given BinaryWriter.
7061
+ * @param {!proto.agentbillingserviceapi.CopyExistingAgentBillRequest} message
7062
+ * @param {!jspb.BinaryWriter} writer
7063
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7064
+ */
7065
+ proto.agentbillingserviceapi.CopyExistingAgentBillRequest.serializeBinaryToWriter = function(message, writer) {
7066
+ var f = undefined;
7067
+ f = message.getClientuserid();
7068
+ if (f !== 0) {
7069
+ writer.writeInt64(
7070
+ 1,
7071
+ f
7072
+ );
7073
+ }
7074
+ f = message.getBillid();
7075
+ if (f !== 0) {
7076
+ writer.writeInt64(
7077
+ 2,
7078
+ f
7079
+ );
7080
+ }
7081
+ f = message.getBillconfigid();
7082
+ if (f !== 0) {
7083
+ writer.writeInt64(
7084
+ 3,
7085
+ f
7086
+ );
7087
+ }
7088
+ f = message.getReference();
7089
+ if (f.length > 0) {
7090
+ writer.writeString(
7091
+ 4,
7092
+ f
7093
+ );
7094
+ }
7095
+ f = message.getAmount();
7096
+ if (f !== 0.0) {
7097
+ writer.writeDouble(
7098
+ 5,
7099
+ f
7100
+ );
7101
+ }
7102
+ f = message.getDuedate();
7103
+ if (f.length > 0) {
7104
+ writer.writeString(
7105
+ 6,
7106
+ f
7107
+ );
7108
+ }
7109
+ f = message.getInvoicenumber();
7110
+ if (f.length > 0) {
7111
+ writer.writeString(
7112
+ 7,
7113
+ f
7114
+ );
7115
+ }
7116
+ f = message.getDescription();
7117
+ if (f.length > 0) {
7118
+ writer.writeString(
7119
+ 8,
7120
+ f
7121
+ );
7122
+ }
7123
+ f = message.getAttachmentid();
7124
+ if (f !== 0) {
7125
+ writer.writeInt64(
7126
+ 9,
7127
+ f
7128
+ );
7129
+ }
7130
+ };
7131
+
7132
+
7133
+ /**
7134
+ * optional int64 clientUserId = 1;
7135
+ * @return {number}
7136
+ */
7137
+ proto.agentbillingserviceapi.CopyExistingAgentBillRequest.prototype.getClientuserid = function() {
7138
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
7139
+ };
7140
+
7141
+
7142
+ /**
7143
+ * @param {number} value
7144
+ * @return {!proto.agentbillingserviceapi.CopyExistingAgentBillRequest} returns this
7145
+ */
7146
+ proto.agentbillingserviceapi.CopyExistingAgentBillRequest.prototype.setClientuserid = function(value) {
7147
+ return jspb.Message.setProto3IntField(this, 1, value);
7148
+ };
7149
+
7150
+
7151
+ /**
7152
+ * optional int64 billId = 2;
7153
+ * @return {number}
7154
+ */
7155
+ proto.agentbillingserviceapi.CopyExistingAgentBillRequest.prototype.getBillid = function() {
7156
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
7157
+ };
7158
+
7159
+
7160
+ /**
7161
+ * @param {number} value
7162
+ * @return {!proto.agentbillingserviceapi.CopyExistingAgentBillRequest} returns this
7163
+ */
7164
+ proto.agentbillingserviceapi.CopyExistingAgentBillRequest.prototype.setBillid = function(value) {
7165
+ return jspb.Message.setProto3IntField(this, 2, value);
7166
+ };
7167
+
7168
+
7169
+ /**
7170
+ * optional int64 billConfigId = 3;
7171
+ * @return {number}
7172
+ */
7173
+ proto.agentbillingserviceapi.CopyExistingAgentBillRequest.prototype.getBillconfigid = function() {
7174
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
7175
+ };
7176
+
7177
+
7178
+ /**
7179
+ * @param {number} value
7180
+ * @return {!proto.agentbillingserviceapi.CopyExistingAgentBillRequest} returns this
7181
+ */
7182
+ proto.agentbillingserviceapi.CopyExistingAgentBillRequest.prototype.setBillconfigid = function(value) {
7183
+ return jspb.Message.setProto3IntField(this, 3, value);
7184
+ };
7185
+
7186
+
7187
+ /**
7188
+ * optional string reference = 4;
7189
+ * @return {string}
7190
+ */
7191
+ proto.agentbillingserviceapi.CopyExistingAgentBillRequest.prototype.getReference = function() {
7192
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
7193
+ };
7194
+
7195
+
7196
+ /**
7197
+ * @param {string} value
7198
+ * @return {!proto.agentbillingserviceapi.CopyExistingAgentBillRequest} returns this
7199
+ */
7200
+ proto.agentbillingserviceapi.CopyExistingAgentBillRequest.prototype.setReference = function(value) {
7201
+ return jspb.Message.setProto3StringField(this, 4, value);
7202
+ };
7203
+
7204
+
7205
+ /**
7206
+ * optional double amount = 5;
7207
+ * @return {number}
7208
+ */
7209
+ proto.agentbillingserviceapi.CopyExistingAgentBillRequest.prototype.getAmount = function() {
7210
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
7211
+ };
7212
+
7213
+
7214
+ /**
7215
+ * @param {number} value
7216
+ * @return {!proto.agentbillingserviceapi.CopyExistingAgentBillRequest} returns this
7217
+ */
7218
+ proto.agentbillingserviceapi.CopyExistingAgentBillRequest.prototype.setAmount = function(value) {
7219
+ return jspb.Message.setProto3FloatField(this, 5, value);
7220
+ };
7221
+
7222
+
7223
+ /**
7224
+ * optional string dueDate = 6;
7225
+ * @return {string}
7226
+ */
7227
+ proto.agentbillingserviceapi.CopyExistingAgentBillRequest.prototype.getDuedate = function() {
7228
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
7229
+ };
7230
+
7231
+
7232
+ /**
7233
+ * @param {string} value
7234
+ * @return {!proto.agentbillingserviceapi.CopyExistingAgentBillRequest} returns this
7235
+ */
7236
+ proto.agentbillingserviceapi.CopyExistingAgentBillRequest.prototype.setDuedate = function(value) {
7237
+ return jspb.Message.setProto3StringField(this, 6, value);
7238
+ };
7239
+
7240
+
7241
+ /**
7242
+ * optional string invoiceNumber = 7;
7243
+ * @return {string}
7244
+ */
7245
+ proto.agentbillingserviceapi.CopyExistingAgentBillRequest.prototype.getInvoicenumber = function() {
7246
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
7247
+ };
7248
+
7249
+
7250
+ /**
7251
+ * @param {string} value
7252
+ * @return {!proto.agentbillingserviceapi.CopyExistingAgentBillRequest} returns this
7253
+ */
7254
+ proto.agentbillingserviceapi.CopyExistingAgentBillRequest.prototype.setInvoicenumber = function(value) {
7255
+ return jspb.Message.setProto3StringField(this, 7, value);
7256
+ };
7257
+
7258
+
7259
+ /**
7260
+ * optional string description = 8;
7261
+ * @return {string}
7262
+ */
7263
+ proto.agentbillingserviceapi.CopyExistingAgentBillRequest.prototype.getDescription = function() {
7264
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
7265
+ };
7266
+
7267
+
7268
+ /**
7269
+ * @param {string} value
7270
+ * @return {!proto.agentbillingserviceapi.CopyExistingAgentBillRequest} returns this
7271
+ */
7272
+ proto.agentbillingserviceapi.CopyExistingAgentBillRequest.prototype.setDescription = function(value) {
7273
+ return jspb.Message.setProto3StringField(this, 8, value);
7274
+ };
7275
+
7276
+
7277
+ /**
7278
+ * optional int64 attachmentId = 9;
7279
+ * @return {number}
7280
+ */
7281
+ proto.agentbillingserviceapi.CopyExistingAgentBillRequest.prototype.getAttachmentid = function() {
7282
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
7283
+ };
7284
+
7285
+
7286
+ /**
7287
+ * @param {number} value
7288
+ * @return {!proto.agentbillingserviceapi.CopyExistingAgentBillRequest} returns this
7289
+ */
7290
+ proto.agentbillingserviceapi.CopyExistingAgentBillRequest.prototype.setAttachmentid = function(value) {
7291
+ return jspb.Message.setProto3IntField(this, 9, value);
7292
+ };
7293
+
7294
+
7295
+
6904
7296
  /**
6905
7297
  * List of repeated fields within this message type.
6906
7298
  * @private {!Array<number>}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sniipwebmaster/agent-billing-client-grpcweb-ts",
3
- "version": "24.15.3552",
3
+ "version": "24.15.3572",
4
4
  "description": "agent-billing-client-grpcweb-ts",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",