-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Source Chargebee: added coupon (#10269)
* added coupon stream * changes * Update airbyte-integrations/connectors/source-chargebee/source_chargebee/streams.py Co-authored-by: Marcos Marx <marcosmarxm@users.noreply.github.com> Co-authored-by: Marcos Marx <marcosmarxm@users.noreply.github.com>
- Loading branch information
1 parent
f94f427
commit 1c89320
Showing
4 changed files
with
177 additions
and
1 deletion.
There are no files selected for viewing
164 changes: 164 additions & 0 deletions
164
airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/coupon.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,164 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"name": "Coupon", | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"type": ["string", "null"], | ||
"max-length": 40 | ||
}, | ||
"name": { | ||
"type": ["string", "null"], | ||
"max-length": 150 | ||
}, | ||
"invoice_name": { | ||
"type": ["string", "null"], | ||
"max-length": 150 | ||
}, | ||
"discount_type": { | ||
"type": ["string", "null"], | ||
"enum": [ | ||
"fixed_amount", | ||
"percentage" | ||
] | ||
}, | ||
"discount_percentage": { | ||
"type": ["double", "null"] | ||
}, | ||
"discount_amount": { | ||
"type": ["integer", "null"] | ||
}, | ||
"currency_code": { | ||
"type": ["string", "null"], | ||
"max-length": 3 | ||
}, | ||
"duration_type": { | ||
"type": ["string", "null"], | ||
"enum": [ | ||
"one_time", | ||
"forever", | ||
"limited_period" | ||
] | ||
}, | ||
"valid_till": { | ||
"type": ["integer", "null"] | ||
}, | ||
"max_redemptions": { | ||
"type": ["integer", "null"] | ||
}, | ||
"status": { | ||
"type": ["string", "null"], | ||
"enum": [ | ||
"active", | ||
"expired", | ||
"archived", | ||
"deleted" | ||
] | ||
}, | ||
"apply_on": { | ||
"type": ["string", "null"], | ||
"enum": [ | ||
"invoice_amount", | ||
"each_specified_item" | ||
] | ||
}, | ||
"created_at": { | ||
"type": ["integer", "null"] | ||
}, | ||
"archived_at": { | ||
"type": ["integer", "null"] | ||
}, | ||
"resource_version": { | ||
"type": ["integer", "null"] | ||
}, | ||
"updated_at": { | ||
"type": ["integer", "null"] | ||
}, | ||
"period": { | ||
"type": ["integer", "null"] | ||
}, | ||
"period_unit": { | ||
"type": ["string", "null"], | ||
"enum": [ | ||
"day", | ||
"week", | ||
"month", | ||
"year" | ||
] | ||
}, | ||
"redemptions": { | ||
"type": ["integer", "null"] | ||
}, | ||
"invoice_notes": { | ||
"type": ["string", "null"], | ||
"max-length": 2000 | ||
}, | ||
"item_constraints": { | ||
"type": ["array", "null"], | ||
"items": { | ||
"type": ["object", "null"], | ||
"properties": { | ||
"item_type": { | ||
"type": ["string", "null"], | ||
"enum": [ | ||
"plan", | ||
"adddon", | ||
"charge" | ||
] | ||
}, | ||
"constraint": { | ||
"type": ["string", "null"], | ||
"enum": [ | ||
"none", | ||
"all", | ||
"specific", | ||
"criteria" | ||
] | ||
}, | ||
"item_price_ids": { | ||
"type": ["array", "null"], | ||
"items": { | ||
"type": ["object", "null"], | ||
"properties": {} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"item_constraint_criteria": { | ||
"type": ["array", "null"], | ||
"items": ["object", "null"], | ||
"properties": { | ||
"item_type": { | ||
"type": ["string", "null"], | ||
"enum": [ | ||
"plan", | ||
"adddon", | ||
"charge" | ||
] | ||
}, | ||
"currencies": { | ||
"type": ["array", "null"], | ||
"items": { | ||
"type": ["object", "null"], | ||
"properties": {} | ||
} | ||
}, | ||
"item_family_ids": { | ||
"type": ["array", "null"], | ||
"items": { | ||
"type": ["object", "null"], | ||
"properties": {} | ||
} | ||
}, | ||
"item_price_periods": { | ||
"type": ["array", "null"], | ||
"items": { | ||
"type": ["object", "null"], | ||
"properties": {} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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