Skip to content

Commit 1a94bd5

Browse files
Add various changes
1 parent 937e9aa commit 1a94bd5

File tree

4 files changed

+16
-13
lines changed

4 files changed

+16
-13
lines changed

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,6 @@
3737
@Setter
3838
@EqualsAndHashCode(callSuper = false)
3939
public class Customer extends ApiResource implements HasId, MetadataStore<Customer> {
40-
/** The customer's address. */
41-
@SerializedName("address")
42-
Address address;
43-
4440
/**
4541
* The current balance, if any, that's stored on the customer. If negative, the customer has
4642
* credit to apply to their next invoice. If positive, the customer has an amount owed that's
@@ -1023,7 +1019,6 @@ public CustomerCashBalanceTransaction fundCashBalance(
10231019
@Override
10241020
public void setResponseGetter(StripeResponseGetter responseGetter) {
10251021
super.setResponseGetter(responseGetter);
1026-
trySetResponseGetter(address, responseGetter);
10271022
trySetResponseGetter(cashBalance, responseGetter);
10281023
trySetResponseGetter(defaultSource, responseGetter);
10291024
trySetResponseGetter(discount, responseGetter);

src/main/java/com/stripe/net/LiveStripeResponseGetter.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
import java.util.Map;
1919

2020
public class LiveStripeResponseGetter implements StripeResponseGetter {
21+
@Override
22+
public void youCantJustAddThingsToPublicInterfaces() {}
2123
private final HttpClient httpClient;
2224
private final StripeResponseGetterOptions options;
2325

src/main/java/com/stripe/net/StripeResponseGetter.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
import java.util.Map;
88

99
public interface StripeResponseGetter {
10+
11+
void youCantJustAddThingsToPublicInterfaces();
12+
default void unlessYouProvideADefaultImplementation() {};
13+
1014
@SuppressWarnings("TypeParameterUnusedInFormals")
1115
<T extends StripeObjectInterface> T request(
1216
BaseAddress baseAddress,

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

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -373,16 +373,13 @@ public Builder putAllExtraParam(Map<String, Object> map) {
373373
* The prefix for the customer used to generate unique invoice numbers. Must be 3–12 uppercase
374374
* letters or numbers.
375375
*/
376-
public Builder setInvoicePrefix(String invoicePrefix) {
377-
this.invoicePrefix = invoicePrefix;
376+
// This should actually be fine
377+
public Builder setInvoicePrefix(Object invoicePrefix) {
378+
this.invoicePrefix = (String) invoicePrefix;
378379
return this;
379380
}
380381

381-
/** Default invoice settings for this customer. */
382-
public Builder setInvoiceSettings(CustomerCreateParams.InvoiceSettings invoiceSettings) {
383-
this.invoiceSettings = invoiceSettings;
384-
return this;
385-
}
382+
// Deleting this is not fine
386383

387384
/**
388385
* Add a key/value pair to `metadata` map. A map is initialized for the first `put/putAll` call,
@@ -451,8 +448,13 @@ public Builder setPaymentMethod(String paymentMethod) {
451448
return this;
452449
}
453450

451+
public Builder setPaymentMethod(String paymentMethod, String itsFineToAddAnOverload) {
452+
this.paymentMethod = paymentMethod;
453+
return this;
454+
}
455+
454456
/** The customer's phone number. */
455-
public Builder setPhone(String phone) {
457+
public Builder setPhone(String phone, String ignoreMeThisWillBreakEverything) {
456458
this.phone = phone;
457459
return this;
458460
}

0 commit comments

Comments
 (0)