@@ -702,6 +702,17 @@ public List<CreditNote> createCreditNotes(List<CreditNote> objects, String unitd
702702 return put ("CreditNote" , objFactory .createCreditNotes (array ),params ).getCreditNotes ().getCreditNote ();
703703 }
704704
705+
706+ public List <CreditNote > createCreditNotes (List <CreditNote > objects , String unitdp , Boolean summarizeErrors ) throws IOException {
707+ Map <String , String > params = new HashMap <>();
708+ addToMapIfNotNull (params , "unitdp" , unitdp );
709+ addToMapIfNotNull (params , "SummarizeErrors" , summarizeErrors );
710+
711+ ArrayOfCreditNote array = new ArrayOfCreditNote ();
712+ array .getCreditNote ().addAll (objects );
713+ return put ("CreditNote" , objFactory .createCreditNotes (array ), params ).getCreditNotes ().getCreditNote ();
714+ }
715+
705716 public List <CreditNote > updateCreditNote (List <CreditNote > objects ) throws IOException {
706717 ArrayOfCreditNote array = new ArrayOfCreditNote ();
707718 array .getCreditNote ().addAll (objects );
@@ -919,7 +930,7 @@ public List<Invoice> createInvoices(List<Invoice> invoices, String unitdp) throw
919930 return put ("Invoices" , objFactory .createInvoices (array ), params ).getInvoices ().getInvoice ();
920931 }
921932
922- public List <Invoice > createInvoices (List <Invoice > invoices , String unitdp ,Boolean summarizeErrors ) throws IOException {
933+ public List <Invoice > createInvoices (List <Invoice > invoices , String unitdp , Boolean summarizeErrors ) throws IOException {
923934 Map <String , String > params = new HashMap <>();
924935 addToMapIfNotNull (params , "unitdp" , unitdp );
925936 addToMapIfNotNull (params , "SummarizeErrors" , summarizeErrors );
0 commit comments