ドキュメントメニュー

Stripe#

選択したリソースの読み取り権限を持つ制限付きキーを使って Stripe を接続します。このソースは titan.stripe に 17 個の固定テーブルを書き込みます。

sql
select
  id,
  amount,
  available_on
from titan.stripe.balance_transactions
limit 10

Stripeを接続する#

  1. アプリを開き、アプリを接続を選択してから、Stripeを選択します。

  2. 選択したリソースの読み取り権限を持つ制限付きキーを入力します。

  3. テーブルを確認してからソースを保存します。

  4. 初回の実行が完了するまで同期履歴を確認します。

認証情報はシークレットとして保存されます。レイクの列になったり、クエリ結果に表示されたりすることはありません。

同期の動作#

金額は通貨の最小単位の整数です。livemode は本番データとテストデータを区別し、削除済みオブジェクトも _deleted で確認できます。保存したカーソルが 27 日より古い場合、イベント駆動の更新は全件取得に切り替わります。

新しいソースは接続時に同期し、その後はスケジュールに従います。デフォルトのスケジュールでは、組織のタイムゾーンで平日の 5:00、10:00、15:00、20:00 と日曜日の 20:00 に同期し、各ソースはその時刻から 30 分以内に開始します。実行が中断しても、完了した進捗を保持して安全に再試行します。

すべてのレイクのテーブルにはシステム列 _synced_at と _deleted もあります。以下の列リファレンスにはソースの列のみを記載しています。

テーブルリファレンス#

balance_transactions#

titan.stripe.balance_transactions には 14 個のソース列があります。

stripe.balance_transactions14列
idstringpk

ソースのフィールド id。

amountinteger

ソースのフィールド amount。

available_ondatetime

ソースのフィールド availableOn。

created_atdatetime

ソースのフィールド createdAt。

currencystring

ソースのフィールド currency。

descriptionstring

ソースのフィールド description。

exchange_ratefloat

ソースのフィールド exchangeRate。

feeinteger

ソースのフィールド fee。

fee_detailsjson

ソースのフィールド feeDetails。

netinteger

ソースのフィールド net。

reporting_categorystring

ソースのフィールド reportingCategory。

statusstring

ソースのフィールド status。

typestring

ソースのフィールド type。

sourcestring

ソースのフィールド source。

coupons#

titan.stripe.coupons には 16 個のソース列があります。

stripe.coupons16列
idstringpk

ソースのフィールド id。

created_atdatetime

ソースのフィールド createdAt。

amount_offinteger

ソースのフィールド amountOff。

currencystring

ソースのフィールド currency。

durationstring

ソースのフィールド duration。

duration_in_monthsinteger

ソースのフィールド durationInMonths。

metadatajson

ソースのフィールド metadata。

namestring

ソースのフィールド name。

percent_offfloat

ソースのフィールド percentOff。

applies_tojson

ソースのフィールド appliesTo。

currency_optionsjson

ソースのフィールド currencyOptions。

livemodeboolean

ソースのフィールド livemode。

max_redemptionsinteger

ソースのフィールド maxRedemptions。

redeem_bydatetime

ソースのフィールド redeemBy。

times_redeemedinteger

ソースのフィールド timesRedeemed。

validboolean

ソースのフィールド valid。

customers#

titan.stripe.customers には 26 個のソース列があります。

stripe.customers26列
idstringpk

ソースのフィールド id。

created_atdatetime

ソースのフィールド createdAt。

addressjson

ソースのフィールド address。

descriptionstring

ソースのフィールド description。

emailstring

ソースのフィールド email。

metadatajson

ソースのフィールド metadata。

namestring

ソースのフィールド name。

phonestring

ソースのフィールド phone。

shippingjson

ソースのフィールド shipping。

taxjson

ソースのフィールド tax。

balanceinteger

ソースのフィールド balance。

cash_balancejson

ソースのフィールド cashBalance。

currencystring

ソースのフィールド currency。

default_sourcestring

ソースのフィールド defaultSource。

delinquentboolean

ソースのフィールド delinquent。

discountjson

ソースのフィールド discount。

invoice_credit_balancejson

ソースのフィールド invoiceCreditBalance。

invoice_prefixstring

ソースのフィールド invoicePrefix。

invoice_settingsjson

ソースのフィールド invoiceSettings。

livemodeboolean

ソースのフィールド livemode。

next_invoice_sequenceinteger

ソースのフィールド nextInvoiceSequence。

preferred_localesjson

ソースのフィールド preferredLocales。

sourcesjson

ソースのフィールド sources。

tax_exemptstring

ソースのフィールド taxExempt。

tax_idsjson

ソースのフィールド taxIds。

test_clockstring

ソースのフィールド testClock。

customer_balance_transactions#

titan.stripe.customer_balance_transactions には 13 個のソース列があります。

stripe.customer_balance_transactions13列
idstringpk

ソースのフィールド id。

customer_idstring

ソースのフィールド customerId。

amountinteger

ソースのフィールド amount。

currencystring

ソースのフィールド currency。

descriptionstring

ソースのフィールド description。

ending_balanceinteger

ソースのフィールド endingBalance。

metadatajson

ソースのフィールド metadata。

typestring

ソースのフィールド type。

checkout_session_idstring

ソースのフィールド checkoutSessionId。

created_atdatetime

ソースのフィールド createdAt。

credit_note_idstring

ソースのフィールド creditNoteId。

invoice_idstring

ソースのフィールド invoiceId。

livemodeboolean

ソースのフィールド livemode。

invoices#

titan.stripe.invoices には 70 個のソース列があります。

stripe.invoices70列
idstringpk

ソースのフィールド id。

customer_idstring

ソースのフィールド customerId。

created_atdatetime

ソースのフィールド createdAt。

auto_advanceboolean

ソースのフィールド autoAdvance。

automatic_taxjson

ソースのフィールド automaticTax。

collection_methodstring

ソースのフィールド collectionMethod。

currencystring

ソースのフィールド currency。

descriptionstring

ソースのフィールド description。

hosted_invoice_urlstring

ソースのフィールド hostedInvoiceUrl。

metadatajson

ソースのフィールド metadata。

parentjson

ソースのフィールド parent。

period_startdatetime

ソースのフィールド periodStart。

period_enddatetime

ソースのフィールド periodEnd。

statusstring

ソースのフィールド status。

totalinteger

ソースのフィールド total。

account_countrystring

ソースのフィールド accountCountry。

account_namestring

ソースのフィールド accountName。

account_tax_idsjson

ソースのフィールド accountTaxIds。

amount_dueinteger

ソースのフィールド amountDue。

amount_overpaidinteger

ソースのフィールド amountOverpaid。

amount_paidinteger

ソースのフィールド amountPaid。

amount_remaininginteger

ソースのフィールド amountRemaining。

amount_shippinginteger

ソースのフィールド amountShipping。

attempt_countinteger

ソースのフィールド attemptCount。

attemptedboolean

ソースのフィールド attempted。

automatically_finalizes_atdatetime

ソースのフィールド automaticallyFinalizesAt。

billing_reasonstring

ソースのフィールド billingReason。

custom_fieldsjson

ソースのフィールド customFields。

customer_addressjson

ソースのフィールド customerAddress。

customer_emailstring

ソースのフィールド customerEmail。

customer_namestring

ソースのフィールド customerName。

customer_phonestring

ソースのフィールド customerPhone。

customer_shippingjson

ソースのフィールド customerShipping。

customer_tax_exemptstring

ソースのフィールド customerTaxExempt。

customer_tax_idsjson

ソースのフィールド customerTaxIds。

default_payment_methodstring

ソースのフィールド defaultPaymentMethod。

default_sourcestring

ソースのフィールド defaultSource。

default_tax_ratesjson

ソースのフィールド defaultTaxRates。

discountsjson

ソースのフィールド discounts。

due_datedatetime

ソースのフィールド dueDate。

effective_atdatetime

ソースのフィールド effectiveAt。

ending_balanceinteger

ソースのフィールド endingBalance。

from_invoicejson

ソースのフィールド fromInvoice。

invoice_pdfstring

ソースのフィールド invoicePdf。

last_finalization_errorjson

ソースのフィールド lastFinalizationError。

latest_revisionstring

ソースのフィールド latestRevision。

livemodeboolean

ソースのフィールド livemode。

next_payment_attemptdatetime

ソースのフィールド nextPaymentAttempt。

numberstring

ソースのフィールド number。

payment_settingsjson

ソースのフィールド paymentSettings。

paymentsjson

ソースのフィールド payments。

post_payment_credit_notes_amountinteger

ソースのフィールド postPaymentCreditNotesAmount。

pre_payment_credit_notes_amountinteger

ソースのフィールド prePaymentCreditNotesAmount。

receipt_numberstring

ソースのフィールド receiptNumber。

renderingjson

ソースのフィールド rendering。

shipping_costjson

ソースのフィールド shippingCost。

shipping_detailsjson

ソースのフィールド shippingDetails。

starting_balanceinteger

ソースのフィールド startingBalance。

statement_descriptorstring

ソースのフィールド statementDescriptor。

status_transitionsjson

ソースのフィールド statusTransitions。

subtotalinteger

ソースのフィールド subtotal。

subtotal_excluding_taxinteger

ソースのフィールド subtotalExcludingTax。

test_clockstring

ソースのフィールド testClock。

threshold_reasonjson

ソースのフィールド thresholdReason。

total_discount_amountsjson

ソースのフィールド totalDiscountAmounts。

total_excluding_taxinteger

ソースのフィールド totalExcludingTax。

total_pretax_credit_amountsjson

ソースのフィールド totalPretaxCreditAmounts。

total_taxesjson

ソースのフィールド totalTaxes。

webhooks_delivered_atdatetime

ソースのフィールド webhooksDeliveredAt。

invoice_discounts#

titan.stripe.invoice_discounts には 9 個のソース列があります。

stripe.invoice_discounts9列
idstringpk

ソースのフィールド id。

invoice_idstringpk

ソースのフィールド invoiceId。

invoice_item_idstring

ソースのフィールド invoiceItemId。

customer_idstring

ソースのフィールド customerId。

subscription_idstring

ソースのフィールド subscriptionId。

couponjson

ソースのフィールド coupon。

startdatetime

ソースのフィールド start。

enddatetime

ソースのフィールド end。

checkout_sessionstring

ソースのフィールド checkoutSession。

invoice_items#

titan.stripe.invoice_items には 21 個のソース列があります。

stripe.invoice_items21列
idstringpk

ソースのフィールド id。

invoice_idstring

ソースのフィールド invoiceId。

customer_idstring

ソースのフィールド customerId。

subscription_idstring

ソースのフィールド subscriptionId。

created_atdatetime

ソースのフィールド createdAt。

amountinteger

ソースのフィールド amount。

currencystring

ソースのフィールド currency。

descriptionstring

ソースのフィールド description。

metadatajson

ソースのフィールド metadata。

parentjson

ソースのフィールド parent。

period_startdatetime

ソースのフィールド periodStart。

period_enddatetime

ソースのフィールド periodEnd。

pricingjson

ソースのフィールド pricing。

prorationboolean

ソースのフィールド proration。

datedatetime

ソースのフィールド date。

discountableboolean

ソースのフィールド discountable。

discountsjson

ソースのフィールド discounts。

livemodeboolean

ソースのフィールド livemode。

quantityinteger

ソースのフィールド quantity。

tax_ratesjson

ソースのフィールド taxRates。

test_clockstring

ソースのフィールド testClock。

invoice_line_items#

titan.stripe.invoice_line_items には 19 個のソース列があります。

stripe.invoice_line_items19列
idstringpk

ソースのフィールド id。

invoice_idstring

ソースのフィールド invoiceId。

amountinteger

ソースのフィールド amount。

currencystring

ソースのフィールド currency。

descriptionstring

ソースのフィールド description。

metadatajson

ソースのフィールド metadata。

parentjson

ソースのフィールド parent。

period_startdatetime

ソースのフィールド periodStart。

period_enddatetime

ソースのフィールド periodEnd。

pricingjson

ソースのフィールド pricing。

quantityinteger

ソースのフィールド quantity。

discount_amountsjson

ソースのフィールド discountAmounts。

discountableboolean

ソースのフィールド discountable。

discountsjson

ソースのフィールド discounts。

livemodeboolean

ソースのフィールド livemode。

pretax_credit_amountsjson

ソースのフィールド pretaxCreditAmounts。

taxesjson

ソースのフィールド taxes。

unique_idstring

ソースのフィールド uniqueId。

unique_line_item_idstring

ソースのフィールド uniqueLineItemId。

events#

titan.stripe.events には 4 個のソース列があります。

stripe.events4列
idstringpk

ソースのフィールド id。

typestring

ソースのフィールド type。

datajson

ソースのフィールド data。

created_atdatetime

ソースのフィールド createdAt。

charges#

titan.stripe.charges には 36 個のソース列があります。

stripe.charges36列
idstringpk

ソースのフィールド id。

created_atdatetime

ソースのフィールド createdAt。

amountinteger

ソースのフィールド amount。

balance_transaction_idstring

ソースのフィールド balanceTransactionId。

customer_idstring

ソースのフィールド customerId。

billing_detailsjson

ソースのフィールド billingDetails。

currencystring

ソースのフィールド currency。

descriptionstring

ソースのフィールド description。

disputedboolean

ソースのフィールド disputed。

metadatajson

ソースのフィールド metadata。

payment_intent_idstring

ソースのフィールド paymentIntentId。

payment_method_detailsjson

ソースのフィールド paymentMethodDetails。

receipt_emailstring

ソースのフィールド receiptEmail。

refundedboolean

ソースのフィールド refunded。

shippingjson

ソースのフィールド shipping。

statement_descriptorstring

ソースのフィールド statementDescriptor。

statement_descriptor_suffixstring

ソースのフィールド statementDescriptorSuffix。

statusstring

ソースのフィールド status。

amount_capturedinteger

ソースのフィールド amountCaptured。

amount_refundedinteger

ソースのフィールド amountRefunded。

calculated_statement_descriptorstring

ソースのフィールド calculatedStatementDescriptor。

capturedboolean

ソースのフィールド captured。

failure_balance_transaction_idstring

ソースのフィールド failureBalanceTransactionId。

failure_codestring

ソースのフィールド failureCode。

failure_messagestring

ソースのフィールド failureMessage。

fraud_detailsjson

ソースのフィールド fraudDetails。

livemodeboolean

ソースのフィールド livemode。

outcomejson

ソースのフィールド outcome。

paidboolean

ソースのフィールド paid。

payment_method_idstring

ソースのフィールド paymentMethodId。

presentment_detailsjson

ソースのフィールド presentmentDetails。

radar_optionsjson

ソースのフィールド radarOptions。

receipt_numberstring

ソースのフィールド receiptNumber。

receipt_urlstring

ソースのフィールド receiptUrl。

refundsjson

ソースのフィールド refunds。

reviewstring

ソースのフィールド review。

payment_methods#

titan.stripe.payment_methods には 6 個のソース列があります。

stripe.payment_methods6列
idstringpk

ソースのフィールド id。

customer_idstring

ソースのフィールド customerId。

created_atdatetime

ソースのフィールド createdAt。

billing_detailsjson

ソースのフィールド billingDetails。

metadatajson

ソースのフィールド metadata。

typestring

ソースのフィールド type。

payment_intents#

titan.stripe.payment_intents には 29 個のソース列があります。

stripe.payment_intents29列
idstringpk

ソースのフィールド id。

amountinteger

ソースのフィールド amount。

currencystring

ソースのフィールド currency。

created_atdatetime

ソースのフィールド createdAt。

customer_idstring

ソースのフィールド customerId。

descriptionstring

ソースのフィールド description。

latest_chargestring

ソースのフィールド latestCharge。

metadatajson

ソースのフィールド metadata。

next_actionjson

ソースのフィールド nextAction。

payment_method_idstring

ソースのフィールド paymentMethodId。

receipt_emailstring

ソースのフィールド receiptEmail。

setup_future_usagestring

ソースのフィールド setupFutureUsage。

shippingjson

ソースのフィールド shipping。

statement_descriptorstring

ソースのフィールド statementDescriptor。

statement_descriptor_suffixstring

ソースのフィールド statementDescriptorSuffix。

statusstring

ソースのフィールド status。

amount_capturableinteger

ソースのフィールド amountCapturable。

amount_detailsjson

ソースのフィールド amountDetails。

amount_receivedinteger

ソースのフィールド amountReceived。

canceled_atdatetime

ソースのフィールド canceledAt。

cancellation_reasonstring

ソースのフィールド cancellationReason。

capture_methodstring

ソースのフィールド captureMethod。

confirmation_methodstring

ソースのフィールド confirmationMethod。

livemodeboolean

ソースのフィールド livemode。

payment_method_configuration_detailsjson

ソースのフィールド paymentMethodConfigurationDetails。

payment_method_optionsjson

ソースのフィールド paymentMethodOptions。

presentment_detailsjson

ソースのフィールド presentmentDetails。

processingjson

ソースのフィールド processing。

review_idstring

ソースのフィールド reviewId。

subscriptions#

titan.stripe.subscriptions には 38 個のソース列があります。

stripe.subscriptions38列
idstringpk

ソースのフィールド id。

automatic_taxjson

ソースのフィールド automaticTax。

currencystring

ソースのフィールド currency。

customer_idstring

ソースのフィールド customerId。

created_atdatetime

ソースのフィールド createdAt。

ended_atdatetime

ソースのフィールド endedAt。

default_payment_methodstring

ソースのフィールド defaultPaymentMethod。

descriptionstring

ソースのフィールド description。

latest_invoicestring

ソースのフィールド latestInvoice。

metadatajson

ソースのフィールド metadata。

pending_setup_intentstring

ソースのフィールド pendingSetupIntent。

pending_updatejson

ソースのフィールド pendingUpdate。

statusstring

ソースのフィールド status。

billing_cycle_anchordatetime

ソースのフィールド billingCycleAnchor。

billing_cycle_anchor_configjson

ソースのフィールド billingCycleAnchorConfig。

billing_modejson

ソースのフィールド billingMode。

billing_thresholdsjson

ソースのフィールド billingThresholds。

cancel_atdatetime

ソースのフィールド cancelAt。

cancel_at_period_endboolean

ソースのフィールド cancelAtPeriodEnd。

canceled_atdatetime

ソースのフィールド canceledAt。

cancellation_detailsjson

ソースのフィールド cancellationDetails。

collection_methodstring

ソースのフィールド collectionMethod。

days_until_dueinteger

ソースのフィールド daysUntilDue。

default_sourcestring

ソースのフィールド defaultSource。

default_tax_ratesjson

ソースのフィールド defaultTaxRates。

discountsjson

ソースのフィールド discounts。

invoice_settingsjson

ソースのフィールド invoiceSettings。

livemodeboolean

ソースのフィールド livemode。

next_pending_invoice_item_invoicedatetime

ソースのフィールド nextPendingInvoiceItemInvoice。

pause_collectionjson

ソースのフィールド pauseCollection。

payment_settingsjson

ソースのフィールド paymentSettings。

pending_invoice_item_intervaljson

ソースのフィールド pendingInvoiceItemInterval。

schedulestring

ソースのフィールド schedule。

start_datedatetime

ソースのフィールド startDate。

test_clockstring

ソースのフィールド testClock。

trial_enddatetime

ソースのフィールド trialEnd。

trial_settingsjson

ソースのフィールド trialSettings。

trial_startdatetime

ソースのフィールド trialStart。

subscription_items#

titan.stripe.subscription_items には 11 個のソース列があります。

stripe.subscription_items11列
idstringpk

ソースのフィールド id。

metadatajson

ソースのフィールド metadata。

pricejson

ソースのフィールド price。

quantityinteger

ソースのフィールド quantity。

subscription_idstring

ソースのフィールド subscriptionId。

created_atdatetime

ソースのフィールド createdAt。

billing_thresholdsjson

ソースのフィールド billingThresholds。

current_period_startdatetime

ソースのフィールド currentPeriodStart。

current_period_enddatetime

ソースのフィールド currentPeriodEnd。

discountsjson

ソースのフィールド discounts。

tax_ratesjson

ソースのフィールド taxRates。

plans#

titan.stripe.plans には 19 個のソース列があります。

stripe.plans19列
idstringpk

ソースのフィールド id。

created_atdatetime

ソースのフィールド createdAt。

activeboolean

ソースのフィールド active。

currencystring

ソースのフィールド currency。

intervalstring

ソースのフィールド interval。

interval_countinteger

ソースのフィールド intervalCount。

metadatajson

ソースのフィールド metadata。

nicknamestring

ソースのフィールド nickname。

product_idstring

ソースのフィールド productId。

trial_period_daysinteger

ソースのフィールド trialPeriodDays。

aggregate_usagestring

ソースのフィールド aggregateUsage。

amount_decimalfloat

ソースのフィールド amountDecimal。

billing_schemestring

ソースのフィールド billingScheme。

livemodeboolean

ソースのフィールド livemode。

meterstring

ソースのフィールド meter。

tiersjson

ソースのフィールド tiers。

tiers_modestring

ソースのフィールド tiersMode。

transform_usagejson

ソースのフィールド transformUsage。

usage_typestring

ソースのフィールド usageType。

prices#

titan.stripe.prices には 20 個のソース列があります。

stripe.prices20列
idstringpk

ソースのフィールド id。

created_atdatetime

ソースのフィールド createdAt。

activeboolean

ソースのフィールド active。

currencystring

ソースのフィールド currency。

metadatajson

ソースのフィールド metadata。

nicknamestring

ソースのフィールド nickname。

product_idstring

ソースのフィールド productId。

recurringjson

ソースのフィールド recurring。

tax_behaviorstring

ソースのフィールド taxBehavior。

typestring

ソースのフィールド type。

unit_amountinteger

ソースのフィールド unitAmount。

billing_schemestring

ソースのフィールド billingScheme。

currency_optionsjson

ソースのフィールド currencyOptions。

custom_unit_amountjson

ソースのフィールド customUnitAmount。

livemodeboolean

ソースのフィールド livemode。

lookup_keystring

ソースのフィールド lookupKey。

tiersjson

ソースのフィールド tiers。

tiers_modestring

ソースのフィールド tiersMode。

transform_quantityjson

ソースのフィールド transformQuantity。

unit_amount_decimalfloat

ソースのフィールド unitAmountDecimal。

refunds#

titan.stripe.refunds には 19 個のソース列があります。

stripe.refunds19列
idstringpk

ソースのフィールド id。

amountinteger

ソースのフィールド amount。

created_atdatetime

ソースのフィールド createdAt。

charge_idstring

ソースのフィールド chargeId。

currencystring

ソースのフィールド currency。

descriptionstring

ソースのフィールド description。

metadatajson

ソースのフィールド metadata。

payment_intent_idstring

ソースのフィールド paymentIntentId。

reasonstring

ソースのフィールド reason。

statusstring

ソースのフィールド status。

balance_transaction_idstring

ソースのフィールド balanceTransactionId。

destination_detailsjson

ソースのフィールド destinationDetails。

failure_balance_transaction_idstring

ソースのフィールド failureBalanceTransactionId。

failure_reasonstring

ソースのフィールド failureReason。

instructions_emailstring

ソースのフィールド instructionsEmail。

next_actionjson

ソースのフィールド nextAction。

pending_reasonstring

ソースのフィールド pendingReason。

receipt_numberstring

ソースのフィールド receiptNumber。

refund_application_feeboolean

ソースのフィールド refundApplicationFee。

削除と履歴#

行はソースのキーでマージされます。ソース側で行の削除を確認できた場合、Supernova は行を残して _deleted を設定します。クエリで履歴を含めるかどうかを選べます。現在の状態だけを取得するには where not _deleted で絞り込んでください。