@posx/core 5.5.379 → 5.5.380

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/build/index.d.ts CHANGED
@@ -2453,6 +2453,10 @@ interface IPaymentMethod extends IAppBaseModel, IAppModelSequence {
2453
2453
  api_key: string;
2454
2454
  /** Is Sales Exclusive */
2455
2455
  is_sales_exclusive: boolean;
2456
+ /** Requires invoice.minus_credit > 0 for validation */
2457
+ enable_credit_validation: boolean;
2458
+ /** Requires invoice.customer_id > 0 for validation */
2459
+ enable_customer_validation: boolean;
2456
2460
  }
2457
2461
  interface IPaymentMethodHistory extends IPaymentMethod {
2458
2462
  changed_at: Date;
@@ -2478,6 +2482,8 @@ declare class PaymentMethod extends AppBaseModel implements IPaymentMethod {
2478
2482
  api_id: string;
2479
2483
  api_key: string;
2480
2484
  is_sales_exclusive: boolean;
2485
+ enable_credit_validation: boolean;
2486
+ enable_customer_validation: boolean;
2481
2487
  uid: string;
2482
2488
  constructor();
2483
2489
  }
package/build/index.js CHANGED
@@ -1506,6 +1506,8 @@ var PaymentMethod = class extends AppBaseModel {
1506
1506
  _defineProperty(this, "api_id", "");
1507
1507
  _defineProperty(this, "api_key", "");
1508
1508
  _defineProperty(this, "is_sales_exclusive", false);
1509
+ _defineProperty(this, "enable_credit_validation", false);
1510
+ _defineProperty(this, "enable_customer_validation", false);
1509
1511
  _defineProperty(this, "uid", ModelPrefix.PaymentMethod + nanoid());
1510
1512
  }
1511
1513
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@posx/core",
3
- "version": "5.5.379",
3
+ "version": "5.5.380",
4
4
  "description": "POSX core libraries",
5
5
  "main": "./build/index.js",
6
6
  "author": "Steven Lee",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@posx/core",
3
- "version": "5.5.379",
3
+ "version": "5.5.380",
4
4
  "description": "POSX core libraries",
5
5
  "type": "module",
6
6
  "main": "./build/index.js",