-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BillingRP] Added rebill details for invoice (#10580)
* Added rebill details for invoice Added rebill details for invoice * Fixed Prettier Check failures Fixed Prettier Check failures * Fixed model validation errors Fixed model validation errors * Fixed model validation error Fixed model validation error * Added readonly property to document type and rebill details Added readonly property to document type and rebill details * Updated examples Updated examples * Setting readonly property on rebillDetails Setting readonly property on rebillDetails * Fixed prettier-check error Fixed prettier-check error Co-authored-by: Anirban Sarkar <[email protected]>
- Loading branch information
Showing
9 changed files
with
675 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
161 changes: 161 additions & 0 deletions
161
...osoft.Billing/stable/2020-05-01/examples/BillingAccountInvoicesListWithRebillDetails.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,161 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2020-05-01", | ||
"billingAccountName": "{billingAccountName}", | ||
"periodStartDate": "2018-01-01", | ||
"periodEndDate": "2018-06-30" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoices/I000003", | ||
"name": "I000003", | ||
"type": "Microsoft.Billing/billingAccounts/invoices", | ||
"properties": { | ||
"dueDate": "2018-01-16T17:32:28Z", | ||
"invoiceDate": "2018-01-01T17:32:28Z", | ||
"status": "Due", | ||
"amountDue": { | ||
"currency": "USD", | ||
"value": 8.53 | ||
}, | ||
"billedAmount": { | ||
"currency": "USD", | ||
"value": 33.99 | ||
}, | ||
"azurePrepaymentApplied": { | ||
"currency": "USD", | ||
"value": 25.46 | ||
}, | ||
"creditAmount": { | ||
"currency": "USD", | ||
"value": 1.00 | ||
}, | ||
"freeAzureCreditApplied": { | ||
"currency": "USD", | ||
"value": 0.00 | ||
}, | ||
"subTotal": { | ||
"currency": "USD", | ||
"value": 33.99 | ||
}, | ||
"taxAmount": { | ||
"currency": "USD", | ||
"value": 0.00 | ||
}, | ||
"totalAmount": { | ||
"currency": "USD", | ||
"value": 7.53 | ||
}, | ||
"invoicePeriodStartDate": "2018-01-01T17:32:28Z", | ||
"invoicePeriodEndDate": "2018-01-15T17:32:28Z", | ||
"isMonthlyInvoice": false, | ||
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000", | ||
"billingProfileDisplayName": "Contoso Operations Billing", | ||
"purchaseOrderNumber": "123456", | ||
"documentType": "Invoice", | ||
"documents": [ | ||
{ | ||
"kind": "Invoice", | ||
"url": "https://microsoft.com/invoice.pdf", | ||
"source": "DRS" | ||
} | ||
], | ||
"payments": [ | ||
{ | ||
"date": "2018-01-14T17:32:28Z", | ||
"paymentType": "credited", | ||
"amount": { | ||
"currency": "USD", | ||
"value": 1.00 | ||
}, | ||
"paymentMethodFamily": "CreditCard", | ||
"paymentMethodType": "visa" | ||
} | ||
], | ||
"rebillDetails": { | ||
"creditNoteDocumentId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoices/CreditNote2", | ||
"invoiceDocumentId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoices/I000002", | ||
"rebillDetails": { | ||
"creditNoteDocumentId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoices/CreditNote1", | ||
"invoiceDocumentId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoices/I000001", | ||
"rebillDetails": null | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoices/1383724", | ||
"name": "1383724", | ||
"type": "Microsoft.Billing/billingAccounts/invoices", | ||
"properties": { | ||
"dueDate": "2018-03-01T17:32:28Z", | ||
"invoiceDate": "2018-02-01T17:32:28Z", | ||
"status": "PastDue", | ||
"amountDue": { | ||
"currency": "USD", | ||
"value": 16.53 | ||
}, | ||
"billedAmount": { | ||
"currency": "USD", | ||
"value": 33.99 | ||
}, | ||
"azurePrepaymentApplied": { | ||
"currency": "USD", | ||
"value": 15.46 | ||
}, | ||
"creditAmount": { | ||
"currency": "USD", | ||
"value": 2.00 | ||
}, | ||
"freeAzureCreditApplied": { | ||
"currency": "USD", | ||
"value": 0.00 | ||
}, | ||
"subTotal": { | ||
"currency": "USD", | ||
"value": 33.99 | ||
}, | ||
"taxAmount": { | ||
"currency": "USD", | ||
"value": 0.00 | ||
}, | ||
"totalAmount": { | ||
"currency": "USD", | ||
"value": 16.53 | ||
}, | ||
"invoicePeriodStartDate": "2018-02-01T17:32:28Z", | ||
"invoicePeriodEndDate": "2018-02-28T17:32:28Z", | ||
"isMonthlyInvoice": true, | ||
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000", | ||
"billingProfileDisplayName": "Contoso Operations Billing", | ||
"purchaseOrderNumber": "123456", | ||
"documentType": "Invoice", | ||
"documents": [ | ||
{ | ||
"kind": "TaxReceipt", | ||
"url": "https://microsoft.com/taxreceipt.pdf", | ||
"source": "DRS" | ||
} | ||
], | ||
"payments": [ | ||
{ | ||
"date": "2018-01-14T17:32:28Z", | ||
"paymentType": "credited", | ||
"amount": { | ||
"currency": "USD", | ||
"value": 2.00 | ||
}, | ||
"paymentMethodFamily": "CreditCard", | ||
"paymentMethodType": "visa" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
85 changes: 85 additions & 0 deletions
85
...ion/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/CreditNote.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2020-05-01", | ||
"billingAccountName": "{billingAccountName}", | ||
"invoiceName": "{invoiceName}" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoices/{invoiceName}", | ||
"name": "{invoiceName}", | ||
"type": "Microsoft.Billing/billingAccounts/invoices", | ||
"properties": { | ||
"dueDate": "2018-01-16T17:32:28Z", | ||
"invoiceDate": "2018-01-01T17:32:28Z", | ||
"status": "Paid", | ||
"amountDue": { | ||
"currency": "USD", | ||
"value": 16.53 | ||
}, | ||
"billedAmount": { | ||
"currency": "USD", | ||
"value": 33.99 | ||
}, | ||
"azurePrepaymentApplied": { | ||
"currency": "USD", | ||
"value": 15.46 | ||
}, | ||
"creditAmount": { | ||
"currency": "USD", | ||
"value": 2.00 | ||
}, | ||
"freeAzureCreditApplied": { | ||
"currency": "USD", | ||
"value": 0.00 | ||
}, | ||
"subTotal": { | ||
"currency": "USD", | ||
"value": 33.99 | ||
}, | ||
"taxAmount": { | ||
"currency": "USD", | ||
"value": 0.00 | ||
}, | ||
"totalAmount": { | ||
"currency": "USD", | ||
"value": 16.53 | ||
}, | ||
"invoicePeriodStartDate": "2018-01-01T17:32:28Z", | ||
"invoicePeriodEndDate": "2018-01-15T17:32:28Z", | ||
"isMonthlyInvoice": false, | ||
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}", | ||
"billingProfileDisplayName": "Contoso Operations Billing", | ||
"purchaseOrderNumber": "123456", | ||
"documentType": "CreditNote", | ||
"creditForDocumentId": "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoices/I000001", | ||
"documents": [ | ||
{ | ||
"kind": "Invoice", | ||
"url": "https://microsoft.com/invoice.pdf", | ||
"source": "DRS" | ||
}, | ||
{ | ||
"kind": "TaxReceipt", | ||
"url": "https://microsoft.com/taxDoc.pdf", | ||
"source": "DRS" | ||
} | ||
], | ||
"payments": [ | ||
{ | ||
"date": "2018-01-14T17:32:28Z", | ||
"paymentType": "credited", | ||
"amount": { | ||
"currency": "USD", | ||
"value": 2.00 | ||
}, | ||
"paymentMethodFamily": "CreditCard", | ||
"paymentMethodType": "visa" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.