Skip to content

Commit

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

* Update generated code for v296

* Update generated code for v298

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
  • Loading branch information
stripe-openapi[bot] committed Apr 13, 2023
1 parent 7a86f92 commit 0df8879
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 6 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v294
v298
3 changes: 2 additions & 1 deletion src/main/java/com/stripe/model/Charge.java
Original file line number Diff line number Diff line change
Expand Up @@ -2169,7 +2169,8 @@ public static class Ideal extends StripeObject {
*
* <p>One of {@code ABNANL2A}, {@code ASNBNL21}, {@code BITSNL2A}, {@code BUNQNL2A}, {@code
* FVLBNL22}, {@code HANDNL2A}, {@code INGBNL2A}, {@code KNABNL2H}, {@code MOYONL21}, {@code
* RABONL2U}, {@code RBRBNL21}, {@code REVOLT21}, {@code SNSBNL2A}, or {@code TRIONL2U}.
* RABONL2U}, {@code RBRBNL21}, {@code REVOIE23}, {@code REVOLT21}, {@code SNSBNL2A}, or
* {@code TRIONL2U}.
*/
@SerializedName("bic")
String bic;
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/com/stripe/model/PaymentMethod.java
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,8 @@ public static class Ideal extends StripeObject {
*
* <p>One of {@code ABNANL2A}, {@code ASNBNL21}, {@code BITSNL2A}, {@code BUNQNL2A}, {@code
* FVLBNL22}, {@code HANDNL2A}, {@code INGBNL2A}, {@code KNABNL2H}, {@code MOYONL21}, {@code
* RABONL2U}, {@code RBRBNL21}, {@code REVOLT21}, {@code SNSBNL2A}, or {@code TRIONL2U}.
* RABONL2U}, {@code RBRBNL21}, {@code REVOIE23}, {@code REVOLT21}, {@code SNSBNL2A}, or {@code
* TRIONL2U}.
*/
@SerializedName("bic")
String bic;
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/com/stripe/model/SetupAttempt.java
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,8 @@ public static class Ideal extends StripeObject {
*
* <p>One of {@code ABNANL2A}, {@code ASNBNL21}, {@code BITSNL2A}, {@code BUNQNL2A}, {@code
* FVLBNL22}, {@code HANDNL2A}, {@code INGBNL2A}, {@code KNABNL2H}, {@code MOYONL21}, {@code
* RABONL2U}, {@code RBRBNL21}, {@code REVOLT21}, {@code SNSBNL2A}, or {@code TRIONL2U}.
* RABONL2U}, {@code RBRBNL21}, {@code REVOIE23}, {@code REVOLT21}, {@code SNSBNL2A}, or
* {@code TRIONL2U}.
*/
@SerializedName("bic")
String bic;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public class CardholderCreateParams extends ApiRequestParams {
Status status;

/**
* <strong>Required.</strong> One of {@code individual} or {@code company}. See <a
* One of {@code individual} or {@code company}. See <a
* href="https://stripe.com/docs/issuing/other/choose-cardholder">Choose a cardholder type</a> for
* more details.
*/
Expand Down Expand Up @@ -307,7 +307,7 @@ public Builder setStatus(CardholderCreateParams.Status status) {
}

/**
* <strong>Required.</strong> One of {@code individual} or {@code company}. See <a
* One of {@code individual} or {@code company}. See <a
* href="https://stripe.com/docs/issuing/other/choose-cardholder">Choose a cardholder type</a>
* for more details.
*/
Expand Down
22 changes: 22 additions & 0 deletions src/test/java/com/stripe/functional/GeneratedExamples.java
Original file line number Diff line number Diff line change
Expand Up @@ -4625,4 +4625,26 @@ public void testTransactionCreateFromCalculation() throws StripeException {
"/v1/tax/transactions/create_from_calculation",
params.toMap());
}

@Test
public void testPaymentIntentCreate3() throws StripeException {
PaymentIntentCreateParams params =
PaymentIntentCreateParams.builder()
.setAmount(200L)
.setCurrency("usd")
.setPaymentMethodData(
PaymentIntentCreateParams.PaymentMethodData.builder()
.setType(PaymentIntentCreateParams.PaymentMethodData.Type.P24)
.setP24(
PaymentIntentCreateParams.PaymentMethodData.P24
.builder()
.setBank(PaymentIntentCreateParams.PaymentMethodData.P24.Bank.BLIK)
.build())
.build())
.build();

PaymentIntent paymentIntent = PaymentIntent.create(params);
assertNotNull(paymentIntent);
verifyRequest(ApiResource.RequestMethod.POST, "/v1/payment_intents", params.toMap());
}
}

0 comments on commit 0df8879

Please sign in to comment.