-
Notifications
You must be signed in to change notification settings - Fork 5.6k
GA payment method APIs #15886
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
Merged
Merged
GA payment method APIs #15886
Changes from 15 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
326fce3
GA payment method APIs
deep9c a38926f
changed version
deep9c ad48f26
added Delete PaymentMethodLink API
deep9c ba59e2e
Merge pull request #2 from deep9c/dechak/ga-paymentapis
deep9c 57080ad
fix status enum case
deep9c dec163b
added new version to readme files
deep9c 408c9b6
fix readme.azureresourceschema.md
deep9c 6ca032a
merge master
deep9c befb516
Merge branch 'Azure-master'
deep9c ca43d43
Merge branch 'Azure:master' into master
deep9c 8d89fdb
merge ValidateDetachPaymentMethod API into detach API
deep9c 742059f
Merge pull request #4 from deep9c/dechak/merge-detacheligibility
deep9c 7f4d1d3
fix LintDiff check
deep9c 05177c9
fix LintDiff checks
deep9c 20cddbc
x-ms-error-response with 409
deep9c d714d57
detach eligibility error mirror arm error schema
deep9c 4c01364
suppress systemData LintDiff check
deep9c File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
...nager/Microsoft.Billing/stable/2021-10-01/examples/PaymentMethodAtBillingAccount_Get.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
24 changes: 24 additions & 0 deletions
24
...ager/Microsoft.Billing/stable/2021-10-01/examples/PaymentMethodAtBillingAccount_List.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } |
39 changes: 39 additions & 0 deletions
39
...nager/Microsoft.Billing/stable/2021-10-01/examples/PaymentMethodAtBillingProfile_Get.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
42 changes: 42 additions & 0 deletions
42
...ager/Microsoft.Billing/stable/2021-10-01/examples/PaymentMethodAtBillingProfile_List.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" | ||
| } | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } |
45 changes: 45 additions & 0 deletions
45
...er/Microsoft.Billing/stable/2021-10-01/examples/PaymentMethodAtBillingProfile_Remove.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| { | ||
| "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": { | ||
| "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." | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } | ||
10 changes: 10 additions & 0 deletions
10
...manager/Microsoft.Billing/stable/2021-10-01/examples/PaymentMethodOwnedByUser_Delete.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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": {} | ||
| } | ||
| } |
34 changes: 34 additions & 0 deletions
34
...ce-manager/Microsoft.Billing/stable/2021-10-01/examples/PaymentMethodOwnedByUser_Get.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
61 changes: 61 additions & 0 deletions
61
...e-manager/Microsoft.Billing/stable/2021-10-01/examples/PaymentMethodOwnedByUser_List.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.