Sha256: d9bec749a8d4b6dbb674b847e603cdfd9b216530a45971300e983382538bca04
Contents?: true
Size: 544 Bytes
Versions: 7
Compression:
Stored size: 544 Bytes
Contents
require "digicert/base" module Digicert class OrderCancellation < Digicert::Base def create request_klass.new( :put, resource_path, default_attributes.merge(attributes) ).run end def self.create(order_id:, note:, **attributes) new(attributes.merge(resource_id: order_id, note: note)).create end private def resource_path ["order", "certificate", resource_id, "status"].join("/") end def default_attributes { status: "CANCELED", send_emails: false } end end end
Version data entries
7 entries across 7 versions & 1 rubygems