# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::Consumption::Mgmt::V2018_11_01_preview
  module Models
    #
    # Current entity level details
    #
    class Enrollment

      include MsRestAzure

      # @return [DateTime] Enrollment Start Date
      attr_accessor :start_date

      # @return [DateTime] Enrollment End Date
      attr_accessor :end_date

      # @return [String] The currency associated with enrollment
      attr_accessor :currency

      # @return [String] The channel for Enrollment
      attr_accessor :channel

      # @return [EnrollmentPolicies] The attributes associated with legacy
      # enrollment.
      attr_accessor :policies

      # @return [String] The language for Enrollment
      attr_accessor :language

      # @return [String] The countryCode for Enrollment
      attr_accessor :country_code

      # @return [String] Enrollment status
      attr_accessor :status

      # @return [String] Enrollment billing cycle
      attr_accessor :billing_cycle


      #
      # Mapper for Enrollment class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'Enrollment',
          type: {
            name: 'Composite',
            class_name: 'Enrollment',
            model_properties: {
              start_date: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'startDate',
                type: {
                  name: 'DateTime'
                }
              },
              end_date: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'endDate',
                type: {
                  name: 'DateTime'
                }
              },
              currency: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'currency',
                type: {
                  name: 'String'
                }
              },
              channel: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'channel',
                type: {
                  name: 'String'
                }
              },
              policies: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'policies',
                type: {
                  name: 'Composite',
                  class_name: 'EnrollmentPolicies'
                }
              },
              language: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'language',
                type: {
                  name: 'String'
                }
              },
              country_code: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'countryCode',
                type: {
                  name: 'String'
                }
              },
              status: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'status',
                type: {
                  name: 'String'
                }
              },
              billing_cycle: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'billingCycle',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
