<?php
/**
 * This code was generated by
 * ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
 *  |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
 *  |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \
 *
 * Twilio - Marketplace
 * This is the public Twilio REST API.
 *
 * NOTE: This class is auto generated by OpenAPI Generator.
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

namespace Twilio\Rest\Marketplace\V1\InstalledAddOn;

use Twilio\Values;
abstract class InstalledAddOnUsageModels
{
    /**
     * @property string $quantity 
     * @property string $sid 
    */
    public static function createCreateBillingUsageRequestBillableItems(array $payload = []): CreateBillingUsageRequestBillableItems
    {
        return new CreateBillingUsageRequestBillableItems($payload);
    }

    /**
     * @property CreateBillingUsageRequestBillableItems[] $billableItems
    */
    public static function createCreateBillingUsageRequest(array $payload = []): CreateBillingUsageRequest
    {
        return new CreateBillingUsageRequest($payload);
    }

}

class CreateBillingUsageRequestBillableItems implements \JsonSerializable
{
    /**
     * @property string $quantity 
     * @property string $sid 
    */
        protected $quantity;
        protected $sid;
    public function __construct(array $payload = []) {
        $this->quantity = Values::array_get($payload, 'quantity');
        $this->sid = Values::array_get($payload, 'sid');
    }

    public function toArray(): array
    {
        return $this->jsonSerialize();
    }

    public function jsonSerialize(): array
    {
        return [
            'quantity' => $this->quantity,
            'sid' => $this->sid
        ];
    }
}

class CreateBillingUsageRequest implements \JsonSerializable
{
    /**
     * @property CreateBillingUsageRequestBillableItems[] $billableItems
    */
        protected $billableItems;
    public function __construct(array $payload = []) {
        $this->billableItems = Values::array_get($payload, 'billableItems');
    }

    public function toArray(): array
    {
        return $this->jsonSerialize();
    }

    public function jsonSerialize(): array
    {
        return [
            'billableItems' => $this->billableItems
        ];
    }
}

