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

public final class TransactionListResultTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        TransactionListResult model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"properties\":{\"kind\":\"all\",\"date\":\"2021-11-17T05:10:44Z\",\"invoice\":\"l\",\"invoiceId\":\"qhoftrmaequiah\",\"orderId\":\"cslfaoqzpiyylha\",\"orderName\":\"swhccsphk\",\"productFamily\":\"vwitqscyw\",\"productTypeId\":\"gwol\",\"productType\":\"czbwemhairsbr\",\"productDescription\":\"dwmsweypqwd\",\"transactionType\":\"Usage"
                        + " Charge\",\"quantity\":98596504,\"invoiceSectionId\":\"n\",\"invoiceSectionDisplayName\":\"huexmk\",\"billingProfileId\":\"lstvlzywe\",\"billingProfileDisplayName\":\"zrncsdt\",\"customerId\":\"u\",\"customerDisplayName\":\"ypbsfgytguslfead\",\"subscriptionId\":\"gq\",\"subscriptionName\":\"yhejhzisxgfp\",\"azurePlan\":\"olppvksrpqvujz\",\"billingCurrency\":\"htwdwrftswibyrcd\",\"discount\":4.1148844,\"exchangeRate\":62.17856,\"pricingCurrency\":\"racstwity\",\"servicePeriodStartDate\":\"2021-10-09T17:15:47Z\",\"servicePeriodEndDate\":\"2021-11-26T04:46:53Z\",\"unitOfMeasure\":\"dcpnmdyodnw\",\"units\":98.19005,\"unitType\":\"jc\"},\"id\":\"nhltiugcxn\",\"name\":\"vvwxqi\",\"type\":\"y\"}],\"totalCount\":1643458041,\"nextLink\":\"owx\"}")
                .toObject(TransactionListResult.class);
    }

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