Skip to content

Commit

Permalink
Merge pull request #9 from graze/change-json-to-string
Browse files Browse the repository at this point in the history
Change json back to string
  • Loading branch information
amy-dicks authored Apr 12, 2024
2 parents 032a93a + 4f25524 commit de4518f
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion macros/get_collection_columns.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{"name": "id", "datatype": dbt.type_int()},
{"name": "published_at", "datatype": dbt.type_timestamp()},
{"name": "published_scope", "datatype": dbt.type_string()},
{"name": "rules", "datatype": "json"},
{"name": "rules", "datatype": dbt.type_string()},
{"name": "sort_order", "datatype": dbt.type_string()},
{"name": "title", "datatype": dbt.type_string()},
{"name": "updated_at", "datatype": dbt.type_timestamp()}
Expand Down
4 changes: 2 additions & 2 deletions macros/get_fulfillment_columns.sql
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
{"name": "status", "datatype": dbt.type_string()},
{"name": "tracking_company", "datatype": dbt.type_string()},
{"name": "tracking_number", "datatype": dbt.type_string()},
{"name": "tracking_numbers", "datatype": "json"},
{"name": "tracking_urls", "datatype": "json"},
{"name": "tracking_numbers", "datatype": dbt.type_string()},
{"name": "tracking_urls", "datatype": dbt.type_string()},
{"name": "updated_at", "datatype": dbt.type_timestamp()}
] %}

Expand Down
4 changes: 2 additions & 2 deletions macros/get_order_adjustment_columns.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
{"name": "order_id", "datatype": dbt.type_numeric()},
{"name": "refund_id", "datatype": dbt.type_numeric()},
{"name": "amount", "datatype": dbt.type_float()},
{"name": "amount_set", "datatype": "json"},
{"name": "amount_set", "datatype": dbt.type_string()},
{"name": "tax_amount", "datatype": dbt.type_float()},
{"name": "tax_amount_set", "datatype": "json"},
{"name": "tax_amount_set", "datatype": dbt.type_string()},
{"name": "kind", "datatype": dbt.type_string()},
{"name": "reason", "datatype": dbt.type_string()},
{"name": "_fivetran_synced", "datatype": dbt.type_timestamp()}
Expand Down
10 changes: 5 additions & 5 deletions macros/get_order_columns.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
{"name": "updated_at", "datatype": dbt.type_timestamp()},
{"name": "user_id", "datatype": dbt.type_numeric()},
{"name": "total_discounts", "datatype": dbt.type_float()},
{"name": "total_discounts_set", "datatype": "json"},
{"name": "total_discounts_set", "datatype": dbt.type_string()},
{"name": "total_line_items_price", "datatype": dbt.type_float()},
{"name": "total_line_items_price_set", "datatype": "json"},
{"name": "total_line_items_price_set", "datatype": dbt.type_string()},
{"name": "total_price", "datatype": dbt.type_float()},
{"name": "total_price_set", "datatype": "json"},
{"name": "total_tax_set", "datatype": "json"},
{"name": "total_price_set", "datatype": dbt.type_string()},
{"name": "total_tax_set", "datatype": dbt.type_string()},
{"name": "total_tax", "datatype": dbt.type_float()},
{"name": "source_name", "datatype": dbt.type_string()},
{"name": "subtotal_price", "datatype": dbt.type_float()},
Expand Down Expand Up @@ -53,7 +53,7 @@
{"name": "billing_address_zip", "datatype": dbt.type_string()},
{"name": "browser_ip", "datatype": dbt.type_string()},
{"name": "buyer_accepts_marketing", "datatype": "boolean"},
{"name": "total_shipping_price_set", "datatype": "json"},
{"name": "total_shipping_price_set", "datatype": dbt.type_string()},
{"name": "shipping_address_address_1", "datatype": dbt.type_string()},
{"name": "shipping_address_address_2", "datatype": dbt.type_string()},
{"name": "shipping_address_city", "datatype": dbt.type_string()},
Expand Down
6 changes: 3 additions & 3 deletions macros/get_order_line_columns.sql
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
{"name": "name", "datatype": dbt.type_string()},
{"name": "order_id", "datatype": dbt.type_numeric()},
{"name": "pre_tax_price", "datatype": dbt.type_float()},
{"name": "pre_tax_price_set", "datatype": "json"},
{"name": "pre_tax_price_set", "datatype": dbt.type_string()},
{"name": "price", "datatype": dbt.type_float()},
{"name": "price_set", "datatype": "json"},
{"name": "product_id", "datatype": dbt.type_numeric()},
Expand All @@ -22,12 +22,12 @@
{"name": "tax_code", "datatype": dbt.type_string()},
{"name": "title", "datatype": dbt.type_string()},
{"name": "total_discount", "datatype": dbt.type_float()},
{"name": "total_discount_set", "datatype": "json"},
{"name": "total_discount_set", "datatype": dbt.type_string()},
{"name": "variant_id", "datatype": dbt.type_numeric()},
{"name": "variant_title", "datatype": dbt.type_string()},
{"name": "variant_inventory_management", "datatype": dbt.type_string()},
{"name": "vendor", "datatype": dbt.type_string()},
{"name": "properties", "datatype": "json"}
{"name": "properties", "datatype": dbt.type_string()}
] %}

{{ fivetran_utils.add_pass_through_columns(columns, var('order_line_pass_through_columns')) }}
Expand Down
4 changes: 2 additions & 2 deletions macros/get_order_shipping_line_columns.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
{"name": "code", "datatype": dbt.type_string()},
{"name": "delivery_category", "datatype": dbt.type_string()},
{"name": "discounted_price", "datatype": dbt.type_float()},
{"name": "discounted_price_set", "datatype": "json"},
{"name": "discounted_price_set", "datatype": dbt.type_string()},
{"name": "id", "datatype": dbt.type_int()},
{"name": "order_id", "datatype": dbt.type_int()},
{"name": "phone", "datatype": dbt.type_string()},
{"name": "price", "datatype": dbt.type_float()},
{"name": "price_set", "datatype": "json"},
{"name": "price_set", "datatype": dbt.type_string()},
{"name": "requested_fulfillment_service_id", "datatype": dbt.type_string()},
{"name": "source", "datatype": dbt.type_string()},
{"name": "title", "datatype": dbt.type_string()}
Expand Down
2 changes: 1 addition & 1 deletion macros/get_order_shipping_tax_line_columns.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{"name": "index", "datatype": dbt.type_int()},
{"name": "order_shipping_line_id", "datatype": dbt.type_int()},
{"name": "price", "datatype": dbt.type_float()},
{"name": "price_set", "datatype": "json"},
{"name": "price_set", "datatype": dbt.type_string()},
{"name": "rate", "datatype": dbt.type_float()},
{"name": "title", "datatype": dbt.type_string()}
] %}
Expand Down
2 changes: 1 addition & 1 deletion macros/get_product_image_columns.sql
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
{"name": "product_id", "datatype": dbt.type_int()},
{"name": "src", "datatype": dbt.type_string()},
{"name": "updated_at", "datatype": dbt.type_timestamp()},
{"name": "variant_ids", "datatype": "json"},
{"name": "variant_ids", "datatype": dbt.type_string()},
{"name": "width", "datatype": dbt.type_int()}
] %}

Expand Down
2 changes: 1 addition & 1 deletion macros/get_refund_columns.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{"name": "order_id", "datatype": dbt.type_numeric()},
{"name": "processed_at", "datatype": dbt.type_timestamp()},
{"name": "restock", "datatype": "boolean"},
{"name": "total_duties_set", "datatype": "json"},
{"name": "total_duties_set", "datatype": dbt.type_string()},
{"name": "user_id", "datatype": dbt.type_numeric()}
] %}

Expand Down
2 changes: 1 addition & 1 deletion macros/get_transaction_columns.sql
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
{"name": "payment_credit_card_number", "datatype": dbt.type_string()},
{"name": "payment_credit_card_company", "datatype": dbt.type_string()},
{"name": "kind", "datatype": dbt.type_string()},
{"name": "receipt", "datatype": "json"},
{"name": "receipt", "datatype": dbt.type_string()},
{"name": "currency_exchange_id", "datatype": dbt.type_numeric()},
{"name": "currency_exchange_adjustment", "datatype": dbt.type_numeric()},
{"name": "currency_exchange_original_amount", "datatype": dbt.type_numeric()},
Expand Down

0 comments on commit de4518f

Please sign in to comment.