-
Notifications
You must be signed in to change notification settings - Fork 67
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
1 parent
8e166ef
commit a6ffee5
Showing
47 changed files
with
755 additions
and
236 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
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
30 changes: 30 additions & 0 deletions
30
...ore/src/main/java/com/adyen/core/models/paymentdetails/IssuerSelectionPaymentDetails.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.adyen.core.models.paymentdetails; | ||
|
||
import java.util.Collection; | ||
|
||
/** | ||
* PaymentDetails class for issuer selection. | ||
*/ | ||
public class IssuerSelectionPaymentDetails extends PaymentDetails { | ||
|
||
public static final String ISSUER = "issuer"; | ||
|
||
public IssuerSelectionPaymentDetails(Collection<InputDetail> inputDetails) { | ||
super(inputDetails); | ||
} | ||
|
||
public boolean fillIssuer(final String issuerId) { | ||
for (InputDetail inputDetail: getInputDetails()) { | ||
if (IdealPaymentDetails.IDEAL_ISSUER.equalsIgnoreCase(inputDetail.getKey()) | ||
|| ISSUER.equalsIgnoreCase(inputDetail.getKey())) { | ||
return super.fill(inputDetail.getKey(), issuerId); | ||
} | ||
} | ||
return false; | ||
} | ||
|
||
public boolean fillIssuer(final InputDetail.Item issuerItem) { | ||
return fillIssuer(issuerItem.getId()); | ||
} | ||
|
||
} |
23 changes: 23 additions & 0 deletions
23
adyen-core/src/main/java/com/adyen/core/models/paymentdetails/QiwiWalletPaymentDetails.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,23 @@ | ||
package com.adyen.core.models.paymentdetails; | ||
|
||
import java.util.Collection; | ||
|
||
/** | ||
* PaymentDetails class for Qiwi wallet payments. | ||
*/ | ||
public class QiwiWalletPaymentDetails extends PaymentDetails { | ||
|
||
private static final String QIWI_TELEPHONE_NUMBER_PREFIX = "qiwiwallet.telephoneNumberPrefix"; | ||
private static final String QIWI_TELEPHONE_NUMBER = "qiwiwallet.telephoneNumber"; | ||
|
||
|
||
public QiwiWalletPaymentDetails(Collection<InputDetail> inputDetails) { | ||
super(inputDetails); | ||
} | ||
|
||
public boolean fillTelephoneNumber(final String countryCode, final String telephoneNumber) { | ||
return super.fill(QIWI_TELEPHONE_NUMBER, telephoneNumber) | ||
&& super.fill(QIWI_TELEPHONE_NUMBER_PREFIX, countryCode); | ||
} | ||
|
||
} |
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
Oops, something went wrong.