<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:forest="https://app.forestadmin.com" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_0hdve55" targetNamespace="http://bpmn.io/schema/bpmn" exporter="bpmn-js (https://demo.bpmn.io)" exporterVersion="18.6.1"><bpmn:process id="Process_1s8zutc" isExecutable="false"><bpmn:startEvent id="StartEvent_0b1zhsz" name="Start of workflow"><bpmn:outgoing>Flow__cuttcua</bpmn:outgoing></bpmn:startEvent><bpmn:SequenceFlow id="Flow__cuttcua" sourceRef="StartEvent_0b1zhsz" targetRef="Activity__epyrf4n" /><bpmn:ServiceTask id="Activity__7kgwzy5" name="Load Customer" forest:description="Load the customer related to the chargeback" forest:alternative="load-related-record" forest:automaticCompletion="true"><bpmn:incoming>Flow__atixn20</bpmn:incoming><bpmn:outgoing>Flow__7x9baiv</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__7x9baiv" sourceRef="Activity__7kgwzy5" targetRef="Activity__iltbx8j" /><bpmn:ServiceTask id="Activity__iltbx8j" name="Get country" forest:description="Retrieve the customer&#39;s country" forest:alternative="get-data" forest:automaticCompletion="true"><bpmn:incoming>Flow__7x9baiv</bpmn:incoming><bpmn:outgoing>Flow__lzn9b5a</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__lzn9b5a" sourceRef="Activity__iltbx8j" targetRef="Activity__08fy3ej" /><bpmn:ExclusiveGateway id="Activity__08fy3ej" name="Country?" forest:description="Is the Country part of the EU, or is it the UK or US?" forest:aiDecision="true"><bpmn:incoming>Flow__lzn9b5a</bpmn:incoming><bpmn:outgoing>Flow__29xeh89</bpmn:outgoing><bpmn:outgoing>Flow__es5p9iw</bpmn:outgoing><bpmn:outgoing>Flow__2388k4b</bpmn:outgoing></bpmn:ExclusiveGateway><bpmn:SequenceFlow id="Flow__29xeh89" name="EU" sourceRef="Activity__08fy3ej" targetRef="Activity__j15st68" /><bpmn:SequenceFlow id="Flow__es5p9iw" name="UK" sourceRef="Activity__08fy3ej" targetRef="Activity__rhy4fcg" /><bpmn:SequenceFlow id="Flow__2388k4b" name="US" sourceRef="Activity__08fy3ej" targetRef="Activity__fc16h7x" /><bpmn:UserTask id="Activity__j15st68" name="SFS Path" forest:description="As this is an EU customer, you can simply follow the regular SFS path for this dispute."><bpmn:incoming>Flow__29xeh89</bpmn:incoming><bpmn:outgoing>Flow__8ctz1gj</bpmn:outgoing></bpmn:UserTask><bpmn:SequenceFlow id="Flow__8ctz1gj" sourceRef="Activity__j15st68" targetRef="Activity__c9ynbk4" /><bpmn:endEvent id="Activity__c9ynbk4" name="End"><bpmn:incoming>Flow__8ctz1gj</bpmn:incoming></bpmn:endEvent><bpmn:ServiceTask id="Activity__rhy4fcg" name="Get Adyen dispute" forest:description="Get the dispute associated with the chargeback&#39;s processor dispute id." forest:alternative="mcp-server" forest:mcpServerId="192" forest:automaticExecution="true" forest:automaticCompletion="false"><bpmn:incoming>Flow__es5p9iw</bpmn:incoming><bpmn:outgoing>Flow__4i9uid6</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__4i9uid6" sourceRef="Activity__rhy4fcg" targetRef="Gateway__lfyq794" /><bpmn:endEvent id="Activity__58x8cah" name="End"><bpmn:incoming>Flow__sh0135l</bpmn:incoming></bpmn:endEvent><bpmn:ServiceTask id="Activity__fc16h7x" name="Create Marqeta dispute" forest:description="Create the dispute on Marqeta, using the processor_dispute_id, amount, currency, reason_code, and network.&#10;&#10;You should get a token back, that we&#39;ll use in a subsequent step." forest:alternative="mcp-server" forest:mcpServerId="193" forest:automaticExecution="true" forest:automaticCompletion="true"><bpmn:incoming>Flow__2388k4b</bpmn:incoming><bpmn:outgoing>Flow__j89wasb</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__j89wasb" sourceRef="Activity__fc16h7x" targetRef="Activity__nlf5s99" /><bpmn:endEvent id="Activity__u0c2d1y" name="End"><bpmn:incoming>Flow__rutk2op</bpmn:incoming></bpmn:endEvent><bpmn:ExclusiveGateway id="Gateway__lfyq794" name="Fight or accept?" forest:description="If the evidence URL is present, and there are more than 3 days to the deadline, and the amount is above EUR100, then we should fight the dispute.&#10;&#10;Otherwise, we can just accept it." forest:aiDecision="true"><bpmn:incoming>Flow__4i9uid6</bpmn:incoming><bpmn:outgoing>Flow__otkjmww</bpmn:outgoing><bpmn:outgoing>Flow__6i0ng6p</bpmn:outgoing></bpmn:ExclusiveGateway><bpmn:SequenceFlow id="Flow__otkjmww" name="Fight" sourceRef="Gateway__lfyq794" targetRef="Activity__fylp64j" forest:buttonColor="yellow" /><bpmn:SequenceFlow id="Flow__6i0ng6p" name="Accept" sourceRef="Gateway__lfyq794" targetRef="Activity__phtnb1n" /><bpmn:ServiceTask id="Activity__fylp64j" name="Submit defense" forest:description="Submit the defense" forest:alternative="mcp-server" forest:mcpServerId="192" forest:automaticExecution="true" forest:automaticCompletion="false"><bpmn:incoming>Flow__otkjmww</bpmn:incoming><bpmn:outgoing>Flow__sh0135l</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__sh0135l" sourceRef="Activity__fylp64j" targetRef="Activity__58x8cah" /><bpmn:ServiceTask id="Activity__phtnb1n" name="Accept dispute" forest:description="Accept the dispute" forest:alternative="mcp-server" forest:mcpServerId="192" forest:automaticExecution="true" forest:automaticCompletion="false"><bpmn:incoming>Flow__6i0ng6p</bpmn:incoming><bpmn:outgoing>Flow__kiiqdiz</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__kiiqdiz" sourceRef="Activity__phtnb1n" targetRef="Activity__4nokk0b" /><bpmn:endEvent id="Activity__4nokk0b" name="End"><bpmn:incoming>Flow__kiiqdiz</bpmn:incoming></bpmn:endEvent><bpmn:ServiceTask id="Activity__epyrf4n" name="Get chargeback data" forest:description="Retrieve all the data associated with the chargeback request." forest:alternative="get-data" forest:automaticCompletion="true"><bpmn:incoming>Flow__cuttcua</bpmn:incoming><bpmn:outgoing>Flow__atixn20</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__atixn20" sourceRef="Activity__epyrf4n" targetRef="Activity__7kgwzy5" /><bpmn:ServiceTask id="Activity__nlf5s99" name="Retrieve dispute status" forest:description="Retrieve the current status of a Marqeta dispute by its dispute token." forest:alternative="mcp-server" forest:mcpServerId="193" forest:automaticCompletion="false"><bpmn:incoming>Flow__j89wasb</bpmn:incoming><bpmn:outgoing>Flow__s2m88dh</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__s2m88dh" sourceRef="Activity__nlf5s99" targetRef="Activity__w55kqtm" /><bpmn:UserTask id="Activity__w55kqtm" name="Next steps..." forest:description="Update relevant data in your DB based on the Marqeta data."><bpmn:incoming>Flow__s2m88dh</bpmn:incoming><bpmn:outgoing>Flow__rutk2op</bpmn:outgoing></bpmn:UserTask><bpmn:SequenceFlow id="Flow__rutk2op" sourceRef="Activity__w55kqtm" targetRef="Activity__u0c2d1y" /></bpmn:process><bpmndi:BPMNDiagram id="BPMNDiagram_1"><bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1s8zutc"><bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_0b1zhsz"><dc:Bounds x="182" y="352" width="36" height="36" /><bpmndi:BPMNLabel><dc:Bounds x="159" y="395" width="82" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity_0lxa0w2_di" bpmnElement="Activity__7kgwzy5"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity_00vnyz6_di" bpmnElement="Activity__iltbx8j"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Gateway_15hzcdo_di" bpmnElement="Activity__08fy3ej" isMarkerVisible="true"><dc:Bounds x="50" y="60" width="50" height="50" /><bpmndi:BPMNLabel><dc:Bounds x="55" y="117" width="45" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity_0qdenln_di" bpmnElement="Activity__j15st68"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Event_18tqoiu_di" bpmnElement="Activity__c9ynbk4"><dc:Bounds x="50" y="60" width="36" height="36" /><bpmndi:BPMNLabel><dc:Bounds x="58" y="103" width="20" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity_0dizh1k_di" bpmnElement="Activity__rhy4fcg"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Event_1g8ts59_di" bpmnElement="Activity__58x8cah"><dc:Bounds x="50" y="60" width="36" height="36" /><bpmndi:BPMNLabel><dc:Bounds x="58" y="103" width="20" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity_06v6yk8_di" bpmnElement="Activity__fc16h7x"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Event_1nqy0dy_di" bpmnElement="Activity__u0c2d1y"><dc:Bounds x="50" y="60" width="36" height="36" /><bpmndi:BPMNLabel><dc:Bounds x="58" y="103" width="20" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id="Gateway__lfyq794_di" bpmnElement="Gateway__lfyq794" isMarkerVisible="true"><dc:Bounds x="75" y="75" width="50" height="50" /><bpmndi:BPMNLabel><dc:Bounds x="64" y="132" width="79" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity__fylp64j_di" bpmnElement="Activity__fylp64j"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity_1o540s7_di" bpmnElement="Activity__phtnb1n"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Event_0am7rbb_di" bpmnElement="Activity__4nokk0b"><dc:Bounds x="50" y="60" width="36" height="36" /><bpmndi:BPMNLabel><dc:Bounds x="58" y="103" width="20" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity__epyrf4n_di" bpmnElement="Activity__epyrf4n"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity__nlf5s99_di" bpmnElement="Activity__nlf5s99"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity__w55kqtm_di" bpmnElement="Activity__w55kqtm"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNEdge id="Flow__cuttcua_di" bpmnElement="Flow__cuttcua"><di:waypoint x="182" y="370" /><di:waypoint x="166" y="370" /><di:waypoint x="166" y="0" /><di:waypoint x="150" y="0" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__7x9baiv_di" bpmnElement="Flow__7x9baiv"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="120" y="40" /><di:waypoint x="100" y="40" /><di:waypoint x="100" y="60" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__lzn9b5a_di" bpmnElement="Flow__lzn9b5a"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="120" y="40" /><di:waypoint x="100" y="40" /><di:waypoint x="100" y="85" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__29xeh89_di" bpmnElement="Flow__29xeh89"><di:waypoint x="75" y="60" /><di:waypoint x="75" y="40" /><di:waypoint x="95" y="40" /><di:waypoint x="75" y="40" /><di:waypoint x="75" y="60" /><bpmndi:BPMNLabel><dc:Bounds x="77" y="22" width="16" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__es5p9iw_di" bpmnElement="Flow__es5p9iw"><di:waypoint x="75" y="60" /><di:waypoint x="75" y="40" /><di:waypoint x="95" y="40" /><di:waypoint x="75" y="40" /><di:waypoint x="75" y="60" /><bpmndi:BPMNLabel><dc:Bounds x="77" y="22" width="16" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__2388k4b_di" bpmnElement="Flow__2388k4b"><di:waypoint x="75" y="60" /><di:waypoint x="75" y="40" /><di:waypoint x="95" y="40" /><di:waypoint x="75" y="40" /><di:waypoint x="75" y="60" /><bpmndi:BPMNLabel><dc:Bounds x="77" y="22" width="16" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__8ctz1gj_di" bpmnElement="Flow__8ctz1gj"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="68" y="40" /><di:waypoint x="68" y="60" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__4i9uid6_di" bpmnElement="Flow__4i9uid6"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="0" y="40" /><di:waypoint x="100" y="75" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__j89wasb_di" bpmnElement="Flow__j89wasb"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="0" y="40" /><di:waypoint x="100" y="60" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__otkjmww_di" bpmnElement="Flow__otkjmww"><di:waypoint x="100" y="75" /><di:waypoint x="100" y="40" /><di:waypoint x="0" y="40" /><di:waypoint x="100" y="60" /><bpmndi:BPMNLabel><dc:Bounds x="43" y="22" width="25" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__6i0ng6p_di" bpmnElement="Flow__6i0ng6p"><di:waypoint x="100" y="75" /><di:waypoint x="100" y="54" /><di:waypoint x="120" y="54" /><di:waypoint x="120" y="40" /><di:waypoint x="100" y="40" /><di:waypoint x="100" y="60" /><bpmndi:BPMNLabel><dc:Bounds x="119" y="46" width="34" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__sh0135l_di" bpmnElement="Flow__sh0135l"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="68" y="40" /><di:waypoint x="68" y="60" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__kiiqdiz_di" bpmnElement="Flow__kiiqdiz"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="68" y="40" /><di:waypoint x="68" y="60" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__atixn20_di" bpmnElement="Flow__atixn20"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="120" y="40" /><di:waypoint x="100" y="40" /><di:waypoint x="100" y="60" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__s2m88dh_di" bpmnElement="Flow__s2m88dh"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="0" y="40" /><di:waypoint x="100" y="60" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__rutk2op_di" bpmnElement="Flow__rutk2op"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="68" y="40" /><di:waypoint x="68" y="60" /></bpmndi:BPMNEdge></bpmndi:BPMNPlane></bpmndi:BPMNDiagram></bpmn:definitions>