Skip to content

Commit 37d4346

Browse files
Reorder fields (#1275)
1 parent 4a860d0 commit 37d4346

9 files changed

+57
-32
lines changed

src/main/java/com/stripe/model/Charge.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -1359,7 +1359,10 @@ public void setGeneratedSepaDebitMandateObject(Mandate expandableObject) {
13591359
@Setter
13601360
@EqualsAndHashCode(callSuper = false)
13611361
public static class Boleto extends StripeObject {
1362-
/** Uniquely identifies this customer tax_id (CNPJ or CPF). */
1362+
/**
1363+
* The tax ID of the customer (CPF for individuals consumers or CNPJ for businesses
1364+
* consumers).
1365+
*/
13631366
@SerializedName("tax_id")
13641367
String taxId;
13651368
}

src/main/java/com/stripe/model/Invoice.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,6 @@ public class Invoice extends ApiResource implements HasId, MetadataStore<Invoice
145145
@SerializedName("currency")
146146
String currency;
147147

148-
/** Custom fields displayed on the invoice. */
149-
@SerializedName("custom_fields")
150-
List<Invoice.CustomField> customFields;
151-
152148
/** The ID of the customer who will be billed. */
153149
@SerializedName("customer")
154150
@Getter(lombok.AccessLevel.NONE)
@@ -207,6 +203,10 @@ public class Invoice extends ApiResource implements HasId, MetadataStore<Invoice
207203
@SerializedName("customer_tax_ids")
208204
List<Invoice.CustomerTaxId> customerTaxIds;
209205

206+
/** Custom fields displayed on the invoice. */
207+
@SerializedName("custom_fields")
208+
List<Invoice.CustomField> customFields;
209+
210210
/**
211211
* ID of the default payment method for the invoice. It must belong to the customer associated
212212
* with the invoice. If not set, defaults to the subscription's default payment method, if any, or

src/main/java/com/stripe/model/InvoiceLineItem.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ public class InvoiceLineItem extends StripeObject implements HasId {
2929
@SerializedName("description")
3030
String description;
3131

32-
/** The amount of discount calculated per discount for this line item. */
33-
@SerializedName("discount_amounts")
34-
List<InvoiceLineItem.DiscountAmount> discountAmounts;
35-
3632
/** If true, discounts will apply to this line item. Always false for prorations. */
3733
@SerializedName("discountable")
3834
Boolean discountable;
3935

36+
/** The amount of discount calculated per discount for this line item. */
37+
@SerializedName("discount_amounts")
38+
List<InvoiceLineItem.DiscountAmount> discountAmounts;
39+
4040
/**
4141
* The discounts applied to the invoice line item. Line item discounts are applied before invoice
4242
* discounts. Use {@code expand[]=discounts} to expand each discount.

src/main/java/com/stripe/model/Source.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -704,12 +704,12 @@ public static class CardPresent extends StripeObject {
704704
@SerializedName("pos_entry_mode")
705705
String posEntryMode;
706706

707-
@SerializedName("read_method")
708-
String readMethod;
709-
710707
@SerializedName("reader")
711708
String reader;
712709

710+
@SerializedName("read_method")
711+
String readMethod;
712+
713713
@SerializedName("terminal_verification_results")
714714
String terminalVerificationResults;
715715

@@ -819,6 +819,9 @@ public static class Klarna extends StripeObject {
819819
@SerializedName("pay_later_redirect_url")
820820
String payLaterRedirectUrl;
821821

822+
@SerializedName("payment_method_categories")
823+
String paymentMethodCategories;
824+
822825
@SerializedName("pay_now_asset_urls_descriptive")
823826
String payNowAssetUrlsDescriptive;
824827

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

846-
@SerializedName("payment_method_categories")
847-
String paymentMethodCategories;
848-
849849
@SerializedName("purchase_country")
850850
String purchaseCountry;
851851

src/main/java/com/stripe/model/issuing/Dispute.java

+8-8
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,10 @@ public static class Canceled extends StripeObject {
426426
@SerializedName("product_type")
427427
String productType;
428428

429+
/** Date when the product was returned or attempted to be returned. */
430+
@SerializedName("returned_at")
431+
Long returnedAt;
432+
429433
/**
430434
* Result of cardholder's attempt to return the product.
431435
*
@@ -434,10 +438,6 @@ public static class Canceled extends StripeObject {
434438
@SerializedName("return_status")
435439
String returnStatus;
436440

437-
/** Date when the product was returned or attempted to be returned. */
438-
@SerializedName("returned_at")
439-
Long returnedAt;
440-
441441
/** Get ID of expandable {@code additionalDocumentation} object. */
442442
public String getAdditionalDocumentation() {
443443
return (this.additionalDocumentation != null) ? this.additionalDocumentation.getId() : null;
@@ -654,6 +654,10 @@ public static class MerchandiseNotAsDescribed extends StripeObject {
654654
@SerializedName("return_description")
655655
String returnDescription;
656656

657+
/** Date when the product was returned or attempted to be returned. */
658+
@SerializedName("returned_at")
659+
Long returnedAt;
660+
657661
/**
658662
* Result of cardholder's attempt to return the product.
659663
*
@@ -662,10 +666,6 @@ public static class MerchandiseNotAsDescribed extends StripeObject {
662666
@SerializedName("return_status")
663667
String returnStatus;
664668

665-
/** Date when the product was returned or attempted to be returned. */
666-
@SerializedName("returned_at")
667-
Long returnedAt;
668-
669669
/** Get ID of expandable {@code additionalDocumentation} object. */
670670
public String getAdditionalDocumentation() {
671671
return (this.additionalDocumentation != null) ? this.additionalDocumentation.getId() : null;

src/main/java/com/stripe/param/PaymentIntentConfirmParams.java

+7-2
Original file line numberDiff line numberDiff line change
@@ -2062,7 +2062,9 @@ public static class Boleto {
20622062
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
20632063
Map<String, Object> extraParams;
20642064

2065-
/** Uniquely identifies this customer tax_id (CNPJ or CPF). */
2065+
/**
2066+
* The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers).
2067+
*/
20662068
@SerializedName("tax_id")
20672069
String taxId;
20682070

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

2116-
/** Uniquely identifies this customer tax_id (CNPJ or CPF). */
2118+
/**
2119+
* The tax ID of the customer (CPF for individual consumers or CNPJ for businesses
2120+
* consumers).
2121+
*/
21172122
public Builder setTaxId(String taxId) {
21182123
this.taxId = taxId;
21192124
return this;

src/main/java/com/stripe/param/PaymentIntentCreateParams.java

+7-2
Original file line numberDiff line numberDiff line change
@@ -2434,7 +2434,9 @@ public static class Boleto {
24342434
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
24352435
Map<String, Object> extraParams;
24362436

2437-
/** Uniquely identifies this customer tax_id (CNPJ or CPF). */
2437+
/**
2438+
* The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers).
2439+
*/
24382440
@SerializedName("tax_id")
24392441
String taxId;
24402442

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

2488-
/** Uniquely identifies this customer tax_id (CNPJ or CPF). */
2490+
/**
2491+
* The tax ID of the customer (CPF for individual consumers or CNPJ for businesses
2492+
* consumers).
2493+
*/
24892494
public Builder setTaxId(String taxId) {
24902495
this.taxId = taxId;
24912496
return this;

src/main/java/com/stripe/param/PaymentIntentUpdateParams.java

+11-3
Original file line numberDiff line numberDiff line change
@@ -2063,7 +2063,9 @@ public static class Boleto {
20632063
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
20642064
Map<String, Object> extraParams;
20652065

2066-
/** Uniquely identifies this customer tax_id (CNPJ or CPF). */
2066+
/**
2067+
* The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers).
2068+
*/
20672069
@SerializedName("tax_id")
20682070
Object taxId;
20692071

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

2117-
/** Uniquely identifies this customer tax_id (CNPJ or CPF). */
2119+
/**
2120+
* The tax ID of the customer (CPF for individual consumers or CNPJ for businesses
2121+
* consumers).
2122+
*/
21182123
public Builder setTaxId(String taxId) {
21192124
this.taxId = taxId;
21202125
return this;
21212126
}
21222127

2123-
/** Uniquely identifies this customer tax_id (CNPJ or CPF). */
2128+
/**
2129+
* The tax ID of the customer (CPF for individual consumers or CNPJ for businesses
2130+
* consumers).
2131+
*/
21242132
public Builder setTaxId(EmptyParam taxId) {
21252133
this.taxId = taxId;
21262134
return this;

src/main/java/com/stripe/param/PaymentMethodCreateParams.java

+6-2
Original file line numberDiff line numberDiff line change
@@ -1364,7 +1364,9 @@ public static class Boleto {
13641364
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
13651365
Map<String, Object> extraParams;
13661366

1367-
/** Uniquely identifies this customer tax_id (CNPJ or CPF). */
1367+
/**
1368+
* The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers).
1369+
*/
13681370
@SerializedName("tax_id")
13691371
String taxId;
13701372

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

1416-
/** Uniquely identifies this customer tax_id (CNPJ or CPF). */
1418+
/**
1419+
* The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers).
1420+
*/
14171421
public Builder setTaxId(String taxId) {
14181422
this.taxId = taxId;
14191423
return this;

0 commit comments

Comments
 (0)