Skip to content

Commit

Permalink
feat: recuperar uma unica sub conta
Browse files Browse the repository at this point in the history
  • Loading branch information
jpdev01 committed Dec 16, 2023
1 parent dae0fc1 commit c1f8afd
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ public static AccountCreator creator() {
return new AccountCreator();
}

public static AccountFetcher fetcher(String id) {
return new AccountFetcher(id);
}

public String getObject() {
return object;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package io.github.jpdev.asaassdk.rest.accounts;

import io.github.jpdev.asaassdk.http.Domain;
import io.github.jpdev.asaassdk.rest.action.Fetcher;

public class AccountFetcher extends Fetcher<Account> {

private final String id;

public AccountFetcher(String id) {
this.id = id;
}

@Override
public String getResourceUrl() {
return Domain.ACCOUNT.addPathVariable(this.id);
}

@Override
public Class<Account> getResourceClass() {
return Account.class;
}
}

0 comments on commit c1f8afd

Please sign in to comment.