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 @@ -33,6 +33,7 @@ export {
EnrollmentPolicies,
ErrorDetails,
ErrorResponse,
IndirectRelationshipInfo,
Instruction,
Invoice,
InvoiceSection,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export {
EnrollmentPolicies,
ErrorDetails,
ErrorResponse,
IndirectRelationshipInfo,
Instruction,
Invoice,
InvoiceSection,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export {
EnrollmentPolicies,
ErrorDetails,
ErrorResponse,
IndirectRelationshipInfo,
Instruction,
Invoice,
InvoiceSection,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export {
EnrollmentPolicies,
ErrorDetails,
ErrorResponse,
IndirectRelationshipInfo,
Instruction,
Invoice,
InvoiceSection,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export {
EnrollmentPolicies,
ErrorDetails,
ErrorResponse,
IndirectRelationshipInfo,
Instruction,
Invoice,
InvoiceSection,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export {
EnrollmentPolicies,
ErrorDetails,
ErrorResponse,
IndirectRelationshipInfo,
Instruction,
Invoice,
InvoiceSection,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export {
EnrollmentPolicies,
ErrorDetails,
ErrorResponse,
IndirectRelationshipInfo,
Instruction,
Invoice,
InvoiceSection,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export {
EnrollmentPolicies,
ErrorDetails,
ErrorResponse,
IndirectRelationshipInfo,
Instruction,
Invoice,
InvoiceSection,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export {
EnrollmentPolicies,
ErrorDetails,
ErrorResponse,
IndirectRelationshipInfo,
Instruction,
Invoice,
InvoiceSection,
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 @@ -33,6 +33,7 @@ export {
EnrollmentPolicies,
ErrorDetails,
ErrorResponse,
IndirectRelationshipInfo,
Instruction,
Invoice,
InvoiceSection,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export {
EnrollmentPolicies,
ErrorDetails,
ErrorResponse,
IndirectRelationshipInfo,
Instruction,
Invoice,
InvoiceSection,
Expand Down
73 changes: 73 additions & 0 deletions sdk/billing/arm-billing/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand All @@ -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;
}

/**
Expand Down Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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[];
}

/**
Expand Down Expand Up @@ -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'
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 @@ -32,6 +32,7 @@ export {
EnrollmentPolicies,
ErrorDetails,
ErrorResponse,
IndirectRelationshipInfo,
Instruction,
InstructionListResult,
Invoice,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export {
EnrollmentPolicies,
ErrorDetails,
ErrorResponse,
IndirectRelationshipInfo,
Instruction,
Invoice,
InvoiceSection,
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 @@ -33,6 +33,7 @@ export {
EnrollmentPolicies,
ErrorDetails,
ErrorResponse,
IndirectRelationshipInfo,
Instruction,
Invoice,
InvoiceListResult,
Expand Down
69 changes: 69 additions & 0 deletions sdk/billing/arm-billing/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -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"
}
}
}
}
Expand Down Expand Up @@ -437,13 +479,28 @@ export const BillingProfile: msRest.CompositeMapper = {
name: "String"
}
},
billingRelationshipType: {
readOnly: true,
serializedName: "properties.billingRelationshipType",
type: {
name: "String"
}
},
billTo: {
serializedName: "properties.billTo",
type: {
name: "Composite",
className: "AddressDetails"
}
},
indirectRelationshipInfo: {
readOnly: true,
serializedName: "properties.indirectRelationshipInfo",
type: {
name: "Composite",
className: "IndirectRelationshipInfo"
}
},
invoiceEmailOptIn: {
serializedName: "properties.invoiceEmailOptIn",
type: {
Expand Down Expand Up @@ -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"
}
}
}
}
}
}
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 @@ -32,6 +32,7 @@ export {
EnrollmentPolicies,
ErrorDetails,
ErrorResponse,
IndirectRelationshipInfo,
Instruction,
Invoice,
InvoiceSection,
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 @@ -32,6 +32,7 @@ export {
EnrollmentPolicies,
ErrorDetails,
ErrorResponse,
IndirectRelationshipInfo,
Instruction,
Invoice,
InvoiceSection,
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 @@ -32,6 +32,7 @@ export {
EnrollmentPolicies,
ErrorDetails,
ErrorResponse,
IndirectRelationshipInfo,
Instruction,
Invoice,
InvoiceSection,
Expand Down