Commit 2acff02
authored
feat: add base Lago API codebase from upstream v1.46.0 (#2)
Integrates the core API codebase from the upstream repository to serve
as the foundation for the custom billing system.
- Upstream Source: https://github.com/getlago/lago-api/
- Release Tag: v1.46.0
This baseline commit includes the initial application logic1 parent 1a67987 commit 2acff02
5,749 files changed
Lines changed: 598291 additions & 0 deletions
File tree
- .github/workflows
- app
- assets/config
- channels
- application_cable
- config
- consumers
- contracts/queries
- controllers
- admin
- api
- v1
- analytics
- credit_notes
- customers
- wallets
- data_api
- features
- plans
- charges
- entitlements
- subscriptions
- charges
- entitlements
- wallets
- concerns
- data_api
- v1
- dev_tools
- graphql
- concerns
- extensions
- mutations
- add_ons
- adjusted_fees
- ai_conversations
- api_keys
- applied_coupons
- auth
- google
- okta
- billable_metrics
- billing_entities
- charge_filters
- charges
- coupons
- credit_notes
- customer_portal
- wallet_transactions
- customers
- data_exports
- credit_notes
- invoices
- dunning_campaigns
- entitlement
- fixed_charges
- integration_collection_mappings
- integration_items
- integration_mappings
- integrations
- anrok
- avalara
- hubspot
- netsuite
- okta
- salesforce
- xero
- invites
- invoice_custom_sections
- invoices
- memberships
- organizations
- password_resets
- payment_methods
- payment_providers
- adyen
- cashfree
- flutterwave
- gocardless
- moneyhash
- stripe
- payment_receipts
- payment_requests
- payments
- plans
- pricing_units
- quote_versions
- quotes
- roles
- subscriptions
- alerts
- taxes
- wallet_transactions
- wallets
- alerts
- webhook_endpoints
- webhooks
- resolvers
- analytics
- auth/google
- credit_notes
- customer_portal
- analytics
- customers
- customers
- data_api
- mrrs
- revenue_streams
- usages
- entitlement
- integrations
- subscriptions
- superset
- wallets
- sources
- types
- activity_logs
- add_ons
- adjusted_fees
- ai_conversations
- analytics
- gross_revenues
- invoice_collections
- invoiced_usages
- mrrs
- overdue_balances
- api_keys
- api_logs
- applied_add_ons
- applied_coupons
- applied_pricing_units
- auth
- google
- okta
- billable_metric_filters
- billable_metrics
- billing_entities
- charge_filters
- charge_models
- charges
- commitments
- coupons
- credit_note_items
- credit_notes
- applied_taxes
- customer_portal
- customers
- organizations
- wallet_transactions
- wallets
- customers
- metadata
- usage
- data_api
- mrrs
- plans
- prepaid_credits
- revenue_streams
- customers
- plans
- usages
- aggregated_amounts
- forecasted
- invoiced
- data_exports
- credit_notes
- invoices
- dunning_campaign_thresholds
- dunning_campaigns
- emails
- entitlement
- error_details
- events
- fees
- amount_details
- applied_taxes
- fixed_charges
- graphql_subscriptions
- integration_collection_mappings
- integration_customers
- integration_items
- integration_mappings
- integrations
- accounts
- anrok
- avalara
- hubspot
- netsuite
- okta
- salesforce
- subsidiaries
- tax_objects
- xero
- invites
- invoice_custom_sections
- invoice_subscriptions
- invoices
- applied_taxes
- metadata
- memberships
- metadata
- organizations
- payables
- payloads
- payment_methods
- payment_provider_customers
- payment_providers
- payment_receipts
- payment_requests
- payments
- plans
- pricing_unit_usages
- pricing_units
- quote_versions
- quotes
- reset_passwords
- roles
- security_logs
- subscriptions
- superset/dashboard
- taxes
- usage_monitoring/alerts
- usage_thresholds
- utils
- wallet_transaction_consumptions
- wallet_transaction_fundings
- wallet_transactions
- wallets
- recurring_transaction_rules
- webhook_endpoints
- webhooks
- validators
- jobs
- ai_conversations
- billable_metric_filters
- billable_metrics
- billing_entities/taxes
- charge_filters
- charges
- clock
- api_keys
- concerns
- credit_notes
- provider_taxes
- refunds
- customers
- daily_usages
- data_exports
- database_migrations
- dunning_campaigns
- events
- stores/clickhouse
- enriched_store_migration
- fees
- fixed_charges
- inbound_webhooks
- integration_customers
- integrations
- aggregator
- credit_notes
- invoices
- hubspot
- payments
- subscriptions/hubspot
- avalara
- hubspot
- companies
- contacts
- invoices
- subscriptions
- invoices
- payments
- provider_taxes
- lifetime_usages
- payment_provider_customers
- payment_providers
- adyen
- cashfree
- flutterwave
- gocardless
- moneyhash
- stripe
- customers
- payment_receipts
- payment_requests/payments
- payments
- plans
- subscriptions
- activation_rules/payment
- taxes
- usage_monitoring
- wallet_transactions
- legacy_inputs
- mailers
- models
- add_on
- analytics
- billing_entity
- charge
- clickhouse
- commitment
- concerns
- organizations
- credit_note
- customer
- entitlement
- events
- fee
- fixed_charge
- integration_collection_mappings
- integration_customers
- integration_mappings
- integrations
- invoice
- metadata
- payment_methods
- payment_provider_customers
- payment_providers
- payment_request
- plan
- recurring_transaction_rule
- subscription
- activation_rule
- usage_monitoring
- wallet_transaction
- wallet
- queries
- entitlement
- usage_monitoring
- serializers
- admin
- e_invoices
- credit_notes
- factur_x
- ubl
- factur_x
- invoices
- factur_x
- ubl
- payments
- factur_x
- ubl
- ubl
- v1
- analytics
- credit_notes
- customers
- entitlement
- errors
- fees
- integrations
- taxes
- invoices
- payment_providers
- subscriptions
- usage_monitoring
- wallets
- services
- add_ons
- adjusted_fees
- admin/organizations
- ai_conversations
- analytics
- api_keys
- applied_coupons
- applied_pricing_units
- auth
- okta
- billable_metric_filters
- billable_metrics
- aggregations
- breakdown
- prorated_aggregations
- billing_entities
- taxes
- charge_filters
- charge_models
- amount_details
- filter_properties
- charges
- estimate_instant
- pay_in_advance
- validators
- commitments
- minimum
- in_advance
- in_arrears
- coupons
- credit_notes
- provider_taxes
- refunds
- credits
- customer_portal
- customers
- concerns
- metadata
- daily_usages
- data_api
- mrrs
- revenue_streams
- usages
- data_exports
- csv
- dunning_campaigns
- e_invoices
- credit_notes
- factur_x
- ubl
- invoices
- factur_x
- ubl
- payments
- factur_x
- ubl
- emails
- entitlement
- concerns
- error_details
- events
- stores
- clickhouse
- enriched_store_migration
- postgres
- utils
- fees
- commitments/minimum
- estimate_instant
- fixed_charge_events
- aggregations
- fixed_charges
- idempotency_records
- inbound_webhooks
- integration_collection_mappings
- integration_customers
- integration_mappings
- integrations
- aggregator
- companies
- payloads
- contacts
- payloads
- credit_notes
- payloads
- invoices
- hubspot
- payloads
- payments
- payloads
- subscriptions
- hubspot
- payloads
- taxes
- avalara
- credit_notes
- payloads
- invoices
- payloads
- anrok
- avalara
- hubspot
- companies
- contacts
- invoices
- subscriptions
- netsuite
- okta
- salesforce
- invoices
- xero
- invites
- invoice_custom_sections
- invoice_settlements
- invoices
- metadata
- payments
- payment_providers
- preview
- provider_taxes
- lifetime_usages
- usage_thresholds
- memberships
- metadata
- middlewares
- order_forms
- organizations
- password_resets
- payment_intents
- payment_methods
- payment_provider_customers
- stripe
- payment_providers
- adyen
- customers
- payments
- webhooks
- cashfree
- customers
- payments
- webhooks
- flutterwave
- customers
- webhooks
- gocardless
- customers
- payments
- webhooks
- moneyhash
- customers
- payments
- stripe
- customers
- payments
- webhooks
- payment_receipts
- payment_requests
- payments
- payment_providers
- payments
- plans
- pricing_units
- quote_versions
- quotes
- roles
- subscriptions
- activation_rules
- payment
- charge_filters
- concerns
- dates
- taxes
- usage_monitoring
- alerts
- concerns
- usage_thresholds
- user_devices
- utils
- validators
- wallet_transactions
- payments
- wallets
- balance
- recurring_transaction_rules
- webhook_endpoints
- webhooks
- credit_notes
- customers
- dunning_campaigns
- events
- features
- fees
- integrations
- taxes
- invoices
- payment_providers
- payment_receipts
- payment_requests
- payments
- plans
- subscriptions
- usage_monitoring
- wallet_transactions
- wallets
- support
- validators
- views
- api_key_mailer
- credit_note_mailer
- data_export_mailer
- helpers
- invoice_mailer
- layouts
- organization_mailer
- password_reset_mailer
- payment_receipt_mailer
- payment_request_mailer
- templates
- credit_notes
- invoices
- v3
- v4
- payment_receipts
- v1
- benchmarks
- bin
- ci/clickhouse
- config
- environments
- initializers
- locales
- de
- en
- es
- fr
- it
- nb
- pt-BR
- sv
- zh-TW
- sidekiq
- db
- clickhouse_migrate
- cloud
- migrate
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
0 commit comments