Class: GlobalSign::DVOrder::Request
- Inherits:
-
Request
- Object
- Request
- GlobalSign::DVOrder::Request
show all
- Defined in:
- lib/global_sign/dv_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:, order_kind:, validity_period_months:, csr:, approver_email:, order_id:, renewal_target_order_id: nil, contract_info: nil) ⇒ Request
Returns a new instance of Request.
6
7
8
9
10
11
12
13
14
15
|
# File 'lib/global_sign/dv_order/request.rb', line 6
def initialize(product_code:, order_kind:, validity_period_months:, csr:, approver_email:, order_id:, renewal_target_order_id: nil, contract_info: nil)
@product_code = product_code
@order_kind = order_kind
@validity_period_months = validity_period_months
@csr = csr
@approver_email = approver_email
@order_id = order_id
@renewal_target_order_id = renewal_target_order_id
@contract_info = contract_info || GlobalSign.contract
end
|
Instance Method Details
#action ⇒ Object
21
22
23
|
# File 'lib/global_sign/dv_order/request.rb', line 21
def action
'DVOrder'
end
|
#params ⇒ Object
29
30
31
32
33
34
35
36
|
# File 'lib/global_sign/dv_order/request.rb', line 29
def params
@params = {
OrderRequestParameter: order_request_parameter,
OrderID: @order_id,
ApproverEmail: @approver_email,
ContactInfo: contact_info
}
end
|
#path ⇒ Object
17
18
19
|
# File 'lib/global_sign/dv_order/request.rb', line 17
def path
'ServerSSLService'
end
|
25
26
27
|
# File 'lib/global_sign/dv_order/request.rb', line 25
def
:OrderRequestHeader
end
|