Skip to content

Commit

Permalink
Deleted fields (#1054)
Browse files Browse the repository at this point in the history
  • Loading branch information
richardm-stripe authored Sep 21, 2023
1 parent 8954032 commit 1ed5ad8
Show file tree
Hide file tree
Showing 23 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions stripe/api_resources/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ class Account(
"""

OBJECT_NAME = "account"
deleted: bool
business_profile: Optional[StripeObject]
business_type: Optional[
Literal["company", "government_entity", "individual", "non_profit"]
Expand Down
1 change: 1 addition & 0 deletions stripe/api_resources/apple_pay_domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class ApplePayDomain(
ListableAPIResource["ApplePayDomain"],
):
OBJECT_NAME = "apple_pay_domain"
deleted: bool
created: int
domain_name: str
id: str
Expand Down
1 change: 1 addition & 0 deletions stripe/api_resources/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

class Application(StripeObject):
OBJECT_NAME = "application"
deleted: bool
id: str
name: Optional[str]
object: Literal["application"]
1 change: 1 addition & 0 deletions stripe/api_resources/bank_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class BankAccount(
"""

OBJECT_NAME = "bank_account"
deleted: bool
account: Optional[ExpandableField["Account"]]
account_holder_name: Optional[str]
account_holder_type: Optional[str]
Expand Down
1 change: 1 addition & 0 deletions stripe/api_resources/card.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class Card(DeletableAPIResource["Card"], UpdateableAPIResource["Card"]):
"""

OBJECT_NAME = "card"
deleted: bool
account: Optional[ExpandableField["Account"]]
address_city: Optional[str]
address_country: Optional[str]
Expand Down
1 change: 1 addition & 0 deletions stripe/api_resources/coupon.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class Coupon(
"""

OBJECT_NAME = "coupon"
deleted: bool
amount_off: Optional[int]
applies_to: StripeObject
created: int
Expand Down
1 change: 1 addition & 0 deletions stripe/api_resources/customer.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ class Customer(
"""

OBJECT_NAME = "customer"
deleted: bool
address: Optional[StripeObject]
balance: int
cash_balance: Optional["CashBalance"]
Expand Down
1 change: 1 addition & 0 deletions stripe/api_resources/discount.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class Discount(StripeObject):
"""

OBJECT_NAME = "discount"
deleted: bool
checkout_session: Optional[str]
coupon: "Coupon"
customer: Optional[ExpandableField[Any]]
Expand Down
1 change: 1 addition & 0 deletions stripe/api_resources/invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ class Invoice(
"""

OBJECT_NAME = "invoice"
deleted: bool
account_country: Optional[str]
account_name: Optional[str]
account_tax_ids: Optional[List[ExpandableField[Any]]]
Expand Down
1 change: 1 addition & 0 deletions stripe/api_resources/invoice_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class InvoiceItem(
"""

OBJECT_NAME = "invoiceitem"
deleted: bool
amount: int
currency: str
customer: ExpandableField[Any]
Expand Down
1 change: 1 addition & 0 deletions stripe/api_resources/person.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class Person(UpdateableAPIResource["Person"]):
"""

OBJECT_NAME = "person"
deleted: bool
account: str
address: StripeObject
address_kana: Optional[StripeObject]
Expand Down
1 change: 1 addition & 0 deletions stripe/api_resources/plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class Plan(
"""

OBJECT_NAME = "plan"
deleted: bool
active: bool
aggregate_usage: Optional[
Literal["last_during_period", "last_ever", "max", "sum"]
Expand Down
1 change: 1 addition & 0 deletions stripe/api_resources/price.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class Price(
"""

OBJECT_NAME = "price"
deleted: bool
active: bool
billing_scheme: Literal["per_unit", "tiered"]
created: int
Expand Down
1 change: 1 addition & 0 deletions stripe/api_resources/product.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ class Product(
"""

OBJECT_NAME = "product"
deleted: bool
active: bool
created: int
default_price: Optional[ExpandableField["Price"]]
Expand Down
1 change: 1 addition & 0 deletions stripe/api_resources/radar/value_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class ValueList(
"""

OBJECT_NAME = "radar.value_list"
deleted: bool
alias: str
created: int
created_by: str
Expand Down
1 change: 1 addition & 0 deletions stripe/api_resources/radar/value_list_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class ValueListItem(
"""

OBJECT_NAME = "radar.value_list_item"
deleted: bool
created: int
created_by: str
id: str
Expand Down
1 change: 1 addition & 0 deletions stripe/api_resources/subscription_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class SubscriptionItem(
"""

OBJECT_NAME = "subscription_item"
deleted: bool
billing_thresholds: Optional[StripeObject]
created: int
id: str
Expand Down
1 change: 1 addition & 0 deletions stripe/api_resources/tax_id.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class TaxId(APIResource["TaxId"]):
"""

OBJECT_NAME = "tax_id"
deleted: bool
country: Optional[str]
created: int
customer: Optional[ExpandableField["Customer"]]
Expand Down
1 change: 1 addition & 0 deletions stripe/api_resources/terminal/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class Configuration(
"""

OBJECT_NAME = "terminal.configuration"
deleted: bool
bbpos_wisepos_e: StripeObject
id: str
is_account_default: Optional[bool]
Expand Down
1 change: 1 addition & 0 deletions stripe/api_resources/terminal/location.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class Location(
"""

OBJECT_NAME = "terminal.location"
deleted: bool
address: StripeObject
configuration_overrides: str
display_name: str
Expand Down
1 change: 1 addition & 0 deletions stripe/api_resources/terminal/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class Reader(
"""

OBJECT_NAME = "terminal.reader"
deleted: bool
action: Optional[StripeObject]
device_sw_version: Optional[str]
device_type: Literal[
Expand Down
1 change: 1 addition & 0 deletions stripe/api_resources/test_helpers/test_clock.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class TestClock(
"""

OBJECT_NAME = "test_helpers.test_clock"
deleted: bool
created: int
deletes_after: int
frozen_time: int
Expand Down
1 change: 1 addition & 0 deletions stripe/api_resources/webhook_endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class WebhookEndpoint(
"""

OBJECT_NAME = "webhook_endpoint"
deleted: bool
api_version: Optional[str]
application: Optional[str]
created: int
Expand Down

0 comments on commit 1ed5ad8

Please sign in to comment.