-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
src/main/java/io/github/jpdev/asaassdk/rest/paymentsplit/PaymentSplitPaidFetcher.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package io.github.jpdev.asaassdk.rest.paymentsplit; | ||
|
||
import io.github.jpdev.asaassdk.http.Domain; | ||
import io.github.jpdev.asaassdk.rest.action.Fetcher; | ||
import io.github.jpdev.asaassdk.rest.action.Reader; | ||
|
||
public class PaymentSplitPaidFetcher extends Fetcher<Split> { | ||
|
||
private final String id; | ||
|
||
public PaymentSplitPaidFetcher(String id) { | ||
this.id = id; | ||
} | ||
|
||
@Override | ||
public String getResourceUrl() { | ||
return Domain.PAYMENT_SPLIT_PAID.addPathVariable(this.id); | ||
} | ||
|
||
@Override | ||
public Class<Split> getResourceClass() { | ||
return Split.class; | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
src/main/java/io/github/jpdev/asaassdk/rest/paymentsplit/PaymentSplitReceivedFetcher.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package io.github.jpdev.asaassdk.rest.paymentsplit; | ||
|
||
import io.github.jpdev.asaassdk.http.Domain; | ||
import io.github.jpdev.asaassdk.rest.action.Fetcher; | ||
|
||
public class PaymentSplitReceivedFetcher extends Fetcher<Split> { | ||
|
||
private final String id; | ||
|
||
public PaymentSplitReceivedFetcher(String id) { | ||
this.id = id; | ||
} | ||
|
||
@Override | ||
public String getResourceUrl() { | ||
return Domain.PAYMENT_SPLIT_RECEIVED.addPathVariable(this.id); | ||
} | ||
|
||
@Override | ||
public Class<Split> getResourceClass() { | ||
return Split.class; | ||
} | ||
} |