@crediblemark/buayar 0.8.3 → 0.8.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli/index.js CHANGED
@@ -484,7 +484,7 @@ function printScaffoldSummary(result) {
484
484
  }
485
485
 
486
486
  // src/cli/index.ts
487
- var VERSION = "0.8.3";
487
+ var VERSION = "0.8.4";
488
488
  function parseArgs(argv) {
489
489
  const flags = [];
490
490
  const rest = [];
package/dist/index.js CHANGED
@@ -2030,6 +2030,10 @@ var IpaymuProvider = class extends BasePaymentProvider {
2030
2030
  feeDetail: ch.TransactionFee
2031
2031
  }
2032
2032
  };
2033
+ const health = String(ch.HealthStatus || "").toLowerCase();
2034
+ const feature = String(ch.FeatureStatus || "").toLowerCase();
2035
+ const explicitlyUnavailable = feature !== "" && feature !== "active" || health !== "" && health !== "online";
2036
+ if (explicitlyUnavailable) continue;
2033
2037
  methods.push(pm);
2034
2038
  if (!categories[category]) categories[category] = [];
2035
2039
  categories[category].push(pm);
package/dist/index.mjs CHANGED
@@ -1863,6 +1863,10 @@ var IpaymuProvider = class extends BasePaymentProvider {
1863
1863
  feeDetail: ch.TransactionFee
1864
1864
  }
1865
1865
  };
1866
+ const health = String(ch.HealthStatus || "").toLowerCase();
1867
+ const feature = String(ch.FeatureStatus || "").toLowerCase();
1868
+ const explicitlyUnavailable = feature !== "" && feature !== "active" || health !== "" && health !== "online";
1869
+ if (explicitlyUnavailable) continue;
1866
1870
  methods.push(pm);
1867
1871
  if (!categories[category]) categories[category] = [];
1868
1872
  categories[category].push(pm);
package/docs/ipaymu.md CHANGED
@@ -80,6 +80,11 @@ if (result.success) {
80
80
  }
81
81
  ```
82
82
 
83
+ > **Automatis filter availability:** Buayar hanya mengembalikan saluran yang benar-benar
84
+ > tersedia — saluran dengan `FeatureStatus` selain `"active"` (mis. `inactive`, `disabled`, `suspended`)
85
+ > atau `HealthStatus` selain `"online"` (mis. `offline`, `maintenance`) **otomatis dibuang** dari daftar.
86
+ > Jadi metode yang muncul selalu berasal dari data real-time iPaymu, bukan asumsi.
87
+
83
88
  ---
84
89
 
85
90
  ## 4. Pembuatan Tagihan (Invoice)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crediblemark/buayar",
3
- "version": "0.8.3",
3
+ "version": "0.8.4",
4
4
  "description": "Unified Payment Gateway SDK for Node.js & TypeScript — 19 providers (Midtrans, Xendit, Duitku, Stripe, PayPal, Adyen, Razorpay, Square, Checkout.com, PayU, Braintree, 2Checkout, DOKU, iPaymu, PrismaLink, Faspay, Finpay, Nicepay, OY!) with zero-code switching via .env",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",