Skip to content
Merged
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 @@
1263d72c2687be8ce737cfb363690b8da0a0d552
6b817716b60b32636770d4c1bd7863bbdb6f5f7a
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2254
v2256
12 changes: 12 additions & 0 deletions src/main/java/com/stripe/StripeClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -750,6 +750,18 @@ public com.stripe.service.PaymentLinkService paymentLinks() {
return new com.stripe.service.PaymentLinkService(this.getResponseGetter());
}

/**
* @deprecated StripeClient.paymentLocations() is deprecated, use
* StripeClient.v1().paymentLocations() instead. All functionality under it has been copied
* over to StripeClient.v1().paymentLocations(). See <a
* href="https://github.com/stripe/stripe-java/wiki/v1-namespace-in-StripeClient">migration
* guide</a> for more on this and tips on migrating to the new v1 namespace.
*/
@Deprecated
public com.stripe.service.PaymentLocationService paymentLocations() {
return new com.stripe.service.PaymentLocationService(this.getResponseGetter());
}

/**
* @deprecated StripeClient.paymentMethodConfigurations() is deprecated, use
* StripeClient.v1().paymentMethodConfigurations() instead. All functionality under it has
Expand Down
41 changes: 41 additions & 0 deletions src/main/java/com/stripe/model/Capability.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ public class Capability extends ApiResource implements HasId {
@SerializedName("object")
String object;

@SerializedName("protections")
Protections protections;

/** Whether the capability has been requested. */
@SerializedName("requested")
Boolean requested;
Expand Down Expand Up @@ -326,6 +329,43 @@ public static class Errors extends StripeObject {
}
}

/**
* For more details about Protections, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Protections extends StripeObject {
@SerializedName("psp_migration")
PspMigration pspMigration;

/**
* For more details about PspMigration, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class PspMigration extends StripeObject {
/** Time at which the protection expires. Measured in seconds since the Unix epoch. */
@SerializedName("expires_at")
Long expiresAt;

/** Time at which the protection was requested. Measured in seconds since the Unix epoch. */
@SerializedName("requested_at")
Long requestedAt;

/**
* The status of the capability protection.
*
* <p>One of {@code active}, {@code disrupted}, {@code expired}, or {@code inactive}.
*/
@SerializedName("status")
String status;
}
}

/**
* For more details about Requirements, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
Expand Down Expand Up @@ -520,6 +560,7 @@ public void setResponseGetter(StripeResponseGetter responseGetter) {
super.setResponseGetter(responseGetter);
trySetResponseGetter(account, responseGetter);
trySetResponseGetter(futureRequirements, responseGetter);
trySetResponseGetter(protections, responseGetter);
trySetResponseGetter(requirements, responseGetter);
}
}
56 changes: 48 additions & 8 deletions src/main/java/com/stripe/model/ConfirmationToken.java
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,9 @@ public static class PaymentMethodPreview extends StripeObject {
@SerializedName("fpx")
Fpx fpx;

@SerializedName("gift_card")
GiftCard giftCard;

@SerializedName("giropay")
Giropay giropay;

Expand Down Expand Up @@ -473,14 +476,14 @@ public static class PaymentMethodPreview extends StripeObject {
* {@code alma}, {@code amazon_pay}, {@code au_becs_debit}, {@code bacs_debit}, {@code
* bancontact}, {@code billie}, {@code blik}, {@code boleto}, {@code card}, {@code
* card_present}, {@code cashapp}, {@code crypto}, {@code custom}, {@code customer_balance},
* {@code eps}, {@code fpx}, {@code giropay}, {@code gopay}, {@code grabpay}, {@code
* id_bank_transfer}, {@code ideal}, {@code interac_present}, {@code kakao_pay}, {@code klarna},
* {@code konbini}, {@code kr_card}, {@code link}, {@code mb_way}, {@code mobilepay}, {@code
* multibanco}, {@code naver_pay}, {@code nz_bank_account}, {@code oxxo}, {@code p24}, {@code
* pay_by_bank}, {@code payco}, {@code paynow}, {@code paypal}, {@code paypay}, {@code payto},
* {@code pix}, {@code promptpay}, {@code qris}, {@code rechnung}, {@code revolut_pay}, {@code
* samsung_pay}, {@code satispay}, {@code sepa_debit}, {@code shopeepay}, {@code sofort}, {@code
* stripe_balance}, {@code sunbit}, {@code swish}, {@code twint}, {@code upi}, {@code
* {@code eps}, {@code fpx}, {@code gift_card}, {@code giropay}, {@code gopay}, {@code grabpay},
* {@code id_bank_transfer}, {@code ideal}, {@code interac_present}, {@code kakao_pay}, {@code
* klarna}, {@code konbini}, {@code kr_card}, {@code link}, {@code mb_way}, {@code mobilepay},
* {@code multibanco}, {@code naver_pay}, {@code nz_bank_account}, {@code oxxo}, {@code p24},
* {@code pay_by_bank}, {@code payco}, {@code paynow}, {@code paypal}, {@code paypay}, {@code
* payto}, {@code pix}, {@code promptpay}, {@code qris}, {@code rechnung}, {@code revolut_pay},
* {@code samsung_pay}, {@code satispay}, {@code sepa_debit}, {@code shopeepay}, {@code sofort},
* {@code stripe_balance}, {@code sunbit}, {@code swish}, {@code twint}, {@code upi}, {@code
* us_bank_account}, {@code wechat_pay}, or {@code zip}.
*/
@SerializedName("type")
Expand Down Expand Up @@ -1738,6 +1741,43 @@ public static class Fpx extends StripeObject {
String bank;
}

/**
* For more details about GiftCard, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class GiftCard extends StripeObject {
/**
* The brand of the gift card.
*
* <p>One of {@code fiserv_valuelink}, {@code givex}, or {@code svs}.
*/
@SerializedName("brand")
String brand;

/** The expiration month of the gift card. */
@SerializedName("exp_month")
Long expMonth;

/** The expiration year of the gift card. */
@SerializedName("exp_year")
Long expYear;

/** Uniquely identifies the gift card. */
@SerializedName("fingerprint")
String fingerprint;

/** The first six digits of the gift card number. */
@SerializedName("first6")
String first6;

/** The last four digits of the gift card number. */
@SerializedName("last4")
String last4;
}

/**
* For more details about Giropay, please refer to the <a href="https://docs.stripe.com/api">API
* Reference.</a>
Expand Down
1 change: 1 addition & 0 deletions src/main/java/com/stripe/model/EventDataClassLookup.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public final class EventDataClassLookup {
"payment_intent_amount_details_line_item",
com.stripe.model.PaymentIntentAmountDetailsLineItem.class);
classLookup.put("payment_link", com.stripe.model.PaymentLink.class);
classLookup.put("payment_location", com.stripe.model.PaymentLocation.class);
classLookup.put("payment_method", com.stripe.model.PaymentMethod.class);
classLookup.put("payment_method_balance", com.stripe.model.PaymentMethodBalance.class);
classLookup.put(
Expand Down
51 changes: 51 additions & 0 deletions src/main/java/com/stripe/model/InvoiceItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -818,10 +818,61 @@ public static class RateCardRateDetails extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class ProrationDetails extends StripeObject {
@SerializedName("credited_items")
CreditedItems creditedItems;

/** Discount amounts applied when the proration was created. */
@SerializedName("discount_amounts")
List<InvoiceItem.ProrationDetails.DiscountAmount> discountAmounts;

/**
* For more details about CreditedItems, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class CreditedItems extends StripeObject {
/**
* When {@code type} is {@code invoice_item}, the invoice item id for the debited invoice item
* corresponding to this credit proration.
*/
@SerializedName("invoice_item")
String invoiceItem;

@SerializedName("invoice_line_items")
InvoiceLineItems invoiceLineItems;

/**
* Whether the credit references a pending invoice item or one or more invoice line items on
* an invoice.
*
* <p>One of {@code invoice_item}, or {@code invoice_line_items}.
*/
@SerializedName("type")
String type;

/**
* For more details about InvoiceLineItems, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class InvoiceLineItems extends StripeObject {
/** The invoice id for the debited line item(s). */
@SerializedName("invoice")
String invoice;

/**
* IDs of the debited invoice line item(s) on the invoice that correspond to the credit
* proration.
*/
@SerializedName("invoice_line_items")
List<String> invoiceLineItems;
}
}

/**
* For more details about DiscountAmount, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
Expand Down
Loading
Loading