lib/xolphin/api/certificate_requests/certificate_renew.rb in xolphin-api-1.8.0 vs lib/xolphin/api/certificate_requests/certificate_renew.rb in xolphin-api-1.9.0
- old
+ new
@@ -5,10 +5,11 @@
module CertificateRequests
class RenewCertificateRequest
attr_accessor :product, :years, :csr, :dcv_type, :subject_alternative_names, :dcv
attr_accessor :company, :department, :address, :zipcode, :city, :kvk, :reference
attr_accessor :approver_first_name, :approver_last_name, :approver_email, :approver_phone
+ attr_accessor :approver_representative_first_name, :approver_representative_last_name, :approver_representative_email, :approver_representative_phone, :approver_representative_position
def initialize(product, years, csr, dcv_type)
@product = product
@years = years
@csr = csr
@@ -32,10 +33,16 @@
"kvk" => @kvk,
"reference" => @reference,
"approverFirstName" => @approver_first_name,
"approverLastName" => @approver_last_name,
"approverEmail" => @approver_email,
- "approverPhone" => @approver_phone
+ "approverPhone" => @approver_phone,
+ # new validation variables
+ "approverRepresentativeFirstName" => @approver_representative_first_name,
+ "approverRepresentativeLastName" => @approver_representative_last_name,
+ "approverRepresentativeEmail" => @approver_representative_email,
+ "approverRepresentativePhone" => @approver_representative_phone,
+ "approverRepresentativePosition" => @approver_representative_position,
}.reject { |_key, value| value.nil? })
if @subject_alternative_names
result["subjectAlternativeNames"] = @subject_alternative_names.join(",")
end