All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- [Breaking changes] Remove Hubspot models
- Add configuration option for request timeout
- Add
#iban
and#update_iban
toPetParent
- Add /iban endpoints in fake API
- Add support for Ruby 3.2
- Add support for
.referrers
method onPetParent
in fake model
- Add support for
.referrers
method onPetParent
- Add support for
.search
method onPetContract
- Fix error parsing if HTTP client returns no response
- Add city attribute to PetParent model
- Expose cache clearing API on client/model
- Remove useless double splat argument usage on concern causing problem for ruby version >= 3
- add support for
payment_interval_months
attribute onPetContract
- add active-record like comparison for models
- add
KB::Referral
model to create a referral on a PetParent - add
PetParent#referrals
to get a list of referrals
- Rename gems to barkibu-kb / barkibu-kb-fake
- Add
Hubspot
model to retrieve information from Hubspot Relationship endpoint - Change
husbpot_id
attribute on PetContract, now it comes from the Hubspot Relationship
- Fix Cache invalidation deleting wrong key
- Add
husbpot_id
attribute on PetContract
- Fix Merged Pet Parent instanciation
- Convert API exception into KB::Error for admin
merge!
endpoint
- Add admin
merge!
method on PetParent
- Add
affiliate_code
attribute on PetParent
- Add
phone_number_verified
andemail_verified
attributes on PetParent
- Expose product_key on PetContract
- Add KB::Product Entity
- Add conversion_utm_adgroup_id and conversion_utm_campaign_id to PetContract
- Add conversionutm* attributes to PetContract
- Fix kb-fake pet parent upsert with partial identification
- Fix dsl-configurable positional arg deprecated warning
- Add new Error classes
- Emulate the same behavior on Pet Parent Upsert
- Add price_discount_yearly PetContract attribute
- Switch to consume petfamily based consultation endpoint
- Add affiliate PetContract attributes
- Fix ActiveModel dirty implementation
- Fix KB::Error not accepting nil body
- Breed - Add external_id field
- PetParent - Add more KB fields
- Breeds - Add server endpoint for tests on fake gem
- Breeds - Adjust fields definition to petfamily domain ones
- Breeds - Change client resolver template to use petfamily domain
- Assessment - Parse time from date
- Add Pet Upsert method
- Add Upsert Endpoint
- Add cache to client request method
- Add Dry gem and setup config
- Add cache as gem config settings
- Add log level as gem config settings
- Improve KB Exceptions definitions
- Fix planName attributes wrongly named on Plan
- Fix buyable and planLifeInMonths attributes wrongly named on Plan
- Exposes
KB::PetContract
entity - Add
contracts
method toKB::Pet
andKB::PetParent
- Fix Fake Consultation wrong endpoint version
- Extracted
kb-fake
gem for client test purposes
- Fix missing deleted_at accessors on PetParent and Pet entities
- Exposes
Destroyable
concerns on PetParent and Pet entities
- Exposes
FindOrCreatable
concerns on PetParent and Pet entities
- Fix Assessment not properly localized
- Fix missing ActiveSupport dependency loading
- Fix custom array types returning single element
- Test dependency extracted
- Fix gem loading order for tests
- Provide FakeApi for client implementation testing
- Add Pet entity
- Add
AsKBWrapper
concern for easy activerecord wrapping - Add
UniquenessValidator
for easy validation on wrapping model AsKBWrapper
- addskip_callback
option
0.1.1 - 2020-01-12
- Init Version: Breeds and limited PetParents/Consultations