Class: GlobalSign::EVOrder::Request

Inherits:
Request
  • Object
show all
Defined in:
lib/global_sign/ev_order/request.rb

Constant Summary collapse

KIND_RENEWAL =
'renewal'.freeze

Instance Method Summary collapse

Methods inherited from Request

#auth_token_hash, #auth_token_params, #to_xml

Constructor Details

#initialize(product_code: 'EV', order_kind:, validity_period_months:, csr:, renewal_target_order_id: nil, organization_info_ev:, requestor_info:, approver_info:, authorized_signer_info:, jurisdiction_info:, contract_info: nil) ⇒ Request

Returns a new instance of Request.



6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/global_sign/ev_order/request.rb', line 6

def initialize(product_code: 'EV', order_kind:, validity_period_months:, csr:, renewal_target_order_id: nil, organization_info_ev:, requestor_info:, approver_info:, authorized_signer_info:, jurisdiction_info:, contract_info: nil)
  @product_code            = product_code
  @order_kind              = order_kind
  @validity_period_months  = validity_period_months
  @csr                     = csr
  @renewal_target_order_id = renewal_target_order_id
  @organization_info_ev    = organization_info_ev
  @requestor_info          = requestor_info
  @approver_info           = approver_info
  @authorized_signer_info  = authorized_signer_info
  @jurisdiction_info       = jurisdiction_info
  @contract_info           = contract_info || GlobalSign.contract
end

Instance Method Details

#actionObject



24
25
26
# File 'lib/global_sign/ev_order/request.rb', line 24

def action
  'EVOrder'
end

#paramsObject



32
33
34
35
36
37
38
39
40
41
42
# File 'lib/global_sign/ev_order/request.rb', line 32

def params
  @params = {
    OrderRequestParameter: order_request_parameter,
    OrganizationInfoEV:    organization_info_ev,
    RequestorInfo:         requestor_info,
    ApproverInfo:          approver_info,
    AuthorizedSignerInfo:  authorized_signer_info,
    JurisdictionInfo:      jurisdiction_info,
    ContactInfo:           contact_info
  }
end

#pathObject



20
21
22
# File 'lib/global_sign/ev_order/request.rb', line 20

def path
  'ServerSSLService'
end

#request_headerObject



28
29
30
# File 'lib/global_sign/ev_order/request.rb', line 28

def request_header
  :OrderRequestHeader
end