# Stripe test mode schema ERD

Table and field reference for the Fivetran Stripe test mode connector.

## Table & Field Reference

### setup_intent

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| customer_id | String | FK |
| on_behalf_of | String | FK |
| payment_method_id | String | FK |
| application | String |  |
| cancellation_reason | String |  |
| created | Instant |  |
| description | String |  |
| livemode | Boolean |  |
| mandate | String |  |
| metadata | Json |  |
| single_use_mandate | String |  |
| status | String |  |
| usage | String |  |

### order_return

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| refund_id | String | FK |
| amount | Long |  |
| created | Instant |  |
| currency | String |  |
| livemode | Boolean |  |
| order_id | String |  |

### payment_link_invoice_creation_invoice_data_custom_field

| Column | Type | Keys |
| --- | --- | --- |
| name | String | PK |
| payment_link_id | String | PK, FK |
| value | String |  |

### invoice_discount

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| invoice_id | String | PK |
| coupon_id | String | FK |
| customer_id | String | FK |
| invoice_item_id | String | FK |
| subscription_id | String | FK |
| checkout_session | String |  |
| end | Instant |  |
| promotion_code | String |  |
| start | Instant |  |

### upcoming_invoice

| Column | Type | Keys |
| --- | --- | --- |
| subscription_id | String | PK, FK |
| charge_id | String | FK |
| customer_id | String | FK |
| default_payment_method_id | String | FK |
| default_source_id | String | FK |
| payment_intent_id | String | FK |
| account_country | String |  |
| account_name | String |  |
| amount_due | Long |  |
| amount_paid | Long |  |
| amount_remaining | Long |  |
| amount_shipping | Int |  |
| application | String |  |
| application_fee_amount | Long |  |
| attempt_count | Long |  |
| attempted | Boolean |  |
| auto_advance | Boolean |  |
| automatic_tax_enabled | Boolean |  |
| automatic_tax_liability_account | String |  |
| automatic_tax_liability_type | String |  |
| automatic_tax_status | String |  |
| billing_reason | String |  |
| collection_method | String |  |
| created | Instant |  |
| currency | String |  |
| description | String |  |
| due_date | Instant |  |
| ending_balance | Long |  |
| footer | String |  |
| from_invoice_action | String |  |
| from_invoice_invoice | String |  |
| hosted_invoice_url | String |  |
| invoice_pdf | String |  |
| latest_revision | String |  |
| livemode | Boolean |  |
| metadata | Json |  |
| next_payment_attempt | Instant |  |
| number | String |  |
| on_behalf_of | String |  |
| paid | Boolean |  |
| paid_out_of_band | Boolean |  |
| payment_settings_default_mandate | String |  |
| payment_settings_payment_method_options_acss_debit_mandate_options_transaction_type | String |  |
| payment_settings_payment_method_options_acss_debit_verification_method | String |  |
| payment_settings_payment_method_options_bancontact_preferred_language | String |  |
| payment_settings_payment_method_options_card_installments_enabled | Boolean |  |
| payment_settings_payment_method_options_card_request_three_d_secure | String |  |
| payment_settings_payment_method_options_customer_balance_bank_transfer_eu_bank_transfer_country | String |  |
| payment_settings_payment_method_options_customer_balance_bank_transfer_type | String |  |
| payment_settings_payment_method_options_customer_balance_funding_type | String |  |
| payment_settings_payment_method_options_us_bank_account_financial_connections_permissions | Json |  |
| payment_settings_payment_method_options_us_bank_account_financial_connections_prefetch | Json |  |
| payment_settings_payment_method_options_us_bank_account_verification_method | String |  |
| payment_settings_payment_method_types | Json |  |
| period_end | Instant |  |
| period_start | Instant |  |
| post_payment_credit_notes_amount | Int |  |
| pre_payment_credit_notes_amount | Int |  |
| quote | String |  |
| receipt_number | String |  |
| rendering_amount_tax_display | String |  |
| rendering_pdf_page_size | String |  |
| starting_balance | Long |  |
| statement_descriptor | String |  |
| status | String |  |
| subscription_proration_date | Int |  |
| subtotal | Long |  |
| subtotal_excluding_tax | Long |  |
| tax | Long |  |
| tax_percent | BigDecimal |  |
| test_clock | String |  |
| threshold_reason_amount_gte | Long |  |
| total | Long |  |
| total_excluding_tax | Long |  |
| transfer_data_amount | Int |  |
| transfer_data_destination | String |  |
| webhooks_delivered_at | Instant |  |
| last_finalization_error_** |  |  |
| shipping_** |  |  |
| shipping_cost_** |  |  |
| status_transitions_** |  |  |

### payout_balance_transaction

| Column | Type | Keys |
| --- | --- | --- |
| balance_transaction_id | String | PK, FK |
| payout_id | String | PK, FK |

### transfer_reversal

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| transfer_id | String | PK, FK |
| balance_transaction_id | String | FK |
| source_refund_id | String | FK |
| amount | Long |  |
| created | Instant |  |
| currency | String |  |
| destination_payment_refund | String |  |
| metadata | Json |  |

### checkout_session_payment_method

| Column | Type | Keys |
| --- | --- | --- |
| payment_method_type | String | PK |
| checkout_session_id | String | PK, FK |

### issuing_dispute

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| connected_account_id | String | FK |
| evidence_fraudlent_uncategorized_file | String | FK |
| evidence_other_uncategorized_file | String | FK |
| amount | Long |  |
| created | Instant |  |
| currency | String |  |
| evidence_fraudlent_dispute_explanation | String |  |
| evidence_other_dispute_explanation | String |  |
| livemode | Boolean |  |
| metadata | Json |  |
| reason | String |  |
| status | String |  |

### sku

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| product_id | String | FK |
| active | Boolean |  |
| created | Instant |  |
| currency | String |  |
| image | String |  |
| inventory_quantity | Int |  |
| inventory_type | String |  |
| inventory_value | String |  |
| is_deleted | Boolean |  |
| livemode | Boolean |  |
| metadata | Json |  |
| price | Double |  |
| updated | Instant |  |
| package_dimensions_** |  |  |

### account

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| individual_id | String | FK |
| business_type | String |  |
| charges_enabled | Boolean |  |
| country | String |  |
| created | Instant |  |
| default_currency | String |  |
| details_submitted | Boolean |  |
| email | String |  |
| is_deleted | Boolean |  |
| metadata | Json |  |
| payouts_enabled | Boolean |  |
| tos_acceptance_date | Instant |  |
| tos_acceptance_ip | String |  |
| tos_acceptance_user_agent | String |  |
| type | String |  |
| business_profile_** |  |  |
| capabilities_** |  |  |
| company_** |  |  |
| requirements_** |  |  |
| settings_** |  |  |

### payment_link

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| automatic_tax_liability_account_id | String | FK |
| on_behalf_of_id | String | FK |
| active | Boolean |  |
| after_completion_hosted_confirmation_custom_message | String |  |
| after_completion_redirect_url | String |  |
| after_completion_type | String |  |
| allow_promotion_codes | Boolean |  |
| application | String |  |
| application_fee_amount | Long |  |
| application_fee_percent | Double |  |
| automatic_tax_enabled | Boolean |  |
| automatic_tax_liability_type | String |  |
| billing_address_collection | String |  |
| consent_collection_payment_method_reuse_agreement_position | String |  |
| consent_collection_promotions | String |  |
| consent_collection_terms_of_service | String |  |
| currency | String |  |
| customer_creation | String |  |
| inactive_message | String |  |
| invoice_creation_enabled | Boolean |  |
| invoice_creation_invoice_data_description | String |  |
| invoice_creation_invoice_data_footer | String |  |
| invoice_creation_invoice_data_issuer_account | String |  |
| invoice_creation_invoice_data_issuer_type | String |  |
| invoice_creation_invoice_data_metadata | Json |  |
| invoice_creation_invoice_data_rendering_options_amount_tax_display | String |  |
| invoice_creation_invoice_data_rendering_options_template | String |  |
| livemode | Boolean |  |
| managed_payments_enabled | Boolean |  |
| metadata | Json |  |
| payment_method_collection | String |  |
| phone_number_collection_enabled | Boolean |  |
| restrictions_completed_sessions_limit | Long |  |
| shipping_address_collection_allowed_countries | Json |  |
| submit_type | String |  |
| tax_id_collection_enabled | Boolean |  |
| transfer_data_amount | Long |  |
| transfer_data_destination | String |  |
| url | String |  |
| custom_text_** |  |  |
| payment_intent_data_** |  |  |
| subscription_data_** |  |  |

### price_currency_option

| Column | Type | Keys |
| --- | --- | --- |
| currency | String | PK |
| price_id | String | PK, FK |
| custom_unit_amount_maximum | Long |  |
| custom_unit_amount_minimum | Long |  |
| custom_unit_amount_preset | Long |  |
| tax_behavior | String |  |
| unit_amount | Long |  |
| unit_amount_decimal | String |  |

### tier

| Column | Type | Keys |
| --- | --- | --- |
| index | Int | PK |
| id | String | PK, FK |
| flat_amount | Long |  |
| flat_amount_decimal | String |  |
| unit_amount | Long |  |
| unit_amount_decimal | String |  |
| up_to | Long |  |

### customer

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| bank_account_id | String | FK |
| default_card_id | String | FK |
| source_id | String | FK |
| account_balance | Long |  |
| balance | Long |  |
| created | Instant |  |
| currency | String |  |
| delinquent | Boolean |  |
| description | String |  |
| email | String |  |
| invoice_prefix | String |  |
| invoice_settings_default_payment_method | String |  |
| invoice_settings_footer | String |  |
| is_deleted | Boolean |  |
| livemode | Boolean |  |
| metadata | Json |  |
| name | String |  |
| next_invoice_sequence | Long |  |
| phone | String |  |
| tax_exempt | String |  |
| tax_info_tax_id | String |  |
| tax_info_type | String |  |
| tax_info_verification_status | String |  |
| tax_info_verification_verified_name | String |  |
| address_** |  |  |
| shipping_** |  |  |

### product

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| active | Boolean |  |
| caption | String |  |
| created | Instant |  |
| description | String |  |
| is_deleted | Boolean |  |
| livemode | Boolean |  |
| metadata | Json |  |
| name | String |  |
| shippable | Boolean |  |
| statement_descriptor | String |  |
| type | String |  |
| unit_label | String |  |
| updated | Instant |  |
| url | String |  |
| package_dimensions_** |  |  |

### file

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| created | Instant |  |
| filename | String |  |
| purpose | String |  |
| size | Long |  |
| title | String |  |
| type | String |  |
| url | String |  |

### person

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| account | String | FK |
| created | Instant |  |
| dob_day | Int |  |
| dob_month | Int |  |
| dob_year | Int |  |
| email | String |  |
| first_name | String |  |
| first_name_kana | String |  |
| first_name_kanji | String |  |
| gender | String |  |
| id_number_provided | Boolean |  |
| is_deleted | Boolean |  |
| last_name | String |  |
| last_name_kana | String |  |
| last_name_kanji | String |  |
| maiden_name | String |  |
| phone | String |  |
| ssn_last_4_provided | Boolean |  |
| address_** |  |  |
| address_kana_** |  |  |
| address_kanji_** |  |  |
| relationship_** |  |  |
| verification_** |  |  |

### shipping_rate

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| active | Boolean |  |
| amount | Int |  |
| created | Instant |  |
| currency | String |  |
| delivery_estimate_maximum_unit | String |  |
| delivery_estimate_maximum_value | Int |  |
| delivery_estimate_minimum_unit | String |  |
| delivery_estimate_minimum_value | Int |  |
| display_name | String |  |
| livemode | Boolean |  |
| tax_behavior | String |  |
| tax_code | String |  |
| type | String |  |

### dispute_balance_transaction

| Column | Type | Keys |
| --- | --- | --- |
| balance_transaction_id | String | PK, FK |
| dispute_id | String | PK, FK |

### quote_tax_rate

| Column | Type | Keys |
| --- | --- | --- |
| quote_id | String | PK, FK |
| tax_rate_id | String | PK, FK |

### cash_balance

| Column | Type | Keys |
| --- | --- | --- |
| customer_id | String | PK, FK |
| available | Json |  |
| livemode | Boolean |  |
| settings_reconciliation_mode | String |  |
| settings_using_merchant_default | Boolean |  |

### upcoming_invoice_line_item_tax_rate

| Column | Type | Keys |
| --- | --- | --- |
| subscription_id | String | PK, FK |
| tax_rate_id | String | PK, FK |
| upcoming_invoice_line_item_id | String | PK, FK |

### upcoming_invoice_line_item_proration_details_credited_item

| Column | Type | Keys |
| --- | --- | --- |
| invoice_line_item | String | PK |
| subscription_id | String | PK, FK |
| upcoming_invoice_line_item_id | String | PK, FK |
| invoice | String |  |

### charge

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| balance_transaction_id | String | FK |
| bank_account_id | String | FK |
| card_id | String | FK |
| connected_account_id | String | FK |
| customer_id | String | FK |
| destination | String | FK |
| failure_balance_transaction_id | String | FK |
| invoice_id | String | FK |
| on_behalf_of | String | FK |
| payment_intent_id | String | FK |
| payment_method_id | String | FK |
| source_id | String | FK |
| source_transfer | String | FK |
| transfer_data_destination | String | FK |
| transfer_id | String | FK |
| amount | Long |  |
| amount_captured | Long |  |
| amount_refunded | Long |  |
| application | String |  |
| application_fee_amount | Long |  |
| calculated_statement_descriptor | String |  |
| captured | Boolean |  |
| created | Instant |  |
| currency | String |  |
| description | String |  |
| failure_code | String |  |
| failure_message | String |  |
| fraud_details_stripe_report | String |  |
| fraud_details_user_report | String |  |
| livemode | Boolean |  |
| metadata | Json |  |
| paid | Boolean |  |
| receipt_email | String |  |
| receipt_number | String |  |
| receipt_url | String |  |
| refunded | Boolean |  |
| statement_descriptor | String |  |
| statement_descriptor_suffix | String |  |
| status | String |  |
| transfer_group | String |  |
| billing_detail_** |  |  |
| outcome_** |  |  |
| shipping_** |  |  |

### issuing_transaction

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| authorization_id | String | FK |
| balance_transaction | String | FK |
| card | String | FK |
| cardholder | String | FK |
| dispute | String | FK |
| amount | Long |  |
| amount_details | Json |  |
| created | Instant |  |
| currency | String |  |
| livemode | Boolean |  |
| merchant_amount | Long |  |
| merchant_currency | String |  |
| merchant_data | Json |  |
| metadata | Json |  |
| object | String |  |
| type | String |  |
| wallets | String |  |

### subscription_history

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| customer_id | String | FK |
| default_payment_method_id | String | FK |
| default_source_id | String | FK |
| latest_invoice_id | String | FK |
| pending_setup_intent_id | String | FK |
| application_fee_percent | Double |  |
| automatic_tax_enabled | Boolean |  |
| automatic_tax_liability_type | String |  |
| billing | String |  |
| billing_cycle_anchor | Instant |  |
| billing_mode_flexible_proration_discounts | String |  |
| billing_mode_type | String |  |
| billing_mode_updated_at | Instant |  |
| billing_threshold_amount_gte | Long |  |
| billing_threshold_reset_billing_cycle_anchor | Boolean |  |
| cancel_at | Instant |  |
| cancel_at_period_end | Boolean |  |
| canceled_at | Instant |  |
| cancellation_details_comment | String |  |
| cancellation_details_feedback | String |  |
| cancellation_details_reason | String |  |
| collection_method | String |  |
| created | Instant |  |
| current_period_end | Instant |  |
| current_period_start | Instant |  |
| days_until_due | Long |  |
| ended_at | Instant |  |
| livemode | Boolean |  |
| metadata | Json |  |
| next_pending_invoice_item_invoice | Instant |  |
| pause_collection_behavior | String |  |
| pause_collection_resumes_at | Instant |  |
| pending_invoice_item_interval | String |  |
| pending_invoice_item_interval_count | Long |  |
| quantity | Long |  |
| start | Instant |  |
| start_date | Instant |  |
| status | String |  |
| tax_percent | Double |  |
| trial_end | Instant |  |
| trial_start | Instant |  |

### refund

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| balance_transaction_id | String | FK |
| charge_id | String | FK |
| connected_account_id | String | FK |
| failure_balance_transaction_id | String | FK |
| payment_intent_id | String | FK |
| amount | Long |  |
| created | Instant |  |
| currency | String |  |
| description | String |  |
| failure_reason | String |  |
| metadata | Json |  |
| reason | String |  |
| receipt_number | String |  |
| status | String |  |

### invoice_item_tax_rate

| Column | Type | Keys |
| --- | --- | --- |
| invoice_item_id | String | PK, FK |
| tax_rate_id | String | PK, FK |

### attribute

| Column | Type | Keys |
| --- | --- | --- |
| name | String | PK |
| id | String | PK, FK |
| value | String |  |

### discount

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| type | String | PK |
| type_id | String | PK |
| checkout_session_id | String | FK |
| checkout_session_line_item_id | String | FK |
| coupon_id | String | FK |
| credit_note_line_item_id | String | FK |
| customer_id | String | FK |
| invoice_id | String | FK |
| invoice_item_id | String | FK |
| subscription_id | String | FK |
| amount | Long |  |
| end | Instant |  |
| promotion_code | String |  |
| start | Instant |  |

### invoice_payment

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| charge_id | String | FK |
| invoice_id | String | FK |
| payment_intent_id | String | FK |
| amount_paid | Long |  |
| amount_requested | Long |  |
| created | Instant |  |
| currency | String |  |
| is_default | Boolean |  |
| livemode | Boolean |  |
| payment_record_id | String |  |
| payment_type | String |  |
| status | String |  |
| status_transitions_canceled_at | Instant |  |
| status_transitions_paid_at | Instant |  |

### payment_link_line_item

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| payment_link_id | String | PK, FK |
| price_id | String | FK |
| amount_discount | Long |  |
| amount_subtotal | Long |  |
| amount_tax | Long |  |
| amount_total | Long |  |
| currency | String |  |
| description | String |  |
| metadata | Json |  |
| quantity | Long |  |

### invoice_custom_field

| Column | Type | Keys |
| --- | --- | --- |
| name | String | PK |
| invoice_id | String | PK, FK |
| value | String |  |

### authorization

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| card_id | String | FK |
| amount | Long |  |
| amount_details_atm_fee | Double |  |
| approved | Boolean |  |
| authorization_method | String |  |
| cardholder | String |  |
| created | Instant |  |
| currency | String |  |
| held_amount | Long |  |
| held_currency | String |  |
| is_held_amount_controllable | Boolean |  |
| livemode | Boolean |  |
| metadata | Json |  |
| pending_authorized_amount | Long |  |
| pending_held_amount | Long |  |
| status | String |  |
| wallet_provider | String |  |
| merchant_data_** |  |  |
| verification_data_** |  |  |

### checkout_session_shipping_address_allowed_countries

| Column | Type | Keys |
| --- | --- | --- |
| allowed_country_code | String | PK |
| checkout_session_id | String | PK, FK |

### checkout_session

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| customer_id | String | FK |
| payment_intent_id | String | FK |
| setup_intent_id | String | FK |
| subscription_id | String | FK |
| after_expiration_allow_promotion_codes | Boolean |  |
| after_expiration_enabled | Boolean |  |
| after_expiration_expires_at | Instant |  |
| after_expiration_url | String |  |
| allow_promotion_codes | Boolean |  |
| automatic_tax_enabled | Boolean |  |
| automatic_tax_status | String |  |
| billing_address_collection | String |  |
| cancel_url | String |  |
| client_reference_id | String |  |
| consent_collection_promotions | String |  |
| consent_promotions | String |  |
| currency | String |  |
| expires_at | Instant |  |
| livemode | Boolean |  |
| locale | String |  |
| metadata | Json |  |
| mode | String |  |
| object | String |  |
| payment_link | String |  |
| payment_status | String |  |
| phone_number_collection_enabled | Boolean |  |
| recovered_from | String |  |
| shipping_city | String |  |
| shipping_country | String |  |
| shipping_line_1 | String |  |
| shipping_line_2 | String |  |
| shipping_name | String |  |
| shipping_postal_code | String |  |
| shipping_state | String |  |
| status | String |  |
| submit_type | String |  |
| success_url | String |  |
| tax_id_collection_enabled | Boolean |  |
| url | String |  |
| payment_method_options_** |  |  |
| shipping_rate_** |  |  |
| total_details_** |  |  |

### quote

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| customer_id | String | FK |
| invoice_id | String | FK |
| subscription_id | String | FK |
| subscription_schedule_id | String | FK |
| amount_subtotal | Long |  |
| amount_total | Long |  |
| application | String |  |
| application_fee_amount | Long |  |
| application_fee_percent | Double |  |
| automatic_tax_enabled | Boolean |  |
| automatic_tax_liability_account | String |  |
| automatic_tax_liability_type | String |  |
| automatic_tax_status | String |  |
| collection_method | String |  |
| computed_recurring_amount_subtotal | Long |  |
| computed_recurring_amount_total | Long |  |
| computed_recurring_interval | String |  |
| computed_recurring_interval_count | Long |  |
| computed_recurring_total_details_amount_discount | Long |  |
| computed_recurring_total_details_amount_shipping | Long |  |
| computed_recurring_total_details_amount_tax | Long |  |
| computed_upfront_amount_subtotal | Long |  |
| computed_upfront_amount_total | Long |  |
| computed_upfront_total_details_amount_discount | Long |  |
| computed_upfront_total_details_amount_shipping | Long |  |
| computed_upfront_total_details_amount_tax | Long |  |
| created | Instant |  |
| currency | String |  |
| description | String |  |
| expires_at | Instant |  |
| footer | String |  |
| from_quote_is_revision | Boolean |  |
| from_quote_quote | String |  |
| header | String |  |
| invoice_settings_days_until_due | Long |  |
| invoice_settings_issuer_account | String |  |
| invoice_settings_issuer_type | String |  |
| livemode | Boolean |  |
| metadata | Json |  |
| number | String |  |
| on_behalf_of | String |  |
| status | String |  |
| status_transitions_accepted_at | Instant |  |
| status_transitions_canceled_at | Instant |  |
| status_transitions_finalized_at | Instant |  |
| test_clock | String |  |
| transfer_data_amount | Long |  |
| transfer_data_amount_percent | Double |  |
| transfer_data_destination | String |  |
| subscription_data_** |  |  |
| total_details_** |  |  |

### customer_discount

| Column | Type | Keys |
| --- | --- | --- |
| customer_id | String | PK |
| id | String | PK |
| coupon_id | String | FK |
| invoice_id | String | FK |
| invoice_item_id | String | FK |
| subscription_id | String | FK |
| checkout_session | String |  |
| end | Instant |  |
| promotion_code | String |  |
| start | Instant |  |

### checkout_session_tax_rate

| Column | Type | Keys |
| --- | --- | --- |
| checkout_session_id | String | PK, FK |
| tax_rate_id | String | PK, FK |
| amount | Int |  |

### invoice_item

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| customer_id | String | FK |
| invoice_id | String | FK |
| plan_id | String | FK |
| price_id | String | FK |
| subscription_id | String | FK |
| subscription_item_id | String | FK |
| amount | Long |  |
| currency | String |  |
| date | Instant |  |
| description | String |  |
| discountable | Boolean |  |
| is_deleted | Boolean |  |
| livemode | Boolean |  |
| metadata | Json |  |
| period_end | Long |  |
| period_start | Long |  |
| proration | Boolean |  |
| quantity | Long |  |
| test_clock | String |  |
| unit_amount | Long |  |
| unit_amount_decimal | String |  |

### phase_plan

| Column | Type | Keys |
| --- | --- | --- |
| end_date | Instant | PK |
| start_date | Instant | PK |
| plan_id | String | PK, FK |
| subscription_schedule_id | String | PK, FK |
| quantity | Long |  |

### subscription_discount

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| subscription_id | String | PK |
| coupon_id | String | FK |
| customer_id | String | FK |
| invoice_id | String | FK |
| invoice_item_id | String | FK |
| checkout_session | String |  |
| end | Instant |  |
| promotion_code | String |  |
| start | Instant |  |

### subscription_item

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| subscription_id | String | PK, FK |
| plan_id | String | FK |
| billing_thresholds_amount_gte | Long |  |
| billing_thresholds_reset_billing_cycle_anchor | Boolean |  |
| created | Instant |  |
| current_period_end | Instant |  |
| current_period_start | Instant |  |
| metadata | Json |  |
| quantity | Long |  |

### source

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| connected_account_id | String | FK |
| customer_id | String | FK |
| amount | Long |  |
| code_verificationattempts_remaining | Long |  |
| code_verificationstatus | String |  |
| created | Instant |  |
| currency | String |  |
| flow | String |  |
| livemode | Boolean |  |
| metadata | Json |  |
| statement_descriptor | String |  |
| status | String |  |
| type | String |  |
| usage | String |  |
| owner_** |  |  |
| receiver_** |  |  |
| redirect_** |  |  |

### checkout_session_shipping_option

| Column | Type | Keys |
| --- | --- | --- |
| checkout_session_id | String | PK, FK |
| shipping_rate_id | String | PK, FK |
| shipping_amount | Int |  |

### credit_note_line_item_tax_rate

| Column | Type | Keys |
| --- | --- | --- |
| credit_note_id | String | PK, FK |
| credit_note_line_item_id | String | PK, FK |
| tax_rate_id | String | PK, FK |

### early_fraud_warning

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| charge_id | String | FK |
| actionable | Boolean |  |
| created | Instant |  |
| fraud_type | String |  |
| livemode | Boolean |  |

### price

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| invoice_item_id | String | FK |
| product_id | String | FK |
| active | Boolean |  |
| billing_scheme | String |  |
| created | Instant |  |
| currency | String |  |
| is_deleted | Boolean |  |
| livemode | Boolean |  |
| lookup_key | String |  |
| metadata | Json |  |
| nickname | String |  |
| tax_behavior | String |  |
| tiers_mode | String |  |
| transform_quantity_divide_by | Long |  |
| transform_quantity_round | String |  |
| type | String |  |
| unit_amount | Long |  |
| unit_amount_decimal | String |  |
| recurring_** |  |  |

### upcoming_invoice_tax_rate

| Column | Type | Keys |
| --- | --- | --- |
| subscription | String | PK, FK |
| tax_rate_id | String | PK, FK |

### promotion_code

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| coupon_id | String | FK |
| customer_id | String | FK |
| active | Boolean |  |
| code | String |  |
| created | Instant |  |
| expires_at | Instant |  |
| first_time_transaction | Boolean |  |
| livemode | Boolean |  |
| max_redemptions | Long |  |
| metadata | Json |  |
| minimum_amount | Int |  |
| minimum_amount_currency | String |  |
| times_redeemed | Long |  |

### cash_balance_transaction

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| customer_id | String | PK, FK |
| adjusted_for_overdraft_balance_transaction | String |  |
| adjusted_for_overdraft_linked_transaction | String |  |
| applied_to_payment_intent | String |  |
| created | Instant |  |
| currency | String |  |
| ending_balance | Long |  |
| funded_bank_transfer_eu_bank_transfer_bic | String |  |
| funded_bank_transfer_eu_bank_transfer_iban_last_4 | String |  |
| funded_bank_transfer_eu_bank_transfer_sender_name | String |  |
| funded_bank_transfer_gb_bank_transfer_account_number_last_4 | String |  |
| funded_bank_transfer_gb_bank_transfer_sender_name | String |  |
| funded_bank_transfer_gb_bank_transfer_sort_code | String |  |
| funded_bank_transfer_jp_bank_transfer_sender_bank | String |  |
| funded_bank_transfer_jp_bank_transfer_sender_branch | String |  |
| funded_bank_transfer_jp_bank_transfer_sender_name | String |  |
| funded_bank_transfer_reference | String |  |
| funded_bank_transfer_type | String |  |
| funded_bank_transfer_us_bank_transfer_network | String |  |
| funded_bank_transfer_us_bank_transfer_sender_name | String |  |
| livemode | Boolean |  |
| net_amount | Long |  |
| refunded_from_payment_refund | String |  |
| transferred_to_balance_transaction | String |  |
| type | String |  |
| unapplied_from_payment_intent | String |  |

### checkout_session_line_item

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| checkout_session_id | String | PK, FK |
| price_id | String | FK |
| amount_discount | Long |  |
| amount_subtotal | Double |  |
| amount_tax | Long |  |
| amount_total | Double |  |
| currency | String |  |
| description | String |  |
| object | String |  |
| quantity | Long |  |

### customer_tax

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| customer_id | String | PK, FK |
| owner_account_id | String | FK |
| owner_customer_id | String | FK |
| country | String |  |
| created | Instant |  |
| livemode | Boolean |  |
| object | String |  |
| owner_type | String |  |
| type | String |  |
| value | String |  |
| verification_status | String |  |
| verification_verified_address | String |  |
| verification_verified_name | String |  |

### customer_balance_transaction

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| customer_id | String | PK, FK |
| invoice_id | String | FK |
| amount | Long |  |
| created | Instant |  |
| credit_note | String |  |
| currency | String |  |
| description | String |  |
| ending_balance | Long |  |
| livemode | Boolean |  |
| metadata | Json |  |
| type | String |  |

### coupon_product

| Column | Type | Keys |
| --- | --- | --- |
| coupon_id | String | PK, FK |
| product_id | String | PK, FK |

### sepa_debit

| Column | Type | Keys |
| --- | --- | --- |
| payment_method_id | String | PK, FK |
| bank_code | String |  |
| branch_code | String |  |
| country | String |  |
| fingerprint | String |  |
| last_4 | String |  |

### checkout_session_line_item_discount

| Column | Type | Keys |
| --- | --- | --- |
| discount_id | String | PK |
| checkout_session_line_item_id | String | PK, FK |
| coupon_id | String | FK |
| customer_id | String | FK |
| invoice_id | String | FK |
| invoice_item_id | String | FK |
| subscription_id | String | FK |
| amount | Long |  |
| checkout_session | String |  |
| end | Instant |  |
| promotion_code | String |  |
| start | Instant |  |

### credit_grant

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| customer_account | String | FK |
| customer_id | String | FK |
| amount_monetary_currency | String |  |
| amount_monetary_value | Long |  |
| amount_type | String |  |
| applicability_config_scope_price_type | String |  |
| category | String |  |
| created | Instant |  |
| effective_at | Instant |  |
| expires_at | Instant |  |
| livemode | Boolean |  |
| metadata | Json |  |
| name | String |  |
| priority | Int |  |
| test_clock | String |  |
| updated | Instant |  |
| voided_at | Instant |  |

### payment_method

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| customer_id | String | FK |
| created | Instant |  |
| livemode | Boolean |  |
| metadata | Json |  |
| type | String |  |
| billing_detail_** |  |  |

### quote_computed_upfront_line_item

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| quote_id | String | PK, FK |
| price_id | String | FK |
| amount_subtotal | Long |  |
| amount_tax | Long |  |
| amount_total | Long |  |
| currency | String |  |
| description | String |  |
| quantity | Long |  |

### transaction

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| authorization_id | String | FK |
| balance_transaction_id | String | FK |
| card_id | String | FK |
| dispute_id | String | FK |
| amount | Long |  |
| cardholder | String |  |
| created | Instant |  |
| currency | String |  |
| livemode | Boolean |  |
| metadata | Json |  |
| type | String |  |

### phase

| Column | Type | Keys |
| --- | --- | --- |
| end_date | Instant | PK |
| start_date | Instant | PK |
| subscription_schedule_id | String | PK, FK |
| application_fee_percent | Double |  |
| billing_thresholds_amount_gte | Long |  |
| billing_thresholds_reset_billing_cycle_anchor | Boolean |  |
| collection_method | String |  |
| coupon_id | String |  |
| default_payment_method | String |  |
| invoice_settings_days_until_due | Long |  |
| tax_percent | Double |  |
| trial_end | Instant |  |

### setup_attempt

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| setup_intent_id | String | PK, FK |
| default_payment_method_id | String | FK |
| on_behalf_of | String | FK |
| application | String |  |
| created | Instant |  |
| livemode | Boolean |  |
| status | String |  |
| usage | String |  |
| setup_error_** |  |  |

### credit_note

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| customer_balance_transaction_id | String | FK |
| customer_id | String | FK |
| invoice_id | String | FK |
| refund_id | String | FK |
| amount | Long |  |
| amount_shipping | Long |  |
| created | Instant |  |
| currency | String |  |
| effective_at | Instant |  |
| livemode | Boolean |  |
| memo | String |  |
| metadata | Json |  |
| number | String |  |
| out_of_band_amount | Long |  |
| pdf | String |  |
| reason | String |  |
| status | String |  |
| subtotal | Long |  |
| subtotal_excluding_tax | Long |  |
| total | Long |  |
| total_excluding_tax | Long |  |
| type | String |  |
| voided_at | Instant |  |
| shipping_cost_** |  |  |

### invoice_line_item

| Column | Type | Keys |
| --- | --- | --- |
| unique_id | String | PK |
| invoice_id | String | PK, FK |
| plan_id | String | FK |
| price_id | String | FK |
| subscription_id | String | FK |
| subscription_item_id | String | FK |
| amount | Long |  |
| amount_excluding_tax | Long |  |
| currency | String |  |
| description | String |  |
| discountable | Boolean |  |
| id | String |  |
| invoice_item_id | Unknown |  |
| livemode | Boolean |  |
| metadata | Json |  |
| period_end | Instant |  |
| period_start | Instant |  |
| proration | Boolean |  |
| quantity | Long |  |
| type | String |  |
| unit_amount_excluding_tax | String |  |

### upcoming_invoice_line_item

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| subscription_id | String | PK, FK |
| customer_id | String | FK |
| plan_id | String | FK |
| price_id | String | FK |
| subscription_item_id | String | FK |
| amount | Long |  |
| currency | String |  |
| description | String |  |
| discountable | Boolean |  |
| invoice_item_id | String |  |
| livemode | Boolean |  |
| metadata | Json |  |
| period_end | Instant |  |
| period_start | Instant |  |
| proration | Boolean |  |
| quantity | Long |  |
| type | String |  |

### application_fee_refund

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| application_fee_id | String | PK, FK |
| balance_transaction_id | String | FK |
| amount | Long |  |
| created | Instant |  |
| currency | String |  |
| metadata | Json |  |

### capability

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| account_id | String | PK, FK |
| requested | Boolean |  |
| requested_at | Instant |  |
| status | String |  |

### fpx

| Column | Type | Keys |
| --- | --- | --- |
| payment_method_id | String | PK, FK |
| bank | String |  |

### review

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| charge_id | String | FK |
| payment_intent_id | String | FK |
| billing_zip | String |  |
| closed_reason | String |  |
| created | Instant |  |
| ip_address | String |  |
| livemode | Boolean |  |
| open | Boolean |  |
| opened_reason | String |  |
| reason | String |  |
| ip_address_location_** |  |  |
| session_** |  |  |

### invoice_line_item_tax_rate

| Column | Type | Keys |
| --- | --- | --- |
| invoice_id | String | PK, FK |
| invoice_line_item | String | PK, FK |
| tax_rate_id | String | PK, FK |

### checkout_session_line_item_tax_rate

| Column | Type | Keys |
| --- | --- | --- |
| checkout_session_line_item_id | String | PK, FK |
| tax_rate_id | String | PK, FK |
| amount | Int |  |

### subscription_tax_rate

| Column | Type | Keys |
| --- | --- | --- |
| subscription_id | String | PK, FK |
| tax_rate_id | String | PK, FK |

### apple_pay_domain

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| connected_account_id | String | FK |
| created | Instant |  |
| domain_name | String |  |
| livemode | Boolean |  |

### payment_link_custom_field_dropdown_option

| Column | Type | Keys |
| --- | --- | --- |
| label | String | PK |
| key | String | PK, FK |
| payment_link_id | String | PK, FK |
| value | String |  |

### payment_method_card

| Column | Type | Keys |
| --- | --- | --- |
| payment_method_id | String | PK, FK |
| charge_id | String | FK |
| brand | String |  |
| description | String |  |
| exp_month | Int |  |
| exp_year | Int |  |
| fingerprint | String |  |
| funding | String |  |
| last_4 | String |  |
| three_d_secure_usage_supported | Boolean |  |
| type | String |  |
| wallet_type | String |  |

### usage_record

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| subscription_item_id | String | PK, FK |
| invoice_id | String |  |
| livemode | Boolean |  |
| period_end | Long |  |
| period_start | Long |  |
| timestamp | Instant |  |
| total_usage | Long |  |

### tax_rate

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| active | Boolean |  |
| created | Instant |  |
| description | String |  |
| display_name | String |  |
| inclusive | Boolean |  |
| jurisdiction | String |  |
| livemode | Boolean |  |
| metadata | Json |  |
| percentage | Double |  |

### payment_link_shipping_option

| Column | Type | Keys |
| --- | --- | --- |
| index | Int | PK |
| payment_link_id | String | PK, FK |
| shipping_rate_id | String | FK |
| shipping_amount | Int |  |

### billing_meter

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| created | Instant |  |
| customer_mapping_event_payload_key | String |  |
| customer_mapping_type | String |  |
| default_aggregation_formula | String |  |
| display_name | String |  |
| event_name | String |  |
| event_time_window | String |  |
| livemode | Boolean |  |
| status | String |  |
| status_transitions_deactivated_at | Instant |  |
| updated | Instant |  |
| value_settings_event_payload_key | String |  |

### order_return_item

| Column | Type | Keys |
| --- | --- | --- |
| index | Int | PK |
| order_return_id | String | PK, FK |
| discount_id | String | FK |
| sku_id | String | FK |
| amount | Long |  |
| currency | String |  |
| description | String |  |
| quantity | Long |  |
| type | String |  |

### upcoming_invoice_account_tax_id

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| subscription_id | String | PK, FK |

### issuing_card

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| cardholder_id | String | FK |
| connected_account_id | String | FK |
| brand | String |  |
| cancellation_reason | String |  |
| created | Instant |  |
| currency | String |  |
| exp_month | Int |  |
| exp_year | Int |  |
| last_4 | String |  |
| livemode | Boolean |  |
| metadata | Json |  |
| name | String |  |
| number | String |  |
| replaced_by | String |  |
| replacement_for | String |  |
| replacement_reason | String |  |
| status | String |  |
| type | String |  |
| shipping_** |  |  |

### payout

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| balance_transaction_id | String | FK |
| connected_account_id | String | FK |
| destination_bank_account_id | String | FK |
| destination_card_id | String | FK |
| failure_balance_transaction_id | String | FK |
| amount | Long |  |
| arrival_date | Instant |  |
| automatic | Boolean |  |
| created | Instant |  |
| currency | String |  |
| description | String |  |
| failure_code | String |  |
| failure_message | String |  |
| livemode | Boolean |  |
| metadata | Json |  |
| method | String |  |
| reconciliation_status | String |  |
| source_type | String |  |
| statement_descriptor | String |  |
| status | String |  |
| trace_id_status | String |  |
| trace_id_value | String |  |
| type | String |  |

### fee

| Column | Type | Keys |
| --- | --- | --- |
| index | Int | PK |
| balance_transaction_id | String | PK, FK |
| connected_account_id | String | FK |
| amount | Long |  |
| application | String |  |
| currency | String |  |
| description | String |  |
| type | String |  |

### file_link

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| file_id | String | FK |
| created | Instant |  |
| expired | Boolean |  |
| expires_at | Instant |  |
| livemode | Boolean |  |
| metadata | Json |  |
| url | String |  |

### payment_link_invoice_creation_invoice_data_account_tax

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| payment_link_id | String | PK, FK |

### invoice_account_tax_id

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| invoice_id | String | PK, FK |

### subscription_schedule

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| customer_id | String | FK |
| subscription_id | String | FK |
| canceled_at | Instant |  |
| completed_at | Instant |  |
| created | Instant |  |
| current_phase_end_date | Instant |  |
| current_phase_start_date | Instant |  |
| end_behavior | String |  |
| livemode | Boolean |  |
| metadata | Json |  |
| released_at | Instant |  |
| released_subscription | String |  |
| status | String |  |
| default_settings_** |  |  |

### card

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| account_id | String | FK |
| connected_account_id | String | FK |
| customer_id | String | FK |
| address_city | String |  |
| address_country | String |  |
| address_line_1 | String |  |
| address_line_1_check | String |  |
| address_line_2 | String |  |
| address_state | String |  |
| address_zip | String |  |
| address_zip_check | String |  |
| brand | String |  |
| country | String |  |
| created | Instant |  |
| currency | String |  |
| cvc_check | String |  |
| description | String |  |
| dynamic_last_4 | String |  |
| exp_month | Int |  |
| exp_year | Int |  |
| fingerprint | String |  |
| funding | String |  |
| iin | String |  |
| is_deleted | Boolean |  |
| issuer | String |  |
| last_4 | String |  |
| metadata | Json |  |
| name | String |  |
| network | String |  |
| recipient | String |  |
| three_d_secure | String |  |
| tokenization_method | String |  |
| wallet_type | String |  |
| three_d_secure_** |  |  |

### payment_method_card_present

| Column | Type | Keys |
| --- | --- | --- |
| payment_method_id | String | PK, FK |
| brand | String |  |
| brand_product | String |  |
| cardholder_name | String |  |
| country | String |  |
| description | String |  |
| exp_month | Int |  |
| exp_year | Int |  |
| fingerprint | String |  |
| funding | String |  |
| issuer | String |  |
| last_4 | String |  |
| networks_available | Json |  |
| networks_preferred | String |  |
| offline_stored_at | Instant |  |
| offline_type | String |  |
| preferred_locales | Json |  |
| read_method | String |  |
| wallet_type | String |  |

### coupon

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| amount_off | Long |  |
| created | Instant |  |
| currency | String |  |
| duration | String |  |
| duration_in_months | Long |  |
| is_deleted | Boolean |  |
| livemode | Boolean |  |
| max_redemptions | Long |  |
| metadata | Json |  |
| name | String |  |
| percent_off | Double |  |
| redeem_by | Instant |  |
| times_redeemed | Long |  |
| valid | Boolean |  |

### application_fee

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| account_id | String | FK |
| balance_transaction_id | String | FK |
| charge_id | String | FK |
| originating_transaction | String | FK |
| amount | Long |  |
| amount_refunded | Long |  |
| application | String |  |
| created | Instant |  |
| currency | String |  |
| livemode | Boolean |  |
| refunded | Boolean |  |

### ideal

| Column | Type | Keys |
| --- | --- | --- |
| payment_method_id | String | PK, FK |
| bank | String |  |
| bic | String |  |

### upcoming_invoice_custom_field

| Column | Type | Keys |
| --- | --- | --- |
| name | String | PK |
| subscription | String | PK, FK |
| value | String |  |

### bank_account

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| connected_account_id | String | FK |
| customer_id | String | FK |
| account | String |  |
| account_holder_name | String |  |
| account_holder_type | String |  |
| bank_name | String |  |
| country | String |  |
| currency | String |  |
| fingerprint | String |  |
| is_deleted | Boolean |  |
| last_4 | String |  |
| metadata | Json |  |
| routing_number | String |  |
| status | String |  |

### plan

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| product_id | String | FK |
| active | Boolean |  |
| aggregate_usage | String |  |
| amount | Long |  |
| billing_scheme | String |  |
| created | Instant |  |
| currency | String |  |
| interval | String |  |
| interval_count | Long |  |
| is_deleted | Boolean |  |
| livemode | Boolean |  |
| metadata | Json |  |
| nickname | String |  |
| tiers_mode | String |  |
| transform_usage_divide_by | Int |  |
| transform_usage_round | String |  |
| trial_period_days | Int |  |
| usage_type | String |  |

### invoice

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| charge_id | String | FK |
| customer_id | String | FK |
| default_payment_method_id | String | FK |
| default_source_id | String | FK |
| payment_intent_id | String | FK |
| subscription_id | String | FK |
| account_country | String |  |
| account_name | String |  |
| amount_due | Long |  |
| amount_paid | Long |  |
| amount_remaining | Long |  |
| amount_shipping | Long |  |
| application | String |  |
| application_fee_amount | Long |  |
| attempt_count | Long |  |
| attempted | Boolean |  |
| auto_advance | Boolean |  |
| automatic_tax_enabled | Boolean |  |
| automatic_tax_status | String |  |
| billing_reason | String |  |
| collection_method | String |  |
| created | Instant |  |
| currency | String |  |
| description | String |  |
| due_date | Instant |  |
| effective_at | Instant |  |
| ending_balance | Long |  |
| footer | String |  |
| from_invoice_action | String |  |
| from_invoice_invoice | String |  |
| hosted_invoice_url | String |  |
| invoice_pdf | String |  |
| is_deleted | Boolean |  |
| latest_revision | String |  |
| livemode | Boolean |  |
| metadata | Json |  |
| next_payment_attempt | Instant |  |
| number | String |  |
| on_behalf_of | String |  |
| paid | Boolean |  |
| paid_out_of_band | Boolean |  |
| payment_settings_default_mandate | String |  |
| payment_settings_payment_method_options_acss_debit_mandate_options_transaction_type | String |  |
| payment_settings_payment_method_options_acss_debit_verification_method | String |  |
| payment_settings_payment_method_options_bancontact_preferred_language | String |  |
| payment_settings_payment_method_options_card_installments_enabled | Boolean |  |
| payment_settings_payment_method_options_card_request_three_d_secure | String |  |
| payment_settings_payment_method_options_customer_balance_bank_transfer_eu_bank_transfer_country | String |  |
| payment_settings_payment_method_options_customer_balance_bank_transfer_type | String |  |
| payment_settings_payment_method_options_customer_balance_funding_type | String |  |
| payment_settings_payment_method_options_us_bank_account_financial_connections_filters_account_subcategories | Json |  |
| payment_settings_payment_method_options_us_bank_account_financial_connections_permissions | Json |  |
| payment_settings_payment_method_options_us_bank_account_financial_connections_prefetch | Json |  |
| payment_settings_payment_method_options_us_bank_account_verification_method | String |  |
| payment_settings_payment_method_types | Json |  |
| period_end | Instant |  |
| period_start | Instant |  |
| post_payment_credit_notes_amount | Int |  |
| pre_payment_credit_notes_amount | Int |  |
| receipt_number | String |  |
| rendering_amount_tax_display | String |  |
| rendering_pdf_page_size | String |  |
| starting_balance | Long |  |
| statement_descriptor | String |  |
| status | String |  |
| subscription_proration_date | Int |  |
| subtotal | Long |  |
| subtotal_excluding_tax | Long |  |
| tax | Long |  |
| tax_percent | BigDecimal |  |
| test_clock | String |  |
| threshold_reason_amount_gte | Long |  |
| total | Long |  |
| total_excluding_tax | Long |  |
| webhooks_delivered_at | Instant |  |
| last_finalization_error_** |  |  |
| shipping_cost_** |  |  |
| shipping_details_** |  |  |
| status_transitions_** |  |  |

### payment_intent

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| connected_account_id | String | FK |
| customer_id | String | FK |
| last_payment_error_charge_id | String | FK |
| last_payment_error_source_id | String | FK |
| on_behalf_of | String | FK |
| payment_method_id | String | FK |
| source_id | String | FK |
| transfer_data_destination | String | FK |
| amount | Long |  |
| amount_capturable | Long |  |
| amount_received | Long |  |
| application | String |  |
| application_fee_amount | Long |  |
| canceled_at | Instant |  |
| cancellation_reason | String |  |
| capture_method | String |  |
| confirmation_method | String |  |
| created | Instant |  |
| currency | String |  |
| description | String |  |
| last_payment_error_code | String |  |
| last_payment_error_decline_code | String |  |
| last_payment_error_doc_url | String |  |
| last_payment_error_message | String |  |
| last_payment_error_network_decline_code | String |  |
| last_payment_error_param | String |  |
| last_payment_error_type | String |  |
| livemode | Boolean |  |
| metadata | Json |  |
| payment_method_types | Json |  |
| receipt_email | String |  |
| statement_descriptor | String |  |
| status | String |  |
| transfer_group | String |  |

### quote_line_item

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| quote_id | String | PK, FK |
| price_id | String | FK |
| amount_subtotal | Long |  |
| amount_tax | Long |  |
| amount_total | Long |  |
| currency | String |  |
| description | String |  |
| quantity | Long |  |

### billing_meter_event_summary

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| customer_id | String | FK |
| meter_id | String | FK |
| subscription_item_id | String | FK |
| aggregated_value | Double |  |
| end_time | Instant |  |
| livemode | Boolean |  |
| start_time | Instant |  |

### tax_amount

| Column | Type | Keys |
| --- | --- | --- |
| index | Int | PK |
| type | String | PK |
| type_id | String | PK |
| tax_rate_id | String | FK |
| amount | Long |  |
| inclusive | Boolean |  |
| taxability_reason | String |  |
| taxable_amount | Long |  |

### charge_payment_method_details

| Column | Type | Keys |
| --- | --- | --- |
| payment_method_type | String | PK |
| charge_id | String | PK, FK |
| value | Json |  |

### transfer

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| balance_transaction_id | String | FK |
| destination | String | FK |
| source_transaction | String | FK |
| source_transaction_id | String | FK |
| amount | Long |  |
| amount_reversed | Long |  |
| created | Instant |  |
| currency | String |  |
| description | String |  |
| destination_payment | String |  |
| destination_payment_id | String |  |
| livemode | Boolean |  |
| metadata | Json |  |
| reversed | Boolean |  |
| source_type | String |  |
| transfer_group | String |  |

### credit_grant_applicability_config_scope_prices

| Column | Type | Keys |
| --- | --- | --- |
| credit_grant_id | String | PK, FK |
| id | String | PK, FK |

### payment_link_custom_field

| Column | Type | Keys |
| --- | --- | --- |
| key | String | PK |
| payment_link_id | String | PK, FK |
| dropdown_default_value | String |  |
| label_custom | String |  |
| label_type | String |  |
| numeric_default_value | String |  |
| numeric_maximum_length | Long |  |
| numeric_minimum_length | Long |  |
| optional | Boolean |  |
| text_default_value | String |  |
| text_maximum_length | Long |  |
| text_minimum_length | Long |  |
| type | String |  |

### invoice_tax_rate

| Column | Type | Keys |
| --- | --- | --- |
| invoice_id | String | PK, FK |
| tax_rate_id | String | PK, FK |

### cardholder

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| billing_address_city | String |  |
| billing_address_country | String |  |
| billing_address_line_1 | String |  |
| billing_address_line_2 | String |  |
| billing_address_postal_code | String |  |
| billing_address_state | String |  |
| billing_name | String |  |
| created | Instant |  |
| email | String |  |
| is_default | Boolean |  |
| livemode | Boolean |  |
| metadata | Json |  |
| name | String |  |
| phone_number | String |  |
| status | String |  |
| type | String |  |
| spending_controls_** |  |  |

### payment_link_payment_method_type

| Column | Type | Keys |
| --- | --- | --- |
| type | String | PK |
| payment_link_id | String | PK, FK |

### au_becs_debit

| Column | Type | Keys |
| --- | --- | --- |
| payment_method_id | String | PK, FK |
| bsb_number | String |  |
| fingerprint | String |  |
| last_4 | String |  |

### credit_note_line_item

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| credit_note_id | String | PK, FK |
| amount | Long |  |
| amount_excluding_tax | Long |  |
| description | String |  |
| invoice_line_item | String |  |
| livemode | Boolean |  |
| quantity | Long |  |
| type | String |  |
| unit_amount | Long |  |
| unit_amount_decimal | String |  |
| unit_amount_excluding_tax | String |  |

### invoice_line_item_proration_details_credited_item

| Column | Type | Keys |
| --- | --- | --- |
| credited_invoice_line_item_id | String | PK |
| invoice_id | String | PK, FK |
| invoice_line_item | String | PK, FK |
| credited_invoice_id | String |  |

### topup

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| balance_transaction_id | String | FK |
| source_id | String | FK |
| amount | Long |  |
| created | Instant |  |
| currency | String |  |
| description | String |  |
| expected_availability_date | Instant |  |
| failure_code | String |  |
| failure_message | String |  |
| livemode | Boolean |  |
| metadata | Json |  |
| statement_descriptor | String |  |
| status | String |  |
| transfer_group | String |  |

### balance_transaction

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| connected_account_id | String | FK |
| payout_id | String | FK |
| amount | Long |  |
| available_on | Instant |  |
| created | Instant |  |
| currency | String |  |
| description | String |  |
| exchange_rate | Double |  |
| fee | Long |  |
| net | Long |  |
| reporting_category | String |  |
| source | String |  |
| status | String |  |
| type | String |  |

### dispute

| Column | Type | Keys |
| --- | --- | --- |
| id | String | PK |
| charge_id | String | FK |
| connected_account_id | String | FK |
| amount | Long |  |
| balance_transaction | String |  |
| created | Instant |  |
| currency | String |  |
| is_charge_refundable | Boolean |  |
| livemode | Boolean |  |
| metadata | Json |  |
| reason | String |  |
| status | String |  |
| evidence_** |  |  |
| evidence_details_** |  |  |

## Relationships

- setup_intent(on_behalf_of) → account(id)
- setup_intent(payment_method_id) → payment_method(id)
- setup_intent(customer_id) → customer(id)
- order_return(refund_id) → refund(id)
- payment_link_invoice_creation_invoice_data_custom_field(payment_link_id) → payment_link(id)
- invoice_discount(coupon_id) → coupon(id)
- invoice_discount(invoice_item_id) → invoice_item(id)
- invoice_discount(customer_id) → customer(id)
- invoice_discount(subscription_id) → subscription_history(id)
- upcoming_invoice(subscription_id) → subscription_history(id)
- upcoming_invoice(customer_id) → customer(id)
- upcoming_invoice(charge_id) → charge(id)
- upcoming_invoice(default_source_id) → source(id)
- upcoming_invoice(default_payment_method_id) → payment_method(id)
- upcoming_invoice(payment_intent_id) → payment_intent(id)
- payout_balance_transaction(payout_id) → payout(id)
- payout_balance_transaction(balance_transaction_id) → balance_transaction(id)
- transfer_reversal(balance_transaction_id) → balance_transaction(id)
- transfer_reversal(source_refund_id) → refund(id)
- transfer_reversal(transfer_id) → transfer(id)
- checkout_session_payment_method(checkout_session_id) → checkout_session(id)
- issuing_dispute(connected_account_id) → account(id)
- issuing_dispute(evidence_fraudlent_uncategorized_file) → file(id)
- issuing_dispute(evidence_other_uncategorized_file) → file(id)
- sku(product_id) → product(id)
- account(individual_id) → person(id)
- payment_link(automatic_tax_liability_account_id) → account(id)
- payment_link(on_behalf_of_id) → account(id)
- price_currency_option(price_id) → price(id)
- tier(id) → plan(id)
- customer(bank_account_id) → bank_account(id)
- customer(source_id) → source(id)
- customer(default_card_id) → card(id)
- person(account) → account(id)
- dispute_balance_transaction(dispute_id) → dispute(id)
- dispute_balance_transaction(balance_transaction_id) → balance_transaction(id)
- quote_tax_rate(quote_id) → quote(id)
- quote_tax_rate(tax_rate_id) → tax_rate(id)
- cash_balance(customer_id) → customer(id)
- upcoming_invoice_line_item_tax_rate(subscription_id) → subscription_history(id)
- upcoming_invoice_line_item_tax_rate(tax_rate_id) → tax_rate(id)
- upcoming_invoice_line_item_tax_rate(upcoming_invoice_line_item_id) → upcoming_invoice_line_item(id)
- upcoming_invoice_line_item_proration_details_credited_item(upcoming_invoice_line_item_id) → upcoming_invoice_line_item(id)
- upcoming_invoice_line_item_proration_details_credited_item(subscription_id) → subscription_history(id)
- charge(connected_account_id) → account(id)
- charge(destination) → account(id)
- charge(on_behalf_of) → account(id)
- charge(card_id) → card(id)
- charge(bank_account_id) → bank_account(id)
- charge(source_id) → source(id)
- charge(source_transfer) → transfer(id)
- charge(transfer_data_destination) → account(id)
- charge(balance_transaction_id) → balance_transaction(id)
- charge(customer_id) → customer(id)
- charge(failure_balance_transaction_id) → balance_transaction(id)
- charge(invoice_id) → invoice(id)
- charge(payment_intent_id) → payment_intent(id)
- charge(payment_method_id) → payment_method(id)
- charge(transfer_id) → transfer(id)
- issuing_transaction(authorization_id) → authorization(id)
- issuing_transaction(balance_transaction) → balance_transaction(id)
- issuing_transaction(card) → card(id)
- issuing_transaction(cardholder) → cardholder(id)
- issuing_transaction(dispute) → dispute(id)
- subscription_history(customer_id) → customer(id)
- subscription_history(default_source_id) → source(id)
- subscription_history(default_payment_method_id) → payment_method(id)
- subscription_history(latest_invoice_id) → invoice(id)
- subscription_history(pending_setup_intent_id) → setup_intent(id)
- refund(connected_account_id) → account(id)
- refund(balance_transaction_id) → balance_transaction(id)
- refund(charge_id) → charge(id)
- refund(failure_balance_transaction_id) → balance_transaction(id)
- refund(payment_intent_id) → payment_intent(id)
- invoice_item_tax_rate(invoice_item_id) → invoice_item(id)
- invoice_item_tax_rate(tax_rate_id) → tax_rate(id)
- attribute(id) → sku(id)
- discount(checkout_session_line_item_id) → checkout_session_line_item(id)
- discount(credit_note_line_item_id) → credit_note_line_item(id)
- discount(coupon_id) → coupon(id)
- discount(invoice_item_id) → invoice_item(id)
- discount(checkout_session_id) → checkout_session(id)
- discount(customer_id) → customer(id)
- discount(subscription_id) → subscription_history(id)
- discount(invoice_id) → invoice(id)
- invoice_payment(charge_id) → charge(id)
- invoice_payment(payment_intent_id) → payment_intent(id)
- invoice_payment(invoice_id) → invoice(id)
- payment_link_line_item(payment_link_id) → payment_link(id)
- payment_link_line_item(price_id) → price(id)
- invoice_custom_field(invoice_id) → invoice(id)
- authorization(card_id) → card(id)
- checkout_session_shipping_address_allowed_countries(checkout_session_id) → checkout_session(id)
- checkout_session(customer_id) → customer(id)
- checkout_session(payment_intent_id) → payment_intent(id)
- checkout_session(setup_intent_id) → setup_intent(id)
- checkout_session(subscription_id) → subscription_history(id)
- quote(customer_id) → customer(id)
- quote(invoice_id) → invoice(id)
- quote(subscription_id) → subscription_history(id)
- quote(subscription_schedule_id) → subscription_schedule(id)
- customer_discount(coupon_id) → coupon(id)
- customer_discount(invoice_item_id) → invoice_item(id)
- customer_discount(subscription_id) → subscription_history(id)
- customer_discount(invoice_id) → invoice(id)
- checkout_session_tax_rate(tax_rate_id) → tax_rate(id)
- checkout_session_tax_rate(checkout_session_id) → checkout_session(id)
- invoice_item(plan_id) → plan(id)
- invoice_item(price_id) → price(id)
- invoice_item(customer_id) → customer(id)
- invoice_item(invoice_id) → invoice(id)
- invoice_item(subscription_id) → subscription_history(id)
- invoice_item(subscription_item_id) → subscription_item(id)
- phase_plan(subscription_schedule_id) → subscription_schedule(id)
- phase_plan(plan_id) → plan(id)
- subscription_discount(coupon_id) → coupon(id)
- subscription_discount(invoice_item_id) → invoice_item(id)
- subscription_discount(customer_id) → customer(id)
- subscription_discount(invoice_id) → invoice(id)
- subscription_item(plan_id) → plan(id)
- subscription_item(subscription_id) → subscription_history(id)
- source(connected_account_id) → account(id)
- source(customer_id) → customer(id)
- checkout_session_shipping_option(checkout_session_id) → checkout_session(id)
- checkout_session_shipping_option(shipping_rate_id) → shipping_rate(id)
- credit_note_line_item_tax_rate(credit_note_id) → credit_note(id)
- credit_note_line_item_tax_rate(tax_rate_id) → tax_rate(id)
- credit_note_line_item_tax_rate(credit_note_line_item_id) → credit_note_line_item(id)
- early_fraud_warning(charge_id) → charge(id)
- price(invoice_item_id) → invoice_item(id)
- price(product_id) → product(id)
- upcoming_invoice_tax_rate(tax_rate_id) → tax_rate(id)
- upcoming_invoice_tax_rate(subscription) → subscription_history(id)
- promotion_code(coupon_id) → coupon(id)
- promotion_code(customer_id) → customer(id)
- cash_balance_transaction(customer_id) → customer(id)
- checkout_session_line_item(checkout_session_id) → checkout_session(id)
- checkout_session_line_item(price_id) → price(id)
- customer_tax(owner_account_id) → account(id)
- customer_tax(owner_customer_id) → customer(id)
- customer_tax(customer_id) → customer(id)
- customer_balance_transaction(customer_id) → customer(id)
- customer_balance_transaction(invoice_id) → invoice(id)
- coupon_product(coupon_id) → coupon(id)
- coupon_product(product_id) → product(id)
- sepa_debit(payment_method_id) → payment_method(id)
- checkout_session_line_item_discount(checkout_session_line_item_id) → checkout_session_line_item(id)
- checkout_session_line_item_discount(coupon_id) → coupon(id)
- checkout_session_line_item_discount(customer_id) → customer(id)
- checkout_session_line_item_discount(subscription_id) → subscription_history(id)
- checkout_session_line_item_discount(invoice_id) → invoice(id)
- checkout_session_line_item_discount(invoice_item_id) → invoice_item(id)
- credit_grant(customer_account) → account(id)
- credit_grant(customer_id) → customer(id)
- payment_method(customer_id) → customer(id)
- quote_computed_upfront_line_item(quote_id) → quote(id)
- quote_computed_upfront_line_item(price_id) → price(id)
- transaction(authorization_id) → authorization(id)
- transaction(balance_transaction_id) → balance_transaction(id)
- transaction(card_id) → card(id)
- transaction(dispute_id) → dispute(id)
- phase(subscription_schedule_id) → subscription_schedule(id)
- setup_attempt(on_behalf_of) → account(id)
- setup_attempt(default_payment_method_id) → payment_method(id)
- setup_attempt(setup_intent_id) → setup_intent(id)
- credit_note(customer_balance_transaction_id) → customer_balance_transaction(id)
- credit_note(customer_id) → customer(id)
- credit_note(invoice_id) → invoice(id)
- credit_note(refund_id) → refund(id)
- invoice_line_item(invoice_id) → invoice(id)
- invoice_line_item(plan_id) → plan(id)
- invoice_line_item(price_id) → price(id)
- invoice_line_item(subscription_id) → subscription_history(id)
- invoice_line_item(subscription_item_id) → subscription_item(id)
- upcoming_invoice_line_item(plan_id) → plan(id)
- upcoming_invoice_line_item(price_id) → price(id)
- upcoming_invoice_line_item(subscription_id) → subscription_history(id)
- upcoming_invoice_line_item(customer_id) → customer(id)
- upcoming_invoice_line_item(subscription_item_id) → subscription_item(id)
- application_fee_refund(balance_transaction_id) → balance_transaction(id)
- application_fee_refund(application_fee_id) → application_fee(id)
- capability(account_id) → account(id)
- fpx(payment_method_id) → payment_method(id)
- review(charge_id) → charge(id)
- review(payment_intent_id) → payment_intent(id)
- invoice_line_item_tax_rate(invoice_id) → invoice(id)
- invoice_line_item_tax_rate(tax_rate_id) → tax_rate(id)
- invoice_line_item_tax_rate(invoice_line_item) → invoice_line_item(unique_id)
- checkout_session_line_item_tax_rate(tax_rate_id) → tax_rate(id)
- checkout_session_line_item_tax_rate(checkout_session_line_item_id) → checkout_session_line_item(id)
- subscription_tax_rate(subscription_id) → subscription_history(id)
- subscription_tax_rate(tax_rate_id) → tax_rate(id)
- apple_pay_domain(connected_account_id) → account(id)
- payment_link_custom_field_dropdown_option(key) → payment_link_custom_field(payment_link_id)
- payment_link_custom_field_dropdown_option(payment_link_id) → payment_link(id)
- payment_method_card(payment_method_id) → payment_method(id)
- payment_method_card(charge_id) → charge(id)
- usage_record(subscription_item_id) → subscription_item(id)
- payment_link_shipping_option(payment_link_id) → payment_link(id)
- payment_link_shipping_option(shipping_rate_id) → shipping_rate(id)
- order_return_item(order_return_id) → order_return(id)
- order_return_item(sku_id) → sku(id)
- order_return_item(discount_id) → discount(id)
- upcoming_invoice_account_tax_id(subscription_id) → subscription_history(id)
- issuing_card(connected_account_id) → account(id)
- issuing_card(cardholder_id) → cardholder(id)
- payout(connected_account_id) → account(id)
- payout(destination_bank_account_id) → bank_account(id)
- payout(destination_card_id) → card(id)
- payout(balance_transaction_id) → balance_transaction(id)
- payout(failure_balance_transaction_id) → balance_transaction(id)
- fee(balance_transaction_id) → balance_transaction(id)
- fee(connected_account_id) → account(id)
- file_link(file_id) → file(id)
- payment_link_invoice_creation_invoice_data_account_tax(payment_link_id) → payment_link(id)
- invoice_account_tax_id(invoice_id) → invoice(id)
- subscription_schedule(customer_id) → customer(id)
- subscription_schedule(subscription_id) → subscription_history(id)
- card(connected_account_id) → account(id)
- card(account_id) → account(id)
- card(customer_id) → customer(id)
- payment_method_card_present(payment_method_id) → payment_method(id)
- application_fee(originating_transaction) → charge(id)
- application_fee(account_id) → account(id)
- application_fee(balance_transaction_id) → balance_transaction(id)
- application_fee(charge_id) → charge(id)
- ideal(payment_method_id) → payment_method(id)
- upcoming_invoice_custom_field(subscription) → subscription_history(id)
- bank_account(connected_account_id) → account(id)
- bank_account(customer_id) → customer(id)
- plan(product_id) → product(id)
- invoice(charge_id) → charge(id)
- invoice(customer_id) → customer(id)
- invoice(default_source_id) → source(id)
- invoice(default_payment_method_id) → payment_method(id)
- invoice(payment_intent_id) → payment_intent(id)
- invoice(subscription_id) → subscription_history(id)
- payment_intent(connected_account_id) → account(id)
- payment_intent(last_payment_error_source_id) → source(id)
- payment_intent(last_payment_error_charge_id) → charge(id)
- payment_intent(on_behalf_of) → account(id)
- payment_intent(transfer_data_destination) → account(id)
- payment_intent(payment_method_id) → payment_method(id)
- payment_intent(customer_id) → customer(id)
- payment_intent(source_id) → source(id)
- quote_line_item(quote_id) → quote(id)
- quote_line_item(price_id) → price(id)
- billing_meter_event_summary(customer_id) → customer(id)
- billing_meter_event_summary(subscription_item_id) → subscription_item(id)
- billing_meter_event_summary(meter_id) → billing_meter(id)
- tax_amount(tax_rate_id) → tax_rate(id)
- charge_payment_method_details(charge_id) → charge(id)
- transfer(destination) → account(id)
- transfer(source_transaction) → charge(id)
- transfer(source_transaction_id) → charge(id)
- transfer(balance_transaction_id) → balance_transaction(id)
- credit_grant_applicability_config_scope_prices(credit_grant_id) → credit_grant(id)
- credit_grant_applicability_config_scope_prices(id) → price(id)
- payment_link_custom_field(payment_link_id) → payment_link(id)
- invoice_tax_rate(invoice_id) → invoice(id)
- invoice_tax_rate(tax_rate_id) → tax_rate(id)
- payment_link_payment_method_type(payment_link_id) → payment_link(id)
- au_becs_debit(payment_method_id) → payment_method(id)
- credit_note_line_item(credit_note_id) → credit_note(id)
- invoice_line_item_proration_details_credited_item(invoice_line_item) → invoice_line_item(unique_id)
- invoice_line_item_proration_details_credited_item(invoice_id) → invoice(id)
- topup(source_id) → source(id)
- topup(balance_transaction_id) → balance_transaction(id)
- balance_transaction(connected_account_id) → account(id)
- balance_transaction(payout_id) → payout(id)
- dispute(connected_account_id) → account(id)
- dispute(charge_id) → charge(id)

- charge(source_transfer) → transfer(id)
- charge(transfer_data_destination) → account(id)
- charge(balance_transaction_id) → balance_transaction(id)
- charge(customer_id) → customer(id)
- charge(failure_balance_transaction_id) → balance_transaction(id)
- charge(invoice_id) → invoice(id)
- charge(payment_intent_id) → payment_intent(id)
- charge(payment_method_id) → payment_method(id)
- charge(transfer_id) → transfer(id)
- payment_intent(connected_account_id) → account(id)
- payment_intent(last_payment_error_source_id) → source(id)
- payment_intent(last_payment_error_charge_id) → charge(id)
- payment_intent(on_behalf_of) → account(id)
- payment_intent(transfer_data_destination) → account(id)
- payment_intent(payment_method_id) → payment_method(id)
- payment_intent(customer_id) → customer(id)
- payment_intent(latest_charge_id) → charge(id)
- payment_intent(source_id) → source(id)
