Skip to content

Commit

Permalink
add recurly
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosmarxm committed Aug 8, 2024
1 parent 4a10953 commit a4c5d3b
Show file tree
Hide file tree
Showing 17 changed files with 857 additions and 0 deletions.
9 changes: 9 additions & 0 deletions connectors/source_recurly/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Airbyte source_recurly dbt Package

This package contains dbt models for Airbyte Recurly source.

What it includes:

- A complete source description
- ERD model for the source
- Diagram documentation for the source
34 changes: 34 additions & 0 deletions connectors/source_recurly/dbt_project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: source_recurly

config-version: 2

version: 0.1.0

profile: airbyte

model-paths:
- models

macro-paths:
- macros

target-path: target

clean-targets:
- target
- dbt_modules
- logs

require-dbt-version:
- ">=1.0.0"
- <2.0.0

models:
source_recurly:
materialized: view
staging:
materialized: view

vars:
airbyte_database: airbyte_default_database
airbyte_schema: airbyte_default_schema
28 changes: 28 additions & 0 deletions connectors/source_recurly/models/source/account_notes.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
version: 2
sources:
- name: account_notes
tables:
- name: account_notes
description: Metadata for account_notes
columns:
- name: id
description: Unique identifier of the note
data_type: string
- name: object
description: Type of object
data_type: string
- name: account_id
description: The ID of the account
data_type: string
- name: message
description: The content of the note
data_type: string
- name: created_by
description: The user who created the note
data_type: string
- name: created_at
description: Date and time when the note was created
data_type: string
- name: updated_at
description: Date and time when the note was last updated
data_type: string
46 changes: 46 additions & 0 deletions connectors/source_recurly/models/source/add_ons.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
version: 2
sources:
- name: add_ons
tables:
- name: add_ons
description: Metadata for add_ons
columns:
- name: id
description: Unique identifier of the add-on
data_type: string
- name: object
description: Type of object
data_type: string
- name: code
description: Code assigned to the add-on
data_type: string
- name: name
description: Name of the add-on
data_type: string
- name: state
description: State of the add-on
data_type: string
- name: description
description: Description of the add-on
data_type: string
- name: account_id
description: The ID of the account associated with the add-on
data_type: string
- name: created_at
description: Date and time when the add-on was created
data_type: string
- name: updated_at
description: Date and time when the add-on was last updated
data_type: string
- name: deleted_at
description: Date and time when the add-on was deleted
data_type: string
- name: item_code
description: Item code associated with the add-on
data_type: string
- name: item_id
description: Item ID associated with the add-on
data_type: string
- name: currencies
description: Currencies applicable to the add-on
data_type: array
83 changes: 83 additions & 0 deletions connectors/source_recurly/models/source/billing_info.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
version: 2
sources:
- name: source_recurly
schema: "{{ var('airbyte_schema', target.schema) }}"
database: "{{ var('airbyte_database', target.database) }}"
loader: airbyte
loaded_at_field: _airbyte_extracted_at
tables:
- name: billing_infos
description: Metadata for billing_infos
columns:
- name: id
description: Unique identifier of the billing information
data_type: string
- name: object
description: Type of object
data_type: string
- name: account_id
description: The ID of the account
data_type: string
- name: first_name
description: First name of the billing contact
data_type: string
- name: last_name
description: Last name of the billing contact
data_type: string
- name: company
description: Company of the billing contact
data_type: string
- name: address
description: Address of the billing contact
data_type: string
- name: city
description: City of the billing contact
data_type: string
- name: state
description: State of the billing contact
data_type: string
- name: zip
description: ZIP code of the billing contact
data_type: string
- name: country
description: Country of the billing contact
data_type: string
- name: phone
description: Phone number of the billing contact
data_type: string
- name: vat_number
description: VAT number of the billing contact
data_type: string
- name: account_number
description: Account number
data_type: string
- name: bank_code
description: Bank code
data_type: string
- name: routing_number
description: Routing number
data_type: string
- name: iban
description: IBAN
data_type: string
- name: number
description: Credit card number
data_type: string
- name: month
description: Expiry month of the credit card
data_type: string
- name: year
description: Expiry year of the credit card
data_type: string
- name: address1
description: Address line 1
data_type: string
- name: address2
description: Address line 2
data_type: string
- name: verified
description: Whether the billing information is verified
data_type: boolean
- name: payment_type
description: Type of payment method
data_type: string
62 changes: 62 additions & 0 deletions connectors/source_recurly/models/source/coupons.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
version: 2
sources:
- name: source_recurly
schema: "{{ var('airbyte_schema', target.schema) }}"
database: "{{ var('airbyte_database', target.database) }}"
loader: airbyte
loaded_at_field: _airbyte_extracted_at
tables:
- name: coupons
description: Metadata for coupons
columns:
- name: id
description: Unique identifier of the coupon
data_type: string
- name: object
description: Type of object
data_type: string
- name: code
description: Code of the coupon
data_type: string
- name: name
description: Name of the coupon
data_type: string
- name: state
description: State of the coupon
data_type: string
- name: max_redemptions
description: Maximum number of redemptions
data_type: number
- name: max_redemptions_per_account
description: Maximum number of redemptions per account
data_type: number
- name: unique_coupon_codes_count
description: Count of unique coupon codes
data_type: number
- name: unique_code_template
description: Template for unique coupon codes
data_type: string
- name: unique_coupon_code
description: Unique coupon code
data_type: string
- name: duration
description: Duration of the coupon
data_type: string
- name: temporal_amount
description: Temporal amount of the coupon
data_type: number
- name: temporal_unit
description: Temporal unit of the coupon
data_type: string
- name: free_trial_unit
description: Free trial unit of the coupon
data_type: string
- name: free_trial_amount
description: Free trial amount of the coupon
data_type: number
- name: applies_to_all_plans
description: Whether the coupon applies to all plans
data_type: boolean
- name: applies_to_all_items
description: Whether the coupon applies to all items
data_type: boolean
38 changes: 38 additions & 0 deletions connectors/source_recurly/models/source/credit_payments.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
version: 2
sources:
- name: source_recurly
schema: "{{ var('airbyte_schema', target.schema) }}"
database: "{{ var('airbyte_database', target.database) }}"
loader: airbyte
loaded_at_field: _airbyte_extracted_at
tables:
- name: credit_payments
description: Metadata for credit_payments
columns:
- name: id
description: Unique identifier of the credit payment
data_type: string
- name: object
description: Type of object
data_type: string
- name: account_id
description: The ID of the account associated with the credit payment
data_type: string
- name: amount
description: The amount of the credit payment
data_type: number
- name: currency
description: The currency of the credit payment
data_type: string
- name: invoice_id
description: The ID of the invoice associated with the credit payment
data_type: string
- name: created_at
description: Date and time when the credit payment was created
data_type: string
- name: updated_at
description: Date and time when the credit payment was last updated
data_type: string
- name: description
description: Description of the credit payment
data_type: string
29 changes: 29 additions & 0 deletions connectors/source_recurly/models/source/export_dates.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
version: 2
sources:
- name: source_recurly
schema: "{{ var('airbyte_schema', target.schema) }}"
database: "{{ var('airbyte_database', target.database) }}"
loader: airbyte
loaded_at_field: _airbyte_extracted_at
tables:
- name: export_dates
description: Metadata for export_dates
columns:
- name: id
description: Unique identifier of the export date
data_type: string
- name: object
description: Type of object
data_type: string
- name: account_id
description: The ID of the account associated with the export date
data_type: string
- name: export_date
description: The export date
data_type: string
- name: created_at
description: Date and time when the export date was created
data_type: string
- name: updated_at
description: Date and time when the export date was last updated
data_type: string
Loading

0 comments on commit a4c5d3b

Please sign in to comment.