-
Notifications
You must be signed in to change notification settings - Fork 432
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update generated code for v1268 * Update generated code for v1268 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
- Loading branch information
1 parent
3587026
commit 791fc11
Showing
44 changed files
with
2,045 additions
and
203 deletions.
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 @@ | ||
v1267 | ||
v1268 |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# -*- coding: utf-8 -*- | ||
# File generated from our OpenAPI spec | ||
class _ApiVersion: | ||
CURRENT = "2024-06-20" | ||
CURRENT = "2024-09-30.acacia" |
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
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
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
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,50 @@ | ||
# -*- coding: utf-8 -*- | ||
# File generated from our OpenAPI spec | ||
from stripe._stripe_object import StripeObject | ||
from typing import ClassVar, Dict, Optional | ||
from typing_extensions import Literal | ||
|
||
|
||
class Margin(StripeObject): | ||
""" | ||
A (partner) margin represents a specific discount distributed in partner reseller programs to business partners who | ||
resell products and services and earn a discount (margin) for doing so. | ||
""" | ||
|
||
OBJECT_NAME: ClassVar[Literal["margin"]] = "margin" | ||
active: bool | ||
""" | ||
Whether the margin can be applied to invoices, invoice items, or invoice line items. Defaults to `true`. | ||
""" | ||
created: int | ||
""" | ||
Time at which the object was created. Measured in seconds since the Unix epoch. | ||
""" | ||
id: str | ||
""" | ||
Unique identifier for the object. | ||
""" | ||
livemode: bool | ||
""" | ||
Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. | ||
""" | ||
metadata: Optional[Dict[str, str]] | ||
""" | ||
Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. | ||
""" | ||
name: Optional[str] | ||
""" | ||
Name of the margin that's displayed on, for example, invoices. | ||
""" | ||
object: Literal["margin"] | ||
""" | ||
String representing the object's type. Objects of the same type share the same value. | ||
""" | ||
percent_off: float | ||
""" | ||
Percent that will be taken off the subtotal before tax (after all other discounts and promotions) of any invoice to which the margin is applied. | ||
""" | ||
updated: int | ||
""" | ||
Time at which the object was last updated. Measured in seconds since the Unix epoch. | ||
""" |
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
Oops, something went wrong.