From a4c5d3b2ace46c4f9090bda09614becf917b8fcb Mon Sep 17 00:00:00 2001 From: marcosmarxm Date: Thu, 8 Aug 2024 10:24:52 -0300 Subject: [PATCH] add recurly --- connectors/source_recurly/README.md | 9 ++ connectors/source_recurly/dbt_project.yml | 34 ++++++++ .../models/source/account_notes.yaml | 28 ++++++ .../source_recurly/models/source/add_ons.yaml | 46 ++++++++++ .../models/source/billing_info.yaml | 83 ++++++++++++++++++ .../source_recurly/models/source/coupons.yaml | 62 +++++++++++++ .../models/source/credit_payments.yaml | 38 ++++++++ .../models/source/export_dates.yaml | 29 +++++++ .../models/source/invoices.yaml | 80 +++++++++++++++++ .../models/source/line_items.yaml | 77 +++++++++++++++++ .../models/source/measured_units.yaml | 26 ++++++ .../source_recurly/models/source/plans.yaml | 50 +++++++++++ .../models/source/shipping_addresses.yaml | 62 +++++++++++++ .../models/source/shipping_methods.yaml | 32 +++++++ .../models/source/subscriptions.yaml | 86 +++++++++++++++++++ .../models/source/transactions.yaml | 65 ++++++++++++++ .../models/source/unique_coupons.yaml | 50 +++++++++++ 17 files changed, 857 insertions(+) create mode 100644 connectors/source_recurly/README.md create mode 100644 connectors/source_recurly/dbt_project.yml create mode 100644 connectors/source_recurly/models/source/account_notes.yaml create mode 100644 connectors/source_recurly/models/source/add_ons.yaml create mode 100644 connectors/source_recurly/models/source/billing_info.yaml create mode 100644 connectors/source_recurly/models/source/coupons.yaml create mode 100644 connectors/source_recurly/models/source/credit_payments.yaml create mode 100644 connectors/source_recurly/models/source/export_dates.yaml create mode 100644 connectors/source_recurly/models/source/invoices.yaml create mode 100644 connectors/source_recurly/models/source/line_items.yaml create mode 100644 connectors/source_recurly/models/source/measured_units.yaml create mode 100644 connectors/source_recurly/models/source/plans.yaml create mode 100644 connectors/source_recurly/models/source/shipping_addresses.yaml create mode 100644 connectors/source_recurly/models/source/shipping_methods.yaml create mode 100644 connectors/source_recurly/models/source/subscriptions.yaml create mode 100644 connectors/source_recurly/models/source/transactions.yaml create mode 100644 connectors/source_recurly/models/source/unique_coupons.yaml diff --git a/connectors/source_recurly/README.md b/connectors/source_recurly/README.md new file mode 100644 index 00000000..d2f4adf1 --- /dev/null +++ b/connectors/source_recurly/README.md @@ -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 diff --git a/connectors/source_recurly/dbt_project.yml b/connectors/source_recurly/dbt_project.yml new file mode 100644 index 00000000..bddf50e8 --- /dev/null +++ b/connectors/source_recurly/dbt_project.yml @@ -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 diff --git a/connectors/source_recurly/models/source/account_notes.yaml b/connectors/source_recurly/models/source/account_notes.yaml new file mode 100644 index 00000000..3d5ee47b --- /dev/null +++ b/connectors/source_recurly/models/source/account_notes.yaml @@ -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 diff --git a/connectors/source_recurly/models/source/add_ons.yaml b/connectors/source_recurly/models/source/add_ons.yaml new file mode 100644 index 00000000..0962dbc0 --- /dev/null +++ b/connectors/source_recurly/models/source/add_ons.yaml @@ -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 diff --git a/connectors/source_recurly/models/source/billing_info.yaml b/connectors/source_recurly/models/source/billing_info.yaml new file mode 100644 index 00000000..baacd4f5 --- /dev/null +++ b/connectors/source_recurly/models/source/billing_info.yaml @@ -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 diff --git a/connectors/source_recurly/models/source/coupons.yaml b/connectors/source_recurly/models/source/coupons.yaml new file mode 100644 index 00000000..f87b94bf --- /dev/null +++ b/connectors/source_recurly/models/source/coupons.yaml @@ -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 diff --git a/connectors/source_recurly/models/source/credit_payments.yaml b/connectors/source_recurly/models/source/credit_payments.yaml new file mode 100644 index 00000000..58e2b159 --- /dev/null +++ b/connectors/source_recurly/models/source/credit_payments.yaml @@ -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 diff --git a/connectors/source_recurly/models/source/export_dates.yaml b/connectors/source_recurly/models/source/export_dates.yaml new file mode 100644 index 00000000..641d5748 --- /dev/null +++ b/connectors/source_recurly/models/source/export_dates.yaml @@ -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 diff --git a/connectors/source_recurly/models/source/invoices.yaml b/connectors/source_recurly/models/source/invoices.yaml new file mode 100644 index 00000000..709f93eb --- /dev/null +++ b/connectors/source_recurly/models/source/invoices.yaml @@ -0,0 +1,80 @@ +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: invoices + description: Metadata for invoices + columns: + - name: id + description: Unique identifier of the invoice + data_type: string + - name: object + description: Type of object + data_type: string + - name: account_id + description: The ID of the account associated with the invoice + data_type: string + - name: state + description: The state of the invoice + data_type: string + - name: invoice_number + description: The invoice number + data_type: string + - name: vat_number + description: The VAT number associated with the invoice + data_type: string + - name: subtotal + description: The subtotal of the invoice + data_type: number + - name: discount + description: The discount applied to the invoice + data_type: number + - name: tax + description: The tax applied to the invoice + data_type: number + - name: total + description: The total amount of the invoice + data_type: number + - name: currency + description: The currency of the invoice + data_type: string + - name: created_at + description: Date and time when the invoice was created + data_type: string + - name: updated_at + description: Date and time when the invoice was last updated + data_type: string + - name: due_at + description: Date and time when the invoice is due + data_type: string + - name: collection_method + description: The collection method for the invoice + data_type: string + - name: net_terms + description: The net terms of the invoice + data_type: number + - name: po_number + description: The purchase order number associated with the invoice + data_type: string + - name: line_items + description: Line items of the invoice + data_type: array + - name: address + description: The address associated with the invoice + data_type: string + - name: refund + description: Refund information associated with the invoice + data_type: string + - name: customer_notes + description: Customer notes on the invoice + data_type: string + - name: terms_and_conditions + description: Terms and conditions of the invoice + data_type: string + - name: vat_reverse_charge_notes + description: VAT reverse charge notes of the invoice + data_type: string diff --git a/connectors/source_recurly/models/source/line_items.yaml b/connectors/source_recurly/models/source/line_items.yaml new file mode 100644 index 00000000..f9a980d8 --- /dev/null +++ b/connectors/source_recurly/models/source/line_items.yaml @@ -0,0 +1,77 @@ +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: line_items + description: Metadata for line_items + columns: + - name: id + description: Unique identifier of the line item + data_type: string + - name: object + description: Type of object + data_type: string + - name: invoice_id + description: The ID of the invoice associated with the line item + data_type: string + - name: subscription_id + description: The ID of the subscription associated with the line item + data_type: string + - name: plan_id + description: The ID of the plan associated with the line item + data_type: string + - name: add_on_id + description: The ID of the add-on associated with the line item + data_type: string + - name: code + description: The code of the line item + data_type: string + - name: description + description: The description of the line item + data_type: string + - name: state + description: The state of the line item + data_type: string + - name: unit_amount + description: The unit amount of the line item + data_type: number + - name: quantity + description: The quantity of the line item + data_type: number + - name: subtotal + description: The subtotal of the line item + data_type: number + - name: discount + description: The discount applied to the line item + data_type: number + - name: tax + description: The tax applied to the line item + data_type: number + - name: total + description: The total amount of the line item + data_type: number + - name: unit_of_measure + description: The unit of measure of the line item + data_type: string + - name: created_at + description: Date and time when the line item was created + data_type: string + - name: updated_at + description: Date and time when the line item was last updated + data_type: string + - name: deleted_at + description: Date and time when the line item was deleted + data_type: string + - name: product_code + description: The product code associated with the line item + data_type: string + - name: external_account_code + description: The external account code associated with the line item + data_type: string + - name: external_account_id + description: The external account ID associated with the line item + data_type: string diff --git a/connectors/source_recurly/models/source/measured_units.yaml b/connectors/source_recurly/models/source/measured_units.yaml new file mode 100644 index 00000000..94cf0d91 --- /dev/null +++ b/connectors/source_recurly/models/source/measured_units.yaml @@ -0,0 +1,26 @@ +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: measured_units + description: Metadata for measured_units + columns: + - name: id + description: Unique identifier of the measured unit + data_type: string + - name: object + description: Type of object + data_type: string + - name: name + description: Name of the measured unit + data_type: string + - name: display_name + description: Display name of the measured unit + data_type: string + - name: description + description: Description of the measured unit + data_type: string diff --git a/connectors/source_recurly/models/source/plans.yaml b/connectors/source_recurly/models/source/plans.yaml new file mode 100644 index 00000000..9fd0bea6 --- /dev/null +++ b/connectors/source_recurly/models/source/plans.yaml @@ -0,0 +1,50 @@ +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: plans + description: Metadata for plans + columns: + - name: id + description: Unique identifier of the plan + data_type: string + - name: object + description: Type of object + data_type: string + - name: code + description: Code of the plan + data_type: string + - name: name + description: Name of the plan + data_type: string + - name: description + description: Description of the plan + data_type: string + - name: interval_unit + description: Interval unit of the plan + data_type: string + - name: interval_length + description: Interval length of the plan + data_type: number + - name: trial_unit + description: Trial unit of the plan + data_type: string + - name: trial_length + description: Trial length of the plan + data_type: number + - name: unit_amount + description: Unit amount of the plan + data_type: number + - name: setup_fee + description: Setup fee of the plan + data_type: number + - name: created_at + description: Date and time when the plan was created + data_type: string + - name: updated_at + description: Date and time when the plan was last updated + data_type: string diff --git a/connectors/source_recurly/models/source/shipping_addresses.yaml b/connectors/source_recurly/models/source/shipping_addresses.yaml new file mode 100644 index 00000000..781d5f40 --- /dev/null +++ b/connectors/source_recurly/models/source/shipping_addresses.yaml @@ -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: shipping_addresses + description: Metadata for shipping_addresses + columns: + - name: id + description: Unique identifier of the shipping address + data_type: string + - name: object + description: Type of object + data_type: string + - name: account_id + description: The ID of the account associated with the shipping address + data_type: string + - name: first_name + description: First name of the shipping address contact + data_type: string + - name: last_name + description: Last name of the shipping address contact + data_type: string + - name: company + description: Company of the shipping address contact + data_type: string + - name: email + description: Email of the shipping address contact + data_type: string + - name: phone + description: Phone number of the shipping address contact + data_type: string + - name: vat_number + description: VAT number of the shipping address contact + data_type: string + - name: address1 + description: Address line 1 of the shipping address + data_type: string + - name: address2 + description: Address line 2 of the shipping address + data_type: string + - name: city + description: City of the shipping address + data_type: string + - name: state + description: State of the shipping address + data_type: string + - name: zip + description: ZIP code of the shipping address + data_type: string + - name: country + description: Country of the shipping address + data_type: string + - name: created_at + description: Date and time when the shipping address was created + data_type: string + - name: updated_at + description: Date and time when the shipping address was last updated + data_type: string diff --git a/connectors/source_recurly/models/source/shipping_methods.yaml b/connectors/source_recurly/models/source/shipping_methods.yaml new file mode 100644 index 00000000..cfc91da0 --- /dev/null +++ b/connectors/source_recurly/models/source/shipping_methods.yaml @@ -0,0 +1,32 @@ +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: shipping_methods + description: Metadata for shipping_methods + columns: + - name: id + description: Unique identifier of the shipping method + data_type: string + - name: object + description: Type of object + data_type: string + - name: code + description: Code of the shipping method + data_type: string + - name: name + description: Name of the shipping method + data_type: string + - name: description + description: Description of the shipping method + data_type: string + - name: created_at + description: Date and time when the shipping method was created + data_type: string + - name: updated_at + description: Date and time when the shipping method was last updated + data_type: string diff --git a/connectors/source_recurly/models/source/subscriptions.yaml b/connectors/source_recurly/models/source/subscriptions.yaml new file mode 100644 index 00000000..d97d9b47 --- /dev/null +++ b/connectors/source_recurly/models/source/subscriptions.yaml @@ -0,0 +1,86 @@ +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: subscriptions + description: Metadata for subscriptions + columns: + - name: id + description: Unique identifier of the subscription + data_type: string + - name: object + description: Type of object + data_type: string + - name: account_id + description: The ID of the account associated with the subscription + data_type: string + - name: plan_id + description: The ID of the plan associated with the subscription + data_type: string + - name: state + description: The state of the subscription + data_type: string + - name: quantity + description: The quantity of the subscription + data_type: number + - name: unit_amount + description: The unit amount of the subscription + data_type: number + - name: setup_fee + description: The setup fee of the subscription + data_type: number + - name: tax + description: The tax applied to the subscription + data_type: number + - name: total + description: The total amount of the subscription + data_type: number + - name: currency + description: The currency of the subscription + data_type: string + - name: created_at + description: Date and time when the subscription was created + data_type: string + - name: updated_at + description: Date and time when the subscription was last updated + data_type: string + - name: trial_started_at + description: Date and time when the trial started + data_type: string + - name: trial_ends_at + description: Date and time when the trial ends + data_type: string + - name: activated_at + description: Date and time when the subscription was activated + data_type: string + - name: canceled_at + description: Date and time when the subscription was canceled + data_type: string + - name: expires_at + description: Date and time when the subscription expires + data_type: string + - name: renewal_billing_cycle + description: The renewal billing cycle of the subscription + data_type: number + - name: custom_fields + description: Custom fields associated with the subscription + data_type: array + - name: invoice + description: Invoice associated with the subscription + data_type: string + - name: dunning_campaign + description: Dunning campaign associated with the subscription + data_type: string + - name: collection_method + description: Collection method of the subscription + data_type: string + - name: paused_at + description: Date and time when the subscription was paused + data_type: string + - name: remaining_pause_cycles + description: Remaining pause cycles of the subscription + data_type: number diff --git a/connectors/source_recurly/models/source/transactions.yaml b/connectors/source_recurly/models/source/transactions.yaml new file mode 100644 index 00000000..5f73b59d --- /dev/null +++ b/connectors/source_recurly/models/source/transactions.yaml @@ -0,0 +1,65 @@ +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: transactions + description: Metadata for transactions + columns: + - name: id + description: Unique identifier of the transaction + data_type: string + - name: object + description: Type of object + data_type: string + - name: account_id + description: The ID of the account associated with the transaction + data_type: string + - name: invoice_id + description: The ID of the invoice associated with the transaction + data_type: string + - name: type + description: The type of the transaction + data_type: string + - name: origin + description: The origin of the transaction + data_type: string + - name: currency + description: The currency of the transaction + data_type: string + - name: amount + description: The amount of the transaction + data_type: number + - name: status + description: The status of the transaction + data_type: string + - name: test + description: Whether the transaction is a test + data_type: boolean + - name: voided_at + description: Date and time when the transaction was voided + data_type: string + - name: collected_at + description: Date and time when the transaction was collected + data_type: string + - name: gateway_id + description: The gateway ID associated with the transaction + data_type: string + - name: ip_address + description: The IP address of the transaction + data_type: string + - name: gateway + description: The gateway used for the transaction + data_type: string + - name: error_code + description: The error code of the transaction + data_type: string + - name: message + description: The message associated with the transaction + data_type: string + - name: payment_method + description: The payment method used for the transaction + data_type: string diff --git a/connectors/source_recurly/models/source/unique_coupons.yaml b/connectors/source_recurly/models/source/unique_coupons.yaml new file mode 100644 index 00000000..06bf4bdf --- /dev/null +++ b/connectors/source_recurly/models/source/unique_coupons.yaml @@ -0,0 +1,50 @@ +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: unique_coupons + description: Metadata for unique_coupons + columns: + - name: id + description: Unique identifier of the unique coupon + data_type: string + - name: object + description: Type of object + data_type: string + - name: code + description: Code of the unique coupon + data_type: string + - name: name + description: Name of the unique coupon + data_type: string + - name: state + description: State of the unique coupon + data_type: string + - name: discount + description: Discount details of the unique coupon + data_type: string + - name: applies_to_all_plans + description: Whether the unique coupon applies to all plans + data_type: boolean + - name: applies_to_all_items + description: Whether the unique coupon applies to all items + data_type: boolean + - name: max_redemptions + description: Maximum number of redemptions for the unique coupon + data_type: number + - name: max_redemptions_per_account + description: Maximum number of redemptions per account for the unique coupon + data_type: number + - name: created_at + description: Date and time when the unique coupon was created + data_type: string + - name: updated_at + description: Date and time when the unique coupon was last updated + data_type: string + - name: expired_at + description: Date and time when the unique coupon expired + data_type: string