Pārlūkot izejas kodu

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

bodicsek 6 gadi atpakaļ
vecāks
revīzija
8fbdbfc1fd
1 mainītis faili ar 5 papildinājumiem un 2 dzēšanām
  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"
 );