Class: Digicert::Order

Inherits:
Base
  • Object
show all
Extended by:
Findable
Includes:
Actions::All, Actions::Fetch
Defined in:
lib/digicert/order.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Findable

find, find_by_object

Methods included from Actions::Fetch

#fetch

Methods included from Actions::Base

#included

Methods included from Actions::All

#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

#createObject



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_validationsObject



42
43
44
# File 'lib/digicert/order.rb', line 42

def email_validations
  Digicert::EmailValidation.all(order_id: resource_id)
end

#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