Skip to content

Commit

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

* Update generated code for v1171

* Update generated code for v1172

* Update generated code for v1173

* Update generated code for v1174

* Update generated code for v1175

* Update generated code for v1176

* Update generated code for v1177

* Update generated code for v1180

* Update generated code for v1182

* Update generated code for v1183

* Update generated code for v1184

* Update generated code for v1186

* Update generated code for v1187

* Update generated code for v1188

* Update generated code for v1189

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
  • Loading branch information
stripe-openapi[bot] authored Aug 8, 2024
1 parent 59fe02e commit 5ec66ce
Show file tree
Hide file tree
Showing 57 changed files with 7,943 additions and 6,064 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1169
v1189
30 changes: 16 additions & 14 deletions src/main/java/com/stripe/model/Account.java
Original file line number Diff line number Diff line change
Expand Up @@ -2284,35 +2284,37 @@ public static class Payments extends StripeObject {
String statementDescriptor;

/**
* The Kana variation of the default text that appears on credit card statements when a charge
* is made (Japan only).
* The Kana variation of {@code statement_descriptor} used for charges in Japan. Japanese
* statement descriptors have <a
* href="https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors">special
* requirements</a>.
*/
@SerializedName("statement_descriptor_kana")
String statementDescriptorKana;

/**
* The Kanji variation of the default text that appears on credit card statements when a
* charge is made (Japan only).
* The Kanji variation of {@code statement_descriptor} used for charges in Japan. Japanese
* statement descriptors have <a
* href="https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors">special
* requirements</a>.
*/
@SerializedName("statement_descriptor_kanji")
String statementDescriptorKanji;

/**
* The Kana variation of the default text that appears on credit card statements when a charge
* is made (Japan only). This field prefixes any dynamic {@code
* statement_descriptor_suffix_kana} specified on the charge. {@code
* statement_descriptor_prefix_kana} is useful for maximizing descriptor space for the dynamic
* portion.
* The Kana variation of {@code statement_descriptor_prefix} used for card charges in Japan.
* Japanese statement descriptors have <a
* href="https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors">special
* requirements</a>.
*/
@SerializedName("statement_descriptor_prefix_kana")
String statementDescriptorPrefixKana;

/**
* The Kanji variation of the default text that appears on credit card statements when a
* charge is made (Japan only). This field prefixes any dynamic {@code
* statement_descriptor_suffix_kanji} specified on the charge. {@code
* statement_descriptor_prefix_kanji} is useful for maximizing descriptor space for the
* dynamic portion.
* The Kanji variation of {@code statement_descriptor_prefix} used for card charges in Japan.
* Japanese statement descriptors have <a
* href="https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors">special
* requirements</a>.
*/
@SerializedName("statement_descriptor_prefix_kanji")
String statementDescriptorPrefixKanji;
Expand Down
12 changes: 7 additions & 5 deletions src/main/java/com/stripe/model/Card.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ public class Card extends ApiResource

/**
* Card brand. Can be {@code American Express}, {@code Diners Club}, {@code Discover}, {@code
* Eftpos Australia}, {@code JCB}, {@code MasterCard}, {@code UnionPay}, {@code Visa}, or {@code
* Unknown}.
* Eftpos Australia}, {@code Girocard}, {@code JCB}, {@code MasterCard}, {@code UnionPay}, {@code
* Visa}, or {@code Unknown}.
*/
@SerializedName("brand")
String brand;
Expand All @@ -102,9 +102,11 @@ public class Card extends ApiResource
String country;

/**
* Three-letter <a href="https://stripe.com/docs/payouts">ISO code for currency</a>. Only
* applicable on accounts (not customers or recipients). The card can be used as a transfer
* destination for funds in this currency. This property is only available for accounts where <a
* Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO code for
* currency</a> in lowercase. Must be a <a href="https://docs.stripe.com/currencies">supported
* currency</a>. Only applicable on accounts (not customers or recipients). The card can be used
* as a transfer destination for funds in this currency. This property is only available for
* accounts where <a
* href="https://stripe.com/api/accounts/object#account_object-controller-requirement_collection">controller.requirement_collection</a>
* is {@code application}, which includes Custom accounts.
*/
Expand Down
26 changes: 19 additions & 7 deletions src/main/java/com/stripe/model/Charge.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public class Charge extends ApiResource implements MetadataStore<Charge>, Balanc
/**
* The full statement descriptor that is passed to card networks, and that is displayed on your
* customers' credit card and bank statements. Allows you to see what the statement descriptor
* looks like after the static and dynamic portions are combined. This only works for card
* looks like after the static and dynamic portions are combined. This value only exists for card
* payments.
*/
@SerializedName("calculated_statement_descriptor")
Expand Down Expand Up @@ -302,17 +302,21 @@ public class Charge extends ApiResource implements MetadataStore<Charge>, Balanc
ExpandableField<Transfer> sourceTransfer;

/**
* For card charges, use {@code statement_descriptor_suffix} instead. Otherwise, you can use this
* value as the complete description of a charge on your customers’ statements. Must contain at
* least one letter, maximum 22 characters.
* For a non-card charge, text that appears on the customer's statement as the <a
* href="https://docs.stripe.com/get-started/account/statement-descriptors">statement
* descriptor</a>. This value overrides the account's default statement descriptor. For a card
* charge, this value is ignored unless you don't specify a {@code statement_descriptor_suffix},
* in which case this value is used as the suffix.
*/
@SerializedName("statement_descriptor")
String statementDescriptor;

/**
* Provides information about the charge that customers see on their statements. Concatenated with
* the prefix (shortened descriptor) or statement descriptor that’s set on the account to form the
* complete statement descriptor. Maximum 22 characters for the concatenated descriptor.
* Provides information about a card charge. Concatenated to the account's <a
* href="https://docs.corp.stripe.com/get-started/account/statement-descriptors#static">statement
* descriptor prefix</a> to form the complete statement descriptor that appears on the customer's
* statement. If the account has no prefix value, the suffix is concatenated to the account's
* statement descriptor.
*/
@SerializedName("statement_descriptor_suffix")
String statementDescriptorSuffix;
Expand Down Expand Up @@ -2204,6 +2208,14 @@ public static class Offline extends StripeObject {
/** Time at which the payment was collected while offline. */
@SerializedName("stored_at")
Long storedAt;

/**
* The method used to process this payment method offline. Only deferred is allowed.
*
* <p>Equal to {@code deferred}.
*/
@SerializedName("type")
String type;
}

@Getter
Expand Down
29 changes: 29 additions & 0 deletions src/main/java/com/stripe/model/ConfirmationToken.java
Original file line number Diff line number Diff line change
Expand Up @@ -883,6 +883,14 @@ public static class Offline extends StripeObject {
/** Time at which the payment was collected while offline. */
@SerializedName("stored_at")
Long storedAt;

/**
* The method used to process this payment method offline. Only deferred is allowed.
*
* <p>Equal to {@code deferred}.
*/
@SerializedName("type")
String type;
}

@Getter
Expand Down Expand Up @@ -1194,6 +1202,10 @@ public static class CardPresent extends StripeObject {
@SerializedName("networks")
Networks networks;

/** Details about payment methods collected offline. */
@SerializedName("offline")
Offline offline;

/** EMV tag 5F2D. Preferred languages specified by the integrated circuit chip. */
@SerializedName("preferred_locales")
List<String> preferredLocales;
Expand All @@ -1219,6 +1231,23 @@ public static class Networks extends StripeObject {
@SerializedName("preferred")
String preferred;
}

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Offline extends StripeObject {
/** Time at which the payment was collected while offline. */
@SerializedName("stored_at")
Long storedAt;

/**
* The method used to process this payment method offline. Only deferred is allowed.
*
* <p>Equal to {@code deferred}.
*/
@SerializedName("type")
String type;
}
}

@Getter
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/stripe/model/CustomerSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ public static class Features extends StripeObject {

/**
* Determines the max number of saved payment methods for the Payment Element to display.
* This parameter defaults to {@code 10}.
* This parameter defaults to {@code 3}.
*/
@SerializedName("payment_method_redisplay_limit")
Long paymentMethodRedisplayLimit;
Expand Down
Loading

0 comments on commit 5ec66ce

Please sign in to comment.