Class: GlobalSign::OVOrder::Request
- Inherits:
-
Request
- Object
- Request
- GlobalSign::OVOrder::Request
show all
- Defined in:
- lib/global_sign/ov_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: 'OV', order_kind:, validity_period_months:, csr:, renewal_target_order_id: nil, contract_info: nil, organization_info:) ⇒ Request
Returns a new instance of Request.
6
7
8
9
10
11
12
13
14
|
# File 'lib/global_sign/ov_order/request.rb', line 6
def initialize(product_code: 'OV', order_kind:, validity_period_months:, csr:, renewal_target_order_id: nil, contract_info: nil, organization_info:)
@product_code = product_code
@order_kind = order_kind
@validity_period_months = validity_period_months
@csr = csr
@renewal_target_order_id = renewal_target_order_id
@contract_info = contract_info || GlobalSign.contract
@organization_info = organization_info
end
|
Instance Method Details
#action ⇒ Object
20
21
22
|
# File 'lib/global_sign/ov_order/request.rb', line 20
def action
'OVOrder'
end
|
#params ⇒ Object
28
29
30
31
32
33
34
|
# File 'lib/global_sign/ov_order/request.rb', line 28
def params
@params = {
OrderRequestParameter: order_request_parameter,
ContactInfo: contact_info,
OrganizationInfo: organization_info
}
end
|
#path ⇒ Object
16
17
18
|
# File 'lib/global_sign/ov_order/request.rb', line 16
def path
'ServerSSLService'
end
|
24
25
26
|
# File 'lib/global_sign/ov_order/request.rb', line 24
def
:OrderRequestHeader
end
|