Class: DIDWW::Resource::DidHistory

Inherits:
Base
  • Object
show all
Defined in:
lib/didww/resource/did_history.rb

Overview

Immutable ownership-history records for DIDs in the customer’s account. Introduced in API 2026-04-16. Records are retained for the last 90 days only.

Available filters (server-side):

did_number (eq), action (eq), method (eq),
created_at_gteq, created_at_lteq

Constant Summary collapse

ACTION_ASSIGNED =
'assigned'
ACTION_RENEWED =
'renewed'
ACTION_CANCELED =
'canceled'
ACTION_REMOVED =
'removed'
ACTION_BILLING_CYCLES_COUNT_CHANGED =
'billing_cycles_count_changed'
ACTION_RESTORED =
'restored'
ACTIONS =
[
  ACTION_ASSIGNED,
  ACTION_RENEWED,
  ACTION_CANCELED,
  ACTION_REMOVED,
  ACTION_BILLING_CYCLES_COUNT_CHANGED,
  ACTION_RESTORED
].freeze
METHOD_SYSTEM =
'system'
METHOD_API2 =
'api2'
METHOD_API3 =
'api3'
METHOD_STAFF =
'staff'
METHOD_USER_PANEL =
'user_panel'
METHODS =
[
  METHOD_SYSTEM,
  METHOD_API2,
  METHOD_API3,
  METHOD_STAFF,
  METHOD_USER_PANEL
].freeze

Class Method Summary collapse

Methods inherited from Base

#as_json_api

Class Method Details

.table_nameObject



42
43
44
# File 'lib/didww/resource/did_history.rb', line 42

def self.table_name
  'did_history'
end