Skip to content

Commit

Permalink
Merge pull request #2 from hotgluexyz/feature/shopDetails
Browse files Browse the repository at this point in the history
support for shop details
  • Loading branch information
hsyyid authored Dec 24, 2021
2 parents a51edc2 + 0b10935 commit 5fd38d8
Show file tree
Hide file tree
Showing 4 changed files with 202 additions and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

setup(
name="tap-shopify",
version="1.4.2",
version="1.4.3",
description="Singer.io tap for extracting Shopify data",
author="Stitch",
url="http://github.com/singer-io/tap-shopify",
Expand Down
185 changes: 185 additions & 0 deletions tap_shopify/schemas/shop.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,185 @@
{
"properties": {
"id": {
"type": [
"null",
"integer"
]
},
"name": {
"type": [
"null",
"string"
]
},
"email": {
"type": [
"null",
"string"
]
},
"domain": {
"type": [
"null",
"string"
]
},
"province": {
"type": [
"null",
"string"
]
},
"country": {
"type": [
"null",
"string"
]
},
"address1": {
"type": [
"null",
"string"
]
},
"zip": {
"type": [
"null",
"string"
]
},
"city": {
"type": [
"null",
"string"
]
},
"phone": {
"type": [
"null",
"string"
]
},
"latitude": {
"type": [
"null",
"number"
]
},
"longitude": {
"type": [
"null",
"number"
]
},
"money_in_emails_format": {
"type": [
"null",
"string"
]
},
"money_with_currency_in_emails_format": {
"type": [
"null",
"string"
]
},
"eligible_for_payments": {
"type": [
"null",
"boolean"
]
},
"requires_extra_payments_agreement": {
"type": [
"null",
"boolean"
]
},
"password_enabled": {
"type": [
"null",
"boolean"
]
},
"has_storefront": {
"type": [
"null",
"boolean"
]
},
"eligible_for_card_reader_giveaway": {
"type": [
"null",
"boolean"
]
},
"finances": {
"type": [
"null",
"boolean"
]
},
"primary_location_id": {
"type": [
"null",
"integer"
]
},
"cookie_consent_level": {
"type": [
"null",
"string"
]
},
"visitor_tracking_consent_preference": {
"type": [
"null",
"string"
]
},
"checkout_api_supported": {
"type": [
"null",
"boolean"
]
},
"multi_location_enabled": {
"type": [
"null",
"boolean"
]
},
"setup_required": {
"type": [
"null",
"boolean"
]
},
"pre_launch_enabled": {
"type": [
"null",
"boolean"
]
},
"enabled_presentment_currencies": {
"type": [
"null",
"array"
],
"items": {
"type": [
"null",
"string"
]
}
},
"currency": {
"type": [
"null",
"string"
]
}
},
"type": "object"
}
1 change: 1 addition & 0 deletions tap_shopify/streams/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@
import tap_shopify.streams.locations
import tap_shopify.streams.inventory_levels
import tap_shopify.streams.inventory_items
import tap_shopify.streams.shop
15 changes: 15 additions & 0 deletions tap_shopify/streams/shop.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import shopify

from tap_shopify.streams.base import Stream
from tap_shopify.context import Context


class Shop(Stream):
name = 'shop'
replication_object = shopify.Shop

def sync(self):
response = shopify.Shop.current()
return [response.to_dict()]

Context.stream_objects['shop'] = Shop

0 comments on commit 5fd38d8

Please sign in to comment.