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

Activation and License data added in options #11

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ManiruzzamanAkash
Copy link
Contributor

@ManiruzzamanAkash ManiruzzamanAkash commented Feb 5, 2024

Description

When we activate a license we are storing the activation ID. We should also store the activation object and the expanded license object so that the plugin developer can show data from these.

We should also allow this to be grabbed through the SDK.

Fixes SC-3534

How people can now use activation object -

$client->settings()->get_activation();

Demo activation response

{
  "id": "activation-id",
  "object": "activation",
  "counted": null,
  "name": "WebsiteDomain",
  "fingerprint": "https://example.com",
  "license": {
    "id": "license-id",
    "object": "license",
    "activations_count": 0,
    "activation_limit": null,
    "key": "license-key",
    "status": "active",
    "product": {
      "id": "product-id",
      "object": "product",
      "description": "<p>Product Description</p>",
      "name": "Product Name",
      "created_at": 1683782487,
      "updated_at": 1706799044
    },
    "current_release": "release-id",
    "created_at": 1706767739,
    "updated_at": 1706767739
  },
  "created_at": 1706798871,
  "updated_at": 1706798871
}

@ManiruzzamanAkash ManiruzzamanAkash self-assigned this Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants