-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🎉 Stripe Source: Fix subscriptions stream to return all kinds of subs…
…criptions (including expired and canceled) (#4669) #4669 Stripe Source: Fix subscriptions stream to return all kinds of subscriptions (including expired and canceled) Co-authored-by: Oleksandr Bazarnov <oleksandr.bazarnov@globallogic.com>
- Loading branch information
1 parent
7f4315f
commit 28239a8
Showing
34 changed files
with
3,491 additions
and
399 deletions.
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
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
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,29 +1,9 @@ | ||
plugins { | ||
id 'airbyte-python' | ||
id 'airbyte-docker' | ||
id 'airbyte-standard-source-test-file' | ||
id 'airbyte-source-acceptance-test' | ||
} | ||
|
||
airbytePython { | ||
moduleDirectory 'source_stripe' | ||
} | ||
|
||
airbyteStandardSourceTestFile { | ||
// For more information on standard source tests, see https://docs.airbyte.io/contributing-to-airbyte/building-new-connector/testing-connectors | ||
// All these input paths must live inside this connector's directory (or subdirectories) | ||
|
||
specPath = "source_stripe/spec.json" | ||
|
||
// configPath points to a config file which matches the spec.json supplied above. secrets/ is gitignored by default, so place your config file | ||
// there (in case it contains any credentials) | ||
configPath = "secrets/config.json" | ||
|
||
// Note: If your source supports incremental syncing, then make sure that the catalog that is returned in the get_catalog method is configured | ||
// for incremental syncing (e.g. include cursor fields, etc). | ||
configuredCatalogPath = "sample_files/configured_catalog.json" | ||
} | ||
|
||
|
||
dependencies { | ||
implementation files(project(':airbyte-integrations:bases:base-standard-source-test-file').airbyteDocker.outputs) | ||
} |
53 changes: 53 additions & 0 deletions
53
airbyte-integrations/connectors/source-stripe/integration_tests/configured_catalog.json
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,53 @@ | ||
{ | ||
"streams": [ | ||
{ | ||
"stream": { | ||
"name": "events", | ||
"json_schema": { | ||
"type": "object", | ||
"properties": { | ||
"created": { | ||
"type": ["null", "integer"] | ||
}, | ||
"data": { | ||
"type": ["null", "object"], | ||
"properties": {} | ||
}, | ||
"id": { | ||
"type": ["null", "string"] | ||
}, | ||
"api_version": { | ||
"type": ["null", "string"] | ||
}, | ||
"object": { | ||
"type": ["null", "string"] | ||
}, | ||
"livemode": { | ||
"type": ["null", "boolean"] | ||
}, | ||
"pending_webhooks": { | ||
"type": ["null", "integer"] | ||
}, | ||
"request": { | ||
"type": ["null", "string"] | ||
}, | ||
"type": { | ||
"type": ["null", "string"] | ||
}, | ||
"updated": { | ||
"type": ["null", "string"], | ||
"format": "date-time" | ||
} | ||
} | ||
}, | ||
"supported_sync_modes": ["full_refresh", "incremental"], | ||
"source_defined_cursor": true, | ||
"default_cursor_field": ["created"], | ||
"source_defined_primary_key": [["id"]] | ||
}, | ||
"sync_mode": "incremental", | ||
"destination_sync_mode": "overwrite", | ||
"cursor_field": ["created"] | ||
} | ||
] | ||
} |
Oops, something went wrong.