Class: PCPServerSDK::Models::CustomerAccount

Inherits:
Object
  • Object
show all
Defined in:
lib/PCP-server-Ruby-SDK/models/customer_account.rb

Overview

Object containing data related to the account the customer has with you.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ CustomerAccount

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash



32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# File 'lib/PCP-server-Ruby-SDK/models/customer_account.rb', line 32

def initialize(attributes = {})
  if (!attributes.is_a?(Hash))
    fail ArgumentError, "The input argument (attributes) must be a hash in `CustomerAccount` initialize method"
  end

  # check to see if the attribute exists and convert string to symbol for hash key
  attributes = attributes.each_with_object({}) { |(k, v), h|
    if (!self.class.attribute_map.key?(k.to_sym))
      fail ArgumentError, "`#{k}` is not a valid attribute in `CustomerAccount`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
    end
    h[k.to_sym] = v
  }

  if attributes.key?(:'create_date')
    self.create_date = attributes[:'create_date']
  end
end

Instance Attribute Details

#create_dateObject

Creation date and time of the customer account in ISO 8601 format (UTC).



9
10
11
# File 'lib/PCP-server-Ruby-SDK/models/customer_account.rb', line 9

def create_date
  @create_date
end

Class Method Details

.acceptable_attributesObject

Returns all the JSON keys this model knows about



19
20
21
# File 'lib/PCP-server-Ruby-SDK/models/customer_account.rb', line 19

def self.acceptable_attributes
  attribute_map.values
end

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.



12
13
14
15
16
# File 'lib/PCP-server-Ruby-SDK/models/customer_account.rb', line 12

def self.attribute_map
  {
    :'create_date' => :'createDate'
  }
end

.openapi_typesObject

Attribute type mapping.



24
25
26
27
28
# File 'lib/PCP-server-Ruby-SDK/models/customer_account.rb', line 24

def self.openapi_types
  {
    :'create_date' => :'Time'
  }
end