diff --git a/airbyte-config/init/src/main/resources/config/STANDARD_SOURCE_DEFINITION/9da77001-af33-4bcd-be46-6252bf9342b9.json b/airbyte-config/init/src/main/resources/config/STANDARD_SOURCE_DEFINITION/9da77001-af33-4bcd-be46-6252bf9342b9.json index ebab47df47e5d..47f5212192824 100644 --- a/airbyte-config/init/src/main/resources/config/STANDARD_SOURCE_DEFINITION/9da77001-af33-4bcd-be46-6252bf9342b9.json +++ b/airbyte-config/init/src/main/resources/config/STANDARD_SOURCE_DEFINITION/9da77001-af33-4bcd-be46-6252bf9342b9.json @@ -2,6 +2,6 @@ "sourceDefinitionId": "9da77001-af33-4bcd-be46-6252bf9342b9", "name": "Shopify", "dockerRepository": "airbyte/source-shopify", - "dockerImageTag": "0.1.3", + "dockerImageTag": "0.1.4", "documentationUrl": "https://docs.airbyte.io/integrations/sources/shopify" } diff --git a/airbyte-config/init/src/main/resources/seed/source_definitions.yaml b/airbyte-config/init/src/main/resources/seed/source_definitions.yaml index 6a75ce8fdb2e9..c940199038a7c 100644 --- a/airbyte-config/init/src/main/resources/seed/source_definitions.yaml +++ b/airbyte-config/init/src/main/resources/seed/source_definitions.yaml @@ -118,7 +118,7 @@ - sourceDefinitionId: 9da77001-af33-4bcd-be46-6252bf9342b9 name: Shopify dockerRepository: airbyte/source-shopify - dockerImageTag: 0.1.3 + dockerImageTag: 0.1.4 documentationUrl: https://docs.airbyte.io/integrations/sources/shopify - sourceDefinitionId: 9845d17a-45f1-4070-8a60-50914b1c8e2b name: HTTP Request diff --git a/airbyte-integrations/connectors/source-shopify/CHANGELOG.md b/airbyte-integrations/connectors/source-shopify/CHANGELOG.md new file mode 100644 index 0000000000000..f5ade60dd22e5 --- /dev/null +++ b/airbyte-integrations/connectors/source-shopify/CHANGELOG.md @@ -0,0 +1,7 @@ +# Shopify Source CHANGELOG + +| Date | Released Version | Notes | +| :--- | :--- | :--- | +| `2021-06-08` | `0.1.4` | `Added Order Risks Stream` | +| `2021-06-07` | `0.1.3` | `Initial Python CDK Airbyte Source Shopify Release` | + diff --git a/airbyte-integrations/connectors/source-shopify/Dockerfile b/airbyte-integrations/connectors/source-shopify/Dockerfile index a8dada68fc4aa..87012f7d2e7e0 100644 --- a/airbyte-integrations/connectors/source-shopify/Dockerfile +++ b/airbyte-integrations/connectors/source-shopify/Dockerfile @@ -11,5 +11,5 @@ RUN pip install . ENTRYPOINT ["python", "/airbyte/integration_code/main.py"] -LABEL io.airbyte.version=0.1.3 +LABEL io.airbyte.version=0.1.4 LABEL io.airbyte.name=airbyte/source-shopify diff --git a/airbyte-integrations/connectors/source-shopify/acceptance-test-config.yml b/airbyte-integrations/connectors/source-shopify/acceptance-test-config.yml index 0c24d46d141b8..225937171f2c3 100644 --- a/airbyte-integrations/connectors/source-shopify/acceptance-test-config.yml +++ b/airbyte-integrations/connectors/source-shopify/acceptance-test-config.yml @@ -17,7 +17,7 @@ tests: incremental: - config_path: "secrets/config.json" configured_catalog_path: "integration_tests/configured_catalog.json" - state_path: "integration_tests/abnormal_state.json" + future_state_path: "integration_tests/abnormal_state.json" cursor_paths: charges: [ "id" ] full_refresh: diff --git a/airbyte-integrations/connectors/source-shopify/integration_tests/abnormal_state.json b/airbyte-integrations/connectors/source-shopify/integration_tests/abnormal_state.json index ba9b0f851c1d9..3d51ab8784982 100644 --- a/airbyte-integrations/connectors/source-shopify/integration_tests/abnormal_state.json +++ b/airbyte-integrations/connectors/source-shopify/integration_tests/abnormal_state.json @@ -25,5 +25,8 @@ }, "abandoned_checkouts": { "id": 14254866366622 + }, + "order_risks": { + "id": 5933004390558 } } diff --git a/airbyte-integrations/connectors/source-shopify/integration_tests/configured_catalog.json b/airbyte-integrations/connectors/source-shopify/integration_tests/configured_catalog.json index 265e43f66eec7..6e4c7194eac20 100644 --- a/airbyte-integrations/connectors/source-shopify/integration_tests/configured_catalog.json +++ b/airbyte-integrations/connectors/source-shopify/integration_tests/configured_catalog.json @@ -4,7 +4,7 @@ "stream": { "name": "customers", "json_schema": { - "type": "object", + "type": ["null", "object"], "properties": { "last_order_name": { "type": ["null", "string"] @@ -212,1584 +212,1429 @@ "name": "orders", "json_schema": { "properties": { - "presentment_currency": { - "type": ["null", "string"] - }, - "subtotal_price_set": {}, - "total_discounts_set": {}, - "total_line_items_price_set": {}, - "total_price_set": {}, - "total_shipping_price_set": {}, - "total_tax_set": {}, - "total_price": { - "type": ["null", "number"], - "multipleOf": 1e-10 - }, - "line_items": { - "items": { - "properties": { - "applied_discounts": {}, - "total_discount_set": {}, - "pre_tax_price_set": {}, - "price_set": {}, - "grams": { - "type": ["null", "integer"] - }, - "compare_at_price": { - "type": ["null", "string"] - }, - "destination_location_id": { - "type": ["null", "integer"] - }, - "key": { - "type": ["null", "string"] - }, - "line_price": { - "type": ["null", "string"] - }, - "origin_location_id": { - "type": ["null", "integer"] - }, - "applied_discount": { - "type": ["null", "integer"] - }, - "fulfillable_quantity": { - "type": ["null", "integer"] - }, - "variant_title": { - "type": ["null", "string"] - }, - "properties": { - "anyOf": [ - { - "items": { - "properties": { - "name": { - "type": ["null", "string"] - }, - "value": { - "type": ["null", "string"] - } - }, - "type": ["null", "object"] - }, - "type": ["null", "array"] - }, - { - "properties": {}, - "type": ["null", "object"] - } - ] - }, - "tax_code": { - "type": ["null", "string"] - }, - "discount_allocations": { - "items": { - "properties": { - "discount_application_index": { - "type": ["null", "integer"] - }, - "amount_set": {}, - "amount": { - "type": ["null", "number"] - } - }, - "type": ["null", "object"] - }, - "type": ["null", "array"] - }, - "admin_graphql_api_id": { - "type": ["null", "string"] - }, - "pre_tax_price": { - "type": ["null", "number"] - }, - "sku": { - "type": ["null", "string"] - }, - "product_exists": { - "type": ["null", "boolean"] - }, - "total_discount": { - "type": ["null", "number"], - "multipleOf": 1e-10 - }, - "name": { - "type": ["null", "string"] - }, - "fulfillment_status": { - "type": ["null", "string"] - }, - "gift_card": { - "type": ["null", "boolean"] - }, - "id": { - "type": ["null", "integer", "string"] - }, - "taxable": { - "type": ["null", "boolean"] - }, - "vendor": { - "type": ["null", "string"] - }, - "tax_lines": { - "items": { - "properties": { - "price_set": {}, - "price": { - "type": ["null", "number"], - "multipleOf": 1e-10 - }, - "title": { - "type": ["null", "string"] - }, - "rate": { - "type": ["null", "number"], - "multipleOf": 1e-10 - }, - "compare_at": { - "type": ["null", "string"] - }, - "position": { - "type": ["null", "integer"] - }, - "source": { - "type": ["null", "string"] - }, - "zone": { - "type": ["null", "string"] - } - }, - "type": ["null", "object"] - }, - "type": ["null", "array"] - }, - "origin_location": { - "properties": { - "country_code": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "address1": { - "type": ["null", "string"] - }, - "city": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "integer"] - }, - "address2": { - "type": ["null", "string"] - }, - "province_code": { - "type": ["null", "string"] - }, - "zip": { - "type": ["null", "string"] - } - }, - "type": ["null", "object"] - }, - "price": { - "type": ["null", "number"], - "multipleOf": 1e-10 - }, - "requires_shipping": { - "type": ["null", "boolean"] - }, - "fulfillment_service": { - "type": ["null", "string"] - }, - "variant_inventory_management": { - "type": ["null", "string"] - }, - "title": { - "type": ["null", "string"] - }, - "destination_location": { - "properties": { - "country_code": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "address1": { - "type": ["null", "string"] - }, - "city": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "integer"] - }, - "address2": { - "type": ["null", "string"] - }, - "province_code": { - "type": ["null", "string"] - }, - "zip": { - "type": ["null", "string"] - } - }, - "type": ["null", "object"] - }, - "quantity": { - "type": ["null", "integer"] - }, - "product_id": { - "type": ["null", "integer"] - }, - "variant_id": { - "type": ["null", "integer"] - } - }, - "type": ["null", "object"] - }, - "type": ["null", "array"] + "id": { + "type": ["null", "integer"] }, - "processing_method": { + "admin_graphql_api_id": { "type": ["null", "string"] }, - "order_number": { + "app_id": { "type": ["null", "integer"] }, - "confirmed": { - "type": ["null", "boolean"] + "browser_ip": { + "type": ["null", "string"] }, - "total_discounts": { - "type": ["null", "number"], - "multipleOf": 1e-10 + "buyer_accepts_marketing": { + "type": ["null", "boolean"] }, - "total_line_items_price": { - "type": ["null", "number"], - "multipleOf": 1e-10 + "cancel_reason": { + "type": ["null", "string"] }, - "order_adjustments": { - "items": { - "properties": { - "order_id": { - "type": ["null", "integer"] - }, - "tax_amount": { - "type": ["null", "number"], - "multipleOf": 1e-10 - }, - "refund_id": { - "type": ["null", "integer"] - }, - "amount": { - "type": ["null", "number"], - "multipleOf": 1e-10 - }, - "kind": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "integer"] - }, - "reason": { - "type": ["null", "string"] - } - }, - "type": ["null", "object"] - }, - "type": ["null", "array"] + "cancelled_at": { + "type": ["null", "string"], + "format": "date-time" }, - "shipping_lines": { - "items": { - "properties": { - "tax_lines": { - "items": { - "properties": { - "price_set": {}, - "price": { - "type": ["null", "number"], - "multipleOf": 1e-10 - }, - "title": { - "type": ["null", "string"] - }, - "rate": { - "type": ["null", "number"], - "multipleOf": 1e-10 - }, - "compare_at": { - "type": ["null", "string"] - }, - "position": { - "type": ["null", "integer"] - }, - "source": { - "type": ["null", "string"] - }, - "zone": { - "type": ["null", "string"] - } - }, - "type": ["null", "object"] - }, - "type": ["null", "array"] - }, - "phone": { - "type": ["null", "string"] - }, - "discounted_price_set": {}, - "price_set": {}, - "price": { - "type": ["null", "number"], - "multipleOf": 1e-10 - }, - "title": { - "type": ["null", "string"] - }, - "discount_allocations": { - "items": { - "properties": { - "discount_application_index": { - "type": ["null", "integer"] - }, - "amount": { - "type": ["null", "number"] - } - }, - "type": ["null", "object"] - }, - "type": ["null", "array"] - }, - "delivery_category": { - "type": ["null", "string"] - }, - "discounted_price": { - "type": ["null", "number"] - }, - "code": { - "type": ["null", "string"] - }, - "requested_fulfillment_service_id": { - "type": ["null", "string"] - }, - "carrier_identifier": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "integer"] - }, - "source": { - "type": ["null", "string"] - } + "cart_token": { + "type": ["null", "string"] + }, + "checkout_id": { + "type": ["null", "integer"] + }, + "checkout_token": { + "type": ["null", "string"] + }, + "client_details": { + "type": ["null", "object"], + "properties": { + "accept_language": { + "type": ["null", "string"] }, - "type": ["null", "object"] - }, - "type": ["null", "array"] + "browser_height": { + "type": ["null", "integer"] + }, + "browser_ip": { + "type": ["null", "string"] + }, + "browser_width": { + "type": ["null", "integer"] + }, + "session_hash": { + "type": ["null", "string"] + }, + "user_agent": { + "type": ["null", "string"] + } + } }, - "admin_graphql_api_id": { + "closed_at": { "type": ["null", "string"] }, - "device_id": { - "type": ["null", "integer"] + "confirmed": { + "type": ["null", "boolean"] }, - "cancel_reason": { + "contact_email": { "type": ["null", "string"] }, - "currency": { + "created_at": { "type": ["null", "string"] }, - "payment_gateway_names": { - "items": { - "type": ["null", "string"] - }, - "type": ["null", "array"] + "currency": { + "type": ["null", "string"] }, - "source_identifier": { + "current_subtotal_price": { "type": ["null", "string"] }, - "id": { - "type": ["null", "integer"] + "current_subtotal_price_set": { + "type": ["null", "object"], + "properties": { + "shop_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] + }, + "currency_code": { + "type": ["null", "string"] + } + } + }, + "presentment_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] + }, + "currency_code": { + "type": ["null", "string"] + } + } + } + } }, - "processed_at": { - "type": ["null", "string"], - "format": "date-time" + "current_total_discounts": { + "type": ["null", "string"] }, - "referring_site": { + "current_total_discounts_set": { + "type": ["null", "object"], + "properties": { + "shop_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] + }, + "currency_code": { + "type": ["null", "string"] + } + } + }, + "presentment_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] + }, + "currency_code": { + "type": ["null", "string"] + } + } + } + } + }, + "current_total_duties_set": { "type": ["null", "string"] }, - "contact_email": { + "current_total_price": { "type": ["null", "string"] }, - "location_id": { - "type": ["null", "integer"] + "current_total_price_set": { + "type": ["null", "object"], + "properties": { + "shop_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] + }, + "currency_code": { + "type": ["null", "string"] + } + } + }, + "presentment_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] + }, + "currency_code": { + "type": ["null", "string"] + } + } + } + } }, - "fulfillments": { - "items": { - "properties": { - "location_id": { - "type": ["null", "integer"] - }, - "receipt": { - "type": ["null", "object"], - "properties": { - "testcase": { - "type": ["null", "boolean"] - }, - "authorization": { - "type": ["null", "string"] - } + "current_total_tax": { + "type": ["null", "string"] + }, + "current_total_tax_set": { + "type": ["null", "object"], + "properties": { + "shop_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] + }, + "currency_code": { + "type": ["null", "string"] } - }, - "tracking_number": { + } + }, + "presentment_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] + }, + "currency_code": { + "type": ["null", "string"] + } + } + } + } + }, + "customer_locale": { + "type": ["null", "string"] + }, + "device_id": { + "type": ["null", "string"] + }, + "discount_codes": { + "type": ["null", "array"] + }, + "email": { + "type": ["null", "string"] + }, + "financial_status": { + "type": ["null", "string"] + }, + "fulfillment_status": { + "type": ["null", "string"] + }, + "gateway": { + "type": ["null", "string"] + }, + "landing_site": { + "type": ["null", "string"] + }, + "landing_site_ref": { + "type": ["null", "string"] + }, + "location_id": { + "type": ["null", "integer"] + }, + "name": { + "type": ["null", "string"] + }, + "note": { + "type": ["null", "string"] + }, + "note_attributes": { + "type": ["null", "array"], + "items": { + "type": ["null", "object"], + "properties": { + "name": { "type": ["null", "string"] }, - "created_at": { - "type": ["null", "string"], - "format": "date-time" + "value": { + "type": ["null", "string"] + } + } + } + }, + "number": { + "type": ["null", "integer"] + }, + "order_number": { + "type": ["null", "integer"] + }, + "order_status_url": { + "type": ["null", "string"] + }, + "original_total_duties_set": { + "type": ["null", "string"] + }, + "payment_gateway_names": { + "type": ["null", "array"], + "items": { + "type": ["null", "string"] + } + }, + "phone": { + "type": ["null", "string"] + }, + "presentment_currency": { + "type": ["null", "string"] + }, + "processed_at": { + "type": ["null", "string"] + }, + "processing_method": { + "type": ["null", "string"] + }, + "reference": { + "type": ["null", "string"] + }, + "referring_site": { + "type": ["null", "string"] + }, + "source_identifier": { + "type": ["null", "string"] + }, + "source_name": { + "type": ["null", "string"] + }, + "source_url": { + "type": ["null", "string"] + }, + "subtotal_price": { + "type": ["null", "string"] + }, + "subtotal_price_set": { + "type": ["null", "object"], + "properties": { + "shop_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] + }, + "currency_code": { + "type": ["null", "string"] + } + } + }, + "presentment_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] + }, + "currency_code": { + "type": ["null", "string"] + } + } + } + } + }, + "tags": { + "type": ["null", "string"] + }, + "tax_lines": { + "type": ["null", "array"], + "items": { + "type": ["null", "object"], + "properties": { + "price": { + "type": ["null", "string"] }, - "shipment_status": { + "rate": { + "type": ["null", "number"] + }, + "title": { "type": ["null", "string"] }, - "line_items": { - "items": { - "properties": { - "applied_discounts": {}, - "total_discount_set": {}, - "pre_tax_price_set": {}, - "price_set": {}, - "grams": { - "type": ["null", "integer"] - }, - "compare_at_price": { - "type": ["null", "string"] - }, - "destination_location_id": { - "type": ["null", "integer"] - }, - "key": { - "type": ["null", "string"] - }, - "line_price": { - "type": ["null", "string"] - }, - "origin_location_id": { - "type": ["null", "integer"] - }, - "applied_discount": { - "type": ["null", "integer"] - }, - "fulfillable_quantity": { - "type": ["null", "integer"] - }, - "variant_title": { - "type": ["null", "string"] - }, + "price_set": { + "type": ["null", "object"], + "properties": { + "shop_money": { + "type": ["null", "object"], "properties": { - "anyOf": [ - { - "items": { - "properties": { - "name": { - "type": ["null", "string"] - }, - "value": { - "type": ["null", "string"] - } - }, - "type": ["null", "object"] - }, - "type": ["null", "array"] - }, - { - "properties": {}, - "type": ["null", "object"] - } - ] - }, - "tax_code": { - "type": ["null", "string"] - }, - "discount_allocations": { - "items": { - "properties": { - "discount_application_index": { - "type": ["null", "integer"] - }, - "amount_set": {}, - "amount": { - "type": ["null", "number"] - } - }, - "type": ["null", "object"] - }, - "type": ["null", "array"] - }, - "admin_graphql_api_id": { - "type": ["null", "string"] - }, - "pre_tax_price": { - "type": ["null", "number"] - }, - "sku": { - "type": ["null", "string"] - }, - "product_exists": { - "type": ["null", "boolean"] - }, - "total_discount": { - "type": ["null", "number"], - "multipleOf": 1e-10 - }, - "name": { - "type": ["null", "string"] - }, - "fulfillment_status": { - "type": ["null", "string"] - }, - "gift_card": { - "type": ["null", "boolean"] - }, - "id": { - "type": ["null", "integer", "string"] - }, - "taxable": { - "type": ["null", "boolean"] - }, - "vendor": { - "type": ["null", "string"] - }, - "tax_lines": { - "items": { - "properties": { - "price_set": {}, - "price": { - "type": ["null", "number"], - "multipleOf": 1e-10 - }, - "title": { - "type": ["null", "string"] - }, - "rate": { - "type": ["null", "number"], - "multipleOf": 1e-10 - }, - "compare_at": { - "type": ["null", "string"] - }, - "position": { - "type": ["null", "integer"] - }, - "source": { - "type": ["null", "string"] - }, - "zone": { - "type": ["null", "string"] - } - }, - "type": ["null", "object"] + "amount": { + "type": ["null", "string"] }, - "type": ["null", "array"] - }, - "origin_location": { - "properties": { - "country_code": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "address1": { - "type": ["null", "string"] - }, - "city": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "integer"] - }, - "address2": { - "type": ["null", "string"] - }, - "province_code": { - "type": ["null", "string"] - }, - "zip": { - "type": ["null", "string"] - } - }, - "type": ["null", "object"] - }, - "price": { - "type": ["null", "number"], - "multipleOf": 1e-10 - }, - "requires_shipping": { - "type": ["null", "boolean"] - }, - "fulfillment_service": { - "type": ["null", "string"] - }, - "variant_inventory_management": { - "type": ["null", "string"] - }, - "title": { - "type": ["null", "string"] - }, - "destination_location": { - "properties": { - "country_code": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "address1": { - "type": ["null", "string"] - }, - "city": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "integer"] - }, - "address2": { - "type": ["null", "string"] - }, - "province_code": { - "type": ["null", "string"] - }, - "zip": { - "type": ["null", "string"] - } - }, - "type": ["null", "object"] - }, - "quantity": { - "type": ["null", "integer"] - }, - "product_id": { - "type": ["null", "integer"] - }, - "variant_id": { - "type": ["null", "integer"] + "currency_code": { + "type": ["null", "string"] + } } }, - "type": ["null", "object"] - }, - "type": ["null", "array"] - }, - "tracking_url": { - "type": ["null", "string"] - }, - "service": { - "type": ["null", "string"] - }, - "status": { - "type": ["null", "string"] - }, - "admin_graphql_api_id": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "tracking_urls": { - "items": { + "presentment_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] + }, + "currency_code": { + "type": ["null", "string"] + } + } + } + } + } + } + } + }, + "taxes_included": { + "type": ["null", "boolean"] + }, + "test": { + "type": ["null", "boolean"] + }, + "token": { + "type": ["null", "string"] + }, + "total_discounts": { + "type": ["null", "string"] + }, + "total_discounts_set": { + "type": ["null", "object"], + "properties": { + "shop_money": { + "type": ["null", "object"], + "properties": { + "amount": { "type": ["null", "string"] }, - "type": ["null", "array"] - }, - "tracking_numbers": { - "items": { + "currency_code": { "type": ["null", "string"] - }, - "type": ["null", "array"] - }, - "id": { - "type": ["null", "integer"] - }, - "tracking_company": { - "type": ["null", "string"] - }, - "updated_at": { - "type": ["null", "string"], - "format": "date-time" + } } }, - "type": ["null", "object"] - }, - "type": ["null", "array"] - }, - "customer": { - "type": "object", - "properties": { - "last_order_name": { - "type": ["null", "string"] - }, - "currency": { - "type": ["null", "string"] - }, - "email": { - "type": ["null", "string"] - }, - "multipass_identifier": { - "type": ["null", "string"] - }, - "default_address": { + "presentment_money": { "type": ["null", "object"], "properties": { - "city": { + "amount": { "type": ["null", "string"] }, - "address1": { + "currency_code": { "type": ["null", "string"] - }, - "zip": { + } + } + } + } + }, + "total_line_items_price": { + "type": ["null", "string"] + }, + "total_line_items_price_set": { + "type": ["null", "object"], + "properties": { + "shop_money": { + "type": ["null", "object"], + "properties": { + "amount": { "type": ["null", "string"] }, - "id": { - "type": ["null", "integer"] - }, - "country_name": { + "currency_code": { "type": ["null", "string"] - }, - "province": { + } + } + }, + "presentment_money": { + "type": ["null", "object"], + "properties": { + "amount": { "type": ["null", "string"] }, - "phone": { + "currency_code": { "type": ["null", "string"] - }, - "country": { + } + } + } + } + }, + "total_outstanding": { + "type": ["null", "string"] + }, + "total_price": { + "type": ["null", "string"] + }, + "total_price_set": { + "type": ["null", "object"], + "properties": { + "shop_money": { + "type": ["null", "object"], + "properties": { + "amount": { "type": ["null", "string"] }, - "first_name": { + "currency_code": { "type": ["null", "string"] - }, - "customer_id": { - "type": ["null", "integer"] - }, - "default": { - "type": ["null", "boolean"] - }, - "last_name": { + } + } + }, + "presentment_money": { + "type": ["null", "object"], + "properties": { + "amount": { "type": ["null", "string"] }, - "country_code": { + "currency_code": { "type": ["null", "string"] - }, - "name": { + } + } + } + } + }, + "total_price_usd": { + "type": ["null", "string"] + }, + "total_shipping_price_set": { + "type": ["null", "object"], + "properties": { + "shop_money": { + "type": ["null", "object"], + "properties": { + "amount": { "type": ["null", "string"] }, - "province_code": { + "currency_code": { "type": ["null", "string"] - }, - "address2": { + } + } + }, + "presentment_money": { + "type": ["null", "object"], + "properties": { + "amount": { "type": ["null", "string"] }, - "company": { + "currency_code": { + "type": ["null", "string"] + } + } + } + } + }, + "total_tax": { + "type": ["null", "string"] + }, + "total_tax_set": { + "type": ["null", "object"], + "properties": { + "shop_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] + }, + "currency_code": { "type": ["null", "string"] } } }, - "orders_count": { - "type": ["null", "integer"] - }, - "state": { - "type": ["null", "string"] - }, - "verified_email": { - "type": ["null", "boolean"] + "presentment_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] + }, + "currency_code": { + "type": ["null", "string"] + } + } + } + } + }, + "total_tip_received": { + "type": ["null", "string"] + }, + "total_weight": { + "type": ["null", "integer"] + }, + "updated_at": { + "type": ["null", "string"] + }, + "user_id": { + "type": ["null", "string"] + }, + "billing_address": { + "type": ["null", "object"], + "properties": { + "first_name": { + "type": ["null", "string"] }, - "total_spent": { + "address1": { "type": ["null", "string"] }, - "last_order_id": { - "type": ["null", "integer"] + "phone": { + "type": ["null", "string"] }, - "first_name": { + "city": { "type": ["null", "string"] }, - "updated_at": { - "type": ["null", "string"], - "format": "date-time" + "zip": { + "type": ["null", "string"] }, - "note": { + "province": { "type": ["null", "string"] }, - "phone": { + "country": { "type": ["null", "string"] }, - "admin_graphql_api_id": { + "last_name": { "type": ["null", "string"] }, - "addresses": { - "type": ["null", "array"], - "items": { - "type": ["null", "object"], - "properties": { - "city": { - "type": ["null", "string"] - }, - "address1": { - "type": ["null", "string"] - }, - "zip": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "integer"] - }, - "country_name": { - "type": ["null", "string"] - }, - "province": { - "type": ["null", "string"] - }, - "phone": { - "type": ["null", "string"] - }, - "country": { - "type": ["null", "string"] - }, - "first_name": { - "type": ["null", "string"] - }, - "customer_id": { - "type": ["null", "integer"] - }, - "default": { - "type": ["null", "boolean"] - }, - "last_name": { - "type": ["null", "string"] - }, - "country_code": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "province_code": { - "type": ["null", "string"] - }, - "address2": { - "type": ["null", "string"] - }, - "company": { - "type": ["null", "string"] - } - } - } + "address2": { + "type": ["null", "string"] }, - "last_name": { + "company": { "type": ["null", "string"] }, - "tags": { + "latitude": { + "type": ["null", "number"] + }, + "longitude": { + "type": ["null", "number"] + }, + "name": { "type": ["null", "string"] }, - "tax_exempt": { - "type": ["null", "boolean"] + "country_code": { + "type": ["null", "string"] }, + "province_code": { + "type": ["null", "string"] + } + } + }, + "customer": { + "type": ["null", "object"], + "properties": { "id": { "type": ["null", "integer"] }, + "email": { + "type": ["null", "string"] + }, "accepts_marketing": { "type": ["null", "boolean"] }, - "accepts_marketing_updated_at": { - "anyOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "string" - }, - { - "type": "null" - } - ] - }, "created_at": { "type": ["null", "string"], "format": "date-time" - } - } - }, - "test": { - "type": ["null", "boolean"] - }, - "total_tax": { - "type": ["null", "number"], - "multipleOf": 1e-10 - }, - "payment_details": { - "properties": { - "avs_result_code": { - "type": ["null", "string"] }, - "credit_card_company": { - "type": ["null", "string"] + "updated_at": { + "type": ["null", "string"], + "format": "date-time" }, - "cvv_result_code": { + "first_name": { "type": ["null", "string"] }, - "credit_card_bin": { + "last_name": { "type": ["null", "string"] }, - "credit_card_number": { - "type": ["null", "string"] - } - }, - "type": ["null", "object"] - }, - "number": { - "type": ["null", "integer"] - }, - "email": { - "type": ["null", "string"] - }, - "source_name": { - "type": ["null", "string"] - }, - "landing_site_ref": { - "type": ["null", "string"] - }, - "shipping_address": { - "properties": { - "phone": { - "type": ["null", "string"] + "orders_count": { + "type": ["null", "integer"] }, - "country": { + "state": { "type": ["null", "string"] }, - "name": { + "total_spent": { "type": ["null", "string"] }, - "address1": { + "last_order_id": { + "type": ["null", "integer"] + }, + "note": { "type": ["null", "string"] }, - "longitude": { - "type": ["null", "number"] + "verified_email": { + "type": ["null", "boolean"] }, - "address2": { + "multipass_identifier": { "type": ["null", "string"] }, - "last_name": { - "type": ["null", "string"] + "tax_exempt": { + "type": ["null", "boolean"] }, - "first_name": { + "phone": { "type": ["null", "string"] }, - "province": { + "tags": { "type": ["null", "string"] }, - "city": { + "last_order_name": { "type": ["null", "string"] }, - "company": { + "currency": { "type": ["null", "string"] }, - "latitude": { - "type": ["null", "number"] - }, - "country_code": { + "accepts_marketing_updated_at": { "type": ["null", "string"] }, - "province_code": { + "marketing_opt_in_level": { "type": ["null", "string"] }, - "zip": { + "tax_exemptions": { + "type": ["null", "array"] + }, + "admin_graphql_api_id": { "type": ["null", "string"] + }, + "default_address": { + "type": ["null", "object"], + "properties": { + "id": { + "type": ["null", "integer"] + }, + "customer_id": { + "type": ["null", "integer"] + }, + "first_name": { + "type": ["null", "string"] + }, + "last_name": { + "type": ["null", "string"] + }, + "company": { + "type": ["null", "string"] + }, + "address1": { + "type": ["null", "string"] + }, + "address2": { + "type": ["null", "string"] + }, + "city": { + "type": ["null", "string"] + }, + "province": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "zip": { + "type": ["null", "string"] + }, + "phone": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "province_code": { + "type": ["null", "string"] + }, + "country_code": { + "type": ["null", "string"] + }, + "country_name": { + "type": ["null", "string"] + }, + "default": { + "type": ["null", "boolean"] + } + } + } + } + }, + "discount_applications": { + "type": ["null", "array"] + }, + "fulfillments": { + "type": ["null", "array"], + "items": { + "type": ["null", "object"], + "properties": { + "id": { + "type": ["null", "integer"] + }, + "admin_graphql_api_id": { + "type": ["null", "string"] + }, + "created_at": { + "type": ["null", "string"] + }, + "location_id": { + "type": ["null", "integer"] + }, + "name": { + "type": ["null", "string"] + }, + "order_id": { + "type": ["null", "integer"] + }, + "receipt": { + "type": ["null", "object"] + }, + "service": { + "type": ["null", "string"] + }, + "shipment_status": { + "type": ["null", "string"] + }, + "status": { + "type": ["null", "string"] + }, + "tracking_company": { + "type": ["null", "string"] + }, + "tracking_number": { + "type": ["null", "string"] + }, + "tracking_numbers": { + "type": ["null", "array"] + }, + "tracking_url": { + "type": ["null", "string"] + }, + "tracking_urls": { + "type": ["null", "array"] + }, + "updated_at": { + "type": ["null", "string"] + }, + "line_items": { + "type": ["null", "array"], + "items": { + "type": ["null", "object"], + "properties": { + "id": { + "type": ["null", "integer"] + }, + "admin_graphql_api_id": { + "type": ["null", "string"] + }, + "destination_location": { + "type": ["null", "object"], + "properties": { + "id": { + "type": ["null", "integer"] + }, + "country_code": { + "type": ["null", "string"] + }, + "province_code": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "address1": { + "type": ["null", "string"] + }, + "address2": { + "type": ["null", "string"] + }, + "city": { + "type": ["null", "string"] + }, + "zip": { + "type": ["null", "string"] + } + } + }, + "fulfillable_quantity": { + "type": ["null", "integer"] + }, + "fulfillment_service": { + "type": ["null", "string"] + }, + "fulfillment_status": { + "type": ["null", "string"] + }, + "gift_card": { + "type": ["null", "boolean"] + }, + "grams": { + "type": ["null", "integer"] + }, + "name": { + "type": ["null", "string"] + }, + "origin_location": { + "type": ["null", "object"], + "properties": { + "id": { + "type": ["null", "integer"] + }, + "country_code": { + "type": ["null", "string"] + }, + "province_code": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "address1": { + "type": ["null", "string"] + }, + "address2": { + "type": ["null", "string"] + }, + "city": { + "type": ["null", "string"] + }, + "zip": { + "type": ["null", "string"] + } + } + }, + "price": { + "type": ["null", "string"] + }, + "price_set": { + "type": ["null", "object"], + "properties": { + "shop_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] + }, + "currency_code": { + "type": ["null", "string"] + } + } + }, + "presentment_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] + }, + "currency_code": { + "type": ["null", "string"] + } + } + } + } + }, + "product_exists": { + "type": ["null", "boolean"] + }, + "product_id": { + "type": ["null", "integer"] + }, + "properties": { + "type": ["null", "array"] + }, + "quantity": { + "type": ["null", "integer"] + }, + "requires_shipping": { + "type": ["null", "boolean"] + }, + "sku": { + "type": ["null", "string"] + }, + "taxable": { + "type": ["null", "boolean"] + }, + "title": { + "type": ["null", "string"] + }, + "total_discount": { + "type": ["null", "string"] + }, + "total_discount_set": { + "type": ["null", "object"], + "properties": { + "shop_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] + }, + "currency_code": { + "type": ["null", "string"] + } + } + }, + "presentment_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] + }, + "currency_code": { + "type": ["null", "string"] + } + } + } + } + }, + "variant_id": { + "type": ["null", "integer"] + }, + "variant_inventory_management": { + "type": ["null", "string"] + }, + "variant_title": { + "type": ["null", "string"] + }, + "vendor": { + "type": ["null", "string"] + }, + "tax_lines": { + "type": ["null", "array"], + "items": { + "type": ["null", "object"], + "properties": { + "price": { + "type": ["null", "string"] + }, + "price_set": { + "type": ["null", "object"], + "properties": { + "shop_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] + }, + "currency_code": { + "type": ["null", "string"] + } + } + }, + "presentment_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] + }, + "currency_code": { + "type": ["null", "string"] + } + } + } + } + }, + "rate": { + "type": ["null", "number"] + }, + "title": { + "type": ["null", "string"] + } + } + } + }, + "duties": { + "type": ["null", "array"] + }, + "discount_allocations": { + "type": ["null", "array"] + } + } + } + } } - }, - "type": ["null", "object"] - }, - "total_price_usd": { - "type": ["null", "number"], - "multipleOf": 1e-10 - }, - "closed_at": { - "type": ["null", "string"], - "format": "date-time" + } }, - "discount_applications": { + "line_items": { + "type": ["null", "array"], "items": { + "type": ["null", "object"], "properties": { - "target_type": { - "type": ["null", "string"] + "id": { + "type": ["null", "integer"] }, - "code": { + "admin_graphql_api_id": { "type": ["null", "string"] }, - "description": { - "type": ["null", "string"] + "destination_location": { + "type": ["null", "object"], + "properties": { + "id": { + "type": ["null", "integer"] + }, + "country_code": { + "type": ["null", "string"] + }, + "province_code": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "address1": { + "type": ["null", "string"] + }, + "address2": { + "type": ["null", "string"] + }, + "city": { + "type": ["null", "string"] + }, + "zip": { + "type": ["null", "string"] + } + } }, - "type": { - "type": ["null", "string"] + "fulfillable_quantity": { + "type": ["null", "integer"] }, - "target_selection": { + "fulfillment_service": { "type": ["null", "string"] }, - "allocation_method": { + "fulfillment_status": { "type": ["null", "string"] }, - "title": { - "type": ["null", "string"] + "gift_card": { + "type": ["null", "boolean"] + }, + "grams": { + "type": ["null", "integer"] }, - "value_type": { + "name": { "type": ["null", "string"] }, - "value": { - "type": ["null", "number"] - } - }, - "type": ["null", "object"] - }, - "type": ["null", "array"] - }, - "name": { - "type": ["null", "string"] - }, - "note": { - "type": ["null", "string"] - }, - "user_id": { - "type": ["null", "integer"] - }, - "source_url": { - "type": ["null", "string"] - }, - "subtotal_price": { - "type": ["null", "number"], - "multipleOf": 1e-10 - }, - "billing_address": { - "properties": { - "phone": { - "type": ["null", "string"] - }, - "country": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "address1": { - "type": ["null", "string"] - }, - "longitude": { - "type": ["null", "number"] - }, - "address2": { - "type": ["null", "string"] - }, - "last_name": { - "type": ["null", "string"] - }, - "first_name": { - "type": ["null", "string"] - }, - "province": { - "type": ["null", "string"] - }, - "city": { - "type": ["null", "string"] - }, - "company": { - "type": ["null", "string"] - }, - "latitude": { - "type": ["null", "number"] - }, - "country_code": { - "type": ["null", "string"] - }, - "province_code": { - "type": ["null", "string"] - }, - "zip": { - "type": ["null", "string"] - } - }, - "type": ["null", "object"] - }, - "landing_site": { - "type": ["null", "string"] - }, - "taxes_included": { - "type": ["null", "boolean"] - }, - "token": { - "type": ["null", "string"] - }, - "app_id": { - "type": ["null", "integer"] - }, - "total_tip_received": { - "type": ["null", "string"] - }, - "browser_ip": { - "type": ["null", "string"] - }, - "discount_codes": { - "items": { - "properties": { - "code": { + "origin_location": { + "type": ["null", "object"], + "properties": { + "id": { + "type": ["null", "integer"] + }, + "country_code": { + "type": ["null", "string"] + }, + "province_code": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "address1": { + "type": ["null", "string"] + }, + "address2": { + "type": ["null", "string"] + }, + "city": { + "type": ["null", "string"] + }, + "zip": { + "type": ["null", "string"] + } + } + }, + "price": { "type": ["null", "string"] }, - "amount": { - "type": ["null", "number"], - "multipleOf": 1e-10 + "price_set": { + "type": ["null", "object"], + "properties": { + "shop_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] + }, + "currency_code": { + "type": ["null", "string"] + } + } + }, + "presentment_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] + }, + "currency_code": { + "type": ["null", "string"] + } + } + } + } }, - "type": { + "product_exists": { + "type": ["null", "boolean"] + }, + "product_id": { + "type": ["null", "integer"] + }, + "properties": { + "type": ["null", "array"] + }, + "quantity": { + "type": ["null", "integer"] + }, + "requires_shipping": { + "type": ["null", "boolean"] + }, + "sku": { "type": ["null", "string"] - } - }, - "type": ["null", "object"] - }, - "type": ["null", "array"] - }, - "tax_lines": { - "items": { - "properties": { - "price_set": {}, - "price": { - "type": ["null", "number"], - "multipleOf": 1e-10 + }, + "taxable": { + "type": ["null", "boolean"] }, "title": { "type": ["null", "string"] }, - "rate": { - "type": ["null", "number"], - "multipleOf": 1e-10 - }, - "compare_at": { + "total_discount": { "type": ["null", "string"] }, - "position": { + "total_discount_set": { + "type": ["null", "object"], + "properties": { + "shop_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] + }, + "currency_code": { + "type": ["null", "string"] + } + } + }, + "presentment_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] + }, + "currency_code": { + "type": ["null", "string"] + } + } + } + } + }, + "variant_id": { "type": ["null", "integer"] }, - "source": { + "variant_inventory_management": { "type": ["null", "string"] }, - "zone": { - "type": ["null", "string"] - } - }, - "type": ["null", "object"] - }, - "type": ["null", "array"] - }, - "phone": { - "type": ["null", "string"] - }, - "note_attributes": { - "items": { - "properties": { - "name": { + "variant_title": { "type": ["null", "string"] }, - "value": { - "type": ["null", "string"] - } - }, - "type": ["null", "object"] - }, - "type": ["null", "array"] - }, - "fulfillment_status": { - "type": ["null", "string"] - }, - "order_status_url": { - "type": ["null", "string"] - }, - "client_details": { - "properties": { - "session_hash": { - "type": ["null", "string"] - }, - "accept_language": { - "type": ["null", "string"] - }, - "browser_width": { - "type": ["null", "integer"] - }, - "user_agent": { - "type": ["null", "string"] - }, - "browser_ip": { - "type": ["null", "string"] - }, - "browser_height": { - "type": ["null", "integer"] - } - }, - "type": ["null", "object"] - }, - "buyer_accepts_marketing": { - "type": ["null", "boolean"] - }, - "checkout_token": { - "type": ["null", "string"] - }, - "tags": { - "type": ["null", "string"] - }, - "financial_status": { - "type": ["null", "string"] - }, - "customer_locale": { - "type": ["null", "string"] - }, - "checkout_id": { - "type": ["null", "integer"] - }, - "total_weight": { - "type": ["null", "integer"] - }, - "gateway": { - "type": ["null", "string"] - }, - "cart_token": { - "type": ["null", "string"] - }, - "cancelled_at": { - "type": ["null", "string"], - "format": "date-time" - }, - "refunds": { - "items": { - "properties": { - "admin_graphql_api_id": { + "vendor": { "type": ["null", "string"] }, - "refund_line_items": { + "tax_lines": { + "type": ["null", "array"], "items": { + "type": ["null", "object"], "properties": { - "line_item": { + "price": { + "type": ["null", "string"] + }, + "price_set": { + "type": ["null", "object"], "properties": { - "applied_discounts": {}, - "total_discount_set": {}, - "pre_tax_price_set": {}, - "price_set": {}, - "grams": { - "type": ["null", "integer"] - }, - "compare_at_price": { - "type": ["null", "string"] - }, - "destination_location_id": { - "type": ["null", "integer"] - }, - "key": { - "type": ["null", "string"] - }, - "line_price": { - "type": ["null", "string"] - }, - "origin_location_id": { - "type": ["null", "integer"] - }, - "applied_discount": { - "type": ["null", "integer"] - }, - "fulfillable_quantity": { - "type": ["null", "integer"] - }, - "variant_title": { - "type": ["null", "string"] - }, - "properties": { - "anyOf": [ - { - "items": { - "properties": { - "name": { - "type": ["null", "string"] - }, - "value": { - "type": ["null", "string"] - } - }, - "type": ["null", "object"] - }, - "type": ["null", "array"] - }, - { - "properties": {}, - "type": ["null", "object"] - } - ] - }, - "tax_code": { - "type": ["null", "string"] - }, - "discount_allocations": { - "items": { - "properties": { - "discount_application_index": { - "type": ["null", "integer"] - }, - "amount_set": {}, - "amount": { - "type": ["null", "number"] - } - }, - "type": ["null", "object"] - }, - "type": ["null", "array"] - }, - "admin_graphql_api_id": { - "type": ["null", "string"] - }, - "pre_tax_price": { - "type": ["null", "number"] - }, - "sku": { - "type": ["null", "string"] - }, - "product_exists": { - "type": ["null", "boolean"] - }, - "total_discount": { - "type": ["null", "number"], - "multipleOf": 1e-10 - }, - "name": { - "type": ["null", "string"] - }, - "fulfillment_status": { - "type": ["null", "string"] - }, - "gift_card": { - "type": ["null", "boolean"] - }, - "id": { - "type": ["null", "integer", "string"] - }, - "taxable": { - "type": ["null", "boolean"] - }, - "vendor": { - "type": ["null", "string"] - }, - "tax_lines": { - "items": { - "properties": { - "price_set": {}, - "price": { - "type": ["null", "number"], - "multipleOf": 1e-10 - }, - "title": { - "type": ["null", "string"] - }, - "rate": { - "type": ["null", "number"], - "multipleOf": 1e-10 - }, - "compare_at": { - "type": ["null", "string"] - }, - "position": { - "type": ["null", "integer"] - }, - "source": { - "type": ["null", "string"] - }, - "zone": { - "type": ["null", "string"] - } - }, - "type": ["null", "object"] - }, - "type": ["null", "array"] - }, - "origin_location": { + "shop_money": { + "type": ["null", "object"], "properties": { - "country_code": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "address1": { - "type": ["null", "string"] - }, - "city": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "integer"] - }, - "address2": { - "type": ["null", "string"] - }, - "province_code": { + "amount": { "type": ["null", "string"] }, - "zip": { + "currency_code": { "type": ["null", "string"] } - }, - "type": ["null", "object"] - }, - "price": { - "type": ["null", "number"], - "multipleOf": 1e-10 - }, - "requires_shipping": { - "type": ["null", "boolean"] - }, - "fulfillment_service": { - "type": ["null", "string"] - }, - "variant_inventory_management": { - "type": ["null", "string"] - }, - "title": { - "type": ["null", "string"] + } }, - "destination_location": { + "presentment_money": { + "type": ["null", "object"], "properties": { - "country_code": { - "type": ["null", "string"] - }, - "name": { + "amount": { "type": ["null", "string"] }, - "address1": { - "type": ["null", "string"] - }, - "city": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "integer"] - }, - "address2": { - "type": ["null", "string"] - }, - "province_code": { - "type": ["null", "string"] - }, - "zip": { + "currency_code": { "type": ["null", "string"] } - }, - "type": ["null", "object"] - }, - "quantity": { - "type": ["null", "integer"] - }, - "product_id": { - "type": ["null", "integer"] - }, - "variant_id": { - "type": ["null", "integer"] + } } - }, - "type": ["null", "object"] - }, - "location_id": { - "type": ["null", "integer"] - }, - "line_item_id": { - "type": ["null", "integer"] - }, - "quantity": { - "type": ["null", "integer"] - }, - "id": { - "type": ["null", "integer"] + } }, - "total_tax": { + "rate": { "type": ["null", "number"] }, - "restock_type": { + "title": { "type": ["null", "string"] - }, - "subtotal": { - "type": ["null", "number"] } - }, - "type": ["null", "object"] - }, + } + } + }, + "duties": { "type": ["null", "array"] }, - "restock": { - "type": ["null", "boolean"] + "discount_allocations": { + "type": ["null", "array"] + } + } + } + }, + "payment_details": { + "type": ["null", "object"], + "properties": { + "credit_card_bin": { + "type": ["null", "string"] + }, + "avs_result_code": { + "type": ["null", "string"] + }, + "cvv_result_code": { + "type": ["null", "string"] + }, + "credit_card_number": { + "type": ["null", "string"] + }, + "credit_card_company": { + "type": ["null", "string"] + } + } + }, + "refunds": { + "type": ["null", "array"] + }, + "shipping_address": { + "type": ["null", "object"], + "properties": { + "first_name": { + "type": ["null", "string"] + }, + "address1": { + "type": ["null", "string"] + }, + "phone": { + "type": ["null", "string"] + }, + "city": { + "type": ["null", "string"] + }, + "zip": { + "type": ["null", "string"] + }, + "province": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "last_name": { + "type": ["null", "string"] + }, + "address2": { + "type": ["null", "string"] + }, + "company": { + "type": ["null", "string"] + }, + "latitude": { + "type": ["null", "number"] + }, + "longitude": { + "type": ["null", "number"] + }, + "name": { + "type": ["null", "string"] + }, + "country_code": { + "type": ["null", "string"] + }, + "province_code": { + "type": ["null", "string"] + } + } + }, + "shipping_lines": { + "type": ["null", "array"], + "items": { + "type": ["null", "object"], + "properties": { + "id": { + "type": ["null", "integer"] }, - "note": { + "carrier_identifier": { "type": ["null", "string"] }, - "id": { - "type": ["null", "integer"] + "code": { + "type": ["null", "string"] }, - "user_id": { - "type": ["null", "integer"] + "delivery_category": { + "type": ["null", "string"] }, - "created_at": { - "type": ["null", "string"], - "format": "date-time" + "discounted_price": { + "type": ["null", "string"] }, - "processed_at": { - "type": ["null", "string"], - "format": "date-time" + "discounted_price_set": { + "type": ["null", "object"], + "properties": { + "shop_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] + }, + "currency_code": { + "type": ["null", "string"] + } + } + }, + "presentment_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] + }, + "currency_code": { + "type": ["null", "string"] + } + } + } + } }, - "order_adjustments": { - "items": { - "properties": { - "order_id": { - "type": ["null", "integer"] - }, - "tax_amount": { - "type": ["null", "number"], - "multipleOf": 1e-10 - }, - "refund_id": { - "type": ["null", "integer"] - }, - "amount": { - "type": ["null", "number"], - "multipleOf": 1e-10 - }, - "kind": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "integer"] - }, - "reason": { - "type": ["null", "string"] + "phone": { + "type": ["null", "string"] + }, + "price": { + "type": ["null", "string"] + }, + "price_set": { + "type": ["null", "object"], + "properties": { + "shop_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] + }, + "currency_code": { + "type": ["null", "string"] + } } }, - "type": ["null", "object"] - }, + "presentment_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] + }, + "currency_code": { + "type": ["null", "string"] + } + } + } + } + }, + "requested_fulfillment_service_id": { + "type": ["null", "string"] + }, + "source": { + "type": ["null", "string"] + }, + "title": { + "type": ["null", "string"] + }, + "tax_lines": { + "type": ["null", "array"] + }, + "discount_allocations": { "type": ["null", "array"] } - }, - "type": ["null", "object"] - }, - "type": ["null", "array"] - }, - "created_at": { - "type": ["null", "string"], - "format": "date-time" - }, - "updated_at": { - "type": ["null", "string"], - "format": "date-time" - }, - "reference": { - "type": ["null", "string"] + } + } } - }, - "type": "object" + } }, "supported_sync_modes": ["incremental", "full_refresh"], "source_defined_cursor": true, @@ -3400,6 +3245,52 @@ "cursor_field": ["id"], "destination_sync_mode": "append" }, + { + "stream": { + "name": "order_risks", + "json_schema": { + "type": "object", + "properties": { + "id": { + "type": ["null", "integer"] + }, + "order_id": { + "type": ["null", "integer"] + }, + "checkout_id": { + "type": ["null", "integer"] + }, + "source": { + "type": ["null", "string"] + }, + "score": { + "type": ["null", "string"] + }, + "recommendation": { + "type": ["null", "string"] + }, + "display": { + "type": ["null", "boolean"] + }, + "cause_cancel": { + "type": ["null", "boolean"] + }, + "message": { + "type": ["null", "string"] + }, + "merchant_message": { + "type": ["null", "string"] + } + } + }, + "supported_sync_modes": ["incremental", "full_refresh"], + "source_defined_cursor": true, + "default_cursor_field": ["id"] + }, + "sync_mode": "incremental", + "cursor_field": ["id"], + "destination_sync_mode": "append" + }, { "stream": { "name": "transactions", diff --git a/airbyte-integrations/connectors/source-shopify/integration_tests/state.json b/airbyte-integrations/connectors/source-shopify/integration_tests/state.json index ba9b0f851c1d9..3d51ab8784982 100644 --- a/airbyte-integrations/connectors/source-shopify/integration_tests/state.json +++ b/airbyte-integrations/connectors/source-shopify/integration_tests/state.json @@ -25,5 +25,8 @@ }, "abandoned_checkouts": { "id": 14254866366622 + }, + "order_risks": { + "id": 5933004390558 } } diff --git a/airbyte-integrations/connectors/source-shopify/source_shopify/schemas/order_risks.json b/airbyte-integrations/connectors/source-shopify/source_shopify/schemas/order_risks.json new file mode 100644 index 0000000000000..61cfde09f4649 --- /dev/null +++ b/airbyte-integrations/connectors/source-shopify/source_shopify/schemas/order_risks.json @@ -0,0 +1,35 @@ +{ + "type": "object", + "properties": { + "id": { + "type": ["null", "integer"] + }, + "order_id": { + "type": ["null", "integer"] + }, + "checkout_id": { + "type": ["null", "integer"] + }, + "source": { + "type": ["null", "string"] + }, + "score": { + "type": ["null", "string"] + }, + "recommendation": { + "type": ["null", "string"] + }, + "display": { + "type": ["null", "boolean"] + }, + "cause_cancel": { + "type": ["null", "boolean"] + }, + "message": { + "type": ["null", "string"] + }, + "merchant_message": { + "type": ["null", "string"] + } + } +} diff --git a/airbyte-integrations/connectors/source-shopify/source_shopify/schemas/orders.json b/airbyte-integrations/connectors/source-shopify/source_shopify/schemas/orders.json index f7cbc9f00cec5..a6703945f518b 100644 --- a/airbyte-integrations/connectors/source-shopify/source_shopify/schemas/orders.json +++ b/airbyte-integrations/connectors/source-shopify/source_shopify/schemas/orders.json @@ -1,980 +1,571 @@ { "properties": { - "presentment_currency": { + "id": { + "type": ["null", "integer"] + }, + "admin_graphql_api_id": { "type": ["null", "string"] }, - "subtotal_price_set": {}, - "total_discounts_set": {}, - "total_line_items_price_set": {}, - "total_price_set": {}, - "total_shipping_price_set": {}, - "total_tax_set": {}, - "total_price": { - "type": ["null", "number"], - "multipleOf": 1e-10 + "app_id": { + "type": ["null", "integer"] }, - "line_items": { - "items": { - "properties": { - "applied_discounts": {}, - "total_discount_set": {}, - "pre_tax_price_set": {}, - "price_set": {}, - "grams": { - "type": ["null", "integer"] - }, - "compare_at_price": { - "type": ["null", "string"] - }, - "destination_location_id": { - "type": ["null", "integer"] - }, - "key": { - "type": ["null", "string"] - }, - "line_price": { - "type": ["null", "string"] - }, - "origin_location_id": { - "type": ["null", "integer"] - }, - "applied_discount": { - "type": ["null", "integer"] - }, - "fulfillable_quantity": { - "type": ["null", "integer"] - }, - "variant_title": { - "type": ["null", "string"] - }, - "properties": { - "anyOf": [ - { - "items": { - "properties": { - "name": { - "type": ["null", "string"] - }, - "value": { - "type": ["null", "string"] - } - }, - "type": ["null", "object"] - }, - "type": ["null", "array"] - }, - { - "properties": {}, - "type": ["null", "object"] - } - ] - }, - "tax_code": { - "type": ["null", "string"] - }, - "discount_allocations": { - "items": { - "properties": { - "discount_application_index": { - "type": ["null", "integer"] - }, - "amount_set": {}, - "amount": { - "type": ["null", "number"] - } - }, - "type": ["null", "object"] - }, - "type": ["null", "array"] - }, - "admin_graphql_api_id": { - "type": ["null", "string"] - }, - "pre_tax_price": { - "type": ["null", "number"] - }, - "sku": { - "type": ["null", "string"] - }, - "product_exists": { - "type": ["null", "boolean"] - }, - "total_discount": { - "type": ["null", "number"], - "multipleOf": 1e-10 - }, - "name": { - "type": ["null", "string"] - }, - "fulfillment_status": { - "type": ["null", "string"] - }, - "gift_card": { - "type": ["null", "boolean"] - }, - "id": { - "type": ["null", "integer", "string"] - }, - "taxable": { - "type": ["null", "boolean"] - }, - "vendor": { - "type": ["null", "string"] - }, - "tax_lines": { - "items": { - "properties": { - "price_set": {}, - "price": { - "type": ["null", "number"], - "multipleOf": 1e-10 - }, - "title": { - "type": ["null", "string"] - }, - "rate": { - "type": ["null", "number"], - "multipleOf": 1e-10 - }, - "compare_at": { - "type": ["null", "string"] - }, - "position": { - "type": ["null", "integer"] - }, - "source": { - "type": ["null", "string"] - }, - "zone": { - "type": ["null", "string"] - } - }, - "type": ["null", "object"] - }, - "type": ["null", "array"] - }, - "origin_location": { - "properties": { - "country_code": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "address1": { - "type": ["null", "string"] - }, - "city": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "integer"] - }, - "address2": { - "type": ["null", "string"] - }, - "province_code": { - "type": ["null", "string"] - }, - "zip": { - "type": ["null", "string"] - } - }, - "type": ["null", "object"] - }, - "price": { - "type": ["null", "number"], - "multipleOf": 1e-10 - }, - "requires_shipping": { - "type": ["null", "boolean"] - }, - "fulfillment_service": { - "type": ["null", "string"] - }, - "variant_inventory_management": { - "type": ["null", "string"] - }, - "title": { - "type": ["null", "string"] - }, - "destination_location": { - "properties": { - "country_code": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "address1": { - "type": ["null", "string"] - }, - "city": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "integer"] - }, - "address2": { - "type": ["null", "string"] - }, - "province_code": { - "type": ["null", "string"] - }, - "zip": { - "type": ["null", "string"] - } - }, - "type": ["null", "object"] - }, - "quantity": { - "type": ["null", "integer"] - }, - "product_id": { - "type": ["null", "integer"] - }, - "variant_id": { - "type": ["null", "integer"] - } - }, - "type": ["null", "object"] - }, - "type": ["null", "array"] + "browser_ip": { + "type": ["null", "string"] }, - "processing_method": { + "buyer_accepts_marketing": { + "type": ["null", "boolean"] + }, + "cancel_reason": { "type": ["null", "string"] }, - "order_number": { + "cancelled_at": { + "type": ["null", "string"], + "format": "date-time" + }, + "cart_token": { + "type": ["null", "string"] + }, + "checkout_id": { "type": ["null", "integer"] }, + "checkout_token": { + "type": ["null", "string"] + }, + "client_details": { + "type": ["null", "object"], + "properties": { + "accept_language": { + "type": ["null", "string"] + }, + "browser_height": { + "type": ["null", "integer"] + }, + "browser_ip": { + "type": ["null", "string"] + }, + "browser_width": { + "type": ["null", "integer"] + }, + "session_hash": { + "type": ["null", "string"] + }, + "user_agent": { + "type": ["null", "string"] + } + } + }, + "closed_at": { + "type": ["null", "string"] + }, "confirmed": { "type": ["null", "boolean"] }, - "total_discounts": { - "type": ["null", "number"], - "multipleOf": 1e-10 + "contact_email": { + "type": ["null", "string"] }, - "total_line_items_price": { - "type": ["null", "number"], - "multipleOf": 1e-10 + "created_at": { + "type": ["null", "string"] }, - "order_adjustments": { - "items": { - "properties": { - "order_id": { - "type": ["null", "integer"] - }, - "tax_amount": { - "type": ["null", "number"], - "multipleOf": 1e-10 - }, - "refund_id": { - "type": ["null", "integer"] - }, - "amount": { - "type": ["null", "number"], - "multipleOf": 1e-10 - }, - "kind": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "integer"] - }, - "reason": { - "type": ["null", "string"] + "currency": { + "type": ["null", "string"] + }, + "current_subtotal_price": { + "type": ["null", "string"] + }, + "current_subtotal_price_set": { + "type": ["null", "object"], + "properties": { + "shop_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] + }, + "currency_code": { + "type": ["null", "string"] + } } }, - "type": ["null", "object"] - }, - "type": ["null", "array"] + "presentment_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] + }, + "currency_code": { + "type": ["null", "string"] + } + } + } + } }, - "shipping_lines": { - "items": { - "properties": { - "tax_lines": { - "items": { - "properties": { - "price_set": {}, - "price": { - "type": ["null", "number"], - "multipleOf": 1e-10 - }, - "title": { - "type": ["null", "string"] - }, - "rate": { - "type": ["null", "number"], - "multipleOf": 1e-10 - }, - "compare_at": { - "type": ["null", "string"] - }, - "position": { - "type": ["null", "integer"] - }, - "source": { - "type": ["null", "string"] - }, - "zone": { - "type": ["null", "string"] - } - }, - "type": ["null", "object"] + "current_total_discounts": { + "type": ["null", "string"] + }, + "current_total_discounts_set": { + "type": ["null", "object"], + "properties": { + "shop_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] }, - "type": ["null", "array"] - }, - "phone": { - "type": ["null", "string"] - }, - "discounted_price_set": {}, - "price_set": {}, - "price": { - "type": ["null", "number"], - "multipleOf": 1e-10 - }, - "title": { - "type": ["null", "string"] - }, - "discount_allocations": { - "items": { - "properties": { - "discount_application_index": { - "type": ["null", "integer"] - }, - "amount": { - "type": ["null", "number"] - } - }, - "type": ["null", "object"] + "currency_code": { + "type": ["null", "string"] + } + } + }, + "presentment_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] }, - "type": ["null", "array"] - }, - "delivery_category": { - "type": ["null", "string"] - }, - "discounted_price": { - "type": ["null", "number"] - }, - "code": { - "type": ["null", "string"] - }, - "requested_fulfillment_service_id": { - "type": ["null", "string"] - }, - "carrier_identifier": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "integer"] - }, - "source": { - "type": ["null", "string"] + "currency_code": { + "type": ["null", "string"] + } + } + } + } + }, + "current_total_duties_set": { + "type": ["null", "string"] + }, + "current_total_price": { + "type": ["null", "string"] + }, + "current_total_price_set": { + "type": ["null", "object"], + "properties": { + "shop_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] + }, + "currency_code": { + "type": ["null", "string"] + } } }, - "type": ["null", "object"] - }, - "type": ["null", "array"] + "presentment_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] + }, + "currency_code": { + "type": ["null", "string"] + } + } + } + } }, - "admin_graphql_api_id": { + "current_total_tax": { "type": ["null", "string"] }, - "device_id": { - "type": ["null", "integer"] + "current_total_tax_set": { + "type": ["null", "object"], + "properties": { + "shop_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] + }, + "currency_code": { + "type": ["null", "string"] + } + } + }, + "presentment_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] + }, + "currency_code": { + "type": ["null", "string"] + } + } + } + } }, - "cancel_reason": { + "customer_locale": { "type": ["null", "string"] }, - "currency": { + "device_id": { "type": ["null", "string"] }, - "payment_gateway_names": { - "items": { - "type": ["null", "string"] - }, + "discount_codes": { "type": ["null", "array"] }, - "source_identifier": { + "email": { "type": ["null", "string"] }, - "id": { - "type": ["null", "integer"] + "financial_status": { + "type": ["null", "string"] }, - "processed_at": { - "type": ["null", "string"], - "format": "date-time" + "fulfillment_status": { + "type": ["null", "string"] }, - "referring_site": { + "gateway": { "type": ["null", "string"] }, - "contact_email": { + "landing_site": { + "type": ["null", "string"] + }, + "landing_site_ref": { "type": ["null", "string"] }, "location_id": { "type": ["null", "integer"] }, - "fulfillments": { - "items": { - "properties": { - "location_id": { - "type": ["null", "integer"] - }, - "receipt": { - "type": ["null", "object"], - "properties": { - "testcase": { - "type": ["null", "boolean"] - }, - "authorization": { - "type": ["null", "string"] - } - } - }, - "tracking_number": { - "type": ["null", "string"] - }, - "created_at": { - "type": ["null", "string"], - "format": "date-time" - }, - "shipment_status": { - "type": ["null", "string"] - }, - "line_items": { - "items": { - "properties": { - "applied_discounts": {}, - "total_discount_set": {}, - "pre_tax_price_set": {}, - "price_set": {}, - "grams": { - "type": ["null", "integer"] - }, - "compare_at_price": { - "type": ["null", "string"] - }, - "destination_location_id": { - "type": ["null", "integer"] - }, - "key": { - "type": ["null", "string"] - }, - "line_price": { - "type": ["null", "string"] - }, - "origin_location_id": { - "type": ["null", "integer"] - }, - "applied_discount": { - "type": ["null", "integer"] - }, - "fulfillable_quantity": { - "type": ["null", "integer"] - }, - "variant_title": { - "type": ["null", "string"] - }, - "properties": { - "anyOf": [ - { - "items": { - "properties": { - "name": { - "type": ["null", "string"] - }, - "value": { - "type": ["null", "string"] - } - }, - "type": ["null", "object"] - }, - "type": ["null", "array"] - }, - { - "properties": {}, - "type": ["null", "object"] - } - ] - }, - "tax_code": { - "type": ["null", "string"] - }, - "discount_allocations": { - "items": { - "properties": { - "discount_application_index": { - "type": ["null", "integer"] - }, - "amount_set": {}, - "amount": { - "type": ["null", "number"] - } - }, - "type": ["null", "object"] - }, - "type": ["null", "array"] - }, - "admin_graphql_api_id": { - "type": ["null", "string"] - }, - "pre_tax_price": { - "type": ["null", "number"] - }, - "sku": { - "type": ["null", "string"] - }, - "product_exists": { - "type": ["null", "boolean"] - }, - "total_discount": { - "type": ["null", "number"], - "multipleOf": 1e-10 - }, - "name": { - "type": ["null", "string"] - }, - "fulfillment_status": { - "type": ["null", "string"] - }, - "gift_card": { - "type": ["null", "boolean"] - }, - "id": { - "type": ["null", "integer", "string"] - }, - "taxable": { - "type": ["null", "boolean"] - }, - "vendor": { - "type": ["null", "string"] - }, - "tax_lines": { - "items": { - "properties": { - "price_set": {}, - "price": { - "type": ["null", "number"], - "multipleOf": 1e-10 - }, - "title": { - "type": ["null", "string"] - }, - "rate": { - "type": ["null", "number"], - "multipleOf": 1e-10 - }, - "compare_at": { - "type": ["null", "string"] - }, - "position": { - "type": ["null", "integer"] - }, - "source": { - "type": ["null", "string"] - }, - "zone": { - "type": ["null", "string"] - } - }, - "type": ["null", "object"] - }, - "type": ["null", "array"] - }, - "origin_location": { - "properties": { - "country_code": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "address1": { - "type": ["null", "string"] - }, - "city": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "integer"] - }, - "address2": { - "type": ["null", "string"] - }, - "province_code": { - "type": ["null", "string"] - }, - "zip": { - "type": ["null", "string"] - } - }, - "type": ["null", "object"] - }, - "price": { - "type": ["null", "number"], - "multipleOf": 1e-10 - }, - "requires_shipping": { - "type": ["null", "boolean"] - }, - "fulfillment_service": { - "type": ["null", "string"] - }, - "variant_inventory_management": { - "type": ["null", "string"] - }, - "title": { - "type": ["null", "string"] - }, - "destination_location": { - "properties": { - "country_code": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "address1": { - "type": ["null", "string"] - }, - "city": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "integer"] - }, - "address2": { - "type": ["null", "string"] - }, - "province_code": { - "type": ["null", "string"] - }, - "zip": { - "type": ["null", "string"] - } - }, - "type": ["null", "object"] - }, - "quantity": { - "type": ["null", "integer"] - }, - "product_id": { - "type": ["null", "integer"] - }, - "variant_id": { - "type": ["null", "integer"] - } - }, - "type": ["null", "object"] - }, - "type": ["null", "array"] - }, - "tracking_url": { - "type": ["null", "string"] - }, - "service": { - "type": ["null", "string"] - }, - "status": { - "type": ["null", "string"] - }, - "admin_graphql_api_id": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "tracking_urls": { - "items": { - "type": ["null", "string"] - }, - "type": ["null", "array"] - }, - "tracking_numbers": { - "items": { - "type": ["null", "string"] - }, - "type": ["null", "array"] - }, - "id": { - "type": ["null", "integer"] - }, - "tracking_company": { + "name": { + "type": ["null", "string"] + }, + "note": { + "type": ["null", "string"] + }, + "note_attributes": { + "type": ["null", "array"], + "items": { + "type": ["null", "object"], + "properties": { + "name": { "type": ["null", "string"] }, - "updated_at": { - "type": ["null", "string"], - "format": "date-time" + "value": { + "type": ["null", "string"] } - }, - "type": ["null", "object"] - }, - "type": ["null", "array"] + } + } }, - "customer": { - "type": "object", + "number": { + "type": ["null", "integer"] + }, + "order_number": { + "type": ["null", "integer"] + }, + "order_status_url": { + "type": ["null", "string"] + }, + "original_total_duties_set": { + "type": ["null", "string"] + }, + "payment_gateway_names": { + "type": ["null", "array"], + "items": { + "type": ["null", "string"] + } + }, + "phone": { + "type": ["null", "string"] + }, + "presentment_currency": { + "type": ["null", "string"] + }, + "processed_at": { + "type": ["null", "string"] + }, + "processing_method": { + "type": ["null", "string"] + }, + "reference": { + "type": ["null", "string"] + }, + "referring_site": { + "type": ["null", "string"] + }, + "source_identifier": { + "type": ["null", "string"] + }, + "source_name": { + "type": ["null", "string"] + }, + "source_url": { + "type": ["null", "string"] + }, + "subtotal_price": { + "type": ["null", "string"] + }, + "subtotal_price_set": { + "type": ["null", "object"], "properties": { - "last_order_name": { - "type": ["null", "string"] - }, - "currency": { - "type": ["null", "string"] - }, - "email": { - "type": ["null", "string"] - }, - "multipass_identifier": { - "type": ["null", "string"] - }, - "default_address": { + "shop_money": { "type": ["null", "object"], "properties": { - "city": { - "type": ["null", "string"] - }, - "address1": { - "type": ["null", "string"] - }, - "zip": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "integer"] - }, - "country_name": { - "type": ["null", "string"] - }, - "province": { + "amount": { "type": ["null", "string"] }, - "phone": { + "currency_code": { "type": ["null", "string"] - }, - "country": { + } + } + }, + "presentment_money": { + "type": ["null", "object"], + "properties": { + "amount": { "type": ["null", "string"] }, - "first_name": { + "currency_code": { "type": ["null", "string"] - }, - "customer_id": { - "type": ["null", "integer"] - }, - "default": { - "type": ["null", "boolean"] - }, - "last_name": { + } + } + } + } + }, + "tags": { + "type": ["null", "string"] + }, + "tax_lines": { + "type": ["null", "array"], + "items": { + "type": ["null", "object"], + "properties": { + "price": { + "type": ["null", "string"] + }, + "rate": { + "type": ["null", "number"] + }, + "title": { + "type": ["null", "string"] + }, + "price_set": { + "type": ["null", "object"], + "properties": { + "shop_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] + }, + "currency_code": { + "type": ["null", "string"] + } + } + }, + "presentment_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] + }, + "currency_code": { + "type": ["null", "string"] + } + } + } + } + } + } + } + }, + "taxes_included": { + "type": ["null", "boolean"] + }, + "test": { + "type": ["null", "boolean"] + }, + "token": { + "type": ["null", "string"] + }, + "total_discounts": { + "type": ["null", "string"] + }, + "total_discounts_set": { + "type": ["null", "object"], + "properties": { + "shop_money": { + "type": ["null", "object"], + "properties": { + "amount": { "type": ["null", "string"] }, - "country_code": { + "currency_code": { "type": ["null", "string"] - }, - "name": { + } + } + }, + "presentment_money": { + "type": ["null", "object"], + "properties": { + "amount": { "type": ["null", "string"] }, - "province_code": { + "currency_code": { "type": ["null", "string"] - }, - "address2": { + } + } + } + } + }, + "total_line_items_price": { + "type": ["null", "string"] + }, + "total_line_items_price_set": { + "type": ["null", "object"], + "properties": { + "shop_money": { + "type": ["null", "object"], + "properties": { + "amount": { "type": ["null", "string"] }, - "company": { + "currency_code": { "type": ["null", "string"] } } }, - "orders_count": { - "type": ["null", "integer"] - }, - "state": { - "type": ["null", "string"] - }, - "verified_email": { - "type": ["null", "boolean"] - }, - "total_spent": { - "type": ["null", "string"] - }, - "last_order_id": { - "type": ["null", "integer"] - }, - "first_name": { - "type": ["null", "string"] - }, - "updated_at": { - "type": ["null", "string"], - "format": "date-time" - }, - "note": { - "type": ["null", "string"] - }, - "phone": { - "type": ["null", "string"] - }, - "admin_graphql_api_id": { - "type": ["null", "string"] - }, - "addresses": { - "type": ["null", "array"], - "items": { - "type": ["null", "object"], - "properties": { - "city": { - "type": ["null", "string"] - }, - "address1": { - "type": ["null", "string"] - }, - "zip": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "integer"] - }, - "country_name": { - "type": ["null", "string"] - }, - "province": { - "type": ["null", "string"] - }, - "phone": { - "type": ["null", "string"] - }, - "country": { - "type": ["null", "string"] - }, - "first_name": { - "type": ["null", "string"] - }, - "customer_id": { - "type": ["null", "integer"] - }, - "default": { - "type": ["null", "boolean"] - }, - "last_name": { - "type": ["null", "string"] - }, - "country_code": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "province_code": { - "type": ["null", "string"] - }, - "address2": { - "type": ["null", "string"] - }, - "company": { - "type": ["null", "string"] - } + "presentment_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] + }, + "currency_code": { + "type": ["null", "string"] + } + } + } + } + }, + "total_outstanding": { + "type": ["null", "string"] + }, + "total_price": { + "type": ["null", "string"] + }, + "total_price_set": { + "type": ["null", "object"], + "properties": { + "shop_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] + }, + "currency_code": { + "type": ["null", "string"] } } }, - "last_name": { - "type": ["null", "string"] - }, - "tags": { - "type": ["null", "string"] - }, - "tax_exempt": { - "type": ["null", "boolean"] - }, - "id": { - "type": ["null", "integer"] - }, - "accepts_marketing": { - "type": ["null", "boolean"] - }, - "accepts_marketing_updated_at": { - "anyOf": [ - { - "type": "string", - "format": "date-time" + "presentment_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] }, - { - "type": "string" + "currency_code": { + "type": ["null", "string"] + } + } + } + } + }, + "total_price_usd": { + "type": ["null", "string"] + }, + "total_shipping_price_set": { + "type": ["null", "object"], + "properties": { + "shop_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] }, - { - "type": "null" + "currency_code": { + "type": ["null", "string"] } - ] + } }, - "created_at": { - "type": ["null", "string"], - "format": "date-time" + "presentment_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] + }, + "currency_code": { + "type": ["null", "string"] + } + } } } }, - "test": { - "type": ["null", "boolean"] - }, "total_tax": { - "type": ["null", "number"], - "multipleOf": 1e-10 + "type": ["null", "string"] }, - "payment_details": { + "total_tax_set": { + "type": ["null", "object"], "properties": { - "avs_result_code": { - "type": ["null", "string"] - }, - "credit_card_company": { - "type": ["null", "string"] - }, - "cvv_result_code": { - "type": ["null", "string"] - }, - "credit_card_bin": { - "type": ["null", "string"] + "shop_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] + }, + "currency_code": { + "type": ["null", "string"] + } + } }, - "credit_card_number": { - "type": ["null", "string"] + "presentment_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] + }, + "currency_code": { + "type": ["null", "string"] + } + } } - }, - "type": ["null", "object"] - }, - "number": { - "type": ["null", "integer"] + } }, - "email": { + "total_tip_received": { "type": ["null", "string"] }, - "source_name": { + "total_weight": { + "type": ["null", "integer"] + }, + "updated_at": { "type": ["null", "string"] }, - "landing_site_ref": { + "user_id": { "type": ["null", "string"] }, - "shipping_address": { + "billing_address": { + "type": ["null", "object"], "properties": { - "phone": { + "first_name": { "type": ["null", "string"] }, - "country": { + "address1": { "type": ["null", "string"] }, - "name": { + "phone": { "type": ["null", "string"] }, - "address1": { + "city": { "type": ["null", "string"] }, - "longitude": { - "type": ["null", "number"] - }, - "address2": { + "zip": { "type": ["null", "string"] }, - "last_name": { + "province": { "type": ["null", "string"] }, - "first_name": { + "country": { "type": ["null", "string"] }, - "province": { + "last_name": { "type": ["null", "string"] }, - "city": { + "address2": { "type": ["null", "string"] }, "company": { @@ -983,599 +574,853 @@ "latitude": { "type": ["null", "number"] }, - "country_code": { + "longitude": { + "type": ["null", "number"] + }, + "name": { "type": ["null", "string"] }, - "province_code": { + "country_code": { "type": ["null", "string"] }, - "zip": { + "province_code": { "type": ["null", "string"] } - }, - "type": ["null", "object"] - }, - "total_price_usd": { - "type": ["null", "number"], - "multipleOf": 1e-10 - }, - "closed_at": { - "type": ["null", "string"], - "format": "date-time" - }, - "discount_applications": { - "items": { - "properties": { - "target_type": { - "type": ["null", "string"] - }, - "code": { - "type": ["null", "string"] - }, - "description": { - "type": ["null", "string"] - }, - "type": { - "type": ["null", "string"] - }, - "target_selection": { - "type": ["null", "string"] - }, - "allocation_method": { - "type": ["null", "string"] - }, - "title": { - "type": ["null", "string"] - }, - "value_type": { - "type": ["null", "string"] - }, - "value": { - "type": ["null", "number"] - } - }, - "type": ["null", "object"] - }, - "type": ["null", "array"] - }, - "name": { - "type": ["null", "string"] - }, - "note": { - "type": ["null", "string"] - }, - "user_id": { - "type": ["null", "integer"] - }, - "source_url": { - "type": ["null", "string"] - }, - "subtotal_price": { - "type": ["null", "number"], - "multipleOf": 1e-10 + } }, - "billing_address": { + "customer": { + "type": ["null", "object"], "properties": { - "phone": { - "type": ["null", "string"] + "id": { + "type": ["null", "integer"] }, - "country": { + "email": { "type": ["null", "string"] }, - "name": { + "accepts_marketing": { + "type": ["null", "boolean"] + }, + "created_at": { + "type": ["null", "string"], + "format": "date-time" + }, + "updated_at": { + "type": ["null", "string"], + "format": "date-time" + }, + "first_name": { "type": ["null", "string"] }, - "address1": { + "last_name": { "type": ["null", "string"] }, - "longitude": { - "type": ["null", "number"] + "orders_count": { + "type": ["null", "integer"] }, - "address2": { + "state": { "type": ["null", "string"] }, - "last_name": { + "total_spent": { "type": ["null", "string"] }, - "first_name": { + "last_order_id": { + "type": ["null", "integer"] + }, + "note": { "type": ["null", "string"] }, - "province": { + "verified_email": { + "type": ["null", "boolean"] + }, + "multipass_identifier": { "type": ["null", "string"] }, - "city": { + "tax_exempt": { + "type": ["null", "boolean"] + }, + "phone": { "type": ["null", "string"] }, - "company": { + "tags": { "type": ["null", "string"] }, - "latitude": { - "type": ["null", "number"] + "last_order_name": { + "type": ["null", "string"] }, - "country_code": { + "currency": { "type": ["null", "string"] }, - "province_code": { + "accepts_marketing_updated_at": { "type": ["null", "string"] }, - "zip": { + "marketing_opt_in_level": { + "type": ["null", "string"] + }, + "tax_exemptions": { + "type": ["null", "array"] + }, + "admin_graphql_api_id": { "type": ["null", "string"] + }, + "default_address": { + "type": ["null", "object"], + "properties": { + "id": { + "type": ["null", "integer"] + }, + "customer_id": { + "type": ["null", "integer"] + }, + "first_name": { + "type": ["null", "string"] + }, + "last_name": { + "type": ["null", "string"] + }, + "company": { + "type": ["null", "string"] + }, + "address1": { + "type": ["null", "string"] + }, + "address2": { + "type": ["null", "string"] + }, + "city": { + "type": ["null", "string"] + }, + "province": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "zip": { + "type": ["null", "string"] + }, + "phone": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "province_code": { + "type": ["null", "string"] + }, + "country_code": { + "type": ["null", "string"] + }, + "country_name": { + "type": ["null", "string"] + }, + "default": { + "type": ["null", "boolean"] + } + } } - }, - "type": ["null", "object"] - }, - "landing_site": { - "type": ["null", "string"] - }, - "taxes_included": { - "type": ["null", "boolean"] - }, - "token": { - "type": ["null", "string"] - }, - "app_id": { - "type": ["null", "integer"] - }, - "total_tip_received": { - "type": ["null", "string"] + } }, - "browser_ip": { - "type": ["null", "string"] + "discount_applications": { + "type": ["null", "array"] }, - "discount_codes": { + "fulfillments": { + "type": ["null", "array"], "items": { + "type": ["null", "object"], "properties": { - "code": { - "type": ["null", "string"] - }, - "amount": { - "type": ["null", "number"], - "multipleOf": 1e-10 + "id": { + "type": ["null", "integer"] }, - "type": { + "admin_graphql_api_id": { "type": ["null", "string"] - } - }, - "type": ["null", "object"] - }, - "type": ["null", "array"] - }, - "tax_lines": { - "items": { - "properties": { - "price_set": {}, - "price": { - "type": ["null", "number"], - "multipleOf": 1e-10 }, - "title": { + "created_at": { "type": ["null", "string"] }, - "rate": { - "type": ["null", "number"], - "multipleOf": 1e-10 + "location_id": { + "type": ["null", "integer"] }, - "compare_at": { + "name": { "type": ["null", "string"] }, - "position": { + "order_id": { "type": ["null", "integer"] }, - "source": { + "receipt": { + "type": ["null", "object"] + }, + "service": { "type": ["null", "string"] }, - "zone": { + "shipment_status": { "type": ["null", "string"] - } - }, - "type": ["null", "object"] - }, - "type": ["null", "array"] - }, - "phone": { - "type": ["null", "string"] - }, - "note_attributes": { - "items": { - "properties": { - "name": { + }, + "status": { "type": ["null", "string"] }, - "value": { + "tracking_company": { "type": ["null", "string"] - } - }, - "type": ["null", "object"] - }, - "type": ["null", "array"] - }, - "fulfillment_status": { - "type": ["null", "string"] - }, - "order_status_url": { - "type": ["null", "string"] - }, - "client_details": { - "properties": { - "session_hash": { - "type": ["null", "string"] - }, - "accept_language": { - "type": ["null", "string"] - }, - "browser_width": { - "type": ["null", "integer"] - }, - "user_agent": { - "type": ["null", "string"] - }, - "browser_ip": { - "type": ["null", "string"] - }, - "browser_height": { - "type": ["null", "integer"] - } - }, - "type": ["null", "object"] - }, - "buyer_accepts_marketing": { - "type": ["null", "boolean"] - }, - "checkout_token": { - "type": ["null", "string"] - }, - "tags": { - "type": ["null", "string"] - }, - "financial_status": { - "type": ["null", "string"] - }, - "customer_locale": { - "type": ["null", "string"] - }, - "checkout_id": { - "type": ["null", "integer"] - }, - "total_weight": { - "type": ["null", "integer"] - }, - "gateway": { - "type": ["null", "string"] - }, - "cart_token": { - "type": ["null", "string"] - }, - "cancelled_at": { - "type": ["null", "string"], - "format": "date-time" - }, - "refunds": { - "items": { - "properties": { - "admin_graphql_api_id": { + }, + "tracking_number": { + "type": ["null", "string"] + }, + "tracking_numbers": { + "type": ["null", "array"] + }, + "tracking_url": { + "type": ["null", "string"] + }, + "tracking_urls": { + "type": ["null", "array"] + }, + "updated_at": { "type": ["null", "string"] }, - "refund_line_items": { + "line_items": { + "type": ["null", "array"], "items": { + "type": ["null", "object"], "properties": { - "line_item": { + "id": { + "type": ["null", "integer"] + }, + "admin_graphql_api_id": { + "type": ["null", "string"] + }, + "destination_location": { + "type": ["null", "object"], "properties": { - "applied_discounts": {}, - "total_discount_set": {}, - "pre_tax_price_set": {}, - "price_set": {}, - "grams": { + "id": { "type": ["null", "integer"] }, - "compare_at_price": { + "country_code": { "type": ["null", "string"] }, - "destination_location_id": { - "type": ["null", "integer"] - }, - "key": { + "province_code": { "type": ["null", "string"] }, - "line_price": { + "name": { "type": ["null", "string"] }, - "origin_location_id": { - "type": ["null", "integer"] - }, - "applied_discount": { - "type": ["null", "integer"] - }, - "fulfillable_quantity": { - "type": ["null", "integer"] - }, - "variant_title": { + "address1": { "type": ["null", "string"] }, - "properties": { - "anyOf": [ - { - "items": { - "properties": { - "name": { - "type": ["null", "string"] - }, - "value": { - "type": ["null", "string"] - } - }, - "type": ["null", "object"] - }, - "type": ["null", "array"] - }, - { - "properties": {}, - "type": ["null", "object"] - } - ] - }, - "tax_code": { + "address2": { "type": ["null", "string"] }, - "discount_allocations": { - "items": { - "properties": { - "discount_application_index": { - "type": ["null", "integer"] - }, - "amount_set": {}, - "amount": { - "type": ["null", "number"] - } - }, - "type": ["null", "object"] - }, - "type": ["null", "array"] - }, - "admin_graphql_api_id": { + "city": { "type": ["null", "string"] }, - "pre_tax_price": { - "type": ["null", "number"] + "zip": { + "type": ["null", "string"] + } + } + }, + "fulfillable_quantity": { + "type": ["null", "integer"] + }, + "fulfillment_service": { + "type": ["null", "string"] + }, + "fulfillment_status": { + "type": ["null", "string"] + }, + "gift_card": { + "type": ["null", "boolean"] + }, + "grams": { + "type": ["null", "integer"] + }, + "name": { + "type": ["null", "string"] + }, + "origin_location": { + "type": ["null", "object"], + "properties": { + "id": { + "type": ["null", "integer"] }, - "sku": { + "country_code": { "type": ["null", "string"] }, - "product_exists": { - "type": ["null", "boolean"] - }, - "total_discount": { - "type": ["null", "number"], - "multipleOf": 1e-10 + "province_code": { + "type": ["null", "string"] }, "name": { "type": ["null", "string"] }, - "fulfillment_status": { + "address1": { "type": ["null", "string"] }, - "gift_card": { - "type": ["null", "boolean"] - }, - "id": { - "type": ["null", "integer", "string"] + "address2": { + "type": ["null", "string"] }, - "taxable": { - "type": ["null", "boolean"] + "city": { + "type": ["null", "string"] }, - "vendor": { + "zip": { "type": ["null", "string"] + } + } + }, + "price": { + "type": ["null", "string"] + }, + "price_set": { + "type": ["null", "object"], + "properties": { + "shop_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] + }, + "currency_code": { + "type": ["null", "string"] + } + } + }, + "presentment_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] + }, + "currency_code": { + "type": ["null", "string"] + } + } + } + } + }, + "product_exists": { + "type": ["null", "boolean"] + }, + "product_id": { + "type": ["null", "integer"] + }, + "properties": { + "type": ["null", "array"] + }, + "quantity": { + "type": ["null", "integer"] + }, + "requires_shipping": { + "type": ["null", "boolean"] + }, + "sku": { + "type": ["null", "string"] + }, + "taxable": { + "type": ["null", "boolean"] + }, + "title": { + "type": ["null", "string"] + }, + "total_discount": { + "type": ["null", "string"] + }, + "total_discount_set": { + "type": ["null", "object"], + "properties": { + "shop_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] + }, + "currency_code": { + "type": ["null", "string"] + } + } }, - "tax_lines": { - "items": { + "presentment_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] + }, + "currency_code": { + "type": ["null", "string"] + } + } + } + } + }, + "variant_id": { + "type": ["null", "integer"] + }, + "variant_inventory_management": { + "type": ["null", "string"] + }, + "variant_title": { + "type": ["null", "string"] + }, + "vendor": { + "type": ["null", "string"] + }, + "tax_lines": { + "type": ["null", "array"], + "items": { + "type": ["null", "object"], + "properties": { + "price": { + "type": ["null", "string"] + }, + "price_set": { + "type": ["null", "object"], "properties": { - "price_set": {}, - "price": { - "type": ["null", "number"], - "multipleOf": 1e-10 - }, - "title": { - "type": ["null", "string"] - }, - "rate": { - "type": ["null", "number"], - "multipleOf": 1e-10 - }, - "compare_at": { - "type": ["null", "string"] - }, - "position": { - "type": ["null", "integer"] - }, - "source": { - "type": ["null", "string"] + "shop_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] + }, + "currency_code": { + "type": ["null", "string"] + } + } }, - "zone": { - "type": ["null", "string"] + "presentment_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] + }, + "currency_code": { + "type": ["null", "string"] + } + } } - }, - "type": ["null", "object"] + } }, - "type": ["null", "array"] - }, - "origin_location": { + "rate": { + "type": ["null", "number"] + }, + "title": { + "type": ["null", "string"] + } + } + } + }, + "duties": { + "type": ["null", "array"] + }, + "discount_allocations": { + "type": ["null", "array"] + } + } + } + } + } + } + }, + "line_items": { + "type": ["null", "array"], + "items": { + "type": ["null", "object"], + "properties": { + "id": { + "type": ["null", "integer"] + }, + "admin_graphql_api_id": { + "type": ["null", "string"] + }, + "destination_location": { + "type": ["null", "object"], + "properties": { + "id": { + "type": ["null", "integer"] + }, + "country_code": { + "type": ["null", "string"] + }, + "province_code": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "address1": { + "type": ["null", "string"] + }, + "address2": { + "type": ["null", "string"] + }, + "city": { + "type": ["null", "string"] + }, + "zip": { + "type": ["null", "string"] + } + } + }, + "fulfillable_quantity": { + "type": ["null", "integer"] + }, + "fulfillment_service": { + "type": ["null", "string"] + }, + "fulfillment_status": { + "type": ["null", "string"] + }, + "gift_card": { + "type": ["null", "boolean"] + }, + "grams": { + "type": ["null", "integer"] + }, + "name": { + "type": ["null", "string"] + }, + "origin_location": { + "type": ["null", "object"], + "properties": { + "id": { + "type": ["null", "integer"] + }, + "country_code": { + "type": ["null", "string"] + }, + "province_code": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "address1": { + "type": ["null", "string"] + }, + "address2": { + "type": ["null", "string"] + }, + "city": { + "type": ["null", "string"] + }, + "zip": { + "type": ["null", "string"] + } + } + }, + "price": { + "type": ["null", "string"] + }, + "price_set": { + "type": ["null", "object"], + "properties": { + "shop_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] + }, + "currency_code": { + "type": ["null", "string"] + } + } + }, + "presentment_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] + }, + "currency_code": { + "type": ["null", "string"] + } + } + } + } + }, + "product_exists": { + "type": ["null", "boolean"] + }, + "product_id": { + "type": ["null", "integer"] + }, + "properties": { + "type": ["null", "array"] + }, + "quantity": { + "type": ["null", "integer"] + }, + "requires_shipping": { + "type": ["null", "boolean"] + }, + "sku": { + "type": ["null", "string"] + }, + "taxable": { + "type": ["null", "boolean"] + }, + "title": { + "type": ["null", "string"] + }, + "total_discount": { + "type": ["null", "string"] + }, + "total_discount_set": { + "type": ["null", "object"], + "properties": { + "shop_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] + }, + "currency_code": { + "type": ["null", "string"] + } + } + }, + "presentment_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] + }, + "currency_code": { + "type": ["null", "string"] + } + } + } + } + }, + "variant_id": { + "type": ["null", "integer"] + }, + "variant_inventory_management": { + "type": ["null", "string"] + }, + "variant_title": { + "type": ["null", "string"] + }, + "vendor": { + "type": ["null", "string"] + }, + "tax_lines": { + "type": ["null", "array"], + "items": { + "type": ["null", "object"], + "properties": { + "price": { + "type": ["null", "string"] + }, + "price_set": { + "type": ["null", "object"], + "properties": { + "shop_money": { + "type": ["null", "object"], "properties": { - "country_code": { + "amount": { "type": ["null", "string"] }, - "name": { - "type": ["null", "string"] - }, - "address1": { - "type": ["null", "string"] - }, - "city": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "integer"] - }, - "address2": { - "type": ["null", "string"] - }, - "province_code": { - "type": ["null", "string"] - }, - "zip": { + "currency_code": { "type": ["null", "string"] } - }, - "type": ["null", "object"] - }, - "price": { - "type": ["null", "number"], - "multipleOf": 1e-10 - }, - "requires_shipping": { - "type": ["null", "boolean"] - }, - "fulfillment_service": { - "type": ["null", "string"] - }, - "variant_inventory_management": { - "type": ["null", "string"] - }, - "title": { - "type": ["null", "string"] + } }, - "destination_location": { + "presentment_money": { + "type": ["null", "object"], "properties": { - "country_code": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "address1": { - "type": ["null", "string"] - }, - "city": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "integer"] - }, - "address2": { - "type": ["null", "string"] - }, - "province_code": { + "amount": { "type": ["null", "string"] }, - "zip": { + "currency_code": { "type": ["null", "string"] } - }, - "type": ["null", "object"] - }, - "quantity": { - "type": ["null", "integer"] - }, - "product_id": { - "type": ["null", "integer"] - }, - "variant_id": { - "type": ["null", "integer"] + } } - }, - "type": ["null", "object"] - }, - "location_id": { - "type": ["null", "integer"] - }, - "line_item_id": { - "type": ["null", "integer"] - }, - "quantity": { - "type": ["null", "integer"] + } }, - "id": { - "type": ["null", "integer"] - }, - "total_tax": { + "rate": { "type": ["null", "number"] }, - "restock_type": { + "title": { "type": ["null", "string"] - }, - "subtotal": { - "type": ["null", "number"] } - }, - "type": ["null", "object"] - }, + } + } + }, + "duties": { "type": ["null", "array"] }, - "restock": { - "type": ["null", "boolean"] + "discount_allocations": { + "type": ["null", "array"] + } + } + } + }, + "payment_details": { + "type": ["null", "object"], + "properties": { + "credit_card_bin": { + "type": ["null", "string"] + }, + "avs_result_code": { + "type": ["null", "string"] + }, + "cvv_result_code": { + "type": ["null", "string"] + }, + "credit_card_number": { + "type": ["null", "string"] + }, + "credit_card_company": { + "type": ["null", "string"] + } + } + }, + "refunds": { + "type": ["null", "array"] + }, + "shipping_address": { + "type": ["null", "object"], + "properties": { + "first_name": { + "type": ["null", "string"] + }, + "address1": { + "type": ["null", "string"] + }, + "phone": { + "type": ["null", "string"] + }, + "city": { + "type": ["null", "string"] + }, + "zip": { + "type": ["null", "string"] + }, + "province": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "last_name": { + "type": ["null", "string"] + }, + "address2": { + "type": ["null", "string"] + }, + "company": { + "type": ["null", "string"] + }, + "latitude": { + "type": ["null", "number"] + }, + "longitude": { + "type": ["null", "number"] + }, + "name": { + "type": ["null", "string"] + }, + "country_code": { + "type": ["null", "string"] + }, + "province_code": { + "type": ["null", "string"] + } + } + }, + "shipping_lines": { + "type": ["null", "array"], + "items": { + "type": ["null", "object"], + "properties": { + "id": { + "type": ["null", "integer"] + }, + "carrier_identifier": { + "type": ["null", "string"] }, - "note": { + "code": { "type": ["null", "string"] }, - "id": { - "type": ["null", "integer"] + "delivery_category": { + "type": ["null", "string"] }, - "user_id": { - "type": ["null", "integer"] + "discounted_price": { + "type": ["null", "string"] }, - "created_at": { - "type": ["null", "string"], - "format": "date-time" + "discounted_price_set": { + "type": ["null", "object"], + "properties": { + "shop_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] + }, + "currency_code": { + "type": ["null", "string"] + } + } + }, + "presentment_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] + }, + "currency_code": { + "type": ["null", "string"] + } + } + } + } }, - "processed_at": { - "type": ["null", "string"], - "format": "date-time" + "phone": { + "type": ["null", "string"] }, - "order_adjustments": { - "items": { - "properties": { - "order_id": { - "type": ["null", "integer"] - }, - "tax_amount": { - "type": ["null", "number"], - "multipleOf": 1e-10 - }, - "refund_id": { - "type": ["null", "integer"] - }, - "amount": { - "type": ["null", "number"], - "multipleOf": 1e-10 - }, - "kind": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "integer"] - }, - "reason": { - "type": ["null", "string"] + "price": { + "type": ["null", "string"] + }, + "price_set": { + "type": ["null", "object"], + "properties": { + "shop_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] + }, + "currency_code": { + "type": ["null", "string"] + } } }, - "type": ["null", "object"] - }, + "presentment_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"] + }, + "currency_code": { + "type": ["null", "string"] + } + } + } + } + }, + "requested_fulfillment_service_id": { + "type": ["null", "string"] + }, + "source": { + "type": ["null", "string"] + }, + "title": { + "type": ["null", "string"] + }, + "tax_lines": { + "type": ["null", "array"] + }, + "discount_allocations": { "type": ["null", "array"] } - }, - "type": ["null", "object"] - }, - "type": ["null", "array"] - }, - "created_at": { - "type": ["null", "string"], - "format": "date-time" - }, - "updated_at": { - "type": ["null", "string"], - "format": "date-time" - }, - "reference": { - "type": ["null", "string"] + } + } } - }, - "type": "object" + } } diff --git a/airbyte-integrations/connectors/source-shopify/source_shopify/source.py b/airbyte-integrations/connectors/source-shopify/source_shopify/source.py index 0a4aba494453c..d4dcc6f31e960 100644 --- a/airbyte-integrations/connectors/source-shopify/source_shopify/source.py +++ b/airbyte-integrations/connectors/source-shopify/source_shopify/source.py @@ -179,6 +179,19 @@ def read_records(self, stream_slice: Optional[Mapping[str, Any]] = None, **kwarg yield from super().read_records(stream_slice={"order_id": data["id"]}, **kwargs) +class OrderRisks(IncrementalShopifyStream): + data_field = "risks" + + def path(self, stream_slice: Mapping[str, Any] = None, **kwargs) -> str: + order_id = stream_slice["order_id"] + return f"orders/{order_id}/{self.data_field}.json" + + def read_records(self, stream_slice: Optional[Mapping[str, Any]] = None, **kwargs) -> Iterable[Mapping[str, Any]]: + orders_stream = Orders(authenticator=self.authenticator, shop=self.shop, start_date=self.start_date, api_password=self.api_password) + for data in orders_stream.read_records(sync_mode=SyncMode.full_refresh): + yield from super().read_records(stream_slice={"order_id": data["id"]}, **kwargs) + + class Transactions(IncrementalShopifyStream): data_field = "transactions" @@ -245,5 +258,6 @@ def streams(self, config: Mapping[str, Any]) -> List[Stream]: CustomCollections(**args), Collects(**args), OrderRefunds(**args), + OrderRisks(**args), Transactions(**args), ]