-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update order complete page RCP logic (#2096)
https://eaflood.atlassian.net/browse/IWTF-4265 Now that the recurring payment status is saved to the CRM, we can use that data to conditionally display content relating to recurring payments.
- Loading branch information
1 parent
e00aea1
commit 65976fb
Showing
4 changed files
with
38 additions
and
25 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 |
---|---|---|
|
@@ -18,6 +18,7 @@ describe('permission entity', () => { | |
defra_stagingid: '71ad9a25-2a03-406b-a0e3-f4ff37799374', | ||
defra_datasource: 910400003, | ||
defra_renewal: true, | ||
defra_rcpagreement: false, | ||
defra_licenceforyou: 1 | ||
}, | ||
optionSetData | ||
|
@@ -32,6 +33,7 @@ describe('permission entity', () => { | |
stagingId: '71ad9a25-2a03-406b-a0e3-f4ff37799374', | ||
dataSource: expect.objectContaining({ id: 910400003, label: 'Web Sales', description: 'Web Sales' }), | ||
isRenewal: true, | ||
isRecurringPayment: false, | ||
isLicenceForYou: expect.objectContaining({ id: 1, label: 'Yes', description: 'Yes' }) | ||
} | ||
|
||
|
@@ -76,6 +78,7 @@ describe('permission entity', () => { | |
permission.stagingId = '71ad9a25-2a03-406b-a0e3-f4ff37799374' | ||
permission.dataSource = optionSetData.defra_datasource.options['910400003'] | ||
permission.isRenewal = true | ||
permission.isRecurringPayment = false | ||
permission.isLicenceForYou = optionSetData.defra_islicenceforyou.options['1'] | ||
|
||
permission.bindToEntity(Permission.definition.relationships.licensee, contact) | ||
|
@@ -97,7 +100,8 @@ describe('permission entity', () => { | |
'[email protected]': `$${contact.uniqueContentId}`, | ||
'[email protected]': `$${transaction.uniqueContentId}`, | ||
'[email protected]': `$${poclFile.uniqueContentId}`, | ||
defra_renewal: true | ||
defra_renewal: true, | ||
defra_rcpagreement: false | ||
}) | ||
) | ||
}) | ||
|
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