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

feat: Add custom license expiration v2 fields. #734

Merged
merged 6 commits into from
Oct 31, 2024
Merged

Conversation

macdiesel
Copy link
Contributor

@macdiesel macdiesel commented Oct 31, 2024

http://localhost:18170/api/v1/learner-licenses/?enterprise_customer_uuid=7ad8cdb9-352c-4b71-bcf1-3015103cca1f

{
    "next": null,
    "previous": null,
    "count": 1,
    "num_pages": 1,
    "current_page": 1,
    "start": 0,
    "results": [
        {
            "uuid": "095392a2-5748-45ad-aa2a-7d6bcd75ba67",
            "status": "activated",
            "user_email": "[email protected]",
            "activation_date": "2024-10-16T21:50:19.231208Z",
            "last_remind_date": "2024-10-10T14:28:30Z",
            "subscription_plan_uuid": "7dce00ba-2de1-48b3-8aed-b514d7e1dbab",
            "revoked_date": null,
            "activation_key": "a428db25-cb52-4955-bc77-973be9903db3",
            "customer_agreement": {
                "uuid": "9571c2d9-d562-49e2-8f2e-2eaa92f07a84",
                "enterprise_customer_uuid": "7ad8cdb9-352c-4b71-bcf1-3015103cca1f",
                "enterprise_customer_slug": "test-enterprise",
                "default_enterprise_catalog_uuid": "f09ff39b-f456-4a03-b53b-44cd70f52108",
                "disable_expiration_notifications": false,
                "net_days_until_expiration": 339,
                "subscription_for_auto_applied_licenses": "7dce00ba-2de1-48b3-8aed-b514d7e1dbab",
                "available_subscription_catalogs": [
                    "f09ff39b-f456-4a03-b53b-44cd70f52108"
                ],
                "enable_auto_applied_subscriptions_with_universal_link": true,
                "has_custom_license_expiration_messaging_v2": true,
                "modal_header_text_v2": "HELLO WORLD",
                "expired_subscription_modal_messaging_v2": "Testing",
                "button_label_in_modal_v2": "Continue learning",
                "url_for_button_in_modal_v2": "https://edx.org"
            },
            "subscription_plan": {
                "title": "Seed Generated Plan from <CustomerAgreement: 'test-enterprise'> 2024-10-05 16:08:01.428564+00:00",
                "uuid": "7dce00ba-2de1-48b3-8aed-b514d7e1dbab",
                "start_date": "2024-10-05T16:08:01Z",
                "expiration_date": "2025-10-05T16:08:01Z",
                "enterprise_customer_uuid": "7ad8cdb9-352c-4b71-bcf1-3015103cca1f",
                "enterprise_catalog_uuid": "f09ff39b-f456-4a03-b53b-44cd70f52108",
                "is_active": true,
                "is_current": true,
                "is_revocation_cap_enabled": false,
                "days_until_expiration": 339,
                "days_until_expiration_including_renewals": 339,
                "is_locked_for_renewal_processing": false,
                "should_auto_apply_licenses": true,
                "created": "2024-10-05T16:08:01.428952Z"
            }
        }
    ],
    "customer_agreement": {
        "uuid": "9571c2d9-d562-49e2-8f2e-2eaa92f07a84",
        "enterprise_customer_uuid": "7ad8cdb9-352c-4b71-bcf1-3015103cca1f",
        "enterprise_customer_slug": "test-enterprise",
        "default_enterprise_catalog_uuid": "f09ff39b-f456-4a03-b53b-44cd70f52108",
        "disable_expiration_notifications": false,
        "net_days_until_expiration": 339,
        "subscription_for_auto_applied_licenses": "7dce00ba-2de1-48b3-8aed-b514d7e1dbab",
        "available_subscription_catalogs": [
            "f09ff39b-f456-4a03-b53b-44cd70f52108"
        ],
        "enable_auto_applied_subscriptions_with_universal_link": true,
        "has_custom_license_expiration_messaging_v2": true,
        "modal_header_text_v2": "HELLO WORLD",
        "expired_subscription_modal_messaging_v2": "Testing",
        "button_label_in_modal_v2": "Continue learning",
        "url_for_button_in_modal_v2": "https://edx.org"
    }
}

@macdiesel macdiesel merged commit 5317d0b into master Oct 31, 2024
5 checks passed
@macdiesel macdiesel deleted the bbeggs/VSF_fix_v2 branch October 31, 2024 14:08
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.

3 participants