Skip to content

Commit

Permalink
馃悰Source Chargebee: fix schema field type issue (#15743)
Browse files Browse the repository at this point in the history
* Updated transaction schema field type

* Bumped version

* Updated PR number

* Fix acceptance tests

* Skip backward_compatibility_tests_config

* auto-bump connector version [ci skip]

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
  • Loading branch information
lazebnyi and octavia-squidington-iii committed Aug 19, 2022
1 parent b95d331 commit 695fef1
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
- name: Chargebee
sourceDefinitionId: 686473f1-76d9-4994-9cc7-9b13da46147c
dockerRepository: airbyte/source-chargebee
dockerImageTag: 0.1.12
dockerImageTag: 0.1.13
documentationUrl: https://docs.airbyte.io/integrations/sources/chargebee
icon: chargebee.svg
sourceType: api
Expand Down
4 changes: 2 additions & 2 deletions airbyte-config/init/src/main/resources/seed/source_specs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1102,7 +1102,7 @@
supportsNormalization: false
supportsDBT: false
supported_destination_sync_modes: []
- dockerImage: "airbyte/source-chargebee:0.1.12"
- dockerImage: "airbyte/source-chargebee:0.1.13"
spec:
documentationUrl: "https://apidocs.chargebee.com/docs/api"
connectionSpecification:
Expand All @@ -1114,7 +1114,7 @@
- "site_api_key"
- "start_date"
- "product_catalog"
additionalProperties: false
additionalProperties: true
properties:
site:
type: "string"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ RUN pip install .

ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]

LABEL io.airbyte.version=0.1.12
LABEL io.airbyte.version=0.1.13
LABEL io.airbyte.name=airbyte/source-chargebee
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ tests:
status: "failed"
discovery:
- config_path: "secrets/config.json"
backward_compatibility_tests_config:
disable_for_version: "0.1.12"
basic_read:
- config_path: "secrets/config.json"
configured_catalog_path: "integration_tests/product_catalog_v2_configured_catalog.json"
Expand Down
2 changes: 1 addition & 1 deletion airbyte-integrations/connectors/source-chargebee/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from setuptools import find_packages, setup

MAIN_REQUIREMENTS = [
"airbyte-cdk~=0.1",
"airbyte-cdk",
# Install chargebee according to API doc.
# https://apidocs.chargebee.com/docs/api?lang=python&prod_cat_ver=2#client_library
"chargebee>=2,<3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@
"type": ["string", "null"],
"max-length": 50
},
"gateway_account_id": {
"type": ["string", "null"],
"max-length": 50
},
"payment_source_id": {
"type": ["string", "null"],
"max-length": 40
Expand Down Expand Up @@ -91,7 +87,7 @@
"type": ["integer", "null"]
},
"exchange_rate": {
"type": ["integer", "null"]
"type": ["number", "null"]
},
"currency_code": {
"type": ["string", "null"]
Expand Down Expand Up @@ -330,12 +326,6 @@
}
}
}
},
"amount": {
"type": ["integer", "null"]
},
"date": {
"type": ["integer", "null"]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"title": "Chargebee Spec",
"type": "object",
"required": ["site", "site_api_key", "start_date", "product_catalog"],
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"site": {
"type": "string",
Expand Down
1 change: 1 addition & 0 deletions docs/integrations/sources/chargebee.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ Log into Chargebee and then generate an [API Key](https://apidocs.chargebee.com/

| Version | Date | Pull Request | Subject |
| :--- | :--- | :--- | :--- |
| 0.1.13 | 2022-08-18 | [15743](https://github.com/airbytehq/airbyte/pull/15743) | Fix transaction `exchange_rate` field type |
| 0.1.12 | 2022-07-13 | [14672](https://github.com/airbytehq/airbyte/pull/14672) | Fix transaction sort by |
| 0.1.11 | 2022-03-03 | [10827](https://github.com/airbytehq/airbyte/pull/10827) | Fix Credit Note stream |
| 0.1.10 | 2022-03-02 | [10795](https://github.com/airbytehq/airbyte/pull/10795) | Add support for Credit Note stream |
Expand Down

0 comments on commit 695fef1

Please sign in to comment.