-
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.
Merge pull request #352 from Mangopay/feature/twint-payin
[Feature] Twint PayIn
- Loading branch information
Showing
7 changed files
with
112 additions
and
3 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
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 |
---|---|---|
|
@@ -97,7 +97,10 @@ public enum PayInPaymentType { | |
/** | ||
* BANCONTACT payment type | ||
*/ | ||
BCMC | ||
|
||
BCMC, | ||
|
||
/** | ||
* TWINT payment type | ||
*/ | ||
TWINT | ||
} |
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
30 changes: 30 additions & 0 deletions
30
src/main/java/com/mangopay/entities/subentities/PayInPaymentDetailsTwint.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,30 @@ | ||
package com.mangopay.entities.subentities; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import com.mangopay.core.Dto; | ||
import com.mangopay.core.interfaces.PayInPaymentDetails; | ||
|
||
/** | ||
* Class representing the TWINT type for mean of payment in PayIn entity. | ||
*/ | ||
public class PayInPaymentDetailsTwint extends Dto implements PayInPaymentDetails { | ||
|
||
/** | ||
* Max. length: 10 characters; only alphanumeric and spaces | ||
* <p></p> | ||
* Custom description to appear on the user’s bank statement along with the platform name. | ||
* Different banks may show more or less information. See the <a href="https://docs.mangopay.com/bank-statements">Customizing bank statement references</a> article for details. | ||
*/ | ||
@SerializedName("StatementDescriptor") | ||
private String statementDescriptor; | ||
|
||
public String getStatementDescriptor() { | ||
return statementDescriptor; | ||
} | ||
|
||
public PayInPaymentDetailsTwint setStatementDescriptor(String statementDescriptor) { | ||
this.statementDescriptor = statementDescriptor; | ||
return this; | ||
} | ||
|
||
} |
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