// 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.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.billing.models.InvoiceListResult;

public final class InvoiceListResultTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        InvoiceListResult model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"properties\":{\"dueDate\":\"2021-11-02T07:24:48Z\",\"invoiceDate\":\"2021-08-02T06:07:15Z\",\"status\":\"Void\",\"invoicePeriodStartDate\":\"2021-05-26T19:07:11Z\",\"invoicePeriodEndDate\":\"2021-11-15T11:38:05Z\",\"invoiceType\":\"AzureService\",\"isMonthlyInvoice\":false,\"billingProfileId\":\"btkuwhh\",\"billingProfileDisplayName\":\"ykojoxafnndlpic\",\"purchaseOrderNumber\":\"o\",\"documents\":[],\"payments\":[],\"rebillDetails\":{},\"documentType\":\"Invoice\",\"billedDocumentId\":\"bpkkpwdre\",\"creditForDocumentId\":\"ovvqfovljxywsu\",\"subscriptionId\":\"yrs\"},\"id\":\"dsytgadgvr\",\"name\":\"ea\",\"type\":\"neqn\"},{\"properties\":{\"dueDate\":\"2021-06-18T06:35:15Z\",\"invoiceDate\":\"2021-01-11T09:26Z\",\"status\":\"Due\",\"invoicePeriodStartDate\":\"2021-12-01T10:12:44Z\",\"invoicePeriodEndDate\":\"2021-03-07T01:40:14Z\",\"invoiceType\":\"AzureSupport\",\"isMonthlyInvoice\":false,\"billingProfileId\":\"ji\",\"billingProfileDisplayName\":\"wifto\",\"purchaseOrderNumber\":\"kvpuvksgplsaknyn\",\"documents\":[],\"payments\":[],\"rebillDetails\":{},\"documentType\":\"CreditNote\",\"billedDocumentId\":\"huopxodlqiynto\",\"creditForDocumentId\":\"ihleos\",\"subscriptionId\":\"w\"},\"id\":\"rmslyzrpzbchckqq\",\"name\":\"qioxi\",\"type\":\"suiizynkedyat\"},{\"properties\":{\"dueDate\":\"2021-10-29T12:30:56Z\",\"invoiceDate\":\"2021-05-21T15:42:34Z\",\"status\":\"Due\",\"invoicePeriodStartDate\":\"2021-08-31T01:44:30Z\",\"invoicePeriodEndDate\":\"2021-02-06T08:02:04Z\",\"invoiceType\":\"AzureMarketplace\",\"isMonthlyInvoice\":true,\"billingProfileId\":\"umnzgmwznmabik\",\"billingProfileDisplayName\":\"orgjhxbldt\",\"purchaseOrderNumber\":\"wrlkdmtn\",\"documents\":[],\"payments\":[],\"rebillDetails\":{},\"documentType\":\"CreditNote\",\"billedDocumentId\":\"lxdy\",\"creditForDocumentId\":\"syocogjltdtbnnha\",\"subscriptionId\":\"ocrkvcikh\"},\"id\":\"vpa\",\"name\":\"qgxqquezikyw\",\"type\":\"gxk\"}],\"nextLink\":\"la\",\"totalCount\":1870481937}")
                .toObject(InvoiceListResult.class);
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        InvoiceListResult model = new InvoiceListResult();
        model = BinaryData.fromObject(model).toObject(InvoiceListResult.class);
    }
}
