Sha256: f897bdcd1a83e9a11b488286e17b647203ebd5648c83cb864473b612419153eb
Contents?: true
Size: 749 Bytes
Versions: 1
Compression:
Stored size: 749 Bytes
Contents
require "digicert/base" module Digicert class EmailValidation < Digicert::Base include Digicert::Actions::All def self.all(order_id:, **filter_params) new(order_id: order_id, params: filter_params).all end def self.valid?(token:, email:) response = Digicert::Request.new( :put, ["email-validation", token].join("/"), **{ params: { email: email } }, ).run response.code.to_i == 204 end private attr_reader :order_id def extract_local_attribute_ids @order_id = attributes.delete(:order_id) end def resources_key "emails" end def resource_path ["order", "certificate", order_id, "email-validation"].join("/") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
digicert-1.0.0 | lib/digicert/email_validation.rb |