mollie / mollie-api-node

Official Mollie API client for Node
http://www.mollie.com
BSD 3-Clause "New" or "Revised" License
228 stars 62 forks source link

Fix type issues in `SubscriptionData` #317

Closed janpaepke closed 1 year ago

janpaepke commented 1 year ago

This PR fixes several type issues in the SubscriptionData interface.

  1. The createdAt property is actually not optional. (see docs)
  2. The canceledAt property of subscriptions is optional. (see docs) Note: This option currently is lacking the "OPTIONAL" flag in the docs. This should be fixed in the docs.
  3. method can be string or null (see docs)
  4. The optional applicationFee property was missing completely.