Skip to content

Commit

Permalink
sort out long lines
Browse files Browse the repository at this point in the history
  • Loading branch information
johnduffell committed Aug 6, 2018
1 parent 2676716 commit 82c335d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ object GetIdentityAndZuoraEmailsForAccountsSteps {

def apply(zuoraQuerier: ZuoraQuerier, accountIds: NonEmptyList[AccountId]): ClientFailableOp[List[IdentityAndSFContactAndEmail]] = {

val getEmails: NonEmptyList[GetEmails.ContactId] => ClientFailableOp[Map[GetEmails.ContactId, Option[EmailAddress]]] = GetEmails(zuoraQuerier, _)
val getContacts: NonEmptyList[AccountId] => ClientFailableOp[Map[GetEmails.ContactId, GetContacts.IdentityAndSFContact]] = GetContacts(zuoraQuerier, _)
val getEmails: NonEmptyList[GetEmails.ContactId] => ClientFailableOp[Map[GetEmails.ContactId, Option[EmailAddress]]] =
GetEmails(zuoraQuerier, _)
val getContacts: NonEmptyList[AccountId] => ClientFailableOp[Map[GetEmails.ContactId, GetContacts.IdentityAndSFContact]] =
GetContacts(zuoraQuerier, _)

for {
identityForBillingContact <- getContacts(accountIds)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,13 @@ object EndToEndTest {
| "done": true
|}""".stripMargin.replaceAll("""\n""", "")

val sfAuthReq = """client_id=clientsfclient&client_secret=clientsecretsfsecret&username=usernamesf&password=passSFpasswordtokentokenSFtoken&grant_type=password"""
val sfAuthReq =
"client_id=clientsfclient&" +
"client_secret=clientsecretsfsecret&" +
"username=usernamesf&" +
"password=passSFpasswordtokentokenSFtoken&" +
"grant_type=password"

val sfAuthResponse = """{"access_token":"aaaccess", "instance_url":"https://iinstance"}"""

val updateAccountRequestBody = """{"crmId":"sfacc","sfContactId__c":"newSFCont","IdentityId__c":"identest"}"""
Expand Down

0 comments on commit 82c335d

Please sign in to comment.