Skip to content

Commit 289fcef

Browse files
authored
auto codegen for UBill
1 parent 80e559b commit 289fcef

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

ucloud/services/ubill/client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,12 @@ def get_bill_data_file_url(
4949
5050
**Request**
5151
52-
- **BillPeriod** (int) - (Required) 账期(时间戳格式)
5352
- **BillType** (int) - (Required) 账单类型,传 0 时获取账单总览报表,传 1 获取账单明细报表
53+
- **BillingCycle** (str) - (Required) 账期(字符串格式,YYYY-MM,例如2021-08). 若BillingCycle 和 BillPeriod同时存在,BillingCycle 优先
54+
- **BillPeriod** (int) - 此字段不推荐使用,建议使用BillingCycle. 若BillingCycle 和 BillPeriod同时存在,BillingCycle 优先
5455
- **PaidType** (int) - 获取账单总览报表时,账单的支付状态,传 0 时获取待支付账单,传 1 时获取已支付账单。获取账单明细报表时该参数无效
5556
- **RequireVersion** (str) - 如需求其他语言版本的账单则使用此参数。默认中文。如 RequireVersion = "EN",则提供英文版本账单。
57+
- **Version** (str) - 文件版本,若为"v1"表示获取带有子用户信息的账单,可以为空
5658
5759
**Response**
5860

ucloud/services/ubill/schemas/apis.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,12 @@ class GetBillDataFileUrlRequestSchema(schema.RequestSchema):
4040
"""GetBillDataFileUrl - 生成账单数据文件下载的 url"""
4141

4242
fields = {
43-
"BillPeriod": fields.Int(required=True, dump_to="BillPeriod"),
43+
"BillPeriod": fields.Int(required=False, dump_to="BillPeriod"),
4444
"BillType": fields.Int(required=True, dump_to="BillType"),
45+
"BillingCycle": fields.Str(required=True, dump_to="BillingCycle"),
4546
"PaidType": fields.Int(required=False, dump_to="PaidType"),
4647
"RequireVersion": fields.Str(required=False, dump_to="RequireVersion"),
48+
"Version": fields.Str(required=False, dump_to="Version"),
4749
}
4850

4951

0 commit comments

Comments
 (0)