""" Code is generated by ucloud-model, DO NOT EDIT IT. """


from ucloud.core.typesystem import schema, fields
from ucloud.services.ubill.schemas import models

""" UBill API Schema
"""


"""
API: GetBalance

获取账户余额
"""


class GetBalanceRequestSchema(schema.RequestSchema):
    """GetBalance - 获取账户余额"""

    fields = {}


class GetBalanceResponseSchema(schema.ResponseSchema):
    """GetBalance - 获取账户余额"""

    fields = {
        "AccountInfo": models.AccountInfoSchema(),
    }


"""
API: GetBillDataFileUrl

生成账单数据文件下载的 url
"""


class GetBillDataFileUrlRequestSchema(schema.RequestSchema):
    """GetBillDataFileUrl - 生成账单数据文件下载的 url"""

    fields = {
        "BillPeriod": fields.Int(required=True, dump_to="BillPeriod"),
        "BillType": fields.Int(required=True, dump_to="BillType"),
        "PaidType": fields.Int(required=False, dump_to="PaidType"),
        "RequireVersion": fields.Str(required=False, dump_to="RequireVersion"),
    }


class GetBillDataFileUrlResponseSchema(schema.ResponseSchema):
    """GetBillDataFileUrl - 生成账单数据文件下载的 url"""

    fields = {
        "FileUrl": fields.Str(required=False, load_from="FileUrl"),
        "IsValid": fields.Str(required=False, load_from="IsValid"),
    }
