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

GA payment method APIs #15886

Merged
merged 17 commits into from
Sep 22, 2021
Merged
Show file tree
Hide file tree
Changes from 16 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
@@ -0,0 +1,21 @@
{
"parameters": {
"api-version": "2021-10-01",
"billingAccountName": "00000000-0000-0000-0000-000000000032:00000000-0000-0000-0000-000000000099_2019-05-31",
"paymentMethodName": "21dd9edc-af71-4d62-80ce-37151d475326"
},
"responses": {
"200": {
"body": {
"id": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000032:00000000-0000-0000-0000-000000000099_2019-05-31/paymentMethods/21dd9edc-af71-4d62-80ce-37151d475326",
"name": "21dd9edc-af71-4d62-80ce-37151d475326",
"type": "Microsoft.Billing/billingAccounts/paymentMethods",
"properties": {
"family": "CheckWire",
"type": "check",
"displayName": "Check/wire transfer"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"parameters": {
"api-version": "2021-10-01",
"billingAccountName": "00000000-0000-0000-0000-000000000032:00000000-0000-0000-0000-000000000099_2019-05-31"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000032:00000000-0000-0000-0000-000000000099_2019-05-31/paymentMethods/21dd9edc-af71-4d62-80ce-37151d475326",
"name": "21dd9edc-af71-4d62-80ce-37151d475326",
"type": "Microsoft.Billing/billingAccounts/paymentMethods",
"properties": {
"family": "CheckWire",
"type": "check",
"displayName": "Check/wire transfer"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"parameters": {
"api-version": "2021-10-01",
"billingAccountName": "00000000-0000-0000-0000-000000000032:00000000-0000-0000-0000-000000000099_2019-05-31",
"billingProfileName": "ABC1-A1CD-AB1-BP1",
"paymentMethodName": "ABCDABCDABC0"
},
"responses": {
"200": {
"body": {
"id": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000032:00000000-0000-0000-0000-000000000099_2019-05-31/billingProfiles/ABC1-A1CD-AB1-BP1/paymentMethodLinks/ABCDABCDABC0",
"name": "ABCDABCDABC0",
"type": "Microsoft.Billing/billingAccounts/billingProfiles/paymentMethodLinks",
"properties": {
"paymentMethod": {
"id": "/providers/Microsoft.Billing/paymentMethods/ABCDABCDABC0",
"accountHolderName": "abc",
"expiration": "1/2035",
"lastFourDigits": "1270",
"family": "CreditCard",
"type": "mc",
"displayName": "Master Card",
"logos": [
{
"mimeType": "image/png",
"url": "https://contoso.com/staticresourceservice/images/v4/logo_visa_rect.png"
},
{
"mimeType": "image/svg+xml",
"url": "https://contoso.com/staticresourceservice/images/v4/logo_visa.svg"
}
],
"status": "active"
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"parameters": {
"api-version": "2021-10-01",
"billingAccountName": "00000000-0000-0000-0000-000000000032:00000000-0000-0000-0000-000000000099_2019-05-31",
"billingProfileName": "ABC1-A1CD-AB1-BP1"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000032:00000000-0000-0000-0000-000000000099_2019-05-31/billingProfiles/ABC1-A1CD-AB1-BP1/paymentMethodLinks/ABCDABCDABC0",
"name": "ABCDABCDABC0",
"type": "Microsoft.Billing/billingAccounts/billingProfiles/paymentMethodLinks",
"properties": {
"paymentMethod": {
"id": "/providers/Microsoft.Billing/paymentMethods/ABCDABCDABC0",
"accountHolderName": "abc",
"expiration": "1/2035",
"lastFourDigits": "1270",
"family": "CreditCard",
"type": "mc",
"displayName": "Master Card",
"logos": [
{
"mimeType": "image/png",
"url": "https://contoso.com/staticresourceservice/images/v4/logo_visa_rect.png"
},
{
"mimeType": "image/svg+xml",
"url": "https://contoso.com/staticresourceservice/images/v4/logo_visa.svg"
}
],
"status": "active"
}
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"parameters": {
"api-version": "2021-10-01",
"billingAccountName": "00000000-0000-0000-0000-000000000032:00000000-0000-0000-0000-000000000099_2019-05-31",
"billingProfileName": "ABC1-A1CD-AB1-BP1",
"paymentMethodName": "ABCDABCDABC0"
},
"responses": {
"202": {
"headers": {
"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": {},
"409": {
"body": {
"error": {
"code": "PaymentMethodNotEligibleForDetach",
"message": "Payment method cannot be detached from billing group.",
"details": [
{
"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."
}
]
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"parameters": {
"api-version": "2021-10-01",
"paymentMethodName": "ABCDABCDABC0"
},
"responses": {
"200": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"parameters": {
"api-version": "2021-10-01",
"paymentMethodName": "ABCDABCDABC0"
},
"responses": {
"200": {
"body": {
"id": "/providers/Microsoft.Billing/paymentMethods/ABCDABCDABC0",
"name": "ABCDABCDABC0",
"type": "Microsoft.Billing/paymentMethods",
"properties": {
"accountHolderName": "abc",
"expiration": "1/2035",
"lastFourDigits": "1270",
"family": "CreditCard",
"type": "mc",
"displayName": "Master Card",
"logos": [
{
"mimeType": "image/png",
"url": "https://contoso.com/staticresourceservice/images/v4/logo_visa_rect.png"
},
{
"mimeType": "image/svg+xml",
"url": "https://contoso.com/staticresourceservice/images/v4/logo_visa.svg"
}
],
"status": "active"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"parameters": {
"api-version": "2021-10-01"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/providers/Microsoft.Billing/paymentMethods/ABCDABCDABC0",
"name": "ABCDABCDABC0",
"type": "Microsoft.Billing/paymentMethods",
"properties": {
"accountHolderName": "abc",
"expiration": "1/2035",
"lastFourDigits": "1270",
"family": "CreditCard",
"type": "mc",
"displayName": "Master Card",
"logos": [
{
"mimeType": "image/png",
"url": "https://contoso.com/staticresourceservice/images/v4/logo_mc_rect.png"
},
{
"mimeType": "image/svg+xml",
"url": "https://contoso.com/staticresourceservice/images/v4/logo_mc.svg"
}
j5lim marked this conversation as resolved.
Show resolved Hide resolved
],
"status": "active"
}
},
{
"id": "/providers/Microsoft.Billing/paymentMethods/ABCDABCDABC1",
"name": "ABCDABCDABC1",
"type": "Microsoft.Billing/paymentMethods",
"properties": {
"accountHolderName": "abc",
"expiration": "1/2025",
"lastFourDigits": "7373",
"family": "CreditCard",
"type": "visa",
"displayName": "Visa",
"logos": [
{
"mimeType": "image/png",
"url": "https://contoso.com/staticresourceservice/images/v4/logo_visa_rect.png"
},
{
"mimeType": "image/svg+xml",
"url": "https://contoso.com/staticresourceservice/images/v4/logo_visa.svg"
}
],
"status": "active"
}
}
]
}
}
}
}
Loading