-
Notifications
You must be signed in to change notification settings - Fork 436
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
655d77b
commit 888b086
Showing
5 changed files
with
69 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 @@ | ||
v249 | ||
v260 |
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,46 @@ | ||
# -*- 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 ListableAPIResource | ||
|
||
|
||
class FinancingOffer(ListableAPIResource): | ||
""" | ||
This is an object representing an offer of financing from | ||
Stripe Capital to a Connect subaccount. | ||
""" | ||
|
||
OBJECT_NAME = "capital.financing_offer" | ||
|
||
@classmethod | ||
def _cls_mark_delivered( | ||
cls, | ||
financing_offer, | ||
api_key=None, | ||
stripe_version=None, | ||
stripe_account=None, | ||
**params | ||
): | ||
return cls._static_request( | ||
"post", | ||
"/v1/capital/financing_offers/{financing_offer}/mark_delivered".format( | ||
financing_offer=util.sanitize_id(financing_offer) | ||
), | ||
api_key=api_key, | ||
stripe_version=stripe_version, | ||
stripe_account=stripe_account, | ||
params=params, | ||
) | ||
|
||
@util.class_method_variant("_cls_mark_delivered") | ||
def mark_delivered(self, idempotency_key=None, **params): | ||
return self._request( | ||
"post", | ||
"/v1/capital/financing_offers/{financing_offer}/mark_delivered".format( | ||
financing_offer=util.sanitize_id(self.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# -*- coding: utf-8 -*- | ||
# File generated from our OpenAPI spec | ||
from __future__ import absolute_import, division, print_function | ||
|
||
from stripe.api_resources.abstract import SingletonAPIResource | ||
|
||
|
||
class FinancingSummary(SingletonAPIResource): | ||
""" | ||
A financing object describes an account's current financing state. Used by Connect | ||
platforms to read the state of Capital offered to their connected accounts. | ||
""" | ||
|
||
OBJECT_NAME = "capital.financing_summary" | ||
|
||
@classmethod | ||
def class_url(cls): | ||
return "/v1/capital/financing_summary" |
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