isRenewal
was not passing to the rating worker in the regeneration logic. Added an event flag that's passed to the rating worker to depict which event is invoking the worker.isRenewal
flag and policy
object into the ratings worker. The policy object is present if a quote is created for a renewal and is the policy that it is renewed from.GET /quotes?policyId=<policyId>
/policies/by-date
for the ability to query policies windowed by day with an optional key. Reference/policies/:policyId
endpoint. This is a breakdown of claim line items and how they impact the different coverages on a policy. Referenceuploads
to the /policies
and /policies/:policyId
endpoints to return policy uploadsevidences
to the /claims
and /claims/:claimId
endpoints to return claim evidencesrefundLeftoverAmount
. See documentation here/claims
POST to allow optional metadata in the body/claims/:claimId
endpoint to allow updating a claimlastUpdatedBy
in response bodysort[acs]=createdAt
or sort[desc]=createdAt
/tasks
and /tasks/:taskId
. Useful for creating internal workflow integrations. See the documentation hereoldPolicy
in the invoice worker on term recalculation.suppression
flag in responses from the API. Suppressions work off of GDPR policies. Additionally a new gdpr.delete policy has been created for the ability to manage suppressionsrecalculation-of-terms
returnPremium
, additionalPremium
, and premium
. The new premium
value is the sum of term premium plus any additional and/or return premiumreturnPremium
, additionalPremium
, and premium
effectiveDate
and termEndDate
into the recalulation of termscreatedBy
, createdAt
, lastUpdatedMessage
updatedAt
fields in all queried documents and webhook events/products/:productId/generate-rating
.pdf
in their title download with proper mime types in some browsersUpgraded to 1.1.0
/metadata/:collection/:documentId
endpoint. View.invoice.overdue
webhook. View.metadata
in quote generation requests in favor of ratingsData
.Quote metadata will be represented as ratingsData in both a quote and a policy. The decision to move away from the metadata namespace was made because of the introduction of metadata across the rest of our collections.
Deprecated POST /quotes/bind
endpoint in favor of /quotes/:quoteId/bind
.
Deprecated GET /quotes/documents/:quoteId
endpoint in favor of /quotes/:quoteId/documents
.
Deprecated POST /policies/cancel
endpoint in favor of /policies/:policyId/cancel
.
Deprecated GET /policies/documents/:policyId
endpoint in favor of /policies/:policyId/documents
.
Deprecated POST /invoices
endpoint in favor of /invoices/:invoiceId
.
Deprecated POST /claims/evidences/:claimId
endpoint in favor of /claims/:claimId/evidence
.
Deprecated POST /products/:productId/test-rating
endpoint in favor of /products/:productId/generate-rating
.
Deprecated POST /products/documents/:productId
endpoint in favor of /products/:productId/documents
.
Upgraded response types in the documentation UI.
Added in metadata
field into GET responses.
Added version selector for API docs.