From 268940439cdffe9a31a16d44b439f8b1ebab10c5 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 21 Jan 2025 21:12:26 +0000 Subject: [PATCH 1/3] Update generated code for v1456 --- CONTRIBUTING.md | 25 ------------------------- OPENAPI_VERSION | 2 +- 2 files changed, 1 insertion(+), 26 deletions(-) delete mode 100644 CONTRIBUTING.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md deleted file mode 100644 index 11efda67a0a..00000000000 --- 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-java/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 4624c15fbdf..0d0ddf958c7 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1454 \ No newline at end of file +v1456 \ No newline at end of file From 493976122a2d724ed1458f7c22e0423bb4465a9d Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 23 Jan 2025 02:22:43 +0000 Subject: [PATCH 2/3] Update generated code for v1459 --- OPENAPI_VERSION | 2 +- src/main/java/com/stripe/model/Charge.java | 18 ++++++------------ .../com/stripe/model/ConfirmationToken.java | 6 ++---- .../java/com/stripe/model/PaymentMethod.java | 6 ++---- 4 files changed, 11 insertions(+), 21 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 0d0ddf958c7..cec5eb2bb03 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1456 \ No newline at end of file +v1459 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/Charge.java b/src/main/java/com/stripe/model/Charge.java index 7c276285c89..ff3bdda3b9b 100644 --- a/src/main/java/com/stripe/model/Charge.java +++ b/src/main/java/com/stripe/model/Charge.java @@ -1917,10 +1917,8 @@ public static class Card extends StripeObject { /** * 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. + * Acquirer Reference Data. This value will be present if it is returned by the financial + * network in the authorization response, and null otherwise. */ @SerializedName("network_transaction_id") String networkTransactionId; @@ -2521,10 +2519,8 @@ public static class CardPresent extends StripeObject { /** * 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. + * Acquirer Reference Data. This value will be present if it is returned by the financial + * network in the authorization response, and null otherwise. */ @SerializedName("network_transaction_id") String networkTransactionId; @@ -3029,10 +3025,8 @@ public static class InteracPresent extends StripeObject { /** * 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. + * Acquirer Reference Data. This value will be present if it is returned by the financial + * network in the authorization response, and null otherwise. */ @SerializedName("network_transaction_id") String networkTransactionId; diff --git a/src/main/java/com/stripe/model/ConfirmationToken.java b/src/main/java/com/stripe/model/ConfirmationToken.java index 8ea5528804c..cf685f0d2b4 100644 --- a/src/main/java/com/stripe/model/ConfirmationToken.java +++ b/src/main/java/com/stripe/model/ConfirmationToken.java @@ -964,10 +964,8 @@ public static class CardPresent extends StripeObject { /** * 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. + * the Acquirer Reference Data. This value will be present if it is returned by the + * financial network in the authorization response, and null otherwise. */ @SerializedName("network_transaction_id") String networkTransactionId; diff --git a/src/main/java/com/stripe/model/PaymentMethod.java b/src/main/java/com/stripe/model/PaymentMethod.java index d10a728f1cd..bcfc978f0ad 100644 --- a/src/main/java/com/stripe/model/PaymentMethod.java +++ b/src/main/java/com/stripe/model/PaymentMethod.java @@ -1195,10 +1195,8 @@ public static class CardPresent extends StripeObject { /** * 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. + * Acquirer Reference Data. This value will be present if it is returned by the financial + * network in the authorization response, and null otherwise. */ @SerializedName("network_transaction_id") String networkTransactionId; From 1a6261d61d11fd60dde4e70356a31eca614d9bb4 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 23 Jan 2025 18:13:22 +0000 Subject: [PATCH 3/3] Update generated code for v1460 --- OPENAPI_VERSION | 2 +- .../java/com/stripe/model/terminal/Reader.java | 16 ---------------- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index cec5eb2bb03..5454d94e192 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1459 \ No newline at end of file +v1460 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/terminal/Reader.java b/src/main/java/com/stripe/model/terminal/Reader.java index c8ebe612c4d..18b19f8e5dd 100644 --- a/src/main/java/com/stripe/model/terminal/Reader.java +++ b/src/main/java/com/stripe/model/terminal/Reader.java @@ -954,10 +954,6 @@ public static class CollectPaymentMethod extends StripeObject { @SerializedName("payment_method") PaymentMethod paymentMethod; - /** This field will be deprecated. Please use {@code account} instead. */ - @SerializedName("stripe_account") - String stripeAccount; - /** Get ID of expandable {@code paymentIntent} object. */ public String getPaymentIntent() { return (this.paymentIntent != null) ? this.paymentIntent.getId() : null; @@ -1025,10 +1021,6 @@ public static class ConfirmPaymentIntent extends StripeObject { @Setter(lombok.AccessLevel.NONE) ExpandableField paymentIntent; - /** This field will be deprecated. Please use {@code account} instead. */ - @SerializedName("stripe_account") - String stripeAccount; - /** Get ID of expandable {@code paymentIntent} object. */ public String getPaymentIntent() { return (this.paymentIntent != null) ? this.paymentIntent.getId() : null; @@ -1068,10 +1060,6 @@ public static class ProcessPaymentIntent extends StripeObject { @SerializedName("process_config") ProcessConfig processConfig; - /** This field will be deprecated. Please use {@code account} instead. */ - @SerializedName("stripe_account") - String stripeAccount; - /** Get ID of expandable {@code paymentIntent} object. */ public String getPaymentIntent() { return (this.paymentIntent != null) ? this.paymentIntent.getId() : null; @@ -1247,10 +1235,6 @@ public static class RefundPayment extends StripeObject { @SerializedName("reverse_transfer") Boolean reverseTransfer; - /** This field will be deprecated. Please use {@code account} instead. */ - @SerializedName("stripe_account") - String stripeAccount; - /** Get ID of expandable {@code charge} object. */ public String getCharge() { return (this.charge != null) ? this.charge.getId() : null;