Skip to content

Commit

Permalink
.NET SDK Resource Provider:'Billing'
Browse files Browse the repository at this point in the history
REST Spec PR 'Azure/azure-rest-api-specs#5682'
REST Spec PR Author 'asarkar84'
REST Spec PR Last commit
  • Loading branch information
adxsdknet committed Apr 17, 2019
1 parent 4bfb268 commit b15357d
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public BillingAccount()
/// include: 'Organization', 'Enrollment'</param>
/// <param name="address">The address associated with billing
/// account.</param>
/// <param name="company">Company Name.</param>
/// <param name="invoiceSections">The invoice sections associated to
/// the billing account. By default this is not populated, unless it's
/// specified in $expand.</param>
Expand All @@ -57,12 +58,13 @@ public BillingAccount()
/// enrollment.</param>
/// <param name="hasReadAccess">Specifies whether the user has read
/// access on billing account.</param>
public BillingAccount(string id = default(string), string name = default(string), string type = default(string), string displayName = default(string), string accountType = default(string), Address address = default(Address), IList<InvoiceSection> invoiceSections = default(IList<InvoiceSection>), IList<BillingProfile> billingProfiles = default(IList<BillingProfile>), Enrollment enrollmentDetails = default(Enrollment), IList<Department> departments = default(IList<Department>), IList<EnrollmentAccount> enrollmentAccounts = default(IList<EnrollmentAccount>), bool? hasReadAccess = default(bool?))
public BillingAccount(string id = default(string), string name = default(string), string type = default(string), string displayName = default(string), string accountType = default(string), Address address = default(Address), string company = default(string), IList<InvoiceSection> invoiceSections = default(IList<InvoiceSection>), IList<BillingProfile> billingProfiles = default(IList<BillingProfile>), Enrollment enrollmentDetails = default(Enrollment), IList<Department> departments = default(IList<Department>), IList<EnrollmentAccount> enrollmentAccounts = default(IList<EnrollmentAccount>), bool? hasReadAccess = default(bool?))
: base(id, name, type)
{
DisplayName = displayName;
AccountType = accountType;
Address = address;
Company = company;
InvoiceSections = invoiceSections;
BillingProfiles = billingProfiles;
EnrollmentDetails = enrollmentDetails;
Expand Down Expand Up @@ -96,6 +98,12 @@ public BillingAccount()
[JsonProperty(PropertyName = "properties.address")]
public Address Address { get; set; }

/// <summary>
/// Gets or sets company Name.
/// </summary>
[JsonProperty(PropertyName = "properties.company")]
public string Company { get; set; }

/// <summary>
/// Gets or sets the invoice sections associated to the billing
/// account. By default this is not populated, unless it's specified in
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,16 @@

namespace Microsoft.Azure.Management.Billing.Models
{
using Microsoft.Rest;
using Microsoft.Rest.Serialization;
using Newtonsoft.Json;
using System.Linq;

/// <summary>
/// The billing property.
/// A billing property resource.
/// </summary>
public partial class BillingProperty
[Rest.Serialization.JsonTransformation]
public partial class BillingProperty : Resource
{
/// <summary>
/// Initializes a new instance of the BillingProperty class.
Expand All @@ -29,6 +32,9 @@ public BillingProperty()
/// <summary>
/// Initializes a new instance of the BillingProperty class.
/// </summary>
/// <param name="id">Resource Id.</param>
/// <param name="name">Resource name.</param>
/// <param name="type">Resource type.</param>
/// <param name="productId">Product Id.</param>
/// <param name="billingTenantId">Billing tenant Id.</param>
/// <param name="billingAccountId">Billing account Id.</param>
Expand All @@ -39,7 +45,8 @@ public BillingProperty()
/// <param name="invoiceSectionName">Invoice Section name.</param>
/// <param name="skuId">SKU Id.</param>
/// <param name="skuDescription">SKU description.</param>
public BillingProperty(string productId = default(string), string billingTenantId = default(string), string billingAccountId = default(string), string billingAccountName = default(string), string billingProfileId = default(string), string billingProfileName = default(string), string invoiceSectionId = default(string), string invoiceSectionName = default(string), string skuId = default(string), string skuDescription = default(string))
public BillingProperty(string id = default(string), string name = default(string), string type = default(string), string productId = default(string), string billingTenantId = default(string), string billingAccountId = default(string), string billingAccountName = default(string), string billingProfileId = default(string), string billingProfileName = default(string), string invoiceSectionId = default(string), string invoiceSectionName = default(string), string skuId = default(string), string skuDescription = default(string))
: base(id, name, type)
{
ProductId = productId;
BillingTenantId = billingTenantId;
Expand All @@ -62,61 +69,61 @@ public BillingProperty()
/// <summary>
/// Gets product Id.
/// </summary>
[JsonProperty(PropertyName = "productId")]
[JsonProperty(PropertyName = "properties.productId")]
public string ProductId { get; private set; }

/// <summary>
/// Gets billing tenant Id.
/// </summary>
[JsonProperty(PropertyName = "billingTenantId")]
[JsonProperty(PropertyName = "properties.billingTenantId")]
public string BillingTenantId { get; private set; }

/// <summary>
/// Gets billing account Id.
/// </summary>
[JsonProperty(PropertyName = "billingAccountId")]
[JsonProperty(PropertyName = "properties.billingAccountId")]
public string BillingAccountId { get; private set; }

/// <summary>
/// Gets billing account name.
/// </summary>
[JsonProperty(PropertyName = "billingAccountName")]
[JsonProperty(PropertyName = "properties.billingAccountName")]
public string BillingAccountName { get; private set; }

/// <summary>
/// Gets billing profile Id.
/// </summary>
[JsonProperty(PropertyName = "billingProfileId")]
[JsonProperty(PropertyName = "properties.billingProfileId")]
public string BillingProfileId { get; private set; }

/// <summary>
/// Gets billing profile name.
/// </summary>
[JsonProperty(PropertyName = "billingProfileName")]
[JsonProperty(PropertyName = "properties.billingProfileName")]
public string BillingProfileName { get; private set; }

/// <summary>
/// Gets invoice Section Id.
/// </summary>
[JsonProperty(PropertyName = "invoiceSectionId")]
[JsonProperty(PropertyName = "properties.invoiceSectionId")]
public string InvoiceSectionId { get; private set; }

/// <summary>
/// Gets invoice Section name.
/// </summary>
[JsonProperty(PropertyName = "invoiceSectionName")]
[JsonProperty(PropertyName = "properties.invoiceSectionName")]
public string InvoiceSectionName { get; private set; }

/// <summary>
/// Gets SKU Id.
/// </summary>
[JsonProperty(PropertyName = "skuId")]
[JsonProperty(PropertyName = "properties.skuId")]
public string SkuId { get; private set; }

/// <summary>
/// Gets SKU description.
/// </summary>
[JsonProperty(PropertyName = "skuDescription")]
[JsonProperty(PropertyName = "properties.skuDescription")]
public string SkuDescription { get; private set; }

}
Expand Down

0 comments on commit b15357d

Please sign in to comment.