diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json index 72c25bf84870..38e006b05097 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json @@ -6542,6 +6542,21 @@ "description": "Billing address.", "$ref": "#/definitions/AddressDetails" }, + "billingRelationshipType": { + "description": "Identifies which services and purchases are paid by a billing profile.", + "type": "string", + "enum": [ + "Direct", + "IndirectCustomer", + "IndirectPartner", + "CSPPartner" + ], + "readOnly": true, + "x-ms-enum": { + "name": "BillingRelationshipType", + "modelAsString": true + } + }, "invoiceEmailOptIn": { "description": "Flag controlling whether the invoices for the billing profile are sent through email.", "type": "boolean" @@ -6563,6 +6578,11 @@ "$ref": "#/definitions/AzurePlan" } }, + "indirectRelationshipInfo": { + "description": "Identifies the billing profile that is linked to another billing profile in indirect purchase motion.", + "readOnly": true, + "$ref": "#/definitions/IndirectRelationshipInfo" + }, "invoiceSections": { "description": "The invoice sections associated to the billing profile.", "type": "array", @@ -6609,6 +6629,14 @@ "name": "SpendingLimit", "modelAsString": true } + }, + "targetClouds": { + "description": "Identifies the cloud environments that are associated with a billing profile. This is a system managed optional field and gets updated as the billing profile gets associated with accounts in various clouds.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/TargetCloud" + } } } }, @@ -6657,6 +6685,23 @@ } } }, + "IndirectRelationshipInfo": { + "description": "The billing profile details of the partner of the customer for an indirect motion.", + "properties": { + "billingAccountName": { + "description": "The billing account name of the partner or the customer for an indirect motion.", + "type": "string" + }, + "billingProfileName": { + "description": "The billing profile name of the partner or the customer for an indirect motion.", + "type": "string" + }, + "displayName": { + "description": "The display name of the partner or customer for an indirect motion.", + "type": "string" + } + } + }, "InvoiceSectionCreationRequest": { "description": "The properties of the invoice section.", "properties": { @@ -6706,6 +6751,24 @@ "displayName": { "description": "The name of the invoice section.", "type": "string" + }, + "state": { + "description": "Identifies the state of an invoice section.", + "type": "string", + "enum": [ + "Active", + "Restricted" + ], + "readOnly": true, + "x-ms-enum": { + "name": "InvoiceSectionState", + "modelAsString": true + } + }, + "targetCloud": { + "description": "Identifies the cloud environments that are associated with an invoice section. This is a system managed optional field and gets updated as the invoice section gets associated with accounts in various clouds.", + "$ref": "#/definitions/TargetCloud", + "readOnly": true } } }, @@ -7541,6 +7604,19 @@ } } }, + "TargetCloud": { + "type": "string", + "description": "Possible cloud environments.", + "enum": [ + "USGov", + "USNat", + "USSec" + ], + "x-ms-enum": { + "name": "targetCloud", + "modelAsString": true + } + }, "TransactionListResult": { "description": "The list of transactions.", "properties": { diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountWithExpand.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountWithExpand.json index af15064c2b47..84fda10e5eb1 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountWithExpand.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountWithExpand.json @@ -47,6 +47,7 @@ "region": "WA", "country": "US" }, + "billingRelationshipType": "Direct", "currency": "USD", "enabledAzurePlans": [ { @@ -70,7 +71,8 @@ "name": "invoiceSectionId1", "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections", "properties": { - "displayName": "invoiceSectionName1" + "displayName": "invoiceSectionName1", + "state": "Active" } } ] @@ -94,6 +96,7 @@ "region": "WA", "country": "US" }, + "billingRelationshipType": "IndirectCustomer", "currency": "USD", "enabledAzurePlans": [ { @@ -105,6 +108,11 @@ "skuDescription": "Microsoft Azure Standard" } ], + "indirectRelationshipInfo": { + "billingAccountName": "30000000-0000-0000-0000-000000000001_00000000-0000-0000-0000-000000000000", + "billingProfileName": "33000000-0000-0000-0000-000000000001", + "displayName": "Partner1" + }, "invoiceDay": 5, "invoiceEmailOptIn": true, "poNumber": "ABC12345", @@ -116,7 +124,8 @@ "name": "invoiceSectionId2", "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections", "properties": { - "displayName": "invoiceSectionName2" + "displayName": "invoiceSectionName2", + "state": "Active" } } ] diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountsListWithExpand.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountsListWithExpand.json index c7dde32c8a76..b66a27ab61f7 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountsListWithExpand.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountsListWithExpand.json @@ -48,6 +48,7 @@ "region": "WA", "country": "US" }, + "billingRelationshipType": "Direct", "currency": "USD", "enabledAzurePlans": [ { @@ -71,7 +72,8 @@ "name": "invoiceSectionId1", "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections", "properties": { - "displayName": "invoiceSectionName1" + "displayName": "invoiceSectionName1", + "state": "Active" } }, { @@ -79,7 +81,8 @@ "name": "invoiceSectionId2", "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections", "properties": { - "displayName": "invoiceSectionName2" + "displayName": "invoiceSectionName2", + "state": "Active" } } ] @@ -103,6 +106,7 @@ "region": "WA", "country": "US" }, + "billingRelationshipType": "CSPPartner", "currency": "USD", "enabledAzurePlans": [ { @@ -125,7 +129,8 @@ "name": "invoiceSectionId11", "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections", "properties": { - "displayName": "invoiceSectionName11" + "displayName": "invoiceSectionName11", + "state": "Active" } } ] @@ -164,6 +169,7 @@ "region": "WA", "country": "US" }, + "billingRelationshipType": "IndirectPartner", "currency": "USD", "enabledAzurePlans": [ { @@ -175,19 +181,30 @@ "skuDescription": "Microsoft Azure Standard" } ], + "indirectRelationshipInfo": { + "billingAccountName": "20000000-0000-0000-0000-000000000001_00000000-0000-0000-0000-000000000000", + "billingProfileName": "22000000-0000-0000-0000-000000000001", + "displayName": "Customer1" + }, "invoiceDay": 5, "invoiceEmailOptIn": true, "poNumber": "ABC12345", "status": "Warned", "statusReasonCode": "PastDue", "spendingLimit": "On", + "targetClouds": [ + "USNat", + "USSec" + ], "invoiceSections": [ { "id": "/providers/Microsoft.Billing/billingAccounts/10000000-0000-0000-0000-000000000001_00000000-0000-0000-0000-000000000000/billingProfiles/11000000-0000-0000-0000-000000000004/invoiceSections/invoiceSectionId3", "name": "invoiceSectionId3", "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections", "properties": { - "displayName": "invoiceSectionName3" + "displayName": "invoiceSectionName3", + "state": "Restricted", + "targetCloud": "USNat" } }, { @@ -195,7 +212,9 @@ "name": "invoiceSectionId4", "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections", "properties": { - "displayName": "invoiceSectionName4" + "displayName": "invoiceSectionName4", + "state": "Restricted", + "targetCloud": "USSec" } } ] @@ -219,6 +238,7 @@ "region": "WA", "country": "US" }, + "billingRelationshipType": "IndirectCustomer", "currency": "USD", "enabledAzurePlans": [ { @@ -230,19 +250,28 @@ "skuDescription": "Microsoft Azure Standard" } ], + "indirectRelationshipInfo": { + "billingAccountName": "30000000-0000-0000-0000-000000000001_00000000-0000-0000-0000-000000000000", + "billingProfileName": "33000000-0000-0000-0000-000000000001", + "displayName": "Partner1" + }, "invoiceDay": 5, "invoiceEmailOptIn": true, "poNumber": "ABC12345", "status": "Warned", "statusReasonCode": "PastDue", "spendingLimit": "On", + "targetClouds": [ + "USSec" + ], "invoiceSections": [ { "id": "/providers/Microsoft.Billing/billingAccounts/10000000-0000-0000-0000-000000000001_00000000-0000-0000-0000-000000000000/billingProfiles/11000000-0000-0000-0000-000000000005/invoiceSections/invoiceSectionId5", "name": "invoiceSectionId5", "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections", "properties": { - "displayName": "invoiceSectionName5" + "displayName": "invoiceSectionName5", + "state": "Active" } }, { @@ -250,7 +279,9 @@ "name": "invoiceSectionId6", "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections", "properties": { - "displayName": "invoiceSectionName6" + "displayName": "invoiceSectionName6", + "state": "Restricted", + "targetCloud": "USSec" } } ] diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfile.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfile.json index 794438bcb108..8b42c518e7bc 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfile.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfile.json @@ -24,6 +24,7 @@ "region": "WA", "country": "US" }, + "billingRelationshipType": "Direct", "currency": "USD", "enabledAzurePlans": [ { diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfileWithExpand.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfileWithExpand.json index 85ac12f6cd22..874d4edd2ac3 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfileWithExpand.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfileWithExpand.json @@ -24,6 +24,7 @@ "region": "WA", "country": "US" }, + "billingRelationshipType": "Direct", "currency": "USD", "enabledAzurePlans": [ { @@ -47,7 +48,8 @@ "name": "invoiceSectionId1", "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections", "properties": { - "displayName": "invoiceSectionName1" + "displayName": "invoiceSectionName1", + "state": "Active" } } ] diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfilesListByBillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfilesListByBillingAccount.json index f918258a3c84..8b4b9e799cd3 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfilesListByBillingAccount.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfilesListByBillingAccount.json @@ -25,6 +25,7 @@ "region": "WA", "country": "US" }, + "billingRelationshipType": "Direct", "currency": "USD", "enabledAzurePlans": [ { @@ -62,6 +63,7 @@ "region": "WA", "country": "US" }, + "billingRelationshipType": "IndirectCustomer", "currency": "USD", "enabledAzurePlans": [ { @@ -73,11 +75,17 @@ "skuDescription": "Microsoft Azure Standard" } ], + "indirectRelationshipInfo": { + "billingAccountName": "30000000-0000-0000-0000-000000000001_00000000-0000-0000-0000-000000000000", + "billingProfileName": "33000000-0000-0000-0000-000000000001", + "displayName": "Partner1" + }, "invoiceDay": 5, "invoiceEmailOptIn": true, "poNumber": "ABC12345", "status": "Active", - "spendingLimit": "Off" + "spendingLimit": "Off", + "targetClouds": [] } } ] diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfilesListWithExpand.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfilesListWithExpand.json index 28e98ba64c59..ceda7db974ec 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfilesListWithExpand.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfilesListWithExpand.json @@ -25,6 +25,7 @@ "region": "WA", "country": "US" }, + "billingRelationshipType": "Direct", "currency": "USD", "enabledAzurePlans": [ { @@ -42,13 +43,15 @@ "status": "Warned", "statusReasonCode": "PastDue", "spendingLimit": "On", + "targetClouds": [], "invoiceSections": [ { "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000/invoiceSections/invoiceSectionId1", "name": "invoiceSectionId1", "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections", "properties": { - "displayName": "invoiceSectionName1" + "displayName": "invoiceSectionName1", + "state": "Active" } } ] @@ -72,6 +75,7 @@ "region": "WA", "country": "US" }, + "billingRelationshipType": "IndirectCustomer", "currency": "USD", "enabledAzurePlans": [ { @@ -83,19 +87,26 @@ "skuDescription": "Microsoft Azure Standard" } ], + "indirectRelationshipInfo": { + "billingAccountName": "30000000-0000-0000-0000-000000000001_00000000-0000-0000-0000-000000000000", + "billingProfileName": "33000000-0000-0000-0000-000000000001", + "displayName": "Partner1" + }, "invoiceDay": 5, "invoiceEmailOptIn": true, "poNumber": "ABC12345", "status": "Warned", "statusReasonCode": "PastDue", "spendingLimit": "On", + "targetClouds": [], "invoiceSections": [ { "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000001/invoiceSections/invoiceSectionId2", "name": "invoiceSectionId2", "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections", "properties": { - "displayName": "invoiceSectionName2" + "displayName": "invoiceSectionName2", + "state": "Active" } } ] diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSection.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSection.json index 90367f326204..8bc11359de83 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSection.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSection.json @@ -12,7 +12,8 @@ "name": "{invoiceSectionName}", "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections", "properties": { - "displayName": "invoiceSection1" + "displayName": "invoiceSection1", + "state": "Active" } } } diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionsListByBillingProfile.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionsListByBillingProfile.json index d4da6f96e6f8..63feeba01111 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionsListByBillingProfile.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionsListByBillingProfile.json @@ -13,7 +13,8 @@ "name": "22000000-0000-0000-0000-000000000000", "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections", "properties": { - "displayName": "invoiceSection1" + "displayName": "invoiceSection1", + "state": "Active" } }, { @@ -21,7 +22,9 @@ "name": "22000000-0000-0000-0000-000000000011", "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections", "properties": { - "displayName": "invoiceSection2" + "displayName": "invoiceSection2", + "state": "Restricted", + "targetCloud": "USSec" } } ] diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/billing.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/billing.json index 410b96e9e49a..965ec56e3691 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/billing.json +++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/billing.json @@ -4164,10 +4164,30 @@ "description": "The purchase order name that will appear on the invoices generated for the billing profile.", "type": "string" }, + "billingRelationshipType": { + "description": "Identifies which services and purchases are paid by a billing profile.", + "type": "string", + "enum": [ + "Direct", + "IndirectCustomer", + "IndirectPartner", + "CSPPartner" + ], + "readOnly": true, + "x-ms-enum": { + "name": "BillingRelationshipType", + "modelAsString": true + } + }, "billTo": { "description": "Billing address.", "$ref": "#/definitions/AddressDetails" }, + "indirectRelationshipInfo": { + "description": "Identifies the billing profile that is linked to another billing profile in indirect purchase motion.", + "readOnly": true, + "$ref": "#/definitions/IndirectRelationshipInfo" + }, "invoiceEmailOptIn": { "description": "Flag controlling whether the invoices for the billing profile are sent through email.", "type": "boolean" @@ -4243,6 +4263,14 @@ "name": "SpendingLimit", "modelAsString": true } + }, + "targetClouds": { + "description": "Identifies the cloud environments that are associated with a billing profile. This is a system managed optional field and gets updated as the billing profile gets associated with accounts in various clouds.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/TargetCloud" + } } } }, @@ -4324,6 +4352,23 @@ } } }, + "IndirectRelationshipInfo": { + "description": "The billing profile details of the partner of the customer for an indirect motion.", + "properties": { + "billingAccountName": { + "description": "The billing account name of the partner or the customer for an indirect motion.", + "type": "string" + }, + "billingProfileName": { + "description": "The billing profile name of the partner or the customer for an indirect motion.", + "type": "string" + }, + "displayName": { + "description": "The display name of the partner or customer for an indirect motion.", + "type": "string" + } + } + }, "InvoiceSectionCreationRequest": { "description": "The properties of the invoice section.", "properties": { @@ -4382,10 +4427,28 @@ }, "maxItems": 1000 }, + "state": { + "description": "Identifies the state of an invoice section.", + "type": "string", + "enum": [ + "Active", + "Restricted" + ], + "readOnly": true, + "x-ms-enum": { + "name": "InvoiceSectionState", + "modelAsString": true + } + }, "systemId": { "description": "The system generated unique identifier for an invoice section.", "type": "string", "readOnly": true + }, + "targetCloud": { + "description": "Identifies the cloud environments that are associated with an invoice section. This is a system managed optional field and gets updated as the invoice section gets associated with accounts in various clouds.", + "$ref": "#/definitions/TargetCloud", + "readOnly": true } } }, @@ -5214,6 +5277,19 @@ } } }, + "TargetCloud": { + "type": "string", + "description": "Possible cloud environments.", + "enum": [ + "USGov", + "USNat", + "USSec" + ], + "x-ms-enum": { + "name": "targetCloud", + "modelAsString": true + } + }, "TransactionListResult": { "description": "The list of transactions.", "properties": { diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountWithExpand.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountWithExpand.json index fc45287d5e7a..bfc17275c61b 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountWithExpand.json +++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountWithExpand.json @@ -38,6 +38,7 @@ "type": "Microsoft.Billing/billingAccounts/billingProfiles", "properties": { "displayName": "BillingProfile1", + "billingRelationshipType": "Direct", "billTo": { "companyName": "Contoso", "firstName": "Test", @@ -84,6 +85,7 @@ "pcCode": "A123456", "costCategory": "Support" }, + "state": "Active", "systemId": "9XXX-11XX-XX1-XXXX-XXX" } } @@ -97,6 +99,7 @@ "type": "Microsoft.Billing/billingAccounts/billingProfiles", "properties": { "displayName": "BillingProfile2", + "billingRelationshipType": "IndirectCustomer", "billTo": { "companyName": "Contoso", "firstName": "Test", @@ -122,6 +125,11 @@ "skuDescription": "Microsoft Azure Plan for DevTest" } ], + "indirectRelationshipInfo": { + "billingAccountName": "30000000-0000-0000-0000-000000000001_00000000-0000-0000-0000-000000000000", + "billingProfileName": "33000000-0000-0000-0000-000000000001", + "displayName": "Partner1" + }, "invoiceDay": 5, "invoiceEmailOptIn": true, "poNumber": "ABC12345", @@ -142,6 +150,7 @@ "pcCode": "Z223456", "costCategory": "Marketing" }, + "state": "Active", "systemId": "9XXX-22XX-XX1-XXXX-XXX" } } diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountsListWithExpand.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountsListWithExpand.json index 840377864089..d16532b2d9e6 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountsListWithExpand.json +++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountsListWithExpand.json @@ -39,6 +39,7 @@ "type": "Microsoft.Billing/billingAccounts/billingProfiles", "properties": { "displayName": "BillingProfile1", + "billingRelationshipType": "Direct", "billTo": { "companyName": "Contoso", "firstName": "Test", @@ -85,6 +86,7 @@ "pcCode": "A123456", "costCategory": "Support" }, + "state": "Active", "systemId": "9XXX-11XX-XX1-XXXX-XXX" } }, @@ -98,6 +100,7 @@ "pcCode": "B223456", "costCategory": "Finance" }, + "state": "Active", "systemId": "9XXX-22XX-XX1-XXXX-XXX" } } @@ -111,6 +114,7 @@ "type": "Microsoft.Billing/billingAccounts/billingProfiles", "properties": { "displayName": "BillingProfile2", + "billingRelationshipType": "CSPPartner", "billTo": { "companyName": "Contoso", "firstName": "Test", @@ -156,6 +160,7 @@ "pcCode": "Z223456", "costCategory": "Marketing" }, + "state": "Active", "systemId": "9XXX-33XX-XX1-XXXX-XXX" } } @@ -201,6 +206,7 @@ "email": "abc@contoso.com", "phoneNumber": "000-000-0000" }, + "billingRelationshipType": "IndirectPartner", "currency": "USD", "enabledAzurePlans": [ { @@ -212,6 +218,11 @@ "skuDescription": "Microsoft Azure Plan for DevTest" } ], + "indirectRelationshipInfo": { + "billingAccountName": "20000000-0000-0000-0000-000000000001_00000000-0000-0000-0000-000000000000", + "billingProfileName": "22000000-0000-0000-0000-000000000001", + "displayName": "Customer1" + }, "invoiceDay": 5, "invoiceEmailOptIn": true, "poNumber": "ABC12345", @@ -220,6 +231,10 @@ "status": "Warned", "statusReasonCode": "PastDue", "spendingLimit": "On", + "targetClouds": [ + "USNat", + "USSec" + ], "invoiceSections": { "hasMoreResults": true, "value": [ @@ -233,7 +248,9 @@ "pcCode": "C123456", "costCategory": "Support" }, - "systemId": "9XXX-44XX-XX1-XXXX-XXX" + "state": "Restricted", + "systemId": "9XXX-44XX-XX1-XXXX-XXX", + "targetCloud": "USNat" } }, { @@ -246,7 +263,9 @@ "pcCode": "D123456", "costCategory": "Marketing" }, - "systemId": "9XXX-55XX-XX1-XXXX-XXX" + "state": "Restricted", + "systemId": "9XXX-55XX-XX1-XXXX-XXX", + "targetCloud": "USSec" } } ] @@ -273,6 +292,7 @@ "email": "abc@contoso.com", "phoneNumber": "000-000-0000" }, + "billingRelationshipType": "IndirectCustomer", "currency": "USD", "enabledAzurePlans": [ { @@ -284,6 +304,11 @@ "skuDescription": "Microsoft Azure Plan for DevTest" } ], + "indirectRelationshipInfo": { + "billingAccountName": "30000000-0000-0000-0000-000000000001_00000000-0000-0000-0000-000000000000", + "billingProfileName": "33000000-0000-0000-0000-000000000001", + "displayName": "Partner1" + }, "invoiceDay": 5, "invoiceEmailOptIn": true, "poNumber": "ABC12345", @@ -292,6 +317,9 @@ "status": "Warned", "statusReasonCode": "PastDue", "spendingLimit": "On", + "targetClouds": [ + "USSec" + ], "invoiceSections": { "hasMoreResults": true, "value": [ @@ -305,6 +333,7 @@ "pcCode": "E123456", "costCategory": "Finance" }, + "state": "Active", "systemId": "9XXX-66XX-XX1-XXXX-XXX" } }, @@ -318,7 +347,9 @@ "pcCode": "O123456", "costCategory": "Support" }, - "systemId": "9XXX-77XX-XX1-XXXX-XXX" + "state": "Restricted", + "systemId": "9XXX-77XX-XX1-XXXX-XXX", + "targetCloud": "USSec" } } ] diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfile.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfile.json index a8dcf52150fa..fee326aec912 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfile.json +++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfile.json @@ -12,6 +12,7 @@ "type": "Microsoft.Billing/billingAccounts/billingProfiles", "properties": { "displayName": "Billing Profile1", + "billingRelationshipType": "Direct", "billTo": { "companyName": "Contoso", "firstName": "Test", diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfileWithExpand.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfileWithExpand.json index ef48d861b956..4ac97a6afd66 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfileWithExpand.json +++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfileWithExpand.json @@ -13,6 +13,7 @@ "type": "Microsoft.Billing/billingAccounts/billingProfiles", "properties": { "displayName": "Billing Profile1", + "billingRelationshipType": "Direct", "billTo": { "companyName": "Contoso", "firstName": "Test", @@ -59,6 +60,7 @@ "pcCode": "A123456", "costCategory": "Support" }, + "state": "Active", "systemId": "9XXX-11XX-XX1-XXXX-XXX" } } diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfilesListByBillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfilesListByBillingAccount.json index d3d8175d403d..8172fc6e2158 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfilesListByBillingAccount.json +++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfilesListByBillingAccount.json @@ -13,6 +13,7 @@ "type": "Microsoft.Billing/billingAccounts/billingProfiles", "properties": { "displayName": "BillingProfile1", + "billingRelationshipType": "Direct", "billTo": { "companyName": "Contoso", "firstName": "Test", @@ -54,6 +55,7 @@ "type": "Microsoft.Billing/billingAccounts/billingProfiles", "properties": { "displayName": "BillingProfile2", + "billingRelationshipType": "IndirectCustomer", "billTo": { "companyName": "Contoso", "firstName": "Test", @@ -79,13 +81,19 @@ "skuDescription": "Microsoft Azure Plan for DevTest" } ], + "indirectRelationshipInfo": { + "billingAccountName": "30000000-0000-0000-0000-000000000001_00000000-0000-0000-0000-000000000000", + "billingProfileName": "33000000-0000-0000-0000-000000000001", + "displayName": "Partner1" + }, "invoiceDay": 5, "invoiceEmailOptIn": true, "poNumber": "ABC12345", "hasReadAccess": true, "systemId": "2XXX-22XX-XX1-XXXX-XXX", "status": "Active", - "spendingLimit": "Off" + "spendingLimit": "Off", + "targetClouds": [] } } ] diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfilesListWithExpand.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfilesListWithExpand.json index 85a10f54a285..235fbb7e67ac 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfilesListWithExpand.json +++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfilesListWithExpand.json @@ -14,6 +14,7 @@ "type": "Microsoft.Billing/billingAccounts/billingProfiles", "properties": { "displayName": "BillingProfile1", + "billingRelationshipType": "Direct", "billTo": { "companyName": "Contoso", "firstName": "Test", @@ -47,6 +48,7 @@ "status": "Warned", "statusReasonCode": "PastDue", "spendingLimit": "On", + "targetClouds": [], "invoiceSections": { "hasMoreResults": false, "value": [ @@ -60,6 +62,7 @@ "pcCode": "A123456", "costCategory": "Support" }, + "state": "Active", "systemId": "9XXX-11XX-XX1-XXXX-XXX" } } @@ -73,6 +76,7 @@ "type": "Microsoft.Billing/billingAccounts/billingProfiles", "properties": { "displayName": "BillingProfile2", + "billingRelationshipType": "IndirectCustomer", "billTo": { "companyName": "Contoso", "firstName": "Test", @@ -98,6 +102,11 @@ "skuDescription": "Microsoft Azure Plan for DevTest" } ], + "indirectRelationshipInfo": { + "billingAccountName": "30000000-0000-0000-0000-000000000001_00000000-0000-0000-0000-000000000000", + "billingProfileName": "33000000-0000-0000-0000-000000000001", + "displayName": "Partner1" + }, "invoiceDay": 5, "invoiceEmailOptIn": true, "poNumber": "ABC12345", @@ -106,6 +115,7 @@ "status": "Warned", "statusReasonCode": "PastDue", "spendingLimit": "On", + "targetClouds": [], "invoiceSections": { "hasMoreResults": false, "value": [ @@ -119,6 +129,7 @@ "pcCode": "Z223456", "costCategory": "Marketing" }, + "state": "Active", "systemId": "9XXX-22XX-XX1-XXXX-XXX" } } diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceSection.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceSection.json index c751111a6438..0329f3a9ee64 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceSection.json +++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceSection.json @@ -17,6 +17,7 @@ "pcCode": "A123456", "costCategory": "Support" }, + "state": "Active", "systemId": "XX1X-XXAA-XXX-ZZZ" } } diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceSectionsListByBillingProfile.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceSectionsListByBillingProfile.json index e3bda0d87fb7..14dd48605423 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceSectionsListByBillingProfile.json +++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceSectionsListByBillingProfile.json @@ -18,6 +18,7 @@ "pcCode": "A123456", "costCategory": "Support" }, + "state": "Active", "systemId": "XX1X-XXAA-XXX-ZZZ" } }, @@ -31,7 +32,9 @@ "pcCode": "Z223456", "costCategory": "Marketing" }, - "systemId": "YY1X-BBAA-XXX-ZZZ" + "state": "Restricted", + "systemId": "YY1X-BBAA-XXX-ZZZ", + "targetCloud": "USSec" } } ]