From c55911db4a41ce15b87d511b117956ab2cd254df Mon Sep 17 00:00:00 2001 From: Kill Bill core team Date: Wed, 17 Apr 2024 05:33:15 +0000 Subject: [PATCH] publish: Merge pull request #311 from tungleduyxyz/issue_88_validate_catalog generated from commit 6d7599694bf220c87b79782a95cb80c59e47a6ca --- catalog.html | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/catalog.html b/catalog.html index 212ef322..5913835e 100644 --- a/catalog.html +++ b/catalog.html @@ -3622,7 +3622,19 @@

Validate a catalog XML

CatalogValidation validation = catalogApi.validateCatalogXml(body, requestOptions); List<CatalogValidationError> errors = validation.getCatalogValidationErrors(); -
TODO
+
user = 'user'
+reason = 'reason'
+comment = 'comment'
+
+catalog = KillBillClient::Model::Catalog
+
+catalog_file_xml = File.read("H:/killbill/catalog.xml")
+
+errors = catalog.validate_catalog(catalog_file_xml,
+                                  user,
+                                  reason,
+                                  comment,
+                                  options)
 
catalogApi = killbill.CatalogApi()
 
 xml_catalog = open("H:/killbill/catalog.xml", "r+").read()