-
Notifications
You must be signed in to change notification settings - Fork 438
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
e4db3b5
commit 366109c
Showing
4 changed files
with
24 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 @@ | ||
v166 | ||
v170 |
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,21 @@ | ||
# 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 | ||
from stripe.api_resources.abstract import custom_method | ||
|
||
|
||
@custom_method("list_line_items", http_verb="get", http_path="line_items") | ||
class QuotePhase(ListableAPIResource): | ||
OBJECT_NAME = "quote_phase" | ||
|
||
def list_line_items(self, idempotency_key=None, **params): | ||
url = "/v1/quote_phases/{quote_phase}/line_items".format( | ||
quote_phase=util.sanitize_id(self.get("id")) | ||
) | ||
headers = util.populate_headers(idempotency_key) | ||
resp = self.request("get", url, params, headers) | ||
stripe_object = util.convert_to_stripe_object(resp) | ||
stripe_object._retrieve_params = params | ||
return stripe_object |
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