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
6 changes: 6 additions & 0 deletions src/main/java/com/stripe/model/Customer.java
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,12 @@ public PaymentMethod retrievePaymentMethod(String paymentMethod) throws StripeEx
return retrievePaymentMethod(paymentMethod, (Map<String, Object>) null, (RequestOptions) null);
}

/** Retrieves a PaymentMethod object for a given Customer. */
public PaymentMethod retrievePaymentMethod(String paymentMethod, RequestOptions options)
throws StripeException {
return retrievePaymentMethod(paymentMethod, (Map<String, Object>) null, options);
}

/** Retrieves a PaymentMethod object for a given Customer. */
public PaymentMethod retrievePaymentMethod(String paymentMethod, Map<String, Object> params)
throws StripeException {
Expand Down
7 changes: 0 additions & 7 deletions src/test/java/com/stripe/model/StandardizationTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down