Class: Jamf::PrestagePurchasingData

Inherits:
JSONObject show all
Includes:
Lockable
Defined in:
lib/jamf/api/json_objects/prestage_purchasing_data.rb

Constant Summary collapse

OBJECT_MODEL =
{

  # @!attribute id
  #   @return [Integer]
  id: {
    class: :j_id,
    identifier: :primary
  },

  # @!attribute purchased
  #   @param [Boolean]
  #   @return [Boolean]
  purchased: {
    class: :boolean
  },

  # @!attribute leased
  #   @param [Boolean]
  #   @return [Boolean]
  leased: {
    class: :boolean
  },

  # @!attribute appleCareId
  #   @param [String]
  #   @return [String]
  appleCareId: {
    class: :string
  },

  # @!attribute poNumber
  #   @param [String]
  #   @return [String]
  poNumber: {
    class: :string
  },

  # @!attribute vendor
  #   @param [String]
  #   @return [String]
  vendor: {
    class: :string
  },

  # @!attribute purchasePrice
  #   @param [String]
  #   @return [String]
  purchasePrice: {
    class: :string
  },

  # @!attribute purchasingAccount
  #   @param [String]
  #   @return [String]
  purchasingAccount: {
    class: :string
  },

  # @!attribute poDate
  #   @param [String]
  #   @return [String]
  poDate: {
    class: Jamf::Timestamp
  },

  # @!attribute warrantyExpiresDate
  #   @param [String]
  #   @return [String]
  warrantyDate: {
    class: Jamf::Timestamp
  },

  # @!attribute leaseExpiresDate
  #   @param [String]
  #   @return [String]
  leasesDate: {
    class: Jamf::Timestamp
  },

  # @!attribute lifeExpectancy
  #   @param [String]
  #   @return [String]
  lifeExpectancy: {
    class: :integer
  },

  # @!attribute purchasingContact
  #   @param [String]
  #   @return [String]
  purchasingContact: {
    class: :string
  }
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#appleCareIdString

Parameters:

Returns:



# File 'lib/jamf/api/json_objects/prestage_purchasing_data.rb', line 57

#idInteger

Returns:

  • (Integer)


# File 'lib/jamf/api/json_objects/prestage_purchasing_data.rb', line 36

#leasedBoolean

Parameters:

  • (Boolean)

Returns:

  • (Boolean)


# File 'lib/jamf/api/json_objects/prestage_purchasing_data.rb', line 50

#leaseExpiresDateString

Parameters:

Returns:



# File 'lib/jamf/api/json_objects/prestage_purchasing_data.rb', line 106

#lifeExpectancyString

Parameters:

Returns:



# File 'lib/jamf/api/json_objects/prestage_purchasing_data.rb', line 113

#poDateString

Parameters:

Returns:



# File 'lib/jamf/api/json_objects/prestage_purchasing_data.rb', line 92

#poNumberString

Parameters:

Returns:



# File 'lib/jamf/api/json_objects/prestage_purchasing_data.rb', line 64

#purchasedBoolean

Parameters:

  • (Boolean)

Returns:

  • (Boolean)


# File 'lib/jamf/api/json_objects/prestage_purchasing_data.rb', line 43

#purchasePriceString

Parameters:

Returns:



# File 'lib/jamf/api/json_objects/prestage_purchasing_data.rb', line 78

#purchasingAccountString

Parameters:

Returns:



# File 'lib/jamf/api/json_objects/prestage_purchasing_data.rb', line 85

#purchasingContactString

Parameters:

Returns:



# File 'lib/jamf/api/json_objects/prestage_purchasing_data.rb', line 120

#vendorString

Parameters:

Returns:



# File 'lib/jamf/api/json_objects/prestage_purchasing_data.rb', line 71

#versionLockObject (readonly) Originally defined in module Lockable

Returns the value of attribute versionLock.

#warrantyExpiresDateString

Parameters:

Returns:



# File 'lib/jamf/api/json_objects/prestage_purchasing_data.rb', line 99

Instance Method Details

#initialize(data, cnx: Jamf.cnx) ⇒ Object Originally defined in module Lockable

#to_jamfObject Originally defined in module Lockable