Coverage report: 47%

Files Functions Classes

coverage.py v7.10.6, created at 2025-12-05 17:15 +0000

File statements missing excluded branches partial coverage
polar/__init__.py 0 0 0 0 0 100%
polar/account/__init__.py 0 0 0 0 0 100%
polar/account/endpoints.py 59 32 0 16 0 36%
polar/account/repository.py 25 13 0 4 0 41%
polar/account/schemas.py 157 0 0 0 0 100%
polar/account/service.py 193 146 0 48 0 20%
polar/account/sorting.py 7 0 0 0 0 100%
polar/api.py 94 0 0 0 0 100%
polar/app.py 112 14 0 14 5 82%
polar/auth/__init__.py 0 0 0 0 0 100%
polar/auth/dependencies.py 68 5 0 20 3 91%
polar/auth/endpoints.py 16 2 0 0 0 88%
polar/auth/middlewares.py 88 22 0 24 3 67%
polar/auth/models.py 60 12 0 22 7 77%
polar/auth/routing.py 32 0 0 12 0 100%
polar/auth/scope.py 81 1 0 0 0 99%
polar/auth/service.py 70 39 0 12 1 39%
polar/auth/tasks.py 9 2 0 0 0 78%
polar/benefit/__init__.py 0 0 0 0 0 100%
polar/benefit/auth.py 9 0 0 0 0 100%
polar/benefit/endpoints.py 53 21 0 8 0 52%
polar/benefit/grant/__init__.py 0 0 0 0 0 100%
polar/benefit/grant/endpoints.py 23 5 0 4 1 70%
polar/benefit/grant/repository.py 41 19 0 6 1 49%
polar/benefit/grant/schemas.py 0 0 0 0 0 100%
polar/benefit/grant/scope.py 33 23 0 14 0 26%
polar/benefit/grant/service.py 210 151 0 54 4 25%
polar/benefit/grant/sorting.py 9 0 0 0 0 100%
polar/benefit/registry.py 15 1 0 0 0 93%
polar/benefit/repository.py 27 15 0 10 0 32%
polar/benefit/schemas.py 58 0 0 2 0 100%
polar/benefit/service.py 80 50 0 18 0 33%
polar/benefit/sorting.py 9 0 0 0 0 100%
polar/benefit/strategies/__init__.py 8 0 0 0 0 100%
polar/benefit/strategies/base/__init__.py 3 0 0 0 0 100%
polar/benefit/strategies/base/properties.py 3 0 0 0 0 100%
polar/benefit/strategies/base/schemas.py 42 1 0 6 0 98%
polar/benefit/strategies/base/service.py 42 15 0 2 0 66%
polar/benefit/strategies/custom/__init__.py 0 0 0 0 0 100%
polar/benefit/strategies/custom/properties.py 4 0 0 2 0 100%
polar/benefit/strategies/custom/schemas.py 26 0 0 0 0 100%
polar/benefit/strategies/custom/service.py 16 5 0 0 0 69%
polar/benefit/strategies/discord/__init__.py 0 0 0 0 0 100%
polar/benefit/strategies/discord/properties.py 10 0 0 0 0 100%
polar/benefit/strategies/discord/schemas.py 41 6 0 0 0 85%
polar/benefit/strategies/discord/service.py 100 78 0 24 0 18%
polar/benefit/strategies/downloadables/__init__.py 0 0 0 0 0 100%
polar/benefit/strategies/downloadables/properties.py 7 0 0 0 0 100%
polar/benefit/strategies/downloadables/schemas.py 42 12 0 6 0 62%
polar/benefit/strategies/downloadables/service.py 39 20 0 6 0 42%
polar/benefit/strategies/github_repository/__init__.py 0 0 0 0 0 100%
polar/benefit/strategies/github_repository/properties.py 12 0 0 0 0 100%
polar/benefit/strategies/github_repository/schemas.py 33 0 0 0 0 100%
polar/benefit/strategies/github_repository/service.py 120 96 0 34 1 16%
polar/benefit/strategies/license_keys/__init__.py 0 0 0 0 0 100%
polar/benefit/strategies/license_keys/properties.py 16 0 0 0 0 100%
polar/benefit/strategies/license_keys/schemas.py 41 0 0 0 0 100%
polar/benefit/strategies/license_keys/service.py 37 19 0 4 0 44%
polar/benefit/strategies/meter_credit/__init__.py 0 0 0 0 0 100%
polar/benefit/strategies/meter_credit/properties.py 9 0 0 0 0 100%
polar/benefit/strategies/meter_credit/schemas.py 31 0 0 0 0 100%
polar/benefit/strategies/meter_credit/service.py 59 38 0 12 0 30%
polar/benefit/tasks.py 142 98 0 24 0 28%
polar/billing_entry/__init__.py 0 0 0 0 0 100%
polar/billing_entry/repository.py 38 20 0 4 0 43%
polar/billing_entry/service.py 119 72 0 22 0 33%
polar/billing_entry/tasks.py 8 3 0 0 0 62%
polar/campaign/__init__.py 0 0 0 0 0 100%
polar/campaign/service.py 18 10 0 4 0 36%
polar/checkout/__init__.py 0 0 0 0 0 100%
polar/checkout/auth.py 12 0 0 0 0 100%
polar/checkout/endpoints.py 73 21 0 4 0 68%
polar/checkout/eventstream.py 23 1 0 8 4 84%
polar/checkout/guard.py 12 6 0 2 1 50%
polar/checkout/ip_geolocation.py 30 15 0 6 1 44%
polar/checkout/price.py 7 4 0 4 0 27%
polar/checkout/repository.py 35 19 0 10 0 36%
polar/checkout/schemas.py 188 8 0 6 0 95%
polar/checkout/service.py 829 706 0 374 2 11%
polar/checkout/sorting.py 9 0 0 0 0 100%
polar/checkout/tasks.py 24 12 0 4 0 50%
polar/checkout_link/__init__.py 0 0 0 0 0 100%
polar/checkout_link/auth.py 10 0 0 0 0 100%
polar/checkout_link/endpoints.py 71 34 0 14 0 44%
polar/checkout_link/repository.py 36 21 0 10 1 35%
polar/checkout_link/schemas.py 61 1 0 0 0 98%
polar/checkout_link/service.py 118 88 0 48 0 18%
polar/checkout_link/sorting.py 10 0 0 0 0 100%
polar/config.py 190 10 0 6 2 93%
polar/currency/__init__.py 0 0 0 0 0 100%
polar/currency/schemas.py 5 5 0 0 0 0%
polar/custom_field/__init__.py 0 0 0 0 0 100%
polar/custom_field/attachment.py 18 1 0 4 1 91%
polar/custom_field/auth.py 10 0 0 0 0 100%
polar/custom_field/data.py 33 9 0 6 3 69%
polar/custom_field/endpoints.py 44 15 0 6 0 58%
polar/custom_field/schemas.py 79 0 0 0 0 100%
polar/custom_field/service.py 93 64 0 38 0 24%
polar/custom_field/sorting.py 10 0 0 0 0 100%
polar/customer/__init__.py 0 0 0 0 0 100%
polar/customer/auth.py 10 0 0 0 0 100%
polar/customer/endpoints.py 135 89 0 40 0 26%
polar/customer/repository.py 112 80 0 30 0 23%
polar/customer/schemas/__init__.py 0 0 0 0 0 100%
polar/customer/schemas/customer.py 55 2 0 2 0 96%
polar/customer/schemas/state.py 49 0 0 0 0 100%
polar/customer/service.py 123 85 0 44 0 23%
polar/customer/sorting.py 9 0 0 0 0 100%
polar/customer/tasks.py 40 22 0 12 0 38%
polar/customer_meter/__init__.py 0 0 0 0 0 100%
polar/customer_meter/auth.py 8 0 0 0 0 100%
polar/customer_meter/endpoints.py 27 6 0 2 0 72%
polar/customer_meter/repository.py 45 30 0 22 0 22%
polar/customer_meter/scheduler.py 68 68 0 2 0 0%
polar/customer_meter/schemas.py 16 0 0 0 0 100%
polar/customer_meter/service.py 97 67 0 22 0 25%
polar/customer_meter/sorting.py 15 0 0 0 0 100%
polar/customer_meter/tasks.py 22 11 0 4 0 50%
polar/customer_portal/__init__.py 0 0 0 0 0 100%
polar/customer_portal/auth.py 11 0 0 0 0 100%
polar/customer_portal/endpoints/__init__.py 26 0 0 0 0 100%
polar/customer_portal/endpoints/benefit_grant.py 39 10 0 4 0 67%
polar/customer_portal/endpoints/customer.py 45 13 0 2 0 68%
polar/customer_portal/endpoints/customer_meter.py 26 6 0 2 0 71%
polar/customer_portal/endpoints/customer_seat.py 94 63 0 22 0 27%
polar/customer_portal/endpoints/customer_session.py 27 10 0 0 0 63%
polar/customer_portal/endpoints/downloadables.py 21 5 0 0 0 76%
polar/customer_portal/endpoints/license_keys.py 43 17 0 4 0 55%
polar/customer_portal/endpoints/oauth_accounts.py 80 46 0 10 0 38%
polar/customer_portal/endpoints/order.py 68 30 0 14 0 46%
polar/customer_portal/endpoints/organization.py 17 4 0 2 0 68%
polar/customer_portal/endpoints/subscription.py 62 27 0 14 0 46%
polar/customer_portal/endpoints/wallet.py 27 6 0 2 0 72%
polar/customer_portal/repository/__init__.py 0 0 0 0 0 100%
polar/customer_portal/repository/customer_meter.py 33 19 0 14 0 30%
polar/customer_portal/repository/order.py 17 5 0 4 1 62%
polar/customer_portal/repository/payment_method.py 9 1 0 0 0 89%
polar/customer_portal/repository/wallet.py 19 7 0 4 0 52%
polar/customer_portal/schemas/__init__.py 0 0 0 0 0 100%
polar/customer_portal/schemas/benefit_grant.py 79 2 0 0 0 97%
polar/customer_portal/schemas/customer.py 39 0 0 0 0 100%
polar/customer_portal/schemas/customer_meter.py 8 0 0 0 0 100%
polar/customer_portal/schemas/customer_session.py 16 0 0 0 0 100%
polar/customer_portal/schemas/downloadables.py 23 0 0 0 0 100%
polar/customer_portal/schemas/oauth_accounts.py 3 0 0 0 0 100%
polar/customer_portal/schemas/order.py 44 5 0 6 0 82%
polar/customer_portal/schemas/organization.py 14 0 0 2 0 100%
polar/customer_portal/schemas/subscription.py 40 1 0 0 0 98%
polar/customer_portal/schemas/wallet.py 3 0 0 0 0 100%
polar/customer_portal/service/__init__.py 0 0 0 0 0 100%
polar/customer_portal/service/benefit_grant.py 77 49 0 32 0 26%
polar/customer_portal/service/customer.py 97 69 0 32 0 23%
polar/customer_portal/service/customer_meter.py 26 11 0 4 0 50%
polar/customer_portal/service/customer_session.py 73 43 0 10 0 39%
polar/customer_portal/service/downloadables.py 90 56 0 10 0 34%
polar/customer_portal/service/order.py 82 42 0 22 0 40%
polar/customer_portal/service/organization.py 11 3 0 0 0 73%
polar/customer_portal/service/subscription.py 82 48 0 32 0 32%
polar/customer_portal/service/wallet.py 21 7 0 0 0 67%
polar/customer_portal/sorting/__init__.py 0 0 0 0 0 100%
polar/customer_portal/sorting/customer_meter.py 13 0 0 0 0 100%
polar/customer_portal/sorting/wallet.py 4 0 0 0 0 100%
polar/customer_seat/__init__.py 0 0 0 0 0 100%
polar/customer_seat/auth.py 11 0 0 0 0 100%
polar/customer_seat/endpoints.py 156 116 0 60 0 19%
polar/customer_seat/repository.py 103 66 0 16 0 31%
polar/customer_seat/schemas.py 79 27 0 20 0 53%
polar/customer_seat/sender.py 16 7 0 2 0 50%
polar/customer_seat/service.py 295 232 0 94 0 17%
polar/customer_session/__init__.py 0 0 0 0 0 100%
polar/customer_session/auth.py 8 0 0 0 0 100%
polar/customer_session/endpoints.py 13 1 0 0 0 92%
polar/customer_session/schemas.py 20 0 0 0 0 100%
polar/customer_session/service.py 61 29 0 8 1 48%
polar/customer_session/tasks.py 6 2 0 0 0 67%
polar/discount/__init__.py 0 0 0 0 0 100%
polar/discount/auth.py 10 0 0 0 0 100%
polar/discount/endpoints.py 43 15 0 6 0 57%
polar/discount/repository.py 9 2 0 0 0 78%
polar/discount/schemas.py 129 23 0 22 0 75%
polar/discount/service.py 188 146 0 84 0 16%
polar/discount/sorting.py 10 0 0 0 0 100%
polar/email/__init__.py 0 0 0 0 0 100%
polar/email/react.py 12 6 0 4 1 44%
polar/email/schemas.py 189 2 0 10 1 98%
polar/email/sender.py 60 20 0 6 1 65%
polar/email/tasks.py 5 1 0 0 0 80%
polar/email_update/__init__.py 0 0 0 0 0 100%
polar/email_update/endpoints.py 29 10 0 0 0 66%
polar/email_update/schemas.py 11 1 0 0 0 91%
polar/email_update/service.py 61 32 0 6 0 46%
polar/email_update/tasks.py 9 2 0 0 0 78%
polar/enums.py 57 16 0 12 0 59%
polar/event/__init__.py 0 0 0 0 0 100%
polar/event/auth.py 10 0 0 0 0 100%
polar/event/endpoints.py 65 28 0 12 0 48%
polar/event/repository.py 192 159 0 70 0 13%
polar/event/schemas.py 154 6 0 2 0 95%
polar/event/service.py 330 284 0 158 0 10%
polar/event/sorting.py 21 0 0 0 0 100%
polar/event/system.py 199 1 0 64 48 81%
polar/event/tasks.py 8 2 0 0 0 75%
polar/event_type/__init__.py 2 0 0 0 0 100%
polar/event_type/auth.py 10 0 0 0 0 100%
polar/event_type/endpoints.py 25 7 0 2 0 67%
polar/event_type/repository.py 31 18 0 6 0 35%
polar/event_type/schemas.py 35 9 0 6 0 63%
polar/event_type/service.py 67 47 0 30 0 21%
polar/event_type/sorting.py 11 0 0 0 0 100%
polar/eventstream/__init__.py 0 0 0 0 0 100%
polar/eventstream/endpoints.py 61 37 0 18 0 30%
polar/eventstream/service.py 49 24 0 12 0 41%
polar/eventstream/tasks.py 5 1 0 0 0 80%
polar/exception_handlers.py 23 4 0 0 0 83%
polar/exceptions.py 71 16 0 4 0 76%
polar/external_event/__init__.py 0 0 0 0 0 100%
polar/external_event/repository.py 29 17 0 10 0 31%
polar/external_event/service.py 53 29 0 10 0 41%
polar/external_event/sorting.py 10 0 0 0 0 100%
polar/file/__init__.py 0 0 0 0 0 100%
polar/file/auth.py 9 0 0 0 0 100%
polar/file/endpoints.py 45 17 0 6 0 55%
polar/file/repository.py 31 17 0 10 0 34%
polar/file/s3.py 6 0 0 0 0 100%
polar/file/schemas.py 65 5 0 4 0 90%
polar/file/service.py 85 59 0 18 0 27%
polar/file/sorting.py 4 0 0 0 0 100%
polar/health/endpoints.py 19 5 0 0 0 74%
polar/held_balance/__init__.py 0 0 0 0 0 100%
polar/held_balance/service.py 37 17 0 6 0 51%
polar/integrations/__init__.py 0 0 0 0 0 100%
polar/integrations/apple/__init__.py 0 0 0 0 0 100%
polar/integrations/apple/endpoints.py 73 46 0 18 0 32%
polar/integrations/apple/service.py 82 49 0 14 0 36%
polar/integrations/aws/__init__.py 0 0 0 0 0 100%
polar/integrations/aws/s3/__init__.py 3 0 0 0 0 100%
polar/integrations/aws/s3/client.py 10 1 0 2 1 83%
polar/integrations/aws/s3/exceptions.py 2 0 0 2 0 100%
polar/integrations/aws/s3/schemas.py 109 33 0 14 0 62%
polar/integrations/aws/s3/service.py 88 62 0 16 1 26%
polar/integrations/discord/__init__.py 0 0 0 0 0 100%
polar/integrations/discord/client.py 54 36 0 4 0 31%
polar/integrations/discord/endpoints.py 58 33 0 4 0 40%
polar/integrations/discord/oauth.py 4 0 0 0 0 100%
polar/integrations/discord/schemas.py 19 3 0 2 0 76%
polar/integrations/discord/service.py 59 35 0 18 0 34%
polar/integrations/discord/webhook.py 46 1 0 0 0 98%
polar/integrations/github/__init__.py 0 0 0 0 0 100%
polar/integrations/github/client.py 27 10 0 14 0 66%
polar/integrations/github/endpoints.py 80 46 0 18 0 37%
polar/integrations/github/service/__init__.py 2 0 0 0 0 100%
polar/integrations/github/service/secret_scanning.py 99 44 0 14 1 51%
polar/integrations/github/service/user.py 95 65 0 18 1 29%
polar/integrations/github_repository_benefit/__init__.py 0 0 0 0 0 100%
polar/integrations/github_repository_benefit/endpoints.py 63 30 0 4 0 52%
polar/integrations/github_repository_benefit/schemas.py 12 0 0 0 0 100%
polar/integrations/github_repository_benefit/service.py 159 119 0 44 1 21%
polar/integrations/github_repository_benefit/types.py 2 0 0 0 0 100%
polar/integrations/google/__init__.py 0 0 0 0 0 100%
polar/integrations/google/endpoints.py 66 38 0 16 0 37%
polar/integrations/google/service.py 79 47 0 12 0 37%
polar/integrations/loops/__init__.py 0 0 0 0 0 100%
polar/integrations/loops/client.py 46 8 0 0 0 83%
polar/integrations/loops/service.py 52 31 0 10 0 34%
polar/integrations/loops/tasks.py 10 2 0 0 0 80%
polar/integrations/open_collective/__init__.py 0 0 0 0 0 100%
polar/integrations/open_collective/service.py 53 22 0 4 0 54%
polar/integrations/plain/endpoints.py 19 8 0 4 0 48%
polar/integrations/plain/schemas.py 26 0 0 0 0 100%
polar/integrations/plain/service.py 231 182 0 92 0 16%
polar/integrations/stripe/__init__.py 0 0 0 0 0 100%
polar/integrations/stripe/endpoints.py 43 18 0 6 0 51%
polar/integrations/stripe/payment.py 99 74 0 44 0 17%
polar/integrations/stripe/schemas.py 31 0 0 0 0 100%
polar/integrations/stripe/service.py 354 261 0 106 3 21%
polar/integrations/stripe/tasks.py 269 173 0 32 0 33%
polar/integrations/stripe/utils.py 13 8 0 6 0 26%
polar/invoice/generator.py 245 143 0 34 0 37%
polar/invoice/service.py 63 43 0 10 0 30%
polar/kit/__init__.py 0 0 0 0 0 100%
polar/kit/address.py 160 45 0 38 5 62%
polar/kit/anonymization.py 8 5 0 0 0 38%
polar/kit/cors.py 49 14 0 14 2 62%
polar/kit/crypto.py 24 13 0 2 0 42%
polar/kit/csv.py 40 27 0 10 1 28%
polar/kit/db/__init__.py 0 0 0 0 0 100%
polar/kit/db/models/__init__.py 2 0 0 0 0 100%
polar/kit/db/models/base.py 41 10 0 2 0 72%
polar/kit/db/postgres.py 42 4 0 10 4 81%
polar/kit/email.py 20 2 0 2 1 86%
polar/kit/extensions/__init__.py 0 0 0 0 0 100%
polar/kit/extensions/sqlalchemy/__init__.py 3 0 0 0 0 100%
polar/kit/extensions/sqlalchemy/sql.py 6 0 0 0 0 100%
polar/kit/extensions/sqlalchemy/types.py 39 9 0 6 1 69%
polar/kit/hook.py 14 6 0 4 0 44%
polar/kit/html.py 7 7 0 0 0 0%
polar/kit/http.py 19 10 0 4 0 39%
polar/kit/jwk.py 31 3 0 4 1 89%
polar/kit/jwt.py 27 14 0 6 0 39%
polar/kit/math.py 12 7 0 4 0 31%
polar/kit/metadata.py 70 32 0 18 0 43%
polar/kit/money.py 5 5 0 2 0 0%
polar/kit/operator.py 8 6 0 2 0 20%
polar/kit/pagination.py 68 16 0 20 0 75%
polar/kit/repository/__init__.py 2 0 0 0 0 100%
polar/kit/repository/base.py 115 42 0 34 11 56%
polar/kit/routing.py 88 2 0 24 5 94%
polar/kit/schemas.py 107 12 0 16 7 83%
polar/kit/services.py 43 24 0 8 0 37%
polar/kit/sorting.py 38 3 0 8 2 89%
polar/kit/tax.py 297 128 0 48 1 50%
polar/kit/time_queries.py 21 4 0 0 0 81%
polar/kit/trial.py 40 14 0 12 0 50%
polar/kit/utils.py 12 6 0 4 0 38%
polar/license_key/__init__.py 0 0 0 0 0 100%
polar/license_key/auth.py 7 0 0 0 0 100%
polar/license_key/endpoints.py 62 31 0 12 0 42%
polar/license_key/repository.py 27 14 0 4 0 42%
polar/license_key/schemas.py 112 24 0 14 0 71%
polar/license_key/service.py 165 130 0 50 0 16%
polar/locker.py 44 22 0 2 0 48%
polar/logfire.py 49 6 0 10 2 86%
polar/logging.py 45 4 0 4 2 88%
polar/login_code/__init__.py 0 0 0 0 0 100%
polar/login_code/endpoints.py 40 17 0 4 0 52%
polar/login_code/schemas.py 15 1 0 0 0 93%
polar/login_code/service.py 64 35 0 10 0 42%
polar/member/__init__.py 3 0 0 0 0 100%
polar/member/auth.py 10 0 0 0 0 100%
polar/member/endpoints.py 22 8 0 2 0 58%
polar/member/repository.py 34 19 0 6 0 38%
polar/member/schemas.py 26 0 0 0 0 100%
polar/member/service.py 61 39 0 12 0 30%
polar/member/sorting.py 7 0 0 0 0 100%
polar/meter/__init__.py 0 0 0 0 0 100%
polar/meter/aggregation.py 77 38 0 20 0 40%
polar/meter/auth.py 10 0 0 0 0 100%
polar/meter/endpoints.py 47 17 0 8 0 55%
polar/meter/filter.py 89 49 0 36 0 32%
polar/meter/repository.py 18 9 0 4 0 41%
polar/meter/schemas.py 35 0 0 0 0 100%
polar/meter/service.py 165 126 0 60 0 18%
polar/meter/sorting.py 8 0 0 0 0 100%
polar/meter/tasks.py 26 11 0 4 0 57%
polar/metrics/__init__.py 0 0 0 0 0 100%
polar/metrics/auth.py 7 0 0 0 0 100%
polar/metrics/endpoints.py 26 4 0 2 0 79%
polar/metrics/metrics.py 527 116 0 10 6 77%
polar/metrics/queries.py 131 99 0 60 2 18%
polar/metrics/schemas.py 40 6 0 12 3 71%
polar/metrics/service.py 57 39 0 14 0 25%
polar/middlewares.py 64 15 0 16 2 74%
polar/models/__init__.py 71 0 0 0 0 100%
polar/models/account.py 88 22 0 10 1 68%
polar/models/benefit.py 50 11 0 2 1 77%
polar/models/benefit_grant.py 104 33 0 12 2 63%
polar/models/billing_entry.py 57 2 0 2 1 95%
polar/models/campaign.py 15 0 0 0 0 100%
polar/models/checkout.py 242 75 0 34 1 61%
polar/models/checkout_link.py 38 4 0 2 1 88%
polar/models/checkout_link_product.py 19 1 0 2 1 90%
polar/models/checkout_product.py 22 1 0 2 1 92%
polar/models/custom_field.py 99 17 0 4 1 81%
polar/models/customer.py 155 52 0 18 1 60%
polar/models/customer_meter.py 31 4 0 2 1 85%
polar/models/customer_seat.py 48 9 0 4 1 77%
polar/models/customer_session.py 30 5 0 0 0 83%
polar/models/customer_session_code.py 19 1 0 0 0 95%
polar/models/discount.py 93 25 0 14 1 66%
polar/models/discount_product.py 17 1 0 2 1 89%
polar/models/discount_redemption.py 21 1 0 2 1 91%
polar/models/downloadable.py 30 0 0 0 0 100%
polar/models/email_verification.py 19 1 0 0 0 95%
polar/models/event.py 113 40 0 24 1 54%
polar/models/event_type.py 17 1 0 2 1 89%
polar/models/external_event.py 34 3 0 0 0 91%
polar/models/file.py 39 1 0 2 1 95%
polar/models/held_balance.py 41 1 0 2 1 95%
polar/models/issue_reward.py 41 13 0 8 1 59%
polar/models/license_key.py 65 13 0 4 1 77%
polar/models/license_key_activation.py 20 2 0 2 1 86%
polar/models/login_code.py 15 1 0 2 1 88%
polar/models/member.py 22 0 0 0 0 100%
polar/models/meter.py 26 2 0 2 1 89%
polar/models/notification.py 15 1 0 2 1 88%
polar/models/notification_recipient.py 16 1 0 2 1 89%
polar/models/oauth2_authorization_code.py 8 0 0 0 0 100%
polar/models/oauth2_client.py 25 5 0 2 1 78%
polar/models/oauth2_grant.py 22 1 0 0 0 95%
polar/models/oauth2_token.py 24 4 0 2 1 81%
polar/models/order.py 184 49 0 20 1 67%
polar/models/order_item.py 54 19 0 10 1 56%
polar/models/organization.py 176 29 0 6 1 81%
polar/models/organization_access_token.py 21 1 0 0 0 95%
polar/models/organization_review.py 37 2 0 2 1 92%
polar/models/payment.py 68 9 0 2 1 86%
polar/models/payment_method.py 24 2 0 2 1 88%
polar/models/payout.py 63 10 0 6 1 78%
polar/models/personal_access_token.py 21 0 0 0 0 100%
polar/models/pledge.py 98 12 0 0 0 88%
polar/models/pledge_transaction.py 25 0 0 0 0 100%
polar/models/processor_transaction.py 28 1 0 0 0 96%
polar/models/product.py 85 23 0 14 1 64%
polar/models/product_benefit.py 19 1 0 2 1 90%
polar/models/product_custom_field.py 15 1 0 2 1 88%
polar/models/product_media.py 20 2 0 2 1 86%
polar/models/product_price.py 189 56 0 24 1 63%
polar/models/refund.py 112 28 0 22 1 63%
polar/models/subscription.py 211 64 0 30 1 61%
polar/models/subscription_meter.py 28 5 0 2 1 80%
polar/models/subscription_product_price.py 30 10 0 8 1 55%
polar/models/transaction.py 224 9 0 2 1 96%
polar/models/trial_redemption.py 21 1 0 2 1 91%
polar/models/user.py 116 30 0 14 1 67%
polar/models/user_notification.py 8 0 0 0 0 100%
polar/models/user_organization.py 16 0 0 0 0 100%
polar/models/user_session.py 23 1 0 0 0 96%
polar/models/wallet.py 28 2 0 2 1 90%
polar/models/wallet_transaction.py 31 3 0 2 1 88%
polar/models/webhook_delivery.py 21 2 0 2 1 87%
polar/models/webhook_endpoint.py 56 1 0 2 1 97%
polar/models/webhook_event.py 29 3 0 2 1 87%
polar/notification_recipient/__init__.py 0 0 0 0 0 100%
polar/notification_recipient/auth.py 9 0 0 0 0 100%
polar/notification_recipient/repository.py 24 13 0 6 0 37%
polar/notification_recipient/schemas.py 16 0 0 0 0 100%
polar/notification_recipient/service.py 25 11 0 4 0 48%
polar/notifications/__init__.py 0 0 0 0 0 100%
polar/notifications/auth.py 9 0 0 0 0 100%
polar/notifications/endpoints.py 35 10 0 0 0 71%
polar/notifications/notification.py 85 19 0 4 0 74%
polar/notifications/schemas.py 8 0 0 0 0 100%
polar/notifications/service.py 49 24 0 2 0 49%
polar/notifications/tasks/__init__.py 2 0 0 0 0 100%
polar/notifications/tasks/email.py 16 8 0 2 0 44%
polar/notifications/tasks/push.py 50 36 0 8 0 24%
polar/oauth2/__init__.py 0 0 0 0 0 100%
polar/oauth2/authorization_server.py 261 176 0 54 1 27%
polar/oauth2/constants.py 17 0 0 0 0 100%
polar/oauth2/dependencies.py 36 20 0 6 0 38%
polar/oauth2/endpoints/__init__.py 0 0 0 0 0 100%
polar/oauth2/endpoints/oauth2.py 83 38 0 6 0 51%
polar/oauth2/endpoints/well_known.py 17 5 0 0 0 71%
polar/oauth2/exception_handlers.py 9 4 0 2 0 45%
polar/oauth2/exceptions.py 13 2 0 0 0 85%
polar/oauth2/grants/__init__.py 11 4 0 2 1 62%
polar/oauth2/grants/authorization_code.py 154 100 0 30 1 30%
polar/oauth2/grants/refresh_token.py 28 13 0 4 1 50%
polar/oauth2/grants/web.py 81 59 0 20 0 22%
polar/oauth2/mcp_client.py 32 32 0 4 0 0%
polar/oauth2/metadata.py 54 2 0 2 1 95%
polar/oauth2/requests.py 56 28 0 8 0 44%
polar/oauth2/schemas.py 130 7 0 4 0 93%
polar/oauth2/service/__init__.py 0 0 0 0 0 100%
polar/oauth2/service/oauth2_authorization_code.py 22 9 0 2 0 54%
polar/oauth2/service/oauth2_client.py 53 28 0 14 0 40%
polar/oauth2/service/oauth2_grant.py 38 25 0 14 0 29%
polar/oauth2/service/oauth2_token.py 60 34 0 20 0 35%
polar/oauth2/sub_type.py 46 18 0 12 1 50%
polar/oauth2/userinfo.py 23 17 0 14 0 16%
polar/openapi.py 41 1 0 2 1 95%
polar/order/__init__.py 0 0 0 0 0 100%
polar/order/auth.py 9 0 0 0 0 100%
polar/order/endpoints.py 61 26 0 10 0 49%
polar/order/repository.py 67 43 0 26 1 27%
polar/order/schemas.py 91 7 0 6 0 91%
polar/order/service.py 812 660 0 254 0 14%
polar/order/sorting.py 15 0 0 0 0 100%
polar/order/tasks.py 126 82 0 24 0 31%
polar/organization/__init__.py 0 0 0 0 0 100%
polar/organization/ai_validation.py 87 52 0 20 0 33%
polar/organization/auth.py 10 0 0 0 0 100%
polar/organization/endpoints.py 136 84 0 40 0 30%
polar/organization/repository.py 64 35 0 18 1 37%
polar/organization/resolver.py 25 12 0 8 0 39%
polar/organization/schemas.py 173 18 0 8 0 86%
polar/organization/service.py 415 315 0 134 1 19%
polar/organization/sorting.py 11 0 0 0 0 100%
polar/organization/tasks.py 98 65 0 30 0 27%
polar/organization_access_token/__init__.py 0 0 0 0 0 100%
polar/organization_access_token/endpoints.py 36 12 0 4 0 60%
polar/organization_access_token/repository.py 27 8 0 2 1 69%
polar/organization_access_token/schemas.py 25 0 0 0 0 100%
polar/organization_access_token/service.py 86 47 0 18 0 38%
polar/organization_access_token/sorting.py 10 0 0 0 0 100%
polar/organization_access_token/tasks.py 9 3 0 0 0 67%
polar/payment/__init__.py 0 0 0 0 0 100%
polar/payment/auth.py 8 0 0 0 0 100%
polar/payment/endpoints.py 27 6 0 2 0 72%
polar/payment/repository.py 44 27 0 14 0 29%
polar/payment/schemas.py 28 0 0 0 0 100%
polar/payment/service.py 106 81 0 36 0 19%
polar/payment/sorting.py 10 0 0 0 0 100%
polar/payment_method/__init__.py 0 0 0 0 0 100%
polar/payment_method/repository.py 27 14 0 2 0 45%
polar/payment_method/schemas.py 20 0 0 0 0 100%
polar/payment_method/service.py 96 69 0 32 0 23%
polar/payout/__init__.py 0 0 0 0 0 100%
polar/payout/auth.py 9 0 0 0 0 100%
polar/payout/endpoints.py 58 25 0 10 0 49%
polar/payout/repository.py 52 29 0 16 0 34%
polar/payout/schemas.py 32 0 0 0 0 100%
polar/payout/service.py 243 173 0 62 0 24%
polar/payout/sorting.py 12 0 0 0 0 100%
polar/payout/tasks.py 53 30 0 10 0 40%
polar/personal_access_token/__init__.py 0 0 0 0 0 100%
polar/personal_access_token/endpoints.py 21 6 0 2 0 65%
polar/personal_access_token/schemas.py 13 0 0 0 0 100%
polar/personal_access_token/service.py 56 21 0 4 1 60%
polar/personal_access_token/tasks.py 8 2 0 0 0 75%
polar/pledge/__init__.py 0 0 0 0 0 100%
polar/pledge/hooks.py 17 0 0 0 0 100%
polar/pledge/service.py 218 173 0 88 0 15%
polar/postgres.py 43 7 0 2 0 84%
polar/posthog.py 68 37 0 18 1 37%
polar/processor_transaction/__init__.py 0 0 0 0 0 100%
polar/processor_transaction/repository.py 13 6 0 2 0 47%
polar/processor_transaction/service.py 16 8 0 4 0 40%
polar/processor_transaction/tasks.py 6 2 0 0 0 67%
polar/product/__init__.py 0 0 0 0 0 100%
polar/product/auth.py 9 0 0 0 0 100%
polar/product/endpoints.py 47 16 0 6 0 58%
polar/product/guard.py 28 9 0 0 0 68%
polar/product/repository.py 61 38 0 18 0 29%
polar/product/schemas.py 203 30 0 16 0 79%
polar/product/service.py 262 214 0 118 0 13%
polar/product/sorting.py 10 0 0 0 0 100%
polar/rate_limit.py 32 10 0 6 2 63%
polar/redis.py 18 1 0 2 1 90%
polar/refund/__init__.py 0 0 0 0 0 100%
polar/refund/auth.py 7 0 0 0 0 100%
polar/refund/endpoints.py 25 3 0 0 0 88%
polar/refund/schemas.py 65 13 0 4 0 75%
polar/refund/service.py 286 214 0 94 0 19%
polar/refund/sorting.py 8 0 0 0 0 100%
polar/routing.py 6 0 0 0 0 100%
polar/sentry.py 22 3 0 2 0 88%
polar/storefront/__init__.py 0 0 0 0 0 100%
polar/storefront/endpoints.py 34 17 0 10 0 39%
polar/storefront/schemas.py 22 0 0 0 0 100%
polar/storefront/service.py 24 12 0 0 0 50%
polar/subscription/__init__.py 0 0 0 0 0 100%
polar/subscription/auth.py 9 0 0 0 0 100%
polar/subscription/endpoints.py 75 36 0 16 0 43%
polar/subscription/repository.py 102 64 0 36 1 28%
polar/subscription/scheduler.py 65 65 0 2 0 0%
polar/subscription/schemas.py 102 3 0 4 0 95%
polar/subscription/service.py 1039 884 0 374 2 11%
polar/subscription/sorting.py 13 0 0 0 0 100%
polar/subscription/tasks.py 84 52 0 16 0 34%
polar/tasks.py 26 0 0 0 0 100%
polar/transaction/__init__.py 0 0 0 0 0 100%
polar/transaction/auth.py 9 0 0 0 0 100%
polar/transaction/endpoints.py 30 7 0 2 0 72%
polar/transaction/fees/__init__.py 0 0 0 0 0 100%
polar/transaction/fees/stripe/__init__.py 43 15 0 4 0 64%
polar/transaction/repository.py 35 13 0 0 0 63%
polar/transaction/schemas.py 57 0 0 0 0 100%
polar/transaction/service/__init__.py 0 0 0 0 0 100%
polar/transaction/service/balance.py 61 38 0 8 0 36%
polar/transaction/service/base.py 14 4 0 2 0 75%
polar/transaction/service/dispute.py 96 67 0 22 0 26%
polar/transaction/service/payment.py 50 32 0 14 0 31%
polar/transaction/service/payout.py 30 18 0 12 0 33%
polar/transaction/service/platform_fee.py 108 81 0 36 0 20%
polar/transaction/service/processor_fee.py 114 93 0 58 0 13%
polar/transaction/service/refund.py 92 63 0 16 0 29%
polar/transaction/service/transaction.py 78 51 0 22 0 27%
polar/transaction/tasks.py 30 16 0 6 0 44%
polar/trial_redemption/__init__.py 0 0 0 0 0 100%
polar/trial_redemption/repository.py 19 11 0 8 0 30%
polar/trial_redemption/service.py 16 7 0 0 0 56%
polar/types.py 5 0 0 0 0 100%
polar/user/__init__.py 0 0 0 0 0 100%
polar/user/endpoints.py 36 6 0 0 0 83%
polar/user/oauth_service.py 40 22 0 8 0 42%
polar/user/repository.py 45 28 0 14 0 29%
polar/user/schemas.py 70 7 0 4 0 85%
polar/user/service.py 121 84 0 30 0 26%
polar/user/sorting.py 8 0 0 0 0 100%
polar/user/tasks.py 17 8 0 4 0 52%
polar/user_organization/__init__.py 0 0 0 0 0 100%
polar/user_organization/schemas.py 9 0 0 0 0 100%
polar/user_organization/service.py 69 45 0 14 0 31%
polar/wallet/__init__.py 0 0 0 0 0 100%
polar/wallet/auth.py 9 0 0 0 0 100%
polar/wallet/endpoints.py 34 11 0 4 0 61%
polar/wallet/repository.py 37 19 0 8 0 40%
polar/wallet/schemas.py 16 0 0 0 0 100%
polar/wallet/service.py 103 68 0 24 0 29%
polar/wallet/sorting.py 8 0 0 0 0 100%
polar/webhook/__init__.py 0 0 0 0 0 100%
polar/webhook/auth.py 9 0 0 0 0 100%
polar/webhook/endpoints.py 57 22 0 8 0 54%
polar/webhook/repository.py 24 8 0 2 0 62%
polar/webhook/schemas.py 41 0 0 0 0 100%
polar/webhook/service.py 251 135 0 108 30 41%
polar/webhook/slack.py 12 1 0 0 0 92%
polar/webhook/sorting.py 3 0 0 0 0 100%
polar/webhook/tasks.py 84 58 0 16 0 26%
polar/webhook/webhooks.py 372 174 0 86 3 44%
polar/worker/__init__.py 100 26 0 8 1 71%
polar/worker/_encoder.py 11 1 0 2 1 85%
polar/worker/_enqueue.py 86 5 0 14 2 93%
polar/worker/_health.py 80 40 0 6 0 47%
polar/worker/_redis.py 25 12 0 4 0 45%
polar/worker/_sqlalchemy.py 42 21 0 4 0 46%
polar/worker/run.py 9 9 0 0 0 0%
polar/worker/scheduler.py 34 34 0 4 0 0%
Total 31464 14458 0 6282 269 47%

No items found using the specified filter.