Class: Digicert::Order
Class Method Summary
collapse
Instance Method Summary
collapse
Methods included from Findable
find, find_by_object
#fetch
#included
#all
Methods inherited from Base
#initialize
Constructor Details
This class inherits a constructor from Digicert::Base
Class Method Details
.create(name_id, attributes) ⇒ Object
26
27
28
|
# File 'lib/digicert/order.rb', line 26
def self.create(name_id, attributes)
new(name_id: name_id, **attributes).create
end
|
Instance Method Details
#cancel(note:, **attrs) ⇒ Object
46
47
48
49
50
|
# File 'lib/digicert/order.rb', line 46
def cancel(note:, **attrs)
Digicert::OrderCancellation.create(
order_id: resource_id, note: note, **attrs,
)
end
|
#create ⇒ Object
22
23
24
|
# File 'lib/digicert/order.rb', line 22
def create
certificate_klass.create(attributes)
end
|
#duplicate(attributes = {}) ⇒ Object
34
35
36
|
# File 'lib/digicert/order.rb', line 34
def duplicate(attributes = {})
Digicert::OrderDuplicator.create(order_id: resource_id, **attributes)
end
|
#duplicate_certificates(attributes = {}) ⇒ Object
38
39
40
|
# File 'lib/digicert/order.rb', line 38
def duplicate_certificates(attributes = {})
Digicert::DuplicateCertificate.all(order_id: resource_id, **attributes)
end
|
#email_validations ⇒ Object
#reissue(attributes = {}) ⇒ Object
30
31
32
|
# File 'lib/digicert/order.rb', line 30
def reissue(attributes = {})
Digicert::OrderReissuer.create(order_id: resource_id, **attributes)
end
|