-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create RP Record in CRM #2081
Create RP Record in CRM #2081
Conversation
https://eaflood.atlassian.net/browse/IWTF-4262 After a successful payment, when the permission is provisioned, a RCP record should be created along with everything else. It shouldn't be created if the RCP toggle is off
… put transaction in a shape accepted by processRecurringPayment. Also modified processRecurringPayment to set publicId to be a hash of the recurring payment id
…o throw errors for invalid dates and refactored
…n be used by processRecurringPayment
…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
}) | ||
|
||
describe('generateRecurringPaymentRecord', () => { | ||
it.each([ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a recipe for suffering, I know, but could we have some tests for leap years and daylight savings?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good reminder, I'd meant to add these but then forgot
...ages/sales-api-service/src/services/transactions/__tests__/process-transaction-queue.spec.js
Outdated
Show resolved
Hide resolved
Quality Gate passedIssues Measures |
https://eaflood.atlassian.net/browse/IWTF-4262
After a successful payment, when the permission is provisioned, a RCP record should be created along with everything else. It shouldn't be created if the RCP toggle is off