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

Add Product Plan ID to subscription struct #15

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

dgalambos
Copy link
Contributor

This PR adds Product Plan ID to the Subscription struct, similar to Entitlements.

This should be the last of the PRs for these changes.

Example Subscriptions response:

"subscriptions": {
    "foo.bar": {
        "auto_resume_date": null,
        "billing_issues_detected_at": null,
        "expires_date": "2024-11-15T21:15:20Z",
        "grace_period_expires_date": null,
        "is_sandbox": true,
        "original_purchase_date": "2024-11-15T20:45:25Z",
        "period_type": "normal",
        "product_plan_identifier": "bar-baz-ban",
        "purchase_date": "2024-11-15T20:45:25Z",
        "refunded_at": null,
        "store": "play_store",
        "store_transaction_id": "GPA.abc-123-456-7890",
        "unsubscribe_detected_at": "2024-11-15T21:05:56Z"
    },
    "bar.baz": {
        "auto_resume_date": null,
        "billing_issues_detected_at": null,
        "expires_date": "2024-11-16T20:40:19Z",
        "grace_period_expires_date": null,
        "is_sandbox": false,
        "original_purchase_date": "2024-11-15T20:40:19Z",
        "period_type": "normal",
        "purchase_date": "2024-11-15T20:40:19Z",
        "refunded_at": null,
        "store": "promotional",
        "store_transaction_id": "ancdefg12345678",
        "unsubscribe_detected_at": null
    }
}

@dgalambos
Copy link
Contributor Author

dgalambos commented Nov 18, 2024

^ ping @mhemmings (this should be the last of these PRs - apologies for missing this with the last PR)

@mhemmings mhemmings merged commit ef37990 into mhemmings:master Nov 25, 2024
2 checks passed
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