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

merge ValidateDetachPaymentMethod API into detach API #4

Merged
merged 1 commit into from
Sep 15, 2021
Merged
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 @@ -8,11 +8,38 @@
"responses": {
"202": {
"headers": {
"Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/paymentMethodLinks/operationResults/ed2975a8-8f77-43bb-a717-ace54326b14b?api-version=2020-11-01-privatepreview",
"Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/paymentMethodLinks/operationResults/ed2975a8-8f77-43bb-a717-ace54326b14b?api-version=2021-10-01",
"Retry-After": "60"
}
},
"200": {},
"204": {}
"204": {},
"409": {
"body": {
"code": "PaymentMethodNotEligibleForDetach",
"errorDetails": [
{
"code": "AzureSubscriptions",
"message": "Payment method cannot be detached as there are active or disabled azure subscriptions on this billing profile."
},
{
"code": "RecurringCharges",
"message": "Payment method cannot be detached as there are recurring charges on this billing profile."
},
{
"code": "ReservedInstances",
"message": "Payment method cannot be detached as there are reserved instances on this billing profile."
},
{
"code": "OutstandingCharges",
"message": "Payment method cannot be detached as there are unpaid outstanding charges on this billing profile."
},
{
"code": "PendingCharges",
"message": "Payment method cannot be detached as there are pending charges accumulating on this billing profile."
}
]
}
}
}
}

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -354,44 +354,8 @@
}
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
}
}
},
"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/validateDetachPaymentMethodEligibility": {
"post": {
"tags": [
"BillingProfiles"
],
"x-ms-examples": {
"ValidateDetachPaymentMethodEligibilitySuccess": {
"$ref": "./examples/ValidateDetachPaymentMethodEligibilitySuccess.json"
},
"ValidateDetachPaymentMethodEligibilityFailure": {
"$ref": "./examples/ValidateDetachPaymentMethodEligibilityFailure.json"
}
},
"operationId": "BillingProfiles_GetEligibilityToDetachPaymentMethod",
"description": "Validates if the payment method can be detached from the billing profile. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement.",
"parameters": [
{
"$ref": "#/parameters/billingAccountNameParameter"
},
{
"$ref": "#/parameters/billingProfileNameParameter"
},
{
"$ref": "#/parameters/apiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK. The request has succeeded.",
"409": {
"description": "Conflict. Payment method cannot be detached from billing profile.",
"schema": {
"$ref": "#/definitions/DetachPaymentMethodEligibilityResult"
}
Expand Down Expand Up @@ -635,9 +599,9 @@
"type": "object",
"description": "Result of the detach payment method eligibility.",
"properties": {
"isEligible": {
"description": "Specifies whether the payment method is eligible to be detached from the billing profile.",
"type": "boolean",
"code": {
"description": "Error code.",
"type": "string",
"readOnly": true
},
"errorDetails": {
Expand Down