-
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
8 changed files
with
99 additions
and
23 deletions.
There are no files selected for viewing
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
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
20 changes: 0 additions & 20 deletions
20
src/main/java/io/github/jpdev/asaassdk/rest/payment/split/Split.java
This file was deleted.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
src/main/java/io/github/jpdev/asaassdk/rest/paymentsplit/PaymentSplitPaidReader.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,17 @@ | ||
package io.github.jpdev.asaassdk.rest.paymentsplit; | ||
|
||
import io.github.jpdev.asaassdk.http.Domain; | ||
import io.github.jpdev.asaassdk.rest.action.Reader; | ||
|
||
public class PaymentSplitPaidReader extends Reader<Split> { | ||
|
||
@Override | ||
public String getResourceUrl() { | ||
return Domain.PAYMENT_SPLIT_PAID.toString(); | ||
} | ||
|
||
@Override | ||
public Class<Split> getResourceClass() { | ||
return Split.class; | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
src/main/java/io/github/jpdev/asaassdk/rest/paymentsplit/PaymentSplitReceivedReader.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,17 @@ | ||
package io.github.jpdev.asaassdk.rest.paymentsplit; | ||
|
||
import io.github.jpdev.asaassdk.http.Domain; | ||
import io.github.jpdev.asaassdk.rest.action.Reader; | ||
|
||
public class PaymentSplitReceivedReader extends Reader<Split> { | ||
|
||
@Override | ||
public String getResourceUrl() { | ||
return Domain.PAYMENT_SPLIT_RECEIVED.toString(); | ||
} | ||
|
||
@Override | ||
public Class<Split> getResourceClass() { | ||
return Split.class; | ||
} | ||
} |
60 changes: 60 additions & 0 deletions
60
src/main/java/io/github/jpdev/asaassdk/rest/paymentsplit/Split.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,60 @@ | ||
package io.github.jpdev.asaassdk.rest.paymentsplit; | ||
|
||
import java.math.BigDecimal; | ||
|
||
public class Split { | ||
|
||
String id; | ||
String walletId; | ||
BigDecimal fixedValue; | ||
BigDecimal percentualValue; | ||
BigDecimal totalValue; | ||
SplitCancellationReason cancellationReason; | ||
SplitStatus status; | ||
String externalReference; | ||
String description; | ||
|
||
public static PaymentSplitPaidReader paidReader() { | ||
return new PaymentSplitPaidReader(); | ||
} | ||
|
||
public static PaymentSplitReceivedReader receivedReader() { | ||
return new PaymentSplitReceivedReader(); | ||
} | ||
|
||
public String getId() { | ||
return id; | ||
} | ||
|
||
public String getWalletId() { | ||
return walletId; | ||
} | ||
|
||
public BigDecimal getFixedValue() { | ||
return fixedValue; | ||
} | ||
|
||
public BigDecimal getPercentualValue() { | ||
return percentualValue; | ||
} | ||
|
||
public BigDecimal getTotalValue() { | ||
return totalValue; | ||
} | ||
|
||
public SplitCancellationReason getCancellationReason() { | ||
return cancellationReason; | ||
} | ||
|
||
public SplitStatus getStatus() { | ||
return status; | ||
} | ||
|
||
public String getExternalReference() { | ||
return externalReference; | ||
} | ||
|
||
public String getDescription() { | ||
return description; | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...ayment/split/SplitCancellationReason.java → ...paymentsplit/SplitCancellationReason.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
2 changes: 1 addition & 1 deletion
2
...assdk/rest/payment/split/SplitStatus.java → ...aassdk/rest/paymentsplit/SplitStatus.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