Explorar o código

Adding all values as the default for status and type invoces filters

bodicsek %!s(int64=6) %!d(string=hai) anos
pai
achega
8fbdbfc1fd
Modificáronse 1 ficheiros con 5 adicións e 2 borrados
  1. 5 2
      app.js

+ 5 - 2
app.js

@@ -136,7 +136,7 @@ function createVCN(compartmentId, displayName, cidrBlock, callback) {
 
 /************************************************************************/
 
-function getInvoices(callback, compartmentId = authTenancyId, status = "OPEN", type = "HARDWARE") {
+function getInvoices(callback, compartmentId = authTenancyId, status = "OPEN,PAST_DUE,PAYMENT_SUBMITTED,CLOSED", type = "HARDWARE,SUBSCRIPTION,SUPPORT,LICENSE,EDUCATION,CONSULTING,SERVICE,USAGE") {
     const request = https.request(
         {
             host: invoicesDomain,
@@ -177,5 +177,8 @@ getInvoices(
     function (data) {
         console.log("+++ getInvoices");
         console.log("+++", data);
-    }
+    },
+    authTenancyId,
+    "OPEN,PAST_DUE,PAYMENT_SUBMITTED,CLOSED",
+    "HARDWARE"
 );