Skip to content

Commit

Permalink
🎉 Source Shopify: New stream Order Agreements (GraphQL BULK) (#39527)
Browse files Browse the repository at this point in the history
  • Loading branch information
bazarnov committed Jun 18, 2024
1 parent 9458fd2 commit b88e7e3
Show file tree
Hide file tree
Showing 15 changed files with 492 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@
}
}
},
{
"type": "STREAM",
"stream": {
"stream_state": {
"updated_at": "2027-07-11T13:07:45-07:00"
},
"stream_descriptor": {
"name": "order_agreements"
}
}
},
{
"type": "STREAM",
"stream": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,18 @@
"cursor_field": ["id"],
"destination_sync_mode": "append"
},
{
"stream": {
"name": "order_agreements",
"json_schema": {},
"supported_sync_modes": ["incremental", "full_refresh"],
"source_defined_cursor": true,
"default_cursor_field": ["updated_at"]
},
"sync_mode": "incremental",
"cursor_field": ["updated_at"],
"destination_sync_mode": "append"
},
{
"stream": {
"name": "disputes",
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
},
"updated_at": "2023-04-24T11:00:10-07:00"
},
"order_agreements": {
"updated_at": "2023-04-24T11:00:10-07:00"
},
"draft_orders": {
"updated_at": "2023-07-11T12:57:55-07:00"
},
Expand Down
4 changes: 3 additions & 1 deletion airbyte-integrations/connectors/source-shopify/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ data:
connectorSubtype: api
connectorType: source
definitionId: 9da77001-af33-4bcd-be46-6252bf9342b9
dockerImageTag: 2.3.0
dockerImageTag: 2.4.0
dockerRepository: airbyte/source-shopify
documentationUrl: https://docs.airbyte.com/integrations/sources/shopify
githubIssueLabel: source-shopify
Expand Down Expand Up @@ -77,6 +77,8 @@ data:
suggestedStreams:
streams:
- customers
- customer_journey_summary
- order_agreements
- order_refunds
- transactions_graphql
- product_variants
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = [ "poetry-core>=1.0.0",]
build-backend = "poetry.core.masonry.api"

[tool.poetry]
version = "2.3.0"
version = "2.4.0"
name = "source-shopify"
description = "Source CDK implementation for Shopify."
authors = [ "Airbyte <contact@airbyte.io>",]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,176 @@
{
"type": "object",
"additionalProperties": true,
"properties": {
"id": {
"description": "A globally-unique Order ID",
"type": ["null", "integer"]
},
"created_at": {
"description": "The date and time when the order was created",
"type": ["null", "string"],
"format": "date-time"
},
"updated_at": {
"description": "The date and time when the order was last updated",
"type": ["null", "string"],
"format": "date-time"
},
"admin_graphql_api_id": {
"description": "The original order id reference for the shopify api",
"type": ["null", "string"]
},
"shop_url": {
"description": "URL of the shop where the order was placed.",
"type": ["null", "string"]
},
"agreements": {
"description": "A list of sales agreements associated with the order.",
"type": ["null", "array"],
"items": {
"type": ["null", "object"],
"properties": {
"id": {
"description": "The unique ID for the agreement.",
"type": ["null", "integer"]
},
"happened_at": {
"description": "The date and time at which the agreement occured.",
"type": ["null", "string"],
"format": "date-time"
},
"reason": {
"description": "The reason the agremeent was created.",
"type": ["null", "string"]
},
"sales": {
"type": ["null", "array"],
"items": {
"type": ["null", "object"],
"properties": {
"quantity": {
"description": "The number of units either ordered or intended to be returned.",
"type": ["null", "integer"]
},
"id": {
"description": "The unique ID for the sale.",
"type": ["null", "integer"]
},
"action_type": {
"description": "The type of order action that the sale represents.",
"type": ["null", "string"]
},
"line_type": {
"description": "The line type assocated with the sale.",
"type": ["null", "string"]
},
"total_amount": {
"description": "The total sale amount after taxes and discounts.",
"type": ["null", "object"],
"properties": {
"shop_money": {
"description": "Amount in shop currency.",
"type": ["null", "object"],
"properties": {
"amount": {
"description": "Decimal money amount.",
"type": ["null", "number"]
},
"currency_code": {
"description": "Currency of the money.",
"type": ["null", "string"]
}
}
}
}
},
"total_discount_amount_after_taxes": {
"description": "The total discounts allocated to the sale after taxes.",
"type": ["null", "object"],
"properties": {
"shop_money": {
"description": "Amount in shop currency.",
"type": ["null", "object"],
"properties": {
"amount": {
"description": "Decimal money amount.",
"type": ["null", "number"]
},
"currency_code": {
"description": "Currency of the money.",
"type": ["null", "string"]
}
}
}
}
},
"total_discount_amount_before_taxes": {
"description": "The total discounts allocated to the sale before taxes.",
"type": ["null", "object"],
"properties": {
"shop_money": {
"description": "Amount in shop currency.",
"type": ["null", "object"],
"properties": {
"amount": {
"description": "Decimal money amount.",
"type": ["null", "number"]
},
"currency_code": {
"description": "Currency of the money.",
"type": ["null", "string"]
}
}
}
}
},
"total_tax_amount": {
"description": "The total amount of taxes for the sale.",
"type": ["null", "object"],
"properties": {
"shop_money": {
"description": "Amount in shop currency.",
"type": ["null", "object"],
"properties": {
"amount": {
"description": "Decimal money amount.",
"type": ["null", "number"]
},
"currency_code": {
"description": "Currency of the money.",
"type": ["null", "string"]
}
}
}
}
},
"line_item": {
"description": "The line item for the associated sale.",
"type": ["null", "object"],
"properties": {
"id": {
"description": "A globally-unique line item ID.",
"type": ["null", "integer"]
},
"admin_graphql_api_id": {
"description": "The original agreement-sales-related line item id reference for the shopify api",
"type": ["null", "string"]
}
}
},
"admin_graphql_api_id": {
"description": "The original agreement-related sale id reference for the shopify api",
"type": ["null", "string"]
}
}
}
},
"admin_graphql_api_id": {
"description": "The original agreement id reference for the shopify api",
"type": ["null", "string"]
}
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"CustomerSavedSearch": ("read_customers",),
"CustomerAddress": ("read_customers",),
# SCOPE: read_orders
"OrderAgreements": ("read_orders",),
"Orders": ("read_orders",),
"CustomerJourneySummary": ("read_orders",),
"AbandonedCheckouts": ("read_orders",),
Expand Down
Loading

0 comments on commit b88e7e3

Please sign in to comment.