Commit Graph
100 Commits
Author SHA1 Message Date
Sebastian Rindom c148064b4a fix(medusa): accept array of region ids in order filter (#1851) 2022-07-15 05:41:24 +00:00
Sebastian Rindom c20d720040 fix(medusa-payment-klarna): Fix division by zero on free shipping (#1840) 2022-07-13 09:26:45 +02:00
Sebastian Rindom e539bdc620 chore: Fix CI pipeline (#1839) 2022-07-12 20:14:34 +02:00
Sebastian Rindom 39f2c0c15e fix(medusa): calculates correct taxes and totals on order with gift cards (#1807)
**What**
Since the release of the Tax API the line item totals calculations on orders with gift cards have been wrong. To understand the bug consider the below order:

Region:
- tax_rate: 25%
- gift_cards_taxable: true

Order:
- applied gift card: 1000
- items: 
  - A: unit_price: 1000
  - B: unit_price: 500
- Subtotal: 1500

**Previous calculation method**
1. Determine how much of the gift card is used for each item using `item_total / subtotal * gift_card_amount`:
  - Item A: 1000/1500 * 1000 = 666.67
  - Item B: 500/1500 * 1000 = 333.33
2. Calculate line item totals including taxes using `(unit_price - gift_card) * (1 + tax_rate)`
  - Item A: 1000 - 666.67 = 333.33; vat amount -> 83.33
  - Item B: 500 - 333.33 = 166.67; vat amount -> 41.67
3. Add up the line item totals: order subtotal = 500; vat amount = 125; total = 625

This is all correct at the totals level; but at the line item level we should still use the "original prices" i.e. the line item total for item a should be (1000 * 1.25) = 1250 with a tax amount of 250. 

**New calculation method**
1. Use default totals calculations
  - Item A: subtotal: 1000, tax_total: 250, total: 1250
  - Item B: subtotal: 500, tax_total: 125, total: 625
2. Add up the line item totals: subtotal: 1500, tax_total: 375, total: 1875
3. Reduce total with gift card: subtotal: 1500 - 1000 = 500, tax_total: 375 - 250 = 125, total = 625

Totals can now be forwarded correctly to accounting plugins.

Fixes CORE-310.
2022-07-11 12:18:43 +00:00
Sebastian Rindom dffb86bb58 chore: turbo cleanup (#1828)
- Adds workspace-tools
- Updates .gitignore to include yarn/cache for zero-installs: https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
2022-07-11 08:47:48 +00:00
Sebastian Rindom 4d15e01c3e fix(medusa): calculate orders correctly by adding adjustments (#1812) 2022-07-07 07:35:12 +00:00
Sebastian Rindom e115518dda fix(medusa-payment-klarna): Join adjustments for total calculation (#1791) 2022-07-05 18:00:40 +00:00
Sebastian Rindom f8138afa36 feat(medusa-dev-cli): adds helpers to manage feature flags (#1770)
**Usage**

**Create a new feature flag**
```
$ medusa-dev ff create [name of flag] -d [description of what flag is for]
```
Will put a new file in `packages/medusa/src/loaders/feature-flags/[kebab-cased-flag-name].ts` and fill out the details.

**List feature flags**
```
$ medusa-dev ff list
```
Note: your Medusa repo must be built for the flags to show up

**Delete a feature flag**
```
$ medusa-dev ff delete [name of flag]
```
Will delete a file at `packages/medusa/src/loaders/feature-flags/[kebab-cased-flag-name].ts` if it exists.
2022-07-05 07:33:46 +00:00
Sebastian Rindom 9a14b84e58 fix: introduce listAndCount for gift cards to enable pagination (#1754)
**What**
Proper `listAndCount` implementation for gift cards.
2022-07-04 14:52:55 +00:00
Sebastian Rindom 9b5c2e8c1f hotfix(medusa): add line item adjustments for correct calculation in authorizePayment (#1772) 2022-07-04 14:50:16 +00:00
Sebastian Rindom 1d3032dc67 fix(webshipper): allow cancelling WS orders with error status (#1755) 2022-07-04 07:57:35 +00:00
Sebastian Rindom fee0f88a62 fix: add shipping taxes (#1759)
**What**
Adds taxes to the shipping prices when listing in admin. Allows store operators to see correct prices when processing returns.
2022-07-02 10:35:16 +00:00
Sebastian Rindom f7e300e8ce fix(meilisearch): remove medusa-interfaces dependency (#1751)
Remove `medusa-interfaces` from dependencies. `medusa-interfaces` should only be a peer dependency
2022-07-02 09:09:48 +00:00
Sebastian Rindom c0e18d473c fix(webshipper): only add invoices if invoice generator produces a file (#1749) 2022-07-02 09:05:20 +00:00
Sebastian Rindom c6dc9086cf feat(medusa): Add line item totals to cart totals decoration (#1740) 2022-06-28 12:11:47 +02:00
Sebastian Rindom 2a32609b74 fix(medusa): Normalizes email before saving customer (#1719) 2022-06-27 10:56:12 +02:00
Sebastian Rindom cffb03d197 fix(medusa): update cron schedule to be every 6 hours (#1658) 2022-06-14 14:52:27 +02:00
Sebastian Rindom 14366f536d fix: adds tax calculation to product pricing (#1354)
* fix: adds tax calculation to product pricing

* fix: dedupe

* fix: merge inconsistencies

* fix: merge inconsistencies
2022-06-14 10:11:18 +02:00
Sebastian Rindom ad9cfedf04 chore: add telemetry ping (#1509)
* chore: add telemetry ping

* fix: add track and 6th hour
2022-05-28 13:58:48 +02:00
Sebastian Rindom f17e44d88a fix(medusa): join claim items on receive return (#1539) 2022-05-19 13:04:25 +02:00
Sebastian Rindom 607a382b4e fix: ensures no duplicate tax lines when completing cart (#1262)
* fix: ensures that no duplicate tax lines are created when completing cart
2022-04-05 21:25:48 +02:00
Sebastian Rindom fb33dbaca3 feat: price list products (#1239)
* feat: add product list for price lists

* feat: add product list for price lists

* refactor: product list controller

* fix: add integration test for price list products

* fix: use getListConfig
2022-03-30 13:29:14 +02:00
Sebastian Rindom e9f6b4761a Merge remote-tracking branch 'origin/master' into develop 2022-03-25 22:26:48 +01:00
Sebastian Rindom e4af6b8f9c chore: fix integration tests (#1240)
* chore: fix integration tests

* chore: fix integration tests

* fix: store tests

* fix: store tests

* fix: cleanup
2022-03-25 15:08:54 +01:00
Sebastian Rindom 491b6eba2d fix: add tax service registration (#1225)
* fix: add tax service registration

* fix: cleanup
2022-03-23 11:10:41 +01:00
Sebastian Rindom fbe3b98761 fix: ensure customer identify calls before order track (#1227) 2022-03-22 15:43:15 +01:00
Sebastian Rindom 23f8399c16 fix(gatsby-source-medusa): adds support for incremental sourcing of medusa data (#1217) 2022-03-18 15:00:36 +01:00
Sebastian Rindom 3cd4108915 fix: adds date filters on store collection + region list api (#1216) 2022-03-18 11:02:40 +01:00
Sebastian RindomandOliver Windall Juhl 36bfdfe6e1 fix(medusa-plugin-contentful): add type and collection entity synchronisation (#1191)
* fix: adds optional type and collection entries on products

* fix: type upsert in product

* fix: type upsert in product

* Update packages/medusa-plugin-contentful/src/services/contentful.js

Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>

* Update packages/medusa-plugin-contentful/src/services/contentful.js

Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>

Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
2022-03-17 23:29:26 +01:00
Sebastian Rindom e3655b53f7 fix: storefront product filtering (#1189)
* fix: allow multiple ids in list + expand, fields param

* fix: add filtering by title

* fix: adds integration test

* fix: adds integration test of product variant filtering

* fix: integration tests

* fix: unit tests

* fix: refactor query param parsing
2022-03-17 23:28:15 +01:00
Sebastian RindomandOliver Windall Juhl 47588e7a8d feat: new tax api (#979)
* feat: add tax calculation strategy (#885)

* feat: add tax calculation strategy

* fix: adds strategy loader

* fix: eslint ignore

* chore: cleanup

* fix: allow plugin overwrites

* fix: allow plugin overwrites

* fix: fake region

* Update packages/medusa/src/loaders/strategies.ts

Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>

Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>

* feat: adds tax related db entities + tax provider (#896)

* feat: adds tax related db entities + tax provider

* fix: add tax provider tests

* fix: add tax service unit tests

* fix: tests + migrations

* fix: add inherited tax lines

* chore: rm tax-line repo

* fix: test

* fix: pr comments

* fix: unit test

* feat: totals service to ts (#911)

* feat: adds tax related db entities + tax provider

* fix: add tax provider tests

* fix: add tax service unit tests

* fix: tests + migrations

* feat: totals service to ts

* fix: remove totals.js

* fix: add shipping methods

* fix: add inherited tax lines

* chore: rm tax-line repo

* fix: test

* fix: tests

* fix: tests

* fix: unit test

* fix: adds TotalsServiceProps

* feat: adds integration tests for automatic tax calculation + shipping tax rates (#945)

* feat: adds tax related db entities + tax provider

* fix: add tax provider tests

* fix: add tax service unit tests

* fix: tests + migrations

* feat: totals service to ts

* fix: remove totals.js

* fix: add shipping methods

* fix: add inherited tax lines

* chore: rm tax-line repo

* fix: test

* fix: tests

* fix: tests

* fix: unit test

* fix: integration test helpers

* fix: adds factories + tests automatic tax rates

* fix: remove verbose

* fix: adds TotalsServiceProps

* fix: add shipping tax lines

* fix: add migration for shipping taxes

* fix: integration tests for shipping taxes

* fix: integration tests for shipping taxes

* fix: jsdoc types

* Feat/manual taxes (#950)

* feat: adds tax related db entities + tax provider

* fix: add tax provider tests

* fix: add tax service unit tests

* fix: tests + migrations

* feat: totals service to ts

* fix: remove totals.js

* fix: add shipping methods

* fix: add inherited tax lines

* chore: rm tax-line repo

* fix: test

* fix: tests

* fix: tests

* fix: unit test

* fix: integration test helpers

* fix: adds factories + tests automatic tax rates

* fix: remove verbose

* fix: adds TotalsServiceProps

* fix: add shipping tax lines

* fix: add migration for shipping taxes

* fix: integration tests for shipping taxes

* fix: integration tests for shipping taxes

* fix: add integration tests for manual taxes

* fix: cart service - cleanup jsdoc

* feat: add /carts/id/taxes to manually calculate taxes

* feat: add integration tests for order tax calculations

* fix: unit tests

* fix: merge

* fix: rm verbose

* fix: unit tests

* fix: object -> cartOrOrder

* fix: rounding

* Feat/complete order w tax lines (#951)

* feat: adds tax related db entities + tax provider

* fix: add tax provider tests

* fix: add tax service unit tests

* fix: tests + migrations

* feat: totals service to ts

* fix: remove totals.js

* fix: add shipping methods

* fix: add inherited tax lines

* chore: rm tax-line repo

* fix: test

* fix: tests

* fix: tests

* fix: unit test

* fix: integration test helpers

* fix: adds factories + tests automatic tax rates

* fix: remove verbose

* fix: adds TotalsServiceProps

* fix: add shipping tax lines

* fix: add migration for shipping taxes

* fix: integration tests for shipping taxes

* fix: integration tests for shipping taxes

* fix: add integration tests for manual taxes

* fix: cart service - cleanup jsdoc

* feat: add /carts/id/taxes to manually calculate taxes

* feat: add integration tests for order tax calculations

* feat: adds cart completion strategy + create order w. tax lines

* fix: unit tests

* fix: merge

* fix: rm verbose

* fix: unit tests

* fix: unit tests

* fix: unit tests

* fix: ensure calculation for list orders

* fix: unit tests

* fix: integration tests

* fix: adds cart order type gaurds

* Docs/tax api (#954)

* feat: adds tax related db entities + tax provider

* fix: add tax provider tests

* fix: add tax service unit tests

* fix: tests + migrations

* feat: totals service to ts

* fix: remove totals.js

* fix: add shipping methods

* fix: add inherited tax lines

* chore: rm tax-line repo

* fix: test

* fix: tests

* fix: tests

* fix: unit test

* fix: integration test helpers

* fix: adds factories + tests automatic tax rates

* fix: remove verbose

* fix: adds TotalsServiceProps

* fix: add shipping tax lines

* fix: add migration for shipping taxes

* fix: integration tests for shipping taxes

* fix: integration tests for shipping taxes

* fix: add integration tests for manual taxes

* fix: cart service - cleanup jsdoc

* feat: add /carts/id/taxes to manually calculate taxes

* feat: add integration tests for order tax calculations

* feat: adds cart completion strategy + create order w. tax lines

* fix: unit tests

* fix: merge

* fix: rm verbose

* fix: unit tests

* fix: unit tests

* fix: unit tests

* fix: ensure calculation for list orders

* fix: unit tests

* fix: integration tests

* docs: documents tax related methods and types

* fix: require either item_id or shipping_method_id

* feat: product type tax rate (#969)

* feat: adds tax related db entities + tax provider

* fix: add tax provider tests

* fix: add tax service unit tests

* fix: tests + migrations

* feat: totals service to ts

* fix: remove totals.js

* fix: add shipping methods

* fix: add inherited tax lines

* chore: rm tax-line repo

* fix: test

* fix: tests

* fix: tests

* fix: unit test

* fix: integration test helpers

* fix: adds factories + tests automatic tax rates

* fix: remove verbose

* fix: adds TotalsServiceProps

* fix: add shipping tax lines

* fix: add migration for shipping taxes

* fix: integration tests for shipping taxes

* fix: integration tests for shipping taxes

* fix: add integration tests for manual taxes

* fix: cart service - cleanup jsdoc

* feat: add /carts/id/taxes to manually calculate taxes

* feat: add integration tests for order tax calculations

* feat: adds cart completion strategy + create order w. tax lines

* fix: unit tests

* fix: merge

* fix: rm verbose

* fix: unit tests

* fix: unit tests

* fix: unit tests

* fix: ensure calculation for list orders

* fix: unit tests

* fix: integration tests

* docs: documents tax related methods and types

* fix: require either item_id or shipping_method_id

* feat: adds returns tests for new tax system

* feat: adds return lines + integration tests for swaps

* feat: return integration tests

* feat: adds product type tax rates

* feat: add tax management endpoints

* fix: create single migration

* fix: adds tax rates to js client

* fix: strats

* Fix/plugin tests (#998)

* plugin testing setup

* fix: test sendgrid plugin

* fix: test sendgrid plugin

* chore: clean

* chore: clean

* fix: clean up tests

* fix: remove dirty import

* fix: sendgrid + brightpearl

* fix: plugin integration tests

* fix: klarna

* fix: shipping method tax

* fix: remove taxrates

* fix: unit tests

* fix: integration

* fix: integration

* fix: plugins tests

* fix: ignore plugins

* fix: tests

* fix: taxes (#1017)

* fix: taxes

* fix: taxes

* fix: faulty ref

* fix: create tax-lines with claim items

* fix: snapshot tax-liens

* fix: allows integration test teardown to force deleting tables

* fix: tests

* fix: merge

* fix: adds tax-rates to client

* fix: adds tax-rates to medusa-react

* fix: tests

* fix: tests

* fix: add product types

* fix: adds tax provider endpoint + cascaded deletes on tax rate relations

* fix: move errors to service layer

* fix: cleanup api

* fix: unit tests

* fix: error handler in base-service

* fix: Add order region to swap on createFulfillment (#1110)

Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
2022-02-25 18:53:49 +01:00
Sebastian Rindom f983cfada6 fix: atomic phase error handler (#1104)
* fix: adds atomic phase clean up callback

* fix: call error handler in new transaction block too

* fix: error handler in no isolation case
2022-02-25 18:53:49 +01:00
Sebastian RindomandOliver Windall Juhl c56660fca9 feat: new tax api (#979)
* feat: add tax calculation strategy (#885)

* feat: add tax calculation strategy

* fix: adds strategy loader

* fix: eslint ignore

* chore: cleanup

* fix: allow plugin overwrites

* fix: allow plugin overwrites

* fix: fake region

* Update packages/medusa/src/loaders/strategies.ts

Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>

Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>

* feat: adds tax related db entities + tax provider (#896)

* feat: adds tax related db entities + tax provider

* fix: add tax provider tests

* fix: add tax service unit tests

* fix: tests + migrations

* fix: add inherited tax lines

* chore: rm tax-line repo

* fix: test

* fix: pr comments

* fix: unit test

* feat: totals service to ts (#911)

* feat: adds tax related db entities + tax provider

* fix: add tax provider tests

* fix: add tax service unit tests

* fix: tests + migrations

* feat: totals service to ts

* fix: remove totals.js

* fix: add shipping methods

* fix: add inherited tax lines

* chore: rm tax-line repo

* fix: test

* fix: tests

* fix: tests

* fix: unit test

* fix: adds TotalsServiceProps

* feat: adds integration tests for automatic tax calculation + shipping tax rates (#945)

* feat: adds tax related db entities + tax provider

* fix: add tax provider tests

* fix: add tax service unit tests

* fix: tests + migrations

* feat: totals service to ts

* fix: remove totals.js

* fix: add shipping methods

* fix: add inherited tax lines

* chore: rm tax-line repo

* fix: test

* fix: tests

* fix: tests

* fix: unit test

* fix: integration test helpers

* fix: adds factories + tests automatic tax rates

* fix: remove verbose

* fix: adds TotalsServiceProps

* fix: add shipping tax lines

* fix: add migration for shipping taxes

* fix: integration tests for shipping taxes

* fix: integration tests for shipping taxes

* fix: jsdoc types

* Feat/manual taxes (#950)

* feat: adds tax related db entities + tax provider

* fix: add tax provider tests

* fix: add tax service unit tests

* fix: tests + migrations

* feat: totals service to ts

* fix: remove totals.js

* fix: add shipping methods

* fix: add inherited tax lines

* chore: rm tax-line repo

* fix: test

* fix: tests

* fix: tests

* fix: unit test

* fix: integration test helpers

* fix: adds factories + tests automatic tax rates

* fix: remove verbose

* fix: adds TotalsServiceProps

* fix: add shipping tax lines

* fix: add migration for shipping taxes

* fix: integration tests for shipping taxes

* fix: integration tests for shipping taxes

* fix: add integration tests for manual taxes

* fix: cart service - cleanup jsdoc

* feat: add /carts/id/taxes to manually calculate taxes

* feat: add integration tests for order tax calculations

* fix: unit tests

* fix: merge

* fix: rm verbose

* fix: unit tests

* fix: object -> cartOrOrder

* fix: rounding

* Feat/complete order w tax lines (#951)

* feat: adds tax related db entities + tax provider

* fix: add tax provider tests

* fix: add tax service unit tests

* fix: tests + migrations

* feat: totals service to ts

* fix: remove totals.js

* fix: add shipping methods

* fix: add inherited tax lines

* chore: rm tax-line repo

* fix: test

* fix: tests

* fix: tests

* fix: unit test

* fix: integration test helpers

* fix: adds factories + tests automatic tax rates

* fix: remove verbose

* fix: adds TotalsServiceProps

* fix: add shipping tax lines

* fix: add migration for shipping taxes

* fix: integration tests for shipping taxes

* fix: integration tests for shipping taxes

* fix: add integration tests for manual taxes

* fix: cart service - cleanup jsdoc

* feat: add /carts/id/taxes to manually calculate taxes

* feat: add integration tests for order tax calculations

* feat: adds cart completion strategy + create order w. tax lines

* fix: unit tests

* fix: merge

* fix: rm verbose

* fix: unit tests

* fix: unit tests

* fix: unit tests

* fix: ensure calculation for list orders

* fix: unit tests

* fix: integration tests

* fix: adds cart order type gaurds

* Docs/tax api (#954)

* feat: adds tax related db entities + tax provider

* fix: add tax provider tests

* fix: add tax service unit tests

* fix: tests + migrations

* feat: totals service to ts

* fix: remove totals.js

* fix: add shipping methods

* fix: add inherited tax lines

* chore: rm tax-line repo

* fix: test

* fix: tests

* fix: tests

* fix: unit test

* fix: integration test helpers

* fix: adds factories + tests automatic tax rates

* fix: remove verbose

* fix: adds TotalsServiceProps

* fix: add shipping tax lines

* fix: add migration for shipping taxes

* fix: integration tests for shipping taxes

* fix: integration tests for shipping taxes

* fix: add integration tests for manual taxes

* fix: cart service - cleanup jsdoc

* feat: add /carts/id/taxes to manually calculate taxes

* feat: add integration tests for order tax calculations

* feat: adds cart completion strategy + create order w. tax lines

* fix: unit tests

* fix: merge

* fix: rm verbose

* fix: unit tests

* fix: unit tests

* fix: unit tests

* fix: ensure calculation for list orders

* fix: unit tests

* fix: integration tests

* docs: documents tax related methods and types

* fix: require either item_id or shipping_method_id

* feat: product type tax rate (#969)

* feat: adds tax related db entities + tax provider

* fix: add tax provider tests

* fix: add tax service unit tests

* fix: tests + migrations

* feat: totals service to ts

* fix: remove totals.js

* fix: add shipping methods

* fix: add inherited tax lines

* chore: rm tax-line repo

* fix: test

* fix: tests

* fix: tests

* fix: unit test

* fix: integration test helpers

* fix: adds factories + tests automatic tax rates

* fix: remove verbose

* fix: adds TotalsServiceProps

* fix: add shipping tax lines

* fix: add migration for shipping taxes

* fix: integration tests for shipping taxes

* fix: integration tests for shipping taxes

* fix: add integration tests for manual taxes

* fix: cart service - cleanup jsdoc

* feat: add /carts/id/taxes to manually calculate taxes

* feat: add integration tests for order tax calculations

* feat: adds cart completion strategy + create order w. tax lines

* fix: unit tests

* fix: merge

* fix: rm verbose

* fix: unit tests

* fix: unit tests

* fix: unit tests

* fix: ensure calculation for list orders

* fix: unit tests

* fix: integration tests

* docs: documents tax related methods and types

* fix: require either item_id or shipping_method_id

* feat: adds returns tests for new tax system

* feat: adds return lines + integration tests for swaps

* feat: return integration tests

* feat: adds product type tax rates

* feat: add tax management endpoints

* fix: create single migration

* fix: adds tax rates to js client

* fix: strats

* Fix/plugin tests (#998)

* plugin testing setup

* fix: test sendgrid plugin

* fix: test sendgrid plugin

* chore: clean

* chore: clean

* fix: clean up tests

* fix: remove dirty import

* fix: sendgrid + brightpearl

* fix: plugin integration tests

* fix: klarna

* fix: shipping method tax

* fix: remove taxrates

* fix: unit tests

* fix: integration

* fix: integration

* fix: plugins tests

* fix: ignore plugins

* fix: tests

* fix: taxes (#1017)

* fix: taxes

* fix: taxes

* fix: faulty ref

* fix: create tax-lines with claim items

* fix: snapshot tax-liens

* fix: allows integration test teardown to force deleting tables

* fix: tests

* fix: merge

* fix: adds tax-rates to client

* fix: adds tax-rates to medusa-react

* fix: tests

* fix: tests

* fix: add product types

* fix: adds tax provider endpoint + cascaded deletes on tax rate relations

* fix: move errors to service layer

* fix: cleanup api

* fix: unit tests

* fix: error handler in base-service

* fix: Add order region to swap on createFulfillment (#1110)

Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
2022-02-24 20:14:09 +01:00
Sebastian Rindom 62c263c360 fix: atomic phase error handler (#1104)
* fix: adds atomic phase clean up callback

* fix: call error handler in new transaction block too

* fix: error handler in no isolation case
2022-02-24 16:44:08 +01:00
Sebastian Rindom 07ce61dc75 Update CODEOWNERS 2022-02-15 13:44:23 +01:00
Sebastian Rindom 6feb4b0cb3 Merge remote-tracking branch 'origin/master' into develop 2022-02-10 15:29:40 +01:00
Sebastian Rindom 38762961e6 chore(release): Publish
- gatsby-source-medusa@0.0.49
 - medusa-interfaces@1.1.34
 - @medusajs/medusa-js@1.0.12
 - medusa-payment-klarna@1.1.41
 - medusa-payment-paypal@1.0.40
 - medusa-plugin-algolia@0.0.8
 - medusa-plugin-brightpearl@1.1.45
 - medusa-plugin-mailchimp@1.1.39
 - medusa-plugin-meilisearch@0.0.14
 - medusa-plugin-restock-notification@0.0.32
 - medusa-plugin-segment@1.1.42
 - medusa-react@0.1.5
 - medusa-source-shopify@1.0.5
 - @medusajs/medusa@1.1.64
2022-02-06 19:29:53 +01:00
Sebastian Rindom fc3fbc897f fix: release 2022-02-06 19:29:31 +01:00
Sebastian Rindom cd1f5afa5a chore(release): Publish
- gatsby-source-medusa@0.0.48
 - medusa-interfaces@1.1.33
 - @medusajs/medusa-js@1.0.11
 - medusa-payment-klarna@1.1.40
 - medusa-payment-paypal@1.0.39
 - medusa-plugin-algolia@0.0.7
 - medusa-plugin-brightpearl@1.1.44
 - medusa-plugin-mailchimp@1.1.38
 - medusa-plugin-meilisearch@0.0.13
 - medusa-plugin-restock-notification@0.0.31
 - medusa-plugin-segment@1.1.41
 - medusa-react@0.1.4
 - medusa-source-shopify@1.0.4
 - @medusajs/medusa@1.1.63
2022-02-06 19:28:19 +01:00
Sebastian Rindom 7d2b5b8bab fix: adds return reasons to swaps (#1026) 2022-02-04 16:25:00 +01:00
Sebastian Rindom 6dbd8d318d Merge remote-tracking branch 'origin/master' into develop 2022-01-11 14:07:04 +01:00
Sebastian Rindom e64f036ad3 chore(release): Publish
- @medusajs/medusa-js@1.0.7
 - @medusajs/medusa@1.1.59
2021-12-08 22:38:09 +01:00
Sebastian Rindom 36c0f468f9 chore(release): Publish
- babel-preset-medusa-package@1.1.19
 - @medusajs/medusa-cli@1.1.24
 - medusa-core-utils@1.1.31
 - medusa-dev-cli@0.0.24
 - medusa-file-minio@1.0.1
 - medusa-file-s3@1.0.9
 - medusa-file-spaces@1.1.34
 - medusa-fulfillment-manual@1.1.31
 - medusa-fulfillment-webshipper@1.1.35
 - medusa-interfaces@1.1.32
 - @medusajs/medusa-js@1.0.6
 - medusa-payment-adyen@1.1.36
 - medusa-payment-klarna@1.1.36
 - medusa-payment-manual@1.0.13
 - medusa-payment-paypal@1.0.35
 - medusa-payment-stripe@1.1.35
 - medusa-plugin-add-ons@1.1.34
 - medusa-plugin-algolia@0.0.6
 - medusa-plugin-brightpearl@1.1.40
 - medusa-plugin-contentful@1.1.37
 - medusa-plugin-economic@1.1.34
 - medusa-plugin-mailchimp@1.1.34
 - medusa-plugin-meilisearch@0.0.12
 - medusa-plugin-permissions@1.1.34
 - medusa-plugin-restock-notification@0.0.27
 - medusa-plugin-segment@1.1.37
 - medusa-plugin-sendgrid@1.1.35
 - medusa-plugin-slack-notification@1.1.34
 - medusa-plugin-twilio-sms@1.1.34
 - medusa-plugin-wishlist@1.1.34
 - medusa-source-shopify@1.0.0
 - medusa-telemetry@0.0.11
 - medusa-test-utils@1.1.34
 - @medusajs/medusa@1.1.58
2021-12-08 13:21:54 +01:00
Sebastian Rindom 5cb09184d4 chore: merge master 2021-12-08 10:12:22 +01:00
Sebastian Rindom 2c9df0f7f7 chore: merge master 2021-12-08 09:56:59 +01:00
Sebastian Rindom 7f7682ef01 chore: remove gitignored files 2021-11-23 09:54:59 +01:00
Sebastian Rindom 0846222d19 chore: merge master 2021-11-23 09:53:59 +01:00
Sebastian Rindom 4fcf9c1ee5 chore(release): Publish
- medusa-core-utils@1.1.30
 - medusa-file-s3@1.0.8
 - medusa-file-spaces@1.1.33
 - medusa-fulfillment-manual@1.1.30
 - medusa-fulfillment-webshipper@1.1.34
 - medusa-interfaces@1.1.31
 - @medusajs/medusa-js@1.0.5
 - medusa-payment-adyen@1.1.35
 - medusa-payment-klarna@1.1.35
 - medusa-payment-manual@1.0.12
 - medusa-payment-paypal@1.0.34
 - medusa-payment-stripe@1.1.34
 - medusa-plugin-add-ons@1.1.33
 - medusa-plugin-algolia@0.0.5
 - medusa-plugin-brightpearl@1.1.39
 - medusa-plugin-contentful@1.1.36
 - medusa-plugin-economic@1.1.33
 - medusa-plugin-mailchimp@1.1.33
 - medusa-plugin-meilisearch@0.0.11
 - medusa-plugin-permissions@1.1.33
 - medusa-plugin-restock-notification@0.0.26
 - medusa-plugin-segment@1.1.36
 - medusa-plugin-sendgrid@1.1.34
 - medusa-plugin-slack-notification@1.1.33
 - medusa-plugin-twilio-sms@1.1.33
 - medusa-plugin-wishlist@1.1.33
 - medusa-test-utils@1.1.33
 - @medusajs/medusa@1.1.57
2021-11-23 09:49:33 +01:00
Sebastian Rindom 8f0879a785 Merge remote-tracking branch 'origin/master' into develop 2021-11-20 16:00:44 +01:00
Sebastian Rindom 59761163c2 chore: merge release 2021-11-20 15:59:31 +01:00
Sebastian Rindom 11e1808bc7 chore(release): Publish
- @medusajs/medusa-js@1.0.3
 - @medusajs/medusa@1.1.55
2021-11-19 10:51:04 +01:00
Sebastian Rindom 5fa4848b17 fix: release 2021-11-19 10:50:47 +01:00
Sebastian Rindom 322466bc99 chore(release): Publish
- medusa-core-utils@1.1.28
 - medusa-file-s3@1.0.6
 - medusa-file-spaces@1.1.31
 - medusa-fulfillment-manual@1.1.28
 - medusa-fulfillment-webshipper@1.1.32
 - medusa-interfaces@1.1.29
 - @medusajs/medusa-js@1.0.2
 - medusa-payment-adyen@1.1.33
 - medusa-payment-klarna@1.1.33
 - medusa-payment-manual@1.0.10
 - medusa-payment-paypal@1.0.32
 - medusa-payment-stripe@1.1.32
 - medusa-plugin-add-ons@1.1.31
 - medusa-plugin-algolia@0.0.3
 - medusa-plugin-brightpearl@1.1.37
 - medusa-plugin-contentful@1.1.34
 - medusa-plugin-economic@1.1.31
 - medusa-plugin-mailchimp@1.1.31
 - medusa-plugin-meilisearch@0.0.9
 - medusa-plugin-permissions@1.1.31
 - medusa-plugin-restock-notification@0.0.24
 - medusa-plugin-segment@1.1.34
 - medusa-plugin-sendgrid@1.1.32
 - medusa-plugin-slack-notification@1.1.31
 - medusa-plugin-twilio-sms@1.1.31
 - medusa-plugin-wishlist@1.1.31
 - medusa-test-utils@1.1.31
 - @medusajs/medusa@1.1.54
2021-11-19 10:30:35 +01:00
Sebastian Rindom 7017015f1c chore: release assist 2021-11-19 10:29:58 +01:00
Sebastian Rindom aa460f6359 chore: release assist 2021-11-19 10:29:02 +01:00
Sebastian Rindom a69b1e85be chore(release): Publish
- medusa-core-utils@1.1.27
 - medusa-file-s3@1.0.5
 - medusa-file-spaces@1.1.30
 - medusa-fulfillment-manual@1.1.27
 - medusa-fulfillment-webshipper@1.1.31
 - medusa-interfaces@1.1.28
 - @medusajs/medusa-js@1.0.1
 - medusa-payment-adyen@1.1.32
 - medusa-payment-klarna@1.1.32
 - medusa-payment-manual@1.0.9
 - medusa-payment-paypal@1.0.31
 - medusa-payment-stripe@1.1.31
 - medusa-plugin-add-ons@1.1.30
 - medusa-plugin-algolia@0.0.2
 - medusa-plugin-brightpearl@1.1.36
 - medusa-plugin-contentful@1.1.33
 - medusa-plugin-economic@1.1.30
 - medusa-plugin-mailchimp@1.1.30
 - medusa-plugin-meilisearch@0.0.8
 - medusa-plugin-permissions@1.1.30
 - medusa-plugin-restock-notification@0.0.23
 - medusa-plugin-segment@1.1.33
 - medusa-plugin-sendgrid@1.1.31
 - medusa-plugin-slack-notification@1.1.30
 - medusa-plugin-twilio-sms@1.1.30
 - medusa-plugin-wishlist@1.1.30
 - medusa-test-utils@1.1.30
 - @medusajs/medusa@1.1.53
2021-11-19 10:26:29 +01:00
Sebastian Rindom 7586618d44 chore(release): Publish
- babel-preset-medusa-package@1.1.18
 - @medusajs/medusa-cli@1.1.23
 - medusa-dev-cli@0.0.23
 - medusa-payment-paypal@1.0.31
 - medusa-plugin-restock-notification@0.0.23
 - medusa-telemetry@0.0.10
 - @medusajs/medusa@1.1.54
2021-11-11 13:26:55 +01:00
Sebastian Rindom b30a2af94d fix: account for lowest currency unit in paypal (#761)
* fix: account for lowest currency unit in paypal

* fix: currency rounding
2021-11-10 17:19:35 +01:00
Sebastian Rindom 3ea6aea5be fix: updates documentation and fixes script blockers (#765) 2021-11-10 09:18:16 +01:00
Sebastian Rindom 75c74656fb chore(release): Publish
- @medusajs/medusa@1.1.53
2021-11-09 12:28:07 +01:00
Sebastian Rindom 7ecfe207de hotfix: joins discounts when creating claims (#760)
* fix: join discounts when creating claims

* fix: rm verbose/only

* fix: rm dup tests
2021-11-09 12:27:38 +01:00
Sebastian Rindom 8f8b946e90 Merge remote-tracking branch 'origin/master' into develop 2021-11-09 10:21:14 +01:00
Sebastian Rindom 54043c7976 chore(release): Publish
- @medusajs/medusa@1.1.52
2021-11-09 10:16:29 +01:00
Sebastian Rindom af9e539869 hotfix(medusa): join missing discount rule on swaps (#759) 2021-11-09 10:13:55 +01:00
Sebastian Rindom e0fa06fe96 fix: make it possible to update order shipping address (#668) 2021-11-05 16:48:29 +01:00
Sebastian Rindom 45b344fbe1 fix: add product count to storefront (#719) 2021-11-04 15:32:48 +01:00
Sebastian Rindom 692cccf53a Merge remote-tracking branch 'origin/master' into develop 2021-11-03 14:13:58 +01:00
Sebastian Rindom ff952b5daf chore(release): Publish
- medusa-plugin-meilisearch@0.0.7
 - @medusajs/medusa@1.1.51
2021-11-03 14:13:29 +01:00
Sebastian Rindom a5fe1c2e28 fix: include discount rule in swap retrieval (#682) 2021-11-03 14:11:27 +01:00
Sebastian Rindom e82737a035 fix: adds options to default relations in storefront product endpoints (#712) 2021-11-03 13:15:36 +01:00
Sebastian Rindom 109d400720 fix(medusa): add total count for list queries in product (#710) 2021-11-03 13:15:11 +01:00
Sebastian Rindom 58127564d7 feat(medusa): adds collection endpoints to storefront (#711)
Adds:
- `/store/collections/:id`
- `/store/collections`
2021-11-03 11:24:45 +01:00
Sebastian Rindom 49e1dbbd48 chore(release): Publish
- @medusajs/medusa@1.1.50
2021-11-02 16:02:34 +01:00
Sebastian Rindom 9895b6e057 hotfix(medusa): join missing discount rule (#708) 2021-11-02 16:02:13 +01:00
Sebastian Rindom 8bf459f93f Update README.md (#692) 2021-10-31 11:37:49 +01:00
Sebastian Rindom b7eae378f9 Merge remote-tracking branch 'origin/master' into develop 2021-10-26 22:12:46 +02:00
Sebastian Rindom 4602b37cf3 chore(release): Publish
- medusa-plugin-brightpearl@1.1.35
2021-10-26 22:05:43 +02:00
Sebastian Rindom d8422fc759 fix: add missing discount rule to bp orders (#680) 2021-10-26 22:05:19 +02:00
Sebastian Rindom 9f1ae87605 Merge pull request #677 from RonaldoCaetano/fix-discounts
Fix discounts
2021-10-26 12:00:06 +02:00
Sebastian Rindom 71e52214bf chore(release): Publish
- @medusajs/medusa@1.1.49
2021-10-26 08:42:49 +02:00
Sebastian Rindom d84531f5f3 Merge pull request #670 from medusajs/hotfix/allow-empty-search-query
fix: allow empty string to search product route
2021-10-26 08:42:18 +02:00
Sebastian Rindom dd71408b10 Merge pull request #592 from aloks98/fix/GH-584
fix: add upc validator
2021-10-26 08:41:46 +02:00
Sebastian Rindom 42646c9813 Merge pull request #657 from Ronak-23/develop
fix: make packages/medusa/src/api/routes/admin/users pass eslint
2021-10-25 21:25:03 +02:00
Sebastian Rindom d0733e0b63 Merge branch 'develop' into develop 2021-10-25 21:14:45 +02:00
Sebastian Rindom 8f5ea026e1 Merge pull request #588 from medusajs/feat/github-actions
Feat: GitHub actions
2021-10-25 20:54:20 +02:00
Sebastian Rindom 7ab96b2ece chore(release): Publish
- medusa-plugin-contentful@1.1.32
 - @medusajs/medusa@1.1.48
2021-10-25 19:32:55 +02:00
Sebastian Rindom 459bdcb452 Merge pull request #673 from medusajs/hotfix/contentful-sync
fix: make contentful data sync
2021-10-25 19:22:45 +02:00
Sebastian Rindom 548f6c7138 fix: make contentful data sync 2021-10-25 18:48:56 +02:00
Sebastian Rindom 531075208f Merge remote-tracking branch 'origin/master' into develop 2021-10-24 14:08:45 +02:00
Sebastian Rindom 53178cbda3 fix: ignore tests in build output (#579) 2021-10-24 10:23:09 +02:00
Sebastian Rindom 81847456f1 chore(release): Publish
- @medusajs/medusa@1.1.47
2021-10-23 13:30:51 +02:00
Sebastian Rindom 6f690e9004 Merge pull request #596 from medusajs/hotfix/password-reset
hotfix(medusa): pull missing fields
2021-10-23 13:23:19 +02:00
Sebastian Rindom 29dd9a669a Merge pull request #589 from medusajs/hotfix/product-status-search
hotfix(medusa): add product status to search
2021-10-23 13:17:19 +02:00
Sebastian Rindom caa9ab81df fix: add integration test 2021-10-23 13:15:04 +02:00
Sebastian Rindom b82b43b4c6 fix: pull missing fields 2021-10-23 13:07:41 +02:00
Sebastian Rindom 71e1ee808b hotfix(medusa): add product status to search 2021-10-22 10:44:28 +02:00
Sebastian Rindom bfecfa7c78 Merge pull request #564 from saurabh042/chore/lint
fix: Chore/lint chore: Make packages/medusa/src/services/inventory.js pass linting #509
2021-10-20 09:55:05 +02:00
Sebastian Rindom 4f35041885 Merge pull request #561 from Ayush0730/develop
fix: make packages/medusa/src/services/totals.js pass eslint
2021-10-20 08:58:55 +02:00
Sebastian Rindom f0c371f987 chore(release): Publish
- medusa-plugin-meilisearch@0.0.6
 - @medusajs/medusa@1.1.46
2021-10-19 20:04:33 +02:00
Sebastian Rindom 2c8f1cfd13 Merge pull request #578 from medusajs/hotfix/shipping-update
hotfix: fix issue where undefined country code breaks cart update to region with many countries
2021-10-19 20:04:03 +02:00