biz9-logic 4.8.155 → 4.8.158

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.
Files changed (3) hide show
  1. package/biz9_config +1 -1
  2. package/index.js +10 -5
  3. package/package.json +1 -1
package/biz9_config CHANGED
@@ -1,4 +1,4 @@
1
- VERSION='6.3.5'
1
+ VERSION='6.3.8'
2
2
  TITLE='BiZ9-Logic';
3
3
  REPO='git@github.com:biz9framework/biz9-logic.git';
4
4
  BRANCH='main';
package/index.js CHANGED
@@ -233,6 +233,9 @@ class Order_Logic {
233
233
  static get_order_number = () => {
234
234
  return FieldType.ORDER_NUMBER + Number.get_id(99999);
235
235
  };
236
+ static get_transaction_id = () => {
237
+ return FieldType.TRANSACTION_ID + Number.get_id(99999);
238
+ };
236
239
  }
237
240
  class Cart_Logic {
238
241
  static get_cart_number = () => {
@@ -809,6 +812,7 @@ class FieldType {
809
812
 
810
813
  static ORDER_NUMBER="OR-";
811
814
  static CART_NUMBER="CA-";
815
+ static TRANSACTION_ID="TR-";
812
816
 
813
817
  static PAYMENT_PLAN_PENDING="Pending";
814
818
  static PAYMENT_PLAN_1="1 Payment";
@@ -816,17 +820,17 @@ class FieldType {
816
820
  static PAYMENT_PLAN_3="3 Payments";
817
821
  static PAYMENT_PLAN_4="4 Payments";
818
822
 
819
- static CART_STATUS_OPEN="Open";
820
- static CART_STATUS_PAID="Complete";
821
-
822
- static ORDER_STATUS_CART="Cart";
823
+ static ORDER_STATUS_NEW="New";
823
824
  static ORDER_STATUS_OPEN="Open";
824
825
  static ORDER_STATUS_PAYMENT="Payment Plan";
825
826
  static ORDER_STATUS_COMPLETE="Complete";
826
827
 
827
-
828
828
  static ORDER_PAYMENT_PLAN="Open";
829
829
 
830
+ static ORDER_PAYMENT_TYPE_STRIPE="Stripe";
831
+ static ORDER_PAYMENT_TYPE_CASH="Cash";
832
+ static ORDER_PAYMENT_TYPE_OTHER="Other";
833
+ static ORDER_PAYMENT_TYPE_TEST="Test";
830
834
  }
831
835
  class Social {
832
836
  static FACEBOOK_URL="https://facebook.com/";
@@ -969,6 +973,7 @@ class DataType {
969
973
  static ORDER="order_biz";
970
974
  static ORDER_ITEM="order_item_biz";
971
975
  static ORDER_SUB_ITEM="order_sub_item_biz";
976
+ static ORDER_PAYMENT="order_payment_biz";
972
977
 
973
978
  static PROJECT='project_biz';
974
979
  static PRODUCT='product_biz';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz9-logic",
3
- "version": "4.8.155",
3
+ "version": "4.8.158",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"