-
Notifications
You must be signed in to change notification settings - Fork 5.6k
[BillingRP] Added rebill details for invoice #10580
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
14223df
Added rebill details for invoice
1002c5b
Fixed Prettier Check failures
7230a6d
Fixed model validation errors
b6887b7
Fixed model validation error
7d21cc7
Added readonly property to document type and rebill details
a5522df
Updated examples
ab6e3ef
Setting readonly property on rebillDetails
496a7b7
Fixed prettier-check error
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.