diff --git a/src/main/java/com/stripe/model/Customer.java b/src/main/java/com/stripe/model/Customer.java index b52e19fcba3..cb66ff33ecb 100644 --- a/src/main/java/com/stripe/model/Customer.java +++ b/src/main/java/com/stripe/model/Customer.java @@ -657,6 +657,12 @@ public PaymentMethod retrievePaymentMethod(String paymentMethod) throws StripeEx return retrievePaymentMethod(paymentMethod, (Map) null, (RequestOptions) null); } + /** Retrieves a PaymentMethod object for a given Customer. */ + public PaymentMethod retrievePaymentMethod(String paymentMethod, RequestOptions options) + throws StripeException { + return retrievePaymentMethod(paymentMethod, (Map) null, options); + } + /** Retrieves a PaymentMethod object for a given Customer. */ public PaymentMethod retrievePaymentMethod(String paymentMethod, Map params) throws StripeException { diff --git a/src/test/java/com/stripe/model/StandardizationTest.java b/src/test/java/com/stripe/model/StandardizationTest.java index 6e02f98ae4d..af16b11d7f1 100644 --- a/src/test/java/com/stripe/model/StandardizationTest.java +++ b/src/test/java/com/stripe/model/StandardizationTest.java @@ -87,13 +87,6 @@ public void allNonDeprecatedMethodsTakeOptions() throws IOException, NoSuchMetho continue; } - // Skip `public static Foo retrieve(String id) {...` helper methods - if (String.class.equals(finalParamType) - && parameters.size() == 1 - && method.getName().startsWith("retrieve")) { - continue; - } - // Skip the `public static Card createCard(String id) {...` helper method on Customer. if (String.class.equals(finalParamType) && parameters.size() == 1