---
title: Stripe
description: Połącz Stripe, poznaj sposób synchronizacji i wysyłaj zapytania do wszystkich zapisywanych tabel i kolumn.
species: reference
---
# Stripe

Połącz Stripe za pomocą klucza z ograniczonym dostępem, który ma uprawnienia do odczytu wybranych zasobów. Źródło zapisuje 17 stałych tabel w schemacie `titan.stripe`.
```sql
select
  id,
  amount,
  available_on
from titan.stripe.balance_transactions
limit 10
```

## Połącz Stripe

1. Otwórz **Aplikacje**, wybierz **Połącz aplikację**, a następnie **Stripe**.
2. Podaj klucz z ograniczonym dostępem, który ma uprawnienia do odczytu wybranych zasobów.
3. Sprawdź tabele, a następnie zapisz źródło.
4. Obserwuj **Historię synchronizacji**, aż pierwsze uruchomienie się zakończy.

Dane uwierzytelniające są przechowywane jako sekrety. Nigdy nie stają się kolumnami jeziora ani nie pojawiają się w wynikach zapytań.

## Sposób synchronizacji

Kwoty są liczbami całkowitymi wyrażonymi w najmniejszych jednostkach waluty, pole `livemode` rozróżnia dane produkcyjne i testowe, a usunięte obiekty pozostają widoczne dzięki polu `_deleted`. Aktualizacje oparte na zdarzeniach wracają do pobierania pełnej listy, gdy zapisany kursor ma więcej niż 27 dni.

Nowe źródło synchronizuje się po połączeniu, a następnie zgodnie z harmonogramem. Domyślny interwał cykliczny wynosi 4 godziny. Przerwane uruchomienie zachowuje ukończone postępy i jest bezpiecznie ponawiane.

Każda tabela jeziora ma też [kolumny systemowe](/docs/concepts/your-lake#kolumny-systemowe) `_synced_at` i `_deleted`; poniższa dokumentacja kolumn obejmuje wyłącznie kolumny źródłowe.

## Dokumentacja tabel

### `balance_transactions`

`titan.stripe.balance_transactions` ma 14 kolumn źródłowych.

```columns table=stripe.balance_transactions
id                                      string pk           Pole źródłowe `id`.
amount                                  integer             Pole źródłowe `amount`.
available_on                            datetime            Pole źródłowe `availableOn`.
created_at                              datetime            Pole źródłowe `createdAt`.
currency                                string              Pole źródłowe `currency`.
description                             string              Pole źródłowe `description`.
exchange_rate                           float               Pole źródłowe `exchangeRate`.
fee                                     integer             Pole źródłowe `fee`.
fee_details                             json                Pole źródłowe `feeDetails`.
net                                     integer             Pole źródłowe `net`.
reporting_category                      string              Pole źródłowe `reportingCategory`.
status                                  string              Pole źródłowe `status`.
type                                    string              Pole źródłowe `type`.
source                                  string              Pole źródłowe `source`.
```

### `coupons`

`titan.stripe.coupons` ma 16 kolumn źródłowych.

```columns table=stripe.coupons
id                                      string pk           Pole źródłowe `id`.
created_at                              datetime            Pole źródłowe `createdAt`.
amount_off                              integer             Pole źródłowe `amountOff`.
currency                                string              Pole źródłowe `currency`.
duration                                string              Pole źródłowe `duration`.
duration_in_months                      integer             Pole źródłowe `durationInMonths`.
metadata                                json                Pole źródłowe `metadata`.
name                                    string              Pole źródłowe `name`.
percent_off                             float               Pole źródłowe `percentOff`.
applies_to                              json                Pole źródłowe `appliesTo`.
currency_options                        json                Pole źródłowe `currencyOptions`.
livemode                                boolean             Pole źródłowe `livemode`.
max_redemptions                         integer             Pole źródłowe `maxRedemptions`.
redeem_by                               datetime            Pole źródłowe `redeemBy`.
times_redeemed                          integer             Pole źródłowe `timesRedeemed`.
valid                                   boolean             Pole źródłowe `valid`.
```

### `customers`

`titan.stripe.customers` ma 26 kolumn źródłowych.

```columns table=stripe.customers
id                                      string pk           Pole źródłowe `id`.
created_at                              datetime            Pole źródłowe `createdAt`.
address                                 json                Pole źródłowe `address`.
description                             string              Pole źródłowe `description`.
email                                   string              Pole źródłowe `email`.
metadata                                json                Pole źródłowe `metadata`.
name                                    string              Pole źródłowe `name`.
phone                                   string              Pole źródłowe `phone`.
shipping                                json                Pole źródłowe `shipping`.
tax                                     json                Pole źródłowe `tax`.
balance                                 integer             Pole źródłowe `balance`.
cash_balance                            json                Pole źródłowe `cashBalance`.
currency                                string              Pole źródłowe `currency`.
default_source                          string              Pole źródłowe `defaultSource`.
delinquent                              boolean             Pole źródłowe `delinquent`.
discount                                json                Pole źródłowe `discount`.
invoice_credit_balance                  json                Pole źródłowe `invoiceCreditBalance`.
invoice_prefix                          string              Pole źródłowe `invoicePrefix`.
invoice_settings                        json                Pole źródłowe `invoiceSettings`.
livemode                                boolean             Pole źródłowe `livemode`.
next_invoice_sequence                   integer             Pole źródłowe `nextInvoiceSequence`.
preferred_locales                       json                Pole źródłowe `preferredLocales`.
sources                                 json                Pole źródłowe `sources`.
tax_exempt                              string              Pole źródłowe `taxExempt`.
tax_ids                                 json                Pole źródłowe `taxIds`.
test_clock                              string              Pole źródłowe `testClock`.
```

### `customer_balance_transactions`

`titan.stripe.customer_balance_transactions` ma 13 kolumn źródłowych.

```columns table=stripe.customer_balance_transactions
id                                      string pk           Pole źródłowe `id`.
customer_id                             string              Pole źródłowe `customerId`.
amount                                  integer             Pole źródłowe `amount`.
currency                                string              Pole źródłowe `currency`.
description                             string              Pole źródłowe `description`.
ending_balance                          integer             Pole źródłowe `endingBalance`.
metadata                                json                Pole źródłowe `metadata`.
type                                    string              Pole źródłowe `type`.
checkout_session_id                     string              Pole źródłowe `checkoutSessionId`.
created_at                              datetime            Pole źródłowe `createdAt`.
credit_note_id                          string              Pole źródłowe `creditNoteId`.
invoice_id                              string              Pole źródłowe `invoiceId`.
livemode                                boolean             Pole źródłowe `livemode`.
```

### `invoices`

`titan.stripe.invoices` ma 70 kolumn źródłowych.

```columns table=stripe.invoices
id                                      string pk           Pole źródłowe `id`.
customer_id                             string              Pole źródłowe `customerId`.
created_at                              datetime            Pole źródłowe `createdAt`.
auto_advance                            boolean             Pole źródłowe `autoAdvance`.
automatic_tax                           json                Pole źródłowe `automaticTax`.
collection_method                       string              Pole źródłowe `collectionMethod`.
currency                                string              Pole źródłowe `currency`.
description                             string              Pole źródłowe `description`.
hosted_invoice_url                      string              Pole źródłowe `hostedInvoiceUrl`.
metadata                                json                Pole źródłowe `metadata`.
parent                                  json                Pole źródłowe `parent`.
period_start                            datetime            Pole źródłowe `periodStart`.
period_end                              datetime            Pole źródłowe `periodEnd`.
status                                  string              Pole źródłowe `status`.
total                                   integer             Pole źródłowe `total`.
account_country                         string              Pole źródłowe `accountCountry`.
account_name                            string              Pole źródłowe `accountName`.
account_tax_ids                         json                Pole źródłowe `accountTaxIds`.
amount_due                              integer             Pole źródłowe `amountDue`.
amount_overpaid                         integer             Pole źródłowe `amountOverpaid`.
amount_paid                             integer             Pole źródłowe `amountPaid`.
amount_remaining                        integer             Pole źródłowe `amountRemaining`.
amount_shipping                         integer             Pole źródłowe `amountShipping`.
attempt_count                           integer             Pole źródłowe `attemptCount`.
attempted                               boolean             Pole źródłowe `attempted`.
automatically_finalizes_at              datetime            Pole źródłowe `automaticallyFinalizesAt`.
billing_reason                          string              Pole źródłowe `billingReason`.
custom_fields                           json                Pole źródłowe `customFields`.
customer_address                        json                Pole źródłowe `customerAddress`.
customer_email                          string              Pole źródłowe `customerEmail`.
customer_name                           string              Pole źródłowe `customerName`.
customer_phone                          string              Pole źródłowe `customerPhone`.
customer_shipping                       json                Pole źródłowe `customerShipping`.
customer_tax_exempt                     string              Pole źródłowe `customerTaxExempt`.
customer_tax_ids                        json                Pole źródłowe `customerTaxIds`.
default_payment_method                  string              Pole źródłowe `defaultPaymentMethod`.
default_source                          string              Pole źródłowe `defaultSource`.
default_tax_rates                       json                Pole źródłowe `defaultTaxRates`.
discounts                               json                Pole źródłowe `discounts`.
due_date                                datetime            Pole źródłowe `dueDate`.
effective_at                            datetime            Pole źródłowe `effectiveAt`.
ending_balance                          integer             Pole źródłowe `endingBalance`.
footer                                  string              Pole źródłowe `footer`.
from_invoice                            json                Pole źródłowe `fromInvoice`.
invoice_pdf                             string              Pole źródłowe `invoicePdf`.
last_finalization_error                 json                Pole źródłowe `lastFinalizationError`.
latest_revision                         string              Pole źródłowe `latestRevision`.
livemode                                boolean             Pole źródłowe `livemode`.
next_payment_attempt                    datetime            Pole źródłowe `nextPaymentAttempt`.
number                                  string              Pole źródłowe `number`.
payment_settings                        json                Pole źródłowe `paymentSettings`.
payments                                json                Pole źródłowe `payments`.
post_payment_credit_notes_amount        integer             Pole źródłowe `postPaymentCreditNotesAmount`.
pre_payment_credit_notes_amount         integer             Pole źródłowe `prePaymentCreditNotesAmount`.
receipt_number                          string              Pole źródłowe `receiptNumber`.
rendering                               json                Pole źródłowe `rendering`.
shipping_cost                           json                Pole źródłowe `shippingCost`.
shipping_details                        json                Pole źródłowe `shippingDetails`.
starting_balance                        integer             Pole źródłowe `startingBalance`.
statement_descriptor                    string              Pole źródłowe `statementDescriptor`.
status_transitions                      json                Pole źródłowe `statusTransitions`.
subtotal                                integer             Pole źródłowe `subtotal`.
subtotal_excluding_tax                  integer             Pole źródłowe `subtotalExcludingTax`.
test_clock                              string              Pole źródłowe `testClock`.
threshold_reason                        json                Pole źródłowe `thresholdReason`.
total_discount_amounts                  json                Pole źródłowe `totalDiscountAmounts`.
total_excluding_tax                     integer             Pole źródłowe `totalExcludingTax`.
total_pretax_credit_amounts             json                Pole źródłowe `totalPretaxCreditAmounts`.
total_taxes                             json                Pole źródłowe `totalTaxes`.
webhooks_delivered_at                   datetime            Pole źródłowe `webhooksDeliveredAt`.
```

### `invoice_discounts`

`titan.stripe.invoice_discounts` ma 9 kolumn źródłowych.

```columns table=stripe.invoice_discounts
id                                      string pk           Pole źródłowe `id`.
invoice_id                              string pk           Pole źródłowe `invoiceId`.
invoice_item_id                         string              Pole źródłowe `invoiceItemId`.
customer_id                             string              Pole źródłowe `customerId`.
subscription_id                         string              Pole źródłowe `subscriptionId`.
coupon                                  json                Pole źródłowe `coupon`.
start                                   datetime            Pole źródłowe `start`.
end                                     datetime            Pole źródłowe `end`.
checkout_session                        string              Pole źródłowe `checkoutSession`.
```

### `invoice_items`

`titan.stripe.invoice_items` ma 21 kolumn źródłowych.

```columns table=stripe.invoice_items
id                                      string pk           Pole źródłowe `id`.
invoice_id                              string              Pole źródłowe `invoiceId`.
customer_id                             string              Pole źródłowe `customerId`.
subscription_id                         string              Pole źródłowe `subscriptionId`.
created_at                              datetime            Pole źródłowe `createdAt`.
amount                                  integer             Pole źródłowe `amount`.
currency                                string              Pole źródłowe `currency`.
description                             string              Pole źródłowe `description`.
metadata                                json                Pole źródłowe `metadata`.
parent                                  json                Pole źródłowe `parent`.
period_start                            datetime            Pole źródłowe `periodStart`.
period_end                              datetime            Pole źródłowe `periodEnd`.
pricing                                 json                Pole źródłowe `pricing`.
proration                               boolean             Pole źródłowe `proration`.
date                                    datetime            Pole źródłowe `date`.
discountable                            boolean             Pole źródłowe `discountable`.
discounts                               json                Pole źródłowe `discounts`.
livemode                                boolean             Pole źródłowe `livemode`.
quantity                                integer             Pole źródłowe `quantity`.
tax_rates                               json                Pole źródłowe `taxRates`.
test_clock                              string              Pole źródłowe `testClock`.
```

### `invoice_line_items`

`titan.stripe.invoice_line_items` ma 19 kolumn źródłowych.

```columns table=stripe.invoice_line_items
id                                      string pk           Pole źródłowe `id`.
invoice_id                              string              Pole źródłowe `invoiceId`.
amount                                  integer             Pole źródłowe `amount`.
currency                                string              Pole źródłowe `currency`.
description                             string              Pole źródłowe `description`.
metadata                                json                Pole źródłowe `metadata`.
parent                                  json                Pole źródłowe `parent`.
period_start                            datetime            Pole źródłowe `periodStart`.
period_end                              datetime            Pole źródłowe `periodEnd`.
pricing                                 json                Pole źródłowe `pricing`.
quantity                                integer             Pole źródłowe `quantity`.
discount_amounts                        json                Pole źródłowe `discountAmounts`.
discountable                            boolean             Pole źródłowe `discountable`.
discounts                               json                Pole źródłowe `discounts`.
livemode                                boolean             Pole źródłowe `livemode`.
pretax_credit_amounts                   json                Pole źródłowe `pretaxCreditAmounts`.
taxes                                   json                Pole źródłowe `taxes`.
unique_id                               string              Pole źródłowe `uniqueId`.
unique_line_item_id                     string              Pole źródłowe `uniqueLineItemId`.
```

### `events`

`titan.stripe.events` ma 4 kolumny źródłowe.

```columns table=stripe.events
id                                      string pk           Pole źródłowe `id`.
type                                    string              Pole źródłowe `type`.
data                                    json                Pole źródłowe `data`.
created_at                              datetime            Pole źródłowe `createdAt`.
```

### `charges`

`titan.stripe.charges` ma 36 kolumn źródłowych.

```columns table=stripe.charges
id                                      string pk           Pole źródłowe `id`.
created_at                              datetime            Pole źródłowe `createdAt`.
amount                                  integer             Pole źródłowe `amount`.
balance_transaction_id                  string              Pole źródłowe `balanceTransactionId`.
customer_id                             string              Pole źródłowe `customerId`.
billing_details                         json                Pole źródłowe `billingDetails`.
currency                                string              Pole źródłowe `currency`.
description                             string              Pole źródłowe `description`.
disputed                                boolean             Pole źródłowe `disputed`.
metadata                                json                Pole źródłowe `metadata`.
payment_intent_id                       string              Pole źródłowe `paymentIntentId`.
payment_method_details                  json                Pole źródłowe `paymentMethodDetails`.
receipt_email                           string              Pole źródłowe `receiptEmail`.
refunded                                boolean             Pole źródłowe `refunded`.
shipping                                json                Pole źródłowe `shipping`.
statement_descriptor                    string              Pole źródłowe `statementDescriptor`.
statement_descriptor_suffix             string              Pole źródłowe `statementDescriptorSuffix`.
status                                  string              Pole źródłowe `status`.
amount_captured                         integer             Pole źródłowe `amountCaptured`.
amount_refunded                         integer             Pole źródłowe `amountRefunded`.
calculated_statement_descriptor         string              Pole źródłowe `calculatedStatementDescriptor`.
captured                                boolean             Pole źródłowe `captured`.
failure_balance_transaction_id          string              Pole źródłowe `failureBalanceTransactionId`.
failure_code                            string              Pole źródłowe `failureCode`.
failure_message                         string              Pole źródłowe `failureMessage`.
fraud_details                           json                Pole źródłowe `fraudDetails`.
livemode                                boolean             Pole źródłowe `livemode`.
outcome                                 json                Pole źródłowe `outcome`.
paid                                    boolean             Pole źródłowe `paid`.
payment_method_id                       string              Pole źródłowe `paymentMethodId`.
presentment_details                     json                Pole źródłowe `presentmentDetails`.
radar_options                           json                Pole źródłowe `radarOptions`.
receipt_number                          string              Pole źródłowe `receiptNumber`.
receipt_url                             string              Pole źródłowe `receiptUrl`.
refunds                                 json                Pole źródłowe `refunds`.
review                                  string              Pole źródłowe `review`.
```

### `payment_methods`

`titan.stripe.payment_methods` ma 6 kolumn źródłowych.

```columns table=stripe.payment_methods
id                                      string pk           Pole źródłowe `id`.
customer_id                             string              Pole źródłowe `customerId`.
created_at                              datetime            Pole źródłowe `createdAt`.
billing_details                         json                Pole źródłowe `billingDetails`.
metadata                                json                Pole źródłowe `metadata`.
type                                    string              Pole źródłowe `type`.
```

### `payment_intents`

`titan.stripe.payment_intents` ma 29 kolumn źródłowych.

```columns table=stripe.payment_intents
id                                      string pk           Pole źródłowe `id`.
amount                                  integer             Pole źródłowe `amount`.
currency                                string              Pole źródłowe `currency`.
created_at                              datetime            Pole źródłowe `createdAt`.
customer_id                             string              Pole źródłowe `customerId`.
description                             string              Pole źródłowe `description`.
latest_charge                           string              Pole źródłowe `latestCharge`.
metadata                                json                Pole źródłowe `metadata`.
next_action                             json                Pole źródłowe `nextAction`.
payment_method_id                       string              Pole źródłowe `paymentMethodId`.
receipt_email                           string              Pole źródłowe `receiptEmail`.
setup_future_usage                      string              Pole źródłowe `setupFutureUsage`.
shipping                                json                Pole źródłowe `shipping`.
statement_descriptor                    string              Pole źródłowe `statementDescriptor`.
statement_descriptor_suffix             string              Pole źródłowe `statementDescriptorSuffix`.
status                                  string              Pole źródłowe `status`.
amount_capturable                       integer             Pole źródłowe `amountCapturable`.
amount_details                          json                Pole źródłowe `amountDetails`.
amount_received                         integer             Pole źródłowe `amountReceived`.
canceled_at                             datetime            Pole źródłowe `canceledAt`.
cancellation_reason                     string              Pole źródłowe `cancellationReason`.
capture_method                          string              Pole źródłowe `captureMethod`.
confirmation_method                     string              Pole źródłowe `confirmationMethod`.
livemode                                boolean             Pole źródłowe `livemode`.
payment_method_configuration_details    json                Pole źródłowe `paymentMethodConfigurationDetails`.
payment_method_options                  json                Pole źródłowe `paymentMethodOptions`.
presentment_details                     json                Pole źródłowe `presentmentDetails`.
processing                              json                Pole źródłowe `processing`.
review_id                               string              Pole źródłowe `reviewId`.
```

### `subscriptions`

`titan.stripe.subscriptions` ma 38 kolumn źródłowych.

```columns table=stripe.subscriptions
id                                      string pk           Pole źródłowe `id`.
automatic_tax                           json                Pole źródłowe `automaticTax`.
currency                                string              Pole źródłowe `currency`.
customer_id                             string              Pole źródłowe `customerId`.
created_at                              datetime            Pole źródłowe `createdAt`.
ended_at                                datetime            Pole źródłowe `endedAt`.
default_payment_method                  string              Pole źródłowe `defaultPaymentMethod`.
description                             string              Pole źródłowe `description`.
latest_invoice                          string              Pole źródłowe `latestInvoice`.
metadata                                json                Pole źródłowe `metadata`.
pending_setup_intent                    string              Pole źródłowe `pendingSetupIntent`.
pending_update                          json                Pole źródłowe `pendingUpdate`.
status                                  string              Pole źródłowe `status`.
billing_cycle_anchor                    datetime            Pole źródłowe `billingCycleAnchor`.
billing_cycle_anchor_config             json                Pole źródłowe `billingCycleAnchorConfig`.
billing_mode                            json                Pole źródłowe `billingMode`.
billing_thresholds                      json                Pole źródłowe `billingThresholds`.
cancel_at                               datetime            Pole źródłowe `cancelAt`.
cancel_at_period_end                    boolean             Pole źródłowe `cancelAtPeriodEnd`.
canceled_at                             datetime            Pole źródłowe `canceledAt`.
cancellation_details                    json                Pole źródłowe `cancellationDetails`.
collection_method                       string              Pole źródłowe `collectionMethod`.
days_until_due                          integer             Pole źródłowe `daysUntilDue`.
default_source                          string              Pole źródłowe `defaultSource`.
default_tax_rates                       json                Pole źródłowe `defaultTaxRates`.
discounts                               json                Pole źródłowe `discounts`.
invoice_settings                        json                Pole źródłowe `invoiceSettings`.
livemode                                boolean             Pole źródłowe `livemode`.
next_pending_invoice_item_invoice       datetime            Pole źródłowe `nextPendingInvoiceItemInvoice`.
pause_collection                        json                Pole źródłowe `pauseCollection`.
payment_settings                        json                Pole źródłowe `paymentSettings`.
pending_invoice_item_interval           json                Pole źródłowe `pendingInvoiceItemInterval`.
schedule                                string              Pole źródłowe `schedule`.
start_date                              datetime            Pole źródłowe `startDate`.
test_clock                              string              Pole źródłowe `testClock`.
trial_end                               datetime            Pole źródłowe `trialEnd`.
trial_settings                          json                Pole źródłowe `trialSettings`.
trial_start                             datetime            Pole źródłowe `trialStart`.
```

### `subscription_items`

`titan.stripe.subscription_items` ma 11 kolumn źródłowych.

```columns table=stripe.subscription_items
id                                      string pk           Pole źródłowe `id`.
metadata                                json                Pole źródłowe `metadata`.
price                                   json                Pole źródłowe `price`.
quantity                                integer             Pole źródłowe `quantity`.
subscription_id                         string              Pole źródłowe `subscriptionId`.
created_at                              datetime            Pole źródłowe `createdAt`.
billing_thresholds                      json                Pole źródłowe `billingThresholds`.
current_period_start                    datetime            Pole źródłowe `currentPeriodStart`.
current_period_end                      datetime            Pole źródłowe `currentPeriodEnd`.
discounts                               json                Pole źródłowe `discounts`.
tax_rates                               json                Pole źródłowe `taxRates`.
```

### `plans`

`titan.stripe.plans` ma 19 kolumn źródłowych.

```columns table=stripe.plans
id                                      string pk           Pole źródłowe `id`.
created_at                              datetime            Pole źródłowe `createdAt`.
active                                  boolean             Pole źródłowe `active`.
currency                                string              Pole źródłowe `currency`.
interval                                string              Pole źródłowe `interval`.
interval_count                          integer             Pole źródłowe `intervalCount`.
metadata                                json                Pole źródłowe `metadata`.
nickname                                string              Pole źródłowe `nickname`.
product_id                              string              Pole źródłowe `productId`.
trial_period_days                       integer             Pole źródłowe `trialPeriodDays`.
aggregate_usage                         string              Pole źródłowe `aggregateUsage`.
amount_decimal                          float               Pole źródłowe `amountDecimal`.
billing_scheme                          string              Pole źródłowe `billingScheme`.
livemode                                boolean             Pole źródłowe `livemode`.
meter                                   string              Pole źródłowe `meter`.
tiers                                   json                Pole źródłowe `tiers`.
tiers_mode                              string              Pole źródłowe `tiersMode`.
transform_usage                         json                Pole źródłowe `transformUsage`.
usage_type                              string              Pole źródłowe `usageType`.
```

### `prices`

`titan.stripe.prices` ma 20 kolumn źródłowych.

```columns table=stripe.prices
id                                      string pk           Pole źródłowe `id`.
created_at                              datetime            Pole źródłowe `createdAt`.
active                                  boolean             Pole źródłowe `active`.
currency                                string              Pole źródłowe `currency`.
metadata                                json                Pole źródłowe `metadata`.
nickname                                string              Pole źródłowe `nickname`.
product_id                              string              Pole źródłowe `productId`.
recurring                               json                Pole źródłowe `recurring`.
tax_behavior                            string              Pole źródłowe `taxBehavior`.
type                                    string              Pole źródłowe `type`.
unit_amount                             integer             Pole źródłowe `unitAmount`.
billing_scheme                          string              Pole źródłowe `billingScheme`.
currency_options                        json                Pole źródłowe `currencyOptions`.
custom_unit_amount                      json                Pole źródłowe `customUnitAmount`.
livemode                                boolean             Pole źródłowe `livemode`.
lookup_key                              string              Pole źródłowe `lookupKey`.
tiers                                   json                Pole źródłowe `tiers`.
tiers_mode                              string              Pole źródłowe `tiersMode`.
transform_quantity                      json                Pole źródłowe `transformQuantity`.
unit_amount_decimal                     float               Pole źródłowe `unitAmountDecimal`.
```

### `refunds`

`titan.stripe.refunds` ma 19 kolumn źródłowych.

```columns table=stripe.refunds
id                                      string pk           Pole źródłowe `id`.
amount                                  integer             Pole źródłowe `amount`.
created_at                              datetime            Pole źródłowe `createdAt`.
charge_id                               string              Pole źródłowe `chargeId`.
currency                                string              Pole źródłowe `currency`.
description                             string              Pole źródłowe `description`.
metadata                                json                Pole źródłowe `metadata`.
payment_intent_id                       string              Pole źródłowe `paymentIntentId`.
reason                                  string              Pole źródłowe `reason`.
status                                  string              Pole źródłowe `status`.
balance_transaction_id                  string              Pole źródłowe `balanceTransactionId`.
destination_details                     json                Pole źródłowe `destinationDetails`.
failure_balance_transaction_id          string              Pole źródłowe `failureBalanceTransactionId`.
failure_reason                          string              Pole źródłowe `failureReason`.
instructions_email                      string              Pole źródłowe `instructionsEmail`.
next_action                             json                Pole źródłowe `nextAction`.
pending_reason                          string              Pole źródłowe `pendingReason`.
receipt_number                          string              Pole źródłowe `receiptNumber`.
refund_application_fee                  boolean             Pole źródłowe `refundApplicationFee`.
```

## Usunięcia i historia

Wiersze są scalane według klucza źródłowego. Gdy źródło może potwierdzić usunięcie wiersza, Supernova zachowuje go i ustawia `_deleted`, dzięki czemu zapytania mogą zdecydować, czy uwzględniać historię. Aby pobierać bieżący stan, filtruj zapytania przez `where not _deleted`.
