Skip to content

Commit

Permalink
Adding BillingProfile Status, Reason, SpendingLimit and accountType. (A…
Browse files Browse the repository at this point in the history
  • Loading branch information
asarkar84 authored and 00Kai0 committed Oct 12, 2020
1 parent c5fcf89 commit ebd37a6
Show file tree
Hide file tree
Showing 14 changed files with 184 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5366,6 +5366,20 @@
"modelAsString": true
}
},
"accountType": {
"description": "The type of customer.",
"type": "string",
"enum": [
"Enterprise",
"Individual",
"Partner"
],
"readOnly": true,
"x-ms-enum": {
"name": "AccountType",
"modelAsString": true
}
},
"billingProfiles": {
"description": "The billing profiles associated to the billing account. By default this is not populated, unless it's specified in $expand.",
"type": "array",
Expand Down Expand Up @@ -5453,6 +5467,44 @@
"type": "string",
"readOnly": true
},
"billingProfileStatus": {
"description": "The status of the billing profile.",
"enum": [
"Active",
"Disabled",
"Warned"
],
"readOnly": true,
"x-ms-enum": {
"name": "BillingProfileStatus",
"modelAsString": true
}
},
"billingProfileStatusReasonCode": {
"description": "Reason for the specified billing profile status.",
"enum": [
"PastDue",
"SpendingLimitReached",
"SpendingLimitExpired"
],
"readOnly": true,
"x-ms-enum": {
"name": "BillingProfileStatusReasonCode",
"modelAsString": true
}
},
"billingProfileSpendingLimit": {
"description": "The billing profile spending limit.",
"enum": [
"Off",
"On"
],
"readOnly": true,
"x-ms-enum": {
"name": "BillingProfileSpendingLimit",
"modelAsString": true
}
},
"costCenter": {
"description": "Cost center name.",
"type": "string",
Expand Down Expand Up @@ -5854,6 +5906,44 @@
"items": {
"$ref": "#/definitions/InvoiceSection"
}
},
"status": {
"description": "The status of the billing profile.",
"enum": [
"Active",
"Disabled",
"Warned"
],
"readOnly": true,
"x-ms-enum": {
"name": "BillingProfileStatus",
"modelAsString": true
}
},
"statusReasonCode": {
"description": "Reason for the specified billing profile status.",
"enum": [
"PastDue",
"SpendingLimitReached",
"SpendingLimitExpired"
],
"readOnly": true,
"x-ms-enum": {
"name": "StatusReasonCode",
"modelAsString": true
}
},
"spendingLimit": {
"description": "The billing profile spending limit.",
"enum": [
"Off",
"On"
],
"readOnly": true,
"x-ms-enum": {
"name": "SpendingLimit",
"modelAsString": true
}
}
}
},
Expand Down Expand Up @@ -5995,6 +6085,44 @@
"type": "string",
"readOnly": true
},
"billingProfileStatus": {
"description": "The status of the billing profile.",
"enum": [
"Active",
"Disabled",
"Warned"
],
"readOnly": true,
"x-ms-enum": {
"name": "BillingProfileStatus",
"modelAsString": true
}
},
"billingProfileStatusReasonCode": {
"description": "Reason for the specified billing profile status.",
"enum": [
"PastDue",
"SpendingLimitReached",
"SpendingLimitExpired"
],
"readOnly": true,
"x-ms-enum": {
"name": "BillingProfileStatusReasonCode",
"modelAsString": true
}
},
"billingProfileSpendingLimit": {
"description": "The billing profile spending limit.",
"enum": [
"Off",
"On"
],
"readOnly": true,
"x-ms-enum": {
"name": "BillingProfileSpendingLimit",
"modelAsString": true
}
},
"enabledAzurePlans": {
"description": "Enabled azure plans for the associated billing profile.",
"type": "array",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"displayName": "Test Account",
"agreementType": "MicrosoftCustomerAgreement",
"customerType": "Enterprise",
"accountType": "Enterprise",
"organizationId": "00000000-0000-0000-0000-000000000000"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"country": "US"
},
"customerType": "Enterprise",
"accountType": "Enterprise",
"organizationId": "00000000-0000-0000-0000-000000000000",
"billingProfiles": [
{
Expand Down Expand Up @@ -60,6 +61,9 @@
"invoiceDay": 5,
"invoiceEmailOptIn": true,
"poNumber": "ABC12345",
"status": "Warned",
"statusReasonCode": "PastDue",
"spendingLimit": "On",
"invoiceSections": [
{
"id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000/invoiceSections/invoiceSectionId1",
Expand Down Expand Up @@ -104,6 +108,8 @@
"invoiceDay": 5,
"invoiceEmailOptIn": true,
"poNumber": "ABC12345",
"status": "Active",
"spendingLimit": "Off",
"invoiceSections": [
{
"id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000001/invoiceSections/invoiceSectionId2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"displayName": "Test Account 1",
"agreementType": "MicrosoftCustomerAgreement",
"customerType": "Enterprise",
"accountType": "Enterprise",
"organizationId": "00000000-0000-0000-0000-000000000000"
}
},
Expand All @@ -26,6 +27,7 @@
"agreementType": "MicrosoftCustomerAgreement",
"address": null,
"customerType": "Enterprise",
"accountType": "Enterprise",
"organizationId": "00000000-0000-0000-0000-000000000000"
}
},
Expand All @@ -37,6 +39,7 @@
"displayName": "Test Account 3",
"agreementType": "MicrosoftCustomerAgreement",
"customerType": "Enterprise",
"accountType": "Enterprise",
"organizationId": "00000000-0000-0000-0000-000000000000"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"country": "US"
},
"customerType": "Enterprise",
"accountType": "Enterprise",
"organizationId": "00000000-0000-0000-0000-000000000000",
"billingProfiles": [
{
Expand Down Expand Up @@ -61,6 +62,9 @@
"invoiceDay": 5,
"invoiceEmailOptIn": true,
"poNumber": "ABC12345",
"status": "Warned",
"statusReasonCode": "PastDue",
"spendingLimit": "On",
"invoiceSections": [
{
"id": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000_00000000-0000-0000-0000-000000000000/billingProfiles/11000000-0000-0000-0000-000000000000/invoiceSections/invoiceSectionId1",
Expand Down Expand Up @@ -113,6 +117,8 @@
"invoiceDay": 5,
"invoiceEmailOptIn": true,
"poNumber": "ABC12345",
"status": "Active",
"spendingLimit": "Off",
"invoiceSections": [
{
"id": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000_00000000-0000-0000-0000-000000000000/billingProfiles/11000000-0000-0000-0000-000000000001/invoiceSections/invoiceSectionId11",
Expand All @@ -137,6 +143,7 @@
"agreementType": "MicrosoftCustomerAgreement",
"address": null,
"customerType": "Enterprise",
"accountType": "Enterprise",
"organizationId": "00000000-0000-0000-0000-000000000000",
"billingProfiles": [
{
Expand Down Expand Up @@ -171,6 +178,9 @@
"invoiceDay": 5,
"invoiceEmailOptIn": true,
"poNumber": "ABC12345",
"status": "Warned",
"statusReasonCode": "PastDue",
"spendingLimit": "On",
"invoiceSections": [
{
"id": "/providers/Microsoft.Billing/billingAccounts/10000000-0000-0000-0000-000000000001_00000000-0000-0000-0000-000000000000/billingProfiles/11000000-0000-0000-0000-000000000004/invoiceSections/invoiceSectionId3",
Expand Down Expand Up @@ -223,6 +233,9 @@
"invoiceDay": 5,
"invoiceEmailOptIn": true,
"poNumber": "ABC12345",
"status": "Warned",
"statusReasonCode": "PastDue",
"spendingLimit": "On",
"invoiceSections": [
{
"id": "/providers/Microsoft.Billing/billingAccounts/10000000-0000-0000-0000-000000000001_00000000-0000-0000-0000-000000000000/billingProfiles/11000000-0000-0000-0000-000000000005/invoiceSections/invoiceSectionId5",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@
],
"invoiceDay": 5,
"invoiceEmailOptIn": true,
"poNumber": "ABC12345"
"poNumber": "ABC12345",
"status": "Warned",
"statusReasonCode": "PastDue",
"spendingLimit": "On"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@
"invoiceDay": 5,
"invoiceEmailOptIn": true,
"poNumber": "ABC12345",
"status": "Warned",
"statusReasonCode": "PastDue",
"spendingLimit": "On",
"invoiceSections": [
{
"id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/invoiceSectionId1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@
],
"invoiceDay": 5,
"invoiceEmailOptIn": true,
"poNumber": "ABC12345"
"poNumber": "ABC12345",
"status": "Warned",
"statusReasonCode": "PastDue",
"spendingLimit": "On"
}
},
{
Expand Down Expand Up @@ -72,7 +75,9 @@
],
"invoiceDay": 5,
"invoiceEmailOptIn": true,
"poNumber": "ABC12345"
"poNumber": "ABC12345",
"status": "Active",
"spendingLimit": "Off"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
"invoiceDay": 5,
"invoiceEmailOptIn": true,
"poNumber": "ABC12345",
"status": "Warned",
"statusReasonCode": "PastDue",
"spendingLimit": "On",
"invoiceSections": [
{
"id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000/invoiceSections/invoiceSectionId1",
Expand Down Expand Up @@ -83,6 +86,9 @@
"invoiceDay": 5,
"invoiceEmailOptIn": true,
"poNumber": "ABC12345",
"status": "Warned",
"statusReasonCode": "PastDue",
"spendingLimit": "On",
"invoiceSections": [
{
"id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000001/invoiceSections/invoiceSectionId2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
"billingAccountDisplayName": "My Account",
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000_00000000-0000-0000-0000-000000000000/billingProfiles/11000000-0000-0000-0000-000000000000",
"billingProfileDisplayName": "Contoso operations billing",
"billingProfileStatus": "Warned",
"billingProfileStatusReasonCode": "PastDue",
"billingProfileSpendingLimit": "On",
"costCenter": "1010",
"invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000_00000000-0000-0000-0000-000000000000/invoiceSections/22000000-0000-0000-0000-000000000000",
"invoiceSectionDisplayName": "Contoso operations invoice section",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@
],
"invoiceDay": 5,
"invoiceEmailOptIn": true,
"poNumber": "ABC12345"
"poNumber": "ABC12345",
"status": "Active",
"spendingLimit": "Off"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
"invoiceSectionDisplayName": "invoiceSection1",
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000",
"billingProfileDisplayName": "Contoso operations billing",
"billingProfileStatus": "Warned",
"billingProfileStatusReasonCode": "PastDue",
"billingProfileSpendingLimit": "On",
"enabledAzurePlans": [
{
"skuId": "0001",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"displayName": "Test Account",
"agreementType": "MicrosoftCustomerAgreement",
"customerType": "Enterprise",
"accountType": "Enterprise",
"organizationId": "00000000-0000-0000-0000-000000000000"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@
],
"invoiceDay": 5,
"invoiceEmailOptIn": true,
"poNumber": "ABC12345"
"poNumber": "ABC12345",
"status": "Active",
"spendingLimit": "Off"
}
}
}
Expand Down

0 comments on commit ebd37a6

Please sign in to comment.