Skip to content

Commit

Permalink
Update generated code (#1837)
Browse files Browse the repository at this point in the history
* Update generated code for v1137

* Update generated code for v1138

* Update generated code for v1140

* Update generated code for v1141

* Update generated code for v1142

* Update generated code for v1144

* Update generated code for v1145

* Update generated code for v1146

* Update generated code for v1147

* Update generated code for v1149

* Update generated code for v1153

* Update generated code for v1154

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
  • Loading branch information
stripe-openapi[bot] authored Jul 25, 2024
1 parent f0df4e7 commit a1be536
Show file tree
Hide file tree
Showing 23 changed files with 887 additions and 133 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1135
v1154
6 changes: 3 additions & 3 deletions src/main/java/com/stripe/model/Account.java
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ public static class BusinessProfile extends StripeObject {
Long estimatedWorkerCount;

/**
* <a href="https://stripe.com/docs/connect/setting-mcc">The merchant category code for the
* <a href="https://stripe.com/connect/setting-mcc">The merchant category code for the
* account</a>. MCCs are used to classify businesses based on the goods or services they
* provide.
*/
Expand Down Expand Up @@ -809,7 +809,7 @@ public static class BusinessProfile extends StripeObject {
public static class AnnualRevenue extends StripeObject {
/**
* A non-negative integer representing the amount in the <a
* href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit</a>.
* href="https://stripe.com/currencies#zero-decimal">smallest currency unit</a>.
*/
@SerializedName("amount")
Long amount;
Expand All @@ -836,7 +836,7 @@ public static class AnnualRevenue extends StripeObject {
public static class MonthlyEstimatedRevenue extends StripeObject {
/**
* A non-negative integer representing how much to charge in the <a
* href="https://docs.stripe.com/currencies#zero-decimal">smallest currency unit</a>.
* href="https://stripe.com/currencies#zero-decimal">smallest currency unit</a>.
*/
@SerializedName("amount")
Long amount;
Expand Down
45 changes: 43 additions & 2 deletions src/main/java/com/stripe/model/Charge.java
Original file line number Diff line number Diff line change
Expand Up @@ -1353,7 +1353,11 @@ public static class AcssDebit extends StripeObject {
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Affirm extends StripeObject {}
public static class Affirm extends StripeObject {
/** The Affirm transaction ID associated with this payment. */
@SerializedName("transaction_id")
String transactionId;
}

@Getter
@Setter
Expand Down Expand Up @@ -1537,7 +1541,11 @@ public void setGeneratedSepaDebitMandateObject(Mandate expandableObject) {
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Blik extends StripeObject {}
public static class Blik extends StripeObject {
/** A unique and immutable identifier assigned by BLIK to every buyer. */
@SerializedName("buyer_id")
String buyerId;
}

@Getter
@Setter
Expand All @@ -1559,6 +1567,10 @@ public static class Card extends StripeObject {
@SerializedName("amount_authorized")
Long amountAuthorized;

/** Authorization code on the charge. */
@SerializedName("authorization_code")
String authorizationCode;

/**
* Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au},
* {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}.
Expand Down Expand Up @@ -2037,6 +2049,13 @@ public static class CardPresent extends StripeObject {
@SerializedName("brand")
String brand;

/**
* The <a href="https://stripe.com/docs/card-product-codes">product code</a> that identifies
* the specific program or product associated with a card.
*/
@SerializedName("brand_product")
String brandProduct;

/**
* When using manual capture, a future timestamp after which the charge will be automatically
* refunded if uncaptured.
Expand Down Expand Up @@ -2142,6 +2161,17 @@ public static class CardPresent extends StripeObject {
@SerializedName("network")
String network;

/**
* 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.
*/
@SerializedName("network_transaction_id")
String networkTransactionId;

/** Details about payments collected offline. */
@SerializedName("offline")
Offline offline;
Expand Down Expand Up @@ -2526,6 +2556,17 @@ public static class InteracPresent extends StripeObject {
@SerializedName("network")
String network;

/**
* 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.
*/
@SerializedName("network_transaction_id")
String networkTransactionId;

/** EMV tag 5F2D. Preferred languages specified by the integrated circuit chip. */
@SerializedName("preferred_locales")
List<String> preferredLocales;
Expand Down
25 changes: 25 additions & 0 deletions src/main/java/com/stripe/model/ConfirmationToken.java
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,13 @@ public static class CardPresent extends StripeObject {
@SerializedName("brand")
String brand;

/**
* The <a href="https://stripe.com/docs/card-product-codes">product code</a> that
* identifies the specific program or product associated with a card.
*/
@SerializedName("brand_product")
String brandProduct;

/**
* When using manual capture, a future timestamp after which the charge will be
* automatically refunded if uncaptured.
Expand Down Expand Up @@ -829,6 +836,17 @@ public static class CardPresent extends StripeObject {
@SerializedName("network")
String network;

/**
* 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.
*/
@SerializedName("network_transaction_id")
String networkTransactionId;

/** Details about payments collected offline. */
@SerializedName("offline")
Offline offline;
Expand Down Expand Up @@ -1095,6 +1113,13 @@ public static class CardPresent extends StripeObject {
@SerializedName("brand")
String brand;

/**
* The <a href="https://stripe.com/docs/card-product-codes">product code</a> that identifies
* the specific program or product associated with a card.
*/
@SerializedName("brand_product")
String brandProduct;

/**
* The cardholder name as read from the card, in <a
* href="https://en.wikipedia.org/wiki/ISO/IEC_7813">ISO 7813</a> format. May include
Expand Down
9 changes: 9 additions & 0 deletions src/main/java/com/stripe/model/Dispute.java
Original file line number Diff line number Diff line change
Expand Up @@ -832,6 +832,15 @@ public static class Card extends StripeObject {
@SerializedName("brand")
String brand;

/**
* The type of dispute opened. Different case types may have varying fees and financial
* impact.
*
* <p>One of {@code chargeback}, or {@code inquiry}.
*/
@SerializedName("case_type")
String caseType;

/**
* The card network's specific dispute reason code, which maps to one of Stripe's primary
* dispute categories to simplify response guidance. The <a
Expand Down
7 changes: 4 additions & 3 deletions src/main/java/com/stripe/model/Event.java
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,10 @@ public class Event extends ApiResource implements HasId {
* {@code identity.verification_session.requires_input}, {@code
* identity.verification_session.verified}, {@code invoice.created}, {@code invoice.deleted},
* {@code invoice.finalization_failed}, {@code invoice.finalized}, {@code
* invoice.marked_uncollectible}, {@code invoice.paid}, {@code invoice.payment_action_required},
* {@code invoice.payment_failed}, {@code invoice.payment_succeeded}, {@code invoice.sent}, {@code
* invoice.upcoming}, {@code invoice.updated}, {@code invoice.voided}, {@code
* invoice.marked_uncollectible}, {@code invoice.overdue}, {@code invoice.paid}, {@code
* invoice.payment_action_required}, {@code invoice.payment_failed}, {@code
* invoice.payment_succeeded}, {@code invoice.sent}, {@code invoice.upcoming}, {@code
* invoice.updated}, {@code invoice.voided}, {@code invoice.will_be_due}, {@code
* invoiceitem.created}, {@code invoiceitem.deleted}, {@code issuing_authorization.created},
* {@code issuing_authorization.request}, {@code issuing_authorization.updated}, {@code
* issuing_card.created}, {@code issuing_card.updated}, {@code issuing_cardholder.created}, {@code
Expand Down
6 changes: 5 additions & 1 deletion src/main/java/com/stripe/model/PaymentIntent.java
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,11 @@ public class PaymentIntent extends ApiResource implements HasId, MetadataStore<P
@SerializedName("last_payment_error")
StripeError lastPaymentError;

/** The latest charge created by this PaymentIntent. */
/**
* ID of the latest <a href="https://stripe.com/docs/api/charges">Charge object</a> created by
* this PaymentIntent. This property is {@code null} until PaymentIntent confirmation is
* attempted.
*/
@SerializedName("latest_charge")
@Getter(lombok.AccessLevel.NONE)
@Setter(lombok.AccessLevel.NONE)
Expand Down
25 changes: 25 additions & 0 deletions src/main/java/com/stripe/model/PaymentMethod.java
Original file line number Diff line number Diff line change
Expand Up @@ -965,6 +965,13 @@ public static class CardPresent extends StripeObject {
@SerializedName("brand")
String brand;

/**
* The <a href="https://stripe.com/docs/card-product-codes">product code</a> that
* identifies the specific program or product associated with a card.
*/
@SerializedName("brand_product")
String brandProduct;

/**
* When using manual capture, a future timestamp after which the charge will be
* automatically refunded if uncaptured.
Expand Down Expand Up @@ -1071,6 +1078,17 @@ public static class CardPresent extends StripeObject {
@SerializedName("network")
String network;

/**
* 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.
*/
@SerializedName("network_transaction_id")
String networkTransactionId;

/** Details about payments collected offline. */
@SerializedName("offline")
Offline offline;
Expand Down Expand Up @@ -1332,6 +1350,13 @@ public static class CardPresent extends StripeObject {
@SerializedName("brand")
String brand;

/**
* The <a href="https://stripe.com/docs/card-product-codes">product code</a> that identifies the
* specific program or product associated with a card.
*/
@SerializedName("brand_product")
String brandProduct;

/**
* The cardholder name as read from the card, in <a
* href="https://en.wikipedia.org/wiki/ISO/IEC_7813">ISO 7813</a> format. May include
Expand Down
47 changes: 47 additions & 0 deletions src/main/java/com/stripe/model/PaymentMethodConfiguration.java
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,9 @@ public class PaymentMethodConfiguration extends ApiResource implements HasId {
@SerializedName("swish")
Swish swish;

@SerializedName("twint")
Twint twint;

@SerializedName("us_bank_account")
UsBankAccount usBankAccount;

Expand Down Expand Up @@ -1920,6 +1923,49 @@ public static class DisplayPreference extends StripeObject {
}
}

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Twint extends StripeObject {
/**
* Whether this payment method may be offered at checkout. True if {@code display_preference} is
* {@code on} and the payment method's capability is active.
*/
@SerializedName("available")
Boolean available;

@SerializedName("display_preference")
DisplayPreference displayPreference;

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class DisplayPreference extends StripeObject {
/**
* For child configs, whether or not the account's preference will be observed. If {@code
* false}, the parent configuration's default is used.
*/
@SerializedName("overridable")
Boolean overridable;

/**
* The account's display preference.
*
* <p>One of {@code none}, {@code off}, or {@code on}.
*/
@SerializedName("preference")
String preference;

/**
* The effective display preference value.
*
* <p>One of {@code off}, or {@code on}.
*/
@SerializedName("value")
String value;
}
}

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
Expand Down Expand Up @@ -2088,6 +2134,7 @@ public void setResponseGetter(StripeResponseGetter responseGetter) {
trySetResponseGetter(sepaDebit, responseGetter);
trySetResponseGetter(sofort, responseGetter);
trySetResponseGetter(swish, responseGetter);
trySetResponseGetter(twint, responseGetter);
trySetResponseGetter(usBankAccount, responseGetter);
trySetResponseGetter(wechatPay, responseGetter);
trySetResponseGetter(zip, responseGetter);
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/com/stripe/model/Refund.java
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ public static Refund create(RefundCreateParams params, RequestOptions options)

/**
* Returns a list of all refunds you created. We return the refunds in sorted order, with the most
* recent refunds appearing first The 10 most recent refunds are always available by default on
* recent refunds appearing first. The 10 most recent refunds are always available by default on
* the Charge object.
*/
public static RefundCollection list(Map<String, Object> params) throws StripeException {
Expand All @@ -453,7 +453,7 @@ public static RefundCollection list(Map<String, Object> params) throws StripeExc

/**
* Returns a list of all refunds you created. We return the refunds in sorted order, with the most
* recent refunds appearing first The 10 most recent refunds are always available by default on
* recent refunds appearing first. The 10 most recent refunds are always available by default on
* the Charge object.
*/
public static RefundCollection list(Map<String, Object> params, RequestOptions options)
Expand All @@ -467,7 +467,7 @@ public static RefundCollection list(Map<String, Object> params, RequestOptions o

/**
* Returns a list of all refunds you created. We return the refunds in sorted order, with the most
* recent refunds appearing first The 10 most recent refunds are always available by default on
* recent refunds appearing first. The 10 most recent refunds are always available by default on
* the Charge object.
*/
public static RefundCollection list(RefundListParams params) throws StripeException {
Expand All @@ -476,7 +476,7 @@ public static RefundCollection list(RefundListParams params) throws StripeExcept

/**
* Returns a list of all refunds you created. We return the refunds in sorted order, with the most
* recent refunds appearing first The 10 most recent refunds are always available by default on
* recent refunds appearing first. The 10 most recent refunds are always available by default on
* the Charge object.
*/
public static RefundCollection list(RefundListParams params, RequestOptions options)
Expand Down
Loading

0 comments on commit a1be536

Please sign in to comment.