-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #252 from mercadopago/feature/fine-discount-and-3ds
Improvements for boleto (fees, fines and discount) and credit card payments (3DS 2.0)
- Loading branch information
Showing
27 changed files
with
1,072 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,4 @@ repos: | |
- id: checkstyle | ||
args: | ||
- -c | ||
- .code_quality/checkstyle_rules.xml | ||
- .code_quality/checkstyle_rules.xml |
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
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
13 changes: 13 additions & 0 deletions
13
src/main/java/com/mercadopago/client/payment/PaymentDataRequest.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,13 @@ | ||
package com.mercadopago.client.payment; | ||
|
||
import lombok.Builder; | ||
import lombok.Getter; | ||
|
||
/** PaymentDataRequest class. */ | ||
@Getter | ||
@Builder | ||
public class PaymentDataRequest { | ||
|
||
/** Rules. */ | ||
private final PaymentRulesRequest rules; | ||
} |
21 changes: 21 additions & 0 deletions
21
src/main/java/com/mercadopago/client/payment/PaymentDiscountRequest.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,21 @@ | ||
package com.mercadopago.client.payment; | ||
|
||
import java.math.BigDecimal; | ||
import java.time.LocalDate; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
|
||
/** PaymentDiscountRequest class. */ | ||
@Getter | ||
@Builder | ||
public class PaymentDiscountRequest { | ||
|
||
/** Discount type. */ | ||
private String type; | ||
|
||
/** Discount value. */ | ||
private BigDecimal value; | ||
|
||
/** Discount Limit Date. */ | ||
private LocalDate limitDate; | ||
} |
17 changes: 17 additions & 0 deletions
17
src/main/java/com/mercadopago/client/payment/PaymentFeeRequest.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 com.mercadopago.client.payment; | ||
|
||
import java.math.BigDecimal; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
|
||
/** PaymentFeeRequest class. */ | ||
@Getter | ||
@Builder | ||
public class PaymentFeeRequest { | ||
|
||
/** Fee type. */ | ||
private String type; | ||
|
||
/** Fee value. */ | ||
private BigDecimal value; | ||
} |
13 changes: 13 additions & 0 deletions
13
src/main/java/com/mercadopago/client/payment/PaymentMethodRequest.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,13 @@ | ||
package com.mercadopago.client.payment; | ||
|
||
import lombok.Builder; | ||
import lombok.Getter; | ||
|
||
/** PaymentMethodRequest class. */ | ||
@Getter | ||
@Builder | ||
public class PaymentMethodRequest { | ||
|
||
/** Data. */ | ||
private final PaymentDataRequest data; | ||
} |
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: 20 additions & 0 deletions
20
src/main/java/com/mercadopago/client/payment/PaymentRulesRequest.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,20 @@ | ||
package com.mercadopago.client.payment; | ||
|
||
import java.util.List; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
|
||
/** PaymentRulesRequest class. */ | ||
@Getter | ||
@Builder | ||
public class PaymentRulesRequest { | ||
|
||
/** Discounts. */ | ||
private List<PaymentDiscountRequest> discounts; | ||
|
||
/** Fine. */ | ||
private PaymentFeeRequest fine; | ||
|
||
/** Interest. */ | ||
private PaymentFeeRequest interest; | ||
} |
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
11 changes: 11 additions & 0 deletions
11
src/main/java/com/mercadopago/resources/payment/PaymentData.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,11 @@ | ||
package com.mercadopago.resources.payment; | ||
|
||
import lombok.Getter; | ||
|
||
/** PaymentData class. */ | ||
@Getter | ||
public class PaymentData { | ||
|
||
/** PaymentRules. */ | ||
private PaymentRules rules; | ||
} |
19 changes: 19 additions & 0 deletions
19
src/main/java/com/mercadopago/resources/payment/PaymentDiscount.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,19 @@ | ||
package com.mercadopago.resources.payment; | ||
|
||
import java.math.BigDecimal; | ||
import java.time.LocalDate; | ||
import lombok.Getter; | ||
|
||
/** PaymentDiscount class. */ | ||
@Getter | ||
public class PaymentDiscount { | ||
|
||
/** Discount type. */ | ||
private String type; | ||
|
||
/** Discount value. */ | ||
private BigDecimal value; | ||
|
||
/** Discount Limit Date. */ | ||
private LocalDate limitDate; | ||
} |
15 changes: 15 additions & 0 deletions
15
src/main/java/com/mercadopago/resources/payment/PaymentFee.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,15 @@ | ||
package com.mercadopago.resources.payment; | ||
|
||
import java.math.BigDecimal; | ||
import lombok.Getter; | ||
|
||
/** PaymentFee class. */ | ||
@Getter | ||
public class PaymentFee { | ||
|
||
/** Fee type. */ | ||
private String type; | ||
|
||
/** Fee value. */ | ||
private BigDecimal value; | ||
} |
11 changes: 11 additions & 0 deletions
11
src/main/java/com/mercadopago/resources/payment/PaymentMethod.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,11 @@ | ||
package com.mercadopago.resources.payment; | ||
|
||
import lombok.Getter; | ||
|
||
/** PaymentMethod class. */ | ||
@Getter | ||
public class PaymentMethod { | ||
|
||
/** PaymentData. */ | ||
private PaymentData data; | ||
} |
18 changes: 18 additions & 0 deletions
18
src/main/java/com/mercadopago/resources/payment/PaymentRules.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,18 @@ | ||
package com.mercadopago.resources.payment; | ||
|
||
import java.util.List; | ||
import lombok.Getter; | ||
|
||
/** PaymentRules class. */ | ||
@Getter | ||
public class PaymentRules { | ||
|
||
/** Discounts. */ | ||
private List<PaymentDiscount> discounts; | ||
|
||
/** Fine. */ | ||
private PaymentFee fine; | ||
|
||
/** Interest. */ | ||
private PaymentFee interest; | ||
} |
13 changes: 13 additions & 0 deletions
13
src/main/java/com/mercadopago/resources/payment/PaymentThreeDSInfo.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,13 @@ | ||
package com.mercadopago.resources.payment; | ||
|
||
import lombok.Getter; | ||
|
||
/** 3DS Info. */ | ||
@Getter | ||
public class PaymentThreeDSInfo { | ||
/** External Resource Url. */ | ||
private String externalResourceUrl; | ||
|
||
/** creq. */ | ||
private String creq; | ||
} |
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
Oops, something went wrong.