Пример #1
0
 /// <summary>
 /// Initializes a new instance of the AvailableBalance class.
 /// </summary>
 /// <param name="id">Resource Id.</param>
 /// <param name="name">Resource name.</param>
 /// <param name="type">Resource type.</param>
 /// <param name="amount">Balance amount.</param>
 public AvailableBalance(string id = default(string), string name = default(string), string type = default(string), Amount amount = default(Amount))
     : base(id, name, type)
 {
     Amount = amount;
     CustomInit();
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the Transaction class.
 /// </summary>
 /// <param name="id">Resource Id.</param>
 /// <param name="name">Resource name.</param>
 /// <param name="type">Resource type.</param>
 /// <param name="kind">The kind of transaction. Choices are all and
 /// reservation. Possible values include: 'all', 'reservation'</param>
 /// <param name="date">The date of reservation transaction.</param>
 /// <param name="invoice">Invoice number or 'pending' if not
 /// invoiced.</param>
 /// <param name="orderId">The reservation order id.</param>
 /// <param name="orderName">The reservation order name.</param>
 /// <param name="productFamily">The product family.</param>
 /// <param name="productTypeId">The product type id.</param>
 /// <param name="productType">The type of product.</param>
 /// <param name="productDescription">Product description.</param>
 /// <param name="transactionType">Transaction types. Possible values
 /// include: 'Purchase', 'Usage Charge'</param>
 /// <param name="transactionAmount">Last charge associated with the
 /// purchase.</param>
 /// <param name="quantity">Purchase quantity.</param>
 /// <param name="invoiceSectionId">Invoice section id to which this
 /// product belongs.</param>
 /// <param name="invoiceSectionDisplayName">Invoice section display
 /// name to which this product belongs.</param>
 /// <param name="billingProfileId">Billing Profile id to which this
 /// product belongs.</param>
 /// <param name="billingProfileDisplayName">Billing Profile display
 /// name to which this product belongs.</param>
 /// <param name="customerId">Customer id to which this product
 /// belongs.</param>
 /// <param name="customerDisplayName">Display name of customer to which
 /// this product belongs.</param>
 /// <param name="subscriptionId">The subscription id.</param>
 /// <param name="subscriptionName">The subscription name.</param>
 public Transaction(string id = default(string), string name = default(string), string type = default(string), string kind = default(string), System.DateTime?date = default(System.DateTime?), string invoice = default(string), string orderId = default(string), string orderName = default(string), string productFamily = default(string), string productTypeId = default(string), string productType = default(string), string productDescription = default(string), string transactionType = default(string), Amount transactionAmount = default(Amount), int?quantity = default(int?), string invoiceSectionId = default(string), string invoiceSectionDisplayName = default(string), string billingProfileId = default(string), string billingProfileDisplayName = default(string), string customerId = default(string), string customerDisplayName = default(string), string subscriptionId = default(string), string subscriptionName = default(string))
     : base(id, name, type)
 {
     Kind                      = kind;
     Date                      = date;
     Invoice                   = invoice;
     OrderId                   = orderId;
     OrderName                 = orderName;
     ProductFamily             = productFamily;
     ProductTypeId             = productTypeId;
     ProductType               = productType;
     ProductDescription        = productDescription;
     TransactionType           = transactionType;
     TransactionAmount         = transactionAmount;
     Quantity                  = quantity;
     InvoiceSectionId          = invoiceSectionId;
     InvoiceSectionDisplayName = invoiceSectionDisplayName;
     BillingProfileId          = billingProfileId;
     BillingProfileDisplayName = billingProfileDisplayName;
     CustomerId                = customerId;
     CustomerDisplayName       = customerDisplayName;
     SubscriptionId            = subscriptionId;
     SubscriptionName          = subscriptionName;
     CustomInit();
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the BillingSubscription class.
 /// </summary>
 /// <param name="id">Resource Id.</param>
 /// <param name="name">Resource name.</param>
 /// <param name="type">Resource type.</param>
 /// <param name="displayName">The name of the subscription.</param>
 /// <param name="subscriptionId">The ID of the subscription.</param>
 /// <param name="subscriptionBillingStatus">The current billing status
 /// of the subscription. Possible values include: 'Active', 'Inactive',
 /// 'Abandoned', 'Deleted', 'Warning'</param>
 /// <param name="lastMonthCharges">The last month charges.</param>
 /// <param name="monthToDateCharges">The current month to date
 /// charges.</param>
 /// <param name="billingProfileId">The ID of the billing profile to
 /// which the subscription is billed.</param>
 /// <param name="billingProfileDisplayName">The name of the billing
 /// profile to which the subscription is billed.</param>
 /// <param name="costCenter">The cost center applied to the
 /// subscription.</param>
 /// <param name="customerId">The ID of the customer for whom the
 /// subscription was created. The field is applicable only for
 /// Microsoft Partner Agreement billing account.</param>
 /// <param name="customerDisplayName">The name of the customer for whom
 /// the subscription was created. The field is applicable only for
 /// Microsoft Partner Agreement billing account.</param>
 /// <param name="invoiceSectionId">The ID of the invoice section to
 /// which the subscription is billed.</param>
 /// <param name="invoiceSectionDisplayName">The name of the invoice
 /// section to which the subscription is billed.</param>
 /// <param name="reseller">Reseller for this subscription.</param>
 /// <param name="skuId">The sku ID of the Azure plan for the
 /// subscription.</param>
 /// <param name="skuDescription">The sku description of the Azure plan
 /// for the subscription.</param>
 public BillingSubscription(string id = default(string), string name = default(string), string type = default(string), string displayName = default(string), System.Guid?subscriptionId = default(System.Guid?), string subscriptionBillingStatus = default(string), Amount lastMonthCharges = default(Amount), Amount monthToDateCharges = default(Amount), string billingProfileId = default(string), string billingProfileDisplayName = default(string), string costCenter = default(string), string customerId = default(string), string customerDisplayName = default(string), string invoiceSectionId = default(string), string invoiceSectionDisplayName = default(string), Reseller reseller = default(Reseller), string skuId = default(string), string skuDescription = default(string))
     : base(id, name, type)
 {
     DisplayName               = displayName;
     SubscriptionId            = subscriptionId;
     SubscriptionBillingStatus = subscriptionBillingStatus;
     LastMonthCharges          = lastMonthCharges;
     MonthToDateCharges        = monthToDateCharges;
     BillingProfileId          = billingProfileId;
     BillingProfileDisplayName = billingProfileDisplayName;
     CostCenter                = costCenter;
     CustomerId                = customerId;
     CustomerDisplayName       = customerDisplayName;
     InvoiceSectionId          = invoiceSectionId;
     InvoiceSectionDisplayName = invoiceSectionDisplayName;
     Reseller       = reseller;
     SkuId          = skuId;
     SkuDescription = skuDescription;
     CustomInit();
 }