Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion lib/shopify/resources/collect.ex
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ defmodule Shopify.Collect do
defstruct [
:collection_id,
:created_at,
:featured,
:id,
:position,
:product_id,
Expand Down
3 changes: 2 additions & 1 deletion lib/shopify/resources/custom_collection.ex
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ defmodule Shopify.CustomCollection do
:sort_order,
:template_suffix,
:title,
:updated_at
:updated_at,
:collects
]

@doc false
Expand Down
4 changes: 4 additions & 0 deletions lib/shopify/resources/customer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ defmodule Shopify.Customer do

defstruct [
:accepts_marketing,
:accepts_marketing_updated_at,
:addresses,
:created_at,
:currency,
Expand All @@ -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,
Expand Down
5 changes: 2 additions & 3 deletions lib/shopify/resources/customer_address.ex
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,15 @@ defmodule Shopify.CustomerAddress do
:company,
:first_name,
:last_name,
:name,
:phone,
:province,
:country,
:zip,
:name,
:province_code,
:country_code,
:country_name,
:id,
:default
:country_name
]

@doc false
Expand Down
9 changes: 6 additions & 3 deletions lib/shopify/resources/discount_code.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 0 additions & 1 deletion lib/shopify/resources/event.ex
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ defmodule Shopify.Event do
:body,
:created_at,
:id,
:description,
:path,
:message,
:subject_id,
Expand Down
4 changes: 3 additions & 1 deletion lib/shopify/resources/image.ex
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ defmodule Shopify.Image do
:product_id,
:src,
:updated_at,
:variant_ids
:variant_ids,
:width,
:height
]

@doc false
Expand Down
5 changes: 5 additions & 0 deletions lib/shopify/resources/inventory_item.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion lib/shopify/resources/price_rule.ex
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ defmodule Shopify.PriceRule do
:customer_selection,
:target_type,
:target_selection,
:allocation_limit
:allocation_method,
:once_per_customer,
:usage_limit,
Expand All @@ -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
Expand Down
3 changes: 0 additions & 3 deletions lib/shopify/resources/product.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 4 additions & 3 deletions lib/shopify/resources/smart_collection.ex
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ defmodule Shopify.SmartCollection do
]

alias Shopify.{
CustomCollection
SmartCollection
}

defstruct [
Expand All @@ -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
Expand Down
4 changes: 3 additions & 1 deletion lib/shopify/resources/variant.ex
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ defmodule Shopify.Variant do
:weight,
:weight_unit,
:id,
:image_id,
:inventory_item_id,
:inventory_management,
:inventory_policy,
Expand All @@ -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
]
Expand Down
1 change: 1 addition & 0 deletions lib/shopify/resources/webhook.ex
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ defmodule Shopify.Webhook do

defstruct [
:address,
:api_version,
:created_at,
:fields,
:format,
Expand Down