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
4 changes: 4 additions & 0 deletions src/main/java/com/stripe/model/Balance.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ public class Balance extends ApiResource {
@SerializedName("connect_reserved")
List<Balance.Money> connectReserved;

/** Funds that can be paid out using Instant Payouts. */
@SerializedName("instant_available")
List<Balance.Money> instantAvailable;

@SerializedName("issuing")
Details issuing;

Expand Down
18 changes: 6 additions & 12 deletions src/main/java/com/stripe/model/CreditNote.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@
@Setter
@EqualsAndHashCode(callSuper = false)
public class CreditNote extends ApiResource implements HasId, MetadataStore<CreditNote> {
/**
* The integer amount in <strong>%s</strong> representing the total amount of the credit note,
* including tax.
*/
/** The integer amount in %s representing the total amount of the credit note, including tax. */
@SerializedName("amount")
Long amount;

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

/**
* The integer amount in <strong>%s</strong> representing the total amount of discount that was
* credited.
*/
/** The integer amount in %s representing the total amount of discount that was credited. */
@SerializedName("discount_amount")
Long discountAmount;

Expand Down Expand Up @@ -142,8 +136,8 @@ public class CreditNote extends ApiResource implements HasId, MetadataStore<Cred
String status;

/**
* The integer amount in <strong>%s</strong> representing the amount of the credit note, excluding
* tax and invoice level discounts.
* The integer amount in %s representing the amount of the credit note, excluding tax and invoice
* level discounts.
*/
@SerializedName("subtotal")
Long subtotal;
Expand All @@ -153,8 +147,8 @@ public class CreditNote extends ApiResource implements HasId, MetadataStore<Cred
List<CreditNote.TaxAmount> taxAmounts;

/**
* The integer amount in <strong>%s</strong> representing the total amount of the credit note,
* including tax and all discount.
* The integer amount in %s representing the total amount of the credit note, including tax and
* all discount.
*/
@SerializedName("total")
Long total;
Expand Down
9 changes: 3 additions & 6 deletions src/main/java/com/stripe/model/CreditNoteLineItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
@EqualsAndHashCode(callSuper = false)
public class CreditNoteLineItem extends StripeObject implements HasId {
/**
* The integer amount in <strong>%s</strong> representing the gross amount being credited for this
* line item, excluding (exclusive) tax and discounts.
* The integer amount in %s representing the gross amount being credited for this line item,
* excluding (exclusive) tax and discounts.
*/
@SerializedName("amount")
Long amount;
Expand All @@ -24,10 +24,7 @@ public class CreditNoteLineItem extends StripeObject implements HasId {
@SerializedName("description")
String description;

/**
* The integer amount in <strong>%s</strong> representing the discount being credited for this
* line item.
*/
/** The integer amount in %s representing the discount being credited for this line item. */
@SerializedName("discount_amount")
Long discountAmount;

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/stripe/model/InvoiceItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public class InvoiceItem extends ApiResource implements HasId, MetadataStore<Inv
@SerializedName("tax_rates")
List<TaxRate> taxRates;

/** Unit Amount (in the {@code currency} specified) of the invoice item. */
/** Unit amount (in the {@code currency} specified) of the invoice item. */
@SerializedName("unit_amount")
Long unitAmount;

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

/**
* ID of the default payment method for the subscription. It must belong to the customer
* associated with the subscription. If not set, invoices will use the default payment method in
* the customer's invoice settings.
* associated with the subscription. This takes precedence over {@code default_source}. If neither
* are set, invoices will use the customer's <a
* href="https://stripe.com/docs/api/customers/object#customer_object-invoice_settings-default_payment_method">invoice_settings.default_payment_method</a>
* or <a
* href="https://stripe.com/docs/api/customers/object#customer_object-default_source">default_source</a>.
*/
@SerializedName("default_payment_method")
@Getter(lombok.AccessLevel.NONE)
Expand All @@ -117,8 +120,12 @@ public class Subscription extends ApiResource implements HasId, MetadataStore<Su

/**
* ID of the default payment source for the subscription. It must belong to the customer
* associated with the subscription and be in a chargeable state. If not set, defaults to the
* customer's default source.
* associated with the subscription and be in a chargeable state. If {@code
* default_payment_method} is also set, {@code default_payment_method} will take precedence. If
* neither are set, invoices will use the customer's <a
* href="https://stripe.com/docs/api/customers/object#customer_object-invoice_settings-default_payment_method">invoice_settings.default_payment_method</a>
* or <a
* href="https://stripe.com/docs/api/customers/object#customer_object-default_source">default_source</a>.
*/
@SerializedName("default_source")
@Getter(lombok.AccessLevel.NONE)
Expand Down
52 changes: 22 additions & 30 deletions src/main/java/com/stripe/param/CreditNoteCreateParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@

@Getter
public class CreditNoteCreateParams extends ApiRequestParams {
/** The integer amount in <strong>%s</strong> representing the total amount of the credit note. */
/** The integer amount in %s representing the total amount of the credit note. */
@SerializedName("amount")
Long amount;

/**
* The integer amount in <strong>%s</strong> representing the amount to credit the customer's
* balance, which will be automatically applied to their next invoice.
* The integer amount in %s representing the amount to credit the customer's balance, which will
* be automatically applied to their next invoice.
*/
@SerializedName("credit_amount")
Long creditAmount;
Expand Down Expand Up @@ -58,10 +58,7 @@ public class CreditNoteCreateParams extends ApiRequestParams {
@SerializedName("metadata")
Map<String, String> metadata;

/**
* The integer amount in <strong>%s</strong> representing the amount that is credited outside of
* Stripe.
*/
/** The integer amount in %s representing the amount that is credited outside of Stripe. */
@SerializedName("out_of_band_amount")
Long outOfBandAmount;

Expand All @@ -77,8 +74,8 @@ public class CreditNoteCreateParams extends ApiRequestParams {
String refund;

/**
* The integer amount in <strong>%s</strong> representing the amount to refund. If set, a refund
* will be created for the charge associated with the invoice.
* The integer amount in %s representing the amount to refund. If set, a refund will be created
* for the charge associated with the invoice.
*/
@SerializedName("refund_amount")
Long refundAmount;
Expand Down Expand Up @@ -156,17 +153,15 @@ public CreditNoteCreateParams build() {
this.refundAmount);
}

/**
* The integer amount in <strong>%s</strong> representing the total amount of the credit note.
*/
/** The integer amount in %s representing the total amount of the credit note. */
public Builder setAmount(Long amount) {
this.amount = amount;
return this;
}

/**
* The integer amount in <strong>%s</strong> representing the amount to credit the customer's
* balance, which will be automatically applied to their next invoice.
* The integer amount in %s representing the amount to credit the customer's balance, which will
* be automatically applied to their next invoice.
*/
public Builder setCreditAmount(Long creditAmount) {
this.creditAmount = creditAmount;
Expand Down Expand Up @@ -289,10 +284,7 @@ public Builder putAllMetadata(Map<String, String> map) {
return this;
}

/**
* The integer amount in <strong>%s</strong> representing the amount that is credited outside of
* Stripe.
*/
/** The integer amount in %s representing the amount that is credited outside of Stripe. */
public Builder setOutOfBandAmount(Long outOfBandAmount) {
this.outOfBandAmount = outOfBandAmount;
return this;
Expand All @@ -314,8 +306,8 @@ public Builder setRefund(String refund) {
}

/**
* The integer amount in <strong>%s</strong> representing the amount to refund. If set, a refund
* will be created for the charge associated with the invoice.
* The integer amount in %s representing the amount to refund. If set, a refund will be created
* for the charge associated with the invoice.
*/
public Builder setRefundAmount(Long refundAmount) {
this.refundAmount = refundAmount;
Expand Down Expand Up @@ -374,16 +366,16 @@ public static class Line {
Type type;

/**
* The integer unit amount in <strong>%s</strong> of the credit note line item. This {@code
* unit_amount} will be multiplied by the quantity to get the full amount to credit for this
* line item. Only valid when {@code type} is {@code custom_line_item}.
* The integer unit amount in %s of the credit note line item. This {@code unit_amount} will be
* multiplied by the quantity to get the full amount to credit for this line item. Only valid
* when {@code type} is {@code custom_line_item}.
*/
@SerializedName("unit_amount")
Long unitAmount;

/**
* Same as {@code unit_amount}, but accepts a decimal value with at most 12 decimal places. Only
* one of {@code unit_amount} and {@code unit_amount_decimal} can be set.
* Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal
* places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set.
*/
@SerializedName("unit_amount_decimal")
BigDecimal unitAmountDecimal;
Expand Down Expand Up @@ -561,18 +553,18 @@ public Builder setType(Type type) {
}

/**
* The integer unit amount in <strong>%s</strong> of the credit note line item. This {@code
* unit_amount} will be multiplied by the quantity to get the full amount to credit for this
* line item. Only valid when {@code type} is {@code custom_line_item}.
* The integer unit amount in %s of the credit note line item. This {@code unit_amount} will
* be multiplied by the quantity to get the full amount to credit for this line item. Only
* valid when {@code type} is {@code custom_line_item}.
*/
public Builder setUnitAmount(Long unitAmount) {
this.unitAmount = unitAmount;
return this;
}

/**
* Same as {@code unit_amount}, but accepts a decimal value with at most 12 decimal places.
* Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set.
* Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal
* places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set.
*/
public Builder setUnitAmountDecimal(BigDecimal unitAmountDecimal) {
this.unitAmountDecimal = unitAmountDecimal;
Expand Down
52 changes: 22 additions & 30 deletions src/main/java/com/stripe/param/CreditNotePreviewParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@

@Getter
public class CreditNotePreviewParams extends ApiRequestParams {
/** The integer amount in <strong>%s</strong> representing the total amount of the credit note. */
/** The integer amount in %s representing the total amount of the credit note. */
@SerializedName("amount")
Long amount;

/**
* The integer amount in <strong>%s</strong> representing the amount to credit the customer's
* balance, which will be automatically applied to their next invoice.
* The integer amount in %s representing the amount to credit the customer's balance, which will
* be automatically applied to their next invoice.
*/
@SerializedName("credit_amount")
Long creditAmount;
Expand Down Expand Up @@ -58,10 +58,7 @@ public class CreditNotePreviewParams extends ApiRequestParams {
@SerializedName("metadata")
Map<String, String> metadata;

/**
* The integer amount in <strong>%s</strong> representing the amount that is credited outside of
* Stripe.
*/
/** The integer amount in %s representing the amount that is credited outside of Stripe. */
@SerializedName("out_of_band_amount")
Long outOfBandAmount;

Expand All @@ -77,8 +74,8 @@ public class CreditNotePreviewParams extends ApiRequestParams {
String refund;

/**
* The integer amount in <strong>%s</strong> representing the amount to refund. If set, a refund
* will be created for the charge associated with the invoice.
* The integer amount in %s representing the amount to refund. If set, a refund will be created
* for the charge associated with the invoice.
*/
@SerializedName("refund_amount")
Long refundAmount;
Expand Down Expand Up @@ -156,17 +153,15 @@ public CreditNotePreviewParams build() {
this.refundAmount);
}

/**
* The integer amount in <strong>%s</strong> representing the total amount of the credit note.
*/
/** The integer amount in %s representing the total amount of the credit note. */
public Builder setAmount(Long amount) {
this.amount = amount;
return this;
}

/**
* The integer amount in <strong>%s</strong> representing the amount to credit the customer's
* balance, which will be automatically applied to their next invoice.
* The integer amount in %s representing the amount to credit the customer's balance, which will
* be automatically applied to their next invoice.
*/
public Builder setCreditAmount(Long creditAmount) {
this.creditAmount = creditAmount;
Expand Down Expand Up @@ -289,10 +284,7 @@ public Builder putAllMetadata(Map<String, String> map) {
return this;
}

/**
* The integer amount in <strong>%s</strong> representing the amount that is credited outside of
* Stripe.
*/
/** The integer amount in %s representing the amount that is credited outside of Stripe. */
public Builder setOutOfBandAmount(Long outOfBandAmount) {
this.outOfBandAmount = outOfBandAmount;
return this;
Expand All @@ -314,8 +306,8 @@ public Builder setRefund(String refund) {
}

/**
* The integer amount in <strong>%s</strong> representing the amount to refund. If set, a refund
* will be created for the charge associated with the invoice.
* The integer amount in %s representing the amount to refund. If set, a refund will be created
* for the charge associated with the invoice.
*/
public Builder setRefundAmount(Long refundAmount) {
this.refundAmount = refundAmount;
Expand Down Expand Up @@ -374,16 +366,16 @@ public static class Line {
Type type;

/**
* The integer unit amount in <strong>%s</strong> of the credit note line item. This {@code
* unit_amount} will be multiplied by the quantity to get the full amount to credit for this
* line item. Only valid when {@code type} is {@code custom_line_item}.
* The integer unit amount in %s of the credit note line item. This {@code unit_amount} will be
* multiplied by the quantity to get the full amount to credit for this line item. Only valid
* when {@code type} is {@code custom_line_item}.
*/
@SerializedName("unit_amount")
Long unitAmount;

/**
* Same as {@code unit_amount}, but accepts a decimal value with at most 12 decimal places. Only
* one of {@code unit_amount} and {@code unit_amount_decimal} can be set.
* Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal
* places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set.
*/
@SerializedName("unit_amount_decimal")
BigDecimal unitAmountDecimal;
Expand Down Expand Up @@ -561,18 +553,18 @@ public Builder setType(Type type) {
}

/**
* The integer unit amount in <strong>%s</strong> of the credit note line item. This {@code
* unit_amount} will be multiplied by the quantity to get the full amount to credit for this
* line item. Only valid when {@code type} is {@code custom_line_item}.
* The integer unit amount in %s of the credit note line item. This {@code unit_amount} will
* be multiplied by the quantity to get the full amount to credit for this line item. Only
* valid when {@code type} is {@code custom_line_item}.
*/
public Builder setUnitAmount(Long unitAmount) {
this.unitAmount = unitAmount;
return this;
}

/**
* Same as {@code unit_amount}, but accepts a decimal value with at most 12 decimal places.
* Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set.
* Same as {@code unit_amount}, but accepts a decimal value in %s with at most 12 decimal
* places. Only one of {@code unit_amount} and {@code unit_amount_decimal} can be set.
*/
public Builder setUnitAmountDecimal(BigDecimal unitAmountDecimal) {
this.unitAmountDecimal = unitAmountDecimal;
Expand Down
Loading