@@ -701,6 +701,17 @@ public List<CreditNote> createCreditNotes(List<CreditNote> objects, String unitd
701701 return put ("CreditNote" , objFactory .createCreditNotes (array ),params ).getCreditNotes ().getCreditNote ();
702702 }
703703
704+
705+ public List <CreditNote > createCreditNotes (List <CreditNote > objects , String unitdp , Boolean summarizeErrors ) throws IOException {
706+ Map <String , String > params = new HashMap <>();
707+ addToMapIfNotNull (params , "unitdp" , unitdp );
708+ addToMapIfNotNull (params , "SummarizeErrors" , summarizeErrors );
709+
710+ ArrayOfCreditNote array = new ArrayOfCreditNote ();
711+ array .getCreditNote ().addAll (objects );
712+ return put ("CreditNote" , objFactory .createCreditNotes (array ), params ).getCreditNotes ().getCreditNote ();
713+ }
714+
704715 public List <CreditNote > updateCreditNote (List <CreditNote > objects ) throws IOException {
705716 ArrayOfCreditNote array = new ArrayOfCreditNote ();
706717 array .getCreditNote ().addAll (objects );
@@ -918,7 +929,7 @@ public List<Invoice> createInvoices(List<Invoice> invoices, String unitdp) throw
918929 return put ("Invoices" , objFactory .createInvoices (array ), params ).getInvoices ().getInvoice ();
919930 }
920931
921- public List <Invoice > createInvoices (List <Invoice > invoices , String unitdp ,Boolean summarizeErrors ) throws IOException {
932+ public List <Invoice > createInvoices (List <Invoice > invoices , String unitdp , Boolean summarizeErrors ) throws IOException {
922933 Map <String , String > params = new HashMap <>();
923934 addToMapIfNotNull (params , "unitdp" , unitdp );
924935 addToMapIfNotNull (params , "SummarizeErrors" , summarizeErrors );
0 commit comments