REPP: Add renew exp_date sanity check

This commit is contained in:
Karl Erik Õunapuu 2021-03-23 13:14:31 +02:00
parent 016c5e802c
commit 546330b178
No known key found for this signature in database
GPG key ID: C9DD647298A34764
7 changed files with 15 additions and 13 deletions

View file

@ -8,6 +8,7 @@ module Serializers
@sponsored = sponsored
end
# rubocop:disable Metrics/AbcSize
def to_json(obj = domain)
json = {
name: obj.name, registrant: obj.registrant.code, created_at: obj.created_at,
@ -19,6 +20,7 @@ module Serializers
json[:transfer_code] = obj.auth_info if @sponsored
json
end
# rubocop:enable Metrics/AbcSize
def contacts
domain.domain_contacts.map { |c| { code: c.contact_code_cache, type: c.type } }