diff --git a/sdk/billing/arm-billing/src/models/agreementsMappers.ts b/sdk/billing/arm-billing/src/models/agreementsMappers.ts index 710121a4573d..a3a3a8de2118 100644 --- a/sdk/billing/arm-billing/src/models/agreementsMappers.ts +++ b/sdk/billing/arm-billing/src/models/agreementsMappers.ts @@ -42,6 +42,7 @@ export { PaymentProperties, Policy, Product, + RebillDetails, Reseller, Resource, Transaction diff --git a/sdk/billing/arm-billing/src/models/availableBalancesMappers.ts b/sdk/billing/arm-billing/src/models/availableBalancesMappers.ts index ae44ccd1c588..b4332e6dcf99 100644 --- a/sdk/billing/arm-billing/src/models/availableBalancesMappers.ts +++ b/sdk/billing/arm-billing/src/models/availableBalancesMappers.ts @@ -41,6 +41,7 @@ export { PaymentProperties, Policy, Product, + RebillDetails, Reseller, Resource, Transaction diff --git a/sdk/billing/arm-billing/src/models/billingAccountsMappers.ts b/sdk/billing/arm-billing/src/models/billingAccountsMappers.ts index a36dcc189b65..f39a01d92fd0 100644 --- a/sdk/billing/arm-billing/src/models/billingAccountsMappers.ts +++ b/sdk/billing/arm-billing/src/models/billingAccountsMappers.ts @@ -45,6 +45,7 @@ export { PaymentProperties, Policy, Product, + RebillDetails, Reseller, Resource, Transaction diff --git a/sdk/billing/arm-billing/src/models/billingPeriodsMappers.ts b/sdk/billing/arm-billing/src/models/billingPeriodsMappers.ts index 89325ebb4512..cc2f2ee30fa1 100644 --- a/sdk/billing/arm-billing/src/models/billingPeriodsMappers.ts +++ b/sdk/billing/arm-billing/src/models/billingPeriodsMappers.ts @@ -42,6 +42,7 @@ export { PaymentProperties, Policy, Product, + RebillDetails, Reseller, Resource, Transaction diff --git a/sdk/billing/arm-billing/src/models/billingProfilesMappers.ts b/sdk/billing/arm-billing/src/models/billingProfilesMappers.ts index 33d9008cb3a7..e501cc83b5bb 100644 --- a/sdk/billing/arm-billing/src/models/billingProfilesMappers.ts +++ b/sdk/billing/arm-billing/src/models/billingProfilesMappers.ts @@ -43,6 +43,7 @@ export { PaymentProperties, Policy, Product, + RebillDetails, Reseller, Resource, Transaction diff --git a/sdk/billing/arm-billing/src/models/billingPropertyOperationsMappers.ts b/sdk/billing/arm-billing/src/models/billingPropertyOperationsMappers.ts index ae44ccd1c588..b4332e6dcf99 100644 --- a/sdk/billing/arm-billing/src/models/billingPropertyOperationsMappers.ts +++ b/sdk/billing/arm-billing/src/models/billingPropertyOperationsMappers.ts @@ -41,6 +41,7 @@ export { PaymentProperties, Policy, Product, + RebillDetails, Reseller, Resource, Transaction diff --git a/sdk/billing/arm-billing/src/models/billingRoleAssignmentsMappers.ts b/sdk/billing/arm-billing/src/models/billingRoleAssignmentsMappers.ts index df4669ff751d..a6d53ae33690 100644 --- a/sdk/billing/arm-billing/src/models/billingRoleAssignmentsMappers.ts +++ b/sdk/billing/arm-billing/src/models/billingRoleAssignmentsMappers.ts @@ -42,6 +42,7 @@ export { PaymentProperties, Policy, Product, + RebillDetails, Reseller, Resource, Transaction diff --git a/sdk/billing/arm-billing/src/models/billingRoleDefinitionsMappers.ts b/sdk/billing/arm-billing/src/models/billingRoleDefinitionsMappers.ts index 13a8c8083423..b7bf39e6f0c0 100644 --- a/sdk/billing/arm-billing/src/models/billingRoleDefinitionsMappers.ts +++ b/sdk/billing/arm-billing/src/models/billingRoleDefinitionsMappers.ts @@ -42,6 +42,7 @@ export { PaymentProperties, Policy, Product, + RebillDetails, Reseller, Resource, Transaction diff --git a/sdk/billing/arm-billing/src/models/billingSubscriptionsMappers.ts b/sdk/billing/arm-billing/src/models/billingSubscriptionsMappers.ts index 3b4596fef69e..44c5b6dd5985 100644 --- a/sdk/billing/arm-billing/src/models/billingSubscriptionsMappers.ts +++ b/sdk/billing/arm-billing/src/models/billingSubscriptionsMappers.ts @@ -43,6 +43,7 @@ export { PaymentProperties, Policy, Product, + RebillDetails, Reseller, Resource, Transaction, diff --git a/sdk/billing/arm-billing/src/models/customersMappers.ts b/sdk/billing/arm-billing/src/models/customersMappers.ts index cbec0d82206d..c4a6b4d10109 100644 --- a/sdk/billing/arm-billing/src/models/customersMappers.ts +++ b/sdk/billing/arm-billing/src/models/customersMappers.ts @@ -42,6 +42,7 @@ export { PaymentProperties, Policy, Product, + RebillDetails, Reseller, Resource, Transaction diff --git a/sdk/billing/arm-billing/src/models/enrollmentAccountsMappers.ts b/sdk/billing/arm-billing/src/models/enrollmentAccountsMappers.ts index 7b0ba2a150ae..503ab2a1d6a9 100644 --- a/sdk/billing/arm-billing/src/models/enrollmentAccountsMappers.ts +++ b/sdk/billing/arm-billing/src/models/enrollmentAccountsMappers.ts @@ -42,6 +42,7 @@ export { PaymentProperties, Policy, Product, + RebillDetails, Reseller, Resource, Transaction diff --git a/sdk/billing/arm-billing/src/models/index.ts b/sdk/billing/arm-billing/src/models/index.ts index 7cc262e63b69..469d1764fd71 100644 --- a/sdk/billing/arm-billing/src/models/index.ts +++ b/sdk/billing/arm-billing/src/models/index.ts @@ -959,6 +959,27 @@ export interface PaymentProperties { readonly paymentMethodType?: string; } +/** + * The rebill details of an invoice. + */ +export interface RebillDetails { + /** + * The ID of credit note. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly creditNoteDocumentId?: string; + /** + * The ID of invoice. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly invoiceDocumentId?: string; + /** + * Rebill details for an invoice. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly rebillDetails?: { [propertyName: string]: RebillDetails }; +} + /** * An invoice. */ @@ -974,7 +995,7 @@ export interface Invoice extends Resource { */ readonly invoiceDate?: Date; /** - * The current status of the invoice. Possible values include: 'Due', 'OverDue', 'Paid' + * The current status of the invoice. Possible values include: 'Due', 'OverDue', 'Paid', 'Void' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly status?: InvoiceStatus; @@ -1070,6 +1091,28 @@ export interface Invoice extends Resource { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly payments?: PaymentProperties[]; + /** + * Rebill details for an invoice. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly rebillDetails?: { [propertyName: string]: RebillDetails }; + /** + * The type of the document. Possible values include: 'Invoice', 'CreditNote' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly documentType?: InvoiceDocumentType; + /** + * The Id of the active invoice which is originally billed after this invoice was voided. This + * field is applicable to the void invoices only. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly billedDocumentId?: string; + /** + * The Id of the invoice which got voided and this credit note was issued as a result. This field + * is applicable to the credit notes only. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly creditForDocumentId?: string; /** * The ID of the subscription for which the invoice is generated. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -2435,11 +2478,11 @@ export type SpendingLimitForBillingProfile = 'Off' | 'On'; /** * Defines values for InvoiceStatus. - * Possible values include: 'Due', 'OverDue', 'Paid' + * Possible values include: 'Due', 'OverDue', 'Paid', 'Void' * @readonly * @enum {string} */ -export type InvoiceStatus = 'Due' | 'OverDue' | 'Paid'; +export type InvoiceStatus = 'Due' | 'OverDue' | 'Paid' | 'Void'; /** * Defines values for InvoiceType. @@ -2473,6 +2516,14 @@ export type DocumentSource = 'DRS' | 'ENF'; */ export type PaymentMethodFamily = 'Credits' | 'CheckWire' | 'CreditCard' | 'None'; +/** + * Defines values for InvoiceDocumentType. + * Possible values include: 'Invoice', 'CreditNote' + * @readonly + * @enum {string} + */ +export type InvoiceDocumentType = 'Invoice' | 'CreditNote'; + /** * Defines values for AutoRenew. * Possible values include: 'Off', 'On' diff --git a/sdk/billing/arm-billing/src/models/instructionsMappers.ts b/sdk/billing/arm-billing/src/models/instructionsMappers.ts index b2398eda6653..7646089674cc 100644 --- a/sdk/billing/arm-billing/src/models/instructionsMappers.ts +++ b/sdk/billing/arm-billing/src/models/instructionsMappers.ts @@ -42,6 +42,7 @@ export { PaymentProperties, Policy, Product, + RebillDetails, Reseller, Resource, Transaction diff --git a/sdk/billing/arm-billing/src/models/invoiceSectionsMappers.ts b/sdk/billing/arm-billing/src/models/invoiceSectionsMappers.ts index 50fbf21f9769..525d6f752e24 100644 --- a/sdk/billing/arm-billing/src/models/invoiceSectionsMappers.ts +++ b/sdk/billing/arm-billing/src/models/invoiceSectionsMappers.ts @@ -43,6 +43,7 @@ export { PaymentProperties, Policy, Product, + RebillDetails, Reseller, Resource, Transaction diff --git a/sdk/billing/arm-billing/src/models/invoicesMappers.ts b/sdk/billing/arm-billing/src/models/invoicesMappers.ts index 7c84d0f7abc4..790e276da0c4 100644 --- a/sdk/billing/arm-billing/src/models/invoicesMappers.ts +++ b/sdk/billing/arm-billing/src/models/invoicesMappers.ts @@ -45,6 +45,7 @@ export { PaymentProperties, Policy, Product, + RebillDetails, Reseller, Resource, Transaction diff --git a/sdk/billing/arm-billing/src/models/mappers.ts b/sdk/billing/arm-billing/src/models/mappers.ts index d46887e45126..f21499c06cda 100644 --- a/sdk/billing/arm-billing/src/models/mappers.ts +++ b/sdk/billing/arm-billing/src/models/mappers.ts @@ -1492,6 +1492,43 @@ export const PaymentProperties: msRest.CompositeMapper = { } }; +export const RebillDetails: msRest.CompositeMapper = { + serializedName: "RebillDetails", + type: { + name: "Composite", + className: "RebillDetails", + modelProperties: { + creditNoteDocumentId: { + readOnly: true, + serializedName: "creditNoteDocumentId", + type: { + name: "String" + } + }, + invoiceDocumentId: { + readOnly: true, + serializedName: "invoiceDocumentId", + type: { + name: "String" + } + }, + rebillDetails: { + readOnly: true, + serializedName: "rebillDetails", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "RebillDetails" + } + } + } + } + } + } +}; + export const Invoice: msRest.CompositeMapper = { serializedName: "Invoice", type: { @@ -1659,6 +1696,40 @@ export const Invoice: msRest.CompositeMapper = { } } }, + rebillDetails: { + readOnly: true, + serializedName: "properties.rebillDetails", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "RebillDetails" + } + } + } + }, + documentType: { + readOnly: true, + serializedName: "properties.documentType", + type: { + name: "String" + } + }, + billedDocumentId: { + readOnly: true, + serializedName: "properties.billedDocumentId", + type: { + name: "String" + } + }, + creditForDocumentId: { + readOnly: true, + serializedName: "properties.creditForDocumentId", + type: { + name: "String" + } + }, subscriptionId: { readOnly: true, serializedName: "properties.subscriptionId", diff --git a/sdk/billing/arm-billing/src/models/policiesMappers.ts b/sdk/billing/arm-billing/src/models/policiesMappers.ts index ae44ccd1c588..b4332e6dcf99 100644 --- a/sdk/billing/arm-billing/src/models/policiesMappers.ts +++ b/sdk/billing/arm-billing/src/models/policiesMappers.ts @@ -41,6 +41,7 @@ export { PaymentProperties, Policy, Product, + RebillDetails, Reseller, Resource, Transaction diff --git a/sdk/billing/arm-billing/src/models/productsMappers.ts b/sdk/billing/arm-billing/src/models/productsMappers.ts index fa04546d1cf7..c9b07af509c3 100644 --- a/sdk/billing/arm-billing/src/models/productsMappers.ts +++ b/sdk/billing/arm-billing/src/models/productsMappers.ts @@ -43,6 +43,7 @@ export { Product, ProductsListResult, ProductsMoveHeaders, + RebillDetails, Reseller, Resource, Transaction, diff --git a/sdk/billing/arm-billing/src/models/transactionsMappers.ts b/sdk/billing/arm-billing/src/models/transactionsMappers.ts index 05534d182bf2..0a8e068ac0e9 100644 --- a/sdk/billing/arm-billing/src/models/transactionsMappers.ts +++ b/sdk/billing/arm-billing/src/models/transactionsMappers.ts @@ -41,6 +41,7 @@ export { PaymentProperties, Policy, Product, + RebillDetails, Reseller, Resource, Transaction,