diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 7b3f737b..2f4c74a2 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,16 +1,3 @@ -This release adds support for a number of new and extended BigCommerce V3 API endpoints. - -### New Features - -- Implement the [System Logs](https://developer.bigcommerce.com/api-reference/6908d02370409-get-system-logs) - endpoint (#185) -- Implement the [Pages](https://developer.bigcommerce.com/api-reference/d74089ee212a2-delete-pages) API (#184) -- Implement extra Customer V3 endpoints (#181): - - [Get stored instruments](https://developer.bigcommerce.com/api-reference/b735a25b3a0b8-get-stored-instruments) - - [Customer Settings](https://developer.bigcommerce.com/api-reference/0c31a6d25e5ea-get-customer-settings) - - [Customer Settings per Channel](https://developer.bigcommerce.com/api-reference/d5e66c45b0415-get-customer-settings-per-channel) - - [Validate credentials](https://developer.bigcommerce.com/api-reference/3d731215a3dcb-validate-a-customer-credentials) -- Add the ability to send and receive Images via the Product API, not just the Product Images api (#175) -- Implement the [Wishlists](https://developer.bigcommerce.com/api-reference/03d6065d6f6e5-wishlist) API (#186) - +### Fixes +- Many deprecation notices for PHP 8.2 about creation of dynamic properties (#201) \ No newline at end of file diff --git a/src/BigCommerce/ResourceModels/Cart/Cart.php b/src/BigCommerce/ResourceModels/Cart/Cart.php index cfa8a56e..179ad487 100644 --- a/src/BigCommerce/ResourceModels/Cart/Cart.php +++ b/src/BigCommerce/ResourceModels/Cart/Cart.php @@ -22,4 +22,11 @@ class Cart extends ResourceModel public string $updated_time; public int $channel_id; public string $locale; + public ?CartRedirectUrls $redirect_urls; + + protected function beforeBuildObject(): void + { + parent::beforeBuildObject(); + self::buildPropertyObject('redirect_urls', CartRedirectUrls::class); + } } diff --git a/src/BigCommerce/ResourceModels/Cart/CartRedirectUrls.php b/src/BigCommerce/ResourceModels/Cart/CartRedirectUrls.php index 66326047..5c6891bd 100644 --- a/src/BigCommerce/ResourceModels/Cart/CartRedirectUrls.php +++ b/src/BigCommerce/ResourceModels/Cart/CartRedirectUrls.php @@ -8,4 +8,5 @@ class CartRedirectUrls extends ResourceModel { public string $cart_url; public string $checkout_url; + public string $embedded_checkout_url; } diff --git a/src/BigCommerce/ResourceModels/Catalog/Product/Product.php b/src/BigCommerce/ResourceModels/Catalog/Product/Product.php index f37b30fe..6c98df79 100644 --- a/src/BigCommerce/ResourceModels/Catalog/Product/Product.php +++ b/src/BigCommerce/ResourceModels/Catalog/Product/Product.php @@ -81,6 +81,14 @@ class Product extends ResourceModel public bool $open_graph_use_image; public int $reviews_rating_sum; public int $total_sold; + public int $reviews_count; + public ?int $option_set_id; + public ?float $calculated_price; + public ?string $option_set_display; + public string $product_tax_code; + public int $tax_class_id; + public ?float $map_price; + /** * @var CustomField[]|null */ @@ -97,6 +105,11 @@ class Product extends ResourceModel */ public ?array $images; + /** + * @var ProductVariant[]|null + */ + public ?array $variants; + public function __construct(?stdClass $optionObject = null) { if (!is_null($optionObject)) { @@ -126,5 +139,6 @@ protected function beforeBuildObject(): void { $this->buildObjectArray('modifiers', ProductModifier::class); $this->buildObjectArray('images', ProductImage::class); + $this->buildObjectArray('variants', ProductVariant::class); } } diff --git a/src/BigCommerce/ResourceModels/Catalog/Product/ProductVariant.php b/src/BigCommerce/ResourceModels/Catalog/Product/ProductVariant.php index 0b9f31c1..42bd7f40 100644 --- a/src/BigCommerce/ResourceModels/Catalog/Product/ProductVariant.php +++ b/src/BigCommerce/ResourceModels/Catalog/Product/ProductVariant.php @@ -12,6 +12,7 @@ class ProductVariant extends ResourceModel public ?int $sku_id; public ?float $price; public ?float $calculated_price; + public ?float $map_price; public ?float $sale_price; public ?float $retail_price; public ?float $weight; @@ -31,4 +32,5 @@ class ProductVariant extends ResourceModel public int $inventory_warning_level; public string $bin_picking_number; public array $option_values; + public float $calculated_weight; } diff --git a/src/BigCommerce/ResourceModels/Catalog/Product/ProductVideo.php b/src/BigCommerce/ResourceModels/Catalog/Product/ProductVideo.php index 917b4f93..d9533461 100644 --- a/src/BigCommerce/ResourceModels/Catalog/Product/ProductVideo.php +++ b/src/BigCommerce/ResourceModels/Catalog/Product/ProductVideo.php @@ -10,7 +10,7 @@ class ProductVideo extends ResourceModel public string $title; public string $description; - public int $sort_oder; + public int $sort_order; public string $type; public string $video_id; public int $id; diff --git a/src/BigCommerce/ResourceModels/Channel/Channel.php b/src/BigCommerce/ResourceModels/Channel/Channel.php index e4ebd80e..8dd2159b 100644 --- a/src/BigCommerce/ResourceModels/Channel/Channel.php +++ b/src/BigCommerce/ResourceModels/Channel/Channel.php @@ -44,4 +44,5 @@ class Channel extends ResourceModel public bool $is_visible; public string $name; public string $status; + public bool $is_enabled; } diff --git a/src/BigCommerce/ResourceModels/Customer/Customer.php b/src/BigCommerce/ResourceModels/Customer/Customer.php index 5c5d1a84..58a2a785 100644 --- a/src/BigCommerce/ResourceModels/Customer/Customer.php +++ b/src/BigCommerce/ResourceModels/Customer/Customer.php @@ -32,6 +32,9 @@ class Customer extends ResourceModel public ?array $store_credit_amounts; public ?int $origin_channel_id; public ?array $channel_ids; + public ?string $registration_ip_address; + public string $date_created; + public string $date_modified; /** * @var CustomerAddress[] diff --git a/src/BigCommerce/ResourceModels/Customer/CustomerAddress.php b/src/BigCommerce/ResourceModels/Customer/CustomerAddress.php index ebd9488a..0b7bb70f 100644 --- a/src/BigCommerce/ResourceModels/Customer/CustomerAddress.php +++ b/src/BigCommerce/ResourceModels/Customer/CustomerAddress.php @@ -17,4 +17,5 @@ class CustomerAddress extends ResourceModel public string $phone; public string $address_type; public int $customer_id; + public ?string $company; } diff --git a/src/BigCommerce/ResourceModels/Order/OrderRefundItem.php b/src/BigCommerce/ResourceModels/Order/OrderRefundItem.php index 72bb2e1a..1598aebf 100644 --- a/src/BigCommerce/ResourceModels/Order/OrderRefundItem.php +++ b/src/BigCommerce/ResourceModels/Order/OrderRefundItem.php @@ -16,4 +16,5 @@ class OrderRefundItem extends ResourceModel public ?float $amount; public ?float $quantity; public ?string $reason; + public ?float $requested_amount; } diff --git a/src/BigCommerce/ResourceModels/Page/Page.php b/src/BigCommerce/ResourceModels/Page/Page.php index 0f1fe82b..ba58c289 100644 --- a/src/BigCommerce/ResourceModels/Page/Page.php +++ b/src/BigCommerce/ResourceModels/Page/Page.php @@ -6,6 +6,7 @@ class Page extends ResourceModel { + public int $id; public string $name; public ?string $email; public string $meta_title; diff --git a/src/BigCommerce/ResourceModels/PriceList/PriceList.php b/src/BigCommerce/ResourceModels/PriceList/PriceList.php index e90b25c7..b299800a 100644 --- a/src/BigCommerce/ResourceModels/PriceList/PriceList.php +++ b/src/BigCommerce/ResourceModels/PriceList/PriceList.php @@ -9,6 +9,6 @@ class PriceList extends ResourceModel public int $id; public string $name; public string $date_created; - public string $data_modified; + public string $date_modified; public bool $active; } diff --git a/src/BigCommerce/ResourceModels/PriceList/PriceListRecord.php b/src/BigCommerce/ResourceModels/PriceList/PriceListRecord.php index 8e842035..8c3874a2 100644 --- a/src/BigCommerce/ResourceModels/PriceList/PriceListRecord.php +++ b/src/BigCommerce/ResourceModels/PriceList/PriceListRecord.php @@ -8,13 +8,14 @@ class PriceListRecord extends ResourceModel { public int $price_list_id; public int $variant_id; - public float $price; - public object $sale_price; - public object $map_price; + public ?float $price; + public ?float $sale_price; + public ?float $map_price; public float $calculated_price; public string $date_created; public string $date_modified; public string $currency; public int $product_id; public array $bulk_pricing_tiers; + public ?float $retail_price; } diff --git a/src/BigCommerce/ResourceModels/Redirect/Redirect.php b/src/BigCommerce/ResourceModels/Redirect/Redirect.php index f9853f86..82f3b356 100644 --- a/src/BigCommerce/ResourceModels/Redirect/Redirect.php +++ b/src/BigCommerce/ResourceModels/Redirect/Redirect.php @@ -29,6 +29,8 @@ class Redirect extends ResourceModel public string $from_path; public int $site_id; public RedirectTo $to; + public int $id; + public string $to_url; public function __construct(?stdClass $optionObject = null) { diff --git a/src/BigCommerce/ResourceModels/Script/Script.php b/src/BigCommerce/ResourceModels/Script/Script.php index b7f22c73..b6c791c0 100644 --- a/src/BigCommerce/ResourceModels/Script/Script.php +++ b/src/BigCommerce/ResourceModels/Script/Script.php @@ -29,4 +29,5 @@ class Script extends ResourceModel public string $api_client_id; public string $consent_category; public bool $enabled; + public string $name; } diff --git a/src/BigCommerce/ResourceModels/Widget/Placement.php b/src/BigCommerce/ResourceModels/Widget/Placement.php index 473c15b7..5f7fc885 100644 --- a/src/BigCommerce/ResourceModels/Widget/Placement.php +++ b/src/BigCommerce/ResourceModels/Widget/Placement.php @@ -17,6 +17,9 @@ class Placement extends ResourceModel public int $sort_order; public string $region; public ?Widget $widget; + public string $date_created; + public string $date_modified; + public string $uuid; public function __construct(?stdClass $optionObject = null) { diff --git a/src/BigCommerce/ResponseModels/Meta/Links.php b/src/BigCommerce/ResponseModels/Meta/Links.php new file mode 100644 index 00000000..103c6a9e --- /dev/null +++ b/src/BigCommerce/ResponseModels/Meta/Links.php @@ -0,0 +1,12 @@ +assertEquals('include_fields=weight%2Cwidth', $this->getLastRequest()->getUri()->getQuery()); } + public function testCanGetProductWithoutError(): void + { + $this->setReturnData('catalog__products__77__get.json'); + $product = $this->getApi()->catalog()->product(77)->get()->getProduct(); + $this->assertEquals(77, $product->id); + $this->assertEquals('SLCTBS', $product->sku); + } + public function testCanGetAllPagesForProducts(): void { $this->setReturnData('catalog__products__get_all.json'); diff --git a/tests/BigCommerce/responses/catalog__brands__11__metafields__get_all.json b/tests/BigCommerce/responses/catalog__brands__11__metafields__get_all.json index ca27ae24..0a402c87 100644 --- a/tests/BigCommerce/responses/catalog__brands__11__metafields__get_all.json +++ b/tests/BigCommerce/responses/catalog__brands__11__metafields__get_all.json @@ -9,8 +9,8 @@ "resource_type": "brand", "resource_id": 111, "id": 6, - "created_at": "1973-01-20T21:34:57.903Z", - "updated_at": "1990-12-30T00:29:23.515Z" + "date_created": "1973-01-20T21:34:57.903Z", + "date_modified": "1990-12-30T00:29:23.515Z" }, { "permission_set": "read", @@ -21,8 +21,8 @@ "resource_type": "brand", "resource_id": 111, "id": 6, - "created_at": "1973-01-20T21:34:57.903Z", - "updated_at": "1990-12-30T00:29:23.515Z" + "date_created": "1973-01-20T21:34:57.903Z", + "date_modified": "1990-12-30T00:29:23.515Z" } ], "meta": { diff --git a/tests/BigCommerce/responses/catalog__categories__111__metafields__get_all.json b/tests/BigCommerce/responses/catalog__categories__111__metafields__get_all.json index ca27ae24..0a402c87 100644 --- a/tests/BigCommerce/responses/catalog__categories__111__metafields__get_all.json +++ b/tests/BigCommerce/responses/catalog__categories__111__metafields__get_all.json @@ -9,8 +9,8 @@ "resource_type": "brand", "resource_id": 111, "id": 6, - "created_at": "1973-01-20T21:34:57.903Z", - "updated_at": "1990-12-30T00:29:23.515Z" + "date_created": "1973-01-20T21:34:57.903Z", + "date_modified": "1990-12-30T00:29:23.515Z" }, { "permission_set": "read", @@ -21,8 +21,8 @@ "resource_type": "brand", "resource_id": 111, "id": 6, - "created_at": "1973-01-20T21:34:57.903Z", - "updated_at": "1990-12-30T00:29:23.515Z" + "date_created": "1973-01-20T21:34:57.903Z", + "date_modified": "1990-12-30T00:29:23.515Z" } ], "meta": { diff --git a/tests/BigCommerce/responses/catalog__products__174__get.json b/tests/BigCommerce/responses/catalog__products__174__get.json index 1021d322..31b89838 100644 --- a/tests/BigCommerce/responses/catalog__products__174__get.json +++ b/tests/BigCommerce/responses/catalog__products__174__get.json @@ -22,7 +22,7 @@ 21 ], "brand_id": 36, - "option_set_id": {}, + "option_set_id": null, "option_set_display": "right", "inventory_level": 0, "inventory_warning_level": 0, diff --git a/tests/BigCommerce/responses/catalog__products__77__get.json b/tests/BigCommerce/responses/catalog__products__77__get.json new file mode 100644 index 00000000..eeb5d8f3 --- /dev/null +++ b/tests/BigCommerce/responses/catalog__products__77__get.json @@ -0,0 +1,80 @@ +{ + "data": { + "id": 77, + "name": "[Sample] Fog Linen Chambray Towel - Beige Stripe", + "type": "physical", + "sku": "SLCTBS", + "description": "
The perfect beach towel: thin, lightweight and highly absorbent. Crafted by Fog Linen in Japan using soft Lithuanian linen, each towel rolls up for compact stowaway. Dry off after a refreshing dip in the ocean and stretch out on it for a sun bath. The thinness ensures a quick dry so you can have it rolled back up in your bag without soaking your belongings.
\nMeasures 75 x 145 cm/29.5 x 57 in
\n100% Linen
", + "weight": 1, + "width": 0, + "depth": 0, + "height": 0, + "price": 49, + "cost_price": 0, + "retail_price": 0, + "sale_price": 0, + "map_price": 0, + "tax_class_id": 0, + "product_tax_code": "", + "calculated_price": 49, + "categories": [ + 18, + 23 + ], + "brand_id": 70, + "option_set_id": 18, + "option_set_display": "right", + "inventory_level": 0, + "inventory_warning_level": 0, + "inventory_tracking": "none", + "reviews_rating_sum": 0, + "reviews_count": 0, + "total_sold": 4, + "fixed_cost_shipping_price": 0, + "is_free_shipping": false, + "is_visible": true, + "is_featured": false, + "related_products": [ + -1 + ], + "warranty": "", + "bin_picking_number": "", + "layout_file": "product.html", + "upc": "", + "mpn": "", + "gtin": "", + "search_keywords": "", + "availability": "available", + "availability_description": "", + "gift_wrapping_options_type": "any", + "gift_wrapping_options_list": [], + "sort_order": 0, + "condition": "New", + "is_condition_shown": false, + "order_quantity_minimum": 0, + "order_quantity_maximum": 0, + "page_title": "", + "meta_keywords": [], + "meta_description": "", + "date_created": "2015-07-03T17:57:10+00:00", + "date_modified": "2022-03-29T22:55:46+00:00", + "view_count": 79, + "preorder_release_date": null, + "preorder_message": "", + "is_preorder_only": false, + "is_price_hidden": false, + "price_hidden_label": "", + "custom_url": { + "url": "/fog-linen-chambray-towel-beige-stripe/", + "is_customized": false + }, + "base_variant_id": null, + "open_graph_type": "product", + "open_graph_title": "", + "open_graph_description": "", + "open_graph_use_meta_description": true, + "open_graph_use_product_name": true, + "open_graph_use_image": true + }, + "meta": {} +} \ No newline at end of file diff --git a/tests/BigCommerce/responses/catalog__products__get_all.json b/tests/BigCommerce/responses/catalog__products__get_all.json index 127a93f9..da6b108a 100644 --- a/tests/BigCommerce/responses/catalog__products__get_all.json +++ b/tests/BigCommerce/responses/catalog__products__get_all.json @@ -23,7 +23,7 @@ 21 ], "brand_id": 36, - "option_set_id": {}, + "option_set_id": null, "option_set_display": "right", "inventory_level": 0, "inventory_warning_level": 0, @@ -81,7 +81,7 @@ "id": 345, "product_id": 174, "sku": "", - "sku_id": {}, + "sku_id": null, "price": 7.95, "calculated_price": 7.95, "sale_price": 0, @@ -189,7 +189,7 @@ "id": 338, "product_id": 167, "sku": "", - "sku_id": {}, + "sku_id": null, "price": 225, "calculated_price": 225, "sale_price": 0, @@ -227,8 +227,7 @@ "links": { "next": "?sort=name&include=variants&limit=10&page=2", "current": "?sort=name&include=variants&limit=10&page=1" - }, - "too_many": false + } } } } \ No newline at end of file diff --git a/tests/BigCommerce/responses/customers__get_all.json b/tests/BigCommerce/responses/customers__get_all.json index d0629ac7..b9d17891 100644 --- a/tests/BigCommerce/responses/customers__get_all.json +++ b/tests/BigCommerce/responses/customers__get_all.json @@ -36,7 +36,7 @@ "attributes": [ { "attribute_id": 0, - "value": "string" + "attribute_value": "string" } ] } diff --git a/tests/BigCommerce/responses/orders__1__metafields__get_all.json b/tests/BigCommerce/responses/orders__1__metafields__get_all.json index ae88af35..6a4ef039 100644 --- a/tests/BigCommerce/responses/orders__1__metafields__get_all.json +++ b/tests/BigCommerce/responses/orders__1__metafields__get_all.json @@ -9,8 +9,8 @@ "resource_type": "brand", "resource_id": 1, "id": 6, - "created_at": "1973-01-20T21:34:57.903Z", - "updated_at": "1990-12-30T00:29:23.515Z" + "date_created": "1973-01-20T21:34:57.903Z", + "date_modified": "1990-12-30T00:29:23.515Z" }, { "permission_set": "read", @@ -21,8 +21,8 @@ "resource_type": "order", "resource_id": 1, "id": 6, - "created_at": "1973-01-20T21:34:57.903Z", - "updated_at": "1990-12-30T00:29:23.515Z" + "date_created": "1973-01-20T21:34:57.903Z", + "date_modified": "1990-12-30T00:29:23.515Z" } ], "meta": { diff --git a/tests/BigCommerce/responses/price_lists__3__records__by_variant_388.json b/tests/BigCommerce/responses/price_lists__3__records__by_variant_388.json index 4cca252d..823e5709 100644 --- a/tests/BigCommerce/responses/price_lists__3__records__by_variant_388.json +++ b/tests/BigCommerce/responses/price_lists__3__records__by_variant_388.json @@ -4,9 +4,9 @@ "price_list_id": 3, "variant_id": 388, "price": 10.78, - "sale_price": {}, - "retail_price": {}, - "map_price": {}, + "sale_price": null, + "retail_price": null, + "map_price": null, "calculated_price": 10.78, "date_created": "2018-09-17T20:33:14Z", "date_modified": "2018-09-17T20:35:42Z", diff --git a/tests/BigCommerce/responses/price_lists__3__records__get_all.json b/tests/BigCommerce/responses/price_lists__3__records__get_all.json index 8c5920bd..3c4e0346 100644 --- a/tests/BigCommerce/responses/price_lists__3__records__get_all.json +++ b/tests/BigCommerce/responses/price_lists__3__records__get_all.json @@ -4,9 +4,9 @@ "price_list_id": 3, "variant_id": 358, "price": 25.48, - "sale_price": {}, - "retail_price": {}, - "map_price": {}, + "sale_price": null, + "retail_price": null, + "map_price": null, "calculated_price": 25.48, "date_created": "2018-09-17T20:33:14Z", "date_modified": "2018-09-17T20:33:14Z", @@ -18,9 +18,9 @@ "price_list_id": 3, "variant_id": 359, "price": 31.31, - "sale_price": {}, - "retail_price": {}, - "map_price": {}, + "sale_price": null, + "retail_price": null, + "map_price": null, "calculated_price": 31.31, "date_created": "2018-09-17T20:33:14Z", "date_modified": "2018-09-17T20:33:14Z", @@ -32,9 +32,9 @@ "price_list_id": 3, "variant_id": 360, "price": 18.57, - "sale_price": {}, - "retail_price": {}, - "map_price": {}, + "sale_price": null, + "retail_price": null, + "map_price": null, "calculated_price": 18.57, "date_created": "2018-09-17T20:33:14Z", "date_modified": "2018-09-17T20:33:14Z", @@ -46,9 +46,9 @@ "price_list_id": 3, "variant_id": 361, "price": 22.54, - "sale_price": {}, - "retail_price": {}, - "map_price": {}, + "sale_price": null, + "retail_price": null, + "map_price": null, "calculated_price": 22.54, "date_created": "2018-09-17T20:33:14Z", "date_modified": "2018-09-17T20:33:14Z", @@ -60,9 +60,9 @@ "price_list_id": 3, "variant_id": 362, "price": 27.39, - "sale_price": {}, - "retail_price": {}, - "map_price": {}, + "sale_price": null, + "retail_price": null, + "map_price": null, "calculated_price": 27.39, "date_created": "2018-09-17T20:33:14Z", "date_modified": "2018-09-17T20:51:26Z", @@ -93,9 +93,9 @@ "price_list_id": 3, "variant_id": 382, "price": 9.8, - "sale_price": {}, - "retail_price": {}, - "map_price": {}, + "sale_price": null, + "retail_price": null, + "map_price": null, "calculated_price": 9.8, "date_created": "2018-09-17T20:33:14Z", "date_modified": "2018-09-17T20:33:14Z", @@ -107,9 +107,9 @@ "price_list_id": 3, "variant_id": 383, "price": 24.5, - "sale_price": {}, - "retail_price": {}, - "map_price": {}, + "sale_price": null, + "retail_price": null, + "map_price": null, "calculated_price": 24.5, "date_created": "2018-09-17T20:33:14Z", "date_modified": "2018-09-17T20:33:14Z", @@ -121,9 +121,9 @@ "price_list_id": 3, "variant_id": 384, "price": 24.5, - "sale_price": {}, - "retail_price": {}, - "map_price": {}, + "sale_price": null, + "retail_price": null, + "map_price": null, "calculated_price": 24.5, "date_created": "2018-09-17T20:33:14Z", "date_modified": "2018-09-17T20:33:14Z", @@ -135,9 +135,9 @@ "price_list_id": 3, "variant_id": 385, "price": 9.8, - "sale_price": {}, - "retail_price": {}, - "map_price": {}, + "sale_price": null, + "retail_price": null, + "map_price": null, "calculated_price": 9.8, "date_created": "2018-09-17T20:33:14Z", "date_modified": "2018-09-17T20:33:14Z", @@ -149,9 +149,9 @@ "price_list_id": 3, "variant_id": 386, "price": 10.78, - "sale_price": {}, - "retail_price": {}, - "map_price": {}, + "sale_price": null, + "retail_price": null, + "map_price": null, "calculated_price": 10.78, "date_created": "2018-09-17T20:33:14Z", "date_modified": "2018-09-17T20:33:14Z", @@ -163,9 +163,9 @@ "price_list_id": 3, "variant_id": 388, "price": 10.78, - "sale_price": {}, - "retail_price": {}, - "map_price": {}, + "sale_price": null, + "retail_price": null, + "map_price": null, "calculated_price": 10.78, "date_created": "2018-09-17T20:33:14Z", "date_modified": "2018-09-17T20:35:42Z", @@ -196,9 +196,9 @@ "price_list_id": 3, "variant_id": 389, "price": 18.62, - "sale_price": {}, - "retail_price": {}, - "map_price": {}, + "sale_price": null, + "retail_price": null, + "map_price": null, "calculated_price": 18.62, "date_created": "2018-09-17T20:33:14Z", "date_modified": "2018-09-17T20:35:42Z", @@ -229,9 +229,9 @@ "price_list_id": 3, "variant_id": 390, "price": 10.78, - "sale_price": {}, - "retail_price": {}, - "map_price": {}, + "sale_price": null, + "retail_price": null, + "map_price": null, "calculated_price": 10.78, "date_created": "2018-09-17T20:33:14Z", "date_modified": "2018-09-17T20:35:42Z", @@ -262,9 +262,9 @@ "price_list_id": 3, "variant_id": 391, "price": 10.78, - "sale_price": {}, - "retail_price": {}, - "map_price": {}, + "sale_price": null, + "retail_price": null, + "map_price": null, "calculated_price": 10.78, "date_created": "2018-09-17T20:33:14Z", "date_modified": "2018-09-17T20:35:42Z", diff --git a/tests/BigCommerce/responses/price_lists__4__records__by_variant__356__currency__eur.json b/tests/BigCommerce/responses/price_lists__4__records__by_variant__356__currency__eur.json index 38f76f8a..fe729eb6 100644 --- a/tests/BigCommerce/responses/price_lists__4__records__by_variant__356__currency__eur.json +++ b/tests/BigCommerce/responses/price_lists__4__records__by_variant__356__currency__eur.json @@ -3,9 +3,9 @@ "price_list_id": 4, "variant_id": 356, "price": 22.544, - "sale_price": {}, - "retail_price": {}, - "map_price": {}, + "sale_price": null, + "retail_price": null, + "map_price": null, "calculated_price": 22.544, "date_created": "2018-09-18T13:18:15Z", "date_modified": "2018-09-18T13:18:15Z", diff --git a/tests/BigCommerce/responses/sites__get_all.json b/tests/BigCommerce/responses/sites__get_all.json index fb3ad272..66eb1297 100644 --- a/tests/BigCommerce/responses/sites__get_all.json +++ b/tests/BigCommerce/responses/sites__get_all.json @@ -24,7 +24,7 @@ "count": 1, "per_page": 1, "current_page": 2, - "total_page": 3, + "total_pages": 3, "links": { "previous": "?limit=1&page=1", "next": "?limit=1&page=3",