Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4999,6 +4999,51 @@
"description": "Identifies the source of the lot for which the event happened. ",
"type": "string",
"readOnly": true
},
"canceledCredit": {
"description": "Amount of canceled credit.",
"readOnly": true,
"$ref": "#/definitions/amount"
},
"creditCurrency": {
"description": "The credit currency of the event.",
"type": "string",
"readOnly": true
},
"billingCurrency": {
"description": "The billing currency of the event.",
"type": "string",
"readOnly": true
},
"reseller": {
"description": "The reseller of the event.",
"readOnly": true,
"$ref": "#/definitions/Reseller"
},
"creditExpiredInBillingCurrency": {
"description": "The amount of expired credit or commitment for NewCredit or SettleCharges event in billing currency.",
"readOnly": true,
"$ref": "#/definitions/AmountWithExchangeRate"
},
"newCreditInBillingCurrency": {
"description": "The amount of new credit or commitment for NewCredit or SettleCharges event in billing currency.",
"readOnly": true,
"$ref": "#/definitions/AmountWithExchangeRate"
},
"adjustmentsInBillingCurrency": {
"description": "The amount of balance adjustment in billing currency.",
"readOnly": true,
"$ref": "#/definitions/AmountWithExchangeRate"
},
"chargesInBillingCurrency": {
"description": "The amount of charges for events of type SettleCharges and PendingEligibleCharges in billing currency.",
"readOnly": true,
"$ref": "#/definitions/AmountWithExchangeRate"
},
"closedBalanceInBillingCurrency": {
"description": "The balance in billing currency after the event.",
"readOnly": true,
"$ref": "#/definitions/AmountWithExchangeRate"
}
}
},
Expand Down Expand Up @@ -5089,7 +5134,44 @@
"status": {
"description": "The status of the lot.",
"type": "string",
"enum": [
"None",
"Active",
"Inactive",
"Expired",
"Complete",
"Canceled"
],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The following needs to be added

"x-ms-enum": {
"name": "Status",
"modelAsString": true
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added.

"readOnly": true,
"x-ms-enum": {
"name": "Status",
"modelAsString": true
}
},
"creditCurrency": {
"description": "The currency of the lot.",
"type": "string",
"readOnly": true
},
"billingCurrency": {
"description": "The billing currency of the lot.",
"type": "string",
"readOnly": true
},
"originalAmountInBillingCurrency": {
"description": "The original amount of a lot in billing currency.",
"readOnly": true,
"$ref": "#/definitions/AmountWithExchangeRate"
},
"closedBalanceInBillingCurrency": {
"description": "The balance as of the last invoice in billing currency.",
"readOnly": true,
"$ref": "#/definitions/AmountWithExchangeRate"
},
"reseller": {
"description": "The reseller of the lot.",
"readOnly": true,
"$ref": "#/definitions/Reseller"
}
}
},
Expand Down Expand Up @@ -5132,6 +5214,21 @@
"description": "Pending eligible charges.",
"readOnly": true,
"$ref": "#/definitions/amount"
},
"creditCurrency": {
"description": "The credit currency.",
"type": "string",
"readOnly": true
},
"billingCurrency": {
"description": "The billing currency.",
"type": "string",
"readOnly": true
},
"reseller": {
"description": "Credit's reseller.",
"readOnly": true,
"$ref": "#/definitions/Reseller"
}
}
},
Expand All @@ -5147,6 +5244,11 @@
"description": "Current balance.",
"readOnly": true,
"$ref": "#/definitions/amount"
},
"estimatedBalanceInBillingCurrency": {
"description": "Estimated balance in billing currency.",
"readOnly": true,
"$ref": "#/definitions/AmountWithExchangeRate"
}
}
},
Expand Down Expand Up @@ -5268,6 +5370,39 @@
}
},
"x-ms-azure-resource": true
},
"AmountWithExchangeRate": {
"description": "The amount with exchange rate.",
"properties": {
"exchangeRate": {
"description": "The exchange rate.",
"type": "number",
"format": "decimal",
"readOnly": true
},
"exchangeRateMonth": {
"description": "The exchange rate month.",
"type": "integer",
"format": "int32",
"readOnly": true
}
}
},
"Reseller": {
"description": "The reseller properties.",
"type": "object",
"properties": {
"resellerId": {
"description": "The reseller property ID.",
"type": "string",
"readOnly": true
},
"resellerDescription": {
"description": "The reseller property description.",
"type": "string",
"readOnly": true
}
}
}
},
"parameters": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
"name": "balanceSummary1",
"type": "Microsoft.Consumption/credits/balanceSummary",
"properties": {
"creditCurrency": "USD",
"billingCurrency": "USD",
"balanceSummary": {
"estimatedBalance": {
"currency": "USD",
Expand All @@ -32,6 +34,10 @@
"pendingEligibleCharges": {
"currency": "USD",
"value": 0.00
},
"reseller": {
"resellerId": "/providers/Microsoft.Billing/billingAccounts/1234:5678/billingProfiles/2468/providers/Microsoft.Consumption/reseller/reseller1",
"resellerDescription": "Reseller information."
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,21 @@
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/X3TD-KVTT-BG7-TGB",
"billingProfileDisplayName": "Contoso Operations Billing",
"transactionDate": "2019-07-01T00:00:00Z",
"description": "Settled invoice #312033",
"description": "New MACC Added",
"charges": {
"currency": "USD",
"value": 500
},
"newCredit": {
"currency": "USD",
"value": 500
},
"closedBalance": {
"currency": "USD",
"value": 500
},
"invoiceNumber": "3304"
"invoiceNumber": "3304",
"eventType": "NewCredit"
}
},
{
Expand All @@ -39,7 +44,7 @@
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/X3TD-KVTT-BG7-TGB",
"billingProfileDisplayName": "Contoso Operations Billing",
"transactionDate": "2019-07-01T00:00:00Z",
"description": "Settled invoice #312033",
"description": "Balance after invoice 3304",
"charges": {
"currency": "USD",
"value": 500
Expand All @@ -48,7 +53,8 @@
"currency": "USD",
"value": 500
},
"invoiceNumber": "3304"
"invoiceNumber": "3304",
"eventType": "SettledCharges"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,17 @@
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/X3TD-KVTT-BG7-TGB",
"billingProfileDisplayName": "Contoso Operations Billing",
"transactionDate": "2019-07-01T00:00:00Z",
"description": "Settled invoice #312033",
"charges": {
"description": "MACC Canceled",
"canceledCredit": {
"currency": "USD",
"value": 500
"value": 200
},
"closedBalance": {
"currency": "USD",
"value": 500
},
"invoiceNumber": "3304"
"invoiceNumber": "3304",
"eventType": "CanceledCredit"
}
}
]
Expand Down
Loading