• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

raystack / frontier / 7802911487
41%
main: 38%

Build:
Build:
LAST BUILD BRANCH: perf/optimize-release-caching
DEFAULT BRANCH: main
Ran 06 Feb 2024 04:32PM UTC
Jobs 1
Files 111
Run time 9s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

06 Feb 2024 04:28PM UTC coverage: 41.381% (-0.05%) from 41.43%
7802911487

Pull #487

github

kushsharma
feat: plan behaviour configuration

- set trail period in days of a plan via `trial_days`
- fix seat quantity not being updated while changing plans
- additional configuration to change plan behavior
```yaml
  # plan change configuration applied when a user changes their subscription plan
  plan_change:
    # proration_behavior can be one of "create_prorations", "none", "always_invoice"
    proration_behavior: "create_prorations"
    # immediate_proration_behavior can be one of "create_prorations", "none", "always_invoice"
    # this is applied when the plan is changed immediately instead of waiting for the next billing cycle
    immediate_proration_behavior: "create_prorations"
    # collection_method can be one of "charge_automatically", "send_invoice"
    collection_method: "charge_automatically"
  # product configuration
  product:
    # seat_change_behavior can be one of "exact", "incremental"
    # "exact" will change the seat count to the exact number of users within the organization
    # "incremental" will change the seat count to the number of users within the organization
    # but will not decrease the seat count if reduced
    seat_change_behavior: "exact"
```

Signed-off-by: Kush Sharma <thekushsharma@gmail.com>
Pull Request #487: feat: plan behaviour configuration

0 of 42 new or added lines in 5 files covered. (0.0%)

1 existing line in 1 file now uncovered.

5987 of 14468 relevant lines covered (41.38%)

14.55 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
0.0
0.0% cmd/serve.go
2
0.0
0.0% internal/api/v1beta1/billing_plan.go
3
0.0
0.0% internal/store/postgres/billing_plan_repository.go
16
0.0
0.0% internal/api/v1beta1/billing_subscription.go
20
0.0
0.0% internal/store/postgres/billing_subscription_repository.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
0.0
0.0% internal/store/postgres/billing_subscription_repository.go
Jobs
ID Job ID Ran Files Coverage
1 7802911487.1 06 Feb 2024 04:32PM UTC 111
41.38
GitHub Action Run
Source Files on build 7802911487
  • Tree
  • List 111
  • Changed 5
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #487
  • PR Base - main (#7795236492)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc