-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds query and extensions in statements endpoints
- Loading branch information
1 parent
5647726
commit ed82474
Showing
9 changed files
with
188 additions
and
17 deletions.
There are no files selected for viewing
39 changes: 39 additions & 0 deletions
39
src/main/java/com/checkout/reconciliation/previous/CurrentPeriodBreakdown.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,39 @@ | ||
package com.checkout.reconciliation.previous; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
|
||
@Data | ||
@Builder | ||
public class CurrentPeriodBreakdown { | ||
|
||
@SerializedName("processed_amount") | ||
private Long processedAmount; | ||
|
||
@SerializedName("refund_amount") | ||
private Long refundAmount; | ||
|
||
@SerializedName("chargeback_amount") | ||
private Long chargebackAmount; | ||
|
||
@SerializedName("payouts_to_card_amount") | ||
private Long payoutsToCardAmount; | ||
|
||
@SerializedName("processing_fees") | ||
private Integer processingFees; | ||
|
||
@SerializedName("processing_fees_breakdown") | ||
private ProcessingFeesBreakdown processingFeesBreakdown; | ||
|
||
@SerializedName("rolling_reserve_amount") | ||
private Integer rollingReserveAmount; | ||
|
||
private Integer tax; | ||
|
||
@SerializedName("admin_fees") | ||
private Integer adminFees; | ||
|
||
@SerializedName("general_adjustments") | ||
private Integer generalAdjustments; | ||
} |
9 changes: 9 additions & 0 deletions
9
src/main/java/com/checkout/reconciliation/previous/IncludePayouts.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,9 @@ | ||
package com.checkout.reconciliation.previous; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
|
||
public enum IncludePayouts { | ||
|
||
@SerializedName("payout_breakdown") | ||
PAYOUT_BREAKDOWN, | ||
} |
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
28 changes: 28 additions & 0 deletions
28
src/main/java/com/checkout/reconciliation/previous/ProcessingFeesBreakdown.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,28 @@ | ||
package com.checkout.reconciliation.previous; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
|
||
@Data | ||
@Builder | ||
public class ProcessingFeesBreakdown { | ||
|
||
@SerializedName("interchange_fees") | ||
private Integer interchangeFees; | ||
|
||
@SerializedName("scheme_and_other_network_fees") | ||
private Integer schemeAndOtherNetworkFees; | ||
|
||
@SerializedName("premium_and_apm_fees") | ||
private Integer premiumAndApmFees; | ||
|
||
@SerializedName("chargeback_fees") | ||
private Integer chargebackFees; | ||
|
||
@SerializedName("payout_to_card_fees") | ||
private Integer payoutToCardFees; | ||
|
||
@SerializedName("payment_gateway_fees") | ||
private Integer paymentGatewayFees; | ||
} |
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
25 changes: 25 additions & 0 deletions
25
src/main/java/com/checkout/reconciliation/previous/StatementsQueryFilter.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,25 @@ | ||
package com.checkout.reconciliation.previous; | ||
|
||
import com.checkout.common.Currency; | ||
import com.google.gson.annotations.SerializedName; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
|
||
import java.time.Instant; | ||
|
||
@Data | ||
@Builder | ||
public class StatementsQueryFilter { | ||
|
||
@SerializedName("payout_id") | ||
private String payoutId; | ||
|
||
@SerializedName("payout_currency") | ||
private Currency payoutCurrency; | ||
|
||
private Instant from; | ||
|
||
private Instant to; | ||
|
||
private IncludePayouts include; | ||
} |
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