Skip to content

Commit 5ec66ce

Browse files
Update generated code (#1843)
* 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>
1 parent 59fe02e commit 5ec66ce

File tree

57 files changed

+7943
-6064
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+7943
-6064
lines changed

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1169
1+
v1189

src/main/java/com/stripe/model/Account.java

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2284,35 +2284,37 @@ public static class Payments extends StripeObject {
22842284
String statementDescriptor;
22852285

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

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

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

23102313
/**
2311-
* The Kanji variation of the default text that appears on credit card statements when a
2312-
* charge is made (Japan only). This field prefixes any dynamic {@code
2313-
* statement_descriptor_suffix_kanji} specified on the charge. {@code
2314-
* statement_descriptor_prefix_kanji} is useful for maximizing descriptor space for the
2315-
* dynamic portion.
2314+
* The Kanji variation of {@code statement_descriptor_prefix} used for card charges in Japan.
2315+
* Japanese statement descriptors have <a
2316+
* href="https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors">special
2317+
* requirements</a>.
23162318
*/
23172319
@SerializedName("statement_descriptor_prefix_kanji")
23182320
String statementDescriptorPrefixKanji;

src/main/java/com/stripe/model/Card.java

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ public class Card extends ApiResource
8888

8989
/**
9090
* Card brand. Can be {@code American Express}, {@code Diners Club}, {@code Discover}, {@code
91-
* Eftpos Australia}, {@code JCB}, {@code MasterCard}, {@code UnionPay}, {@code Visa}, or {@code
92-
* Unknown}.
91+
* Eftpos Australia}, {@code Girocard}, {@code JCB}, {@code MasterCard}, {@code UnionPay}, {@code
92+
* Visa}, or {@code Unknown}.
9393
*/
9494
@SerializedName("brand")
9595
String brand;
@@ -102,9 +102,11 @@ public class Card extends ApiResource
102102
String country;
103103

104104
/**
105-
* Three-letter <a href="https://stripe.com/docs/payouts">ISO code for currency</a>. Only
106-
* applicable on accounts (not customers or recipients). The card can be used as a transfer
107-
* destination for funds in this currency. This property is only available for accounts where <a
105+
* Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO code for
106+
* currency</a> in lowercase. Must be a <a href="https://docs.stripe.com/currencies">supported
107+
* currency</a>. Only applicable on accounts (not customers or recipients). The card can be used
108+
* as a transfer destination for funds in this currency. This property is only available for
109+
* accounts where <a
108110
* href="https://stripe.com/api/accounts/object#account_object-controller-requirement_collection">controller.requirement_collection</a>
109111
* is {@code application}, which includes Custom accounts.
110112
*/

src/main/java/com/stripe/model/Charge.java

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public class Charge extends ApiResource implements MetadataStore<Charge>, Balanc
101101
/**
102102
* The full statement descriptor that is passed to card networks, and that is displayed on your
103103
* customers' credit card and bank statements. Allows you to see what the statement descriptor
104-
* looks like after the static and dynamic portions are combined. This only works for card
104+
* looks like after the static and dynamic portions are combined. This value only exists for card
105105
* payments.
106106
*/
107107
@SerializedName("calculated_statement_descriptor")
@@ -302,17 +302,21 @@ public class Charge extends ApiResource implements MetadataStore<Charge>, Balanc
302302
ExpandableField<Transfer> sourceTransfer;
303303

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

312314
/**
313-
* Provides information about the charge that customers see on their statements. Concatenated with
314-
* the prefix (shortened descriptor) or statement descriptor that’s set on the account to form the
315-
* complete statement descriptor. Maximum 22 characters for the concatenated descriptor.
315+
* Provides information about a card charge. Concatenated to the account's <a
316+
* href="https://docs.corp.stripe.com/get-started/account/statement-descriptors#static">statement
317+
* descriptor prefix</a> to form the complete statement descriptor that appears on the customer's
318+
* statement. If the account has no prefix value, the suffix is concatenated to the account's
319+
* statement descriptor.
316320
*/
317321
@SerializedName("statement_descriptor_suffix")
318322
String statementDescriptorSuffix;
@@ -2204,6 +2208,14 @@ public static class Offline extends StripeObject {
22042208
/** Time at which the payment was collected while offline. */
22052209
@SerializedName("stored_at")
22062210
Long storedAt;
2211+
2212+
/**
2213+
* The method used to process this payment method offline. Only deferred is allowed.
2214+
*
2215+
* <p>Equal to {@code deferred}.
2216+
*/
2217+
@SerializedName("type")
2218+
String type;
22072219
}
22082220

22092221
@Getter

src/main/java/com/stripe/model/ConfirmationToken.java

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -883,6 +883,14 @@ public static class Offline extends StripeObject {
883883
/** Time at which the payment was collected while offline. */
884884
@SerializedName("stored_at")
885885
Long storedAt;
886+
887+
/**
888+
* The method used to process this payment method offline. Only deferred is allowed.
889+
*
890+
* <p>Equal to {@code deferred}.
891+
*/
892+
@SerializedName("type")
893+
String type;
886894
}
887895

888896
@Getter
@@ -1194,6 +1202,10 @@ public static class CardPresent extends StripeObject {
11941202
@SerializedName("networks")
11951203
Networks networks;
11961204

1205+
/** Details about payment methods collected offline. */
1206+
@SerializedName("offline")
1207+
Offline offline;
1208+
11971209
/** EMV tag 5F2D. Preferred languages specified by the integrated circuit chip. */
11981210
@SerializedName("preferred_locales")
11991211
List<String> preferredLocales;
@@ -1219,6 +1231,23 @@ public static class Networks extends StripeObject {
12191231
@SerializedName("preferred")
12201232
String preferred;
12211233
}
1234+
1235+
@Getter
1236+
@Setter
1237+
@EqualsAndHashCode(callSuper = false)
1238+
public static class Offline extends StripeObject {
1239+
/** Time at which the payment was collected while offline. */
1240+
@SerializedName("stored_at")
1241+
Long storedAt;
1242+
1243+
/**
1244+
* The method used to process this payment method offline. Only deferred is allowed.
1245+
*
1246+
* <p>Equal to {@code deferred}.
1247+
*/
1248+
@SerializedName("type")
1249+
String type;
1250+
}
12221251
}
12231252

12241253
@Getter

src/main/java/com/stripe/model/CustomerSession.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ public static class Features extends StripeObject {
205205

206206
/**
207207
* Determines the max number of saved payment methods for the Payment Element to display.
208-
* This parameter defaults to {@code 10}.
208+
* This parameter defaults to {@code 3}.
209209
*/
210210
@SerializedName("payment_method_redisplay_limit")
211211
Long paymentMethodRedisplayLimit;

0 commit comments

Comments
 (0)