Skip to content

API Updates #1320

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 2, 2022
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
21 changes: 21 additions & 0 deletions src/main/java/com/stripe/model/CreditedItems.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// File generated from our OpenAPI spec
package com.stripe.model;

import com.google.gson.annotations.SerializedName;
import java.util.List;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public class CreditedItems extends StripeObject {
/** Invoice containing the credited invoice line items. */
@SerializedName("invoice")
String invoice;

/** Credited invoice line items. */
@SerializedName("invoice_line_items")
List<String> invoiceLineItems;
}
4 changes: 4 additions & 0 deletions src/main/java/com/stripe/model/InvoiceLineItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ public class InvoiceLineItem extends StripeObject implements HasId {
@SerializedName("proration")
Boolean proration;

/** Additional details for proration line items. */
@SerializedName("proration_details")
ProrationDetails prorationDetails;

/** The quantity of the subscription, if the line item is a subscription or a proration. */
@SerializedName("quantity")
Long quantity;
Expand Down
19 changes: 19 additions & 0 deletions src/main/java/com/stripe/model/ProrationDetails.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// File generated from our OpenAPI spec
package com.stripe.model;

import com.google.gson.annotations.SerializedName;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public class ProrationDetails extends StripeObject {
/**
* For a credit proration {@code line_item}, the original debit line_items to which the credit
* proration applies.
*/
@SerializedName("credited_items")
CreditedItems creditedItems;
}