Skip to content

Commit

Permalink
feat: payment split fetcher
Browse files Browse the repository at this point in the history
  • Loading branch information
jpdev01 committed Dec 8, 2024
1 parent 6fae320 commit 53e7b95
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
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;
}
}
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;
}
}

0 comments on commit 53e7b95

Please sign in to comment.