opti/panda_doc

View on GitHub
lib/panda_doc/objects/recipient.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true

module PandaDoc
  module Objects
    class Recipient < Base
      attribute? :id, Types::Coercible::String.optional
      attribute? :email, Types::Coercible::String
      attribute? :first_name, Types::Coercible::String.optional
      attribute? :last_name, Types::Coercible::String.optional
      attribute? :recipient_type, Types::Coercible::String
      attribute? :has_completed, Types::Params::Bool
      attribute? :role, Types::Coercible::String.optional
      attribute? :type, Types::Coercible::String.optional
      attribute? :roles, Types::Array.of(Types::Coercible::String)
      attribute? :contact_id, Types::Coercible::String.optional
      attribute? :shared_link, Types::Coercible::String.optional
    end
  end
end