vw_payment_methods
Creates, updates, deletes, gets or lists a vw_payment_methods
resource.
Overview
Name | vw_payment_methods |
Type | View |
Id | azure.billing.vw_payment_methods |
Fields
See the SQL Definition (view DDL) for fields returned by this view.
SQL Definition
- Sqlite3
- Postgres
SELECT
tags as tags,
JSON_EXTRACT(properties, '$.accountHolderName') as "account_holder_name",
JSON_EXTRACT(properties, '$.displayName') as "display_name",
JSON_EXTRACT(properties, '$.expiration') as "expiration",
JSON_EXTRACT(properties, '$.family') as "family",
JSON_EXTRACT(properties, '$.lastFourDigits') as "last_four_digits",
JSON_EXTRACT(properties, '$.logos') as "logos",
JSON_EXTRACT(properties, '$.paymentMethod') as "payment_method",
JSON_EXTRACT(properties, '$.paymentMethodId') as "payment_method_id",
JSON_EXTRACT(properties, '$.paymentMethodType') as "payment_method_type",
JSON_EXTRACT(properties, '$.status') as "status",
billingAccountName,
billingProfileName,
paymentMethodName
FROM azure.billing.payment_methods
WHERE billingAccountName = 'replace-me' AND billingProfileName = 'replace-me' AND paymentMethodName = 'replace-me';
SELECT
tags as tags,
json_extract_path_text(properties, '$.accountHolderName') as "account_holder_name",
json_extract_path_text(properties, '$.displayName') as "display_name",
json_extract_path_text(properties, '$.expiration') as "expiration",
json_extract_path_text(properties, '$.family') as "family",
json_extract_path_text(properties, '$.lastFourDigits') as "last_four_digits",
json_extract_path_text(properties, '$.logos') as "logos",
json_extract_path_text(properties, '$.paymentMethod') as "payment_method",
json_extract_path_text(properties, '$.paymentMethodId') as "payment_method_id",
json_extract_path_text(properties, '$.paymentMethodType') as "payment_method_type",
json_extract_path_text(properties, '$.status') as "status",
billingAccountName,
billingProfileName,
paymentMethodName
FROM azure.billing.payment_methods
WHERE billingAccountName = 'replace-me' AND billingProfileName = 'replace-me' AND paymentMethodName = 'replace-me';