Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CODEGEN_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
01d1ea0975f54150dffdde2a2c3d21e609c3b89f
e2d3e8255ba431b6d05e4a423941a157e947e763
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2458
v2459
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@
import lombok.Getter;
import lombok.Setter;

/**
* A financing summary object describes a connected account's financing status in real time. A
* financing status is either {@code accepted}, {@code delivered}, or {@code none}. You can read the
* status of your connected accounts.
*/
/** A financing summary object describes a connected account's financing details in real time. */
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/com/stripe/model/checkout/Session.java
Original file line number Diff line number Diff line change
Expand Up @@ -2581,6 +2581,10 @@ public static class Item extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Subscription extends StripeObject {
/** The Unix timestamp marking the subscription's backdated start date. */
@SerializedName("backdate_start_date")
Long backdateStartDate;

/** The description for the subscription. */
@SerializedName("description")
String description;
Expand Down
8 changes: 8 additions & 0 deletions src/main/java/com/stripe/model/issuing/Authorization.java
Original file line number Diff line number Diff line change
Expand Up @@ -1949,6 +1949,14 @@ public static class RequestHistory extends StripeObject {
@SerializedName("network_data")
NetworkData networkData;

/**
* The network-specific response code associated with Stripe's decision for this authorization
* request. The value is a Visa or Mastercard response code depending on the network over which
* the authorization was routed.
*/
@SerializedName("network_response_code")
String networkResponseCode;

/**
* The card network's estimate of the likelihood that an authorization is fraudulent. Takes on
* values between 1 and 99.
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/com/stripe/model/tax/Calculation.java
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,13 @@ public static class TaxBreakdown extends StripeObject {
@SerializedName("amount")
Long amount;

/**
* The ID of the <a href="https://stripe.com/api/tax/exemptions">customer tax exemption</a>
* that was applied to this tax breakdown.
*/
@SerializedName("customer_tax_exemption")
String customerTaxExemption;

@SerializedName("jurisdiction")
Jurisdiction jurisdiction;

Expand Down
7 changes: 7 additions & 0 deletions src/main/java/com/stripe/model/tax/CalculationLineItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,13 @@ public static class TaxBreakdown extends StripeObject {
@SerializedName("amount")
Long amount;

/**
* The ID of the <a href="https://stripe.com/api/tax/exemptions">customer tax exemption</a> that
* was applied to this tax breakdown.
*/
@SerializedName("customer_tax_exemption")
String customerTaxExemption;

@SerializedName("jurisdiction")
Jurisdiction jurisdiction;

Expand Down
7 changes: 7 additions & 0 deletions src/main/java/com/stripe/model/tax/Transaction.java
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,13 @@ public static class TaxBreakdown extends StripeObject {
@SerializedName("amount")
Long amount;

/**
* The ID of the <a href="https://stripe.com/api/tax/exemptions">customer tax exemption</a>
* that was applied to this tax breakdown.
*/
@SerializedName("customer_tax_exemption")
String customerTaxExemption;

@SerializedName("jurisdiction")
Jurisdiction jurisdiction;

Expand Down
24 changes: 12 additions & 12 deletions src/main/java/com/stripe/model/v2/core/Account.java
Original file line number Diff line number Diff line change
Expand Up @@ -12642,12 +12642,12 @@ public static class RestrictsCapability extends StripeObject {
* {@code bank_accounts.npp}, {@code bank_accounts.rtp}, {@code
* bank_accounts.sepa_credit}, {@code bank_accounts.sepa_instant}, {@code
* bank_accounts.swift}, {@code bank_accounts.wire}, {@code blik_payments}, {@code
* boleto_payments}, {@code business_storage.inbound.eur}, {@code
* business_storage.inbound.gbp}, {@code business_storage.inbound.usd}, {@code
* business_storage.outbound.eur}, {@code business_storage.outbound.gbp}, {@code
* business_storage.outbound.usd}, {@code cards}, {@code card_payments}, {@code
* cartes_bancaires_payments}, {@code cashapp_payments}, {@code
* commercial.celtic.charge_card}, {@code commercial.celtic.spend_card}, {@code
* blik_recurring_payments}, {@code boleto_payments}, {@code
* business_storage.inbound.eur}, {@code business_storage.inbound.gbp}, {@code
* business_storage.inbound.usd}, {@code business_storage.outbound.eur}, {@code
* business_storage.outbound.gbp}, {@code business_storage.outbound.usd}, {@code cards},
* {@code card_payments}, {@code cartes_bancaires_payments}, {@code cashapp_payments},
* {@code commercial.celtic.charge_card}, {@code commercial.celtic.spend_card}, {@code
* commercial.cross_river_bank.charge_card}, {@code
* commercial.cross_river_bank.prepaid_card}, {@code
* commercial.cross_river_bank.spend_card}, {@code commercial.fifth_third.charge_card},
Expand Down Expand Up @@ -16662,12 +16662,12 @@ public static class RestrictsCapability extends StripeObject {
* {@code bank_accounts.npp}, {@code bank_accounts.rtp}, {@code
* bank_accounts.sepa_credit}, {@code bank_accounts.sepa_instant}, {@code
* bank_accounts.swift}, {@code bank_accounts.wire}, {@code blik_payments}, {@code
* boleto_payments}, {@code business_storage.inbound.eur}, {@code
* business_storage.inbound.gbp}, {@code business_storage.inbound.usd}, {@code
* business_storage.outbound.eur}, {@code business_storage.outbound.gbp}, {@code
* business_storage.outbound.usd}, {@code cards}, {@code card_payments}, {@code
* cartes_bancaires_payments}, {@code cashapp_payments}, {@code
* commercial.celtic.charge_card}, {@code commercial.celtic.spend_card}, {@code
* blik_recurring_payments}, {@code boleto_payments}, {@code
* business_storage.inbound.eur}, {@code business_storage.inbound.gbp}, {@code
* business_storage.inbound.usd}, {@code business_storage.outbound.eur}, {@code
* business_storage.outbound.gbp}, {@code business_storage.outbound.usd}, {@code cards},
* {@code card_payments}, {@code cartes_bancaires_payments}, {@code cashapp_payments},
* {@code commercial.celtic.charge_card}, {@code commercial.celtic.spend_card}, {@code
* commercial.cross_river_bank.charge_card}, {@code
* commercial.cross_river_bank.prepaid_card}, {@code
* commercial.cross_river_bank.spend_card}, {@code commercial.fifth_third.charge_card},
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/stripe/param/CustomerCreateParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public class CustomerCreateParams extends ApiRequestParams {
Object individualName;

/**
* The prefix for the customer used to generate unique invoice numbers. Must be 3–12 uppercase
* The prefix for the customer used to generate unique invoice numbers. Must be 1–12 uppercase
* letters or numbers.
*/
@SerializedName("invoice_prefix")
Expand Down Expand Up @@ -400,7 +400,7 @@ public Builder setIndividualName(EmptyParam individualName) {
}

/**
* The prefix for the customer used to generate unique invoice numbers. Must be 3–12 uppercase
* The prefix for the customer used to generate unique invoice numbers. Must be 1–12 uppercase
* letters or numbers.
*/
public Builder setInvoicePrefix(String invoicePrefix) {
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/com/stripe/param/CustomerUpdateParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public class CustomerUpdateParams extends ApiRequestParams {
Object individualName;

/**
* The prefix for the customer used to generate unique invoice numbers. Must be 3–12 uppercase
* The prefix for the customer used to generate unique invoice numbers. Must be 1–12 uppercase
* letters or numbers.
*/
@SerializedName("invoice_prefix")
Expand Down Expand Up @@ -445,7 +445,7 @@ public Builder setIndividualName(EmptyParam individualName) {
}

/**
* The prefix for the customer used to generate unique invoice numbers. Must be 3–12 uppercase
* The prefix for the customer used to generate unique invoice numbers. Must be 1–12 uppercase
* letters or numbers.
*/
public Builder setInvoicePrefix(String invoicePrefix) {
Expand All @@ -454,7 +454,7 @@ public Builder setInvoicePrefix(String invoicePrefix) {
}

/**
* The prefix for the customer used to generate unique invoice numbers. Must be 3–12 uppercase
* The prefix for the customer used to generate unique invoice numbers. Must be 1–12 uppercase
* letters or numbers.
*/
public Builder setInvoicePrefix(EmptyParam invoicePrefix) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ public class SessionCreateParams extends ApiRequestParams {
* <p>For {@code subscription} mode, there is a maximum of 20 line items and optional items with
* recurring Prices and 20 line items and optional items with one-time Prices.
*
* <p>You can't set this parameter if {@code ui_mode} is {@code custom}.
* <p>You can't set this parameter if {@code ui_mode} is {@code elements} or {@code form}.
*/
@SerializedName("optional_items")
List<SessionCreateParams.OptionalItem> optionalItems;
Expand Down Expand Up @@ -6134,6 +6134,10 @@ public Builder setType(SessionCreateParams.Item.Type type) {
@Getter
@EqualsAndHashCode(callSuper = false)
public static class Subscription {
/** A past timestamp to backdate the subscription's start date to. */
@SerializedName("backdate_start_date")
Long backdateStartDate;

/**
* Configures when the subscription schedule's billing cycle anchors to a specific day of the
* week or month.
Expand Down Expand Up @@ -6201,6 +6205,7 @@ public static class Subscription {
TrialSettings trialSettings;

private Subscription(
Long backdateStartDate,
BillingCycleAnchorConfig billingCycleAnchorConfig,
BillingMode billingMode,
String description,
Expand All @@ -6212,6 +6217,7 @@ private Subscription(
Long trialEnd,
Long trialPeriodDays,
TrialSettings trialSettings) {
this.backdateStartDate = backdateStartDate;
this.billingCycleAnchorConfig = billingCycleAnchorConfig;
this.billingMode = billingMode;
this.description = description;
Expand All @@ -6230,6 +6236,8 @@ public static Builder builder() {
}

public static class Builder {
private Long backdateStartDate;

private BillingCycleAnchorConfig billingCycleAnchorConfig;

private BillingMode billingMode;
Expand All @@ -6255,6 +6263,7 @@ public static class Builder {
/** Finalize and obtain parameter instance from this builder. */
public SessionCreateParams.Item.Subscription build() {
return new SessionCreateParams.Item.Subscription(
this.backdateStartDate,
this.billingCycleAnchorConfig,
this.billingMode,
this.description,
Expand All @@ -6268,6 +6277,12 @@ public SessionCreateParams.Item.Subscription build() {
this.trialSettings);
}

/** A past timestamp to backdate the subscription's start date to. */
public Builder setBackdateStartDate(Long backdateStartDate) {
this.backdateStartDate = backdateStartDate;
return this;
}

/**
* Configures when the subscription schedule's billing cycle anchors to a specific day of
* the week or month.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@
@Getter
@EqualsAndHashCode(callSuper = false)
public class TrialOfferListParams extends ApiRequestParams {
/**
* Only return trial offers that are active ({@code true}) or archived ({@code false}). If
* omitted, both active and archived trial offers are returned.
*/
@SerializedName("active")
Boolean active;

/** Only return trial offers that were created during the given date interval. */
@SerializedName("created")
Object created;
Expand Down Expand Up @@ -60,13 +67,15 @@ public class TrialOfferListParams extends ApiRequestParams {
String startingAfter;

private TrialOfferListParams(
Boolean active,
Object created,
String endingBefore,
List<String> expand,
Map<String, Object> extraParams,
Long limit,
List<String> prices,
String startingAfter) {
this.active = active;
this.created = created;
this.endingBefore = endingBefore;
this.expand = expand;
Expand All @@ -81,6 +90,8 @@ public static Builder builder() {
}

public static class Builder {
private Boolean active;

private Object created;

private String endingBefore;
Expand All @@ -98,6 +109,7 @@ public static class Builder {
/** Finalize and obtain parameter instance from this builder. */
public TrialOfferListParams build() {
return new TrialOfferListParams(
this.active,
this.created,
this.endingBefore,
this.expand,
Expand All @@ -107,6 +119,15 @@ public TrialOfferListParams build() {
this.startingAfter);
}

/**
* Only return trial offers that are active ({@code true}) or archived ({@code false}). If
* omitted, both active and archived trial offers are returned.
*/
public Builder setActive(Boolean active) {
this.active = active;
return this;
}

/** Only return trial offers that were created during the given date interval. */
public Builder setCreated(TrialOfferListParams.Created created) {
this.created = created;
Expand Down
Loading