-
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.
Amended generateRecurringPaymentRecord to take a Permission object ra…
…ther than using the permission embedded in the transaction, altered transaction queue processor to save RecurringPayment after Permission and Contact, removed contactId and activePermission fields as these were extraneous
- Loading branch information
Showing
6 changed files
with
54 additions
and
61 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 |
---|---|---|
|
@@ -17,8 +17,6 @@ describe('recurring payment entity', () => { | |
recurringPayment.agreementId = 'c9267c6e-573d-488b-99ab-ea18431fc472' | ||
recurringPayment.publicId = '649-213' | ||
recurringPayment.status = 1 | ||
recurringPayment.contactId = 'b3d33cln-2e83-ea11-a811-000d3a649213' | ||
recurringPayment.activePermission = 'a5b24adf-2e83-ea11-a811-000d3a649213' | ||
|
||
recurringPayment.bindToEntity(RecurringPayment.definition.relationships.contact, contact) | ||
recurringPayment.bindToEntity(RecurringPayment.definition.relationships.activePermission, permission) | ||
|
@@ -66,9 +64,7 @@ describe('recurring payment entity', () => { | |
endDate: '2019-12-15T00:00:00Z', | ||
agreementId: 'c9267c6e-573d-488b-99ab-ea18431fc472', | ||
publicId: '649-213', | ||
status: 1, | ||
activePermission: 'a5b24adf-2e83-ea11-a811-000d3a649213', | ||
contactId: 'b3d33cln-2e83-ea11-a811-000d3a649213' | ||
status: 1 | ||
}) | ||
) | ||
}) | ||
|
@@ -93,8 +89,6 @@ describe('recurring payment entity', () => { | |
defra_agreementid: 'c9267c6e-573d-488b-99ab-ea18431fc472', | ||
defra_publicid: '649-213', | ||
statecode: 1, | ||
_defra_activepermission_value: 'a5b24adf-2e83-ea11-a811-000d3a649213', | ||
_defra_contact_value: 'b3d33cln-2e83-ea11-a811-000d3a649213', | ||
'[email protected]': `$${contact.uniqueContentId}`, | ||
'[email protected]': `$${permission.uniqueContentId}` | ||
}) | ||
|
@@ -121,9 +115,7 @@ describe('recurring payment entity', () => { | |
endDate: '2019-12-15T00:00:00Z', | ||
agreementId: 'c9267c6e-573d-488b-99ab-ea18431fc472', | ||
publicId: '649-213', | ||
status: 1, | ||
activePermission: 'a5b24adf-2e83-ea11-a811-000d3a649213', | ||
contactId: 'b3d33cln-2e83-ea11-a811-000d3a649213' | ||
status: 1 | ||
}) | ||
) | ||
}) | ||
|
@@ -143,8 +135,6 @@ describe('recurring payment entity', () => { | |
defra_agreementid: 'c9267c6e-573d-488b-99ab-ea18431fc472', | ||
defra_publicid: '649-213', | ||
statecode: 1, | ||
_defra_activepermission_value: 'a5b24adf-2e83-ea11-a811-000d3a649213', | ||
_defra_contact_value: 'b3d33cln-2e83-ea11-a811-000d3a649213', | ||
'[email protected]': `$${contact.uniqueContentId}`, | ||
'[email protected]': `$${permission.uniqueContentId}` | ||
}) | ||
|
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