Skip to content

Commit

Permalink
Use the preview API version
Browse files Browse the repository at this point in the history
  • Loading branch information
richardm-stripe committed May 10, 2023
1 parent 92a82b6 commit 078a5f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions stripe/api_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@

class _ApiVersion:
CURRENT = "2022-11-15"
PREVIEW = "20230509T165653"
5 changes: 2 additions & 3 deletions stripe/preview.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
from stripe import raw_request

PREVIEW_STRIPE_VERSION = "20230509T165653"

from stripe.api_version import _ApiVersion

class Preview(object):
def _get_default_opts(self, params):
if "stripe_version" not in params:
params["stripe_version"] = PREVIEW_STRIPE_VERSION
params["stripe_version"] = _ApiVersion.PREVIEW
if "encoding" not in params:
params["encoding"] = "json"
return params
Expand Down

0 comments on commit 078a5f3

Please sign in to comment.