diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/models/__init__.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/models/__init__.py index a77139a66fcf..69468e3083a6 100644 --- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/models/__init__.py +++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/models/__init__.py @@ -181,6 +181,7 @@ CustomerType, InvoiceStatus, DocumentType, + PaymentMethodFamily, ProductStatusType, BillingFrequency, ProductTransferValidationErrorCode, @@ -291,6 +292,7 @@ 'CustomerType', 'InvoiceStatus', 'DocumentType', + 'PaymentMethodFamily', 'ProductStatusType', 'BillingFrequency', 'ProductTransferValidationErrorCode', diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/models/billing_management_client_enums.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/models/billing_management_client_enums.py index 32c128e1066d..2746104c9028 100644 --- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/models/billing_management_client_enums.py +++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/models/billing_management_client_enums.py @@ -92,6 +92,14 @@ class DocumentType(str, Enum): credit_note = "CreditNote" +class PaymentMethodFamily(str, Enum): + + credits = "Credits" + check_wire = "CheckWire" + credit_card = "CreditCard" + none = "None" + + class ProductStatusType(str, Enum): active = "Active" diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/models/payment_properties.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/models/payment_properties.py index 8b5251d71703..97bc9a5478f0 100644 --- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/models/payment_properties.py +++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/models/payment_properties.py @@ -24,18 +24,27 @@ class PaymentProperties(Model): :vartype amount: ~azure.mgmt.billing.models.Amount :ivar date_property: The date of the payment. :vartype date_property: datetime + :param payment_method_family: The payment method family. Possible values + include: 'Credits', 'CheckWire', 'CreditCard', 'None' + :type payment_method_family: str or + ~azure.mgmt.billing.models.PaymentMethodFamily + :ivar payment_method_type: The type of payment method. + :vartype payment_method_type: str """ _validation = { 'payment_type': {'readonly': True}, 'amount': {'readonly': True}, 'date_property': {'readonly': True}, + 'payment_method_type': {'readonly': True}, } _attribute_map = { 'payment_type': {'key': 'paymentType', 'type': 'str'}, 'amount': {'key': 'amount', 'type': 'Amount'}, 'date_property': {'key': 'date', 'type': 'iso-8601'}, + 'payment_method_family': {'key': 'paymentMethodFamily', 'type': 'str'}, + 'payment_method_type': {'key': 'paymentMethodType', 'type': 'str'}, } def __init__(self, **kwargs): @@ -43,3 +52,5 @@ def __init__(self, **kwargs): self.payment_type = None self.amount = None self.date_property = None + self.payment_method_family = kwargs.get('payment_method_family', None) + self.payment_method_type = None diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/models/payment_properties_py3.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/models/payment_properties_py3.py index 76ebc09376af..113939866c41 100644 --- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/models/payment_properties_py3.py +++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/models/payment_properties_py3.py @@ -24,22 +24,33 @@ class PaymentProperties(Model): :vartype amount: ~azure.mgmt.billing.models.Amount :ivar date_property: The date of the payment. :vartype date_property: datetime + :param payment_method_family: The payment method family. Possible values + include: 'Credits', 'CheckWire', 'CreditCard', 'None' + :type payment_method_family: str or + ~azure.mgmt.billing.models.PaymentMethodFamily + :ivar payment_method_type: The type of payment method. + :vartype payment_method_type: str """ _validation = { 'payment_type': {'readonly': True}, 'amount': {'readonly': True}, 'date_property': {'readonly': True}, + 'payment_method_type': {'readonly': True}, } _attribute_map = { 'payment_type': {'key': 'paymentType', 'type': 'str'}, 'amount': {'key': 'amount', 'type': 'Amount'}, 'date_property': {'key': 'date', 'type': 'iso-8601'}, + 'payment_method_family': {'key': 'paymentMethodFamily', 'type': 'str'}, + 'payment_method_type': {'key': 'paymentMethodType', 'type': 'str'}, } - def __init__(self, **kwargs) -> None: + def __init__(self, *, payment_method_family=None, **kwargs) -> None: super(PaymentProperties, self).__init__(**kwargs) self.payment_type = None self.amount = None self.date_property = None + self.payment_method_family = payment_method_family + self.payment_method_type = None