Log in
Model

CheckoutAgreementsRepository

Magento\CheckoutAgreements\Model\CheckoutAgreementsRepository

What it does

This repository class manages CRUD operations for checkout agreements (terms and conditions) that customers must accept during checkout.

Developers use this class to retrieve active agreements for a store, save new agreements, or delete existing ones.

It handles store-specific agreement filtering and validates that agreements are enabled in the store configuration before returning them.

Public Methods

  • getList()
  • save()
  • delete()
  • deleteById()
  • get()