Skip to content

Reorder fields #1275

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
Oct 20, 2021
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
5 changes: 4 additions & 1 deletion src/main/java/com/stripe/model/Charge.java
Original file line number Diff line number Diff line change
Expand Up @@ -1359,7 +1359,10 @@ public void setGeneratedSepaDebitMandateObject(Mandate expandableObject) {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Boleto extends StripeObject {
/** Uniquely identifies this customer tax_id (CNPJ or CPF). */
/**
* The tax ID of the customer (CPF for individuals consumers or CNPJ for businesses
* consumers).
*/
@SerializedName("tax_id")
String taxId;
}
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/com/stripe/model/Invoice.java
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,6 @@ public class Invoice extends ApiResource implements HasId, MetadataStore<Invoice
@SerializedName("currency")
String currency;

/** Custom fields displayed on the invoice. */
@SerializedName("custom_fields")
List<Invoice.CustomField> customFields;

/** The ID of the customer who will be billed. */
@SerializedName("customer")
@Getter(lombok.AccessLevel.NONE)
Expand Down Expand Up @@ -207,6 +203,10 @@ public class Invoice extends ApiResource implements HasId, MetadataStore<Invoice
@SerializedName("customer_tax_ids")
List<Invoice.CustomerTaxId> customerTaxIds;

/** Custom fields displayed on the invoice. */
@SerializedName("custom_fields")
List<Invoice.CustomField> customFields;

/**
* ID of the default payment method for the invoice. It must belong to the customer associated
* with the invoice. If not set, defaults to the subscription's default payment method, if any, or
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/com/stripe/model/InvoiceLineItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ public class InvoiceLineItem extends StripeObject implements HasId {
@SerializedName("description")
String description;

/** The amount of discount calculated per discount for this line item. */
@SerializedName("discount_amounts")
List<InvoiceLineItem.DiscountAmount> discountAmounts;

/** If true, discounts will apply to this line item. Always false for prorations. */
@SerializedName("discountable")
Boolean discountable;

/** The amount of discount calculated per discount for this line item. */
@SerializedName("discount_amounts")
List<InvoiceLineItem.DiscountAmount> discountAmounts;

/**
* The discounts applied to the invoice line item. Line item discounts are applied before invoice
* discounts. Use {@code expand[]=discounts} to expand each discount.
Expand Down
12 changes: 6 additions & 6 deletions src/main/java/com/stripe/model/Source.java
Original file line number Diff line number Diff line change
Expand Up @@ -704,12 +704,12 @@ public static class CardPresent extends StripeObject {
@SerializedName("pos_entry_mode")
String posEntryMode;

@SerializedName("read_method")
String readMethod;

@SerializedName("reader")
String reader;

@SerializedName("read_method")
String readMethod;

@SerializedName("terminal_verification_results")
String terminalVerificationResults;

Expand Down Expand Up @@ -819,6 +819,9 @@ public static class Klarna extends StripeObject {
@SerializedName("pay_later_redirect_url")
String payLaterRedirectUrl;

@SerializedName("payment_method_categories")
String paymentMethodCategories;

@SerializedName("pay_now_asset_urls_descriptive")
String payNowAssetUrlsDescriptive;

Expand All @@ -843,9 +846,6 @@ public static class Klarna extends StripeObject {
@SerializedName("pay_over_time_redirect_url")
String payOverTimeRedirectUrl;

@SerializedName("payment_method_categories")
String paymentMethodCategories;

@SerializedName("purchase_country")
String purchaseCountry;

Expand Down
16 changes: 8 additions & 8 deletions src/main/java/com/stripe/model/issuing/Dispute.java
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,10 @@ public static class Canceled extends StripeObject {
@SerializedName("product_type")
String productType;

/** Date when the product was returned or attempted to be returned. */
@SerializedName("returned_at")
Long returnedAt;

/**
* Result of cardholder's attempt to return the product.
*
Expand All @@ -434,10 +438,6 @@ public static class Canceled extends StripeObject {
@SerializedName("return_status")
String returnStatus;

/** Date when the product was returned or attempted to be returned. */
@SerializedName("returned_at")
Long returnedAt;

/** Get ID of expandable {@code additionalDocumentation} object. */
public String getAdditionalDocumentation() {
return (this.additionalDocumentation != null) ? this.additionalDocumentation.getId() : null;
Expand Down Expand Up @@ -654,6 +654,10 @@ public static class MerchandiseNotAsDescribed extends StripeObject {
@SerializedName("return_description")
String returnDescription;

/** Date when the product was returned or attempted to be returned. */
@SerializedName("returned_at")
Long returnedAt;

/**
* Result of cardholder's attempt to return the product.
*
Expand All @@ -662,10 +666,6 @@ public static class MerchandiseNotAsDescribed extends StripeObject {
@SerializedName("return_status")
String returnStatus;

/** Date when the product was returned or attempted to be returned. */
@SerializedName("returned_at")
Long returnedAt;

/** Get ID of expandable {@code additionalDocumentation} object. */
public String getAdditionalDocumentation() {
return (this.additionalDocumentation != null) ? this.additionalDocumentation.getId() : null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2062,7 +2062,9 @@ public static class Boleto {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map<String, Object> extraParams;

/** Uniquely identifies this customer tax_id (CNPJ or CPF). */
/**
* The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers).
*/
@SerializedName("tax_id")
String taxId;

Expand Down Expand Up @@ -2113,7 +2115,10 @@ public Builder putAllExtraParam(Map<String, Object> map) {
return this;
}

/** Uniquely identifies this customer tax_id (CNPJ or CPF). */
/**
* The tax ID of the customer (CPF for individual consumers or CNPJ for businesses
* consumers).
*/
public Builder setTaxId(String taxId) {
this.taxId = taxId;
return this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2434,7 +2434,9 @@ public static class Boleto {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map<String, Object> extraParams;

/** Uniquely identifies this customer tax_id (CNPJ or CPF). */
/**
* The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers).
*/
@SerializedName("tax_id")
String taxId;

Expand Down Expand Up @@ -2485,7 +2487,10 @@ public Builder putAllExtraParam(Map<String, Object> map) {
return this;
}

/** Uniquely identifies this customer tax_id (CNPJ or CPF). */
/**
* The tax ID of the customer (CPF for individual consumers or CNPJ for businesses
* consumers).
*/
public Builder setTaxId(String taxId) {
this.taxId = taxId;
return this;
Expand Down
14 changes: 11 additions & 3 deletions src/main/java/com/stripe/param/PaymentIntentUpdateParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -2063,7 +2063,9 @@ public static class Boleto {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map<String, Object> extraParams;

/** Uniquely identifies this customer tax_id (CNPJ or CPF). */
/**
* The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers).
*/
@SerializedName("tax_id")
Object taxId;

Expand Down Expand Up @@ -2114,13 +2116,19 @@ public Builder putAllExtraParam(Map<String, Object> map) {
return this;
}

/** Uniquely identifies this customer tax_id (CNPJ or CPF). */
/**
* The tax ID of the customer (CPF for individual consumers or CNPJ for businesses
* consumers).
*/
public Builder setTaxId(String taxId) {
this.taxId = taxId;
return this;
}

/** Uniquely identifies this customer tax_id (CNPJ or CPF). */
/**
* The tax ID of the customer (CPF for individual consumers or CNPJ for businesses
* consumers).
*/
public Builder setTaxId(EmptyParam taxId) {
this.taxId = taxId;
return this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1364,7 +1364,9 @@ public static class Boleto {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map<String, Object> extraParams;

/** Uniquely identifies this customer tax_id (CNPJ or CPF). */
/**
* The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers).
*/
@SerializedName("tax_id")
String taxId;

Expand Down Expand Up @@ -1413,7 +1415,9 @@ public Builder putAllExtraParam(Map<String, Object> map) {
return this;
}

/** Uniquely identifies this customer tax_id (CNPJ or CPF). */
/**
* The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers).
*/
public Builder setTaxId(String taxId) {
this.taxId = taxId;
return this;
Expand Down