Skip to content

Commit

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

* Update generated code for v809

* Update generated code for v810

* Update generated code for v812

* Update generated code for v812

* Update generated code for v813

* Update generated code for v814

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Co-authored-by: helenye-stripe <111009531+helenye-stripe@users.noreply.github.com>
  • Loading branch information
stripe-openapi[bot] and helenye-stripe committed Feb 8, 2024
1 parent afaf454 commit 83557a3
Show file tree
Hide file tree
Showing 20 changed files with 1,159 additions and 29 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v807
v814
62 changes: 62 additions & 0 deletions src/main/java/com/stripe/model/Account.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import com.stripe.param.AccountUpdateParams;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
Expand Down Expand Up @@ -1794,6 +1795,9 @@ public static class Settings extends StripeObject {
@SerializedName("dashboard")
Dashboard dashboard;

@SerializedName("invoices")
Invoices invoices;

@SerializedName("payments")
Payments payments;

Expand Down Expand Up @@ -2006,6 +2010,64 @@ public static class Dashboard extends StripeObject {
String timezone;
}

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Invoices extends StripeObject {
/**
* The list of default Account Tax IDs to automatically include on invoices. Account Tax IDs
* get added when an invoice is finalized.
*/
@SerializedName("default_account_tax_ids")
List<ExpandableField<TaxId>> defaultAccountTaxIds;

/** Get IDs of expandable {@code defaultAccountTaxIds} object list. */
public List<String> getDefaultAccountTaxIds() {
return (this.defaultAccountTaxIds != null)
? this.defaultAccountTaxIds.stream().map(x -> x.getId()).collect(Collectors.toList())
: null;
}

public void setDefaultAccountTaxIds(List<String> ids) {
if (ids == null) {
this.defaultAccountTaxIds = null;
return;
}
if (this.defaultAccountTaxIds != null
&& this.defaultAccountTaxIds.stream()
.map(x -> x.getId())
.collect(Collectors.toList())
.equals(ids)) {
// noop if the ids are equal to what are already present
return;
}
this.defaultAccountTaxIds =
(ids != null)
? ids.stream()
.map(id -> new ExpandableField<TaxId>(id, null))
.collect(Collectors.toList())
: null;
}

/** Get expanded {@code defaultAccountTaxIds}. */
public List<TaxId> getDefaultAccountTaxIdObjects() {
return (this.defaultAccountTaxIds != null)
? this.defaultAccountTaxIds.stream()
.map(x -> x.getExpanded())
.collect(Collectors.toList())
: null;
}

public void setDefaultAccountTaxIdObjects(List<TaxId> objs) {
this.defaultAccountTaxIds =
objs != null
? objs.stream()
.map(x -> new ExpandableField<TaxId>(x.getId(), x))
.collect(Collectors.toList())
: null;
}
}

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
Expand Down
11 changes: 6 additions & 5 deletions src/main/java/com/stripe/model/Charge.java
Original file line number Diff line number Diff line change
Expand Up @@ -2664,11 +2664,12 @@ public static class P24 extends StripeObject {
/**
* The customer's bank. Can be one of {@code ing}, {@code citi_handlowy}, {@code
* tmobile_usbugi_bankowe}, {@code plus_bank}, {@code etransfer_pocztowy24}, {@code
* banki_spbdzielcze}, {@code bank_nowy_bfg_sa}, {@code getin_bank}, {@code blik}, {@code
* noble_pay}, {@code ideabank}, {@code envelobank}, {@code santander_przelew24}, {@code
* nest_przelew}, {@code mbank_mtransfer}, {@code inteligo}, {@code pbac_z_ipko}, {@code
* bnp_paribas}, {@code credit_agricole}, {@code toyota_bank}, {@code bank_pekao_sa}, {@code
* volkswagen_bank}, {@code bank_millennium}, {@code alior_bank}, or {@code boz}.
* banki_spbdzielcze}, {@code bank_nowy_bfg_sa}, {@code getin_bank}, {@code velobank}, {@code
* blik}, {@code noble_pay}, {@code ideabank}, {@code envelobank}, {@code
* santander_przelew24}, {@code nest_przelew}, {@code mbank_mtransfer}, {@code inteligo},
* {@code pbac_z_ipko}, {@code bnp_paribas}, {@code credit_agricole}, {@code toyota_bank},
* {@code bank_pekao_sa}, {@code volkswagen_bank}, {@code bank_millennium}, {@code
* alior_bank}, or {@code boz}.
*/
@SerializedName("bank")
String bank;
Expand Down
29 changes: 28 additions & 1 deletion src/main/java/com/stripe/model/PaymentIntent.java
Original file line number Diff line number Diff line change
Expand Up @@ -2648,7 +2648,27 @@ public static class Bancontact extends StripeObject {
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Blik extends StripeObject {}
public static class Blik extends StripeObject {
/**
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
*
* <p>Providing this parameter will <a
* href="https://stripe.com/docs/payments/save-during-payment">attach the payment method</a>
* to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any
* required actions from the user are complete. If no Customer was provided, the payment
* method can still be <a
* href="https://stripe.com/docs/api/payment_methods/attach">attached</a> to a Customer after
* the transaction completes.
*
* <p>When processing card payments, Stripe also uses {@code setup_future_usage} to
* dynamically optimize your payment flow and comply with regional legislation and network
* rules, such as <a href="https://stripe.com/docs/strong-customer-authentication">SCA</a>.
*
* <p>Equal to {@code none}.
*/
@SerializedName("setup_future_usage")
String setupFutureUsage;
}

@Getter
@Setter
Expand Down Expand Up @@ -2768,6 +2788,13 @@ public static class Card extends StripeObject {
@SerializedName("request_three_d_secure")
String requestThreeDSecure;

/**
* When enabled, using a card that is attached to a customer will require the CVC to be
* provided again (i.e. using the cvc_token parameter).
*/
@SerializedName("require_cvc_recollection")
Boolean requireCvcRecollection;

/**
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
*
Expand Down
7 changes: 4 additions & 3 deletions src/main/java/com/stripe/model/PaymentMethod.java
Original file line number Diff line number Diff line change
Expand Up @@ -865,8 +865,9 @@ public static class Networks extends StripeObject {
List<String> available;

/**
* The preferred network for the card. Can be {@code cartes_bancaires}, {@code mastercard},
* {@code visa} or {@code invalid_preference} if requested network is not valid for the card.
* The preferred network for co-branded cards. Can be {@code cartes_bancaires}, {@code
* mastercard}, {@code visa} or {@code invalid_preference} if requested network is not valid
* for the card.
*/
@SerializedName("preferred")
String preferred;
Expand Down Expand Up @@ -1384,7 +1385,7 @@ public static class P24 extends StripeObject {
* etransfer_pocztowy24}, {@code getin_bank}, {@code ideabank}, {@code ing}, {@code inteligo},
* {@code mbank_mtransfer}, {@code nest_przelew}, {@code noble_pay}, {@code pbac_z_ipko}, {@code
* plus_bank}, {@code santander_przelew24}, {@code tmobile_usbugi_bankowe}, {@code toyota_bank},
* or {@code volkswagen_bank}.
* {@code velobank}, or {@code volkswagen_bank}.
*/
@SerializedName("bank")
String bank;
Expand Down
103 changes: 103 additions & 0 deletions src/main/java/com/stripe/model/SubscriptionSchedule.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
Expand Down Expand Up @@ -776,6 +777,13 @@ public static class BillingThresholds extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class InvoiceSettings extends StripeObject {
/**
* The account tax IDs associated with the subscription schedule. Will be set on invoices
* generated by the subscription schedule.
*/
@SerializedName("account_tax_ids")
List<ExpandableField<TaxId>> accountTaxIds;

/**
* Number of days within which a customer must pay invoices generated by this subscription
* schedule. This value will be {@code null} for subscription schedules where {@code
Expand All @@ -787,6 +795,50 @@ public static class InvoiceSettings extends StripeObject {
@SerializedName("issuer")
Issuer issuer;

/** Get IDs of expandable {@code accountTaxIds} object list. */
public List<String> getAccountTaxIds() {
return (this.accountTaxIds != null)
? this.accountTaxIds.stream().map(x -> x.getId()).collect(Collectors.toList())
: null;
}

public void setAccountTaxIds(List<String> ids) {
if (ids == null) {
this.accountTaxIds = null;
return;
}
if (this.accountTaxIds != null
&& this.accountTaxIds.stream()
.map(x -> x.getId())
.collect(Collectors.toList())
.equals(ids)) {
// noop if the ids are equal to what are already present
return;
}
this.accountTaxIds =
(ids != null)
? ids.stream()
.map(id -> new ExpandableField<TaxId>(id, null))
.collect(Collectors.toList())
: null;
}

/** Get expanded {@code accountTaxIds}. */
public List<TaxId> getAccountTaxIdObjects() {
return (this.accountTaxIds != null)
? this.accountTaxIds.stream().map(x -> x.getExpanded()).collect(Collectors.toList())
: null;
}

public void setAccountTaxIdObjects(List<TaxId> objs) {
this.accountTaxIds =
objs != null
? objs.stream()
.map(x -> new ExpandableField<TaxId>(x.getId(), x))
.collect(Collectors.toList())
: null;
}

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
Expand Down Expand Up @@ -1192,6 +1244,13 @@ public static class BillingThresholds extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class InvoiceSettings extends StripeObject {
/**
* The account tax IDs associated with this phase of the subscription schedule. Will be set on
* invoices generated by this phase of the subscription schedule.
*/
@SerializedName("account_tax_ids")
List<ExpandableField<TaxId>> accountTaxIds;

/**
* Number of days within which a customer must pay invoices generated by this subscription
* schedule. This value will be {@code null} for subscription schedules where {@code
Expand All @@ -1207,6 +1266,50 @@ public static class InvoiceSettings extends StripeObject {
@SerializedName("issuer")
Issuer issuer;

/** Get IDs of expandable {@code accountTaxIds} object list. */
public List<String> getAccountTaxIds() {
return (this.accountTaxIds != null)
? this.accountTaxIds.stream().map(x -> x.getId()).collect(Collectors.toList())
: null;
}

public void setAccountTaxIds(List<String> ids) {
if (ids == null) {
this.accountTaxIds = null;
return;
}
if (this.accountTaxIds != null
&& this.accountTaxIds.stream()
.map(x -> x.getId())
.collect(Collectors.toList())
.equals(ids)) {
// noop if the ids are equal to what are already present
return;
}
this.accountTaxIds =
(ids != null)
? ids.stream()
.map(id -> new ExpandableField<TaxId>(id, null))
.collect(Collectors.toList())
: null;
}

/** Get expanded {@code accountTaxIds}. */
public List<TaxId> getAccountTaxIdObjects() {
return (this.accountTaxIds != null)
? this.accountTaxIds.stream().map(x -> x.getExpanded()).collect(Collectors.toList())
: null;
}

public void setAccountTaxIdObjects(List<TaxId> objs) {
this.accountTaxIds =
objs != null
? objs.stream()
.map(x -> new ExpandableField<TaxId>(x.getId(), x))
.collect(Collectors.toList())
: null;
}

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
Expand Down

0 comments on commit 83557a3

Please sign in to comment.