Menu dokumentacji

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 _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.

stripe.balance_transactions14 kolumn
idstringpk

Pole źródłowe id.

amountinteger

Pole źródłowe amount.

available_ondatetime

Pole źródłowe availableOn.

created_atdatetime

Pole źródłowe createdAt.

currencystring

Pole źródłowe currency.

descriptionstring

Pole źródłowe description.

exchange_ratefloat

Pole źródłowe exchangeRate.

feeinteger

Pole źródłowe fee.

fee_detailsjson

Pole źródłowe feeDetails.

netinteger

Pole źródłowe net.

reporting_categorystring

Pole źródłowe reportingCategory.

statusstring

Pole źródłowe status.

typestring

Pole źródłowe type.

sourcestring

Pole źródłowe source.

coupons#

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

stripe.coupons16 kolumn
idstringpk

Pole źródłowe id.

created_atdatetime

Pole źródłowe createdAt.

amount_offinteger

Pole źródłowe amountOff.

currencystring

Pole źródłowe currency.

durationstring

Pole źródłowe duration.

duration_in_monthsinteger

Pole źródłowe durationInMonths.

metadatajson

Pole źródłowe metadata.

namestring

Pole źródłowe name.

percent_offfloat

Pole źródłowe percentOff.

applies_tojson

Pole źródłowe appliesTo.

currency_optionsjson

Pole źródłowe currencyOptions.

livemodeboolean

Pole źródłowe livemode.

max_redemptionsinteger

Pole źródłowe maxRedemptions.

redeem_bydatetime

Pole źródłowe redeemBy.

times_redeemedinteger

Pole źródłowe timesRedeemed.

validboolean

Pole źródłowe valid.

customers#

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

stripe.customers26 kolumn
idstringpk

Pole źródłowe id.

created_atdatetime

Pole źródłowe createdAt.

addressjson

Pole źródłowe address.

descriptionstring

Pole źródłowe description.

emailstring

Pole źródłowe email.

metadatajson

Pole źródłowe metadata.

namestring

Pole źródłowe name.

phonestring

Pole źródłowe phone.

shippingjson

Pole źródłowe shipping.

taxjson

Pole źródłowe tax.

balanceinteger

Pole źródłowe balance.

cash_balancejson

Pole źródłowe cashBalance.

currencystring

Pole źródłowe currency.

default_sourcestring

Pole źródłowe defaultSource.

delinquentboolean

Pole źródłowe delinquent.

discountjson

Pole źródłowe discount.

invoice_credit_balancejson

Pole źródłowe invoiceCreditBalance.

invoice_prefixstring

Pole źródłowe invoicePrefix.

invoice_settingsjson

Pole źródłowe invoiceSettings.

livemodeboolean

Pole źródłowe livemode.

next_invoice_sequenceinteger

Pole źródłowe nextInvoiceSequence.

preferred_localesjson

Pole źródłowe preferredLocales.

sourcesjson

Pole źródłowe sources.

tax_exemptstring

Pole źródłowe taxExempt.

tax_idsjson

Pole źródłowe taxIds.

test_clockstring

Pole źródłowe testClock.

customer_balance_transactions#

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

stripe.customer_balance_transactions13 kolumn
idstringpk

Pole źródłowe id.

customer_idstring

Pole źródłowe customerId.

amountinteger

Pole źródłowe amount.

currencystring

Pole źródłowe currency.

descriptionstring

Pole źródłowe description.

ending_balanceinteger

Pole źródłowe endingBalance.

metadatajson

Pole źródłowe metadata.

typestring

Pole źródłowe type.

checkout_session_idstring

Pole źródłowe checkoutSessionId.

created_atdatetime

Pole źródłowe createdAt.

credit_note_idstring

Pole źródłowe creditNoteId.

invoice_idstring

Pole źródłowe invoiceId.

livemodeboolean

Pole źródłowe livemode.

invoices#

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

stripe.invoices70 kolumn
idstringpk

Pole źródłowe id.

customer_idstring

Pole źródłowe customerId.

created_atdatetime

Pole źródłowe createdAt.

auto_advanceboolean

Pole źródłowe autoAdvance.

automatic_taxjson

Pole źródłowe automaticTax.

collection_methodstring

Pole źródłowe collectionMethod.

currencystring

Pole źródłowe currency.

descriptionstring

Pole źródłowe description.

hosted_invoice_urlstring

Pole źródłowe hostedInvoiceUrl.

metadatajson

Pole źródłowe metadata.

parentjson

Pole źródłowe parent.

period_startdatetime

Pole źródłowe periodStart.

period_enddatetime

Pole źródłowe periodEnd.

statusstring

Pole źródłowe status.

totalinteger

Pole źródłowe total.

account_countrystring

Pole źródłowe accountCountry.

account_namestring

Pole źródłowe accountName.

account_tax_idsjson

Pole źródłowe accountTaxIds.

amount_dueinteger

Pole źródłowe amountDue.

amount_overpaidinteger

Pole źródłowe amountOverpaid.

amount_paidinteger

Pole źródłowe amountPaid.

amount_remaininginteger

Pole źródłowe amountRemaining.

amount_shippinginteger

Pole źródłowe amountShipping.

attempt_countinteger

Pole źródłowe attemptCount.

attemptedboolean

Pole źródłowe attempted.

automatically_finalizes_atdatetime

Pole źródłowe automaticallyFinalizesAt.

billing_reasonstring

Pole źródłowe billingReason.

custom_fieldsjson

Pole źródłowe customFields.

customer_addressjson

Pole źródłowe customerAddress.

customer_emailstring

Pole źródłowe customerEmail.

customer_namestring

Pole źródłowe customerName.

customer_phonestring

Pole źródłowe customerPhone.

customer_shippingjson

Pole źródłowe customerShipping.

customer_tax_exemptstring

Pole źródłowe customerTaxExempt.

customer_tax_idsjson

Pole źródłowe customerTaxIds.

default_payment_methodstring

Pole źródłowe defaultPaymentMethod.

default_sourcestring

Pole źródłowe defaultSource.

default_tax_ratesjson

Pole źródłowe defaultTaxRates.

discountsjson

Pole źródłowe discounts.

due_datedatetime

Pole źródłowe dueDate.

effective_atdatetime

Pole źródłowe effectiveAt.

ending_balanceinteger

Pole źródłowe endingBalance.

from_invoicejson

Pole źródłowe fromInvoice.

invoice_pdfstring

Pole źródłowe invoicePdf.

last_finalization_errorjson

Pole źródłowe lastFinalizationError.

latest_revisionstring

Pole źródłowe latestRevision.

livemodeboolean

Pole źródłowe livemode.

next_payment_attemptdatetime

Pole źródłowe nextPaymentAttempt.

numberstring

Pole źródłowe number.

payment_settingsjson

Pole źródłowe paymentSettings.

paymentsjson

Pole źródłowe payments.

post_payment_credit_notes_amountinteger

Pole źródłowe postPaymentCreditNotesAmount.

pre_payment_credit_notes_amountinteger

Pole źródłowe prePaymentCreditNotesAmount.

receipt_numberstring

Pole źródłowe receiptNumber.

renderingjson

Pole źródłowe rendering.

shipping_costjson

Pole źródłowe shippingCost.

shipping_detailsjson

Pole źródłowe shippingDetails.

starting_balanceinteger

Pole źródłowe startingBalance.

statement_descriptorstring

Pole źródłowe statementDescriptor.

status_transitionsjson

Pole źródłowe statusTransitions.

subtotalinteger

Pole źródłowe subtotal.

subtotal_excluding_taxinteger

Pole źródłowe subtotalExcludingTax.

test_clockstring

Pole źródłowe testClock.

threshold_reasonjson

Pole źródłowe thresholdReason.

total_discount_amountsjson

Pole źródłowe totalDiscountAmounts.

total_excluding_taxinteger

Pole źródłowe totalExcludingTax.

total_pretax_credit_amountsjson

Pole źródłowe totalPretaxCreditAmounts.

total_taxesjson

Pole źródłowe totalTaxes.

webhooks_delivered_atdatetime

Pole źródłowe webhooksDeliveredAt.

invoice_discounts#

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

stripe.invoice_discounts9 kolumn
idstringpk

Pole źródłowe id.

invoice_idstringpk

Pole źródłowe invoiceId.

invoice_item_idstring

Pole źródłowe invoiceItemId.

customer_idstring

Pole źródłowe customerId.

subscription_idstring

Pole źródłowe subscriptionId.

couponjson

Pole źródłowe coupon.

startdatetime

Pole źródłowe start.

enddatetime

Pole źródłowe end.

checkout_sessionstring

Pole źródłowe checkoutSession.

invoice_items#

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

stripe.invoice_items21 kolumn
idstringpk

Pole źródłowe id.

invoice_idstring

Pole źródłowe invoiceId.

customer_idstring

Pole źródłowe customerId.

subscription_idstring

Pole źródłowe subscriptionId.

created_atdatetime

Pole źródłowe createdAt.

amountinteger

Pole źródłowe amount.

currencystring

Pole źródłowe currency.

descriptionstring

Pole źródłowe description.

metadatajson

Pole źródłowe metadata.

parentjson

Pole źródłowe parent.

period_startdatetime

Pole źródłowe periodStart.

period_enddatetime

Pole źródłowe periodEnd.

pricingjson

Pole źródłowe pricing.

prorationboolean

Pole źródłowe proration.

datedatetime

Pole źródłowe date.

discountableboolean

Pole źródłowe discountable.

discountsjson

Pole źródłowe discounts.

livemodeboolean

Pole źródłowe livemode.

quantityinteger

Pole źródłowe quantity.

tax_ratesjson

Pole źródłowe taxRates.

test_clockstring

Pole źródłowe testClock.

invoice_line_items#

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

stripe.invoice_line_items19 kolumn
idstringpk

Pole źródłowe id.

invoice_idstring

Pole źródłowe invoiceId.

amountinteger

Pole źródłowe amount.

currencystring

Pole źródłowe currency.

descriptionstring

Pole źródłowe description.

metadatajson

Pole źródłowe metadata.

parentjson

Pole źródłowe parent.

period_startdatetime

Pole źródłowe periodStart.

period_enddatetime

Pole źródłowe periodEnd.

pricingjson

Pole źródłowe pricing.

quantityinteger

Pole źródłowe quantity.

discount_amountsjson

Pole źródłowe discountAmounts.

discountableboolean

Pole źródłowe discountable.

discountsjson

Pole źródłowe discounts.

livemodeboolean

Pole źródłowe livemode.

pretax_credit_amountsjson

Pole źródłowe pretaxCreditAmounts.

taxesjson

Pole źródłowe taxes.

unique_idstring

Pole źródłowe uniqueId.

unique_line_item_idstring

Pole źródłowe uniqueLineItemId.

events#

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

stripe.events4 kolumny
idstringpk

Pole źródłowe id.

typestring

Pole źródłowe type.

datajson

Pole źródłowe data.

created_atdatetime

Pole źródłowe createdAt.

charges#

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

stripe.charges36 kolumn
idstringpk

Pole źródłowe id.

created_atdatetime

Pole źródłowe createdAt.

amountinteger

Pole źródłowe amount.

balance_transaction_idstring

Pole źródłowe balanceTransactionId.

customer_idstring

Pole źródłowe customerId.

billing_detailsjson

Pole źródłowe billingDetails.

currencystring

Pole źródłowe currency.

descriptionstring

Pole źródłowe description.

disputedboolean

Pole źródłowe disputed.

metadatajson

Pole źródłowe metadata.

payment_intent_idstring

Pole źródłowe paymentIntentId.

payment_method_detailsjson

Pole źródłowe paymentMethodDetails.

receipt_emailstring

Pole źródłowe receiptEmail.

refundedboolean

Pole źródłowe refunded.

shippingjson

Pole źródłowe shipping.

statement_descriptorstring

Pole źródłowe statementDescriptor.

statement_descriptor_suffixstring

Pole źródłowe statementDescriptorSuffix.

statusstring

Pole źródłowe status.

amount_capturedinteger

Pole źródłowe amountCaptured.

amount_refundedinteger

Pole źródłowe amountRefunded.

calculated_statement_descriptorstring

Pole źródłowe calculatedStatementDescriptor.

capturedboolean

Pole źródłowe captured.

failure_balance_transaction_idstring

Pole źródłowe failureBalanceTransactionId.

failure_codestring

Pole źródłowe failureCode.

failure_messagestring

Pole źródłowe failureMessage.

fraud_detailsjson

Pole źródłowe fraudDetails.

livemodeboolean

Pole źródłowe livemode.

outcomejson

Pole źródłowe outcome.

paidboolean

Pole źródłowe paid.

payment_method_idstring

Pole źródłowe paymentMethodId.

presentment_detailsjson

Pole źródłowe presentmentDetails.

radar_optionsjson

Pole źródłowe radarOptions.

receipt_numberstring

Pole źródłowe receiptNumber.

receipt_urlstring

Pole źródłowe receiptUrl.

refundsjson

Pole źródłowe refunds.

reviewstring

Pole źródłowe review.

payment_methods#

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

stripe.payment_methods6 kolumn
idstringpk

Pole źródłowe id.

customer_idstring

Pole źródłowe customerId.

created_atdatetime

Pole źródłowe createdAt.

billing_detailsjson

Pole źródłowe billingDetails.

metadatajson

Pole źródłowe metadata.

typestring

Pole źródłowe type.

payment_intents#

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

stripe.payment_intents29 kolumn
idstringpk

Pole źródłowe id.

amountinteger

Pole źródłowe amount.

currencystring

Pole źródłowe currency.

created_atdatetime

Pole źródłowe createdAt.

customer_idstring

Pole źródłowe customerId.

descriptionstring

Pole źródłowe description.

latest_chargestring

Pole źródłowe latestCharge.

metadatajson

Pole źródłowe metadata.

next_actionjson

Pole źródłowe nextAction.

payment_method_idstring

Pole źródłowe paymentMethodId.

receipt_emailstring

Pole źródłowe receiptEmail.

setup_future_usagestring

Pole źródłowe setupFutureUsage.

shippingjson

Pole źródłowe shipping.

statement_descriptorstring

Pole źródłowe statementDescriptor.

statement_descriptor_suffixstring

Pole źródłowe statementDescriptorSuffix.

statusstring

Pole źródłowe status.

amount_capturableinteger

Pole źródłowe amountCapturable.

amount_detailsjson

Pole źródłowe amountDetails.

amount_receivedinteger

Pole źródłowe amountReceived.

canceled_atdatetime

Pole źródłowe canceledAt.

cancellation_reasonstring

Pole źródłowe cancellationReason.

capture_methodstring

Pole źródłowe captureMethod.

confirmation_methodstring

Pole źródłowe confirmationMethod.

livemodeboolean

Pole źródłowe livemode.

payment_method_configuration_detailsjson

Pole źródłowe paymentMethodConfigurationDetails.

payment_method_optionsjson

Pole źródłowe paymentMethodOptions.

presentment_detailsjson

Pole źródłowe presentmentDetails.

processingjson

Pole źródłowe processing.

review_idstring

Pole źródłowe reviewId.

subscriptions#

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

stripe.subscriptions38 kolumn
idstringpk

Pole źródłowe id.

automatic_taxjson

Pole źródłowe automaticTax.

currencystring

Pole źródłowe currency.

customer_idstring

Pole źródłowe customerId.

created_atdatetime

Pole źródłowe createdAt.

ended_atdatetime

Pole źródłowe endedAt.

default_payment_methodstring

Pole źródłowe defaultPaymentMethod.

descriptionstring

Pole źródłowe description.

latest_invoicestring

Pole źródłowe latestInvoice.

metadatajson

Pole źródłowe metadata.

pending_setup_intentstring

Pole źródłowe pendingSetupIntent.

pending_updatejson

Pole źródłowe pendingUpdate.

statusstring

Pole źródłowe status.

billing_cycle_anchordatetime

Pole źródłowe billingCycleAnchor.

billing_cycle_anchor_configjson

Pole źródłowe billingCycleAnchorConfig.

billing_modejson

Pole źródłowe billingMode.

billing_thresholdsjson

Pole źródłowe billingThresholds.

cancel_atdatetime

Pole źródłowe cancelAt.

cancel_at_period_endboolean

Pole źródłowe cancelAtPeriodEnd.

canceled_atdatetime

Pole źródłowe canceledAt.

cancellation_detailsjson

Pole źródłowe cancellationDetails.

collection_methodstring

Pole źródłowe collectionMethod.

days_until_dueinteger

Pole źródłowe daysUntilDue.

default_sourcestring

Pole źródłowe defaultSource.

default_tax_ratesjson

Pole źródłowe defaultTaxRates.

discountsjson

Pole źródłowe discounts.

invoice_settingsjson

Pole źródłowe invoiceSettings.

livemodeboolean

Pole źródłowe livemode.

next_pending_invoice_item_invoicedatetime

Pole źródłowe nextPendingInvoiceItemInvoice.

pause_collectionjson

Pole źródłowe pauseCollection.

payment_settingsjson

Pole źródłowe paymentSettings.

pending_invoice_item_intervaljson

Pole źródłowe pendingInvoiceItemInterval.

schedulestring

Pole źródłowe schedule.

start_datedatetime

Pole źródłowe startDate.

test_clockstring

Pole źródłowe testClock.

trial_enddatetime

Pole źródłowe trialEnd.

trial_settingsjson

Pole źródłowe trialSettings.

trial_startdatetime

Pole źródłowe trialStart.

subscription_items#

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

stripe.subscription_items11 kolumn
idstringpk

Pole źródłowe id.

metadatajson

Pole źródłowe metadata.

pricejson

Pole źródłowe price.

quantityinteger

Pole źródłowe quantity.

subscription_idstring

Pole źródłowe subscriptionId.

created_atdatetime

Pole źródłowe createdAt.

billing_thresholdsjson

Pole źródłowe billingThresholds.

current_period_startdatetime

Pole źródłowe currentPeriodStart.

current_period_enddatetime

Pole źródłowe currentPeriodEnd.

discountsjson

Pole źródłowe discounts.

tax_ratesjson

Pole źródłowe taxRates.

plans#

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

stripe.plans19 kolumn
idstringpk

Pole źródłowe id.

created_atdatetime

Pole źródłowe createdAt.

activeboolean

Pole źródłowe active.

currencystring

Pole źródłowe currency.

intervalstring

Pole źródłowe interval.

interval_countinteger

Pole źródłowe intervalCount.

metadatajson

Pole źródłowe metadata.

nicknamestring

Pole źródłowe nickname.

product_idstring

Pole źródłowe productId.

trial_period_daysinteger

Pole źródłowe trialPeriodDays.

aggregate_usagestring

Pole źródłowe aggregateUsage.

amount_decimalfloat

Pole źródłowe amountDecimal.

billing_schemestring

Pole źródłowe billingScheme.

livemodeboolean

Pole źródłowe livemode.

meterstring

Pole źródłowe meter.

tiersjson

Pole źródłowe tiers.

tiers_modestring

Pole źródłowe tiersMode.

transform_usagejson

Pole źródłowe transformUsage.

usage_typestring

Pole źródłowe usageType.

prices#

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

stripe.prices20 kolumn
idstringpk

Pole źródłowe id.

created_atdatetime

Pole źródłowe createdAt.

activeboolean

Pole źródłowe active.

currencystring

Pole źródłowe currency.

metadatajson

Pole źródłowe metadata.

nicknamestring

Pole źródłowe nickname.

product_idstring

Pole źródłowe productId.

recurringjson

Pole źródłowe recurring.

tax_behaviorstring

Pole źródłowe taxBehavior.

typestring

Pole źródłowe type.

unit_amountinteger

Pole źródłowe unitAmount.

billing_schemestring

Pole źródłowe billingScheme.

currency_optionsjson

Pole źródłowe currencyOptions.

custom_unit_amountjson

Pole źródłowe customUnitAmount.

livemodeboolean

Pole źródłowe livemode.

lookup_keystring

Pole źródłowe lookupKey.

tiersjson

Pole źródłowe tiers.

tiers_modestring

Pole źródłowe tiersMode.

transform_quantityjson

Pole źródłowe transformQuantity.

unit_amount_decimalfloat

Pole źródłowe unitAmountDecimal.

refunds#

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

stripe.refunds19 kolumn
idstringpk

Pole źródłowe id.

amountinteger

Pole źródłowe amount.

created_atdatetime

Pole źródłowe createdAt.

charge_idstring

Pole źródłowe chargeId.

currencystring

Pole źródłowe currency.

descriptionstring

Pole źródłowe description.

metadatajson

Pole źródłowe metadata.

payment_intent_idstring

Pole źródłowe paymentIntentId.

reasonstring

Pole źródłowe reason.

statusstring

Pole źródłowe status.

balance_transaction_idstring

Pole źródłowe balanceTransactionId.

destination_detailsjson

Pole źródłowe destinationDetails.

failure_balance_transaction_idstring

Pole źródłowe failureBalanceTransactionId.

failure_reasonstring

Pole źródłowe failureReason.

instructions_emailstring

Pole źródłowe instructionsEmail.

next_actionjson

Pole źródłowe nextAction.

pending_reasonstring

Pole źródłowe pendingReason.

receipt_numberstring

Pole źródłowe receiptNumber.

refund_application_feeboolean

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.