Skip to content

Releases: bold-commerce/bold-shopify-toolkit

Add prerequisite_customer_ids to PriceRule model

08 Feb 19:10
Compare
Choose a tag to compare
Add prerequisite_customer_ids to PriceRule model (#46)

- Recently added to Shopify's price rule API
  - https://help.shopify.com/api/reference/pricerule#prerequisite-customer-ids-property
- Add property to the model and fix up PriceRuleTest to accommodate the change

Add customer endpoint to customer saved searches

07 Feb 19:56
Compare
Choose a tag to compare
Add customers endpoint to customer saved searches (#45)

- Added dates to the customer saved search model
- Added function to customer saved search service that grabs all customers that apply to the customer saved search ID
  - https://help.shopify.com/api/reference/customersavedsearch#other
- Added tests for customer and customer saved search to ensure accurate param types
- Added createFromArray function to customer service for easier testing

Fix DiscountCode api calls

06 Feb 22:40
Compare
Choose a tag to compare
Fix discount code retrieval and model (#44)

- Corrected discount code model types to be consistent with types returned from the API
- Refactor discount code service to correct function for retrieving discount codes by price rule ID
  - Originally it assumed that one discount code was always returned but that endpoint can return multiple per price rule ID
  - Was also using wrong index on the `$raw` param for the above reason
  - Corrected such that it returns a collection of `discount_codes`
- Added function for retrieving singular discount codes by price rule ID + discount code ID
- Added test to ensure accuracy of serializing and de-serializing

Fix DiscountCode attribute mismatch

19 Jan 01:38
Compare
Choose a tag to compare
1.4.3

Fix usageCount setter (#43)

ApiSleeper implements RequestHookInterface

15 Jan 17:03
Compare
Choose a tag to compare
1.4.2

ShopifyApiHandler implements RequestHookInterface (#42)

Fix tests for removing install sleeper

09 Jan 20:41
Compare
Choose a tag to compare
InstallAndLogin needed the ApiSleeper removed (#41)

Since the install flow has not yet made any api calls, there is
no concern about hitting the api call limit. So rather than
switching the ApiSleeperContract over to the RequestHookInterface,
we just removed this usage of it.

Remove APISleeper from Install flow

09 Jan 20:32
Compare
Choose a tag to compare
InstallAndLogin needed the ApiSleeper removed (#40)

Since the install flow has not yet made any api calls, there is
no concern about hitting the api call limit. So rather than
switching the ApiSleeperContract over to the RequestHookInterface,
we just removed this usage of it.

Add Collects

09 Jan 17:45
Compare
Choose a tag to compare

Add support for Collects

Add Discount Code Endpoints

05 Jan 18:11
Compare
Choose a tag to compare
1.3.4

Feature/discount code and price rules functionality added (#37)

Add Image Attachment to model

03 Jan 20:26
Compare
Choose a tag to compare
1.3.3

Adding attachment to the Image model (#38)