Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR billing/resource-manager] [Do not merge] [Microsoft.Billing] Customers resource for partner-channel #3982

Closed
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
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,22 @@
*/
public interface Agreements extends HasInner<AgreementsInner> {
/**
* Lists all agreements for a billing account.
* Get the agreement by name.
*
* @param billingAccountName billing Account Id.
* @param billingAccountName Billing Account Id.
* @param agreementName Agreement Id.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<AgreementListResult> listByBillingAccountNameAsync(String billingAccountName);
Observable<Agreement> getAsync(String billingAccountName, String agreementName);

/**
* Get the agreement by name.
* Lists all agreements for a billing account.
*
* @param billingAccountName billing Account Id.
* @param agreementName Agreement Id.
* @param billingAccountName Billing Account Id.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<Agreement> getAsync(String billingAccountName, String agreementName);
Observable<Agreement> listByBillingAccountNameAsync(final String billingAccountName);

}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public interface AvailableBalances extends HasInner<AvailableBalancesInner> {
/**
* The latest available credit balance for a given billingAccountName and billingProfileName.
*
* @param billingAccountName billing Account Id.
* @param billingAccountName Billing Account Id.
* @param billingProfileName Billing Profile Id.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@ public interface BillingAccounts extends HasInner<BillingAccountsInner> {
/**
* Get the billing account by id.
*
* @param billingAccountName billing Account Id.
* @param billingAccountName Billing Account Id.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<BillingAccount> getAsync(String billingAccountName);

/**
* Lists all billing accounts for a user which he has access to.
* Lists all billing accounts for which a user has access.
*
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<BillingAccountListResult> listAsync();
Observable<BillingAccount> listAsync();

}
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,26 @@ public interface BillingPermissions extends HasInner<BillingPermissionsInner> {
/**
* Lists all billing permissions for the caller under a billing account.
*
* @param billingAccountName billing Account Id.
* @param billingAccountName Billing Account Id.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<BillingPermissionsListResult> listByBillingAccountAsync(String billingAccountName);

/**
* Lists all billing permissions for the caller under customer.
*
* @param billingAccountName Billing Account Id.
* @param customerName Customer Id.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<BillingPermissionsListResult> listByCustomersAsync(String billingAccountName, String customerName);

/**
* Lists all billing permissions for the caller under invoice section.
*
* @param billingAccountName billing Account Id.
* @param billingAccountName Billing Account Id.
* @param invoiceSectionName InvoiceSection Id.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
Expand All @@ -38,7 +48,7 @@ public interface BillingPermissions extends HasInner<BillingPermissionsInner> {
/**
* Lists all billingPermissions for the caller has for a billing account.
*
* @param billingAccountName billing Account Id.
* @param billingAccountName Billing Account Id.
* @param billingProfileName Billing Profile Id.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,28 +17,28 @@
*/
public interface BillingProfiles extends HasInner<BillingProfilesInner> {
/**
* Lists all billing profiles for a user which that user has access to.
* Get the billing profile by id.
*
* @param billingAccountName billing Account Id.
* @param billingAccountName Billing Account Id.
* @param billingProfileName Billing Profile Id.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<BillingProfileListResult> listByBillingAccountNameAsync(String billingAccountName);
Observable<BillingProfile> getAsync(String billingAccountName, String billingProfileName);

/**
* Get the billing profile by id.
* Lists all billing profiles for a user which that user has access to.
*
* @param billingAccountName billing Account Id.
* @param billingProfileName Billing Profile Id.
* @param billingAccountName Billing Account Id.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<BillingProfile> getAsync(String billingAccountName, String billingProfileName);
Observable<BillingProfile> listByBillingAccountNameAsync(final String billingAccountName);

/**
* The operation to create a BillingProfile.
*
* @param billingAccountName billing Account Id.
* @param billingAccountName Billing Account Id.
* @param parameters Parameters supplied to the Create BillingProfile operation.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public interface BillingRoleAssignments {
/**
* Get the role assignment for the caller.
*
* @param billingAccountName billing Account Id.
* @param billingAccountName Billing Account Id.
* @param billingRoleAssignmentName role assignment id.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
Expand All @@ -28,7 +28,7 @@ public interface BillingRoleAssignments {
/**
* Delete the role assignment on this billing account.
*
* @param billingAccountName billing Account Id.
* @param billingAccountName Billing Account Id.
* @param billingRoleAssignmentName role assignment id.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
Expand All @@ -38,7 +38,7 @@ public interface BillingRoleAssignments {
/**
* Get the role assignment for the caller on the invoice Section.
*
* @param billingAccountName billing Account Id.
* @param billingAccountName Billing Account Id.
* @param invoiceSectionName InvoiceSection Id.
* @param billingRoleAssignmentName role assignment id.
* @throws IllegalArgumentException thrown if parameters fail the validation
Expand All @@ -49,7 +49,7 @@ public interface BillingRoleAssignments {
/**
* Delete the role assignment on the invoice Section.
*
* @param billingAccountName billing Account Id.
* @param billingAccountName Billing Account Id.
* @param invoiceSectionName InvoiceSection Id.
* @param billingRoleAssignmentName role assignment id.
* @throws IllegalArgumentException thrown if parameters fail the validation
Expand All @@ -60,7 +60,7 @@ public interface BillingRoleAssignments {
/**
* Get the role assignment for the caller on the Billing Profile.
*
* @param billingAccountName billing Account Id.
* @param billingAccountName Billing Account Id.
* @param billingProfileName Billing Profile Id.
* @param billingRoleAssignmentName role assignment id.
* @throws IllegalArgumentException thrown if parameters fail the validation
Expand All @@ -71,7 +71,7 @@ public interface BillingRoleAssignments {
/**
* Delete the role assignment on this Billing Profile.
*
* @param billingAccountName billing Account Id.
* @param billingAccountName Billing Account Id.
* @param billingProfileName Billing Profile Id.
* @param billingRoleAssignmentName role assignment id.
* @throws IllegalArgumentException thrown if parameters fail the validation
Expand All @@ -82,7 +82,7 @@ public interface BillingRoleAssignments {
/**
* Get the role assignments on the Billing Account.
*
* @param billingAccountName billing Account Id.
* @param billingAccountName Billing Account Id.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Expand All @@ -91,7 +91,7 @@ public interface BillingRoleAssignments {
/**
* Get the role assignments on the invoice Section.
*
* @param billingAccountName billing Account Id.
* @param billingAccountName Billing Account Id.
* @param invoiceSectionName InvoiceSection Id.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
Expand All @@ -101,7 +101,7 @@ public interface BillingRoleAssignments {
/**
* Get the role assignments on the Billing Profile.
*
* @param billingAccountName billing Account Id.
* @param billingAccountName Billing Account Id.
* @param billingProfileName Billing Profile Id.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
Expand All @@ -111,7 +111,7 @@ public interface BillingRoleAssignments {
/**
* The operation to add a role assignment to a billing account.
*
* @param billingAccountName billing Account Id.
* @param billingAccountName Billing Account Id.
* @param parameters Parameters supplied to add a role assignment.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
Expand All @@ -121,7 +121,7 @@ public interface BillingRoleAssignments {
/**
* The operation to add a role assignment to a invoice Section.
*
* @param billingAccountName billing Account Id.
* @param billingAccountName Billing Account Id.
* @param invoiceSectionName InvoiceSection Id.
* @param parameters Parameters supplied to add a role assignment.
* @throws IllegalArgumentException thrown if parameters fail the validation
Expand All @@ -132,7 +132,7 @@ public interface BillingRoleAssignments {
/**
* The operation to add a role assignment to a billing profile.
*
* @param billingAccountName billing Account Id.
* @param billingAccountName Billing Account Id.
* @param billingProfileName Billing Profile Id.
* @param parameters Parameters supplied to add a role assignment.
* @throws IllegalArgumentException thrown if parameters fail the validation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public interface BillingRoleDefinitions extends HasInner<BillingRoleDefinitionsI
/**
* Gets the role definition for a role.
*
* @param billingAccountName billing Account Id.
* @param billingAccountName Billing Account Id.
* @param billingRoleDefinitionName role definition id.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
Expand All @@ -29,7 +29,7 @@ public interface BillingRoleDefinitions extends HasInner<BillingRoleDefinitionsI
/**
* Gets the role definition for a role.
*
* @param billingAccountName billing Account Id.
* @param billingAccountName Billing Account Id.
* @param invoiceSectionName InvoiceSection Id.
* @param billingRoleDefinitionName role definition id.
* @throws IllegalArgumentException thrown if parameters fail the validation
Expand All @@ -40,7 +40,7 @@ public interface BillingRoleDefinitions extends HasInner<BillingRoleDefinitionsI
/**
* Gets the role definition for a role.
*
* @param billingAccountName billing Account Id.
* @param billingAccountName Billing Account Id.
* @param billingProfileName Billing Profile Id.
* @param billingRoleDefinitionName role definition id.
* @throws IllegalArgumentException thrown if parameters fail the validation
Expand All @@ -51,7 +51,7 @@ public interface BillingRoleDefinitions extends HasInner<BillingRoleDefinitionsI
/**
* Lists the role definition for a billing account.
*
* @param billingAccountName billing Account Id.
* @param billingAccountName Billing Account Id.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Expand All @@ -60,7 +60,7 @@ public interface BillingRoleDefinitions extends HasInner<BillingRoleDefinitionsI
/**
* Lists the role definition for an invoice Section.
*
* @param billingAccountName billing Account Id.
* @param billingAccountName Billing Account Id.
* @param invoiceSectionName InvoiceSection Id.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
Expand All @@ -70,7 +70,7 @@ public interface BillingRoleDefinitions extends HasInner<BillingRoleDefinitionsI
/**
* Lists the role definition for a Billing Profile.
*
* @param billingAccountName billing Account Id.
* @param billingAccountName Billing Account Id.
* @param billingProfileName Billing Profile Id.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,21 @@ public interface BillingSubscriptionSummary extends HasInner<BillingSubscription
*/
String billingProfileName();

/**
* @return the customerDisplayName value.
*/
String customerDisplayName();

/**
* @return the customerId value.
*/
String customerId();

/**
* @return the description value.
*/
String description();

/**
* @return the displayName value.
*/
Expand Down Expand Up @@ -63,6 +78,11 @@ public interface BillingSubscriptionSummary extends HasInner<BillingSubscription
*/
String name();

/**
* @return the resellerId value.
*/
String resellerId();

/**
* @return the skuDescription value.
*/
Expand Down
Loading