Skip to content

Commit

Permalink
Make openEO Platform billing metadata plugable and move to aggregator
Browse files Browse the repository at this point in the history
  • Loading branch information
soxofaan committed Oct 28, 2021
1 parent 0ae8316 commit e4cce69
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
2 changes: 1 addition & 1 deletion openeo_driver/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.14.8a1'
__version__ = '0.14.9a1'
7 changes: 7 additions & 0 deletions openeo_driver/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,13 @@ def user_access_validation(self, user: User, request: flask.Request) -> User:
"""Additional user access validation based on flask request."""
return user

def capabilities_billing(self) -> dict:
"""Capabilities doc: field 'billing'"""
return {
"currency": None,
"plans": [],
}

def postprocess_capabilities(self, capabilities: dict) -> dict:
"""Postprocess the capabilities document"""
return capabilities
12 changes: 1 addition & 11 deletions openeo_driver/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,17 +371,7 @@ def index():
"description": app_config.get('OPENEO_DESCRIPTION', 'OpenEO API'),
"production": API_VERSIONS[g.request_version].production,
"endpoints": endpoints,
"billing": {
"currency": "EUR",
"plans": [
{
"name": "early-adopter",
"description": "openEO.cloud early adopter plan",
"url": "https://openeo.cloud/early-adopters/",
"paid": True
}
]
},
"billing": backend_implementation.capabilities_billing(),
"_backend_deploy_metadata": deploy_metadata,
"links": [
{
Expand Down

0 comments on commit e4cce69

Please sign in to comment.