Commit graph

94 commits

Author SHA1 Message Date
Grzegorz Sadowski
79845047c1
feature #15635 [API][Behat] covering tests for managing promotions (Wojdylak)
This PR was merged into the 1.13 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.13
| Bug fix?        | no
| New feature?    | yes
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | N/A
| License         | MIT


Commits
-------

9e8e797c81 [ApiBundle][ProductTaxon] Move deleting productTaxon to productTaxon resource
59c2798883 [ApiBundle][CatalogPromotion] Add order filters
4036f1f132 [Behat] Add API test coverage for features/promotion/tracking_usage folder
e8f1a0a831 [ApiBundle] Add contract tests for ProductTaxon resource
6de508c911 [ChannelsTest] use inArray to check locales
2023-12-14 07:03:58 +01:00
Wojdylak
e8f1a0a831
[ApiBundle] Add contract tests for ProductTaxon resource 2023-12-13 15:02:43 +01:00
Jacob Tobiasz
ac519402b9
Add handling the GetCustomerStatistics query 2023-12-11 13:18:09 +01:00
Wojdylak
05261ace11
[ProductBundle] Add unique entity constraint to ProductOptionTranslation and ProductOptionValueTranslation 2023-12-06 13:56:09 +01:00
Grzegorz Sadowski
079766a2c2
feature #15539 [API][Admin] Promotion coupons management(CRUD) (NoResponseMate, Wojdylak)
This PR was merged into the 1.13 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.13 |
| Bug fix?        | no                                                       |
| New feature?    | yes                                                       |
| BC breaks?      | no                                                       |
| Deprecations?   | no |
| Related tickets | -                      |
| License         | MIT                                                          |

Commits
-------

47153967eb [API][Admin] Browsing coupons
41efb5f437 [API][Admin] Sorting coupons
cb3770b564 [API][Admin] Deleting coupons
9b884466f4 [API][Admin] Creating coupons
54b87d0913 [API][Admin] Updating coupons
ae13ab3969 [API][Admin] Validating coupons
854393e293 Add coupons to payload in PromotionCouponsTest
6d33557dc9 Add api test for coupon_unique_code_validation.feature
440a75ab83 Resolve phpstan issues
e6f4b2b344 Add PromotionCouponCannotBeRemoved to code mapping
c0ac149d0e [ApiBundle] Add promotion coupon endpoint as a subresource
41ed0f33d5 [ApiBundle] Add PromotionCouponPromotionFilter class
08251e45c3 [ApiBundle] Resolve phpstan issues
e82780e1c0 [ApiBundle] Add to test information abut PromotionCouponPromotionFilter
2023-12-01 13:23:42 +01:00
Wojdylak
9d6f54e458 [Api][Test] Update promotion test response check 2023-12-01 08:15:24 +01:00
Wojdylak
e6f4b2b344 Add PromotionCouponCannotBeRemoved to code mapping 2023-11-30 10:38:40 +01:00
Jan Goralski
47153967eb [API][Admin] Browsing coupons 2023-11-30 10:38:40 +01:00
Grzegorz Sadowski
2bb655e2ee
[API][Admin] Validate product variants on product images 2023-11-28 14:43:57 +01:00
Grzegorz Sadowski
078ea0436c
[API][Admin] Add managing product variants on product images 2023-11-28 14:42:11 +01:00
Grzegorz Sadowski
69067dbffd
[API][Admin] Add GET endpoints for product image resource 2023-11-28 14:42:09 +01:00
Kamil Grygierzec
75fd302e60
feature #15551 Resolve actions and rules configuration validation (Wojdylak)
This PR was merged into the 1.13 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.13
| Bug fix?        | no
| New feature?    | yes
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | N/A
| License         | MIT


Commits
-------
  [PromotionBundle] Add PromotionActionValidator class
  [PromotionBundle] Add PromotionRuleValidator class
  [CoreBundle] Add ChannelCodeCollectionValidator class
  [CoreBundle] Add validators
  [PromotionBundle] Add tests of PromotionActionValidator and PromotionRuleValidator
  [ApiBundle] Add validation for PromotionAction
  [ApiBundle] Add validation for PromotionRule
  [CoreBundle] Add ProductCodeExistsValidator class
  Add contract test for Promotion
  Resolve psalm issues
  Resolve phpstan issues
  Add behat tests for Promotion
  Resolve phpstan issues
  Change check at PromotionActionGroupValidatorSpec
  Add validation filters of PromotionAction
  Change type at PromotionActionValidatorSpec
  Resolve phpstan isssues
  [ApiBundle][Promotion] Enable auto-increment of priority via API when set to -1
  [CoreBundle] Rename no_exist to not_exist
  [Behat][Api] Change default value to -1
  Remove unnecessary comments
  [Behat][Promotion] Add setting promotion to the lowest priority scenario.
2023-11-28 12:38:31 +01:00
Rafikooo
09e626608b
[Unit] Add tests for shipping address of placed order 2023-11-22 13:38:10 +01:00
Rafikooo
a2c3eb6214
[Unit] Add admin order billing address tests 2023-11-22 13:38:09 +01:00
Wojdylak
609931506e Add contract test for Promotion 2023-11-22 08:36:20 +01:00
Grzegorz Sadowski
0604c99e06
feature #15530 [API] Cover payment method management (TheMilek)
This PR was merged into the 1.13 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.13 <!-- see the comment below -->                  |
| Bug fix?        | no                                                       |
| New feature?    | yes                                                       |
| BC breaks?      | no                                                       |
| Deprecations?   | no <!-- don't forget to update the UPGRADE-*.md file --> |
| License         | MIT                                                          |

<!--
 - Bug fixes must be submitted against the 1.12 branch
 - Features and deprecations must be submitted against the 1.13 branch
 - Make sure that the correct base branch is set

 To be sure you are not breaking any Backward Compatibilities, check the documentation:
 https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->


Commits
-------

04dc0b504d [API] Cover payment method management
b213efbc80 [Behat] Cover API scenarios
116d2dead0 Prevent removing payment method that is in use
9c462870eb Add contract tests
80be385cfe Adjust existing tests to changes
2023-11-22 06:37:07 +01:00
Kamil Grygierzec
9c462870eb
Add contract tests 2023-11-21 15:53:09 +01:00
Wojdylak
214f066b08 [ApiBundle] Add contract tests for Promotion resources 2023-11-20 11:37:02 +01:00
Grzegorz Sadowski
11d5df0f44
[API][Admin] Add images field to taxon responses 2023-11-16 15:02:59 +01:00
Grzegorz Sadowski
a90efb8db3
[API][Admin] Add PUT endpoint for taxon image resource 2023-11-16 15:02:58 +01:00
Grzegorz Sadowski
204a7f8bfd
[API][Admin] Add GET endpoints for taxon image resource 2023-11-16 15:02:57 +01:00
Grzegorz Sadowski
072bf8723c
feature #15452 [API] Cover editing and deleting channels (TheMilek, jakubtobiasz)
This PR was merged into the 1.13 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.13 <!-- see the comment below -->                  |
| Bug fix?        | no                                                       |
| New feature?    | yes                                                       |
| BC breaks?      | no                                                      |
| Deprecations?   | no <!-- don't forget to update the UPGRADE-*.md file --> |
| License         | MIT                                                          |

<!--
 - Bug fixes must be submitted against the 1.12 branch
 - Features and deprecations must be submitted against the 1.13 branch
 - Make sure that the correct base branch is set

 To be sure you are not breaking any Backward Compatibilities, check the documentation:
 https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->


Commits
-------

a0b29867eb Cover editing and deleting channels
f8222e5a4c [Behat] Add api tag to managing channel scenarios
67761b9626 [Behat] Add replaceRequestData method to ApiPlatformClient
6e0edf1db3 Prevent from deleting last available channel
4b9df1dc0b Add put operation to ShopBillingDataResource
3b7a343ddb Update ChannelDenormalizer to create ShopBillingData by default
53a120af07 Update upgrade file
14a94c043b [Behat] Create shopBillingData by default in channel setup step
8d4214d18c Refactor checking whether the channel can be deleted
2023-11-07 10:59:39 +01:00
Grzegorz Sadowski
0e6ac906c6
feature #15457 [API] Add Customer resources (Wojdylak)
This PR was merged into the 1.13 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.13
| Bug fix?        | no
| New feature?    | yes
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | N/A
| License         | MIT


Commits
-------

2df7d79909 [ApiBundle] Add customer resource to APIP2, admin scope
b962bfb6fc [ApiBundle] Add behat tests for customer resources
df266cc161 ApiBundle] Add customer modification feature to APIP2
1549c9d4b8 [ApiBundle] Add behat tests for customer resources
3801a7c293 [ApiBundle] Remove unused field
f2cae6f456 [ApiBundle][Swagger] Hide shop user get endpoint
b287891ca2 [ApiBundle] Add filtering customers by groups
fa0ad8d3a7 [ApiBundle] Add contract tests for Customer Api resources
a84513bb19 [ApiBundle] Add validation group to put action on customer
d53ed1413e [ApiBundle] Add notified password step to ManagingCustomersContext
0ccbcf8943 [ApiBundle] ManagingCustomersContext - refactor methods for simplicity
0cd1fa74d2 [ApiBundle] Unify behat tests for customer management
90f7a1b788 [ApiBundle] Remove endpoint subresource order for customer and use endpoint order with customer filter
2d50bd66a8 [ApiBundle] Fix seeing customer's basic information test
ba5c4e8ffb [ApiBundle] Fix seeing customer's basic information test
dddf3c5198 [ApiBundle] Remove order property from customer
2023-11-02 07:54:19 +01:00
Kamil Grygierzec
9518e82a41
feature #15460 [API][Admin] Managing product variants (GSadee)
This PR was merged into the 1.13 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.13
| Bug fix?        | no
| New feature?    | yes                                                       |
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | 
| License         | MIT                                                          |

<!--
 - Bug fixes must be submitted against the 1.12 branch
 - Features and deprecations must be submitted against the 1.13 branch
 - Make sure that the correct base branch is set

 To be sure you are not breaking any Backward Compatibilities, check the documentation:
 https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->


Commits
-------
  [API][Admin] Extend GET endpoints for getting product variants
  [API][Admin] Extend POST endpoint for creating a product variant
  [API][Admin] Extend PUT endpoint for updating the product variant
  [API][Admin] Add DELETE endpoint for product variant resource
  [Behat][API] Cover scenarios for adding a product variant
  [Behat][API] Cover scenarios for browsing product variants
  [Behat][API] Cover scenarios for deleting a product variant
  [API][Behat] Mark scenarios for generating product variants as no-api
  [API][Behat] Cover scenarios for editing and validating product variants
  [API] Validate option values on product variants
  Fix CS and static analysis
  [API] Fix contract tests after changing fixtures for product variants
  [Behat][API] Extract some steps to separate contexts to resolve duplications
  [Behat][API] Change setting code on option value to resolve problem with case sensitive PostgreSQL
2023-10-31 16:07:35 +01:00
Kamil Grygierzec
3b7a343ddb
Update ChannelDenormalizer to create ShopBillingData by default 2023-10-31 15:02:07 +01:00
Kamil Grygierzec
4b9df1dc0b
Add put operation to ShopBillingDataResource 2023-10-31 15:02:06 +01:00
Wojdylak
fa0ad8d3a7 [ApiBundle] Add contract tests for Customer Api resources 2023-10-24 15:48:55 +02:00
Grzegorz Sadowski
98a7e3cab2
[API][Admin] Add DELETE endpoint for product variant resource 2023-10-23 08:43:00 +02:00
Grzegorz Sadowski
dead3ac6cd
[API][Admin] Extend GET endpoints for getting product variants 2023-10-23 08:42:59 +02:00
Grzegorz Sadowski
242cdc395f
[API] Cover DELETE endpoint for product in contract tests 2023-10-20 14:02:52 +02:00
Grzegorz Sadowski
24f56b3d6f
[API] Extend PUT endpoint for updating the product 2023-10-20 14:02:52 +02:00
Grzegorz Sadowski
1536fd3d71
[API][Admin] Extend POST endpoint for creating a product 2023-10-20 14:02:52 +02:00
Grzegorz Sadowski
85a25557ab
[API][Admin] Extend GET endpoints for getting products 2023-10-20 14:02:52 +02:00
Jan Goralski
89cc7a22a4
[Api][Admin] Cover product attributes removing 2023-09-25 14:34:26 +02:00
Grzegorz Sadowski
1d46d40031
Merge branch '1.12' into 1.13
* 1.12:
  [PostgreSQL] Handle DriverException gracefully with 22P02 SQLState
  [Orders][Shop] Improve order item quantity change validation
  [Unit][Orders] Add tests for items quantity change
  [Orders][Shop] Add checkout completion validation
  [Unit][Orders] Add tests for checkout completion
  [Unit][Orders] Add tests for preventing from order completion
  [Orders][Shop] Add shipment validation when trying to assign shipping method
  [Unit][Orders] Add test for validating shipmentId when trying to assign shipping method
  [Unit][Utils] Introduce ContentType helper class
  [Orders] Add missing order payment configuration endpoint validation
  [Unit][Orders][Shop] Add test for validation invalid payment param
  [Unit][Orders][Shop] Add test for invalid uri param validation
  [Unit][Orders][Shop] Extract helper methods
2023-07-05 10:07:11 +02:00
Rafikooo
a5f7c232dd
[Unit][Orders] Add tests for preventing from order completion 2023-06-29 13:44:58 +02:00
TheMilek
ebc7d88b08
View only available associations for product 2023-06-07 14:42:50 +02:00
TheMilek
9270ae30b2
View only enabled taxons 2023-05-18 14:52:27 +02:00
Rafikooo
9bd6d0650d
[ProductVariant][API] Add possibility to PUT variant translations 2023-04-12 21:54:06 +02:00
Jan Goralski
28e8a8b3ac
[API] Crud of ChannelPriceHistoryConfig 2023-03-29 15:05:58 +02:00
Rafikooo
0cdf3cfa5f
[PriceHistory][Test] Add contract tests for ChannelPricingLogEntry entity 2023-03-17 13:54:24 +01:00
Jakub Tobiasz
cff62a6337
Adjust Tax Rates API related Behat scenarios to the new standard 2023-02-22 11:41:09 +01:00
Jan Goralski
5a06ac44bb
[API][ExchangeRate] Update mapping 2023-01-12 12:41:09 +01:00
Jan Goralski
b83611673e
[API][CustomerGroup] Update mapping 2023-01-12 12:41:09 +01:00
Jan Goralski
0573ddc37d
[API][ProductReview] Update mapping 2023-01-12 12:41:08 +01:00
Jan Goralski
dce3d66148
[API][TaxCategory] Update mapping 2023-01-12 12:41:08 +01:00
Jan Goralski
06127039c9
[API][ShippingCategory] Update mapping 2023-01-12 12:41:07 +01:00
Jan Goralski
71186cfb72
[API][Promotion] Update mapping 2023-01-12 12:41:07 +01:00
Jan Goralski
3aa0d195a4
[API][Locale] Update mapping 2023-01-12 12:41:06 +01:00
Jan Goralski
86b16e2c0b
[API][Currency] Update mapping 2023-01-12 12:41:06 +01:00