Commit Graph

4443 Commits

Author SHA1 Message Date
fPolic
dcdb6df6f8 fix: listPaymentCollections shape 2024-01-16 12:26:07 +01:00
fPolic
33e5b7f72f fix: Payment merge 2024-01-16 12:25:24 +01:00
fPolic
67acdcdc92 Merge branch 'feat/payment-module-models' into feat/payment-module-interfaces
# Conflicts:
#	packages/payment/src/models/payment.ts
2024-01-16 12:20:07 +01:00
fPolic
eab0ca4b9f fix: serializer 2024-01-16 12:19:03 +01:00
fPolic
bc7829db3c fix: update models 2024-01-16 11:58:14 +01:00
fPolic
22254a22c0 fix: address feedback partial 2024-01-16 10:30:52 +01:00
fPolic
fc6b1772a7 chore: changeset 2024-01-16 10:02:58 +01:00
fPolic
1cc888df80 feat: Sessions API update 2024-01-16 09:56:54 +01:00
fPolic
66ec3d0931 wip: session methods 2024-01-15 18:40:05 +01:00
fPolic
89d6d7e846 fix: add order_edit_id to Payment 2024-01-15 18:04:39 +01:00
fPolic
fbd3fedb68 wip: service 2024-01-15 17:15:49 +01:00
fPolic
56752039cf wip: interface and types 2024-01-15 15:18:02 +01:00
Frane Polić
efdc59fd53 Merge branch 'develop' into feat/payment-module-models 2024-01-15 11:19:55 +01:00
fPolic
1d82294ba4 fix: currency code 2024-01-15 10:58:31 +01:00
fPolic
aabe164793 fix: partial feedback address 2024-01-15 10:34:45 +01:00
Shahed Nasser
5dacd4ac9f docs: fix example of createFulfillment (#6088) 2024-01-15 11:20:55 +02:00
github-actions[bot]
304efb9ad8 chore(docs): Removed Docs Announcement Bar (automated) (#6086)
Co-authored-by: shahednasser <shahednasser@users.noreply.github.com>
2024-01-15 10:28:38 +02:00
Adrien de Peretti
72bc52231c chore(utils): Update base repository to infer primary keys and support composite (#6062) 2024-01-14 17:13:25 +01:00
Shahed Nasser
33ff2415ae fix: eslint configurations in the root (#6049)
When running `yarn lint` in the root of the monorepo, we get the following error:

```bash
Oops! Something went wrong! :(

ESLint: 8.44.0

Error: ESLint configuration in .eslintrc.js is invalid:
	- Unexpected top-level property "overrides[4].ignorePatterns".
```

Rmoving the `ignorePatterns` in configurations for `packages/admin-next/dashboard/**/*` and instead adding the path `packages/admin-next/dashboard/**/dist` fixes the issue.
2024-01-13 13:21:16 +00:00
invalid w
57e00e7803 docs: typo backendUrl default url (#6073)
`http://location:9000` should be `http://localhost:9000`
2024-01-12 14:11:29 +00:00
Riqwan Thamir
fade8ea7bf feat(utils,types): campaigns and campaign budgets + services CRUD (#6063)
* chore: added item/shipping adjustments for order/items/shipping_methods

* chore: add validation for order type and target rules

* chore: add comment for applied promotions

* chore: add shipping method and item adjustments

* chore: include applied promotions to items/shipping_method for each case

* chore: handle case for items across and order to consider existing applications

* chore: handle case for applied promo values to shipping => across

* chore: added changeset

* chore: update return of function

* chore: campaigns and campaign budgets + services CRUD

* Apply suggestions from code review

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

* chore: minor refactor

* chore: added single/bulk interfaces

* Apply suggestions from code review

Co-authored-by: Philip Korsholm <88927411+pKorsholm@users.noreply.github.com>

* chore: use DAL date entity

* chore: align nullable

* Update packages/promotion/src/models/promotion-rule.ts

* chore: fix types

* chore: review changes

* Update packages/promotion/src/utils/compute-actions/shipping-methods.ts

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

---------

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
Co-authored-by: Philip Korsholm <88927411+pKorsholm@users.noreply.github.com>
2024-01-12 14:14:34 +01:00
fPolic
a7f74bdfb8 fix: add missing indexes 2024-01-12 14:10:56 +01:00
fPolic
00ee67c228 chore: refactor 2024-01-12 14:02:45 +01:00
Riqwan Thamir
b782d3bcb7 feat(utils,types): added item/shipping adjustments for order/items/shipping_methods (#6050)
what:

- adds compute actions for the following cases:
  - items => each & across
  - shipping_method => each & across
  - order
- adds a remove compute actions when code is no longer present in adjustments array

RESOLVES CORE-1625
RESOLVES CORE-1626
RESOLVES CORE-1627
RESOLVES CORE-1628
RESOLVES CORE-1585
2024-01-12 13:00:06 +00:00
fPolic
f2a4f454fe fix: Refund/Capture delete, add indexes 2024-01-12 12:03:17 +01:00
fPolic
1b882a90ed feat: optional props, update fields 2024-01-12 11:46:08 +01:00
Oli Juhl
192bc336cc feat(cart): Partial module service implementation (#6012)
Awaiting #6000 #6008  

**What**
- CRUD for Address in Cart Module service
- Tests for CRUD Carts + Address

**Not**
- Line items, shipping methods, tax lines, adjustment lines
2024-01-12 10:30:57 +00:00
fPolic
b601212398 Merge branch 'develop' into feat/payment-module-models
# Conflicts:
#	packages/payment/src/models/index.ts
#	packages/payment/src/models/payment.ts
2024-01-11 18:38:43 +01:00
fPolic
9e72d25203 feat: migration 2024-01-11 18:33:43 +01:00
fPolic
8a5888aeac feat: Payment models 2024-01-11 18:29:33 +01:00
Frane Polić
8472460f53 feat: Payment module package setup (#6059) 2024-01-11 16:41:40 +01:00
Oli Juhl
ce81cade88 feat(cart): Cart + Address services (#6055)
Duplicate of #6008, but I messed up my git history big time :'(

**What**
- CartService and CartRepository + tests
- AddressService and AddressRepository + tests
- CartModuleService skeleton. Full implementation + tests will be added in a separate PR
2024-01-11 14:40:13 +00:00
fPolic
85e4e6ce4b fix: changesets 2024-01-11 11:50:06 +01:00
fPolic
c9f1858649 fix: missing files 2024-01-11 11:35:01 +01:00
fPolic
824bcce3dd feat: Payment module package setup 2024-01-11 11:26:41 +01:00
Adrien de Peretti
b6ac768698 chore: abstract the modules repository (#6035)
**What**
Reduce the work effort to create repositories when building new modules by abstracting the most common cases into the base class default implementation returned by a factory

- [x] Migrate all modules

Co-authored-by: Riqwan Thamir <5105988+riqwan@users.noreply.github.com>
2024-01-10 13:12:02 +00:00
Oli Juhl
ef5024980d feat(cart): Public-facing DTOs + (partial) module interface (#6000) 2024-01-10 13:27:58 +01:00
github-actions[bot]
6721633478 chore(docs): Generated References (#6042)
Generated the following references:
- `entities`
- `fulfillment`
- `inventory`
- `js_client`
- `medusa`
- `medusa_react`
- `modules`
- `payment`
- `pricing`
- `product`
- `services`
- `stock_location`
- `types`
- `workflows`

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
Co-authored-by: Shahed Nasser <27354907+shahednasser@users.noreply.github.com>
2024-01-10 09:25:11 +00:00
Shahed Nasser
0b0c25da11 docs: update dependencies (#6046) 2024-01-10 10:56:54 +02:00
github-actions[bot]
bc58bc8f47 chore(docs): Updated API Reference (#6041)
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
Co-authored-by: Shahed Nasser <27354907+shahednasser@users.noreply.github.com>
2024-01-10 08:14:30 +00:00
Adrien de Peretti
a9b4214503 chore(utils, product): Attempt to simplify module scripts export (#6021) 2024-01-09 20:20:05 +01:00
github-actions[bot]
90db656000 chore(docs): Generated Docs Announcement Bar (automated) (#6040)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
2024-01-09 19:58:26 +01:00
Shahed Nasser
13f12e1953 docs: documentation updates for v1.20 (#6031)
* docs: documentation updates for v1.20

* fix stripe upgrade guide

* fixed vale error

* fix eslint errors

* change stripe environment variables to options
2024-01-09 19:07:24 +01:00
olivermrbl
9fda1e63c1 chore: Version @medusajs/medusa 2024-01-09 18:48:34 +01:00
olivermrbl
f4734a7ac6 chore: Add missing minor bump 2024-01-09 18:47:36 +01:00
olivermrbl
aea85893e2 chore: Release 2024-01-09 18:46:24 +01:00
github-actions[bot]
47272bf2b9 chore: Version Packages (#5880) 2024-01-09 18:41:35 +01:00
Shahed Nasser
97fd67bdd3 docs: improvements of docs UI (#6038)
* docs: improvements of docs UI

* changed note about icon sizes
2024-01-09 19:21:12 +02:00
Shahed Nasser
18de90e603 docs: fix tsdocs following typedoc update + 1.20 release (#6033)
* docs: fix tsdocs following typedoc update + 1.20 release

* Fix OAS validation errors

* fixes to react-docs-generator

* fix content linting
2024-01-09 17:15:29 +02:00
Shahed Nasser
125879ada4 fix(medusa-payment-stripe): change webhook environment variables to plugin options (#6034)
* fix(medusa-payment-stripe): change webhook environment variables to plugin options

* access options through service
2024-01-09 13:21:05 +01:00