25 Commits
Author SHA1 Message Date
506d352292 fix: downloadsRemaining returns null for numeric string values (#1000)
* fix: downloadsRemaining returns null for valid numeric string values

Use is_numeric() + intval() instead of 'integer' === gettype() to handle
cases where WooCommerce stores downloads_remaining as a numeric string.
Mirrors WooCommerce's own approach in its download templates.

Co-authored-by: Nestor Vera <hacknug@users.noreply.github.com>
Closes #937

* fix: Match CI phpcov php-code-coverage version to Docker container

The Docker container uses php-code-coverage 9.2.x which serializes
coverage with v9 classes (e.g. Xdebug3Driver). phpcov v9 bundles
php-code-coverage v11 with different classes, causing
__PHP_Incomplete_Class errors. Pin to phpcov v8 + php-code-coverage v9
to match the Docker environment.

---------

Co-authored-by: Nestor Vera <hacknug@users.noreply.github.com>
2026-03-26 23:03:30 -04:00
962410d265 fix: add model classes to type configs to better support query analyzer ID tracking (#874)
* - remove several fields that are already registered by core when the post type is mapped to the schema

* devops: Tests updated and coupon "salt" restored

* chore: Linter & PHPStan compliance met

* chore: Linter & PHPStan compliance met

* devops: "self" replaced with "static" in cli tests

* chore: fix cleanup after rebasing

---------

Co-authored-by: Geoff Taylor <geoff@axistaylor.com>
2024-08-06 18:54:18 -04:00
57800b46f3 feat: HPOS support added. (#748)
* feat: HPOS support added.

* fix: Refund connections and connection permission fixed

* chore: Linter compliance met.

* devops: CI script updated.

* devops: CI script updated.

* fix: Syntax error fixed.

* devops: CI script updated.

* devops: CI script updated.

* devops: CI script updated.

* chore: PHPStan fixes started.

* chore: linter compliance met.

* chore: fix scanning and type-hinting for non-stubbed classes

* dev: refactor Order model around WC_Abstract_Order

* chore: update dev deps

* devops: PHPStan and Linter compliance met.

* devops: HPOS test temporarily suppressed.

---------

Co-authored-by: David Levine <david@axepress.dev>
2023-06-21 13:21:29 -04:00
Geoffrey K TaylorandGitHub 223bde6ea2 feat: "product" and "variation" connections added to LineItem type (#604)
* feat: "product" and "variation" connections added to LineItem type

* chore: Coding standards met

* fix: GraphQLE2E helper updated to reflect schema changes

* chore: PHP 8.0 compliance met

* chore: Workflow codecoverage set to target PHP 7.4

* chore: WPCS compliance met
2022-03-04 23:44:48 -05:00
Geoff Taylor 66690f03ff "Customer_Connection_Resolver" deprecated. 2021-06-14 11:40:42 -04:00
Geoff Taylor 885736b970 Minor bugs in tests resolved. 2020-10-14 20:33:55 -04:00
Geoff Taylor b7a14f95a1 Session Handler upgraded. 2020-10-01 01:45:26 -04:00
Geoff Taylor 449d3b1674 "typeId" fields replaced by "databaseId". 2020-09-16 16:32:14 -04:00
Geoffrey K TaylorandGitHub e5ed5556c7 Checkout mutation updates (#229)
* "isPaid" and "transactionId" fields added to "CheckoutInput".
2020-02-03 19:30:43 -05:00
Geoff Taylor b57ec1c34a "DownloadableItem" type and connection implemented. 2020-01-22 03:07:39 -05:00
Geoff Taylor 8025de7667 "MetaData" type and queries implemented and tested. 2019-08-21 15:10:16 -04:00
Geoff Taylor 95d82ddf81 JWT Auth fields added to "Customer" type. "Customer" added to "checkout" mutation output. 2019-07-09 16:02:42 -04:00
Geoff Taylor ad82310c0a crud loader refactored 2019-07-09 03:55:55 -04:00
Geoff Taylor 140b64ae04 "deleteOrder" mutation implemented and tested. 2019-07-05 17:27:14 -04:00
Geoff Taylor 1b16268c37 Heavy refactoring done to Order_Mutation class 2019-07-04 01:49:01 -04:00
Geoff Taylor fccf7b98dd Placemarker before Order_Mutation refactor 2019-07-03 18:25:18 -04:00
Geoff Taylor 83d648afec Formatting functionality implemented for Order type. OrderHelper::print_query updated. 2019-06-03 14:54:40 -04:00
Geoff Taylor a57becf33e Order type pricing field resolvers updated. OrderHelper::print_query updated. 2019-06-03 11:49:53 -04:00
Geoff Taylor 880e463150 VariationAttributeQueriesTest implemented. "to_relay_id" added to helpers. 2019-04-30 15:43:48 -04:00
Geoff Taylor 9cdcf01e04 CustomerQueriesTest updated. Where arguments added to Customer connections. 2019-04-24 19:33:03 -04:00
Geoff Taylor 2662a99be0 OrderQueriesTest updated 2019-04-24 01:21:29 -04:00
Geoff Taylor b72a993099 OrderStatusEnum added 2019-04-18 12:39:27 -04:00
Geoff Taylor 2b0d6decc6 OrderItemQueriesTest implemented 2019-04-16 17:48:39 -04:00
Geoff Taylor e57ff7afb0 OrderQueriesTest refactored. OrderBy arg "orderNumber" changed to "orderKey". 2019-04-15 23:24:54 -04:00
Geoff Taylor 393aadf823 initial commit 2019-04-05 14:46:59 -04:00