Skip to content

Commit

Permalink
update list invoice input and response field
Browse files Browse the repository at this point in the history
  • Loading branch information
topphh committed Jan 20, 2025
1 parent bcd68f7 commit b470d68
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 8 deletions.
16 changes: 12 additions & 4 deletions billing/v1/billing.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1369,8 +1369,8 @@ message DeleteAccessGroupRequest {

// Request message for the ListInvoice rpc.
message ListInvoiceRequest {
// Optional. billing internal id. If empty will list all the invoice status
string groupId = 1;
// YYYYMM format (e.g 202412, 202501)
string date = 1;
}


Expand All @@ -1385,15 +1385,23 @@ message ListInvoiceResponse {
// The billing group name. Used as invoice name on ripple v2
string billingGroupName = 3;

// The date.
string date = 4;
string companyName = 4;

// currency for the
string currency = 8;

// Created || Not Created
string invoiceStatus = 5;
// In progress || Done
string finalizationStatus = 6;
// Published || Not published
string waveStatus = 7;

// Formated in $8,000.12
string billingAmountAws = 9;
string billingAmountAzure = 10;
string billingAmountGcp = 11;
string billingAmountTotal = 12;
}

// request message for ListAbcBillingGroups
Expand Down
24 changes: 20 additions & 4 deletions openapiv2/apidocs.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -28803,9 +28803,9 @@
"v1ListInvoiceRequest": {
"type": "object",
"properties": {
"groupId": {
"date": {
"type": "string",
"title": "Optional. billing internal id. If empty will list all the invoice status"
"title": "YYYYMM format (e.g 202412, 202501)"
}
},
"description": "Request message for the ListInvoice rpc."
Expand All @@ -28825,9 +28825,12 @@
"type": "string",
"title": "The billing group name. Used as invoice name on ripple v2"
},
"date": {
"companyName": {
"type": "string"
},
"currency": {
"type": "string",
"description": "The date."
"title": "currency for the"
},
"invoiceStatus": {
"type": "string",
Expand All @@ -28840,6 +28843,19 @@
"waveStatus": {
"type": "string",
"title": "Published || Not published"
},
"billingAmountAws": {
"type": "string",
"title": "Formated in $8,000.12"
},
"billingAmountAzure": {
"type": "string"
},
"billingAmountGcp": {
"type": "string"
},
"billingAmountTotal": {
"type": "string"
}
},
"description": "Response message for the ListInvoice rpc."
Expand Down

0 comments on commit b470d68

Please sign in to comment.