Skip to content

Commit

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

* Update generated code for v436

* Update generated code for v437

* Update generated code for v438

* Update generated code for v439

* Update generated code for v441

* Update generated code for v444

* Update generated code for v444

* Update generated code for v445

* Update generated code for v446

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
  • Loading branch information
stripe-openapi[bot] committed Aug 3, 2023
1 parent a2e73d3 commit a0806cd
Show file tree
Hide file tree
Showing 53 changed files with 892 additions and 359 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v433
v446
6 changes: 3 additions & 3 deletions src/main/java/com/stripe/model/ApplicationFee.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ public class ApplicationFee extends ApiResource implements BalanceTransactionSou
@Setter(lombok.AccessLevel.NONE)
ExpandableField<Account> account;

/** Amount earned, in %s. */
/** Amount earned, in cents (or local equivalent). */
@SerializedName("amount")
Long amount;

/**
* Amount in %s refunded (can be less than the amount attribute on the fee if a partial refund was
* issued).
* Amount in cents (or local equivalent) refunded (can be less than the amount attribute on the
* fee if a partial refund was issued).
*/
@SerializedName("amount_refunded")
Long amountRefunded;
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/com/stripe/model/BalanceTransaction.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
@Setter
@EqualsAndHashCode(callSuper = false)
public class BalanceTransaction extends ApiResource implements HasId {
/** Gross amount of the transaction, in %s. */
/** Gross amount of the transaction, in cents (or local equivalent). */
@SerializedName("amount")
Long amount;

Expand Down Expand Up @@ -61,11 +61,11 @@ public class BalanceTransaction extends ApiResource implements HasId {
@SerializedName("exchange_rate")
BigDecimal exchangeRate;

/** Fees (in %s) paid for this transaction. */
/** Fees (in cents (or local equivalent)) paid for this transaction. */
@SerializedName("fee")
Long fee;

/** Detailed breakdown of fees (in %s) paid for this transaction. */
/** Detailed breakdown of fees (in cents (or local equivalent)) paid for this transaction. */
@SerializedName("fee_details")
List<BalanceTransaction.FeeDetail> feeDetails;

Expand All @@ -74,7 +74,7 @@ public class BalanceTransaction extends ApiResource implements HasId {
@SerializedName("id")
String id;

/** Net amount of the transaction, in %s. */
/** Net amount of the transaction, in cents (or local equivalent). */
@SerializedName("net")
Long net;

Expand Down
8 changes: 4 additions & 4 deletions src/main/java/com/stripe/model/Charge.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ public class Charge extends ApiResource implements MetadataStore<Charge>, Balanc
Long amount;

/**
* Amount in %s captured (can be less than the amount attribute on the charge if a partial capture
* was made).
* Amount in cents (or local equivalent) captured (can be less than the amount attribute on the
* charge if a partial capture was made).
*/
@SerializedName("amount_captured")
Long amountCaptured;

/**
* Amount in %s refunded (can be less than the amount attribute on the charge if a partial refund
* was issued).
* Amount in cents (or local equivalent) refunded (can be less than the amount attribute on the
* charge if a partial refund was issued).
*/
@SerializedName("amount_refunded")
Long amountRefunded;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
@Setter
@EqualsAndHashCode(callSuper = false)
public class ConnectCollectionTransfer extends StripeObject implements BalanceTransactionSource {
/** Amount transferred, in %s. */
/** Amount transferred, in cents (or local equivalent). */
@SerializedName("amount")
Long amount;

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/stripe/model/Coupon.java
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ public class Coupon extends ApiResource implements HasId, MetadataStore<Coupon>

/**
* Percent that will be taken off the subtotal of any invoices for this customer for the duration
* of the coupon. For example, a coupon with percent_off of 50 will make a %s100 invoice %s50
* instead.
* of the coupon. For example, a coupon with percent_off of 50 will make a $ (or local
* equivalent)100 invoice $ (or local equivalent)50 instead.
*/
@SerializedName("percent_off")
BigDecimal percentOff;
Expand Down
34 changes: 20 additions & 14 deletions src/main/java/com/stripe/model/CreditNote.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@
@Setter
@EqualsAndHashCode(callSuper = false)
public class CreditNote extends ApiResource implements HasId, MetadataStore<CreditNote> {
/** The integer amount in %s representing the total amount of the credit note, including tax. */
/**
* The integer amount in cents (or local equivalent) representing the total amount of the credit
* note, including tax.
*/
@SerializedName("amount")
Long amount;

Expand Down Expand Up @@ -59,7 +62,10 @@ public class CreditNote extends ApiResource implements HasId, MetadataStore<Cred
@Setter(lombok.AccessLevel.NONE)
ExpandableField<CustomerBalanceTransaction> customerBalanceTransaction;

/** The integer amount in %s representing the total amount of discount that was credited. */
/**
* The integer amount in cents (or local equivalent) representing the total amount of discount
* that was credited.
*/
@SerializedName("discount_amount")
Long discountAmount;

Expand Down Expand Up @@ -158,15 +164,15 @@ public class CreditNote extends ApiResource implements HasId, MetadataStore<Cred
String status;

/**
* The integer amount in %s representing the amount of the credit note, excluding exclusive tax
* and invoice level discounts.
* The integer amount in cents (or local equivalent) representing the amount of the credit note,
* excluding exclusive tax and invoice level discounts.
*/
@SerializedName("subtotal")
Long subtotal;

/**
* The integer amount in %s representing the amount of the credit note, excluding all tax and
* invoice level discounts.
* The integer amount in cents (or local equivalent) representing the amount of the credit note,
* excluding all tax and invoice level discounts.
*/
@SerializedName("subtotal_excluding_tax")
Long subtotalExcludingTax;
Expand All @@ -176,15 +182,15 @@ public class CreditNote extends ApiResource implements HasId, MetadataStore<Cred
List<CreditNote.TaxAmount> taxAmounts;

/**
* The integer amount in %s representing the total amount of the credit note, including tax and
* all discount.
* The integer amount in cents (or local equivalent) representing the total amount of the credit
* note, including tax and all discount.
*/
@SerializedName("total")
Long total;

/**
* The integer amount in %s representing the total amount of the credit note, excluding tax, but
* including discounts.
* The integer amount in cents (or local equivalent) representing the total amount of the credit
* note, excluding tax, but including discounts.
*/
@SerializedName("total_excluding_tax")
Long totalExcludingTax;
Expand Down Expand Up @@ -583,7 +589,7 @@ public CreditNote voidCreditNote(CreditNoteVoidCreditNoteParams params, RequestO
@Setter
@EqualsAndHashCode(callSuper = false)
public static class DiscountAmount extends StripeObject {
/** The amount, in %s, of the discount. */
/** The amount, in cents (or local equivalent), of the discount. */
@SerializedName("amount")
Long amount;

Expand Down Expand Up @@ -691,7 +697,7 @@ public static class Tax extends StripeObject {
@SerializedName("taxability_reason")
String taxabilityReason;

/** The amount on which tax is calculated, in %s. */
/** The amount on which tax is calculated, in cents (or local equivalent). */
@SerializedName("taxable_amount")
Long taxableAmount;
}
Expand All @@ -701,7 +707,7 @@ public static class Tax extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class TaxAmount extends StripeObject {
/** The amount, in %s, of the tax. */
/** The amount, in cents (or local equivalent), of the tax. */
@SerializedName("amount")
Long amount;

Expand All @@ -728,7 +734,7 @@ public static class TaxAmount extends StripeObject {
@SerializedName("taxability_reason")
String taxabilityReason;

/** The amount on which tax is calculated, in %s. */
/** The amount on which tax is calculated, in cents (or local equivalent). */
@SerializedName("taxable_amount")
Long taxableAmount;

Expand Down
23 changes: 13 additions & 10 deletions src/main/java/com/stripe/model/CreditNoteLineItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
@EqualsAndHashCode(callSuper = false)
public class CreditNoteLineItem extends StripeObject implements HasId {
/**
* The integer amount in %s representing the gross amount being credited for this line item,
* excluding (exclusive) tax and discounts.
* The integer amount in cents (or local equivalent) representing the gross amount being credited
* for this line item, excluding (exclusive) tax and discounts.
*/
@SerializedName("amount")
Long amount;

/**
* The integer amount in %s representing the amount being credited for this line item, excluding
* all tax and discounts.
* The integer amount in cents (or local equivalent) representing the amount being credited for
* this line item, excluding all tax and discounts.
*/
@SerializedName("amount_excluding_tax")
Long amountExcludingTax;
Expand All @@ -31,7 +31,10 @@ public class CreditNoteLineItem extends StripeObject implements HasId {
@SerializedName("description")
String description;

/** The integer amount in %s representing the discount being credited for this line item. */
/**
* The integer amount in cents (or local equivalent) representing the discount being credited for
* this line item.
*/
@SerializedName("discount_amount")
Long discountAmount;

Expand Down Expand Up @@ -93,8 +96,8 @@ public class CreditNoteLineItem extends StripeObject implements HasId {
BigDecimal unitAmountDecimal;

/**
* The amount in %s representing the unit amount being credited for this line item, excluding all
* tax and discounts.
* The amount in cents (or local equivalent) representing the unit amount being credited for this
* line item, excluding all tax and discounts.
*/
@SerializedName("unit_amount_excluding_tax")
BigDecimal unitAmountExcludingTax;
Expand All @@ -103,7 +106,7 @@ public class CreditNoteLineItem extends StripeObject implements HasId {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class DiscountAmount extends StripeObject {
/** The amount, in %s, of the discount. */
/** The amount, in cents (or local equivalent), of the discount. */
@SerializedName("amount")
Long amount;

Expand Down Expand Up @@ -136,7 +139,7 @@ public void setDiscountObject(Discount expandableObject) {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class TaxAmount extends StripeObject {
/** The amount, in %s, of the tax. */
/** The amount, in cents (or local equivalent), of the tax. */
@SerializedName("amount")
Long amount;

Expand All @@ -163,7 +166,7 @@ public static class TaxAmount extends StripeObject {
@SerializedName("taxability_reason")
String taxabilityReason;

/** The amount on which tax is calculated, in %s. */
/** The amount on which tax is calculated, in cents (or local equivalent). */
@SerializedName("taxable_amount")
Long taxableAmount;

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/stripe/model/FeeRefund.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
@EqualsAndHashCode(callSuper = false)
public class FeeRefund extends ApiResource
implements MetadataStore<FeeRefund>, BalanceTransactionSource {
/** Amount, in %s. */
/** Amount, in cents (or local equivalent). */
@SerializedName("amount")
Long amount;

Expand Down
45 changes: 31 additions & 14 deletions src/main/java/com/stripe/model/Invoice.java
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,11 @@ public class Invoice extends ApiResource implements HasId, MetadataStore<Invoice
@SerializedName("amount_due")
Long amountDue;

/** The amount, in %s, that was paid. */
/** The amount, in cents (or local equivalent), that was paid. */
@SerializedName("amount_paid")
Long amountPaid;

/** The difference between amount_due and amount_paid, in %s. */
/** The difference between amount_due and amount_paid, in cents (or local equivalent). */
@SerializedName("amount_remaining")
Long amountRemaining;

Expand All @@ -111,8 +111,8 @@ public class Invoice extends ApiResource implements HasId, MetadataStore<Invoice
ExpandableField<Application> application;

/**
* The fee in %s that will be applied to the invoice and transferred to the application owner's
* Stripe account when the invoice is paid.
* The fee in cents (or local equivalent) that will be applied to the invoice and transferred to
* the application owner's Stripe account when the invoice is paid.
*/
@SerializedName("application_fee_amount")
Long applicationFeeAmount;
Expand Down Expand Up @@ -528,6 +528,10 @@ public class Invoice extends ApiResource implements HasId, MetadataStore<Invoice
@Setter(lombok.AccessLevel.NONE)
ExpandableField<Subscription> subscription;

/** Details about the subscription that created this invoice. */
@SerializedName("subscription_details")
SubscriptionDetails subscriptionDetails;

/**
* Only set for upcoming invoices that preview prorations. The time used to calculate prorations.
*/
Expand All @@ -542,8 +546,8 @@ public class Invoice extends ApiResource implements HasId, MetadataStore<Invoice
Long subtotal;

/**
* The integer amount in %s representing the subtotal of the invoice before any invoice level
* discount or tax is applied. Item discounts are already incorporated
* The integer amount in cents (or local equivalent) representing the subtotal of the invoice
* before any invoice level discount or tax is applied. Item discounts are already incorporated
*/
@SerializedName("subtotal_excluding_tax")
Long subtotalExcludingTax;
Expand All @@ -570,8 +574,8 @@ public class Invoice extends ApiResource implements HasId, MetadataStore<Invoice
List<Invoice.TotalDiscountAmount> totalDiscountAmounts;

/**
* The integer amount in %s representing the total amount of the invoice including all discounts
* but excluding all tax.
* The integer amount in cents (or local equivalent) representing the total amount of the invoice
* including all discounts but excluding all tax.
*/
@SerializedName("total_excluding_tax")
Long totalExcludingTax;
Expand Down Expand Up @@ -2108,7 +2112,7 @@ public static class Tax extends StripeObject {
@SerializedName("taxability_reason")
String taxabilityReason;

/** The amount on which tax is calculated, in %s. */
/** The amount on which tax is calculated, in cents (or local equivalent). */
@SerializedName("taxable_amount")
Long taxableAmount;
}
Expand All @@ -2135,6 +2139,19 @@ public static class StatusTransitions extends StripeObject {
Long voidedAt;
}

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class SubscriptionDetails extends StripeObject {
/**
* Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that will reflect
* the metadata of the subscription at the time of invoice creation. <em>Note: This attribute is
* populated only for invoices created on or after June 29, 2023.</em>
*/
@SerializedName("metadata")
Map<String, String> metadata;
}

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
Expand Down Expand Up @@ -2165,7 +2182,7 @@ public static class ItemReason extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class TotalDiscountAmount extends StripeObject {
/** The amount, in %s, of the discount. */
/** The amount, in cents (or local equivalent), of the discount. */
@SerializedName("amount")
Long amount;

Expand Down Expand Up @@ -2198,7 +2215,7 @@ public void setDiscountObject(Discount expandableObject) {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class TotalTaxAmount extends StripeObject {
/** The amount, in %s, of the tax. */
/** The amount, in cents (or local equivalent), of the tax. */
@SerializedName("amount")
Long amount;

Expand All @@ -2225,7 +2242,7 @@ public static class TotalTaxAmount extends StripeObject {
@SerializedName("taxability_reason")
String taxabilityReason;

/** The amount on which tax is calculated, in %s. */
/** The amount on which tax is calculated, in cents (or local equivalent). */
@SerializedName("taxable_amount")
Long taxableAmount;

Expand Down Expand Up @@ -2253,8 +2270,8 @@ public void setTaxRateObject(TaxRate expandableObject) {
@EqualsAndHashCode(callSuper = false)
public static class TransferData extends StripeObject {
/**
* The amount in %s that will be transferred to the destination account when the invoice is
* paid. By default, the entire amount is transferred to the destination.
* The amount in cents (or local equivalent) that will be transferred to the destination account
* when the invoice is paid. By default, the entire amount is transferred to the destination.
*/
@SerializedName("amount")
Long amount;
Expand Down

0 comments on commit a0806cd

Please sign in to comment.