@sniipwebmaster/agent-billing-client-grpcweb-ts 24.2.1555 → 24.2.1583

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.
@@ -298,6 +298,49 @@ export class AgentBillingServiceAPIServiceClient {
298
298
  this.methodDescriptorCreateManuallyAddedAgentBill);
299
299
  }
300
300
 
301
+ methodDescriptorImportAgentBillInternal = new grpcWeb.MethodDescriptor(
302
+ '/agentbillingserviceapi.AgentBillingServiceAPIService/ImportAgentBillInternal',
303
+ grpcWeb.MethodType.UNARY,
304
+ service_pb.ImportAgentBillRequest,
305
+ service_pb.CreateAgentBillsResponse,
306
+ (request: service_pb.ImportAgentBillRequest) => {
307
+ return request.serializeBinary();
308
+ },
309
+ service_pb.CreateAgentBillsResponse.deserializeBinary
310
+ );
311
+
312
+ importAgentBillInternal(
313
+ request: service_pb.ImportAgentBillRequest,
314
+ metadata: grpcWeb.Metadata | null): Promise<service_pb.CreateAgentBillsResponse>;
315
+
316
+ importAgentBillInternal(
317
+ request: service_pb.ImportAgentBillRequest,
318
+ metadata: grpcWeb.Metadata | null,
319
+ callback: (err: grpcWeb.RpcError,
320
+ response: service_pb.CreateAgentBillsResponse) => void): grpcWeb.ClientReadableStream<service_pb.CreateAgentBillsResponse>;
321
+
322
+ importAgentBillInternal(
323
+ request: service_pb.ImportAgentBillRequest,
324
+ metadata: grpcWeb.Metadata | null,
325
+ callback?: (err: grpcWeb.RpcError,
326
+ response: service_pb.CreateAgentBillsResponse) => void) {
327
+ if (callback !== undefined) {
328
+ return this.client_.rpcCall(
329
+ this.hostname_ +
330
+ '/agentbillingserviceapi.AgentBillingServiceAPIService/ImportAgentBillInternal',
331
+ request,
332
+ metadata || {},
333
+ this.methodDescriptorImportAgentBillInternal,
334
+ callback);
335
+ }
336
+ return this.client_.unaryCall(
337
+ this.hostname_ +
338
+ '/agentbillingserviceapi.AgentBillingServiceAPIService/ImportAgentBillInternal',
339
+ request,
340
+ metadata || {},
341
+ this.methodDescriptorImportAgentBillInternal);
342
+ }
343
+
301
344
  methodDescriptorDeclineAgentInvitation = new grpcWeb.MethodDescriptor(
302
345
  '/agentbillingserviceapi.AgentBillingServiceAPIService/DeclineAgentInvitation',
303
346
  grpcWeb.MethodType.UNARY,
@@ -599,6 +642,49 @@ export class AgentBillingServiceAPIServiceClient {
599
642
  this.methodDescriptorGetAgentBillCategoryCounts);
600
643
  }
601
644
 
645
+ methodDescriptorGetAgentAttachments = new grpcWeb.MethodDescriptor(
646
+ '/agentbillingserviceapi.AgentBillingServiceAPIService/GetAgentAttachments',
647
+ grpcWeb.MethodType.UNARY,
648
+ service_pb.GetAgentAttachmentsRequest,
649
+ service_pb.AgentAttachmentsResponse,
650
+ (request: service_pb.GetAgentAttachmentsRequest) => {
651
+ return request.serializeBinary();
652
+ },
653
+ service_pb.AgentAttachmentsResponse.deserializeBinary
654
+ );
655
+
656
+ getAgentAttachments(
657
+ request: service_pb.GetAgentAttachmentsRequest,
658
+ metadata: grpcWeb.Metadata | null): Promise<service_pb.AgentAttachmentsResponse>;
659
+
660
+ getAgentAttachments(
661
+ request: service_pb.GetAgentAttachmentsRequest,
662
+ metadata: grpcWeb.Metadata | null,
663
+ callback: (err: grpcWeb.RpcError,
664
+ response: service_pb.AgentAttachmentsResponse) => void): grpcWeb.ClientReadableStream<service_pb.AgentAttachmentsResponse>;
665
+
666
+ getAgentAttachments(
667
+ request: service_pb.GetAgentAttachmentsRequest,
668
+ metadata: grpcWeb.Metadata | null,
669
+ callback?: (err: grpcWeb.RpcError,
670
+ response: service_pb.AgentAttachmentsResponse) => void) {
671
+ if (callback !== undefined) {
672
+ return this.client_.rpcCall(
673
+ this.hostname_ +
674
+ '/agentbillingserviceapi.AgentBillingServiceAPIService/GetAgentAttachments',
675
+ request,
676
+ metadata || {},
677
+ this.methodDescriptorGetAgentAttachments,
678
+ callback);
679
+ }
680
+ return this.client_.unaryCall(
681
+ this.hostname_ +
682
+ '/agentbillingserviceapi.AgentBillingServiceAPIService/GetAgentAttachments',
683
+ request,
684
+ metadata || {},
685
+ this.methodDescriptorGetAgentAttachments);
686
+ }
687
+
602
688
  methodDescriptorGetAgentBillDeliveryDetailsByBillId = new grpcWeb.MethodDescriptor(
603
689
  '/agentbillingserviceapi.AgentBillingServiceAPIService/GetAgentBillDeliveryDetailsByBillId',
604
690
  grpcWeb.MethodType.UNARY,
@@ -422,6 +422,12 @@ export class CreateAgentBillsResponse extends jspb.Message {
422
422
  getAgentbillstatus(): string;
423
423
  setAgentbillstatus(value: string): CreateAgentBillsResponse;
424
424
 
425
+ getAgentbillid(): number;
426
+ setAgentbillid(value: number): CreateAgentBillsResponse;
427
+
428
+ getBillid(): number;
429
+ setBillid(value: number): CreateAgentBillsResponse;
430
+
425
431
  serializeBinary(): Uint8Array;
426
432
  toObject(includeInstance?: boolean): CreateAgentBillsResponse.AsObject;
427
433
  static toObject(includeInstance: boolean, msg: CreateAgentBillsResponse): CreateAgentBillsResponse.AsObject;
@@ -437,6 +443,8 @@ export namespace CreateAgentBillsResponse {
437
443
  addedbillscount: number,
438
444
  uploadbatchname: string,
439
445
  agentbillstatus: string,
446
+ agentbillid: number,
447
+ billid: number,
440
448
  }
441
449
  }
442
450
 
@@ -578,9 +586,137 @@ export namespace CreateAgentBillRequest {
578
586
  }
579
587
  }
580
588
 
589
+ export class ImportAgentBillRequest extends jspb.Message {
590
+ getBillerid(): number;
591
+ setBillerid(value: number): ImportAgentBillRequest;
592
+
593
+ getUserid(): number;
594
+ setUserid(value: number): ImportAgentBillRequest;
595
+
596
+ getType(): string;
597
+ setType(value: string): ImportAgentBillRequest;
598
+
599
+ getPaymentprocessor(): BillScanType;
600
+ setPaymentprocessor(value: BillScanType): ImportAgentBillRequest;
601
+
602
+ getAmount(): number;
603
+ setAmount(value: number): ImportAgentBillRequest;
604
+
605
+ getOverdueamount(): number;
606
+ setOverdueamount(value: number): ImportAgentBillRequest;
607
+
608
+ getDuedate(): string;
609
+ setDuedate(value: string): ImportAgentBillRequest;
610
+
611
+ getSource(): string;
612
+ setSource(value: string): ImportAgentBillRequest;
613
+
614
+ getScannedcontent(): string;
615
+ setScannedcontent(value: string): ImportAgentBillRequest;
616
+
617
+ getDescription(): string;
618
+ setDescription(value: string): ImportAgentBillRequest;
619
+
620
+ getSourceid(): number;
621
+ setSourceid(value: number): ImportAgentBillRequest;
622
+
623
+ getCategory(): string;
624
+ setCategory(value: string): ImportAgentBillRequest;
625
+
626
+ getBillid(): number;
627
+ setBillid(value: number): ImportAgentBillRequest;
628
+
629
+ getIsduedateeditable(): boolean;
630
+ setIsduedateeditable(value: boolean): ImportAgentBillRequest;
631
+
632
+ getIsdonationincluded(): boolean;
633
+ setIsdonationincluded(value: boolean): ImportAgentBillRequest;
634
+
635
+ getOriginaldonationamount(): number;
636
+ setOriginaldonationamount(value: number): ImportAgentBillRequest;
637
+
638
+ getSendnotification(): boolean;
639
+ setSendnotification(value: boolean): ImportAgentBillRequest;
640
+
641
+ getIssystemdraft(): boolean;
642
+ setIssystemdraft(value: boolean): ImportAgentBillRequest;
643
+
644
+ getIsdraft(): boolean;
645
+ setIsdraft(value: boolean): ImportAgentBillRequest;
646
+
647
+ getAttachmentid(): number;
648
+ setAttachmentid(value: number): ImportAgentBillRequest;
649
+
650
+ getCustomercategory(): string;
651
+ setCustomercategory(value: string): ImportAgentBillRequest;
652
+
653
+ getHasbeenimported(): boolean;
654
+ setHasbeenimported(value: boolean): ImportAgentBillRequest;
655
+
656
+ getBillconfigsList(): Array<BillConfigRequest>;
657
+ setBillconfigsList(value: Array<BillConfigRequest>): ImportAgentBillRequest;
658
+ clearBillconfigsList(): ImportAgentBillRequest;
659
+ addBillconfigs(value?: BillConfigRequest, index?: number): BillConfigRequest;
660
+
661
+ getIsagentbill(): boolean;
662
+ setIsagentbill(value: boolean): ImportAgentBillRequest;
663
+
664
+ getRequiresdraftreview(): boolean;
665
+ setRequiresdraftreview(value: boolean): ImportAgentBillRequest;
666
+
667
+ getAgentbillid(): number;
668
+ setAgentbillid(value: number): ImportAgentBillRequest;
669
+
670
+ getUploadbatchid(): number;
671
+ setUploadbatchid(value: number): ImportAgentBillRequest;
672
+
673
+ getAbn(): string;
674
+ setAbn(value: string): ImportAgentBillRequest;
675
+
676
+ serializeBinary(): Uint8Array;
677
+ toObject(includeInstance?: boolean): ImportAgentBillRequest.AsObject;
678
+ static toObject(includeInstance: boolean, msg: ImportAgentBillRequest): ImportAgentBillRequest.AsObject;
679
+ static serializeBinaryToWriter(message: ImportAgentBillRequest, writer: jspb.BinaryWriter): void;
680
+ static deserializeBinary(bytes: Uint8Array): ImportAgentBillRequest;
681
+ static deserializeBinaryFromReader(message: ImportAgentBillRequest, reader: jspb.BinaryReader): ImportAgentBillRequest;
682
+ }
683
+
684
+ export namespace ImportAgentBillRequest {
685
+ export type AsObject = {
686
+ billerid: number,
687
+ userid: number,
688
+ type: string,
689
+ paymentprocessor: BillScanType,
690
+ amount: number,
691
+ overdueamount: number,
692
+ duedate: string,
693
+ source: string,
694
+ scannedcontent: string,
695
+ description: string,
696
+ sourceid: number,
697
+ category: string,
698
+ billid: number,
699
+ isduedateeditable: boolean,
700
+ isdonationincluded: boolean,
701
+ originaldonationamount: number,
702
+ sendnotification: boolean,
703
+ issystemdraft: boolean,
704
+ isdraft: boolean,
705
+ attachmentid: number,
706
+ customercategory: string,
707
+ hasbeenimported: boolean,
708
+ billconfigsList: Array<BillConfigRequest.AsObject>,
709
+ isagentbill: boolean,
710
+ requiresdraftreview: boolean,
711
+ agentbillid: number,
712
+ uploadbatchid: number,
713
+ abn: string,
714
+ }
715
+ }
716
+
581
717
  export class BillConfigRequest extends jspb.Message {
582
- getPaymentprocessor(): BillConfigRequest.PaymentProcessor;
583
- setPaymentprocessor(value: BillConfigRequest.PaymentProcessor): BillConfigRequest;
718
+ getPaymentprocessor(): BillScanType;
719
+ setPaymentprocessor(value: BillScanType): BillConfigRequest;
584
720
 
585
721
  getReference(): string;
586
722
  setReference(value: string): BillConfigRequest;
@@ -600,6 +736,9 @@ export class BillConfigRequest extends jspb.Message {
600
736
  getInvoicenumber(): string;
601
737
  setInvoicenumber(value: string): BillConfigRequest;
602
738
 
739
+ getBillerconfigid(): number;
740
+ setBillerconfigid(value: number): BillConfigRequest;
741
+
603
742
  serializeBinary(): Uint8Array;
604
743
  toObject(includeInstance?: boolean): BillConfigRequest.AsObject;
605
744
  static toObject(includeInstance: boolean, msg: BillConfigRequest): BillConfigRequest.AsObject;
@@ -610,19 +749,106 @@ export class BillConfigRequest extends jspb.Message {
610
749
 
611
750
  export namespace BillConfigRequest {
612
751
  export type AsObject = {
613
- paymentprocessor: BillConfigRequest.PaymentProcessor,
752
+ paymentprocessor: BillScanType,
614
753
  reference: string,
615
754
  billercode: string,
616
755
  accountname: string,
617
756
  bsb: string,
618
757
  accountno: string,
619
758
  invoicenumber: string,
759
+ billerconfigid: number,
760
+ }
761
+ }
762
+
763
+ export class GetAgentAttachmentsRequest extends jspb.Message {
764
+ getClientid(): number;
765
+ setClientid(value: number): GetAgentAttachmentsRequest;
766
+
767
+ getStatusesList(): Array<AttachmentStatus>;
768
+ setStatusesList(value: Array<AttachmentStatus>): GetAgentAttachmentsRequest;
769
+ clearStatusesList(): GetAgentAttachmentsRequest;
770
+ addStatuses(value: AttachmentStatus, index?: number): GetAgentAttachmentsRequest;
771
+
772
+ serializeBinary(): Uint8Array;
773
+ toObject(includeInstance?: boolean): GetAgentAttachmentsRequest.AsObject;
774
+ static toObject(includeInstance: boolean, msg: GetAgentAttachmentsRequest): GetAgentAttachmentsRequest.AsObject;
775
+ static serializeBinaryToWriter(message: GetAgentAttachmentsRequest, writer: jspb.BinaryWriter): void;
776
+ static deserializeBinary(bytes: Uint8Array): GetAgentAttachmentsRequest;
777
+ static deserializeBinaryFromReader(message: GetAgentAttachmentsRequest, reader: jspb.BinaryReader): GetAgentAttachmentsRequest;
778
+ }
779
+
780
+ export namespace GetAgentAttachmentsRequest {
781
+ export type AsObject = {
782
+ clientid: number,
783
+ statusesList: Array<AttachmentStatus>,
784
+ }
785
+ }
786
+
787
+ export class AgentAttachmentsResponse extends jspb.Message {
788
+ getResponsecode(): ResponseCode | undefined;
789
+ setResponsecode(value?: ResponseCode): AgentAttachmentsResponse;
790
+ hasResponsecode(): boolean;
791
+ clearResponsecode(): AgentAttachmentsResponse;
792
+
793
+ getAttachmentsList(): Array<AgentAttachmentInfo>;
794
+ setAttachmentsList(value: Array<AgentAttachmentInfo>): AgentAttachmentsResponse;
795
+ clearAttachmentsList(): AgentAttachmentsResponse;
796
+ addAttachments(value?: AgentAttachmentInfo, index?: number): AgentAttachmentInfo;
797
+
798
+ serializeBinary(): Uint8Array;
799
+ toObject(includeInstance?: boolean): AgentAttachmentsResponse.AsObject;
800
+ static toObject(includeInstance: boolean, msg: AgentAttachmentsResponse): AgentAttachmentsResponse.AsObject;
801
+ static serializeBinaryToWriter(message: AgentAttachmentsResponse, writer: jspb.BinaryWriter): void;
802
+ static deserializeBinary(bytes: Uint8Array): AgentAttachmentsResponse;
803
+ static deserializeBinaryFromReader(message: AgentAttachmentsResponse, reader: jspb.BinaryReader): AgentAttachmentsResponse;
804
+ }
805
+
806
+ export namespace AgentAttachmentsResponse {
807
+ export type AsObject = {
808
+ responsecode?: ResponseCode.AsObject,
809
+ attachmentsList: Array<AgentAttachmentInfo.AsObject>,
620
810
  }
811
+ }
812
+
813
+ export class AgentAttachmentInfo extends jspb.Message {
814
+ getAgentid(): number;
815
+ setAgentid(value: number): AgentAttachmentInfo;
816
+
817
+ getClientid(): number;
818
+ setClientid(value: number): AgentAttachmentInfo;
819
+
820
+ getAttachmentid(): number;
821
+ setAttachmentid(value: number): AgentAttachmentInfo;
822
+
823
+ getAgentbillid(): number;
824
+ setAgentbillid(value: number): AgentAttachmentInfo;
825
+
826
+ getUploadbatchid(): number;
827
+ setUploadbatchid(value: number): AgentAttachmentInfo;
828
+
829
+ getStatus(): AttachmentStatus;
830
+ setStatus(value: AttachmentStatus): AgentAttachmentInfo;
831
+
832
+ getUpdatedat(): string;
833
+ setUpdatedat(value: string): AgentAttachmentInfo;
621
834
 
622
- export enum PaymentProcessor {
623
- UNKNOWN = 0,
624
- BPAY = 1,
625
- SME = 2,
835
+ serializeBinary(): Uint8Array;
836
+ toObject(includeInstance?: boolean): AgentAttachmentInfo.AsObject;
837
+ static toObject(includeInstance: boolean, msg: AgentAttachmentInfo): AgentAttachmentInfo.AsObject;
838
+ static serializeBinaryToWriter(message: AgentAttachmentInfo, writer: jspb.BinaryWriter): void;
839
+ static deserializeBinary(bytes: Uint8Array): AgentAttachmentInfo;
840
+ static deserializeBinaryFromReader(message: AgentAttachmentInfo, reader: jspb.BinaryReader): AgentAttachmentInfo;
841
+ }
842
+
843
+ export namespace AgentAttachmentInfo {
844
+ export type AsObject = {
845
+ agentid: number,
846
+ clientid: number,
847
+ attachmentid: number,
848
+ agentbillid: number,
849
+ uploadbatchid: number,
850
+ status: AttachmentStatus,
851
+ updatedat: string,
626
852
  }
627
853
  }
628
854
 
@@ -2196,42 +2422,23 @@ export class AgentBillTransaction extends jspb.Message {
2196
2422
  getDescription(): string;
2197
2423
  setDescription(value: string): AgentBillTransaction;
2198
2424
 
2199
- getInvoicenumber(): string;
2200
- setInvoicenumber(value: string): AgentBillTransaction;
2201
-
2202
- getBillercode(): string;
2203
- setBillercode(value: string): AgentBillTransaction;
2204
-
2205
- getBpayreference(): string;
2206
- setBpayreference(value: string): AgentBillTransaction;
2207
-
2208
- getBsb(): string;
2209
- setBsb(value: string): AgentBillTransaction;
2210
-
2211
- getAccountnumber(): string;
2212
- setAccountnumber(value: string): AgentBillTransaction;
2213
-
2214
- getAccountname(): string;
2215
- setAccountname(value: string): AgentBillTransaction;
2216
-
2217
- getSmereference(): string;
2218
- setSmereference(value: string): AgentBillTransaction;
2219
-
2220
2425
  getDeliverybatchname(): string;
2221
2426
  setDeliverybatchname(value: string): AgentBillTransaction;
2222
2427
 
2223
2428
  getSettlementdate(): string;
2224
2429
  setSettlementdate(value: string): AgentBillTransaction;
2225
2430
 
2226
- getBpayreceiptid(): string;
2227
- setBpayreceiptid(value: string): AgentBillTransaction;
2228
-
2229
- getSmereceiptid(): string;
2230
- setSmereceiptid(value: string): AgentBillTransaction;
2431
+ getReceiptid(): string;
2432
+ setReceiptid(value: string): AgentBillTransaction;
2231
2433
 
2232
2434
  getRewardamount(): number;
2233
2435
  setRewardamount(value: number): AgentBillTransaction;
2234
2436
 
2437
+ getBillconfigsList(): Array<BillConfig>;
2438
+ setBillconfigsList(value: Array<BillConfig>): AgentBillTransaction;
2439
+ clearBillconfigsList(): AgentBillTransaction;
2440
+ addBillconfigs(value?: BillConfig, index?: number): BillConfig;
2441
+
2235
2442
  serializeBinary(): Uint8Array;
2236
2443
  toObject(includeInstance?: boolean): AgentBillTransaction.AsObject;
2237
2444
  static toObject(includeInstance: boolean, msg: AgentBillTransaction): AgentBillTransaction.AsObject;
@@ -2253,18 +2460,11 @@ export namespace AgentBillTransaction {
2253
2460
  surcharge: number,
2254
2461
  totalamount: number,
2255
2462
  description: string,
2256
- invoicenumber: string,
2257
- billercode: string,
2258
- bpayreference: string,
2259
- bsb: string,
2260
- accountnumber: string,
2261
- accountname: string,
2262
- smereference: string,
2263
2463
  deliverybatchname: string,
2264
2464
  settlementdate: string,
2265
- bpayreceiptid: string,
2266
- smereceiptid: string,
2465
+ receiptid: string,
2267
2466
  rewardamount: number,
2467
+ billconfigsList: Array<BillConfig.AsObject>,
2268
2468
  }
2269
2469
  }
2270
2470
 
@@ -2442,6 +2642,19 @@ export namespace BillConfig {
2442
2642
  }
2443
2643
  }
2444
2644
 
2645
+ export enum BillScanType {
2646
+ SNIIP = 0,
2647
+ BPAY = 1,
2648
+ AUSPOST = 2,
2649
+ XERO = 3,
2650
+ HYBRID = 4,
2651
+ SME = 5,
2652
+ }
2653
+ export enum AttachmentStatus {
2654
+ FAILED = 0,
2655
+ PROCESSING = 1,
2656
+ SUCCEED = 2,
2657
+ }
2445
2658
  export enum UploadBatchType {
2446
2659
  UNKNOWN = 0,
2447
2660
  MANUALLY_ADDED = 1,