@artisan-commerce/builders 0.7.0-canary.35 → 0.7.0-canary.36

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/CHANGELOG.md CHANGED
@@ -3,6 +3,15 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.7.0-canary.36](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/builders@0.7.0-canary.35...@artisan-commerce/builders@0.7.0-canary.36) (2022-01-06)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **artisn:** fix order builder ([99de539](https://bitbucket.org/tradesystem/artisn_sdk/commit/99de53900afcfb09ee45eb26a7a8ac0dc38c2078))
12
+
13
+
14
+
6
15
  ## [0.7.0-canary.35](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/builders@0.7.0-canary.34...@artisan-commerce/builders@0.7.0-canary.35) (2021-12-28)
7
16
 
8
17
  **Note:** Version bump only for package @artisan-commerce/builders
@@ -143247,7 +143247,8 @@ const buildOrderShoppingCart = (overrides = {}) => {
143247
143247
  statusId: genNumericId(),
143248
143248
  statusCode: chooseRandom(stepCode),
143249
143249
  issueId: genId(),
143250
- invoiceNumber: genId()
143250
+ invoiceNumber: genId(),
143251
+ billTotal: buildOrderBillTotal()
143251
143252
  }), overrides);
143252
143253
  };
143253
143254
  const buildOrderStoreAdditionalInfo = (overrides = {}) => {
@@ -143293,7 +143294,7 @@ const buildOrderStore = (overrides = {}) => {
143293
143294
  statusId: genNumericId(),
143294
143295
  statusName: genWord(),
143295
143296
  statusCode: chooseRandom(stepCode),
143296
- billStoreTotal: buildOrderBillTotal(),
143297
+ billStoreTotal: buildOrderProductBillTotal(),
143297
143298
  products: genOrderProducts(),
143298
143299
  storeId: genNumericId(),
143299
143300
  storeName: faker.name.jobTitle(),
@@ -143413,7 +143414,7 @@ const buildOrderProduct = (overrides = {}) => {
143413
143414
  productName: genWords(5),
143414
143415
  comment: genWords(5),
143415
143416
  billProduct: buildOrderBillProduct(),
143416
- billProductAndAnswers: buildOrderBillTotal(),
143417
+ billProductAndAnswers: buildOrderProductBillTotal(),
143417
143418
  questionsAndAnswers: genCartProductQuestions()
143418
143419
  }, overrides);
143419
143420
  };
@@ -143421,15 +143422,23 @@ const genOrderProducts = (quantity) => {
143421
143422
  return genItems(buildOrderProduct, quantity);
143422
143423
  };
143423
143424
  const buildOrderBillProduct = (overrides = {}) => {
143424
- return __spreadValues$2(__spreadProps$2(__spreadValues$2({}, buildOrderBillTotal()), {
143425
+ return __spreadValues$2(__spreadProps$2(__spreadValues$2({}, buildOrderProductBillTotal()), {
143425
143426
  amount: genNumber(50)
143426
143427
  }), overrides);
143427
143428
  };
143428
- const buildOrderBillTotal = (overrides = {}) => {
143429
+ const buildOrderProductBillTotal = (overrides = {}) => {
143429
143430
  return __spreadValues$2(__spreadProps$2(__spreadValues$2({}, buildBillTotalNormalCategory()), {
143430
143431
  discountTotal: genNumber(10)
143431
143432
  }), overrides);
143432
143433
  };
143434
+ const buildOrderBillTotal = (overrides = {}) => {
143435
+ return __spreadValues$2(__spreadProps$2(__spreadValues$2({}, buildBillTotalNormalCategory()), {
143436
+ discountTotal: genNumber(10),
143437
+ subtotalTaxedWithoutTaxes: genNumber(10),
143438
+ subtotalZero: genNumber(10),
143439
+ tip: genNumber(10)
143440
+ }), overrides);
143441
+ };
143433
143442
  const genOrderShoppingCarts = (quantity) => {
143434
143443
  return genItems(buildOrderShoppingCart, quantity);
143435
143444
  };
@@ -143617,6 +143626,7 @@ var order_builder = /*#__PURE__*/Object.freeze({
143617
143626
  buildOrderProduct: buildOrderProduct,
143618
143627
  genOrderProducts: genOrderProducts,
143619
143628
  buildOrderBillProduct: buildOrderBillProduct,
143629
+ buildOrderProductBillTotal: buildOrderProductBillTotal,
143620
143630
  buildOrderBillTotal: buildOrderBillTotal,
143621
143631
  genOrderShoppingCarts: genOrderShoppingCarts,
143622
143632
  buildOrderAdditionalInfo: buildOrderAdditionalInfo,