Skip to content

Commit

Permalink
fix getPaymentServicetokens
Browse files Browse the repository at this point in the history
  • Loading branch information
phillipgr4vy committed Jul 8, 2024
1 parent 6410c75 commit bc38892
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/gr4vy/sdk/Gr4vyClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -622,9 +622,9 @@ public PaymentServiceToken newPaymentServiceToken(String paymentMethodId, Paymen
return this.gson.fromJson(response, PaymentServiceToken.class);
}

public PaymentServiceToken getPaymentServiceTokens(String paymentMethodId) {
public PaymentServiceTokens getPaymentServiceTokens(String paymentMethodId) {
String response = this.get("/payment-methods/" + paymentMethodId + "/payment-service-tokens");
return this.gson.fromJson(response, PaymentServiceToken.class);
return this.gson.fromJson(response, PaymentServiceTokens.class);
}

public boolean deletePaymentServiceToken(String paymentMethodId, String paymentServiceTokenId) {
Expand Down

0 comments on commit bc38892

Please sign in to comment.