diff --git a/sdk/billing/arm-billing/src/models/agreementsMappers.ts b/sdk/billing/arm-billing/src/models/agreementsMappers.ts index fdd6f0815138..710121a4573d 100644 --- a/sdk/billing/arm-billing/src/models/agreementsMappers.ts +++ b/sdk/billing/arm-billing/src/models/agreementsMappers.ts @@ -33,6 +33,7 @@ export { EnrollmentPolicies, ErrorDetails, ErrorResponse, + IndirectRelationshipInfo, Instruction, Invoice, InvoiceSection, diff --git a/sdk/billing/arm-billing/src/models/availableBalancesMappers.ts b/sdk/billing/arm-billing/src/models/availableBalancesMappers.ts index be9ad0c398d5..ae44ccd1c588 100644 --- a/sdk/billing/arm-billing/src/models/availableBalancesMappers.ts +++ b/sdk/billing/arm-billing/src/models/availableBalancesMappers.ts @@ -32,6 +32,7 @@ export { EnrollmentPolicies, ErrorDetails, ErrorResponse, + IndirectRelationshipInfo, Instruction, Invoice, InvoiceSection, diff --git a/sdk/billing/arm-billing/src/models/billingAccountsMappers.ts b/sdk/billing/arm-billing/src/models/billingAccountsMappers.ts index b78654782b7c..a36dcc189b65 100644 --- a/sdk/billing/arm-billing/src/models/billingAccountsMappers.ts +++ b/sdk/billing/arm-billing/src/models/billingAccountsMappers.ts @@ -34,6 +34,7 @@ export { EnrollmentPolicies, ErrorDetails, ErrorResponse, + IndirectRelationshipInfo, Instruction, Invoice, InvoiceSection, diff --git a/sdk/billing/arm-billing/src/models/billingPeriodsMappers.ts b/sdk/billing/arm-billing/src/models/billingPeriodsMappers.ts index 4842f880c178..89325ebb4512 100644 --- a/sdk/billing/arm-billing/src/models/billingPeriodsMappers.ts +++ b/sdk/billing/arm-billing/src/models/billingPeriodsMappers.ts @@ -33,6 +33,7 @@ export { EnrollmentPolicies, ErrorDetails, ErrorResponse, + IndirectRelationshipInfo, Instruction, Invoice, InvoiceSection, diff --git a/sdk/billing/arm-billing/src/models/billingProfilesMappers.ts b/sdk/billing/arm-billing/src/models/billingProfilesMappers.ts index 92448862a495..33d9008cb3a7 100644 --- a/sdk/billing/arm-billing/src/models/billingProfilesMappers.ts +++ b/sdk/billing/arm-billing/src/models/billingProfilesMappers.ts @@ -34,6 +34,7 @@ export { EnrollmentPolicies, ErrorDetails, ErrorResponse, + IndirectRelationshipInfo, Instruction, Invoice, InvoiceSection, diff --git a/sdk/billing/arm-billing/src/models/billingPropertyOperationsMappers.ts b/sdk/billing/arm-billing/src/models/billingPropertyOperationsMappers.ts index be9ad0c398d5..ae44ccd1c588 100644 --- a/sdk/billing/arm-billing/src/models/billingPropertyOperationsMappers.ts +++ b/sdk/billing/arm-billing/src/models/billingPropertyOperationsMappers.ts @@ -32,6 +32,7 @@ export { EnrollmentPolicies, ErrorDetails, ErrorResponse, + IndirectRelationshipInfo, Instruction, Invoice, InvoiceSection, diff --git a/sdk/billing/arm-billing/src/models/billingRoleAssignmentsMappers.ts b/sdk/billing/arm-billing/src/models/billingRoleAssignmentsMappers.ts index 5d740c90c77c..df4669ff751d 100644 --- a/sdk/billing/arm-billing/src/models/billingRoleAssignmentsMappers.ts +++ b/sdk/billing/arm-billing/src/models/billingRoleAssignmentsMappers.ts @@ -33,6 +33,7 @@ export { EnrollmentPolicies, ErrorDetails, ErrorResponse, + IndirectRelationshipInfo, Instruction, Invoice, InvoiceSection, diff --git a/sdk/billing/arm-billing/src/models/billingRoleDefinitionsMappers.ts b/sdk/billing/arm-billing/src/models/billingRoleDefinitionsMappers.ts index 15350dcd1932..13a8c8083423 100644 --- a/sdk/billing/arm-billing/src/models/billingRoleDefinitionsMappers.ts +++ b/sdk/billing/arm-billing/src/models/billingRoleDefinitionsMappers.ts @@ -33,6 +33,7 @@ export { EnrollmentPolicies, ErrorDetails, ErrorResponse, + IndirectRelationshipInfo, Instruction, Invoice, InvoiceSection, diff --git a/sdk/billing/arm-billing/src/models/billingSubscriptionsMappers.ts b/sdk/billing/arm-billing/src/models/billingSubscriptionsMappers.ts index 9ebd1d2c4964..3b4596fef69e 100644 --- a/sdk/billing/arm-billing/src/models/billingSubscriptionsMappers.ts +++ b/sdk/billing/arm-billing/src/models/billingSubscriptionsMappers.ts @@ -34,6 +34,7 @@ export { EnrollmentPolicies, ErrorDetails, ErrorResponse, + IndirectRelationshipInfo, Instruction, Invoice, InvoiceSection, diff --git a/sdk/billing/arm-billing/src/models/customersMappers.ts b/sdk/billing/arm-billing/src/models/customersMappers.ts index 334d1cf59d29..cbec0d82206d 100644 --- a/sdk/billing/arm-billing/src/models/customersMappers.ts +++ b/sdk/billing/arm-billing/src/models/customersMappers.ts @@ -33,6 +33,7 @@ export { EnrollmentPolicies, ErrorDetails, ErrorResponse, + IndirectRelationshipInfo, Instruction, Invoice, InvoiceSection, diff --git a/sdk/billing/arm-billing/src/models/enrollmentAccountsMappers.ts b/sdk/billing/arm-billing/src/models/enrollmentAccountsMappers.ts index 4bcad7e60645..7b0ba2a150ae 100644 --- a/sdk/billing/arm-billing/src/models/enrollmentAccountsMappers.ts +++ b/sdk/billing/arm-billing/src/models/enrollmentAccountsMappers.ts @@ -33,6 +33,7 @@ export { EnrollmentPolicies, ErrorDetails, ErrorResponse, + IndirectRelationshipInfo, Instruction, Invoice, InvoiceSection, diff --git a/sdk/billing/arm-billing/src/models/index.ts b/sdk/billing/arm-billing/src/models/index.ts index eb69ebae850f..7cc262e63b69 100644 --- a/sdk/billing/arm-billing/src/models/index.ts +++ b/sdk/billing/arm-billing/src/models/index.ts @@ -224,6 +224,24 @@ export interface ValidateSubscriptionTransferEligibilityResult { errorDetails?: ValidateSubscriptionTransferEligibilityError; } +/** + * The billing profile details of the partner of the customer for an indirect motion. + */ +export interface IndirectRelationshipInfo { + /** + * The billing account name of the partner or the customer for an indirect motion. + */ + billingAccountName?: string; + /** + * The billing profile name of the partner or the customer for an indirect motion. + */ + billingProfileName?: string; + /** + * The display name of the partner or customer for an indirect motion. + */ + displayName?: string; +} + /** * An invoice section. */ @@ -236,11 +254,23 @@ export interface InvoiceSection extends Resource { * Dictionary of metadata associated with the invoice section. */ labels?: { [propertyName: string]: string }; + /** + * Identifies the state of an invoice section. Possible values include: 'Active', 'Restricted' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly state?: InvoiceSectionState; /** * The system generated unique identifier for an invoice section. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly systemId?: string; + /** + * 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. Possible values include: 'USGov', 'USNat', 'USSec' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly targetCloud?: TargetCloud; } /** @@ -273,10 +303,22 @@ export interface BillingProfile extends Resource { * The purchase order name that will appear on the invoices generated for the billing profile. */ poNumber?: string; + /** + * Identifies which services and purchases are paid by a billing profile. Possible values + * include: 'Direct', 'IndirectCustomer', 'IndirectPartner', 'CSPPartner' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly billingRelationshipType?: BillingRelationshipType; /** * Billing address. */ billTo?: AddressDetails; + /** + * Identifies the billing profile that is linked to another billing profile in indirect purchase + * motion. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly indirectRelationshipInfo?: IndirectRelationshipInfo; /** * Flag controlling whether the invoices for the billing profile are sent through email. */ @@ -326,6 +368,13 @@ export interface BillingProfile extends Resource { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly spendingLimit?: SpendingLimit; + /** + * 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. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly targetClouds?: TargetCloud[]; } /** @@ -2304,6 +2353,30 @@ export type AccountType = 'Enterprise' | 'Individual' | 'Partner'; */ export type AccountStatus = 'Active' | 'Deleted' | 'Disabled' | 'Expired' | 'Transferred' | 'Extended' | 'Terminated'; +/** + * Defines values for BillingRelationshipType. + * Possible values include: 'Direct', 'IndirectCustomer', 'IndirectPartner', 'CSPPartner' + * @readonly + * @enum {string} + */ +export type BillingRelationshipType = 'Direct' | 'IndirectCustomer' | 'IndirectPartner' | 'CSPPartner'; + +/** + * Defines values for InvoiceSectionState. + * Possible values include: 'Active', 'Restricted' + * @readonly + * @enum {string} + */ +export type InvoiceSectionState = 'Active' | 'Restricted'; + +/** + * Defines values for TargetCloud. + * Possible values include: 'USGov', 'USNat', 'USSec' + * @readonly + * @enum {string} + */ +export type TargetCloud = 'USGov' | 'USNat' | 'USSec'; + /** * Defines values for BillingProfileStatus. * Possible values include: 'Active', 'Disabled', 'Warned' diff --git a/sdk/billing/arm-billing/src/models/instructionsMappers.ts b/sdk/billing/arm-billing/src/models/instructionsMappers.ts index f74349a8920c..b2398eda6653 100644 --- a/sdk/billing/arm-billing/src/models/instructionsMappers.ts +++ b/sdk/billing/arm-billing/src/models/instructionsMappers.ts @@ -32,6 +32,7 @@ export { EnrollmentPolicies, ErrorDetails, ErrorResponse, + IndirectRelationshipInfo, Instruction, InstructionListResult, Invoice, diff --git a/sdk/billing/arm-billing/src/models/invoiceSectionsMappers.ts b/sdk/billing/arm-billing/src/models/invoiceSectionsMappers.ts index 1edfef13b61a..50fbf21f9769 100644 --- a/sdk/billing/arm-billing/src/models/invoiceSectionsMappers.ts +++ b/sdk/billing/arm-billing/src/models/invoiceSectionsMappers.ts @@ -32,6 +32,7 @@ export { EnrollmentPolicies, ErrorDetails, ErrorResponse, + IndirectRelationshipInfo, Instruction, Invoice, InvoiceSection, diff --git a/sdk/billing/arm-billing/src/models/invoicesMappers.ts b/sdk/billing/arm-billing/src/models/invoicesMappers.ts index f787ce979829..7c84d0f7abc4 100644 --- a/sdk/billing/arm-billing/src/models/invoicesMappers.ts +++ b/sdk/billing/arm-billing/src/models/invoicesMappers.ts @@ -33,6 +33,7 @@ export { EnrollmentPolicies, ErrorDetails, ErrorResponse, + IndirectRelationshipInfo, Instruction, Invoice, InvoiceListResult, diff --git a/sdk/billing/arm-billing/src/models/mappers.ts b/sdk/billing/arm-billing/src/models/mappers.ts index 0d7daa658e11..d46887e45126 100644 --- a/sdk/billing/arm-billing/src/models/mappers.ts +++ b/sdk/billing/arm-billing/src/models/mappers.ts @@ -354,6 +354,34 @@ export const ValidateSubscriptionTransferEligibilityResult: msRest.CompositeMapp } }; +export const IndirectRelationshipInfo: msRest.CompositeMapper = { + serializedName: "IndirectRelationshipInfo", + type: { + name: "Composite", + className: "IndirectRelationshipInfo", + modelProperties: { + billingAccountName: { + serializedName: "billingAccountName", + type: { + name: "String" + } + }, + billingProfileName: { + serializedName: "billingProfileName", + type: { + name: "String" + } + }, + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + } + } + } +}; + export const InvoiceSection: msRest.CompositeMapper = { serializedName: "InvoiceSection", type: { @@ -378,12 +406,26 @@ export const InvoiceSection: msRest.CompositeMapper = { } } }, + state: { + readOnly: true, + serializedName: "properties.state", + type: { + name: "String" + } + }, systemId: { readOnly: true, serializedName: "properties.systemId", type: { name: "String" } + }, + targetCloud: { + readOnly: true, + serializedName: "properties.targetCloud", + type: { + name: "String" + } } } } @@ -437,6 +479,13 @@ export const BillingProfile: msRest.CompositeMapper = { name: "String" } }, + billingRelationshipType: { + readOnly: true, + serializedName: "properties.billingRelationshipType", + type: { + name: "String" + } + }, billTo: { serializedName: "properties.billTo", type: { @@ -444,6 +493,14 @@ export const BillingProfile: msRest.CompositeMapper = { className: "AddressDetails" } }, + indirectRelationshipInfo: { + readOnly: true, + serializedName: "properties.indirectRelationshipInfo", + type: { + name: "Composite", + className: "IndirectRelationshipInfo" + } + }, invoiceEmailOptIn: { serializedName: "properties.invoiceEmailOptIn", type: { @@ -517,6 +574,18 @@ export const BillingProfile: msRest.CompositeMapper = { type: { name: "String" } + }, + targetClouds: { + readOnly: true, + serializedName: "properties.targetClouds", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } } } } diff --git a/sdk/billing/arm-billing/src/models/policiesMappers.ts b/sdk/billing/arm-billing/src/models/policiesMappers.ts index be9ad0c398d5..ae44ccd1c588 100644 --- a/sdk/billing/arm-billing/src/models/policiesMappers.ts +++ b/sdk/billing/arm-billing/src/models/policiesMappers.ts @@ -32,6 +32,7 @@ export { EnrollmentPolicies, ErrorDetails, ErrorResponse, + IndirectRelationshipInfo, Instruction, Invoice, InvoiceSection, diff --git a/sdk/billing/arm-billing/src/models/productsMappers.ts b/sdk/billing/arm-billing/src/models/productsMappers.ts index dd4a5e366687..fa04546d1cf7 100644 --- a/sdk/billing/arm-billing/src/models/productsMappers.ts +++ b/sdk/billing/arm-billing/src/models/productsMappers.ts @@ -32,6 +32,7 @@ export { EnrollmentPolicies, ErrorDetails, ErrorResponse, + IndirectRelationshipInfo, Instruction, Invoice, InvoiceSection, diff --git a/sdk/billing/arm-billing/src/models/transactionsMappers.ts b/sdk/billing/arm-billing/src/models/transactionsMappers.ts index b729d6b6c78f..05534d182bf2 100644 --- a/sdk/billing/arm-billing/src/models/transactionsMappers.ts +++ b/sdk/billing/arm-billing/src/models/transactionsMappers.ts @@ -32,6 +32,7 @@ export { EnrollmentPolicies, ErrorDetails, ErrorResponse, + IndirectRelationshipInfo, Instruction, Invoice, InvoiceSection,