import type {
  ContractTemplateArticle,
  ContractTemplateCode,
} from "../../modules/contract-templates/entities/contract-template.entity";

/**
 * Default article packs for the six contract templates, transcribed from the
 * signed EDR contract documents (test/contrat_docs). Article bodies use the
 * dynamic-article text format: one clause per line, "- " prefix for bullets
 * nested under the previous clause, single-line body = plain paragraph.
 * Handlebars placeholders ({{client.companyName}}, {{contractDate}},
 * {{contractYear}}, {{reference}}) interpolate at render time.
 */
export interface ContractTemplateSeed {
  code: ContractTemplateCode;
  name: string;
  description: string;
  documentTitle: string;
  whereasClauses: string[];
  articles: Array<Omit<ContractTemplateArticle, "order">>;
}

const a = (id: string, title: string, body: string): Omit<ContractTemplateArticle, "order"> => ({
  id,
  title,
  body: body.trim(),
});

/* ────────────────────────────── IMPORT / BULK ────────────────────────────── */

const IMPORT_BULK: ContractTemplateSeed = {
  code: "IMPORT_BULK",
  name: "Bulk Import Contract",
  description:
    "Import of bulk cargo (e.g. steel billets) from Djibouti (DMP/Nagad) to Galaan Multipurpose Port with customs clearance and optional last-mile delivery.",
  documentTitle: "Bulk Cargo Transportation and Customs Clearance Services",
  whereasClauses: [
    "The Client has agreed to engage the Service Provider for transportation and customs clearance services for bulk cargo, including first-mile transport to the railway station at Djibouti, loading at either DMP or Nagad Railway Station (Djibouti), port/rail terminal handling, loading onto the train, railway transport to Galaan Multipurpose Port (GMP) in Ethiopia, unloading at the destination port from train to load directly on truck, onward transportation to the Client's site (excluding truck loading at Djibouti and truck unloading at the Client destination where last-mile service is undertaken by the Service Provider), and all related documentation.",
    "The Service Provider has agreed to provide the requested services in accordance with the terms and conditions of this Agreement.",
  ],
  articles: [
    a(
      "objective",
      "Objective of the Services",
      `The objective of this contract is to provide the Client with integrated logistics services for the transportation of bulk cargo, including:
- First-mile transportation in Djibouti from the Client's designated cargo location to the selected railway station (DMP or Nagad).
- Port handling and loading onto railway wagons.
- Railway transport from DMP and/or Nagad Railway freight station (Djibouti) to Galaan Multipurpose Port.
- Customs clearance in Djibouti and Ethiopia.
- Unloading from train at the destination port to load directly on truck.
- Last-mile delivery by truck to the Client's delivery site where the last-mile service is undertaken by the Service Provider.
The truck loading at Djibouti and the truck unloading at the Client's delivery site shall be the responsibility of the Client.`,
    ),
    a(
      "client-obligations",
      "Obligations of the Client",
      `Provide written/email/electronic instructions specifying the cargo volume and the selected loading station (DMP or Nagad) for each shipment.
Prepare and submit all necessary documents and permits to enable smooth service execution.
Ensure cargo readiness in compliance with specifications (including weight, size, and contour restrictions).
Handle truck loading at Djibouti Free Zone/Old Port/DMP and any other designated cargo location at Djibouti, and truck unloading at the delivery site.
Ensure safety and proper securing of cargo during truck handling.
Submit all required documents necessary for customs clearance and cargo release within one (1) calendar day from the date of request or notification by the Service Provider.
Upon receipt of the wagon allocation list and train schedule from the Service Provider, ensure that the cargo is transferred to the designated loading freight station and made ready for loading within two (2) days prior to wagon arrival. Any delay beyond this period resulting from Client-related issues shall be subject to a charge of USD 56 per wagon per day, or part thereof, until the cargo is made available for loading.
Upon arrival of the train at Galaan Multipurpose Port (GMP), offload cargo from wagons within twenty-four (24) hours of train arrival. Where the Client undertakes last-mile transportation, the Client may arrange sufficient trucks at the time of train arrival to enable direct loading of cargo from wagons to trucks.
In the event the Client is unable to provide trucks for the collection of cargo within twenty-four (24) hours of train arrival, the Service Provider shall have the right to handle and reposition the cargo to any location it deems appropriate, and shall not be held responsible for any loss, shortage, or damage arising from such repositioning.
Any additional handling, re-handling, or repeated loading operations performed by the Service Provider shall be charged as double handling fees at a rate of USD 4 per ton, payable by the Client.
If stored, the full cargo must be collected from the Galaan Multipurpose Port compound within three (3) days from the time of train arrival at the port.
If the Client fails to collect the cargo within the specified period, the Client shall be liable to pay demurrage charges of USD 2 per day per ton, calculated based on the Commercial Bank of Ethiopia's daily selling exchange rate on the date of payment.
Where the last-mile service is provided by the Service Provider, unload the cargo from the truck at the delivery site within the agreed time frame.
Designate authorized representatives (with valid power of attorney) for handover at origin and destination.
Settle demurrage payments within ten (10) calendar days from the date the Service Provider issues a claim.
Pay the Service Provider one hundred percent (100%) of the contract price in advance for each train set in accordance with the pricing article of this Agreement.
Contact the Service Provider to obtain confirmation prior to booking and proceeding with payment.`,
    ),
    a(
      "provider-obligations",
      "Obligations of the Service Provider",
      `Provide first-mile transportation in Djibouti from the Client's designated location to the selected railway station (DMP or Nagad).
Carry out port handling and loading onto railway wagons.
Provide railway transportation from DMP/Nagad (Djibouti) railway freight station to Galaan Multipurpose Port.
Perform unloading at Galaan Multipurpose Port (GMP) to load directly on truck.
Perform customs clearance in Djibouti and Ethiopia, including border station procedures.
Prepare and submit all required transport documentation.
Provide cargo insurance coverage for each supplied wagon.
Notify the Client of train schedules, wagon numbers, and expected arrival times in advance.`,
    ),
    a(
      "force-majeure",
      "Force Majeure",
      `Neither party shall be liable for delays or non-performance caused by force majeure events beyond their reasonable control.
Force majeure shall be interpreted in accordance with the Ethiopian Civil Code.`,
    ),
    a(
      "liability",
      "Liabilities Related to Damages and Losses",
      `The Service Provider shall be fully responsible for any loss, shortage, or damage to cargo that occurs after it has been taken over until delivery to the Client's delivery site.
Compensation shall be based on the market value of the cargo, in accordance with applicable laws.`,
    ),
    a(
      "pricing",
      "Contract Price and Payment Terms",
      `The applicable railway freight, Djibouti handling, and any additional service and surcharge rates for this contract are set out in the Rate Schedule immediately below, expressed as unit prices per origin → destination lane and per service.
Each wagon shall be loaded up to a maximum of seventy (70) metric tons; for billing purposes one full wagon shall be deemed equivalent to this volume.
Where lashing materials and wood are provided by the Service Provider, they shall be charged at the applicable rate set out in the Rate Schedule; the provision continues until the cargo reaches and is fully unloaded at the designated destination station.
The price for last-mile delivery, where not listed in the Rate Schedule, shall be determined once the cargo departs from the loading point and shall be communicated to the Client by official email upon the Client's request.
Payments shall be made 100% in advance in USD.`,
    ),
    a(
      "contract-documents",
      "Contract Documents",
      `The following documents form part of this contract:
- This Contract Agreement.
- Any amendments made to this Agreement.
- Minutes of negotiation (if any).`,
    ),
    a(
      "documentation",
      "Documentation Requirements",
      `The Service Provider shall deliver the following to the Client:
- Freight Carriage Acceptance Sheet of the Addis Ababa–Djibouti Railway.
- Notice of transportation and miscellaneous charges.
- Summary of payment request as per the agreed tariff, if required.`,
    ),
    a(
      "consignment-notes",
      "Consignment Notes",
      `The Service Provider shall certify the taking over of goods in the Freight Carriage Acceptance Sheet.
This document shall serve as prima facie evidence of receipt of the cargo.
Upon delivery of the cargo to the Client, the Cargo Handover Out Voucher signed by both parties shall serve as evidence of cargo receipt.`,
    ),
    a(
      "termination",
      "Termination of Contract",
      `This contract may be terminated:
- By mutual consent.
- Upon completion of the agreed contract period or cargo volume.
- For breach of fundamental provisions, with one-week prior written notice.`,
    ),
    a(
      "effectiveness",
      "Contract Effectiveness",
      `This Agreement becomes effective on the date it is signed by both parties.`,
    ),
    a(
      "duration",
      "Duration",
      `The contract is valid until August 31, {{contractYear}} from the date of effectiveness, extendable by mutual agreement.`,
    ),
    a(
      "disputes",
      "Settlement of Disputes",
      `Disputes shall first be settled amicably.
If unresolved, disputes shall be referred to the competent Federal Court of Ethiopia in Addis Ababa.
The governing law shall be the laws of the Federal Democratic Republic of Ethiopia.`,
    ),
  ],
};

/* ────────────────────────────── EXPORT / BULK ────────────────────────────── */

const EXPORT_BULK: ContractTemplateSeed = {
  code: "EXPORT_BULK",
  name: "Bulk Export Contract",
  description:
    "Export of bulk cargo (e.g. livestock) by railway from Ethiopian loading stations to Nagad railway freight yard, Djibouti.",
  documentTitle: "Bulk Cargo Transportation Service by Railway",
  whereasClauses: [
    "The Client has agreed to deliver bulk cargo to the Service Provider for transport from the agreed Ethiopian loading station to Nagad railway freight yard using the Addis Ababa–Djibouti railway line.",
    "The Service Provider has agreed to provide the service to transport the bulk cargo from the agreed loading station to Nagad railway freight yard.",
  ],
  articles: [
    a(
      "objective",
      "Objective of the Service",
      `To undertake the railway transportation of bulk cargo from the agreed Ethiopian loading station to Nagad railway freight yard.`,
    ),
    a(
      "client-obligations",
      "Obligations of the Client",
      `Give written instruction to the Service Provider to transport a minimum of one wagon of cargo; the wagon request shall be made at least five (5) days in advance for each wagon.
Maintain detailed information incorporating type, weight, and destination of the cargo ready for shipment, and notify the Service Provider or its nominated agent by notice, email, or fax.
Prepare the necessary documents and facilities to make the cargo ready for transport.
Note the allowable transport period of the cargo: the maximum time range during which the goods maintain their condition without any problem. The allowable transport period must be at least two (2) days longer than the delivery period.
Ensure cargo is properly loaded and fastened in the wagons, provide the necessary lashing and barriers for loading as per the instruction of the departure station, and bear responsibility for the condition of the cargo during the transport period.
Supply the necessary provisions for the cargo for each wagon and assign a responsible person to travel with the train to check the status of the cargo during transport, where the nature of the cargo so requires.
Supply the minimum amount of cargo available for at least one wagon.
Execute loading, lashing, and preparing barriers on wagons at the loading station and provide the complete documents/bill to the Service Provider within one (1) calendar day.
For each extra calendar day used for loading cargo and completing documents at the loading station, pay the wagon-occupied fee per the pricing article; the fee shall be paid within ten (10) calendar days from the date the Service Provider claims it, failing which compensation is payable calculated on the basis of the Commercial Bank of Ethiopia interest rate for the delay period.
Be responsible for safety matters, and indemnify and hold the Service Provider harmless against all consequences resulting from accidents arising from or associated with the loading and unloading process.
Execute and cover the cost of loading and unloading of cargo at both the loading station and Nagad railway freight yard.
Follow up that the cargo is loaded and unloaded on time.
Delegate representatives at both ends to consign and receive cargo with signature and stamp. Representatives shall hold a duly signed and stamped power of attorney and shall produce their ID or passport when consigning or receiving the cargo.
Prepare the necessary facilities to take over the transported cargo at Nagad freight yard upon arrival by issuing handover documents.
Take the transported cargo out of the wagons at Nagad freight yard within one (1) calendar day starting from the day following the notice of arrival.
Pay the wagon-occupied fee per the pricing article for delays of more than one (1) calendar day at Nagad railway freight yard due to the fault of the Client in resolving customs or third-party claims or any other causes.
After the wagon list is submitted to the Client, if a wagon is not loaded due to the fault of the Client, pay 100% of the transportation price per wagon for each unloaded wagon.
Pay the Service Provider 100% of the contract price in advance for each wagon.`,
    ),
    a(
      "provider-obligations",
      "Obligations of the Service Provider",
      `Provide the list and identification numbers of wagons with sequence and locomotives at least twenty-four (24) hours in advance to the Client, with any correction at least twelve (12) hours before arrival at destination.
Transport the cargo from the loading station to Nagad railway freight yard.
Provide safe transportation of the cargo throughout the transit.
Present customs clearance documents and mobilize the rolling stock as needed.
Provide the wagons assigned for the freight at the agreed place and time, and follow up that the cargo is loaded on time.
Transport and deliver the cargo taken over, in the condition received, within two (2) calendar days to Nagad railway freight yard.
Where a wagon carrying cargo stops due to accident or mechanical problem, promptly notify the nearby customs station, police office, and the Client. A wagon stopped in Ethiopia due to mechanical defect shall be maintained within four (4) calendar days; within Nagad (Djibouti) territory within twelve (12) calendar days. In case of accident where the problem cannot be solved within one (1) calendar day and the wagon is not operational, the Service Provider shall have the cargo carried and delivered by another wagon, and shall provide an accident or defect report issued by the local police office regarding the sustained damage.
Buy a cargo liability insurance policy for each supplied wagon.
Provide wagon cleaning service and charge the cleaning fee based on actual expenditure.
If the Client fails or refuses to receive the cargo beyond the allowable transport period, the Service Provider has the right to handle the cargo.
Neither party shall be liable for any indirect or consequential loss sustained by the other in connection with this Agreement.`,
    ),
    a(
      "force-majeure",
      "Force Majeure",
      `The parties have no obligation to pay demurrage or any other compensation if they have failed to discharge their obligations due to force majeure.
Force majeure shall be deemed to exist when the contract is not performed due to any event beyond the reasonable control of a party which prevents that party from complying with its obligations under this Agreement, including but not limited to:
- Acts of God (such as, but not limited to, fires, explosions, earthquakes, drought, tidal waves, and floods).
- War, hostilities (whether war is declared or not), invasion, acts of foreign enemies, mobilization, requisition, or embargo.
- Rebellion, revolution, insurrection, military or usurped power, or civil war.
- Contamination by radioactivity from any nuclear fuel or nuclear waste.
- Riot, commotion, strikes, go-slows, lockouts, or disorder.
- Acts of terrorism.
A party wishing to claim protection in respect of a force majeure event shall, as soon as possible following the occurrence or commencement of the event, notify the other party of its nature and expected duration, and shall thereafter keep the other party informed until it is able to perform its obligations under this Agreement.`,
    ),
    a(
      "pricing",
      "Contract Price and Terms of Payment",
      `The price of bulk cargo transportation from the loading station to Nagad, together with any applicable demurrage and surcharge rates, is set out in the Rate Schedule immediately below, expressed as unit prices per origin → destination lane and per wagon.
Payment for transport services shall be made in Birr based on the selling price of USD to Birr on the date of payment set by the Commercial Bank of Ethiopia.
If there is an increment or decrement of the USD exchange rate to Birr between the date of payment and the date the wagon/train number is provided to the Client, either the Client shall make the additional payment to the Service Provider or the Service Provider shall refund the difference from the initial payment to the Client.
The cost of loading at the loading station and unloading at Nagad shall be covered by the Client and is not part of this contract agreement.
The Client shall pay 100% of the contract price in advance.
The Client shall pay a demurrage fee for occupied wagons at the rate set out in the Rate Schedule for the applicable occupancy band.
Demurrage payment shall be made in Birr based on the selling price of USD to Birr set by the Commercial Bank of Ethiopia on the date of the demurrage occurrence.`,
    ),
    a(
      "contract-documents",
      "Contract Documents",
      `The following documents shall constitute the contract between the Client and the Service Provider:
- Amendments made to this contract (if any).
- This Contract Agreement.
- Final minutes of negotiation (if any).
If there is any discrepancy between the documents, they shall be interpreted with priority in the order listed above.`,
    ),
    a(
      "documentation",
      "Documentation Requirements",
      `The following documents shall be delivered to the Client upon request for settlement:
- Consignment Note (cargo handover document to the Client).
- Summary of payment request of the Service Provider prepared as per the agreed tariff.`,
    ),
    a(
      "consignment-notes",
      "Consignment Notes",
      `The Service Provider must certify the taking over of the goods on the duplicates of the consignment note in an appropriate manner and return the duplicate to the Client.
A consignment note shall be prima facie evidence of the receipt of the goods by the Service Provider and of the kind, number, and weight of the goods.`,
    ),
    a(
      "termination",
      "Termination of Contract",
      `The contract may be terminated:
- Upon mutual consent of the parties.
- Upon completion of the contract period.
- If either or both parties breach a fundamental provision of the contract, upon prior legal notice delivered by either party.`,
    ),
    a(
      "effectiveness",
      "Contract Effectiveness",
      `The contract shall come into full force and effect on the date when all of the following are accomplished:
- The contract is signed by the Client and the Service Provider.
- The Service Provider has received the advance payment of 100% of the contract price for each train set of cargo.`,
    ),
    a(
      "cargo-amount",
      "Cargo Amount",
      `The minimum cargo to be transported shall be one wagon.`,
    ),
    a(
      "duration",
      "Duration of Contract",
      `The contract shall last for three (3) months starting from the date of contract signing, with possible extension upon mutual agreement.`,
    ),
    a(
      "disputes",
      "Settlement of Disputes",
      `If a dispute arises between the parties, they shall exert efforts to settle their differences amicably.
If the parties fail to settle their disputes amicably, the case shall be taken to the competent Federal Court of law presiding in Addis Ababa.
The governing law shall be the laws of the Federal Democratic Republic of Ethiopia.`,
    ),
  ],
};

/* ──────────────────────────── INTERCITY / BULK ───────────────────────────── */

const INTERCITY_BULK: ContractTemplateSeed = {
  code: "INTERCITY_BULK",
  name: "Bulk Intercity Contract",
  description:
    "Domestic (intercity) bulk cargo transportation by railway between Ethiopian freight yards, e.g. Dire Dawa to Sebeta.",
  documentTitle: "Bulk Cargo Transportation Service by Railway (Intercity)",
  whereasClauses: [
    "The Client has requested the Service Provider to transport bulk cargo between the agreed Ethiopian railway freight yards using the Ethio–Djibouti Railway.",
    "The Service Provider has accepted the Client's request to render the said transportation service.",
  ],
  articles: [
    a(
      "objective",
      "Objective of the Contract",
      `The Service Provider shall undertake the railway transportation of bulk cargo from the agreed origin railway freight yard to the agreed destination railway freight yard.`,
    ),
    a(
      "client-obligations",
      "Obligations of the Client",
      `Provide written instructions to the Service Provider to transport a minimum of sixteen (16) wagons of cargo per consignment.
Prepare all necessary documents, including laboratory tests from the pertinent organ and off-taking contract where applicable, and the facilities required to sign the contract and make the cargo ready for transport.
Assign representatives at the origin yard and other stations, as required, to hand over the cargo to the Service Provider and handle transit clearance if required.
Transport the cargo to the designated loading points at the origin yard.
Be responsible for cargo handling: loading at the origin yard and unloading at the destination yard, in accordance with the standards set by the EDR operations and technical terms.
Make advance payment to the Service Provider for services in accordance with the payment terms and conditions of this contract.
Follow up to ensure that the cargo is loaded and unloaded on time.
Delegate representatives at the cargo destination to immediately receive the transported cargo.
Ensure representatives are duly authorized with a power of attorney, signed and stamped by the Client, and present valid identification (ID or passport) when consigning or receiving cargo.
Maintain detailed information including item, weight, and destination of the cargo, and communicate the same to the Service Provider or its nominated agent via written notice, email, or fax.
Prepare the necessary facilities to immediately take over the transported cargo at the destination upon arrival and provide sufficient trucks at the destination freight yard for unloading from railway wagons.
Upon arrival of the train/wagon at the unloading site, sign the train arrival confirmation sheet to acknowledge the arrival time.
Inspect the loaded wagons jointly with the Service Provider and EDR at the loading yard, and again with the customs agent (if required) and the Service Provider at the destination yard.
After receiving the cargo, sign the Freight Carriage Acceptance Sheet (copies II, III, and IV) immediately to confirm delivery.
Compensate the Service Provider or any third party for actual loss or damage caused to persons, property, or wagons during unloading where such damage is attributable to the Client's fault.
Each consignment (train) shall be granted three (3) hours of free time at the loading station and one (1) day at the unloading station. For each additional 3 hours of loading or parking the Client shall pay ETB 5,000 (five thousand) per wagon, and for each additional day of unloading ETB 5,000 (five thousand) per wagon per day.
Bear demurrage charges of ETB 5,000 (five thousand) per wagon per 3 hours for delays exceeding three (3) hours at any station resulting from the Client's failure to resolve customs or third-party claims.
Pay 100% of the transport price in advance. Any additional charges or fees shall be paid within ten (10) calendar days after submission of the Service Provider's payment request.`,
    ),
    a(
      "provider-obligations",
      "Obligations of the Service Provider",
      `Provide the necessary train(s) to execute the transportation service under this contract, and furnish the Client with the list and identification numbers of wagons and locomotives at least 24 hours in advance, with corrections (if any) communicated at least 12 hours before the expected time of arrival at destination.
Provide pre-arrival notification including the train number to the discharging terminal and customs at least 24/12 hours before train arrival.
Transport the cargo from origin to destination within two (2) days from completion of loading (time counting starts upon completion of documentation and loading).
Provide safe transportation of the cargo throughout transit.
Deliver the cargo to the Client at the destination railway freight yard in the same condition as received.
Purchase a cargo liability insurance policy for each wagon transported.`,
    ),
    a(
      "force-majeure",
      "Force Majeure",
      `Neither party shall be liable due to a force majeure event.
For the purposes of this contract, force majeure shall mean any unforeseeable event or circumstance beyond the reasonable control of the affected party which absolutely prevents the performance of the contract, including but not limited to natural disasters, war, civil commotion, strikes, government actions, epidemics, or interruption of railway operations due to accidents or infrastructure failure.
The affected party shall notify the other party in writing within a reasonable period not exceeding two (2) hours after the occurrence of the force majeure event, providing evidence and details of the impact on performance and the mitigating steps taken.`,
    ),
    a(
      "liability",
      "Liabilities Related to Damages and Losses",
      `The Service Provider will be responsible for any loss, shortage, or damage occurring to the cargo it has received.`,
    ),
    a(
      "pricing",
      "Contract Price",
      `The price for transporting cargo from the origin freight yard to the destination freight yard is set out in the Rate Schedule immediately below, expressed as a unit price per origin → destination lane and per wagon.
Each wagon shall be loaded with a maximum of 70 (seventy) metric tons.
Payment for transport services may be made in Ethiopian Birr, based on the Commercial Bank of Ethiopia's official selling exchange rate of USD to Birr on the date of payment.
If the exchange rate changes between the payment and the wagon assignment date, payment adjustments will be made accordingly.
The contract price shall include the cost of railway transportation from the origin freight yard to the destination freight yard.
Excluded cost: cargo handling (loading and unloading) is not included in the contract price and shall remain the sole responsibility of the Client.`,
    ),
    a(
      "contract-documents",
      "Contract Documents",
      `The following documents shall constitute the contract between the Client and the Service Provider:
- Amendments made to this contract (if any).
- This Contract Agreement.
- Final minutes of negotiation (if any).
If there is any discrepancy between the documents, they shall be interpreted with priority in the order listed above.`,
    ),
    a(
      "documentation",
      "Documentation Requirements",
      `The following documents shall be delivered to the Client by the Service Provider to collect and settle payment:
- Freight Carriage Acceptance Sheet of the Ethio-Djibouti Railway.
- Notice of collecting transportation and miscellaneous charges of the Ethio-Djibouti Railway (if any).
- Summary of payment request of the Service Provider prepared as per the agreed tariff.
- Railway Waybill.`,
    ),
    a(
      "consignment-notes",
      "Consignment Notes",
      `The Service Provider must certify the taking over of the goods on copy III (kept by the consignee for future reference) of the Freight Carriage Acceptance Sheet of the Ethio-Djibouti Railway in an appropriate manner and provide it to the Client.
The Freight Carriage Acceptance Sheet shall be prima facie evidence of the receipt of the goods by the Service Provider and of the kind, number, and weight of the goods.`,
    ),
    a(
      "termination",
      "Termination of Contract",
      `The contract may be terminated:
- Upon mutual consent of the parties.
- Upon completion of the contract period or amount of cargo, whichever comes first.
- If either or both parties breach a fundamental provision of the contract, upon one-week prior legal notice delivered by either party.`,
    ),
    a(
      "duration",
      "Duration of Contract",
      `The contract duration shall be three (3) months from the date of effectiveness of the contract, with possible extension upon mutual agreement of the parties.`,
    ),
    a(
      "disputes",
      "Settlement of Disputes",
      `If a dispute arises between the parties, they shall exert efforts to settle their differences amicably.
If the parties fail to settle their dispute amicably, the case shall be taken to the competent Federal Court of law presiding in Addis Ababa.
The governing law shall be the laws of the Federal Democratic Republic of Ethiopia.`,
    ),
    a(
      "effectiveness",
      "Contract Effectiveness",
      `The contract shall come into full force and effect on the date when the contract is signed by both parties.`,
    ),
  ],
};

/* ──────────────────────────── IMPORT / CONTAINER ─────────────────────────── */

const IMPORT_CONTAINER: ContractTemplateSeed = {
  code: "IMPORT_CONTAINER",
  name: "Container Import Contract",
  description:
    "Import container transport by railway from SGTD (Djibouti) to Dire Dawa, Modjo dry port, or Galaan Multipurpose Port, with empty-container return.",
  documentTitle: "Import Container Transport Service by Railway",
  whereasClauses: [
    "The Client has requested and agreed to the transportation of container cargo from SGTD railway freight station at Djibouti to Dire Dawa, Modjo dry port, and Galaan Multipurpose Port (GMP), and the return of empty containers from Dire Dawa, Modjo dry port, and Galaan Multipurpose Port (GMP) to SGTD railway freight station using the Addis Ababa–Djibouti railway line.",
    "The Service Provider has agreed to transport the container cargo as per the terms of this contract.",
  ],
  articles: [
    a(
      "objective",
      "Objective and Scope of the Services",
      `To provide railway transportation services for 40ft and/or 20ft full containers from SGTD to Dire Dawa, Modjo dry port, and/or Galaan Multipurpose Port (GMP), and empty container return from Dire Dawa, Modjo dry port, and Galaan Multipurpose Port (GMP) to SGTD.
The scope of the services comprises:
- Railway transport service.
- Cargo handling at Galaan Multipurpose Port (GMP).`,
    ),
    a(
      "client-obligations",
      "Obligations of the Client",
      `Give written/email/electronic shipment instructions to the Service Provider for transportation of container cargo from SGTD to Dire Dawa, Modjo dry port, and/or Galaan Multipurpose Port (GMP).
Prepare all necessary documents and facilities for shipment.
Ensure the following minimum supply of containers per shipment based on the loading terminal and destination:
- Minimum of twenty-five (25) 40ft containers or fifty (50) 20ft containers to Modjo dry port.
- Minimum of ten (10) 40ft containers or twenty (20) 20ft containers to Dire Dawa dry port.
- Minimum of one (1) 40ft container or two (2) TEU to Galaan Multipurpose Port (GMP).
One flat wagon must carry either one 40ft container or two 20ft containers.
If two 20ft containers are loaded on one flat wagon, their weight difference must not exceed 10 tons.
Ensure timely loading and unloading of cargo.
Assign representatives at both ends to oversee container handover and ensure the necessary arrangements for cargo reception at the destination upon arrival.
Maintain and provide detailed cargo information (type, weight, destination, etc.).
Be responsible for cargo handling, loading, and unloading of both empty and full containers at Modjo, Dire Dawa dry port, and SGTD.
Book wagons at least five (5) days in advance.
Ensure containers are ready one day before the planned loading date.
Submit all required documents to the Djibouti Nagad station at least 24 hours in advance before starting to load. Failure to submit the documents within the stipulated time shall result in the following demurrage charges, calculated as a percentage of the booked wagon price:
- Delay of up to twelve (12) hours: 20% of the booked wagon price.
- Delay exceeding twelve (12) hours but not more than one (1) day: 50% of the booked wagon price.
- Delay of more than one (1) day: 100% of the booked wagon price.
Collect the full container from Galaan Multipurpose Port (GMP) within three (3) calendar days from the day following the arrival notice.
If the Client fails to collect the container within the specified period, the Service Provider shall have the right to reposition the container to any location it deems appropriate; in such case, the Service Provider shall not be held responsible for any damage or loss arising from such repositioning.
If the Client fails to collect the container from Galaan Multipurpose Port within the specified period, the Client shall be liable to pay demurrage charges of 15 USD per day per 20ft container and 27 USD per day per 40ft container, calculated based on the Commercial Bank of Ethiopia's daily selling exchange rate on the date of payment.
In the event the Client fails to collect the container(s) within the specified period, the Client shall be liable to pay double handling charges of 27 USD per 20ft container per handling or 40 USD per 40ft container per handling, calculated based on the Commercial Bank of Ethiopia's daily selling exchange rate on the date of payment.
If empty containers cannot be offloaded from the train upon arrival at SGTD due to any Client-related issue, the Client shall be liable for the applicable penalty charges.
Penalty charges for delay at SGTD/Nagad upon train arrival: 20 USD per day per 20ft container; 33 USD per day per 40ft container.
Collect the containers within one day at Dire Dawa and Modjo dry port, or make the necessary payment to the dry port as per the standard of the dry port.
For returning empty containers, deliver to Dire Dawa dry port, Modjo dry port, or Galaan Multipurpose Port.
Once the empty containers are returned from the Client's premises and stored at Dire Dawa/Modjo dry port while awaiting train allocation for return to SGTD, any demurrage and/or storage charges incurred from the dry port thereafter shall not be the responsibility or liability of the Service Provider; the Client shall be solely responsible for settling such charges.
Provide clean empty containers that meet SGTD standards. If the port refuses to take over an empty container because of inside cleanliness problems, additional cleaning costs incurred due to non-compliance will be borne by the Client.
Ensure containers are structurally intact and meet weight distribution requirements.
Prohibited cargo: cargo covered with tarpaulin is not allowed due to safety risks.
Notify the Service Provider forty-eight (48) hours in advance before wagon booking if transporting hazardous or valuable goods.
If a booked wagon is not loaded due to Client-related issues, including but not limited to a damaged container, missing lock, unpaid demurrage, port system errors, or incomplete documentation and submission, the Client shall be charged 100% of the total price of the reserved wagon.
Refund requests before wagon booking require an official request, with a 3% administrative fee deducted. If the refund is due to the Service Provider, the Client shall receive a full refund. Refunds not requested and completed within six months shall be considered waived.
Pay 100% of the transportation fee in advance for each train set.
Settle additional penalties due to non-compliance within ten (10) days of invoice issuance.
Late payment incurs a penalty of an additional 10%.`,
    ),
    a(
      "provider-obligations",
      "Obligations of the Service Provider",
      `Assign the necessary voyage based on the operational schedule and cargo demand, and notify the train schedule 48 hours in advance.
Provide a list of wagons/voyage or train number 24 hours in advance and update corrections 12 hours before arrival.
Provide safe transportation of the containers.
Deliver the cargo within two (2) days after train departure, provided that all required documents are submitted on time and no unforeseen circumstances or events occur.
Return empty containers from Dire Dawa, Modjo, and Galaan Multipurpose Port to SGTD within seven (7) calendar days of receipt.
In the event of export cargo operations, the Service Provider may prioritize the loading of export containers during the loading of empty containers and the unloading of import containers from the train at Galaan Multipurpose Port.
The Service Provider reserves the right to refuse the transportation of any cargo classified as dangerous goods.
If any operational, technical, or mechanical problem occurs throughout the transit, notify customs and arrange cargo transfer within 4 days if the incident occurs in Ethiopia, or within 6 days if it occurs in Djibouti.
Provide accident or defect reports if needed.
Buy cargo liability insurance for each wagon.`,
    ),
    a(
      "force-majeure",
      "Force Majeure",
      `Neither party shall be liable for delays or non-performance caused by force majeure events beyond their reasonable control.
Force majeure shall be interpreted in accordance with the Ethiopian Civil Code.`,
    ),
    a(
      "pricing",
      "Contract Price and Terms of Payment",
      `The railway transportation rate for each corridor (per one 40ft container or per two 20ft containers, with or without empty return where applicable) is set out in the Rate Schedule immediately below, expressed as a unit price per origin → destination lane and per container.
If cargo exceeds 40 tons per two 20ft containers of gross weight, additional charges apply proportionally.
Gross weight shall be the total sum of cargo, packing, and container tare weight.
Payment for any additional tonnage shall be made in advance before the container is loaded onto the wagon.
The price of loading and unloading and container handling at Modjo, Dire Dawa dry port, and SGTD container railway freight yard is not part of this contract; it is the Client's responsibility.
Additional costs (if applicable):
- Last-mile delivery service by truck from Galaan Multipurpose Port or Modjo to Addis Ababa or Modjo and surrounding areas shall incur an additional cost, fully covered by the Client.
- For clients utilizing EDR's last-mile logistics services, the applicable charges shall vary based on the cargo movement route.
- The charge for last-mile delivery from Galaan Multipurpose Port and Modjo dry port shall be communicated to the Client by the Service Provider after receiving the necessary details regarding the cargo destination, type, and weight.
All payments shall be made one hundred percent (100%) in advance in United States Dollars (USD).`,
    ),
    a(
      "contract-documents",
      "Contract Documents",
      `The following documents constitute this contract:
- Amendments (if any).
- This Contract Agreement.
- Final minutes of negotiation (if any).
If there is any discrepancy between the documents, they shall be interpreted with priority in the order listed above.`,
    ),
    a(
      "documentation",
      "Documentation Requirements",
      `Equipment Interchange Receipt of SGTD, Railway Waybill, Container Carriage Acceptance Sheet, and incidental charges (if any).
Payment summary as per the agreed contract price (if required).`,
    ),
    a(
      "consignment-notes",
      "Consignment Notes",
      `The Service Provider must certify the taking over and handing over of the container cargo on the Freight Carriage Acceptance Sheet of EDR in an appropriate manner and provide it to the Client.
The Freight Carriage Acceptance Sheet shall be prima facie evidence of the receipt of the container cargo by the Service Provider and of the kind, number, and weight of the goods.
Upon delivery of the cargo to the Client, the Cargo Handover Out Voucher signed by both parties shall serve as evidence of cargo receipt.`,
    ),
    a(
      "amendment",
      "Amendment",
      `This contract can be amended by mutual agreement.
Notwithstanding the above, the Service Provider may revise transport tariffs due to operational and regulatory changes by providing at least five (5) working days' prior written notice to the Client.`,
    ),
    a(
      "termination",
      "Termination of Contract",
      `The contract may be terminated:
- By mutual agreement.
- Upon completion of the contract period or agreed cargo shipments.
- If either party breaches fundamental terms.`,
    ),
    a(
      "effectiveness",
      "Contract Effectiveness",
      `The contract is valid once signed by both parties.`,
    ),
    a(
      "duration",
      "Contract Period",
      `Valid until August 31, {{contractYear}}, with a possible extension upon mutual agreement.`,
    ),
    a(
      "disputes",
      "Settlement of Disputes",
      `Disputes shall be settled amicably.
If unresolved, disputes shall be taken to the Federal Court in Addis Ababa.`,
    ),
  ],
};

/* ──────────────────────────── EXPORT / CONTAINER ─────────────────────────── */

const EXPORT_CONTAINER: ContractTemplateSeed = {
  code: "EXPORT_CONTAINER",
  name: "Container Export Contract",
  description:
    "Export container transport, freight forwarding, and customs clearing from Galaan Multipurpose Port or Modjo dry port to SGTD container freight station (Djibouti).",
  documentTitle: "Export Container Transport, Freight Forwarding and Customs Clearing Service",
  whereasClauses: [
    "The parties have agreed on the following services: rail transport, customs clearance, transit work, freight forwarding, and handling of container cargo.",
  ],
  articles: [
    a(
      "objective",
      "Objective and Scope of the Services",
      `Customs clearance (Ethiopia side):
- Processing of export declarations.
- Coordination with the Ethiopian Customs Authority for clearance.
- Ensuring compliance with all export regulations.
Rail transport:
- Transportation of containers from Galaan Multipurpose Port (GMP) or Modjo dry port to SGTD container freight station.
Djibouti transit and handling:
- Customs clearance in Djibouti.
- Coordination with Djibouti port and transit authorities.
- Freight forwarding and last-mile facilitation as required.
Excluded costs:
- Shore handling.
- Shifting of containers from SGTD to DMP or DMP to SGTD port.`,
    ),
    a(
      "client-obligations",
      "Obligations of the Client",
      `Give written/email instructions to the Service Provider for transportation of containers from Galaan Multipurpose Port (GMP) and/or Modjo to Djibouti.
Supply a minimum of two (2) 20ft containers (or an equivalent load to fill one flat wagon).
Submit all forwarding service booking requests at least seventy-two (72) hours prior to the scheduled train departure and no later than 7 days before the vessel cut-off time, whichever is applicable.
For clients requiring first-mile service, submit a first-mile service request notice no less than seventy-two (72) hours in advance.
Complete and submit accurate export documents as per the request of the Service Provider; payment must be submitted at least 36 hours before train departure.
Deliver all cargo to the designated loading port or freight station at least three (3) hours prior to the scheduled train loading time.
Failure to meet the stated deadlines may result in cancellation of the booking and transfer arrangements; any resulting delays, penalties, or additional costs shall be the sole responsibility of the Client.
If the Client fails to deliver the container, fails to provide the requested documents for completing export documents as instructed above, or cancels after wagon reservation, the Client shall pay USD 150.00 per wagon as a penalty, after notification.
Containers must have four (4) undamaged corners.
One flat wagon must carry either one 40ft container or two 20ft containers.
If two 20ft containers are loaded on one flat wagon, their weight difference must not exceed 10 tons.
The gross weight of the container must not exceed the standard loading capacity indicated on the container; the Client is responsible for ensuring full compliance with the maximum allowable load.
Prohibited cargo: cargo covered with tarpaulin is not allowed due to safety risks.
If the cargo to be transported is dangerous and/or valuable goods, notify the Service Provider 48 (forty-eight) hours before the wagon booking for further discussion and decision.
Refund requests before wagon booking require an official request, with a 3% administrative fee deducted. If the refund is due to the Service Provider, the Client shall receive a full refund. Refunds not requested and completed within six months shall be considered waived.
Any delay caused by missing or incorrect documents shall be the Client's responsibility.
100% of the transportation and customs clearance fee must be paid in advance.`,
    ),
    a(
      "provider-obligations",
      "Obligations of the Service Provider",
      `Complete gate pass processing and submit to Nagad Station for each shipment within eighteen (18) hours after train departure.
The Service Provider reserves the right to refuse the transportation of any cargo classified as dangerous goods.
Maintain cargo liability insurance for railway transport; additional insurance for port handling or last-mile transport shall be the Client's responsibility.
The Service Provider is not liable for customs penalties or demurrage due to delays beyond its control.
Notify the Client immediately, in writing, of any delays, port issues, or customs holds.
The Service Provider shall not be liable for:
- Inherent defects of the cargo.
- Improper packing or loading conducted by the Client.
- Customs-related delays.
- Delays caused by force majeure events.`,
    ),
    a(
      "force-majeure",
      "Force Majeure",
      `Neither party shall be liable for delays or non-performance caused by force majeure events beyond their reasonable control.
Force majeure shall be interpreted in accordance with the Ethiopian Civil Code.`,
    ),
    a(
      "pricing",
      "Pricing and Payment Terms",
      `The railway transportation charges and the freight forwarding and customs clearance charges for each corridor (per 40ft container and per two 20ft containers) are set out in the Rate Schedule immediately below, expressed as unit prices per origin → destination lane and per container.
Where the total cargo weight exceeds fifty (50) metric tons per two (2) 20ft containers, an additional charge shall apply for each excess metric ton at the overweight rate set out in the Rate Schedule.
For consolidated containers containing more than one (1) shipping document, the first document shall be included under the agreed contract rate; any additional document within the same container shall be subject to the extra-document charge set out in the Rate Schedule.
Payment must be supported by an official receipt before cargo departs from Galaan Multipurpose Port/Modjo.
If the Client uses PIL Shipping Line, any local charge incurred will be covered by the Client as per the invoice issued by the shipping line.
If storage or demurrage occurs due to Client-related issues (delay in document submission, payment delay, or any other Client-related reason), the Client shall pay the corresponding charges; charges apply per day after the free storage period, based on the invoice and SGTD tariff.
During export season, EDR may provide seasonal export support through the facilitation of empty containers.
Additional costs (if applicable):
- First-mile delivery service by truck within Addis Ababa or Modjo and surrounding areas, originating from warehouses or any other places designated by the Client, shall incur an additional cost fully covered by the Client.
- For clients utilizing EDR's first- or last-mile logistics services, the applicable charges shall vary based on the cargo movement route.
- The charge for first-mile delivery to Galaan Multipurpose Port and Modjo dry port shall be communicated to the Client by the Service Provider after receiving the necessary details regarding the cargo origin, type, and weight.
- For any vessel outbound charges, IMO charges, or other fees not included in the port handling payment, the Service Provider shall request the Client to settle the required amount based on the official receipt issued by the port or the shipping line.
Payment terms:
- All charges, including rail transport and customs clearance charges, remain 100% payable in advance.
- Payments shall be calculated based on the Commercial Bank of Ethiopia's daily selling exchange rate on the date the wagon or train number is provided.
- If the exchange rate changes between the payment and the wagon assignment date, adjustments will be made accordingly.
- Any additional costs incurred due to customs issues or port delays shall be borne by the Client and paid based on actual costs, supported by official receipts, within 10 days.
- Late payment incurs a penalty of 10%.`,
    ),
    a(
      "contract-documents",
      "Contract Documents",
      `The following documents shall constitute the contract between the Client and the Service Provider:
- Any amendments made to this contract (if applicable).
- This Contract Agreement.
- Final minutes of negotiation (if applicable).
In the event of any discrepancy between these documents, they shall be interpreted with priority in the order listed above.`,
    ),
    a(
      "documentation",
      "Documentation Requirements",
      `Consignment Note (cargo handover document).
Payment summary prepared as per the agreed tariff, if required.`,
    ),
    a(
      "consignment-notes",
      "Consignment Notes",
      `The Service Provider must certify the taking over and handing over of the container cargo on the Freight Carriage Acceptance Sheet of EDR in an appropriate manner and provide it to the Client.
The Freight Carriage Acceptance Sheet shall be prima facie evidence of the receipt of the container cargo by the Service Provider and of the kind, number, and weight of the goods.
Upon delivery of the cargo to the Client, the Cargo Handover Out Voucher signed by both parties shall serve as evidence of cargo receipt.`,
    ),
    a(
      "amendment",
      "Amendment",
      `This contract can be amended by mutual agreement.
Notwithstanding the above, the Service Provider may revise transport tariffs due to operational and regulatory changes by providing at least five (5) working days' prior written notice to the Client.`,
    ),
    a(
      "termination",
      "Termination of Contract",
      `The contract may be terminated:
- By mutual agreement.
- Upon completion of the contract period or agreed cargo shipments.
- If either party breaches fundamental terms.
If terminated for cause, the terminating party must issue a 15-day written notice specifying the breach and allow an opportunity to cure, if applicable.`,
    ),
    a(
      "effectiveness",
      "Contract Effectiveness",
      `The contract is valid once signed by both parties.`,
    ),
    a(
      "duration",
      "Contract Period",
      `Valid until August 31, {{contractYear}}, with a possible extension upon mutual agreement.`,
    ),
    a(
      "disputes",
      "Settlement of Disputes",
      `Disputes shall be settled amicably.
If amicable settlement fails, disputes shall be submitted to the Federal Court located in Addis Ababa.
The signatories confirm that they are fully authorized to sign and execute this Contract Agreement; the power of attorney of the signatories for the parties is enclosed with this contract agreement.`,
    ),
  ],
};

/* ─────────────────────────── INTERCITY / CONTAINER ───────────────────────── */

const INTERCITY_CONTAINER: ContractTemplateSeed = {
  code: "INTERCITY_CONTAINER",
  name: "Container Intercity Contract",
  description:
    "Domestic (intercity) container transport by railway between Ethiopian terminals — Galaan Multipurpose Port, Modjo dry port, and Dire Dawa — including empty repositioning.",
  documentTitle: "Intercity Container Transport Service by Railway",
  whereasClauses: [
    "The Client has requested and agreed to the transportation of container cargo between the agreed Ethiopian railway terminals (Galaan Multipurpose Port (GMP), Modjo dry port, and Dire Dawa), including the repositioning of empty containers between those terminals, using the Addis Ababa–Djibouti railway line within Ethiopia.",
    "The Service Provider has agreed to transport the container cargo as per the terms of this contract.",
  ],
  articles: [
    a(
      "objective",
      "Objective and Scope of the Services",
      `To provide domestic railway transportation services for 40ft and/or 20ft full containers between the agreed Ethiopian terminals (Galaan Multipurpose Port (GMP), Modjo dry port, and Dire Dawa), and the repositioning of empty containers between those terminals.
The scope of the services comprises:
- Railway transport service between the agreed origin and destination terminals.
- Cargo handling at Galaan Multipurpose Port (GMP).`,
    ),
    a(
      "client-obligations",
      "Obligations of the Client",
      `Give written/email/electronic shipment instructions to the Service Provider for transportation of container cargo between the agreed terminals.
Prepare all necessary documents and facilities for shipment.
Ensure the minimum supply of containers per shipment agreed with the Service Provider for the selected loading terminal and destination.
One flat wagon must carry either one 40ft container or two 20ft containers.
If two 20ft containers are loaded on one flat wagon, their weight difference must not exceed 10 tons.
Ensure timely loading and unloading of cargo.
Assign representatives at both ends to oversee container handover and ensure the necessary arrangements for cargo reception at the destination upon arrival.
Maintain and provide detailed cargo information (type, weight, destination, etc.).
Be responsible for cargo handling, loading, and unloading of both empty and full containers at Modjo and Dire Dawa dry port.
Book wagons at least five (5) days in advance.
Ensure containers are ready one day before the planned loading date.
Collect the full container from Galaan Multipurpose Port (GMP) within three (3) calendar days from the day following the arrival notice.
If the Client fails to collect the container within the specified period, the Service Provider shall have the right to reposition the container to any location it deems appropriate; in such case, the Service Provider shall not be held responsible for any damage or loss arising from such repositioning.
If the Client fails to collect the container from Galaan Multipurpose Port within the specified period, the Client shall be liable to pay demurrage charges of 15 USD per day per 20ft container and 27 USD per day per 40ft container, calculated based on the Commercial Bank of Ethiopia's daily selling exchange rate on the date of payment.
In the event the Client fails to collect the container(s) within the specified period, the Client shall be liable to pay double handling charges of 27 USD per 20ft container per handling or 40 USD per 40ft container per handling.
Collect the containers within one day at Dire Dawa and Modjo dry port, or make the necessary payment to the dry port as per the standard of the dry port.
Once empty containers are returned from the Client's premises and stored at a dry port while awaiting train allocation, any demurrage and/or storage charges incurred from the dry port thereafter shall be the sole responsibility of the Client.
Provide clean empty containers that meet the receiving terminal's standards; additional cleaning costs incurred due to non-compliance will be borne by the Client.
Ensure containers are structurally intact and meet weight distribution requirements.
Prohibited cargo: cargo covered with tarpaulin is not allowed due to safety risks.
Notify the Service Provider forty-eight (48) hours in advance before wagon booking if transporting hazardous or valuable goods.
If a booked wagon is not loaded due to Client-related issues, including but not limited to a damaged container, missing lock, unpaid demurrage, port system errors, or incomplete documentation and submission, the Client shall be charged 100% of the total price of the reserved wagon.
Refund requests before wagon booking require an official request, with a 3% administrative fee deducted. If the refund is due to the Service Provider, the Client shall receive a full refund. Refunds not requested and completed within six months shall be considered waived.
Pay 100% of the transportation fee in advance for each train set.
Settle additional penalties due to non-compliance within ten (10) days of invoice issuance.
Late payment incurs a penalty of an additional 10%.`,
    ),
    a(
      "provider-obligations",
      "Obligations of the Service Provider",
      `Assign the necessary voyage based on the operational schedule and cargo demand, and notify the train schedule 48 hours in advance.
Provide a list of wagons/voyage or train number 24 hours in advance and update corrections 12 hours before arrival.
Provide safe transportation of the containers.
Deliver the cargo within two (2) days after train departure, provided that all required documents are submitted on time and no unforeseen circumstances or events occur.
In the event of export cargo operations, the Service Provider may prioritize the loading of export containers during the loading of empty containers and the unloading of containers from the train at Galaan Multipurpose Port.
The Service Provider reserves the right to refuse the transportation of any cargo classified as dangerous goods.
If any operational, technical, or mechanical problem occurs throughout the transit, notify the Client and the relevant authorities and arrange cargo transfer within four (4) days.
Provide accident or defect reports if needed.
Buy cargo liability insurance for each wagon.`,
    ),
    a(
      "force-majeure",
      "Force Majeure",
      `Neither party shall be liable for delays or non-performance caused by force majeure events beyond their reasonable control.
Force majeure shall be interpreted in accordance with the Ethiopian Civil Code.`,
    ),
    a(
      "pricing",
      "Contract Price and Terms of Payment",
      `The applicable rate per 40ft container or per two (2) 20ft containers for the agreed route is set out in the Rate Schedule immediately below, expressed as a unit price per origin → destination lane and per container.
If cargo exceeds 40 tons per two 20ft containers of gross weight, additional charges apply proportionally.
Gross weight shall be the total sum of cargo, packing, and container tare weight.
Payment for any additional tonnage shall be made in advance before the container is loaded onto the wagon.
The price of loading and unloading and container handling at Modjo and Dire Dawa dry port is not part of this contract; it is the Client's responsibility.
Additional costs (if applicable):
- Last-mile delivery service by truck from the destination terminal to the Client's premises shall incur an additional cost, fully covered by the Client.
- For clients utilizing EDR's last-mile logistics services, the applicable charges shall vary based on the cargo movement route and shall be communicated to the Client by the Service Provider after receiving the necessary details regarding the cargo destination, type, and weight.
All payments shall be made one hundred percent (100%) in advance.
Payment may be made in Ethiopian Birr based on the Commercial Bank of Ethiopia's daily selling exchange rate on the date the wagon or train number is provided; if the exchange rate changes between the payment and the wagon assignment date, adjustments will be made accordingly.`,
    ),
    a(
      "contract-documents",
      "Contract Documents",
      `The following documents constitute this contract:
- Amendments (if any).
- This Contract Agreement.
- Final minutes of negotiation (if any).
If there is any discrepancy between the documents, they shall be interpreted with priority in the order listed above.`,
    ),
    a(
      "documentation",
      "Documentation Requirements",
      `Equipment Interchange Receipt, Railway Waybill, Container Carriage Acceptance Sheet, and incidental charges (if any).
Payment summary as per the agreed contract price (if required).`,
    ),
    a(
      "consignment-notes",
      "Consignment Notes",
      `The Service Provider must certify the taking over and handing over of the container cargo on the Freight Carriage Acceptance Sheet of EDR in an appropriate manner and provide it to the Client.
The Freight Carriage Acceptance Sheet shall be prima facie evidence of the receipt of the container cargo by the Service Provider and of the kind, number, and weight of the goods.
Upon delivery of the cargo to the Client, the Cargo Handover Out Voucher signed by both parties shall serve as evidence of cargo receipt.`,
    ),
    a(
      "amendment",
      "Amendment",
      `This contract can be amended by mutual agreement.
Notwithstanding the above, the Service Provider may revise transport tariffs due to operational and regulatory changes by providing at least five (5) working days' prior written notice to the Client.`,
    ),
    a(
      "termination",
      "Termination of Contract",
      `The contract may be terminated:
- By mutual agreement.
- Upon completion of the contract period or agreed cargo shipments.
- If either party breaches fundamental terms.`,
    ),
    a(
      "effectiveness",
      "Contract Effectiveness",
      `The contract is valid once signed by both parties.`,
    ),
    a(
      "duration",
      "Contract Period",
      `Valid until August 31, {{contractYear}}, with a possible extension upon mutual agreement.`,
    ),
    a(
      "disputes",
      "Settlement of Disputes",
      `Disputes shall be settled amicably.
If unresolved, disputes shall be taken to the Federal Court in Addis Ababa.`,
    ),
  ],
};

export const CONTRACT_TEMPLATE_DEFAULTS: ContractTemplateSeed[] = [
  IMPORT_BULK,
  EXPORT_BULK,
  INTERCITY_BULK,
  IMPORT_CONTAINER,
  EXPORT_CONTAINER,
  INTERCITY_CONTAINER,
];
