Skip to content

Commit

Permalink
✨ Source Getlago - Support custom API URL (#30572)
Browse files Browse the repository at this point in the history
Co-authored-by: Sajarin <[email protected]>
  • Loading branch information
jdenquin and sajarin authored Sep 27, 2023
1 parent 05c7269 commit 7e2193c
Show file tree
Hide file tree
Showing 13 changed files with 354 additions and 12 deletions.
2 changes: 1 addition & 1 deletion airbyte-integrations/connectors/source-getlago/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ COPY source_getlago ./source_getlago
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]

LABEL io.airbyte.version=0.1.0
LABEL io.airbyte.version=0.2.0
LABEL io.airbyte.name=airbyte/source-getlago
4 changes: 2 additions & 2 deletions airbyte-integrations/connectors/source-getlago/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Getlago Source
# Lago Source

This is the repository for the Getlago configuration based source connector.
This is the repository for the Lago configuration based source connector.
For information about how to use this connector within Airbyte, see [the documentation](https://docs.airbyte.io/integrations/sources/getlago).

## Local development
Expand Down
4 changes: 2 additions & 2 deletions airbyte-integrations/connectors/source-getlago/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ data:
connectorSubtype: api
connectorType: source
definitionId: e1a3866b-d3b2-43b6-b6d7-8c1ee4d7f53f
dockerImageTag: 0.1.0
dockerImageTag: 0.2.0
dockerRepository: airbyte/source-getlago
githubIssueLabel: source-getlago
icon: getlago.svg
license: MIT
name: GetLago
name: Lago
registries:
cloud:
enabled: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ definitions:
extractor:
field_path: ["{{ parameters['name'] }}"]
requester:
url_base: "https://api.getlago.com/api/v1"
url_base: "{{ config.get('api_url', 'https://api.getlago.com/api/v1') }}"
http_method: "GET"
authenticator:
type: BearerAuthenticator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
},
"amount_currency": {
"type": ["null", "string"]
},
"taxes": {
"type": ["array", "null"]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,21 @@
},
"group": {
"type": ["null", "object"]
},
"active_subscriptions_count": {
"type": ["null", "integer"]
},
"draft_invoices_count": {
"type": ["null", "integer"]
},
"plans_count": {
"type": ["null", "integer"]
},
"recurring": {
"type": ["null", "boolean"]
},
"weighted_interval": {
"type": ["null", "integer"]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,30 @@
},
"expiration_date": {
"type": ["null", "string"]
},
"billable_metric_codes": {
"type": ["null", "array"]
},
"description": {
"type": ["null", "string"]
},
"expiration_at": {
"type": ["null", "string"]
},
"limited_billable_metrics": {
"type": ["null", "boolean"]
},
"limited_plans": {
"type": ["null", "boolean"]
},
"plan_codes": {
"type": ["null", "array"]
},
"reusable": {
"type": ["null", "boolean"]
},
"terminated_at": {
"type": ["null", "string"]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,62 @@
"currency": {
"type": ["null", "string"]
},
"applicable_timezone": {
"type": ["null", "string"]
},
"billing_configuration": {
"type": ["null", "object"]
"additionalProperties": true,
"properties": {
"document_locale": {
"type": ["null", "string"]
},
"invoice_grace_period": {
"type": ["null", "integer"]
},
"payment_provider": {
"type": ["null", "string"]
},
"provider_customer_id": {
"type": ["null", "string"]
},
"provider_payment_methods": {
"items": {
"type": ["null", "string"]
},
"type": ["null", "array"]
},
"vat_rate": {
"type": ["null", "integer"]
}
},
"type": "object"
},
"country": {
"type": ["null", "string"]
},
"external_salesforce_id": {
"type": ["null", "integer"]
},
"metadata": {
"type": ["null", "array"]
},
"net_payment_term": {
"type": ["null", "integer"]
},
"tax_identification_number": {
"type": ["null", "integer"]
},
"taxes": {
"type": ["null", "array"]
},
"timezone": {
"type": ["null", "string"]
},
"updated_at": {
"type": ["null", "string"]
},
"zipcode": {
"type": ["null", "string"]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,174 @@
},
"file_url": {
"type": ["null", "string"]
},
"applied_taxes": {
"type": ["null", "array"]
},
"coupons_amount_cents": {
"type": ["null", "integer"]
},
"credit_amount_cents": {
"type": ["null", "integer"]
},
"credit_amount_currency": {
"type": ["null", "string"]
},
"credit_notes_amount_cents": {
"type": ["null", "integer"]
},
"currency": {
"type": ["null", "string"]
},
"customer": {
"additionalProperties": true,
"properties": {
"address_line1": {
"type": ["null", "string"]
},
"address_line2": {
"type": ["null", "string"]
},
"applicable_timezone": {
"type": ["null", "string"]
},
"billing_configuration": {
"additionalProperties": true,
"properties": {
"document_locale": {
"type": ["null", "string"]
},
"invoice_grace_period": {
"type": ["null", "integer"]
},
"payment_provider": {
"type": ["null", "string"]
},
"provider_customer_id": {
"type": ["null", "integer"]
},
"provider_payment_methods": {
"items": {
"type": ["null", "string"]
},
"type": ["null", "array"]
},
"vat_rate": {
"type": ["null", "integer"]
}
},
"type": "object"
},
"city": {
"type": ["null", "string"]
},
"country": {
"type": ["null", "string"]
},
"created_at": {
"type": ["null", "string"]
},
"currency": {
"type": ["null", "string"]
},
"email": {
"type": ["null", "string"]
},
"external_id": {
"type": ["null", "string"]
},
"external_salesforce_id": {
"type": ["null", "integer"]
},
"lago_id": {
"type": ["null", "string"]
},
"legal_name": {
"type": ["null", "string"]
},
"legal_number": {
"type": ["null", "string"]
},
"logo_url": {
"type": ["null", "string"]
},
"metadata": {
"type": ["null", "array"]
},
"name": {
"type": ["null", "string"]
},
"net_payment_term": {
"type": ["null", "integer"]
},
"phone": {
"type": ["null", "string"]
},
"sequential_id": {
"type": ["null", "integer"]
},
"slug": {
"type": ["null", "string"]
},
"state": {
"type": ["null", "string"]
},
"tax_identification_number": {
"type": ["null", "integer"]
},
"timezone": {
"type": ["null", "string"]
},
"updated_at": {
"type": ["null", "string"]
},
"url": {
"type": "null"
},
"zipcode": {
"type": ["null", "string"]
}
},
"type": "object"
},
"fees_amount_cents": {
"type": ["null", "integer"]
},
"legacy": {
"type": ["null", "boolean"]
},
"metadata": {
"type": ["null", "array"]
},
"net_payment_term": {
"type": ["null", "integer"]
},
"payment_due_date": {
"type": ["null", "string"]
},
"payment_status": {
"type": ["null", "string"]
},
"prepaid_credit_amount_cents": {
"type": ["null", "integer"]
},
"sub_total_excluding_taxes_amount_cents": {
"type": ["null", "integer"]
},
"sub_total_including_taxes_amount_cents": {
"type": ["null", "integer"]
},
"sub_total_vat_excluded_amount_cents": {
"type": ["null", "integer"]
},
"sub_total_vat_included_amount_cents": {
"type": ["null", "integer"]
},
"taxes_amount_cents": {
"type": ["null", "integer"]
},
"version_number": {
"type": ["null", "integer"]
}
}
}
Loading

0 comments on commit 7e2193c

Please sign in to comment.