Read and write on subscriptions - type check of checkout reference

Github

Github
API
When fetching and updating a subscription, we now explicitly check for the type of the checkout_references
When fetching and updating a subscription, we now explicitly check for the type of the checkout_references