Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,28 @@ fragment ClaimFragment on Claim {
displayValue
}
}

fragment PartnerClaimFragment on PartnerClaim {
id
status
submittedAt
displayItems {
displayTitle
displayValue
}
claimType
associatedTypeOfContract
payoutAmount {
...MoneyFragment
}
handlerEmail
exposureDisplayName
productVariant {
typeOfContract
displayName
documents {
type
url
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -198,19 +198,6 @@ input BrowserInfo {
timeZoneOffset: Int!
javaEnabled: Boolean!
}
"""
Yearly savings from bundle discount
"""
type BundleYearlySavings {
"""
Total yearly savings amount from bundle discount
"""
amount: Money!
"""
Whether the bundle discount covers the full period (true) or has pending/future items (false)
"""
bundleDiscountCoversFullPeriod: Boolean!
}
type CampaignDiscount {
"""
The type of discount, determines the relevancy of the other fields.
Expand Down Expand Up @@ -289,10 +276,6 @@ type CartBundleDiscountInfo {
Number of products in cart that are eligible for bundle discount
"""
eligibleProductCount: Int
"""
Yearly savings from bundle discount
"""
yearlySavings: BundleYearlySavings!
}
type CartCost {
"""
Expand Down Expand Up @@ -635,6 +618,7 @@ Root type expressing the entire flow for members trying to report a new claim.
type ClaimIntent {
id: ID!
currentStep: ClaimIntentStep!
sourceMessages: [ClaimIntentSourceMessage!]
}
input ClaimIntentFormSubmitInputField {
fieldId: ID!
Expand All @@ -644,6 +628,17 @@ type ClaimIntentMutationOutput {
intent: ClaimIntent
userError: UserError
}
type ClaimIntentSourceMessage {
id: ID!
text: String!
}
input ClaimIntentStartInput {
"""
Optionally inject a chat message ID to start the claim intent from. This will replace the audio recording
as the first step, using the chat history as the implicit first step.
"""
sourceMessageId: ID
}
"""
Represents a single step in the claim submission flow.
Steps have some universally shared properties, as well as variable `content` which comes in many different
Expand All @@ -657,7 +652,7 @@ type ClaimIntentStep {
"""
A union of all the different kinds of "step content".
"""
union ClaimIntentStepContent = ClaimIntentStepContentForm|ClaimIntentStepContentTask|ClaimIntentStepContentAudioRecording|ClaimIntentStepContentSummary
union ClaimIntentStepContent = ClaimIntentStepContentForm|ClaimIntentStepContentTask|ClaimIntentStepContentAudioRecording|ClaimIntentStepContentSummary|ClaimIntentStepContentOutcome
"""
An audio recording step is one where the user is meant to record some audio.
Submitted using `Mutation.claimIntentSubmitAudio`.
Expand Down Expand Up @@ -735,6 +730,13 @@ This typically will be backed by a String - but other formats could appear.
"""
scalar ClaimIntentStepContentFormFieldValue
"""
A step that shows the outcome of a claim intent.
This is a terminal step - there is no way to submit it.
"""
type ClaimIntentStepContentOutcome {
claimId: ID!
}
"""
A read-only step where the entire claim intent information is displayed before submitting.
Submitted using `Mutation.claimIntentSubmitSummary`.
"""
Expand All @@ -748,6 +750,8 @@ type ClaimIntentStepContentSummaryAudioRecording {
}
type ClaimIntentStepContentSummaryFileUpload {
url: Url!
contentType: String!
fileName: String!
}
type ClaimIntentStepContentSummaryItem {
title: String!
Expand Down Expand Up @@ -1893,6 +1897,8 @@ type Member {
claims: [Claim!]!
claimsActive: [Claim!]!
claimsHistory: [Claim!]!
partnerClaimsActive: [PartnerClaim!]!
partnerClaimsHistory: [PartnerClaim!]!
firstName: String!
lastName: String!
ssn: String
Expand Down Expand Up @@ -1949,6 +1955,11 @@ type Member {
"""
crossSellV2(input: CrossSellInput!): CrossSellV2!
"""
Young Pet Guide stories for the member.
Returns a list of educational content stories for young pet owners.
"""
puppyGuideStories: [PuppyGuideStory!]!
"""
Fetch all the active contracts for this member. Active contracts include all insurances that are either
active today, or to-be-active in the future.
"""
Expand Down Expand Up @@ -2137,6 +2148,7 @@ input MemberLogDeviceInput {
os: String!
brand: String!
model: String!
pushNotificationEnabled: Boolean
}
"""
Container for mutations that refer to the currently authenticated member.
Expand Down Expand Up @@ -2694,7 +2706,7 @@ type Mutation {
"""
Create or (reuse and existing) unsubmitted claim intent.
"""
claimIntentStart: ClaimIntent!
claimIntentStart(input: ClaimIntentStartInput): ClaimIntent!
"""
Submit a step containing a `ClaimIntentStepContentForm`.
"""
Expand Down Expand Up @@ -2822,6 +2834,10 @@ type Mutation {
"""
productOfferAddonsSelect(productOfferId: UUID!, addonIds: [UUID!]!): ProductOffersMutationOutput!
"""
Mark a young pet guide story as read for a specific member.
"""
puppyGuideEngagement(engagement: PuppyEngagementInput!): PuppyGuideStoryMutationOutput!
"""
Update the customer of the shop session. Only non-null fields will be changed.
Can trigger automatic lookup of other information.
The session can be placed in a "point of no return" state where it is no longer legal to update the customer,
Expand Down Expand Up @@ -2900,6 +2916,22 @@ type Mutation {
"""
upsellTravelAddonActivate(quoteId: ID!, addonId: ID!): UpsellTravelAddonActivationOutput!
}
type PartnerClaim {
id: ID!
externalId: String!
exposureDisplayName: String
status: ClaimStatus
submittedAt: Date!
payoutAmount: Money
associatedTypeOfContract: String
claimType: String
handlerEmail: String
displayItems: [ClaimDisplayItem!]!
"""
Terms & conditions for the claim found using claims contractId and dateOfOccurrence, otherwise null.
"""
productVariant: ProductVariant
}
type PartnerData {
sas: SasPartnerData
}
Expand Down Expand Up @@ -3405,13 +3437,61 @@ type ProductVariantComparisonRow {
"""
covered: [String!]!
}
input PuppyEngagementInput {
name: String!
rating: Int
opened: Boolean
read: Boolean
closed: Boolean
}
type PuppyGuideStory {
"""
The unique name/identifier of the story.
"""
name: String!
"""
The display title of the story.
"""
title: String!
"""
The subtitle or description of the story.
"""
subtitle: String!
"""
The main content of the story.
"""
content: String!
"""
The image associated with this story.
"""
image: String!
"""
Categories this story belongs to.
"""
categories: [String!]!
"""
The date when the story was marked as read by the user.
"""
read: Boolean!
"""
The user's rating of the story.
"""
rating: Int
}
type PuppyGuideStoryMutationOutput {
"""
Indicates whether the mutation was successful.
"""
success: Boolean!
}
type Query {
"""
Return a conversation for a given ID.
Note that this can return null if `Mutation.conversationStart` has not been called with this ID.
"""
conversation(id: UUID!): Conversation
claim(id: ID!): Claim
partnerClaim(id: ID!): PartnerClaim
claimIntent(id: ID!): ClaimIntent!
personalInformation(input: PersonalInformationInput!): PersonalInformation
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@
<string name="CLAIMS_USE_AUDIO_RECORDING">Gör röstinspelning</string>
<string name="CLAIMS_USE_TEXT_INSTEAD">Beskriv i text</string>
<string name="CLAIMS_YOUR_CLAIM">Din skadeanmälan</string>
<string name="CLAIM_DETAILS_DATE_OF_ACCIDENT">Händelsedatum</string>
<string name="CLAIM_TRIAGING_ABOUT_TITILE">Vilken försäkring gäller det?</string>
<string name="CLAIM_TRIAGING_NAVIGATION_TITLE">Vad gäller ditt ärende?</string>
<string name="CLAIM_TRIAGING_TITLE">Berätta vad som hände</string>
Expand Down Expand Up @@ -399,6 +400,7 @@
<string name="INVALID_NATIONAL_IDENTITY_NUMBER">Invalid National Identity Number</string>
<string name="KEY_GEAR_ITEM_VIEW_VALUATION_BODY">Vi försöker reparera i första hand, men om din %1$s skulle behöva ersättas helt (ex. om den blivit stulen) ersätts du med **%2$d\u0025** av inköpspriset **%3$d kr**, alltså **%4$d kr**.</string>
<string name="KEY_GEAR_ITEM_VIEW_VALUATION_PAGE_TITLE">Värdering</string>
<string name="LETTER_TO_EIR_SUBJECT">Fråga angående skadeanmälan - Fordon reg. %1$s</string>
<string name="LOGIN_MARKET_PICKER_PREFERENCES">Välj land och språk</string>
<string name="LOGOUT_BUTTON">Logga ut</string>
<string name="MARKETING_GET_HEDVIG">Få ett prisförslag</string>
Expand Down Expand Up @@ -706,7 +708,7 @@
<string name="TERMINATION_FLOW_AUTO_CANCEL_TITLE">Vi avslutar din försäkring automatiskt</string>
<string name="TERMINATION_FLOW_AUTO_DECOM_COSTS_INFO">Du kommer att få ett bekräftelsemail på din avställningsförsäkring inom några dagar, där du kommer att se ditt nya pris.</string>
<string name="TERMINATION_FLOW_AUTO_DECOM_COSTS_TITLE">Vad kostar det</string>
<string name="TERMINATION_FLOW_AUTO_DECOM_COVERED_INFO">Försäkringen ersätter skador såsom stöld, brand, skadegörelse och karosskada medan bilen är avställd. Rättsskydd ingår också, så länge bilen stannar i Sverige.</string>
<string name="TERMINATION_FLOW_AUTO_DECOM_COVERED_INFO">Försäkringen ersätter skador såsom stöld, brand, skadegörelse och vagnskada medan bilen är avställd. Rättsskydd ingår också. Försäkringen gäller endast så länge bilen är kvar i Sverige.</string>
<string name="TERMINATION_FLOW_AUTO_DECOM_COVERED_TITLE">Vad som ingår</string>
<string name="TERMINATION_FLOW_AUTO_DECOM_INFO">Om du har ställt av din bil via Transportstyrelsen kommer din bilförsäkring automatiskt övergå till en avställningsförsäkring.</string>
<string name="TERMINATION_FLOW_AUTO_DECOM_NOTIFICATION">Vill du inte behålla din avställningsförsäkring kan du enkelt säga upp den nedan.</string>
Expand Down Expand Up @@ -824,6 +826,7 @@
<string name="claim.status_bar.closed">Stängt</string>
<string name="claim_history.empty_state.body">Dina tidigare skador visas här automatiskt efter att de har hanterats.</string>
<string name="claim_history.empty_state.title">Ingen skadehistorik</string>
<string name="claim_outcome_null">Ditt skadeärende har stängts.</string>
<string name="claim_outcome_unresponsive_support_text">Ditt skadeärende har stängts eftersom vi inte har fått någon återkoppling från dig. Se konversation för mer information.</string>
<string name="claim_status.being_handled.support_text">Din skadeanmälan granskas av en av våra försäkringsspecialister. Vi hör av oss snart med en uppdatering.</string>
<string name="claim_status.being_handled_reopened.support_text">Vi har återöppnat din skadeanmälan och en av våra försäkringsspecialister granskar den. Vi hör av oss snart med en uppdatering.</string>
Expand Down Expand Up @@ -853,6 +856,7 @@
<string name="claim_status_detail.missing_receipt">Kvitto saknas</string>
<string name="claim_status_detail.submitted">Inskickat</string>
<string name="claim_status_detail.uploaded_files_info_title">Uppladdade filer</string>
<string name="claim_status_detail_email">Ta kontakt med skadeteamet</string>
<string name="claims.alert.body">Om du avslutar går du tillbaka till startsidan och dina inmatade uppgifter kommer att gå förlorade.</string>
<string name="claims.continue.button">Fortsätt</string>
<string name="claims.edit.button">Edit</string>
Expand Down
6 changes: 5 additions & 1 deletion app/core/core-resources/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@
<string name="CLAIMS_USE_AUDIO_RECORDING">Use voice recording</string>
<string name="CLAIMS_USE_TEXT_INSTEAD">Describe using text</string>
<string name="CLAIMS_YOUR_CLAIM">Your claim</string>
<string name="CLAIM_DETAILS_DATE_OF_ACCIDENT">Date of occurrence</string>
<string name="CLAIM_TRIAGING_ABOUT_TITILE">What insurance is it about?</string>
<string name="CLAIM_TRIAGING_NAVIGATION_TITLE">What does your claim concern?</string>
<string name="CLAIM_TRIAGING_TITLE">Tell us what happened</string>
Expand Down Expand Up @@ -399,6 +400,7 @@
<string name="INVALID_NATIONAL_IDENTITY_NUMBER">Invalid National Identity Number</string>
<string name="KEY_GEAR_ITEM_VIEW_VALUATION_BODY">We first try to repair your %1$s, but if it needs to be replaced (e.g. if it was stolen) you will be compensated **%2$d\u0025** of the purchase price **%3$d SEK**, i.e **%4$d SEK**.</string>
<string name="KEY_GEAR_ITEM_VIEW_VALUATION_PAGE_TITLE">Valuation</string>
<string name="LETTER_TO_EIR_SUBJECT">Question regarding claim, Vehicle reg. %1$s</string>
<string name="LOGIN_MARKET_PICKER_PREFERENCES">Preferences</string>
<string name="LOGOUT_BUTTON">Logout</string>
<string name="MARKETING_GET_HEDVIG">Get a price quote</string>
Expand Down Expand Up @@ -706,7 +708,7 @@
<string name="TERMINATION_FLOW_AUTO_CANCEL_TITLE">We’ll cancel your insurance automatically</string>
<string name="TERMINATION_FLOW_AUTO_DECOM_COSTS_INFO">You’ll receive a confirmation email within a few days, where you can see your new price.</string>
<string name="TERMINATION_FLOW_AUTO_DECOM_COSTS_TITLE">What it costs</string>
<string name="TERMINATION_FLOW_AUTO_DECOM_COVERED_INFO">The insurance covers damage such as theft, fire, vandalism, and body damage while the car is decommissioned. Legal protection is also included, as long as the car remains in Sweden.</string>
<string name="TERMINATION_FLOW_AUTO_DECOM_COVERED_INFO">The insurance covers damage such as theft, fire, vandalism, and body damage while the car is decommissioned. Legal protection is also included. The insurance is only valid as long as the car remains in Sweden.</string>
<string name="TERMINATION_FLOW_AUTO_DECOM_COVERED_TITLE">What’s covered</string>
<string name="TERMINATION_FLOW_AUTO_DECOM_INFO">If you’ve decommissioned your car through Transportstyrelsen, your car insurance will automatically switch to decommission insurance.</string>
<string name="TERMINATION_FLOW_AUTO_DECOM_NOTIFICATION">If you don’t want to keep your decommission insurance, you can cancel it below.</string>
Expand Down Expand Up @@ -824,6 +826,7 @@
<string name="claim.status_bar.closed">Closed</string>
<string name="claim_history.empty_state.body">Your past claims will appear here automatically once processed.</string>
<string name="claim_history.empty_state.title">No claims in history</string>
<string name="claim_outcome_null">Your claim was closed.</string>
<string name="claim_outcome_unresponsive_support_text">Your claim was closed as we didn’t hear back from you. Please see conversation for more details.</string>
<string name="claim_status.being_handled.support_text">Your claim is being reviewed by one of our insurance specialists. We\'ll get back to you soon with an update.</string>
<string name="claim_status.being_handled_reopened.support_text">We have reopened your claim and one of our insurance specialists is reviewing it. We\'ll get back to you soon with an update.</string>
Expand Down Expand Up @@ -853,6 +856,7 @@
<string name="claim_status_detail.missing_receipt">Receipt missing</string>
<string name="claim_status_detail.submitted">Submitted</string>
<string name="claim_status_detail.uploaded_files_info_title">Uploaded files</string>
<string name="claim_status_detail_email">Contact the claims team</string>
<string name="claims.alert.body">If you exit, you\'ll go back to the start page and your inputted data will be lost.</string>
<string name="claims.continue.button">Continue</string>
<string name="claims.edit.button">Edit</string>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ query Claim($claimId: ID!) {
unreadMessageCount
}
}
partnerClaim(id: $claimId) {
...PartnerClaimFragment
}
}
Loading
Loading