// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.billing.implementation;

import com.azure.resourcemanager.billing.fluent.models.BillingSubscriptionInner;
import com.azure.resourcemanager.billing.models.Amount;
import com.azure.resourcemanager.billing.models.BillingSubscription;
import com.azure.resourcemanager.billing.models.BillingSubscriptionStatusType;
import com.azure.resourcemanager.billing.models.Reseller;
import java.util.Collections;
import java.util.List;
import java.util.UUID;

public final class BillingSubscriptionImpl implements BillingSubscription {
    private BillingSubscriptionInner innerObject;

    private final com.azure.resourcemanager.billing.BillingManager serviceManager;

    BillingSubscriptionImpl(
        BillingSubscriptionInner innerObject, com.azure.resourcemanager.billing.BillingManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

    public String id() {
        return this.innerModel().id();
    }

    public String name() {
        return this.innerModel().name();
    }

    public String type() {
        return this.innerModel().type();
    }

    public String displayName() {
        return this.innerModel().displayName();
    }

    public UUID subscriptionId() {
        return this.innerModel().subscriptionId();
    }

    public BillingSubscriptionStatusType subscriptionBillingStatus() {
        return this.innerModel().subscriptionBillingStatus();
    }

    public Amount lastMonthCharges() {
        return this.innerModel().lastMonthCharges();
    }

    public Amount monthToDateCharges() {
        return this.innerModel().monthToDateCharges();
    }

    public String billingProfileId() {
        return this.innerModel().billingProfileId();
    }

    public String billingProfileDisplayName() {
        return this.innerModel().billingProfileDisplayName();
    }

    public String costCenter() {
        return this.innerModel().costCenter();
    }

    public String customerId() {
        return this.innerModel().customerId();
    }

    public String customerDisplayName() {
        return this.innerModel().customerDisplayName();
    }

    public String invoiceSectionId() {
        return this.innerModel().invoiceSectionId();
    }

    public String invoiceSectionDisplayName() {
        return this.innerModel().invoiceSectionDisplayName();
    }

    public Reseller reseller() {
        return this.innerModel().reseller();
    }

    public String skuId() {
        return this.innerModel().skuId();
    }

    public String skuDescription() {
        return this.innerModel().skuDescription();
    }

    public List<String> suspensionReasons() {
        List<String> inner = this.innerModel().suspensionReasons();
        if (inner != null) {
            return Collections.unmodifiableList(inner);
        } else {
            return Collections.emptyList();
        }
    }

    public BillingSubscriptionInner innerModel() {
        return this.innerObject;
    }

    private com.azure.resourcemanager.billing.BillingManager manager() {
        return this.serviceManager;
    }
}
