Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Daemon to handle latest license type structure supported #542

Open
anandrgitnirman opened this issue Jul 22, 2021 · 0 comments
Open
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@anandrgitnirman
Copy link
Contributor

"licenses": {
    "tiers": [{
      "type": "Tier",
      "planName": "Tier AAA",
      "grpcServiceName": "ServiceA",
      "grpcMethodName": "MethodA",
      "range": [
        {
          "high": 100,
          "DiscountInPercentage": 3
        },
        {
          "high": 200,
          "DiscountInPercentage": 4
        },
        {
          "high": 300,
          "DiscountInPercentage": 6
        }
      ],
      "detailsUrl": "http://abc.org/licenses/Tier.html",
      "isActive": "true/false"
    },
     {
      "type": "Tier",
      "planName": "Tier BBB Applicable for All service.methods",
      "range": [
        {
          "high": 100,
          "DiscountInPercentage": 1
        },
        {
          "high": 200,
          "DiscountInPercentage": 1.75
        },
        {
          "high": 300,
          "DiscountInPercentage": 2.50
        }
      ],
      "detailsUrl": "http://abc.org/licenses/Tier.html",
      "isActive": "true/false"
    }],
    "subscriptions": {
      "type": "Subscription",
      "subscription": [
        {
          "periodInDays": 30,
          "DiscountInPercentage": 10,
          "planName": "Monthly For ServiceA/MethodA",
          "LicenseCost": 90,
          "grpcServiceName": "ServiceA",
          "grpcMethodName": "MethodA"
        },
        {
          "periodInDays": 30,
          "DiscountInPercentage": 12,
          "planName": "Monthly",
          "LicenseCost": 93
        },
        {
          "periodInDays": 120,
          "DiscountInPercentage": 16,
          "LicenseCost": 120,
          "planName": "Quarterly"
        },
        {
          "periodInDays": 365,
          "DiscountInPercentage": 23,
          "LicenseCost": 390,
          "planName": "Yearly"
        }
      ],
      "detailsUrl": "http://abc.org/licenses/Subscription.html",
      "isActive": "true/false"
    }
  }
anandrgitnirman pushed a commit to anandrgitnirman/snet-daemon that referenced this issue Jul 22, 2021
Support new structure changes in license
@anandrgitnirman anandrgitnirman mentioned this issue Jul 22, 2021
anandrgitnirman pushed a commit to anandrgitnirman/snet-daemon that referenced this issue Sep 16, 2021
Support to Store and populate the Pricing details ( specially the fixed price details) at the time of License Creation
anandrgitnirman pushed a commit to anandrgitnirman/snet-daemon that referenced this issue Sep 17, 2021
Corrected the test case
anandrgitnirman pushed a commit that referenced this issue Sep 20, 2021
#542 store fixed price details at the time of license creation
anandrgitnirman pushed a commit to anandrgitnirman/snet-daemon that referenced this issue Oct 13, 2021
Keep track of calls made and usage together
anandrgitnirman pushed a commit to anandrgitnirman/snet-daemon that referenced this issue Oct 14, 2021
Keep track of calls made and usage together and added more test cases
anandrgitnirman pushed a commit to anandrgitnirman/snet-daemon that referenced this issue Oct 14, 2021
Keep track of calls made and usage together and added more test cases
@semyon-dev semyon-dev added enhancement New feature or request help wanted Extra attention is needed labels Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants