-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This patch adds support for billing profiles as the first implemented API. For testing purposes, a new OpenMeter Sandbox is added. The sandbox app gets installed by default if apps are enabled for easier testing. The change also makes sure that the customeroverrides codebase works as expected, however we are going to implement the APIs at a later point.
- Loading branch information
Showing
104 changed files
with
7,822 additions
and
6,552 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
namespace OpenMeter.App; | ||
|
||
@friendlyName("SandboxApp") | ||
model SandboxApp { | ||
...AppBase; | ||
|
||
/** | ||
* The app's type is Sandbox. | ||
*/ | ||
type: Type.Sandbox; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package config | ||
|
||
import "github.com/spf13/viper" | ||
|
||
type AppsConfiguration struct { | ||
Enabled bool | ||
} | ||
|
||
func (c AppsConfiguration) Validate() error { | ||
return nil | ||
} | ||
|
||
func ConfigureApps(v *viper.Viper) { | ||
v.SetDefault("apps.enabled", false) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package config | ||
|
||
import "github.com/spf13/viper" | ||
|
||
type BillingConfiguration struct { | ||
Enabled bool | ||
} | ||
|
||
func (c BillingConfiguration) Validate() error { | ||
return nil | ||
} | ||
|
||
func ConfigureBilling(v *viper.Viper) { | ||
v.SetDefault("billing.enabled", false) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.