示例#1
0
 /// <summary>
 /// Initializes a new instance of the Product class.
 /// </summary>
 /// <param name="id">Resource Id.</param>
 /// <param name="name">Resource name.</param>
 /// <param name="type">Resource type.</param>
 /// <param name="autoRenew">Indicates whether auto renewal is turned on
 /// or off for a product. Possible values include: 'Off', 'On'</param>
 /// <param name="displayName">The display name of the product.</param>
 /// <param name="purchaseDate">The date when the product was
 /// purchased.</param>
 /// <param name="productTypeId">The ID of the type of product.</param>
 /// <param name="productType">The description of the type of
 /// product.</param>
 /// <param name="status">The current status of the product. Possible
 /// values include: 'Active', 'Inactive', 'PastDue', 'Expiring',
 /// 'Expired', 'Disabled', 'Cancelled', 'AutoRenew'</param>
 /// <param name="endDate">The date when the product will be renewed or
 /// canceled.</param>
 /// <param name="billingFrequency">The frequency at which the product
 /// will be billed. Possible values include: 'OneTime', 'Monthly',
 /// 'UsageBased'</param>
 /// <param name="lastCharge">The last month charges.</param>
 /// <param name="lastChargeDate">The date of the last charge.</param>
 /// <param name="quantity">The quantity purchased for the
 /// product.</param>
 /// <param name="skuId">The sku ID of the product.</param>
 /// <param name="skuDescription">The sku description of the
 /// product.</param>
 /// <param name="tenantId">The id of the tenant in which the product is
 /// used.</param>
 /// <param name="availabilityId">The availability of the
 /// product.</param>
 /// <param name="invoiceSectionId">The ID of the invoice section to
 /// which the product is billed.</param>
 /// <param name="invoiceSectionDisplayName">The name of the invoice
 /// section to which the product is billed.</param>
 /// <param name="billingProfileId">The ID of the billing profile to
 /// which the product is billed.</param>
 /// <param name="billingProfileDisplayName">The name of the billing
 /// profile to which the product is billed.</param>
 /// <param name="customerId">The ID of the customer for whom the
 /// product was purchased. The field is applicable only for Microsoft
 /// Partner Agreement billing account.</param>
 /// <param name="customerDisplayName">The name of the customer for whom
 /// the product was purchased. The field is applicable only for
 /// Microsoft Partner Agreement billing account.</param>
 /// <param name="reseller">Reseller for this product.</param>
 public Product(string id = default(string), string name = default(string), string type = default(string), string autoRenew = default(string), string displayName = default(string), System.DateTime?purchaseDate = default(System.DateTime?), string productTypeId = default(string), string productType = default(string), string status = default(string), System.DateTime?endDate = default(System.DateTime?), string billingFrequency = default(string), Amount lastCharge = default(Amount), System.DateTime?lastChargeDate = default(System.DateTime?), double?quantity = default(double?), string skuId = default(string), string skuDescription = default(string), string tenantId = default(string), string availabilityId = default(string), string invoiceSectionId = default(string), string invoiceSectionDisplayName = default(string), string billingProfileId = default(string), string billingProfileDisplayName = default(string), string customerId = default(string), string customerDisplayName = default(string), Reseller reseller = default(Reseller))
     : base(id, name, type)
 {
     AutoRenew                 = autoRenew;
     DisplayName               = displayName;
     PurchaseDate              = purchaseDate;
     ProductTypeId             = productTypeId;
     ProductType               = productType;
     Status                    = status;
     EndDate                   = endDate;
     BillingFrequency          = billingFrequency;
     LastCharge                = lastCharge;
     LastChargeDate            = lastChargeDate;
     Quantity                  = quantity;
     SkuId                     = skuId;
     SkuDescription            = skuDescription;
     TenantId                  = tenantId;
     AvailabilityId            = availabilityId;
     InvoiceSectionId          = invoiceSectionId;
     InvoiceSectionDisplayName = invoiceSectionDisplayName;
     BillingProfileId          = billingProfileId;
     BillingProfileDisplayName = billingProfileDisplayName;
     CustomerId                = customerId;
     CustomerDisplayName       = customerDisplayName;
     Reseller                  = reseller;
     CustomInit();
 }
示例#2
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">display name.</param>
 /// <param name="subscriptionId">Subscription Id.</param>
 /// <param name="subscriptionBillingStatus">Subscription billing
 /// status. Possible values include: 'Active', 'Inactive', 'Abandoned',
 /// 'Deleted', 'Warning'</param>
 /// <param name="lastMonthCharges">Last month charges.</param>
 /// <param name="monthToDateCharges">Month to date charges.</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="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="reseller">Reseller for this subscription.</param>
 /// <param name="skuId">The sku id.</param>
 /// <param name="skuDescription">The sku description.</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 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;
     CustomerId                = customerId;
     CustomerDisplayName       = customerDisplayName;
     InvoiceSectionId          = invoiceSectionId;
     InvoiceSectionDisplayName = invoiceSectionDisplayName;
     Reseller       = reseller;
     SkuId          = skuId;
     SkuDescription = skuDescription;
     CustomInit();
 }