code
stringlengths
66
870k
docstring
stringlengths
19
26.7k
func_name
stringlengths
1
138
language
stringclasses
1 value
repo
stringlengths
7
68
path
stringlengths
5
324
url
stringlengths
46
389
license
stringclasses
7 values
def _cls_activate( cls, id: str, **params: Unpack["Alert.ActivateParams"] ) -> "Alert": """ Reactivates this alert, allowing it to trigger again. """ return cast( "Alert", cls._static_request( "post", "/v1/billing/alerts...
Reactivates this alert, allowing it to trigger again.
_cls_activate
python
stripe/stripe-python
stripe/billing/_alert.py
https://github.com/stripe/stripe-python/blob/master/stripe/billing/_alert.py
MIT
def _cls_archive( cls, id: str, **params: Unpack["Alert.ArchiveParams"] ) -> "Alert": """ Archives this alert, removing it from the list view and APIs. This is non-reversible. """ return cast( "Alert", cls._static_request( "post", ...
Archives this alert, removing it from the list view and APIs. This is non-reversible.
_cls_archive
python
stripe/stripe-python
stripe/billing/_alert.py
https://github.com/stripe/stripe-python/blob/master/stripe/billing/_alert.py
MIT
def _cls_deactivate( cls, id: str, **params: Unpack["Alert.DeactivateParams"] ) -> "Alert": """ Deactivates this alert, preventing it from triggering. """ return cast( "Alert", cls._static_request( "post", "/v1/billing/a...
Deactivates this alert, preventing it from triggering.
_cls_deactivate
python
stripe/stripe-python
stripe/billing/_alert.py
https://github.com/stripe/stripe-python/blob/master/stripe/billing/_alert.py
MIT
def list(cls, **params: Unpack["Alert.ListParams"]) -> ListObject["Alert"]: """ Lists billing active and inactive alerts """ result = cls._static_request( "get", cls.class_url(), params=params, ) if not isinstance(result, ListObject): ...
Lists billing active and inactive alerts
list
python
stripe/stripe-python
stripe/billing/_alert.py
https://github.com/stripe/stripe-python/blob/master/stripe/billing/_alert.py
MIT
def retrieve( cls, id: str, **params: Unpack["Alert.RetrieveParams"] ) -> "Alert": """ Retrieves a billing alert given an ID """ instance = cls(id, **params) instance.refresh() return instance
Retrieves a billing alert given an ID
retrieve
python
stripe/stripe-python
stripe/billing/_alert.py
https://github.com/stripe/stripe-python/blob/master/stripe/billing/_alert.py
MIT
def retrieve( cls, **params: Unpack["CreditBalanceSummary.RetrieveParams"] ) -> "CreditBalanceSummary": """ Retrieves the credit balance summary for a customer. """ instance = cls(None, **params) instance.refresh() return instance
Retrieves the credit balance summary for a customer.
retrieve
python
stripe/stripe-python
stripe/billing/_credit_balance_summary.py
https://github.com/stripe/stripe-python/blob/master/stripe/billing/_credit_balance_summary.py
MIT
def list( cls, **params: Unpack["CreditBalanceTransaction.ListParams"] ) -> ListObject["CreditBalanceTransaction"]: """ Retrieve a list of credit balance transactions. """ result = cls._static_request( "get", cls.class_url(), params=params,...
Retrieve a list of credit balance transactions.
list
python
stripe/stripe-python
stripe/billing/_credit_balance_transaction.py
https://github.com/stripe/stripe-python/blob/master/stripe/billing/_credit_balance_transaction.py
MIT
def _cls_deactivate( cls, id: str, **params: Unpack["Meter.DeactivateParams"] ) -> "Meter": """ When a meter is deactivated, no more meter events will be accepted for this meter. You can't attach a deactivated meter to a price. """ return cast( "Meter", ...
When a meter is deactivated, no more meter events will be accepted for this meter. You can't attach a deactivated meter to a price.
_cls_deactivate
python
stripe/stripe-python
stripe/billing/_meter.py
https://github.com/stripe/stripe-python/blob/master/stripe/billing/_meter.py
MIT
def _cls_reactivate( cls, id: str, **params: Unpack["Meter.ReactivateParams"] ) -> "Meter": """ When a meter is reactivated, events for this meter can be accepted and you can attach the meter to a price. """ return cast( "Meter", cls._static_request( ...
When a meter is reactivated, events for this meter can be accepted and you can attach the meter to a price.
_cls_reactivate
python
stripe/stripe-python
stripe/billing/_meter.py
https://github.com/stripe/stripe-python/blob/master/stripe/billing/_meter.py
MIT
def retrieve( cls, id: str, **params: Unpack["Meter.RetrieveParams"] ) -> "Meter": """ Retrieves a billing meter given an ID. """ instance = cls(id, **params) instance.refresh() return instance
Retrieves a billing meter given an ID.
retrieve
python
stripe/stripe-python
stripe/billing/_meter.py
https://github.com/stripe/stripe-python/blob/master/stripe/billing/_meter.py
MIT
def list_event_summaries( cls, id: str, **params: Unpack["Meter.ListEventSummariesParams"] ) -> ListObject["MeterEventSummary"]: """ Retrieve a list of billing meter event summaries. """ return cast( ListObject["MeterEventSummary"], cls._static_request...
Retrieve a list of billing meter event summaries.
list_event_summaries
python
stripe/stripe-python
stripe/billing/_meter.py
https://github.com/stripe/stripe-python/blob/master/stripe/billing/_meter.py
MIT
def create( cls, **params: Unpack["Configuration.CreateParams"] ) -> "Configuration": """ Creates a configuration that describes the functionality and behavior of a PortalSession """ return cast( "Configuration", cls._static_request( "p...
Creates a configuration that describes the functionality and behavior of a PortalSession
create
python
stripe/stripe-python
stripe/billing_portal/_configuration.py
https://github.com/stripe/stripe-python/blob/master/stripe/billing_portal/_configuration.py
MIT
def list( cls, **params: Unpack["Configuration.ListParams"] ) -> ListObject["Configuration"]: """ Returns a list of configurations that describe the functionality of the customer portal. """ result = cls._static_request( "get", cls.class_url(), ...
Returns a list of configurations that describe the functionality of the customer portal.
list
python
stripe/stripe-python
stripe/billing_portal/_configuration.py
https://github.com/stripe/stripe-python/blob/master/stripe/billing_portal/_configuration.py
MIT
def modify( cls, id: str, **params: Unpack["Configuration.ModifyParams"] ) -> "Configuration": """ Updates a configuration that describes the functionality of the customer portal. """ url = "%s/%s" % (cls.class_url(), sanitize_id(id)) return cast( "Configu...
Updates a configuration that describes the functionality of the customer portal.
modify
python
stripe/stripe-python
stripe/billing_portal/_configuration.py
https://github.com/stripe/stripe-python/blob/master/stripe/billing_portal/_configuration.py
MIT
def retrieve( cls, id: str, **params: Unpack["Configuration.RetrieveParams"] ) -> "Configuration": """ Retrieves a configuration that describes the functionality of the customer portal. """ instance = cls(id, **params) instance.refresh() return instance
Retrieves a configuration that describes the functionality of the customer portal.
retrieve
python
stripe/stripe-python
stripe/billing_portal/_configuration.py
https://github.com/stripe/stripe-python/blob/master/stripe/billing_portal/_configuration.py
MIT
def create(cls, **params: Unpack["Session.CreateParams"]) -> "Session": """ Creates a session of the customer portal. """ return cast( "Session", cls._static_request( "post", cls.class_url(), params=params, ...
Creates a session of the customer portal.
create
python
stripe/stripe-python
stripe/billing_portal/_session.py
https://github.com/stripe/stripe-python/blob/master/stripe/billing_portal/_session.py
MIT
def _cls_expire( cls, session: str, **params: Unpack["Session.ExpireParams"] ) -> "Session": """ A Checkout Session can be expired when it is in one of these statuses: open After it expires, a customer can't complete a Checkout Session and customers loading the Checkout Session see ...
A Checkout Session can be expired when it is in one of these statuses: open After it expires, a customer can't complete a Checkout Session and customers loading the Checkout Session see a message saying the Checkout Session is expired.
_cls_expire
python
stripe/stripe-python
stripe/checkout/_session.py
https://github.com/stripe/stripe-python/blob/master/stripe/checkout/_session.py
MIT
def _cls_list_line_items( cls, session: str, **params: Unpack["Session.ListLineItemsParams"] ) -> ListObject["LineItem"]: """ When retrieving a Checkout Session, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve...
When retrieving a Checkout Session, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.
_cls_list_line_items
python
stripe/stripe-python
stripe/checkout/_session.py
https://github.com/stripe/stripe-python/blob/master/stripe/checkout/_session.py
MIT
def modify( cls, id: str, **params: Unpack["Session.ModifyParams"] ) -> "Session": """ Updates a Checkout Session object. Related guide: [Dynamically update Checkout](https://docs.stripe.com/payments/checkout/dynamic-updates) """ url = "%s/%s" % (cls.class_url(), san...
Updates a Checkout Session object. Related guide: [Dynamically update Checkout](https://docs.stripe.com/payments/checkout/dynamic-updates)
modify
python
stripe/stripe-python
stripe/checkout/_session.py
https://github.com/stripe/stripe-python/blob/master/stripe/checkout/_session.py
MIT
def _cls_cancel( cls, order: str, **params: Unpack["Order.CancelParams"] ) -> "Order": """ Cancels a Climate order. You can cancel an order within 24 hours of creation. Stripe refunds the reservation amount_subtotal, but not the amount_fees for user-triggered cancellations. Frontier ...
Cancels a Climate order. You can cancel an order within 24 hours of creation. Stripe refunds the reservation amount_subtotal, but not the amount_fees for user-triggered cancellations. Frontier might cancel reservations if suppliers fail to deliver. If Frontier cancels the reservation, Stripe ...
_cls_cancel
python
stripe/stripe-python
stripe/climate/_order.py
https://github.com/stripe/stripe-python/blob/master/stripe/climate/_order.py
MIT
def create(cls, **params: Unpack["Order.CreateParams"]) -> "Order": """ Creates a Climate order object for a given Climate product. The order will be processed immediately after creation and payment will be deducted your Stripe balance. """ return cast( "Order", ...
Creates a Climate order object for a given Climate product. The order will be processed immediately after creation and payment will be deducted your Stripe balance.
create
python
stripe/stripe-python
stripe/climate/_order.py
https://github.com/stripe/stripe-python/blob/master/stripe/climate/_order.py
MIT
def list(cls, **params: Unpack["Order.ListParams"]) -> ListObject["Order"]: """ Lists all Climate order objects. The orders are returned sorted by creation date, with the most recently created orders appearing first. """ result = cls._static_request( "get", ...
Lists all Climate order objects. The orders are returned sorted by creation date, with the most recently created orders appearing first.
list
python
stripe/stripe-python
stripe/climate/_order.py
https://github.com/stripe/stripe-python/blob/master/stripe/climate/_order.py
MIT
def modify( cls, id: str, **params: Unpack["Order.ModifyParams"] ) -> "Order": """ Updates the specified order by setting the values of the parameters passed. """ url = "%s/%s" % (cls.class_url(), sanitize_id(id)) return cast( "Order", cls._sta...
Updates the specified order by setting the values of the parameters passed.
modify
python
stripe/stripe-python
stripe/climate/_order.py
https://github.com/stripe/stripe-python/blob/master/stripe/climate/_order.py
MIT
def retrieve( cls, id: str, **params: Unpack["Order.RetrieveParams"] ) -> "Order": """ Retrieves the details of a Climate order object with the given ID. """ instance = cls(id, **params) instance.refresh() return instance
Retrieves the details of a Climate order object with the given ID.
retrieve
python
stripe/stripe-python
stripe/climate/_order.py
https://github.com/stripe/stripe-python/blob/master/stripe/climate/_order.py
MIT
def list( cls, **params: Unpack["Product.ListParams"] ) -> ListObject["Product"]: """ Lists all available Climate product objects. """ result = cls._static_request( "get", cls.class_url(), params=params, ) if not isinstance(...
Lists all available Climate product objects.
list
python
stripe/stripe-python
stripe/climate/_product.py
https://github.com/stripe/stripe-python/blob/master/stripe/climate/_product.py
MIT
def retrieve( cls, id: str, **params: Unpack["Product.RetrieveParams"] ) -> "Product": """ Retrieves the details of a Climate product with the given ID. """ instance = cls(id, **params) instance.refresh() return instance
Retrieves the details of a Climate product with the given ID.
retrieve
python
stripe/stripe-python
stripe/climate/_product.py
https://github.com/stripe/stripe-python/blob/master/stripe/climate/_product.py
MIT
def list( cls, **params: Unpack["Supplier.ListParams"] ) -> ListObject["Supplier"]: """ Lists all available Climate supplier objects. """ result = cls._static_request( "get", cls.class_url(), params=params, ) if not isinstan...
Lists all available Climate supplier objects.
list
python
stripe/stripe-python
stripe/climate/_supplier.py
https://github.com/stripe/stripe-python/blob/master/stripe/climate/_supplier.py
MIT
def list( cls, **params: Unpack["ActiveEntitlement.ListParams"] ) -> ListObject["ActiveEntitlement"]: """ Retrieve a list of active entitlements for a customer """ result = cls._static_request( "get", cls.class_url(), params=params, ...
Retrieve a list of active entitlements for a customer
list
python
stripe/stripe-python
stripe/entitlements/_active_entitlement.py
https://github.com/stripe/stripe-python/blob/master/stripe/entitlements/_active_entitlement.py
MIT
def modify( cls, id: str, **params: Unpack["Feature.ModifyParams"] ) -> "Feature": """ Update a feature's metadata or permanently deactivate it. """ url = "%s/%s" % (cls.class_url(), sanitize_id(id)) return cast( "Feature", cls._static_request(...
Update a feature's metadata or permanently deactivate it.
modify
python
stripe/stripe-python
stripe/entitlements/_feature.py
https://github.com/stripe/stripe-python/blob/master/stripe/entitlements/_feature.py
MIT
def fetch_related_object(self) -> Meter: """ Retrieves the related object from the API. Makes an API request on every call. """ return cast( Meter, self._requestor.request( "get", self.related_object.url, base_addres...
Retrieves the related object from the API. Makes an API request on every call.
fetch_related_object
python
stripe/stripe-python
stripe/events/_v1_billing_meter_error_report_triggered_event.py
https://github.com/stripe/stripe-python/blob/master/stripe/events/_v1_billing_meter_error_report_triggered_event.py
MIT
def _cls_disconnect( cls, account: str, **params: Unpack["Account.DisconnectParams"] ) -> "Account": """ Disables your access to a Financial Connections Account. You will no longer be able to access data associated with the account (e.g. balances, transactions). """ return ca...
Disables your access to a Financial Connections Account. You will no longer be able to access data associated with the account (e.g. balances, transactions).
_cls_disconnect
python
stripe/stripe-python
stripe/financial_connections/_account.py
https://github.com/stripe/stripe-python/blob/master/stripe/financial_connections/_account.py
MIT
def list( cls, **params: Unpack["Account.ListParams"] ) -> ListObject["Account"]: """ Returns a list of Financial Connections Account objects. """ result = cls._static_request( "get", cls.class_url(), params=params, ) if not...
Returns a list of Financial Connections Account objects.
list
python
stripe/stripe-python
stripe/financial_connections/_account.py
https://github.com/stripe/stripe-python/blob/master/stripe/financial_connections/_account.py
MIT
def _cls_list_owners( cls, account: str, **params: Unpack["Account.ListOwnersParams"] ) -> ListObject["AccountOwner"]: """ Lists all owners for a given Account """ return cast( ListObject["AccountOwner"], cls._static_request( "get", ...
Lists all owners for a given Account
_cls_list_owners
python
stripe/stripe-python
stripe/financial_connections/_account.py
https://github.com/stripe/stripe-python/blob/master/stripe/financial_connections/_account.py
MIT
def _cls_refresh_account( cls, account: str, **params: Unpack["Account.RefreshAccountParams"] ) -> "Account": """ Refreshes the data associated with a Financial Connections Account. """ return cast( "Account", cls._static_request( "post...
Refreshes the data associated with a Financial Connections Account.
_cls_refresh_account
python
stripe/stripe-python
stripe/financial_connections/_account.py
https://github.com/stripe/stripe-python/blob/master/stripe/financial_connections/_account.py
MIT
def retrieve( cls, id: str, **params: Unpack["Account.RetrieveParams"] ) -> "Account": """ Retrieves the details of an Financial Connections Account. """ instance = cls(id, **params) instance.refresh() return instance
Retrieves the details of an Financial Connections Account.
retrieve
python
stripe/stripe-python
stripe/financial_connections/_account.py
https://github.com/stripe/stripe-python/blob/master/stripe/financial_connections/_account.py
MIT
def _cls_subscribe( cls, account: str, **params: Unpack["Account.SubscribeParams"] ) -> "Account": """ Subscribes to periodic refreshes of data associated with a Financial Connections Account. """ return cast( "Account", cls._static_request( ...
Subscribes to periodic refreshes of data associated with a Financial Connections Account.
_cls_subscribe
python
stripe/stripe-python
stripe/financial_connections/_account.py
https://github.com/stripe/stripe-python/blob/master/stripe/financial_connections/_account.py
MIT
def _cls_unsubscribe( cls, account: str, **params: Unpack["Account.UnsubscribeParams"] ) -> "Account": """ Unsubscribes from periodic refreshes of data associated with a Financial Connections Account. """ return cast( "Account", cls._static_request( ...
Unsubscribes from periodic refreshes of data associated with a Financial Connections Account.
_cls_unsubscribe
python
stripe/stripe-python
stripe/financial_connections/_account.py
https://github.com/stripe/stripe-python/blob/master/stripe/financial_connections/_account.py
MIT
def create(cls, **params: Unpack["Session.CreateParams"]) -> "Session": """ To launch the Financial Connections authorization flow, create a Session. The session's client_secret can be used to launch the flow using Stripe.js. """ return cast( "Session", cls._stati...
To launch the Financial Connections authorization flow, create a Session. The session's client_secret can be used to launch the flow using Stripe.js.
create
python
stripe/stripe-python
stripe/financial_connections/_session.py
https://github.com/stripe/stripe-python/blob/master/stripe/financial_connections/_session.py
MIT
def retrieve( cls, id: str, **params: Unpack["Session.RetrieveParams"] ) -> "Session": """ Retrieves the details of a Financial Connections Session """ instance = cls(id, **params) instance.refresh() return instance
Retrieves the details of a Financial Connections Session
retrieve
python
stripe/stripe-python
stripe/financial_connections/_session.py
https://github.com/stripe/stripe-python/blob/master/stripe/financial_connections/_session.py
MIT
def list( cls, **params: Unpack["Transaction.ListParams"] ) -> ListObject["Transaction"]: """ Returns a list of Financial Connections Transaction objects. """ result = cls._static_request( "get", cls.class_url(), params=params, ) ...
Returns a list of Financial Connections Transaction objects.
list
python
stripe/stripe-python
stripe/financial_connections/_transaction.py
https://github.com/stripe/stripe-python/blob/master/stripe/financial_connections/_transaction.py
MIT
def retrieve( cls, id: str, **params: Unpack["Transaction.RetrieveParams"] ) -> "Transaction": """ Retrieves the details of a Financial Connections Transaction """ instance = cls(id, **params) instance.refresh() return instance
Retrieves the details of a Financial Connections Transaction
retrieve
python
stripe/stripe-python
stripe/financial_connections/_transaction.py
https://github.com/stripe/stripe-python/blob/master/stripe/financial_connections/_transaction.py
MIT
def _cls_cancel( cls, session: str, **params: Unpack["VerificationSession.CancelParams"] ) -> "VerificationSession": """ A VerificationSession object can be canceled when it is in requires_input [status](https://docs.stripe.com/docs/identity/how-sessions-work). Once canceled, future...
A VerificationSession object can be canceled when it is in requires_input [status](https://docs.stripe.com/docs/identity/how-sessions-work). Once canceled, future submission attempts are disabled. This cannot be undone. [Learn more](https://docs.stripe.com/docs/identity/verification-sessions#cancel). ...
_cls_cancel
python
stripe/stripe-python
stripe/identity/_verification_session.py
https://github.com/stripe/stripe-python/blob/master/stripe/identity/_verification_session.py
MIT
def create( cls, **params: Unpack["VerificationSession.CreateParams"] ) -> "VerificationSession": """ Creates a VerificationSession object. After the VerificationSession is created, display a verification modal using the session client_secret or send your users to the session's url....
Creates a VerificationSession object. After the VerificationSession is created, display a verification modal using the session client_secret or send your users to the session's url. If your API key is in test mode, verification checks won't actually process, though everything else will occur ...
create
python
stripe/stripe-python
stripe/identity/_verification_session.py
https://github.com/stripe/stripe-python/blob/master/stripe/identity/_verification_session.py
MIT
def modify( cls, id: str, **params: Unpack["VerificationSession.ModifyParams"] ) -> "VerificationSession": """ Updates a VerificationSession object. When the session status is requires_input, you can use this method to update the verification check and options. """ ...
Updates a VerificationSession object. When the session status is requires_input, you can use this method to update the verification check and options.
modify
python
stripe/stripe-python
stripe/identity/_verification_session.py
https://github.com/stripe/stripe-python/blob/master/stripe/identity/_verification_session.py
MIT
def retrieve( cls, id: str, **params: Unpack["VerificationSession.RetrieveParams"] ) -> "VerificationSession": """ Retrieves the details of a VerificationSession that was previously created. When the session status is requires_input, you can use this method to retrieve a valid ...
Retrieves the details of a VerificationSession that was previously created. When the session status is requires_input, you can use this method to retrieve a valid client_secret or url to allow re-submission.
retrieve
python
stripe/stripe-python
stripe/identity/_verification_session.py
https://github.com/stripe/stripe-python/blob/master/stripe/identity/_verification_session.py
MIT
def _cls_approve( cls, authorization: str, **params: Unpack["Authorization.ApproveParams"], ) -> "Authorization": """ [Deprecated] Approves a pending Issuing Authorization object. This request should be made within the timeout window of the [real-time authorization](https://d...
[Deprecated] Approves a pending Issuing Authorization object. This request should be made within the timeout window of the [real-time authorization](https://docs.stripe.com/docs/issuing/controls/real-time-authorizations) flow. This method is deprecated. Instead, [respond directly to the webhook request...
_cls_approve
python
stripe/stripe-python
stripe/issuing/_authorization.py
https://github.com/stripe/stripe-python/blob/master/stripe/issuing/_authorization.py
MIT
def _cls_decline( cls, authorization: str, **params: Unpack["Authorization.DeclineParams"], ) -> "Authorization": """ [Deprecated] Declines a pending Issuing Authorization object. This request should be made within the timeout window of the [real time authorization](https://d...
[Deprecated] Declines a pending Issuing Authorization object. This request should be made within the timeout window of the [real time authorization](https://docs.stripe.com/docs/issuing/controls/real-time-authorizations) flow. This method is deprecated. Instead, [respond directly to the webhook request...
_cls_decline
python
stripe/stripe-python
stripe/issuing/_authorization.py
https://github.com/stripe/stripe-python/blob/master/stripe/issuing/_authorization.py
MIT
def list( cls, **params: Unpack["Authorization.ListParams"] ) -> ListObject["Authorization"]: """ Returns a list of Issuing Authorization objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. """ result = ...
Returns a list of Issuing Authorization objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
list
python
stripe/stripe-python
stripe/issuing/_authorization.py
https://github.com/stripe/stripe-python/blob/master/stripe/issuing/_authorization.py
MIT
def modify( cls, id: str, **params: Unpack["Authorization.ModifyParams"] ) -> "Authorization": """ Updates the specified Issuing Authorization object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. """ url = "%s/%s" % (cls.c...
Updates the specified Issuing Authorization object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
modify
python
stripe/stripe-python
stripe/issuing/_authorization.py
https://github.com/stripe/stripe-python/blob/master/stripe/issuing/_authorization.py
MIT
def _cls_finalize_amount( cls, authorization: str, **params: Unpack["Authorization.FinalizeAmountParams"], ) -> "Authorization": """ Finalize the amount on an Authorization prior to capture, when the initial authorization was for an estimated amount. ...
Finalize the amount on an Authorization prior to capture, when the initial authorization was for an estimated amount.
_cls_finalize_amount
python
stripe/stripe-python
stripe/issuing/_authorization.py
https://github.com/stripe/stripe-python/blob/master/stripe/issuing/_authorization.py
MIT
def _cls_respond( cls, authorization: str, **params: Unpack["Authorization.RespondParams"], ) -> "Authorization": """ Respond to a fraud challenge on a testmode Issuing authorization, simulating either a confirmation of fraud or a correction of legitim...
Respond to a fraud challenge on a testmode Issuing authorization, simulating either a confirmation of fraud or a correction of legitimacy.
_cls_respond
python
stripe/stripe-python
stripe/issuing/_authorization.py
https://github.com/stripe/stripe-python/blob/master/stripe/issuing/_authorization.py
MIT
def list(cls, **params: Unpack["Card.ListParams"]) -> ListObject["Card"]: """ Returns a list of Issuing Card objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. """ result = cls._static_request( "get", ...
Returns a list of Issuing Card objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
list
python
stripe/stripe-python
stripe/issuing/_card.py
https://github.com/stripe/stripe-python/blob/master/stripe/issuing/_card.py
MIT
def modify(cls, id: str, **params: Unpack["Card.ModifyParams"]) -> "Card": """ Updates the specified Issuing Card object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. """ url = "%s/%s" % (cls.class_url(), sanitize_id(id)) retu...
Updates the specified Issuing Card object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
modify
python
stripe/stripe-python
stripe/issuing/_card.py
https://github.com/stripe/stripe-python/blob/master/stripe/issuing/_card.py
MIT
def _cls_deliver_card( cls, card: str, **params: Unpack["Card.DeliverCardParams"] ) -> "Card": """ Updates the shipping status of the specified Issuing Card object to delivered. """ return cast( "Card", cls._static_reque...
Updates the shipping status of the specified Issuing Card object to delivered.
_cls_deliver_card
python
stripe/stripe-python
stripe/issuing/_card.py
https://github.com/stripe/stripe-python/blob/master/stripe/issuing/_card.py
MIT
def _cls_fail_card( cls, card: str, **params: Unpack["Card.FailCardParams"] ) -> "Card": """ Updates the shipping status of the specified Issuing Card object to failure. """ return cast( "Card", cls._static_request( ...
Updates the shipping status of the specified Issuing Card object to failure.
_cls_fail_card
python
stripe/stripe-python
stripe/issuing/_card.py
https://github.com/stripe/stripe-python/blob/master/stripe/issuing/_card.py
MIT
def _cls_return_card( cls, card: str, **params: Unpack["Card.ReturnCardParams"] ) -> "Card": """ Updates the shipping status of the specified Issuing Card object to returned. """ return cast( "Card", cls._static_request(...
Updates the shipping status of the specified Issuing Card object to returned.
_cls_return_card
python
stripe/stripe-python
stripe/issuing/_card.py
https://github.com/stripe/stripe-python/blob/master/stripe/issuing/_card.py
MIT
def _cls_ship_card( cls, card: str, **params: Unpack["Card.ShipCardParams"] ) -> "Card": """ Updates the shipping status of the specified Issuing Card object to shipped. """ return cast( "Card", cls._static_request( ...
Updates the shipping status of the specified Issuing Card object to shipped.
_cls_ship_card
python
stripe/stripe-python
stripe/issuing/_card.py
https://github.com/stripe/stripe-python/blob/master/stripe/issuing/_card.py
MIT
def create( cls, **params: Unpack["Cardholder.CreateParams"] ) -> "Cardholder": """ Creates a new Issuing Cardholder object that can be issued cards. """ return cast( "Cardholder", cls._static_request( "post", cls.class_...
Creates a new Issuing Cardholder object that can be issued cards.
create
python
stripe/stripe-python
stripe/issuing/_cardholder.py
https://github.com/stripe/stripe-python/blob/master/stripe/issuing/_cardholder.py
MIT
def list( cls, **params: Unpack["Cardholder.ListParams"] ) -> ListObject["Cardholder"]: """ Returns a list of Issuing Cardholder objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. """ result = cls._stat...
Returns a list of Issuing Cardholder objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
list
python
stripe/stripe-python
stripe/issuing/_cardholder.py
https://github.com/stripe/stripe-python/blob/master/stripe/issuing/_cardholder.py
MIT
def modify( cls, id: str, **params: Unpack["Cardholder.ModifyParams"] ) -> "Cardholder": """ Updates the specified Issuing Cardholder object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. """ url = "%s/%s" % (cls.class_url(...
Updates the specified Issuing Cardholder object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
modify
python
stripe/stripe-python
stripe/issuing/_cardholder.py
https://github.com/stripe/stripe-python/blob/master/stripe/issuing/_cardholder.py
MIT
def create(cls, **params: Unpack["Dispute.CreateParams"]) -> "Dispute": """ Creates an Issuing Dispute object. Individual pieces of evidence within the evidence object are optional at this point. Stripe only validates that required evidence is present during submission. Refer to [Dispute reasons and evi...
Creates an Issuing Dispute object. Individual pieces of evidence within the evidence object are optional at this point. Stripe only validates that required evidence is present during submission. Refer to [Dispute reasons and evidence](https://docs.stripe.com/docs/issuing/purchases/disputes#dispute-reasons-and-...
create
python
stripe/stripe-python
stripe/issuing/_dispute.py
https://github.com/stripe/stripe-python/blob/master/stripe/issuing/_dispute.py
MIT
def list( cls, **params: Unpack["Dispute.ListParams"] ) -> ListObject["Dispute"]: """ Returns a list of Issuing Dispute objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. """ result = cls._static_reques...
Returns a list of Issuing Dispute objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
list
python
stripe/stripe-python
stripe/issuing/_dispute.py
https://github.com/stripe/stripe-python/blob/master/stripe/issuing/_dispute.py
MIT
def modify( cls, id: str, **params: Unpack["Dispute.ModifyParams"] ) -> "Dispute": """ Updates the specified Issuing Dispute object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Properties on the evidence object can be unset by passing in...
Updates the specified Issuing Dispute object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Properties on the evidence object can be unset by passing in an empty string.
modify
python
stripe/stripe-python
stripe/issuing/_dispute.py
https://github.com/stripe/stripe-python/blob/master/stripe/issuing/_dispute.py
MIT
def list( cls, **params: Unpack["PersonalizationDesign.ListParams"] ) -> ListObject["PersonalizationDesign"]: """ Returns a list of personalization design objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. """ ...
Returns a list of personalization design objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
list
python
stripe/stripe-python
stripe/issuing/_personalization_design.py
https://github.com/stripe/stripe-python/blob/master/stripe/issuing/_personalization_design.py
MIT
def _cls_activate( cls, personalization_design: str, **params: Unpack["PersonalizationDesign.ActivateParams"], ) -> "PersonalizationDesign": """ Updates the status of the specified testmode personalization design object to active. """ ...
Updates the status of the specified testmode personalization design object to active.
_cls_activate
python
stripe/stripe-python
stripe/issuing/_personalization_design.py
https://github.com/stripe/stripe-python/blob/master/stripe/issuing/_personalization_design.py
MIT
def _cls_deactivate( cls, personalization_design: str, **params: Unpack["PersonalizationDesign.DeactivateParams"], ) -> "PersonalizationDesign": """ Updates the status of the specified testmode personalization design object to inactive. """...
Updates the status of the specified testmode personalization design object to inactive.
_cls_deactivate
python
stripe/stripe-python
stripe/issuing/_personalization_design.py
https://github.com/stripe/stripe-python/blob/master/stripe/issuing/_personalization_design.py
MIT
def _cls_reject( cls, personalization_design: str, **params: Unpack["PersonalizationDesign.RejectParams"], ) -> "PersonalizationDesign": """ Updates the status of the specified testmode personalization design object to rejected. """ ...
Updates the status of the specified testmode personalization design object to rejected.
_cls_reject
python
stripe/stripe-python
stripe/issuing/_personalization_design.py
https://github.com/stripe/stripe-python/blob/master/stripe/issuing/_personalization_design.py
MIT
def list( cls, **params: Unpack["PhysicalBundle.ListParams"] ) -> ListObject["PhysicalBundle"]: """ Returns a list of physical bundle objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. """ result = cls....
Returns a list of physical bundle objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
list
python
stripe/stripe-python
stripe/issuing/_physical_bundle.py
https://github.com/stripe/stripe-python/blob/master/stripe/issuing/_physical_bundle.py
MIT
def list(cls, **params: Unpack["Token.ListParams"]) -> ListObject["Token"]: """ Lists all Issuing Token objects for a given card. """ result = cls._static_request( "get", cls.class_url(), params=params, ) if not isinstance(result, ListO...
Lists all Issuing Token objects for a given card.
list
python
stripe/stripe-python
stripe/issuing/_token.py
https://github.com/stripe/stripe-python/blob/master/stripe/issuing/_token.py
MIT
def modify( cls, id: str, **params: Unpack["Token.ModifyParams"] ) -> "Token": """ Attempts to update the specified Issuing Token object to the status specified. """ url = "%s/%s" % (cls.class_url(), sanitize_id(id)) return cast( "Token", cls._...
Attempts to update the specified Issuing Token object to the status specified.
modify
python
stripe/stripe-python
stripe/issuing/_token.py
https://github.com/stripe/stripe-python/blob/master/stripe/issuing/_token.py
MIT
def list( cls, **params: Unpack["Transaction.ListParams"] ) -> ListObject["Transaction"]: """ Returns a list of Issuing Transaction objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. """ result = cls._s...
Returns a list of Issuing Transaction objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
list
python
stripe/stripe-python
stripe/issuing/_transaction.py
https://github.com/stripe/stripe-python/blob/master/stripe/issuing/_transaction.py
MIT
def modify( cls, id: str, **params: Unpack["Transaction.ModifyParams"] ) -> "Transaction": """ Updates the specified Issuing Transaction object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. """ url = "%s/%s" % (cls.class_u...
Updates the specified Issuing Transaction object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
modify
python
stripe/stripe-python
stripe/issuing/_transaction.py
https://github.com/stripe/stripe-python/blob/master/stripe/issuing/_transaction.py
MIT
def create_force_capture( cls, **params: Unpack["Transaction.CreateForceCaptureParams"] ) -> "Transaction": """ Allows the user to capture an arbitrary amount, also known as a forced capture. """ return cast( "Transaction", ...
Allows the user to capture an arbitrary amount, also known as a forced capture.
create_force_capture
python
stripe/stripe-python
stripe/issuing/_transaction.py
https://github.com/stripe/stripe-python/blob/master/stripe/issuing/_transaction.py
MIT
def create_unlinked_refund( cls, **params: Unpack["Transaction.CreateUnlinkedRefundParams"] ) -> "Transaction": """ Allows the user to refund an arbitrary amount, also known as a unlinked refund. """ return cast( "Transaction", ...
Allows the user to refund an arbitrary amount, also known as a unlinked refund.
create_unlinked_refund
python
stripe/stripe-python
stripe/issuing/_transaction.py
https://github.com/stripe/stripe-python/blob/master/stripe/issuing/_transaction.py
MIT
def list( cls, **params: Unpack["EarlyFraudWarning.ListParams"] ) -> ListObject["EarlyFraudWarning"]: """ Returns a list of early fraud warnings. """ result = cls._static_request( "get", cls.class_url(), params=params, ) if ...
Returns a list of early fraud warnings.
list
python
stripe/stripe-python
stripe/radar/_early_fraud_warning.py
https://github.com/stripe/stripe-python/blob/master/stripe/radar/_early_fraud_warning.py
MIT
def retrieve( cls, id: str, **params: Unpack["EarlyFraudWarning.RetrieveParams"] ) -> "EarlyFraudWarning": """ Retrieves the details of an early fraud warning that has previously been created. Please refer to the [early fraud warning](https://docs.stripe.com/api#early_fraud_warning_...
Retrieves the details of an early fraud warning that has previously been created. Please refer to the [early fraud warning](https://docs.stripe.com/api#early_fraud_warning_object) object reference for more details.
retrieve
python
stripe/stripe-python
stripe/radar/_early_fraud_warning.py
https://github.com/stripe/stripe-python/blob/master/stripe/radar/_early_fraud_warning.py
MIT
def create(cls, **params: Unpack["ValueList.CreateParams"]) -> "ValueList": """ Creates a new ValueList object, which can then be referenced in rules. """ return cast( "ValueList", cls._static_request( "post", cls.class_url(), ...
Creates a new ValueList object, which can then be referenced in rules.
create
python
stripe/stripe-python
stripe/radar/_value_list.py
https://github.com/stripe/stripe-python/blob/master/stripe/radar/_value_list.py
MIT
def _cls_delete( cls, sid: str, **params: Unpack["ValueList.DeleteParams"] ) -> "ValueList": """ Deletes a ValueList object, also deleting any items contained within the value list. To be deleted, a value list must not be referenced in any rules. """ url = "%s/%s" % (cls.clas...
Deletes a ValueList object, also deleting any items contained within the value list. To be deleted, a value list must not be referenced in any rules.
_cls_delete
python
stripe/stripe-python
stripe/radar/_value_list.py
https://github.com/stripe/stripe-python/blob/master/stripe/radar/_value_list.py
MIT
def list( cls, **params: Unpack["ValueList.ListParams"] ) -> ListObject["ValueList"]: """ Returns a list of ValueList objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. """ result = cls._static_request(...
Returns a list of ValueList objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
list
python
stripe/stripe-python
stripe/radar/_value_list.py
https://github.com/stripe/stripe-python/blob/master/stripe/radar/_value_list.py
MIT
def modify( cls, id: str, **params: Unpack["ValueList.ModifyParams"] ) -> "ValueList": """ Updates a ValueList object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Note that item_type is immutable. """ url = "%s/%s" % (cls...
Updates a ValueList object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Note that item_type is immutable.
modify
python
stripe/stripe-python
stripe/radar/_value_list.py
https://github.com/stripe/stripe-python/blob/master/stripe/radar/_value_list.py
MIT
def create( cls, **params: Unpack["ValueListItem.CreateParams"] ) -> "ValueListItem": """ Creates a new ValueListItem object, which is added to the specified parent value list. """ return cast( "ValueListItem", cls._static_request( "pos...
Creates a new ValueListItem object, which is added to the specified parent value list.
create
python
stripe/stripe-python
stripe/radar/_value_list_item.py
https://github.com/stripe/stripe-python/blob/master/stripe/radar/_value_list_item.py
MIT
def _cls_delete( cls, sid: str, **params: Unpack["ValueListItem.DeleteParams"] ) -> "ValueListItem": """ Deletes a ValueListItem object, removing it from its parent value list. """ url = "%s/%s" % (cls.class_url(), sanitize_id(sid)) return cast( "ValueList...
Deletes a ValueListItem object, removing it from its parent value list.
_cls_delete
python
stripe/stripe-python
stripe/radar/_value_list_item.py
https://github.com/stripe/stripe-python/blob/master/stripe/radar/_value_list_item.py
MIT
def list( cls, **params: Unpack["ValueListItem.ListParams"] ) -> ListObject["ValueListItem"]: """ Returns a list of ValueListItem objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. """ result = cls._sta...
Returns a list of ValueListItem objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
list
python
stripe/stripe-python
stripe/radar/_value_list_item.py
https://github.com/stripe/stripe-python/blob/master/stripe/radar/_value_list_item.py
MIT
def create(cls, **params: Unpack["ReportRun.CreateParams"]) -> "ReportRun": """ Creates a new object and begin running the report. (Certain report types require a [live-mode API key](https://stripe.com/docs/keys#test-live-modes).) """ return cast( "ReportRun", cls...
Creates a new object and begin running the report. (Certain report types require a [live-mode API key](https://stripe.com/docs/keys#test-live-modes).)
create
python
stripe/stripe-python
stripe/reporting/_report_run.py
https://github.com/stripe/stripe-python/blob/master/stripe/reporting/_report_run.py
MIT
def list( cls, **params: Unpack["ReportRun.ListParams"] ) -> ListObject["ReportRun"]: """ Returns a list of Report Runs, with the most recent appearing first. """ result = cls._static_request( "get", cls.class_url(), params=params, ...
Returns a list of Report Runs, with the most recent appearing first.
list
python
stripe/stripe-python
stripe/reporting/_report_run.py
https://github.com/stripe/stripe-python/blob/master/stripe/reporting/_report_run.py
MIT
def retrieve( cls, id: str, **params: Unpack["ReportRun.RetrieveParams"] ) -> "ReportRun": """ Retrieves the details of an existing Report Run. """ instance = cls(id, **params) instance.refresh() return instance
Retrieves the details of an existing Report Run.
retrieve
python
stripe/stripe-python
stripe/reporting/_report_run.py
https://github.com/stripe/stripe-python/blob/master/stripe/reporting/_report_run.py
MIT
def list( cls, **params: Unpack["ReportType.ListParams"] ) -> ListObject["ReportType"]: """ Returns a full list of Report Types. """ result = cls._static_request( "get", cls.class_url(), params=params, ) if not isinstance(re...
Returns a full list of Report Types.
list
python
stripe/stripe-python
stripe/reporting/_report_type.py
https://github.com/stripe/stripe-python/blob/master/stripe/reporting/_report_type.py
MIT
def retrieve( cls, id: str, **params: Unpack["ReportType.RetrieveParams"] ) -> "ReportType": """ Retrieves the details of a Report Type. (Certain report types require a [live-mode API key](https://stripe.com/docs/keys#test-live-modes).) """ instance = cls(id, **params) ...
Retrieves the details of a Report Type. (Certain report types require a [live-mode API key](https://stripe.com/docs/keys#test-live-modes).)
retrieve
python
stripe/stripe-python
stripe/reporting/_report_type.py
https://github.com/stripe/stripe-python/blob/master/stripe/reporting/_report_type.py
MIT
def list( cls, **params: Unpack["ScheduledQueryRun.ListParams"] ) -> ListObject["ScheduledQueryRun"]: """ Returns a list of scheduled query runs. """ result = cls._static_request( "get", cls.class_url(), params=params, ) if ...
Returns a list of scheduled query runs.
list
python
stripe/stripe-python
stripe/sigma/_scheduled_query_run.py
https://github.com/stripe/stripe-python/blob/master/stripe/sigma/_scheduled_query_run.py
MIT
def retrieve( cls, id: str, **params: Unpack["ScheduledQueryRun.RetrieveParams"] ) -> "ScheduledQueryRun": """ Retrieves the details of an scheduled query run. """ instance = cls(id, **params) instance.refresh() return instance
Retrieves the details of an scheduled query run.
retrieve
python
stripe/stripe-python
stripe/sigma/_scheduled_query_run.py
https://github.com/stripe/stripe-python/blob/master/stripe/sigma/_scheduled_query_run.py
MIT
def create( cls, **params: Unpack["Calculation.CreateParams"] ) -> "Calculation": """ Calculates tax based on the input and returns a Tax Calculation object. """ return cast( "Calculation", cls._static_request( "post", c...
Calculates tax based on the input and returns a Tax Calculation object.
create
python
stripe/stripe-python
stripe/tax/_calculation.py
https://github.com/stripe/stripe-python/blob/master/stripe/tax/_calculation.py
MIT
def _cls_list_line_items( cls, calculation: str, **params: Unpack["Calculation.ListLineItemsParams"], ) -> ListObject["CalculationLineItem"]: """ Retrieves the line items of a tax calculation as a collection, if the calculation hasn't expired. """ return cast(...
Retrieves the line items of a tax calculation as a collection, if the calculation hasn't expired.
_cls_list_line_items
python
stripe/stripe-python
stripe/tax/_calculation.py
https://github.com/stripe/stripe-python/blob/master/stripe/tax/_calculation.py
MIT
def retrieve( cls, id: str, **params: Unpack["Calculation.RetrieveParams"] ) -> "Calculation": """ Retrieves a Tax Calculation object, if the calculation hasn't expired. """ instance = cls(id, **params) instance.refresh() return instance
Retrieves a Tax Calculation object, if the calculation hasn't expired.
retrieve
python
stripe/stripe-python
stripe/tax/_calculation.py
https://github.com/stripe/stripe-python/blob/master/stripe/tax/_calculation.py
MIT
def list( cls, **params: Unpack["Registration.ListParams"] ) -> ListObject["Registration"]: """ Returns a list of Tax Registration objects. """ result = cls._static_request( "get", cls.class_url(), params=params, ) if not is...
Returns a list of Tax Registration objects.
list
python
stripe/stripe-python
stripe/tax/_registration.py
https://github.com/stripe/stripe-python/blob/master/stripe/tax/_registration.py
MIT
def modify( cls, id: str, **params: Unpack["Registration.ModifyParams"] ) -> "Registration": """ Updates an existing Tax Registration object. A registration cannot be deleted after it has been created. If you wish to end a registration you may do so by setting expires_at. ""...
Updates an existing Tax Registration object. A registration cannot be deleted after it has been created. If you wish to end a registration you may do so by setting expires_at.
modify
python
stripe/stripe-python
stripe/tax/_registration.py
https://github.com/stripe/stripe-python/blob/master/stripe/tax/_registration.py
MIT
def modify(cls, **params: Unpack["Settings.ModifyParams"]) -> "Settings": """ Updates Tax Settings parameters used in tax calculations. All parameters are editable but none can be removed once set. """ return cast( "Settings", cls._static_request( ...
Updates Tax Settings parameters used in tax calculations. All parameters are editable but none can be removed once set.
modify
python
stripe/stripe-python
stripe/tax/_settings.py
https://github.com/stripe/stripe-python/blob/master/stripe/tax/_settings.py
MIT
def create_from_calculation( cls, **params: Unpack["Transaction.CreateFromCalculationParams"] ) -> "Transaction": """ Creates a Tax Transaction from a calculation, if that calculation hasn't expired. Calculations expire after 90 days. """ return cast( "Transaction...
Creates a Tax Transaction from a calculation, if that calculation hasn't expired. Calculations expire after 90 days.
create_from_calculation
python
stripe/stripe-python
stripe/tax/_transaction.py
https://github.com/stripe/stripe-python/blob/master/stripe/tax/_transaction.py
MIT
def create_reversal( cls, **params: Unpack["Transaction.CreateReversalParams"] ) -> "Transaction": """ Partially or fully reverses a previously created Transaction. """ return cast( "Transaction", cls._static_request( "post", ...
Partially or fully reverses a previously created Transaction.
create_reversal
python
stripe/stripe-python
stripe/tax/_transaction.py
https://github.com/stripe/stripe-python/blob/master/stripe/tax/_transaction.py
MIT
def create( cls, **params: Unpack["ConnectionToken.CreateParams"] ) -> "ConnectionToken": """ To connect to a reader the Stripe Terminal SDK needs to retrieve a short-lived connection token from Stripe, proxied through your server. On your backend, add an endpoint that creates and returns a ...
To connect to a reader the Stripe Terminal SDK needs to retrieve a short-lived connection token from Stripe, proxied through your server. On your backend, add an endpoint that creates and returns a connection token.
create
python
stripe/stripe-python
stripe/terminal/_connection_token.py
https://github.com/stripe/stripe-python/blob/master/stripe/terminal/_connection_token.py
MIT
def create(cls, **params: Unpack["Location.CreateParams"]) -> "Location": """ Creates a new Location object. For further details, including which address fields are required in each country, see the [Manage locations](https://docs.stripe.com/docs/terminal/fleet/locations) guide. """ ...
Creates a new Location object. For further details, including which address fields are required in each country, see the [Manage locations](https://docs.stripe.com/docs/terminal/fleet/locations) guide.
create
python
stripe/stripe-python
stripe/terminal/_location.py
https://github.com/stripe/stripe-python/blob/master/stripe/terminal/_location.py
MIT