-
Notifications
You must be signed in to change notification settings - Fork 52
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
78894da
commit c3a1955
Showing
12 changed files
with
5,983 additions
and
815 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -7,8 +7,6 @@ | |
import com.mastercard.finicity.client.test.utils.AccountUtils; | ||
import org.junit.jupiter.api.Test; | ||
|
||
import static com.mastercard.finicity.client.model.BorrowerType.JOINTBORROWER; | ||
import static com.mastercard.finicity.client.model.BorrowerType.PRIMARY; | ||
import static org.junit.jupiter.api.Assertions.assertEquals; | ||
import static org.junit.jupiter.api.Assertions.assertTrue; | ||
|
||
|
@@ -151,8 +149,8 @@ void generateJointBorrowerConnectUrlTest() { | |
try { | ||
var params = new ConnectJointBorrowerParameters() | ||
.partnerId(PARTNER_ID) | ||
.addBorrowersItem(ModelFactory.newBorrower(PRIMARY, CONSUMER_ID, CUSTOMER_ID)) | ||
.addBorrowersItem(ModelFactory.newBorrower(JOINTBORROWER, CONSUMER_ID, CUSTOMER_ID)); | ||
.addBorrowersItem(ModelFactory.newBorrower("primary", CONSUMER_ID, CUSTOMER_ID)) | ||
.addBorrowersItem(ModelFactory.newBorrower("jointBorrower", CONSUMER_ID, CUSTOMER_ID)); | ||
var connectUrl = api.generateJointBorrowerConnectUrl(params); | ||
var link = connectUrl.getLink(); | ||
assertTrue(link.contains("partnerId=" + PARTNER_ID)); | ||
|
@@ -168,8 +166,8 @@ void sendJointBorrowerConnectEmailTest() { | |
try { | ||
var params = new ConnectJointBorrowerEmailParameters() | ||
.partnerId(PARTNER_ID) | ||
.addBorrowersItem(ModelFactory.newBorrower(PRIMARY, CONSUMER_ID, CUSTOMER_ID)) | ||
.addBorrowersItem(ModelFactory.newBorrower(JOINTBORROWER, CONSUMER_ID, CUSTOMER_ID)) | ||
.addBorrowersItem(ModelFactory.newBorrower("primary", CONSUMER_ID, CUSTOMER_ID)) | ||
.addBorrowersItem(ModelFactory.newBorrower("jointBorrower", CONSUMER_ID, CUSTOMER_ID)) | ||
.email(new EmailOptions().to("[email protected]")); | ||
var connectEmailUrl = api.sendJointBorrowerConnectEmail(params); | ||
var link = connectEmailUrl.getLink(); | ||
|
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.