Skip to content
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

Added billing subscription APIs in new 2021-10-01 version #16571

Closed
wants to merge 66 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
6e44571
GA 2020-05-01 billing subscriptions baseline
jbuls Sep 2, 2021
ca6ed82
Merge pull request #3 from jbuls/jbuls/ga20211001_base
jbuls Sep 2, 2021
dc589b1
Billing subscription changes for GA 2021-10-01
jbuls Sep 2, 2021
3d21d05
avocado fixes
jbuls Sep 2, 2021
7c8f7f6
avocado fix
jbuls Sep 2, 2021
8755209
AutoRest fix: Added systemData back to "Resource" type
jbuls Sep 2, 2021
aba3f17
Merged 2021-10-01 swagger files into billing.json
jbuls Sep 2, 2021
5e9fac9
Revert "Merged 2021-10-01 swagger files into billing.json"
jbuls Sep 2, 2021
0905f24
Updated Basic Information in readme.cmd
jbuls Sep 2, 2021
0e5d378
Updated productCategory example values
jbuls Sep 2, 2021
2ad54d3
Fixed description typos
jbuls Sep 2, 2021
10f1e78
Merge branch 'master' of https://github.com/Azure/azure-rest-api-specs
jbuls Oct 6, 2021
a2008b0
Merge branch 'master' into jbuls/ga20211001
jbuls Oct 6, 2021
db9ec06
Updated BillingSubscriptionProperties
jbuls Oct 7, 2021
e1c1674
Updated move types, BillingSubscriptionMergeRequest, EnrollmentAccoun…
jbuls Oct 11, 2021
4f89461
Removed transferBillingSubscriptions action
jbuls Oct 11, 2021
7bef209
Added readOnly to BillingSubscriptionProperties.invoiceSectionName
jbuls Oct 11, 2021
c506a73
Moved BillingSubscriptionAlias definitions to BillingSubscription.json
jbuls Oct 11, 2021
66dc025
Removed customers scope and PATCH action
jbuls Oct 11, 2021
f886fa1
Fixed api-version in examples; Removed dead examples
jbuls Oct 13, 2021
119137f
Updated readme.cmd
jbuls Oct 13, 2021
eb36354
Updated examples
jbuls Oct 13, 2021
1df68e8
Update validate move examples
jbuls Oct 13, 2021
7b943a6
Updated ValidateMoveEligibility; Removed operations
jbuls Oct 13, 2021
5f47912
Updated billingSubscription.json CreateOrUpdate
jbuls Oct 13, 2021
afc1726
Updated api-version in example 202 location headers
jbuls Oct 13, 2021
2f9a479
Added PATCH
jbuls Oct 14, 2021
8a8c7e0
AutoRest error fixes
jbuls Oct 14, 2021
f23dde9
Updated productType in examples; BillingSubscriptionSplitRequest; titles
jbuls Oct 20, 2021
8f564a4
Updated billingSubscriptionAliasNameParameter
jbuls Oct 20, 2021
d78350f
Removed ignored readOnly's; Updated descriptions
jbuls Oct 20, 2021
836f215
Updated descriptions
jbuls Oct 20, 2021
980c46a
Removed unnecessary destinationBillingProfileId from Move request par…
jbuls Oct 20, 2021
2738952
PR feedback - descriptions
jbuls Oct 25, 2021
1f31efc
PR feedback - descriptions
jbuls Oct 25, 2021
7f24d38
Fixed typo
jbuls Oct 25, 2021
8fa92d5
PR feedback - productCategory description
jbuls Oct 25, 2021
5164607
Added billingPolicies, removed billingProfileSpendingLimitDetails
jbuls Oct 27, 2021
2325a1d
Merge remote-tracking branch 'upstream/master'
jbuls Oct 27, 2021
cd0b8a9
Updated billingPolicies description
jbuls Oct 27, 2021
6091b9b
Reverted current tag change in readme.cmd
jbuls Oct 27, 2021
71d2153
Merge pull request #4 from jbuls/jbuls/ga20211001
jbuls Oct 27, 2021
f48dfe9
Added title and description to package-2021-10 in readme.cmd
jbuls Oct 27, 2021
40a4d1e
Removed destinationBillingProfileId from examples
jbuls Oct 27, 2021
0fecc54
Fixed termDuration name in SplitSubscription example
jbuls Oct 27, 2021
950adb2
Fixed aliasName in examples
jbuls Oct 27, 2021
b51ac03
Removed comma typo in examples
jbuls Oct 27, 2021
f5a0006
Added missing status codes in examples
jbuls Oct 27, 2021
f3248f6
Merge pull request #5 from jbuls/jbuls/ga20211001
jbuls Oct 27, 2021
454ed19
Updated descriptions
jbuls Oct 28, 2021
c5f84cd
Merge pull request #6 from jbuls/jbuls/ga20211001
jbuls Oct 28, 2021
28c3402
PR feedback, added beneficiaryTenantId
jbuls Oct 28, 2021
29c0aa2
Merge pull request #7 from jbuls/jbuls/ga20211001
jbuls Oct 28, 2021
91dfcbe
PR feedback - billingSubscriptionAliases
jbuls Oct 28, 2021
2b3436d
Merge pull request #8 from jbuls/jbuls/ga20211001
jbuls Oct 28, 2021
d3baeb7
PaymentMethods fixes
jbuls Oct 28, 2021
c0ffe4d
Added destinationEnrollmentAccountId to move request
jbuls Oct 28, 2021
165865a
Merge pull request #9 from jbuls/jbuls/ga20211001
jbuls Oct 28, 2021
4a89040
PR feedback - fixed list aliases example
jbuls Oct 29, 2021
04b4c89
Merge pull request #10 from jbuls/jbuls/ga20211001
jbuls Oct 29, 2021
82fa125
Fixed circular reference in billingSubscription.json
jbuls Oct 29, 2021
b97dae6
Removed 201 in put example
jbuls Oct 29, 2021
cc2d7b8
Removed 200 body from delete example
jbuls Oct 29, 2021
7c36eb6
Merge pull request #11 from jbuls/jbuls/ga20211001
jbuls Oct 29, 2021
4deddbe
Updated operation descriptions
jbuls Oct 29, 2021
53f8795
Merge pull request #12 from jbuls/jbuls/ga20211001
jbuls Oct 29, 2021
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

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"parameters": {
"api-version": "2021-10-01",
"billingAccountName": "{billingAccountName}",
"billingSubscriptionName": "418b0e9c-5dc3-4260-918f-30b90619fe07"
},
"responses": {
"200": {
"body": {
"id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingSubscriptions/418b0e9c-5dc3-4260-918f-30b90619fe07",
"name": "418b0e9c-5dc3-4260-918f-30b90619fe07",
"type": "Microsoft.Billing/billingAccounts/billingSubscriptions",
"properties": {
"autoRenew": "Off",
"billingFrequency": "P1M",
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/2b72f936-0166-47d6-91a3-ef9f84f36664",
"billingProfileDisplayName": "Contoso operations billing profile",
"billingProfileName": "2b72f936-0166-47d6-91a3-ef9f84f36664",
"displayName": "Subscription 1",
"invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/2b72f936-0166-47d6-91a3-ef9f84f36664/invoiceSections/5c562559-e31b-4bfe-b608-f8b5b3fbd073",
"invoiceSectionDisplayName": "Contoso operations invoice section",
"invoiceSectionName": "5c562559-e31b-4bfe-b608-f8b5b3fbd073",
"lastMonthCharges": {
"currency": "USD",
"value": 5000.00
},
"monthToDateCharges": {
"currency": "USD",
"value": 600
},
"productCategory": "UsageBased",
"productType": "Usage based",
"productTypeId": "DZH318Z0BPS6",
"purchaseDate": "2021-10-01T00:00:00Z",
"quantity": 1,
"skuId": "0001",
"skuDescription": "Microsoft Azure Plan",
"status": "Active",
"subscriptionId": "6b96d3f2-9008-4a9d-912f-f87744185aa3"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"parameters": {
"api-version": "2021-10-01",
"billingAccountName": "{billingAccountName}",
"aliasName": "c356b7c7-7545-4686-b843-c1a49cf853fc"
},
"responses": {
"200": {
"body": {
"id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingSubscriptionAliases/c356b7c7-7545-4686-b843-c1a49cf853fc",
"name": "c356b7c7-7545-4686-b843-c1a49cf853fc",
"type": "Microsoft.Billing/billingAccounts/billingSubscriptionAliases",
"properties": {
"autoRenew": "Off",
"billingFrequency": "P1M",
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/2b72f936-0166-47d6-91a3-ef9f84f36664",
"billingProfileDisplayName": "Contoso operations billing profile",
"billingProfileName": "2b72f936-0166-47d6-91a3-ef9f84f36664",
"billingSubscriptionId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingSubscriptions/418b0e9c-5dc3-4260-918f-30b90619fe07",
"displayName": "Subscription 1",
"invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/2b72f936-0166-47d6-91a3-ef9f84f36664/invoiceSections/5c562559-e31b-4bfe-b608-f8b5b3fbd073",
"invoiceSectionDisplayName": "Contoso operations invoice section",
"invoiceSectionName": "5c562559-e31b-4bfe-b608-f8b5b3fbd073",
"lastMonthCharges": {
"currency": "USD",
"value": 5000.00
},
"monthToDateCharges": {
"currency": "USD",
"value": 600
},
"productCategory": "UsageBased",
"productType": "Usage based",
"productTypeId": "DZH318Z0BPS6",
"purchaseDate": "2021-10-01T00:00:00Z",
"quantity": 1,
"skuId": "0001",
"skuDescription": "Microsoft Azure Plan",
"status": "Active",
"subscriptionId": "6b96d3f2-9008-4a9d-912f-f87744185aa3"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
{
"parameters": {
"api-version": "2021-10-01",
"billingAccountName": "{billingAccountName}"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingSubscriptionAliases/c356b7c7-7545-4686-b843-c1a49cf853fc",
"name": "c356b7c7-7545-4686-b843-c1a49cf853fc",
"type": "Microsoft.Billing/billingAccounts/billingSubscriptionAliases",
"properties": {
"autoRenew": "Off",
"billingFrequency": "P1M",
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/2b72f936-0166-47d6-91a3-ef9f84f36664",
"billingProfileDisplayName": "Contoso operations billing profile",
"billingProfileName": "2b72f936-0166-47d6-91a3-ef9f84f36664",
"billingSubscriptionId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingSubscriptions/418b0e9c-5dc3-4260-918f-30b90619fe07",
"displayName": "Subscription 1",
"invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/2b72f936-0166-47d6-91a3-ef9f84f36664/invoiceSections/5c562559-e31b-4bfe-b608-f8b5b3fbd073",
"invoiceSectionDisplayName": "Contoso operations invoice section",
"invoiceSectionName": "5c562559-e31b-4bfe-b608-f8b5b3fbd073",
"lastMonthCharges": {
"currency": "USD",
"value": 5000.00
},
"monthToDateCharges": {
"currency": "USD",
"value": 600
},
"productCategory": "UsageBased",
"productType": "Usage Based",
"productTypeId": "DZH318Z0BPS6",
"purchaseDate": "2021-10-01T00:00:00Z",
"quantity": 1,
"skuId": "0001",
"skuDescription": "Microsoft Azure Plan",
"status": "Active",
"subscriptionId": "6b96d3f2-9008-4a9d-912f-f87744185aa3"
}
},
{
"id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingSubscriptionAliases/ec16a54e-e8ad-4c14-8e87-e30e75fa800e",
"name": "ec16a54e-e8ad-4c14-8e87-e30e75fa800e",
"type": "Microsoft.Billing/billingAccounts/billingSubscriptionAliases",
"properties": {
"autoRenew": "Off",
"billingFrequency": "P1M",
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/2b72f936-0166-47d6-91a3-ef9f84f36664",
"billingProfileDisplayName": "Contoso operations billing profile",
"billingProfileName": "2b72f936-0166-47d6-91a3-ef9f84f36664",
"billingSubscriptionId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingSubscriptions/9e030ae5-51ed-4e02-8e17-d51b3aa55980",
"displayName": "Subscription 2",
"invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/2b72f936-0166-47d6-91a3-ef9f84f36664/invoiceSections/5c562559-e31b-4bfe-b608-f8b5b3fbd073",
"invoiceSectionDisplayName": "Contoso operations invoice section",
"invoiceSectionName": "5c562559-e31b-4bfe-b608-f8b5b3fbd073",
"lastMonthCharges": {
"currency": "USD",
"value": 1000.00
},
"monthToDateCharges": {
"currency": "USD",
"value": 400
},
"productCategory": "UsageBased",
"productType": "Usage based",
"productTypeId": "DZH318Z0BPS6",
"purchaseDate": "2021-10-01T00:00:00Z",
"quantity": 1,
"skuId": "0001",
"skuDescription": "Microsoft Azure Plan",
"status": "Active",
"subscriptionId": "6b96d3f2-9008-4a9d-912f-6b96d3f2"
}
},
{
"id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingSubscriptionAliases/2ee97fe0-efca-4960-a9af-98a30c2c497c",
"name": "2ee97fe0-efca-4960-a9af-98a30c2c497c",
"type": "Microsoft.Billing/billingAccounts/billingSubscriptionAliases",
"properties": {
"autoRenew": "Off",
"billingFrequency": "P1M",
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/2b72f936-0166-47d6-91a3-ef9f84f36664",
"billingProfileDisplayName": "Contoso operations billing profile",
"billingProfileName": "2b72f936-0166-47d6-91a3-ef9f84f36664",
"billingSubscriptionId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingSubscriptions/7f271b5e-a89e-45cc-8fa5-cd5c643f8b5e",
"displayName": "Subscription 3",
"invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/2b72f936-0166-47d6-91a3-ef9f84f36664/invoiceSections/5c562559-e31b-4bfe-b608-f8b5b3fbd0730",
"invoiceSectionDisplayName": "Contoso operations invoice section",
"invoiceSectionName": "5c562559-e31b-4bfe-b608-f8b5b3fbd073",
"lastMonthCharges": {
"currency": "USD",
"value": 6000.00
},
"monthToDateCharges": {
"currency": "USD",
"value": 900
},
"productCategory": "SeatBased",
"productType": "Microsoft 365 Business Standard",
"productTypeId": "CFQ7TTC0LDPB",
"purchaseDate": "2021-08-01T00:12:49.7261677+00:00",
"quantity": 4,
"skuId": "0001",
"skuDescription": "Microsoft 365 Business Standard",
"status": "Active",
"termDuration": "P1Y",
"termStartDate": "2021-10-01T00:00:00Z",
"termEndDate": "2022-09-30T00:00:00Z"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
{
"parameters": {
"api-version": "2021-10-01",
"billingAccountName": "{billingAccountName}"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingSubscriptions/418b0e9c-5dc3-4260-918f-30b90619fe07",
"name": "418b0e9c-5dc3-4260-918f-30b90619fe07",
"type": "Microsoft.Billing/billingAccounts/billingSubscriptions",
"properties": {
"autoRenew": "Off",
"billingFrequency": "P1M",
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/2b72f936-0166-47d6-91a3-ef9f84f36664",
"billingProfileDisplayName": "Contoso operations billing profile",
"billingProfileName": "2b72f936-0166-47d6-91a3-ef9f84f36664",
jbuls marked this conversation as resolved.
Show resolved Hide resolved
"displayName": "Subscription 1",
"invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/2b72f936-0166-47d6-91a3-ef9f84f36664/invoiceSections/5c562559-e31b-4bfe-b608-f8b5b3fbd073",
"invoiceSectionDisplayName": "Contoso operations invoice section",
"invoiceSectionName": "5c562559-e31b-4bfe-b608-f8b5b3fbd073",
"lastMonthCharges": {
"currency": "USD",
"value": 5000.00
},
"monthToDateCharges": {
"currency": "USD",
"value": 600
},
"productCategory": "UsageBased",
"productType": "Usage based",
"productTypeId": "DZH318Z0BPS6",
"purchaseDate": "2021-10-01T00:00:00Z",
"quantity": 1,
"skuId": "0001",
"skuDescription": "Microsoft Azure Plan",
"status": "Active",
"subscriptionId": "6b96d3f2-9008-4a9d-912f-f87744185aa3"
}
},
{
"id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingSubscriptions/9e030ae5-51ed-4e02-8e17-d51b3aa55980",
"name": "9e030ae5-51ed-4e02-8e17-d51b3aa55980",
"type": "Microsoft.Billing/billingAccounts/billingSubscriptions",
"properties": {
"autoRenew": "Off",
"billingFrequency": "P1M",
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/2b72f936-0166-47d6-91a3-ef9f84f36664",
"billingProfileDisplayName": "Contoso operations billing profile",
"billingProfileName": "2b72f936-0166-47d6-91a3-ef9f84f36664",
"displayName": "Subscription 2",
"invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/2b72f936-0166-47d6-91a3-ef9f84f36664/invoiceSections/5c562559-e31b-4bfe-b608-f8b5b3fbd073",
"invoiceSectionDisplayName": "Contoso operations invoice section",
"invoiceSectionName": "5c562559-e31b-4bfe-b608-f8b5b3fbd073",
"lastMonthCharges": {
"currency": "USD",
"value": 1000.00
},
"monthToDateCharges": {
"currency": "USD",
"value": 400
},
"productCategory": "UsageBased",
"productType": "Usage based",
"productTypeId": "DZH318Z0BPS6",
"purchaseDate": "2021-10-01T00:00:00Z",
"quantity": 1,
"skuId": "0001",
"skuDescription": "Microsoft Azure Plan",
"status": "Active",
"subscriptionId": "6b96d3f2-9008-4a9d-912f-6b96d3f2"
}
},
{
"id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}billingSubscriptions/7f271b5e-a89e-45cc-8fa5-cd5c643f8b5e",
"name": "7f271b5e-a89e-45cc-8fa5-cd5c643f8b5e",
"type": "Microsoft.Billing/billingAccounts/billingSubscriptions",
"properties": {
"autoRenew": "Off",
"billingFrequency": "P1M",
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/2b72f936-0166-47d6-91a3-ef9f84f36664",
"billingProfileDisplayName": "Contoso operations billing profile",
"billingProfileName": "2b72f936-0166-47d6-91a3-ef9f84f36664",
"displayName": "Subscription 3",
"invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/2b72f936-0166-47d6-91a3-ef9f84f36664/invoiceSections/5c562559-e31b-4bfe-b608-f8b5b3fbd0730",
"invoiceSectionDisplayName": "Contoso operations invoice section",
"invoiceSectionName": "5c562559-e31b-4bfe-b608-f8b5b3fbd073",
"lastMonthCharges": {
"currency": "USD",
"value": 6000.00
},
"monthToDateCharges": {
"currency": "USD",
"value": 900
},
"productCategory": "SeatBased",
"productType": "Microsoft 365 Business Standard",
"productTypeId": "CFQ7TTC0LDPB",
"purchaseDate": "2021-08-01T00:12:49.7261677+00:00",
"quantity": 4,
"skuId": "0001",
"skuDescription": "Microsoft 365 Business Standard",
"status": "Active",
"termDuration": "P1Y",
"termStartDate": "2021-10-01T00:00:00Z",
"termEndDate": "2022-09-30T00:00:00Z"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"parameters": {
"api-version": "2021-10-01",
"billingAccountName": "{billingAccountName}",
"billingSubscriptionName": "7f271b5e-a89e-45cc-8fa5-cd5c643f8b5e"
},
"responses": {
"200": {},
"202": {
"headers": {
"Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/operationResults/deleteBillingSubscription_7f271b5e-a89e-45cc-8fa5-cd5c643f8b5e:f9bd2643-e786-4c93-9978-3c7f2d574580?api-version=2021-10-01",
"Retry-After": "60"
}
},
"204": {}
}
}
Loading