-
Notifications
You must be signed in to change notification settings - Fork 433
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
71a1e5a
commit cb67e7f
Showing
5 changed files
with
99 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v232 | ||
v237 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# -*- coding: utf-8 -*- | ||
# File generated from our OpenAPI spec | ||
from __future__ import absolute_import, division, print_function | ||
|
||
from stripe.api_resources.abstract import ListableAPIResource | ||
|
||
|
||
class CardBundle(ListableAPIResource): | ||
""" | ||
A Card Bundle represents the bundle of physical items - card stock, carrier letter, and envelope - that is shipped to a cardholder when you create a physical card. | ||
""" | ||
|
||
OBJECT_NAME = "issuing.card_bundle" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
# -*- coding: utf-8 -*- | ||
# File generated from our OpenAPI spec | ||
from __future__ import absolute_import, division, print_function | ||
|
||
from stripe import util | ||
from stripe.api_resources.abstract import APIResourceTestHelpers | ||
from stripe.api_resources.abstract import ListableAPIResource | ||
from stripe.api_resources.abstract import UpdateableAPIResource | ||
from stripe.api_resources.abstract import test_helpers | ||
|
||
|
||
@test_helpers | ||
class CardDesign(ListableAPIResource, UpdateableAPIResource): | ||
""" | ||
A Card Design is a logical grouping of a Card Bundle, card logo, and carrier text that represents a product line. | ||
""" | ||
|
||
OBJECT_NAME = "issuing.card_design" | ||
|
||
class TestHelpers(APIResourceTestHelpers): | ||
@classmethod | ||
def _cls_activate_testmode( | ||
cls, | ||
card_design, | ||
api_key=None, | ||
stripe_version=None, | ||
stripe_account=None, | ||
**params | ||
): | ||
return cls._static_request( | ||
"post", | ||
"/v1/test_helpers/issuing/card_designs/{card_design}/status/activate".format( | ||
card_design=util.sanitize_id(card_design) | ||
), | ||
api_key=api_key, | ||
stripe_version=stripe_version, | ||
stripe_account=stripe_account, | ||
params=params, | ||
) | ||
|
||
@util.class_method_variant("_cls_activate_testmode") | ||
def activate_testmode(self, idempotency_key=None, **params): | ||
return self.resource._request( | ||
"post", | ||
"/v1/test_helpers/issuing/card_designs/{card_design}/status/activate".format( | ||
card_design=util.sanitize_id(self.resource.get("id")) | ||
), | ||
idempotency_key=idempotency_key, | ||
params=params, | ||
) | ||
|
||
@classmethod | ||
def _cls_deactivate_testmode( | ||
cls, | ||
card_design, | ||
api_key=None, | ||
stripe_version=None, | ||
stripe_account=None, | ||
**params | ||
): | ||
return cls._static_request( | ||
"post", | ||
"/v1/test_helpers/issuing/card_designs/{card_design}/status/deactivate".format( | ||
card_design=util.sanitize_id(card_design) | ||
), | ||
api_key=api_key, | ||
stripe_version=stripe_version, | ||
stripe_account=stripe_account, | ||
params=params, | ||
) | ||
|
||
@util.class_method_variant("_cls_deactivate_testmode") | ||
def deactivate_testmode(self, idempotency_key=None, **params): | ||
return self.resource._request( | ||
"post", | ||
"/v1/test_helpers/issuing/card_designs/{card_design}/status/deactivate".format( | ||
card_design=util.sanitize_id(self.resource.get("id")) | ||
), | ||
idempotency_key=idempotency_key, | ||
params=params, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters