diff --git a/lib/shopify/resources/collect.ex b/lib/shopify/resources/collect.ex index 44f08b4..160bcfe 100644 --- a/lib/shopify/resources/collect.ex +++ b/lib/shopify/resources/collect.ex @@ -19,7 +19,6 @@ defmodule Shopify.Collect do defstruct [ :collection_id, :created_at, - :featured, :id, :position, :product_id, diff --git a/lib/shopify/resources/custom_collection.ex b/lib/shopify/resources/custom_collection.ex index 19a4e0c..95d4dcf 100644 --- a/lib/shopify/resources/custom_collection.ex +++ b/lib/shopify/resources/custom_collection.ex @@ -29,7 +29,8 @@ defmodule Shopify.CustomCollection do :sort_order, :template_suffix, :title, - :updated_at + :updated_at, + :collects ] @doc false diff --git a/lib/shopify/resources/customer.ex b/lib/shopify/resources/customer.ex index 6bb167b..ec8c4e5 100644 --- a/lib/shopify/resources/customer.ex +++ b/lib/shopify/resources/customer.ex @@ -22,6 +22,7 @@ defmodule Shopify.Customer do defstruct [ :accepts_marketing, + :accepts_marketing_updated_at, :addresses, :created_at, :currency, @@ -34,11 +35,14 @@ defmodule Shopify.Customer do :last_name, :last_order_id, :last_order_name, + :metafield, + :marketing_opt_in_level, :note, :orders_count, :state, :tags, :tax_exempt, + :tax_exemptions, :total_spent, :updated_at, :verified_email, diff --git a/lib/shopify/resources/customer_address.ex b/lib/shopify/resources/customer_address.ex index c53dbb6..cdda12c 100644 --- a/lib/shopify/resources/customer_address.ex +++ b/lib/shopify/resources/customer_address.ex @@ -23,6 +23,7 @@ defmodule Shopify.CustomerAddress do :company, :first_name, :last_name, + :name, :phone, :province, :country, @@ -30,9 +31,7 @@ defmodule Shopify.CustomerAddress do :name, :province_code, :country_code, - :country_name, - :id, - :default + :country_name ] @doc false diff --git a/lib/shopify/resources/discount_code.ex b/lib/shopify/resources/discount_code.ex index 5065189..38df6ab 100644 --- a/lib/shopify/resources/discount_code.ex +++ b/lib/shopify/resources/discount_code.ex @@ -4,8 +4,11 @@ defmodule Shopify.DiscountCode do @derive [Poison.Encoder] defstruct [ - :amount, :code, - :type - ] + :created_at, + :updated_at, + :id, + :price_rule_id, + :usage_count + ] end diff --git a/lib/shopify/resources/event.ex b/lib/shopify/resources/event.ex index d56552a..de3e428 100644 --- a/lib/shopify/resources/event.ex +++ b/lib/shopify/resources/event.ex @@ -15,7 +15,6 @@ defmodule Shopify.Event do :body, :created_at, :id, - :description, :path, :message, :subject_id, diff --git a/lib/shopify/resources/image.ex b/lib/shopify/resources/image.ex index 643e51d..741a868 100644 --- a/lib/shopify/resources/image.ex +++ b/lib/shopify/resources/image.ex @@ -25,7 +25,9 @@ defmodule Shopify.Image do :product_id, :src, :updated_at, - :variant_ids + :variant_ids, + :width, + :height ] @doc false diff --git a/lib/shopify/resources/inventory_item.ex b/lib/shopify/resources/inventory_item.ex index f63776f..c22c63f 100644 --- a/lib/shopify/resources/inventory_item.ex +++ b/lib/shopify/resources/inventory_item.ex @@ -14,6 +14,11 @@ defmodule Shopify.InventoryItem do :id, :sku, :cost, + :country_code_of_origin, + :country_harmonized_system_codes, + :harmonized_system_code, + :province_code_of_origin, + :requires_shipping, :tracked, :created_at, :updated_at diff --git a/lib/shopify/resources/price_rule.ex b/lib/shopify/resources/price_rule.ex index f414dd2..44f948a 100644 --- a/lib/shopify/resources/price_rule.ex +++ b/lib/shopify/resources/price_rule.ex @@ -19,6 +19,7 @@ defmodule Shopify.PriceRule do :customer_selection, :target_type, :target_selection, + :allocation_limit :allocation_method, :once_per_customer, :usage_limit, @@ -36,7 +37,8 @@ defmodule Shopify.PriceRule do :entitled_country_ids, :prerequisite_saved_search_ids, :prerequisite_customer_ids, - :discount_codes + :discount_codes, + :prerequisite_to_entitlement_quantity_ratio ] @doc false diff --git a/lib/shopify/resources/product.ex b/lib/shopify/resources/product.ex index 6aa7d3d..fde6dff 100644 --- a/lib/shopify/resources/product.ex +++ b/lib/shopify/resources/product.ex @@ -33,9 +33,6 @@ defmodule Shopify.Product do :tags, :template_suffix, :title, - :metafields, - :metafields_global_title_tag, - :metafields_global_description_tag, :updated_at, :variants, :vendor diff --git a/lib/shopify/resources/smart_collection.ex b/lib/shopify/resources/smart_collection.ex index 92216bf..ac74b70 100644 --- a/lib/shopify/resources/smart_collection.ex +++ b/lib/shopify/resources/smart_collection.ex @@ -14,7 +14,7 @@ defmodule Shopify.SmartCollection do ] alias Shopify.{ - CustomCollection + SmartCollection } defstruct [ @@ -30,12 +30,13 @@ defmodule Shopify.SmartCollection do :sort_order, :template_suffix, :title, - :updated_at + :updated_at, + :products_manually_sorted_count ] @doc false def empty_resource do - %CustomCollection{} + %SmartCollection{} end @doc false diff --git a/lib/shopify/resources/variant.ex b/lib/shopify/resources/variant.ex index 0a1fe96..da067c1 100644 --- a/lib/shopify/resources/variant.ex +++ b/lib/shopify/resources/variant.ex @@ -28,6 +28,7 @@ defmodule Shopify.Variant do :weight, :weight_unit, :id, + :image_id, :inventory_item_id, :inventory_management, :inventory_policy, @@ -36,11 +37,12 @@ defmodule Shopify.Variant do :option2, :option3, :position, + :presentment_prices, :price, :product_id, - :requires_shipping, :sku, :taxable, + :tax_code, :title, :updated_at ] diff --git a/lib/shopify/resources/webhook.ex b/lib/shopify/resources/webhook.ex index 67587fb..2674c7f 100644 --- a/lib/shopify/resources/webhook.ex +++ b/lib/shopify/resources/webhook.ex @@ -20,6 +20,7 @@ defmodule Shopify.Webhook do defstruct [ :address, + :api_version, :created_at, :fields, :format,