diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6b02f17e6..272da414a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -109,6 +109,7 @@ jobs: needs: [build, test, lint] runs-on: "ubuntu-24.04" steps: + - uses: extractions/setup-just@v2 - uses: actions/checkout@v3 - name: Download all workflow run artifacts uses: actions/download-artifact@v3 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md deleted file mode 100644 index 1615afa65..000000000 --- a/CONTRIBUTING.md +++ /dev/null @@ -1,25 +0,0 @@ - -# Contributing - -We welcome bug reports, feature requests, and code contributions in a pull request. - -For most pull requests, we request that you identify or create an associated issue that has the necessary context. We use these issues to reach agreement on an approach and save the PR author from having to redo work. Fixing typos or documentation issues likely do not need an issue; for any issue that introduces substantial code changes, changes the public interface, or if you aren't sure, please find or [create an issue](https://www.github.com/stripe/stripe-python/issues/new/choose). - -## Contributor License Agreement - -All contributors must sign the Contributor License Agreement (CLA) before we can accept their contribution. If you have not yet signed the agreement, you will be given an option to do so when you open a pull request. You can then sign by clicking on the badge in the comment from @CLAassistant. - -## Generated code - -This project has a combination of manually maintained code and code generated from our private code generator. If your contribution involves changes to generated code, please call this out in the issue or pull request as we will likely need to make a change to our code generator before accepting the contribution. - -To identify files with purely generated code, look for the comment `File generated from our OpenAPI spec.` at the start of the file. Generated blocks of code within hand-written files will be between comments that say `The beginning of the section generated from our OpenAPI spec` and `The end of the section generated from our OpenAPI spec`. - -## Compatibility with supported language and runtime versions - -This project supports [many different langauge and runtime versions](README.md#requirements) and we are unable to accept any contribution that does not work on _all_ supported versions. If, after discussing the approach in the associated issue, your change must use an API / feature that isn't available in all supported versions, please call this out explicitly in the issue or pull request so we can help figure out the best way forward. - -## Set up your dev environment - -Please refer to this project's [README.md](README.md#development) for instructions on how to set up your development environment. - diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 4624c15fb..5454d94e1 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1454 \ No newline at end of file +v1460 \ No newline at end of file diff --git a/stripe/_charge.py b/stripe/_charge.py index f5ae40ca4..3e26ab134 100644 --- a/stripe/_charge.py +++ b/stripe/_charge.py @@ -858,7 +858,7 @@ class ShippingAddress(StripeObject): """ network_transaction_id: Optional[str] """ - This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. The first three digits of the Trace ID is the Financial Network Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent the date (MM/DD). This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands. + This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise. """ overcapture: Optional[Overcapture] partial_authorization: Optional[PartialAuthorization] @@ -1023,7 +1023,7 @@ class Wallet(StripeObject): """ network_transaction_id: Optional[str] """ - This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. The first three digits of the Trace ID is the Financial Network Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent the date (MM/DD). This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands. + This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise. """ offline: Optional[Offline] """ @@ -1371,7 +1371,7 @@ class Receipt(StripeObject): """ network_transaction_id: Optional[str] """ - This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. The first three digits of the Trace ID is the Financial Network Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent the date (MM/DD). This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands. + This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise. """ preferred_locales: Optional[List[str]] """ diff --git a/stripe/_confirmation_token.py b/stripe/_confirmation_token.py index 37884ac05..ca581615a 100644 --- a/stripe/_confirmation_token.py +++ b/stripe/_confirmation_token.py @@ -355,7 +355,7 @@ class Wallet(StripeObject): """ network_transaction_id: Optional[str] """ - This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. The first three digits of the Trace ID is the Financial Network Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent the date (MM/DD). This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands. + This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise. """ offline: Optional[Offline] """ diff --git a/stripe/_payment_method.py b/stripe/_payment_method.py index 3dbf76516..4ebd882bd 100644 --- a/stripe/_payment_method.py +++ b/stripe/_payment_method.py @@ -312,7 +312,7 @@ class Wallet(StripeObject): """ network_transaction_id: Optional[str] """ - This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. The first three digits of the Trace ID is the Financial Network Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent the date (MM/DD). This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands. + This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise. """ offline: Optional[Offline] """ diff --git a/stripe/terminal/_reader.py b/stripe/terminal/_reader.py index 6386e007b..e229c5093 100644 --- a/stripe/terminal/_reader.py +++ b/stripe/terminal/_reader.py @@ -247,10 +247,6 @@ class Tipping(StripeObject): Related guides: [Payment Methods](https://stripe.com/docs/payments/payment-methods) and [More Payment Scenarios](https://stripe.com/docs/payments/more-payment-scenarios). """ - stripe_account: Optional[str] - """ - This field will be deprecated. Please use `account` instead. - """ _inner_class_types = {"collect_config": CollectConfig} class ConfirmPaymentIntent(StripeObject): @@ -262,10 +258,6 @@ class ConfirmPaymentIntent(StripeObject): """ Most recent PaymentIntent processed by the reader. """ - stripe_account: Optional[str] - """ - This field will be deprecated. Please use `account` instead. - """ class ProcessPaymentIntent(StripeObject): class ProcessConfig(StripeObject): @@ -301,10 +293,6 @@ class Tipping(StripeObject): """ Represents a per-transaction override of a reader configuration """ - stripe_account: Optional[str] - """ - This field will be deprecated. Please use `account` instead. - """ _inner_class_types = {"process_config": ProcessConfig} class ProcessSetupIntent(StripeObject): @@ -377,10 +365,6 @@ class RefundPaymentConfig(StripeObject): """ Boolean indicating whether the transfer should be reversed when refunding this charge. The transfer will be reversed proportionally to the amount being refunded (either the entire or partial amount). A transfer can be reversed only by the application that created the charge. """ - stripe_account: Optional[str] - """ - This field will be deprecated. Please use `account` instead. - """ _inner_class_types = {"refund_payment_config": RefundPaymentConfig} class SetReaderDisplay(StripeObject):