Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from .offer_term_info import OfferTermInfo
class MonetaryCredit(OfferTermInfo):
"""Indicates that this is a monetary credit offer.
:param effective_date: Indicates the date from which the offer term is
effective.
:type effective_date: datetime
:param name: Constant filled by server.
:type name: str
:param credit: The amount of credit provided under the terms of the given
offer level.
:type credit: decimal.Decimal
:param excluded_meter_ids: An array of meter ids that are excluded from
the given offer terms.
:type excluded_meter_ids: list[str]
"""
_validation = {
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from .offer_term_info import OfferTermInfo
class MonetaryCommitment(OfferTermInfo):
"""Indicates that a monetary commitment is required for this offer.
:param effective_date: Indicates the date from which the offer term is
effective.
:type effective_date: datetime
:param name: Constant filled by server.
:type name: str
:param tiered_discount: The list of key/value pairs for the tiered meter
rates, in the format 'key':'value' where key = price, and value = the
corresponding discount percentage. This field is used only by offer terms
of type 'Monetary Commitment'.
:type tiered_discount: dict[str, decimal.Decimal]
:param excluded_meter_ids: An array of meter ids that are excluded from
the given offer terms.
:type excluded_meter_ids: list[str]
"""
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from .offer_term_info import OfferTermInfo
class RecurringCharge(OfferTermInfo):
"""Indicates a recurring charge is present for this offer.
:param effective_date: Indicates the date from which the offer term is
effective.
:type effective_date: datetime
:param name: Constant filled by server.
:type name: str
:param recurring_charge: The amount of recurring charge as per the offer
term.
:type recurring_charge: int
"""
_validation = {
'name': {'required': True},
}
def __init__(self, effective_date=None):
super(OfferTermInfo, self).__init__()
self.effective_date = effective_date
self.name = None