Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions sdk/billing/arm-billing/src/models/agreementsMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export {
PaymentProperties,
Policy,
Product,
RebillDetails,
Reseller,
Resource,
Transaction
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export {
PaymentProperties,
Policy,
Product,
RebillDetails,
Reseller,
Resource,
Transaction
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export {
PaymentProperties,
Policy,
Product,
RebillDetails,
Reseller,
Resource,
Transaction
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export {
PaymentProperties,
Policy,
Product,
RebillDetails,
Reseller,
Resource,
Transaction
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export {
PaymentProperties,
Policy,
Product,
RebillDetails,
Reseller,
Resource,
Transaction
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export {
PaymentProperties,
Policy,
Product,
RebillDetails,
Reseller,
Resource,
Transaction
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export {
PaymentProperties,
Policy,
Product,
RebillDetails,
Reseller,
Resource,
Transaction
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export {
PaymentProperties,
Policy,
Product,
RebillDetails,
Reseller,
Resource,
Transaction
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export {
PaymentProperties,
Policy,
Product,
RebillDetails,
Reseller,
Resource,
Transaction,
Expand Down
1 change: 1 addition & 0 deletions sdk/billing/arm-billing/src/models/customersMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export {
PaymentProperties,
Policy,
Product,
RebillDetails,
Reseller,
Resource,
Transaction
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export {
PaymentProperties,
Policy,
Product,
RebillDetails,
Reseller,
Resource,
Transaction
Expand Down
57 changes: 54 additions & 3 deletions sdk/billing/arm-billing/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand All @@ -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;
Expand Down Expand Up @@ -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.**
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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'
Expand Down
1 change: 1 addition & 0 deletions sdk/billing/arm-billing/src/models/instructionsMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export {
PaymentProperties,
Policy,
Product,
RebillDetails,
Reseller,
Resource,
Transaction
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export {
PaymentProperties,
Policy,
Product,
RebillDetails,
Reseller,
Resource,
Transaction
Expand Down
1 change: 1 addition & 0 deletions sdk/billing/arm-billing/src/models/invoicesMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export {
PaymentProperties,
Policy,
Product,
RebillDetails,
Reseller,
Resource,
Transaction
Expand Down
71 changes: 71 additions & 0 deletions sdk/billing/arm-billing/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions sdk/billing/arm-billing/src/models/policiesMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export {
PaymentProperties,
Policy,
Product,
RebillDetails,
Reseller,
Resource,
Transaction
Expand Down
1 change: 1 addition & 0 deletions sdk/billing/arm-billing/src/models/productsMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export {
Product,
ProductsListResult,
ProductsMoveHeaders,
RebillDetails,
Reseller,
Resource,
Transaction,
Expand Down
1 change: 1 addition & 0 deletions sdk/billing/arm-billing/src/models/transactionsMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export {
PaymentProperties,
Policy,
Product,
RebillDetails,
Reseller,
Resource,
Transaction,
Expand Down