Lecture à partir d’entités Stripe - AWS Glue

Lecture à partir d’entités Stripe

Prérequis

  • Un objet Stripe à partir duquel vous souhaitez lire.

Entités prises en charge

Entité Peut être filtré Limit prise en charge Order by prise en charge Select prise en charge* Partitionnement pris en charge
BalanceNonNonNonOuiNon
Balance TransactionsOuiOuiNonOuiOui
FraisOuiOuiNonOuiOui
DisputesOuiOuiNonOuiOui
File LinksOuiOuiNonOuiOui
PaymentIntentsOuiOuiNonOuiOui
SetupIntentsOuiOuiNonOuiOui
PayoutsOuiOuiNonOuiOui
RemboursementsOuiOuiNonOuiOui
ProduitsOuiOuiNonOuiOui
PricesOuiOuiNonOuiOui
CouponsOuiOuiNonOuiOui
Promotion CodesOuiOuiNonOuiOui
Tax CodesNonOuiNonOuiNon
Tax RatesOuiOuiNonOuiOui
Shipping RatesOuiOuiNonOuiOui
SéancesOuiOuiNonOuiOui
Credit NotesOuiOuiNonOuiOui
ClientOuiOuiNonOuiOui
FacturesOuiOuiNonOuiOui
Invoice ItemsOuiOuiNonOuiNon
PlansOuiOuiNonOuiOui
QuotesOuiOuiNonOuiNon
AbonnementsOuiOuiNonOui
Subscription ItemsNonOuiNonOuiNon
Subscription SchedulesOuiOuiNonOuiOui
ComptesNonOuiNonOuiOui
Application FeesOuiOuiNonOuiOui
Country SpecsNonOuiNonOuiNon
TransfertsOuiOuiNonOuiOui
Early Fraud WarningsOuiOuiNonOuiOui
Types de rapportNonNonNonOuiNon

Exemple

stripe_read = glueContext.create_dynamic_frame.from_options( connection_type="stripe", connection_options={ "connectionName": "connectionName", "ENTITY_NAME": "coupons", "API_VERSION": "v1" } )

Détails des entités et des champs Stripe

Entité Champ Type de données Opérateurs pris en charge
Balance
availableListe
connect_reservedListe
en suspensListe
livemodeBooléen
objetChaîne
instant_availableListe
issuingStruct
Balance Transactions
idChaîne
objetChaîne
amountEntier
available_onDateTime=, >=, <=,<,>
crééDateTime=, >=, <=,<,>
deviseChaîne
descriptionChaîne
exchange_rateBigDecimal
feeEntier
fee_detailsListe
netEntier
reporting_categoryChaîne
sourceChaîne=
statusChaîne
typeChaîne=
cross_border_classificationChaîne
Frais
idChaîne
objetChaîne
amountEntier=, <, >
amount_capturedEntier
amount_refundedEntier
applicationChaîne
application_feeChaîne
application_fee_amountEntier
balance_transactionChaîne
billing_detailsStruct
calculated_statement_descriptorChaîne
capturedBooléen
crééDateTime=, >=, <=,<,>
deviseChaîne
customerChaîne=
descriptionChaîne
destinationChaîne
disputeChaîne
disputedBooléen=
failure_balance_transactionChaîne
failure_codeChaîne
failure_messageChaîne
fraud_detailsStruct
factureChaîne
livemodeBooléen
métadonnéesStruct
on_behalf_ofChaîne
orderChaîne
outcomeStruct
paidBooléen
payment_intentChaîne=
payment_methodChaîne
payment_method_detailsStruct
receipt_emailChaîne
receipt_numberChaîne
receipt_urlChaîne
refundedBooléen=
refundsStruct
reviewChaîne
shippingStruct
sourceStruct
source_transferChaîne
statement_descriptorChaîne
statement_descriptor_suffixChaîne
statusChaîne
transfertChaîne
transfer_dataStruct
transfer_groupChaîne=
Disputes
idChaîne
objetChaîne
amountEntier=, <, >
balance_transactionChaîne
balance_transactionsListe
chargeChaîne=
crééDateTime=, >=, <=,<,>
deviseChaîne
evidenceStruct
evidence_detailsStruct
is_charge_refundableBooléen
livemodeBooléen
métadonnéesStruct
payment_intentChaîne=
raisonChaîne=
statusChaîne
payment_method_detailsStruct
File Links
idChaîne
objetChaîne
crééDateTime=, >=, <=,<,>
expiredBooléen=
expires_atDateTime
dans le fichierChaîne=
livemodeBooléen
métadonnéesStruct
urlChaîne
PaymentIntents
idChaîne
objetChaîne
amountEntier
amount_capturableEntier
amount_detailsStruct
amount_receivedEntier
applicationChaîne
application_fee_amountEntier
automatic_payment_methodsStruct
canceled_atDateTime
cancellation_reasonChaîne
capture_methodChaîne
client_secretChaîne
confirmation_methodChaîne
crééDateTime=, >=, <=,<,>
deviseChaîne
customerChaîne=
descriptionChaîne
factureChaîne
last_payment_errorStruct
latest_chargeChaîne
livemodeBooléen
métadonnéesStruct
next_actionStruct
on_behalf_ofChaîne
payment_methodChaîne
payment_method_optionsStruct
payment_method_typesListe
payment_method_configuration_detailsStruct
traitementStruct
receipt_emailChaîne
reviewChaîne
setup_future_usageChaîne
shippingStruct
sourceChaîne
statement_descriptorChaîne
statement_descriptor_suffixChaîne
statusChaîne
transfer_dataStruct
transfer_groupChaîne
SetupIntents
idChaîne
objetChaîne
applicationChaîne
cancellation_reasonChaîne
client_secretChaîne
crééDateTime=, >=, <=,<,>
customerChaîne=
descriptionChaîne
flow_directionsListe
last_setup_errorStruct
latest_attemptChaîne
livemodeBooléen
mandateChaîne
métadonnéesStruct
next_actionStruct
on_behalf_ofChaîne
payment_methodChaîne
payment_method_optionsStruct
payment_method_typesListe
single_use_mandateChaîne
statusChaîne
utilisationChaîne
automatic_payment_methodsStruct
Payouts
idChaîne
objetChaîne
amountEntier=, <, >
arrival_dateDateTime=, >=, <=,<,>
automatiqueBooléen
balance_transactionChaîne
crééDateTime=, >=, <=,<,>
deviseChaîne
descriptionChaîne=
destinationChaîne
failure_balance_transactionChaîne
failure_codeChaîne
failure_messageChaîne
livemodeBooléen
métadonnéesStruct
méthodeChaîne
original_payoutChaîne
reversed_byChaîne
reconciliation_statusChaîne
source_typeChaîne
statement_descriptorChaîne
statusChaîne
typeChaîne
application_feeChaîne
application_fee_amountEntier
Remboursements
idChaîne
objetChaîne
amountEntier
balance_transactionChaîne
chargeChaîne=
crééDateTime=, >=, <=,<,>
deviseChaîne
métadonnéesStruct
destination_detailsStruct
payment_intentChaîne=
raisonChaîne
receipt_numberChaîne
source_transfer_reversalChaîne
statusChaîne
transfer_reversalChaîne
Produits
idChaîne
objetChaîne
actifBooléen=
attributsListe
crééDateTime=, >=, <=,<,>
default_priceChaîne
descriptionChaîne
imagesListe
livemodeBooléen
métadonnéesStruct
nameChaîne
package_dimensionsStruct
shippableBooléen
statement_descriptorChaîne
tax_codeChaîne
typeChaîne=
unit_labelChaîne
updatedDateTime
urlChaîne
fonctionnalitésListe
Prices
idChaîne
objetChaîne
actifBooléen=
billing_schemeChaîne
crééDateTime=, >=, <=,<,>
deviseChaîne=
custom_unit_amountStruct
livemodeBooléen
lookup_keyChaîne
métadonnéesStruct
nicknameChaîne
productChaîne=
recurringStruct
tax_behaviorChaîne
tiers_modeChaîne
transform_quantityStruct
typeChaîne=
unit_amountEntier
unit_montant_decimalChaîne
Coupons
IdChaîne
objetChaîne
amount_offEntier
crééDateTime=, >=, <=,<,>
deviseChaîne=
durationChaîne=
duration_in_monthsEntier=,<,>
livemodeBooléen
max_redemptionsEntier=, <, >
métadonnéesStruct
nameChaîne
percent_offDouble=
redeem_byDateTime=, >=, <=, <, >
times_redeemedEntier
validBooléen
Promotion Codes
IdChaîne
objetChaîne
actifBooléen=
codeChaîne=
couponStruct
crééDateTime=,>=,<=,<,>
customerChaîne
expires_atDateTime
livemodeBooléen
max_redemptionsEntier
métadonnéesStruct
restrictionsStruct
times_redeemedEntier
Tax Codes
IdChaîne
objetChaîne
descriptionChaîne
nameChaîne
Tax Rates
IdChaîne
objetChaîne
actifBooléen=
countryChaîne
crééDateTime=, >=, <=, <, >
descriptionChaîne
display_nameChaîne
inclusiveBooléen=
jurisdictionChaîne
jurisdiction_levelChaîne
livemodeBooléen
métadonnéesStruct
percentageDouble
effective_percentageDouble
stateChaîne
tax_typeChaîne
Shipping Rates
IdChaîne
objetChaîne
actifBooléen=
crééDateTime=, >=, <=, <, >
delivery_estimateStruct
display_nameChaîne
fixed_amountStruct
livemodeBooléen
métadonnéesStruct
tax_behaviorChaîne
tax_codeChaîne
typeChaîne
Séances
idChaîne
objetChaîne
after_expirationStruct
allow_promotion_codesBooléen
amount_subtotalEntier
amount_totalEntier
automatic_taxStruct
billing_address_collectionChaîne
cancel_urlChaîne
client_reference_idChaîne
consentStruct
consent_collectionStruct
crééDateTime=, >=, <=, <, >
deviseChaîne
custom_textStruct
customerChaîne
customer_creationChaîne
customer_detailsStruct
customer_emailChaîne
expires_atDateTime
factureChaîne
invoice_creationStruct
livemodeBooléen
localeChaîne
métadonnéesStruct
modeChaîne
payment_intentChaîne=
payment_linkChaîne
payment_method_collectionChaîne
payment_method_optionsStruct
payment_method_typesListe
payment_statusChaîne
phone_number_collectionStruct
recovered_fromChaîne
setup_intentChaîne
shipping_address_collectionStruct
shipping_costStruct
shipping_detailsStruct
shipping_optionsListe
statusChaîne
submit_typeChaîne
abonnementChaîne
success_urlChaîne
tax_id_collectionStruct
total_detailsStruct
urlChaîne
ui_modeChaîne
Credit Notes
idChaîne
objetChaîne
amountEntier
crééDateTime=, >=, <=, <, >
deviseChaîne
customerChaîne=
customer_balance_transactionChaîne
discount_amountEntier
discount_amountsListe
factureChaîne=
linesStruct
livemodeBooléen
memoChaîne
métadonnéesStruct
nombreChaîne
out_of_band_amountEntier
pdfChaîne
raisonChaîne
refundChaîne
statusChaîne
subtotalEntier
subtotal_excluding_taxEntier
tax_amountsListe
totalEntier
total_excluding_taxEntier
typeChaîne
voided_atDateTime
amount_shippingEntier
effective_atDateTime
shipping_costStruct
Client
idChaîne
objetChaîne
adresseStruct
balanceEntier
crééDateTime
deviseChaîne=, >=, <=, <, >
default_sourceChaîne
delinquentBooléen=
descriptionChaîne
discountStruct
e-mailChaîne=
invoice_prefixChaîne
invoice_settingsStruct
livemodeBooléen
métadonnéesStruct
nameChaîne
next_invoice_sequenceEntier
phoneChaîne
preferred_localesListe
shippingStruct
tax_exemptChaîne
test_clockChaîne
Factures
idChaîne
objetChaîne
account_countryChaîne
account_nameChaîne
account_tax_idsListe
amount_dueEntier
amount_paidEntier
amount_remainingEntier
applicationChaîne
application_fee_amountEntier
attempt_countEntier
attemptedBooléen=
auto_advanceBooléen=
automatic_taxStruct
billing_reasonChaîne
chargeChaîne
collection_methodChaîne=
crééDateTime=, >=, <=, <, >
deviseChaîne
custom_fieldsListe
customerChaîne=
customer_addressStruct
customer_emailChaîne
customer_nameChaîne
customer_phoneChaîne
customer_shippingStruct
customer_tax_exemptChaîne
customer_tax_idsListe
default_payment_methodChaîne
default_sourceChaîne
default_tax_ratesListe
descriptionChaîne
discountStruct
discountsListe
due_dateDateTime=, >=, <=, <, >
ending_balanceEntier
footerChaîne
from_invoiceStruct
hosted_invoice_urlChaîne
invoice_pdfChaîne
last_finalization_errorStruct
latest_revisionChaîne
linesStruct
livemodeBooléen
métadonnéesStruct
next_payment_attemptDateTime
nombreChaîne
on_behalf_ofChaîne
paidBooléen=
paid_out_of_bandBooléen
payment_intentChaîne
payment_settingsStruct
period_endDateTime=, >=, <=, <, >
period_startDateTime=, >=, <=, <, >
post_payment_credit_notes_amountEntier
pre_payment_credit_notes_amountEntier
quoteChaîne
receipt_numberChaîne
renderingStruct
rendering_optionsStruct
starting_balanceEntier
statement_descriptorChaîne
statusChaîne=
status_transitionsStruct
abonnementChaîne
subscription_detailsStruct
subtotalEntier=, <, >
subtotal_excluding_taxEntier
taxEntier
test_clockChaîne
totalEntier=, <, >
total_discount_amountsListe
total_excluding_taxEntier
total_tax_amountsListe
transfer_dataStruct
webhooks_delivered_atDateTime
automatically_finalizes_atDateTime
effective_atDateTime
émetteurStruct
Invoice Items
idChaîne
objetChaîne
amountEntier=, <, >
deviseChaîne
customerChaîne=
dateDateTime
descriptionChaîne
discountableBooléen
discountsListe
factureChaîne=
livemodeBooléen
métadonnéesStruct
pointStruct
planStruct
prixStruct
prorationBooléen=
quantityEntier
abonnementChaîne
subscription_itemChaîne
tax_ratesListe
test_clockChaîne
unit_amountEntier
unit_montant_decimalChaîne
Plans
idChaîne
objetChaîne
actifBooléen=
aggregate_usageChaîne
amountEntier
amount_decimalChaîne
billing_schemeChaîne
crééDateTime=, >=, <=, <, >
deviseChaîne=
intervalChaîne=
interval_countEntier
livemodeBooléen
métadonnéesStruct
nicknameChaîne
productChaîne=
tiers_modeChaîne
transform_usageStruct
trial_period_daysEntier=, <, >
usage_typeChaîne
meterChaîne
Quotes
idChaîne
objetChaîne
amount_subtotalEntier
amount_totalEntier
applicationChaîne
application_fee_amountEntier
application_fee_percentDouble
automatic_taxStruct
collection_methodChaîne
computedStruct
crééDateTime
deviseChaîne
customerChaîne=
default_tax_ratesListe
descriptionChaîne
discountsListe
expires_atDateTime
footerChaîne
from_quoteStruct
headerChaîne
factureChaîne
invoice_settingsStruct
livemodeBooléen
métadonnéesStruct
nombreChaîne
on_behalf_ofChaîne
statusChaîne=
status_transitionsStruct
abonnementChaîne
subscription_dataStruct
subscription_scheduleChaîne
test_clockChaîne
total_detailsStruct
transfer_dataStruct
Abonnements
idChaîne
objetChaîne
applicationChaîne
application_fee_percentDouble
automatic_taxStruct
billing_cycle_anchorDateTime
billing_thresholdsStruct
cancel_atDateTime
cancel_at_period_endBooléen
canceled_atDateTime
collection_methodChaîne=
crééDateTime=, >=, <=,<,>
deviseChaîne
current_period_endDateTime=, >=, <=
current_period_startDateTime=, >=, <=
customerChaîne=
days_until_dueEntier
default_payment_methodChaîne
default_sourceChaîne
default_tax_ratesListe
descriptionChaîne
discountStruct
ended_atDateTime
itemsStruct
latest_invoiceChaîne
livemodeBooléen
métadonnéesStruct
next_pending_invoice_item_invoiceDateTime
pause_collectionStruct
payment_settingsStruct
pending_invoice_item_intervalStruct
pending_setup_intentChaîne
pending_updateStruct
planStruct
quantityEntier
scheduleChaîne
start_dateDateTime
statusChaîne=
test_clockChaîne
transfer_dataStruct
trial_endDateTime
trial_startDateTime
Subscription Items
IdChaîne
objetChaîne
billing_thresholdsStruct
crééDateTime=, >=, <=, <, >
métadonnéesStruct
planStruct
prixStruct
abonnementChaîne
tax_ratesListe
discountsListe
Subscription Schedules
objetChaîne
applicationChaîne
canceled_atDateTime
completed_atDateTime
crééDateTime
current_phaseStruct
customerChaîne=
default_settingsStruct
end_behaviorChaîne
livemodeBooléen
métadonnéesStruct
phasesListe
released_atDateTime
released_subscriptionChaîne
renewal_intervalChaîne
statusChaîne
abonnementChaîne
test_clockChaîne
Comptes
details_submittedBooléen
tos_acceptanceStruct
typeChaîne
métadonnéesStruct
idChaîne
objetChaîne
default_currencyChaîne
caractéristiquesStruct
charges_enabledBooléen
paramètresStruct
requirementsStruct
payouts_enabledBooléen
future_requirementsStruct
external_accountsStruct
contrôleurStruct
countryChaîne
e-mailChaîne
crééDateTime=, >=, <=, <, >
business_profileStruct
business_typeChaîne
companyStruct
Application Fees
idChaîne
objetChaîne
compteChaîne
amountEntier=, <, >
amount_refundedEntier=, <, >
applicationChaîne
balance_transactionChaîne
chargeChaîne=
crééDateTime
deviseChaîne
livemodeBooléen
originating_transactionChaîne
refundedBooléen=
refundsStruct
fee_sourceStruct
Country Specs
idChaîne
objetChaîne
default_currencyChaîne
supported_bank_account_currenciesStruct
supported_payment_currenciesListe
supported_payment_methodsListe
supported_transfer_countriesListe
verification_fieldsStruct
Transferts
idChaîne
objetChaîne
amountEntier=, <, >
amount_reversedEntier
balance_transactionChaîne
crééDateTime=, >=, <=, <, >
deviseChaîne=
descriptionChaîne
destinationChaîne=
destination_paymentChaîne
livemodeBooléen
métadonnéesStruct
reversalsStruct
reversedBooléen
source_transactionChaîne
source_typeChaîne
transfer_groupChaîne=
Early Fraud Warnings
idChaîne
objetChaîne
actionableBooléen
chargeChaîne=
crééDateTime=, >=, <=, <, >
fraud_typeChaîne
livemodeBooléen
payment_intentChaîne=
Types de rapport
idChaîne
objetChaîne
data_available_endDateTime
data_available_startDateTime
default_columnsListe
livemodeBooléen
nameChaîne
updatedDateTime
versionEntier

Requêtes de partitionnement

Les options Spark supplémentaires PARTITION_FIELD, LOWER_BOUND, UPPER_BOUND et NUM_PARTITIONS peuvent être indiquées si vous souhaitez utiliser la simultanéité dans Spark. Avec ces paramètres, la requête d’origine serait divisée en NUM_PARTITIONS nombres de sous-requêtes pouvant être exécutées simultanément par les tâches Spark.

  • PARTITION_FIELD : le nom du champ à utiliser pour partitionner la requête.

  • LOWER_BOUND : une valeur limite inférieure inclusive du champ de partition choisi.

    Pour le champ Date, nous acceptons le format de date Spark utilisé dans les requêtes SQL Spark. Exemple de valeur valide : "2024-07-01T00:00:00.000Z".

  • UPPER_BOUND : une valeur limite supérieure exclusive du champ de partition choisi.

  • NUM_PARTITIONS : nombre de partitions.

Les détails relatifs à la prise en charge des champs de partitionnement par entité sont présentés dans le tableau ci-dessous.

Nom de l’entité Champ de partitionnement Type de données
Balance TransactionscrééDateTime
FraiscrééDateTime
DisputescrééDateTime
File LinkscrééDateTime
PaymentIntentscrééDateTime
SetupIntentscrééDateTime
PayoutscrééDateTime
RemboursementscrééDateTime
ProduitscrééDateTime
PricescrééDateTime
CouponscrééDateTime
Promotion CodescrééDateTime
Tax RatescrééDateTime
Shipping RatescrééDateTime
SéancescrééDateTime
Credit NotescrééDateTime
ClientcrééDateTime
FacturescrééDateTime
PlanscrééDateTime
AbonnementscrééDateTime
Subscription SchedulescrééDateTime
ComptescrééDateTime
Application FeescrééDateTime
TransfertscrééDateTime
Early Fraud WarningscrééDateTime

Exemple

stripe_read = glueContext.create_dynamic_frame.from_options( connection_type="stripe", connection_options={ "connectionName": "connectionName", "ENTITY_NAME": "coupons", "API_VERSION": "v1", "PARTITION_FIELD": "created" "LOWER_BOUND": "2024-05-01T20:55:02.000Z" "UPPER_BOUND": "2024-07-11T20:55:02.000Z" "NUM_PARTITIONS": "10" } )