#include "components/autofill/core/browser/data_model/credit_card_benefit.h"
#include "components/autofill/core/common/autofill_clock.h"
namespace autofill {
CreditCardBenefitBase::CreditCardBenefitBase(
BenefitId benefit_id,
LinkedCardInstrumentId linked_card_instrument_id,
std::u16string benefit_description,
base::Time start_time,
base::Time expiry_time)
: … { … }
CreditCardBenefitBase::CreditCardBenefitBase(const CreditCardBenefitBase&) =
default;
CreditCardBenefitBase& CreditCardBenefitBase::operator=(
const CreditCardBenefitBase&) = default;
CreditCardBenefitBase::CreditCardBenefitBase(CreditCardBenefitBase&&) = default;
CreditCardBenefitBase& CreditCardBenefitBase::operator=(
CreditCardBenefitBase&&) = default;
CreditCardBenefitBase::~CreditCardBenefitBase() = default;
bool CreditCardBenefitBase::IsActiveBenefit() const { … }
bool CreditCardBenefitBase::IsValidForWriteFromSync() const { … }
CreditCardFlatRateBenefit::CreditCardFlatRateBenefit(
BenefitId benefit_id,
LinkedCardInstrumentId linked_card_instrument_id,
std::u16string benefit_description,
base::Time start_time,
base::Time expiry_time)
: … { … }
CreditCardFlatRateBenefit::CreditCardFlatRateBenefit(
const CreditCardFlatRateBenefit&) = default;
CreditCardFlatRateBenefit& CreditCardFlatRateBenefit::operator=(
const CreditCardFlatRateBenefit&) = default;
CreditCardFlatRateBenefit::CreditCardFlatRateBenefit(
CreditCardFlatRateBenefit&&) = default;
CreditCardFlatRateBenefit& CreditCardFlatRateBenefit::operator=(
CreditCardFlatRateBenefit&&) = default;
CreditCardFlatRateBenefit::~CreditCardFlatRateBenefit() = default;
bool CreditCardFlatRateBenefit::IsValidForWriteFromSync() const { … }
CreditCardCategoryBenefit::CreditCardCategoryBenefit(
BenefitId benefit_id,
LinkedCardInstrumentId linked_card_instrument_id,
BenefitCategory benefit_category,
std::u16string benefit_description,
base::Time start_time,
base::Time expiry_time)
: … { … }
CreditCardCategoryBenefit::CreditCardCategoryBenefit(
const CreditCardCategoryBenefit&) = default;
CreditCardCategoryBenefit& CreditCardCategoryBenefit::operator=(
const CreditCardCategoryBenefit&) = default;
CreditCardCategoryBenefit::CreditCardCategoryBenefit(
CreditCardCategoryBenefit&&) = default;
CreditCardCategoryBenefit& CreditCardCategoryBenefit::operator=(
CreditCardCategoryBenefit&&) = default;
CreditCardCategoryBenefit::~CreditCardCategoryBenefit() = default;
bool CreditCardCategoryBenefit::IsValidForWriteFromSync() const { … }
CreditCardMerchantBenefit::CreditCardMerchantBenefit(
BenefitId benefit_id,
LinkedCardInstrumentId linked_card_instrument_id,
std::u16string benefit_description,
base::flat_set<url::Origin> merchant_domains,
base::Time start_time,
base::Time expiry_time)
: … { … }
CreditCardMerchantBenefit::CreditCardMerchantBenefit(
const CreditCardMerchantBenefit&) = default;
CreditCardMerchantBenefit& CreditCardMerchantBenefit::operator=(
const CreditCardMerchantBenefit&) = default;
CreditCardMerchantBenefit::CreditCardMerchantBenefit(
CreditCardMerchantBenefit&&) = default;
CreditCardMerchantBenefit& CreditCardMerchantBenefit::operator=(
CreditCardMerchantBenefit&&) = default;
CreditCardMerchantBenefit::~CreditCardMerchantBenefit() = default;
bool CreditCardMerchantBenefit::IsValidForWriteFromSync() const { … }
}