forked from singer-io/tap-shopify
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from hotgluexyz/feature/shopDetails
support for shop details
- Loading branch information
Showing
4 changed files
with
202 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |