Skip to content

Commit f54b5d8

Browse files
bleonardlazebnyi
andauthored
source-chargebee: ensure inline schemas, updated cdk, poetry (where possible) (#36633)
Co-authored-by: Serhii Lazebnyi <[email protected]> Co-authored-by: Serhii Lazebnyi <[email protected]>
1 parent 2453122 commit f54b5d8

32 files changed

+1476
-42
lines changed

airbyte-integrations/connectors/source-chargebee/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ You've checked out the repo, implemented a million dollar feature, and you're re
9494

9595
1. Make sure your changes are passing our test suite: `airbyte-ci connectors --name=source-chargebee test`
9696
2. Bump the connector version (please follow [semantic versioning for connectors](https://docs.airbyte.com/contributing-to-airbyte/resources/pull-requests-handbook/#semantic-versioning-for-connectors)):
97-
- bump the `dockerImageTag` value in in `metadata.yaml`
97+
- bump the `dockerImageTag` value in `metadata.yaml`
9898
- bump the `version` value in `pyproject.toml`
9999
3. Make sure the `metadata.yaml` content is up to date.
100100
4. Make sure the connector documentation and its changelog is up to date (`docs/integrations/sources/chargebee.md`).

airbyte-integrations/connectors/source-chargebee/metadata.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ data:
1010
connectorSubtype: api
1111
connectorType: source
1212
definitionId: 686473f1-76d9-4994-9cc7-9b13da46147c
13-
dockerImageTag: 0.5.0
13+
dockerImageTag: 0.5.1
1414
dockerRepository: airbyte/source-chargebee
1515
documentationUrl: https://docs.airbyte.com/integrations/sources/chargebee
1616
githubIssueLabel: source-chargebee

airbyte-integrations/connectors/source-chargebee/poetry.lock

+6-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

airbyte-integrations/connectors/source-chargebee/pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ requires = [ "poetry-core>=1.0.0",]
33
build-backend = "poetry.core.masonry.api"
44

55
[tool.poetry]
6-
version = "0.5.0"
6+
version = "0.5.1"
77
name = "source-chargebee"
88
description = "Source implementation for Chargebee."
99
authors = [ "Airbyte <[email protected]>",]
@@ -17,7 +17,7 @@ include = "source_chargebee"
1717

1818
[tool.poetry.dependencies]
1919
python = "^3.9,<3.12"
20-
airbyte-cdk = "^0"
20+
airbyte-cdk = "0.80.0"
2121

2222
[tool.poetry.scripts]
2323
source-chargebee = "source_chargebee.run:run"

airbyte-integrations/connectors/source-chargebee/source_chargebee/components.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def observe(self, stream_slice: StreamSlice, record: Record) -> None:
132132
if self.is_greater_than_or_equal(record, self._state):
133133
self._cursor = record_cursor_value
134134

135-
def close_slice(self, stream_slice: StreamSlice) -> None:
135+
def close_slice(self, stream_slice: StreamSlice, *args: Any) -> None:
136136
cursor_field = self.cursor_field.eval(self.config)
137137
self._state[cursor_field] = self._cursor
138138

airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/addon.json

+49
Original file line numberDiff line numberDiff line change
@@ -4,156 +4,205 @@
44
"type": "object",
55
"properties": {
66
"id": {
7+
"description": "Unique identifier for the addon.",
78
"type": ["string", "null"]
89
},
910
"name": {
11+
"description": "Name of the addon.",
1012
"type": ["string", "null"]
1113
},
1214
"invoice_name": {
15+
"description": "Name to be displayed on the invoice for the addon.",
1316
"type": ["string", "null"]
1417
},
1518
"description": {
19+
"description": "Description of the addon.",
1620
"type": ["string", "null"]
1721
},
1822
"pricing_model": {
23+
"description": "Model used for pricing the addon.",
1924
"type": ["string", "null"]
2025
},
2126
"charge_type": {
27+
"description": "Type of charge for the addon.",
2228
"type": ["string", "null"]
2329
},
2430
"price": {
31+
"description": "Price of the addon.",
2532
"type": ["integer", "null"]
2633
},
2734
"currency_code": {
35+
"description": "Currency code for the addon pricing.",
2836
"type": ["string", "null"]
2937
},
3038
"period": {
39+
"description": "Duration of the addon period.",
3140
"type": ["integer", "null"]
3241
},
3342
"period_unit": {
43+
"description": "Unit of duration for the addon period.",
3444
"type": ["string", "null"]
3545
},
3646
"unit": {
47+
"description": "Unit of the addon quantity.",
3748
"type": ["string", "null"]
3849
},
3950
"status": {
51+
"description": "Status of the addon.",
4052
"type": ["string", "null"]
4153
},
4254
"archived_at": {
55+
"description": "Timestamp indicating when the addon was archived.",
4356
"type": ["integer", "null"]
4457
},
4558
"enabled_in_portal": {
59+
"description": "Indicator for whether the addon is enabled in the customer portal.",
4660
"type": ["boolean", "null"]
4761
},
4862
"tax_code": {
63+
"description": "Tax code associated with the addon.",
4964
"type": ["string", "null"]
5065
},
5166
"taxjar_product_code": {
67+
"description": "TaxJar product code for tax calculation.",
5268
"type": ["string", "null"]
5369
},
5470
"avalara_sale_type": {
71+
"description": "Avalara sale type for tax calculation.",
5572
"type": ["string", "null"]
5673
},
5774
"avalara_transaction_type": {
75+
"description": "Avalara transaction type for tax calculation.",
5876
"type": ["integer", "null"]
5977
},
6078
"avalara_service_type": {
79+
"description": "Avalara service type for tax calculation.",
6180
"type": ["integer", "null"]
6281
},
6382
"sku": {
83+
"description": "Stock Keeping Unit (SKU) for the addon.",
6484
"type": ["string", "null"]
6585
},
6686
"accounting_code": {
87+
"description": "Accounting code for the addon.",
6788
"type": ["string", "null"]
6889
},
6990
"accounting_category1": {
91+
"description": "First accounting category for the addon.",
7092
"type": ["string", "null"]
7193
},
7294
"accounting_category2": {
95+
"description": "Second accounting category for the addon.",
7396
"type": ["string", "null"]
7497
},
7598
"accounting_category3": {
99+
"description": "Third accounting category for the addon.",
76100
"type": ["string", "null"]
77101
},
78102
"accounting_category4": {
103+
"description": "Fourth accounting category for the addon.",
79104
"type": ["string", "null"]
80105
},
81106
"is_shippable": {
107+
"description": "Indicator for whether the addon is shippable.",
82108
"type": ["boolean", "null"]
83109
},
84110
"shipping_frequency_period": {
111+
"description": "Frequency of shipping for the addon period.",
85112
"type": ["integer", "null"]
86113
},
87114
"shipping_frequency_period_unit": {
115+
"description": "Unit of frequency for shipping the addon.",
88116
"type": ["string", "null"]
89117
},
90118
"resource_version": {
119+
"description": "Version of the resource.",
91120
"type": ["integer", "null"]
92121
},
93122
"updated_at": {
123+
"description": "Timestamp of the last update to the addon data.",
94124
"type": ["integer", "null"]
95125
},
96126
"price_in_decimal": {
127+
"description": "Price of the addon in decimal format.",
97128
"type": ["string", "null"]
98129
},
99130
"included_in_mrr": {
131+
"description": "Indicator for whether the addon is included in Monthly Recurring Revenue (MRR).",
100132
"type": ["boolean", "null"]
101133
},
102134
"invoice_notes": {
135+
"description": "Additional notes to include on the invoice for the addon.",
103136
"type": ["string", "null"]
104137
},
105138
"taxable": {
139+
"description": "Indicator for whether the addon is taxable.",
106140
"type": ["boolean", "null"]
107141
},
108142
"tax_profile_id": {
143+
"description": "Tax profile identifier for the addon.",
109144
"type": ["string", "null"]
110145
},
111146
"meta_data": {
147+
"description": "Additional metadata associated with the addon.",
112148
"type": ["object", "null"],
113149
"properties": {}
114150
},
115151
"show_description_in_invoices": {
152+
"description": "Indicator for whether the description should appear on invoices.",
116153
"type": ["boolean", "null"]
117154
},
118155
"show_description_in_quotes": {
156+
"description": "Indicator for whether the description should appear on quotes.",
119157
"type": ["boolean", "null"]
120158
},
121159
"channel": {
160+
"description": "Channel for which the addon is applicable.",
122161
"type": ["string", "null"]
123162
},
124163
"object": {
164+
"description": "Type of object, in this case, addon.",
125165
"type": ["string", "null"]
126166
},
127167
"type": {
168+
"description": "Type of addon.",
128169
"type": ["string", "null"]
129170
},
130171
"tiers": {
172+
"description": "Tiers with specific pricing for the addon.",
131173
"type": ["array", "null"],
132174
"items": {
133175
"type": ["object", "null"],
134176
"properties": {
135177
"starting_unit": {
178+
"description": "Starting unit quantity for the tier.",
136179
"type": ["integer", "null"]
137180
},
138181
"ending_unit": {
182+
"description": "Ending unit quantity for the tier.",
139183
"type": ["integer", "null"]
140184
},
141185
"price": {
186+
"description": "Price of the tier.",
142187
"type": ["integer", "null"]
143188
},
144189
"starting_unit_in_decimal": {
190+
"description": "Starting unit quantity in decimal for the tier.",
145191
"type": ["string", "null"]
146192
},
147193
"ending_unit_in_decimal": {
194+
"description": "Ending unit quantity in decimal for the tier.",
148195
"type": ["string", "null"]
149196
},
150197
"price_in_decimal": {
198+
"description": "Price of the tier in decimal format.",
151199
"type": ["string", "null"]
152200
}
153201
}
154202
}
155203
},
156204
"custom_fields": {
205+
"description": "Custom fields associated with the addon.",
157206
"$ref": "_definitions.json#/definitions/custom_fields"
158207
}
159208
}

airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/attached_item.json

+15
Original file line numberDiff line numberDiff line change
@@ -4,48 +4,63 @@
44
"type": "object",
55
"properties": {
66
"id": {
7+
"description": "Unique identifier for the attached item.",
78
"type": ["string", "null"]
89
},
910
"parent_item_id": {
11+
"description": "Identifier of the parent item to which this attached item is attached.",
1012
"type": ["string", "null"]
1113
},
1214
"item_id": {
15+
"description": "Identifier of the item to which this attached item belongs.",
1316
"type": ["string", "null"]
1417
},
1518
"type": {
19+
"description": "Type of the attached item.",
1620
"type": ["string", "null"]
1721
},
1822
"status": {
23+
"description": "Current status of the attached item.",
1924
"type": ["string", "null"]
2025
},
2126
"quantity": {
27+
"description": "Quantity of the attached item included in the parent item.",
2228
"type": ["integer", "null"]
2329
},
2430
"quantity_in_decimal": {
31+
"description": "Quantity of the attached item in decimal format.",
2532
"type": ["string", "null"]
2633
},
2734
"billing_cycles": {
35+
"description": "Number of billing cycles associated with the attached item.",
2836
"type": ["integer", "null"]
2937
},
3038
"charge_on_event": {
39+
"description": "Indicates when the attached item should be charged.",
3140
"type": ["string", "null"]
3241
},
3342
"charge_once": {
43+
"description": "Flag to determine if the attached item should be charged only once.",
3444
"type": ["boolean", "null"]
3545
},
3646
"created_at": {
47+
"description": "Timestamp when the attached item was created.",
3748
"type": ["integer", "null"]
3849
},
3950
"resource_version": {
51+
"description": "Version of the attached item resource for tracking changes.",
4052
"type": ["integer", "null"]
4153
},
4254
"updated_at": {
55+
"description": "Timestamp when the attached item was last updated.",
4356
"type": ["integer", "null"]
4457
},
4558
"object": {
59+
"description": "Type of object representing the attached item.",
4660
"type": ["string", "null"]
4761
},
4862
"custom_fields": {
63+
"description": "Any additional custom fields associated with the attached item.",
4964
"$ref": "_definitions.json#/definitions/custom_fields"
5065
}
5166
}

airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/comment.json

+9
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,39 @@
44
"type": "object",
55
"properties": {
66
"id": {
7+
"description": "The unique identifier of the comment.",
78
"type": ["string", "null"]
89
},
910
"entity_type": {
11+
"description": "The type of entity (e.g., customer, invoice) that the comment is related to.",
1012
"type": ["string", "null"]
1113
},
1214
"added_by": {
15+
"description": "The user who added the comment.",
1316
"type": ["string", "null"]
1417
},
1518
"notes": {
19+
"description": "The actual content of the comment or notes added.",
1620
"type": ["string", "null"]
1721
},
1822
"created_at": {
23+
"description": "The timestamp indicating when the comment was created.",
1924
"type": ["integer", "null"]
2025
},
2126
"type": {
27+
"description": "The type or category of the comment (e.g., general, issue).",
2228
"type": ["string", "null"]
2329
},
2430
"entity_id": {
31+
"description": "The unique identifier of the entity the comment is associated with.",
2532
"type": ["string", "null"]
2633
},
2734
"object": {
35+
"description": "The object to which the comment is attached.",
2836
"type": ["string", "null"]
2937
},
3038
"custom_fields": {
39+
"description": "Additional custom fields associated with the comment.",
3140
"$ref": "_definitions.json#/definitions/custom_fields"
3241
}
3342
}

0 commit comments

Comments
 (0)